query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Produce a Message for display
private Message formatMessage(LogRecord record) { return new Message(record); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void DisplayMessage(String massage);", "public void displayMessage(){\n //getCouseName obtém o nome do curso\n System.out.printf(\"Welcome to the grade book for \\n%s!\\n\\n\", getCouseName());\n }", "public static void displayMsg() {\n\t}", "public void showMessage(String message);", "public void displayMessage(){//displayMessage body start\n\t\tSystem.out.printf(\"course name = %s\\n\", getCourseName());\n\t}", "@Override\r\n\t\tpublic void showMessage(String message) {\n\t\t\t\r\n\t\t}", "public void showMessage(){\n\t jsfMessageHelper.addInfo(\"Mesaj:\", (messageTxt==null?\"?\":messageTxt));\r\n\t}", "public void getMessage() {\n\r\n\t}", "void displayMessage(String message);", "public static void message() {\r\n\t\t\r\n\t\tJOptionPane.showMessageDialog(null, \"Thanks for your participation\" + \"\\nHave a great day!\");\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\t\tpublic void displayMessage() {\n\t\t\tsuper.displayMessage();\n\t\t}", "@Override\n\tpublic void showMessage(String message) {\n\n\t}", "public displayMessage() {}", "@Override\r\n\tpublic void display(Object message) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void display(Object message) {\n\t\t\r\n\t}", "private void displayMessage(String message) {\n }", "public String creerMessage(){\n return profile.getMessage();\n }", "public void displayMessage()\n\t{\n\t\t// this statement calls getCourseName to get the\n\t\t// name of the course this GradeBook represents\n\t\tSystem.out.printf( \"Welcome to the grade book for\\n%s!\\n\", getCourseName() );\n\t}", "String getMessage();", "String getMessage();", "String getMessage();", "public void displayMessage()\n {\n // getCourseName gets the name of the course\n System.out.printf( \"Welcome to the grade book for\\n%s!\\n\\n\",\n getCourseName() );\n }", "protected void displayMessage() {\n \n System.out.print (\"Message:\\n\");\n userMessage = message.toString();\n\n for(int i = 0; i < userMessage.length(); i++) \n System.out.format (\"%3d\", i);\n System.out.format (\"\\n\");\n for (char c : userMessage.toCharArray()) \n System.out.format(\"%3c\",c);\n System.out.format (\"\\n\");\n }", "public void showMessage(String message) \r\n\t\t{\t\t\t\r\n\t\t}", "public void message() {\n JOptionPane.showMessageDialog(null,\n \"Task was deleted successfully.\",\n \"Message\", JOptionPane.INFORMATION_MESSAGE);\n }", "@Override\r\n\tpublic void getMessage() {\n\t\tSystem.out.println(\"getMessage() 출력...\");\r\n\t}", "private static void displayMessage(String message) {\n\t\toutput.append(message);\n\t}", "protected abstract String getMessage();", "public void getMessage() {\r\n // use JOptionPane to have a pop up box informing user of the invalid token\r\n JOptionPane.showMessageDialog(null, \"Invalid Token \" + invalidToken);\r\n }", "java.lang.String getMsg();", "public String doMessage(){\n\t\treturn messageXhtml;\n\t}", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "@Override\n public String getMessage() {\n String result =\"Audio Message {\\n\";\n result +=\"\\tID: \"+ID+\"\\n\";\n result +=\"\\tBuffer Size: \"+bufferSize+\"\\n\";\n result +=\"}\";\n \n return result;\n }", "static void giveInfo(String message){\n JOptionPane.showMessageDialog(null, message);\n }", "public void ShowMessage() {\n\t\tthis.ShowMessage(null);\n\t\t\n\t\t/* Exit function. */\n\t\treturn;\n\t}", "public void printByeMessage() {\n String byeMessage = \"Bye. Hope to see you again soon!\";\n\n printWithTemplate(byeMessage);\n }", "public abstract String getMessage();", "void showSuccess(String message);", "@Override\n public String getMessage()\n {\n return message;\n }", "void message(){\n\t\tSystem.out.println(\"Hello dude as e dey go \\\\ we go see for that side\");\n\t\tSystem.out.print (\" \\\"So it is what it is\\\" \");\n\n\t}", "private void DisplayMessage(Message msg) {\r\n String marker = \"---------------\";\r\n\r\n // Synchronous\r\n if (Options.ReceiveMode.Value().equals(Literals.Sync)) {\r\n if (messagesInTotal.equals(Literals.Infinite)) {\r\n System.out.println(\"\\n\" + marker + \" Message \" + messagesReceived\r\n + \" received synchronously \" + marker);\r\n }\r\n else {\r\n System.out.println(\"\\n\" + marker + \" Message \" + messagesReceived + \" of \"\r\n + messagesInTotal + \" received synchronously \" + marker);\r\n }\r\n }\r\n\r\n // Asynchronous\r\n else if (Options.ReceiveMode.Value().equals(Literals.Async)) {\r\n if (messagesInTotal.equals(Literals.Infinite)) {\r\n System.out.println(\"\\n\" + marker + \" Message \" + messagesReceived\r\n + \" received asynchronously \" + marker);\r\n }\r\n else {\r\n System.out.println(\"\\n\" + marker + \" Message \" + messagesReceived + \" of \"\r\n + messagesInTotal + \" received asynchronously \" + marker);\r\n }\r\n }\r\n\r\n System.out.println(msg.toString());\r\n\r\n try {\r\n // Get values for custom properties, if available\r\n String property1 = msg.getStringProperty(\"MyStringProperty\");\r\n\r\n // Get value for an int property, store the result in long to validate\r\n // the get operation.\r\n long property2 = ((long) Integer.MAX_VALUE) + 1;\r\n property2 = msg.getIntProperty(\"MyIntProperty\");\r\n\r\n if ((property1 != null) && (property2 < Integer.MAX_VALUE)) {\r\n System.out.println(\"[Message has my custom properties]\");\r\n }\r\n else {\r\n System.out.println(\"[Hmm... my custom properties aren't there!]\");\r\n }\r\n }\r\n catch (Exception e) {\r\n // It appears that the received message was not created by the SampleProducerJava application,\r\n // as the expected properties are not available. This is a valid scenario, so suppress this\r\n // exception.\r\n }\r\n return;\r\n }", "public String returnMessage () {\n String msg = getString(R.string.result, score);\n if (score > 7) {\n msg += \"\\n\" + getString(R.string.fabulous);\n }\n else if (score >= 5 && score <= 7) {\n msg += \"\\n\" + getString(R.string.good_job);\n }\n else {\n msg += \"\\n\" + getString(R.string.try_again);\n }\n return msg;\n }", "@Override\n public String getMessage() {\n return message;\n }", "private void showMessage(String string) {\n\n }", "private void display(String msg) {\n cg.append(msg + \"\\n\");\n }", "int displayNotification(Message message);", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "@Override\n public String getMessage() {\n return MESSAGE;\n }", "@Override\n public String getMessage() {\n return message;\n }", "private void displayMessage(String info) {\n \tif (message == null) {\n \t\tsetupMessage();\n \t}\n \tmessage.setLabel(info);\n\t\tadd(message, 6, 15);\n }", "public String getMessageText();", "public String getMessage() { return message; }", "@Override\n public String getMessage()\n {\n return message;\n }", "@Override\n\tpublic String getMessage() {\n\t\treturn message;\n\t}", "@Override\n\tpublic String getMessage() {\n\t\treturn message;\n\t}", "public void outputMessage(String gameMessage){\n System.out.println(gameMessage);\n }", "public String printMsg() {\n System.out.println(MESSAGE);\n return MESSAGE;\n }", "public String getMessage(){\n return(message);\n }", "java.lang.String getTheMessage();", "@Override\n public String getMessage() {\n return \" ** I'm a friendly ENEMY! **\";\n }", "@Override\n public String getMessage(){\n \n }", "@Override\n public String getMessage() {\n String chuoi=\"\";\n if (maCD.length()!=5)\n chuoi=\"MaCD bao gom 5 ki tu\";\n else if (soBaiHat<10)\n chuoi=\"So bai hat phai lon hon 10 bai\";\n return\n chuoi;\n }", "Object getMessage();", "private void success() {\n showMessage(\"Congratulations!\", \"success\");\n }", "private void display(String msg) {\n String time = simpleDateFormat.format(new Date()) + \" | \" + msg;\n System.out.println(time);\n }", "@Override\n\tvoid showMsg() {\n\t\tSystem.out.println(\"Sample\");\n\t}", "public void returnMessage(String message);", "@Override\n\tpublic String getMessage(String id) {\n\t\treturn \"success\";\n\t}", "public Rendable getMessageDisplay(){\n return MESSAGE_DISPLAY;\n }", "public static void displayEndingMessage() {\n\t\tSystem.out.println(\"Thank you for using my program!\");\n\t}", "public void afficherMessage();", "@Override\r\n\tpublic String getMessage() {\n\t\treturn this.message;\r\n\t}", "public void displayMessage(String m){\n\t\tJOptionPane.showMessageDialog(null, m, \"Perfect !\", JOptionPane.INFORMATION_MESSAGE);\n\t}", "public abstract void message();", "private void alert(String msg) {\r\n\t\tSystem.out.print(msg);\r\n\t }", "private synchronized void display(String msg) {\n\n\t\t//guiConversation.append(msg);\n\t\tSystem.out.println(msg);\n\t}", "public String getMessage() {\n\t\treturn \" whose content is a\";\n\t}", "public void showMsg(String str);", "public void printMessage() {\n\t\tSystem.out.println(this.greeting + \" \" + this.message);\n\t}" ]
[ "0.7175379", "0.7150196", "0.71190494", "0.71022785", "0.7098296", "0.7055663", "0.7003456", "0.69798017", "0.69748485", "0.6972735", "0.6926527", "0.69065785", "0.6886078", "0.68661755", "0.68661755", "0.6837702", "0.6792486", "0.6788054", "0.67429054", "0.67429054", "0.67429054", "0.6733339", "0.67052746", "0.66845596", "0.6669129", "0.66690814", "0.66572434", "0.6631849", "0.6604323", "0.65815306", "0.6579559", "0.6576283", "0.6576283", "0.6576283", "0.6576283", "0.6576283", "0.6576283", "0.6576283", "0.6576283", "0.6576283", "0.6576283", "0.6576283", "0.6576283", "0.6576283", "0.6576283", "0.6576283", "0.6576283", "0.6576283", "0.6569365", "0.65463865", "0.6538596", "0.6532221", "0.65283245", "0.65211594", "0.65054923", "0.6502178", "0.64978087", "0.64930886", "0.6492937", "0.6490476", "0.64884394", "0.6484613", "0.6479847", "0.6479847", "0.6479847", "0.6479847", "0.6479847", "0.6479847", "0.6479847", "0.64632714", "0.64430296", "0.64380014", "0.64309084", "0.6429386", "0.64149445", "0.6404452", "0.6404452", "0.63872015", "0.63846123", "0.6379006", "0.6377977", "0.6365573", "0.63627166", "0.63545614", "0.6334551", "0.6331167", "0.6310088", "0.63065046", "0.63040465", "0.6300224", "0.6299065", "0.62901694", "0.62891275", "0.6282764", "0.6281316", "0.62587476", "0.62570447", "0.62568456", "0.62455213", "0.6243497", "0.6241333" ]
0.0
-1
Clear the table to start the log.
public void startLog() { int lastRow = m_records.size() - 1; if(lastRow >= 0) { m_records.clear(); fireTableRowsDeleted(0, lastRow); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clearLogs() {\n JXTable table = getSelectedTable();\n DefaultTableModel model = (DefaultTableModel) table.getModel();\n while (model.getRowCount() != 0) {\n model.removeRow(0);\n }\n }", "public void clear() {\n tableCache.invalidateAll();\n }", "public void clearTable(){\n\t\tloaderImage.loadingStart();\n\t\tfullBackup.clear();\n\t\tlist.clear();\n\t\toracle.clear();\n\t\tselectionModel.clear();\n\t\tdataProvider.flush();\n\t\tdataProvider.refresh();\n\t}", "private void clearTable() {\n fieldTable.removeAllRows();\n populateTableHeader();\n }", "public void clearTable() {\n reportTable.getColumns().clear();\n }", "@Override\n public void clearTable() {\n final var query = \"TRUNCATE TABLE piano_project.pianos\";\n try(final var statement = connection.createStatement()) {\n statement.executeUpdate(query);\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }", "public void resetTable() {\n\t\tif (table != null) {\n\t\t\ttable.removeAll();\n\t\t}\n\t}", "public static void resetTable() {\n tableModel.resetDefault();\n updateSummaryTable();\n }", "public void clearTable() {\n this.lstDaqHware.clear();\n this.mapDevPBar.clear();\n this.mapDevMotion.clear();\n }", "protected void clearTable() {\n\ttable.setModel(new javax.swing.table.AbstractTableModel() {\n\t public int getRowCount() { return 0; }\n\t public int getColumnCount() { return 0; }\n\t public Object getValueAt(int row, int column) { return \"\"; }\n\t});\n }", "public final void clearTable() {\n while (this.getRowCount() > 0) {\n this.removeRow(0);\n }\n\n // Notify observers\n this.fireTableDataChanged();\n }", "public void emptyTable()\r\n {\r\n final int lastRow = table.getRowCount();\r\n if (lastRow != 0)\r\n {\r\n ((JarModel) table.getModel()).fireTableRowsDeleted(0, lastRow - 1);\r\n }\r\n }", "public void clearAllTable() {\n\t\tint rowCount = dmodel.getRowCount();\n\t\tfor (int i = rowCount - 1; i >= 0; i--) {\n\t\t\tdmodel.removeRow(i);\n\t\t}\n\t}", "private void clearTableData() {\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n model.setRowCount(0);\n }", "public synchronized void clear() {\n Entry tab[] = table;\n for (int index = tab.length; --index >= 0; ) {\n tab[index] = null;\n }\n count = 0;\n }", "public void clear() {\n\t\tfor (int i = 0; i < table.size(); i++) {\n\t\t\ttable.get(i).clear();\n\t\t}\n\t}", "public void clear() {\r\n\t\tfor (int i = 0; i < table.length; i++) {\r\n\t\t\ttable[i] = null;\r\n\t\t}\r\n\r\n\t\tmodificationCount++;\r\n\t\tsize = 0;\r\n\t}", "@Override\n\tpublic void emptyTable() {\n\t\tresTable.deleteAll();\n\t}", "public void wipeTable() {\n SqlStorage.wipeTable(db, TABLE_NAME);\n }", "public void clearTables()\n\t{\n\t\ttry {\n\t\t\tclearStatement.executeUpdate();\n\t\t} catch (Exception e) {\n\t\t\tif (DEBUG) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void clearTable()\n {\n TableLayout table = (TableLayout) findViewById(R.id.lossesTable);\n table.removeViews(1, table.getChildCount() - 1);\n }", "public void clear (){\n\t\tfor (int i = 0; i < table.length; i++)\n\t\t\ttable[i] = null;\n\n\t\t// we have modified the hash table, and it has\n\t\t// no entries\n\t\tmodCount++;\n\t\thashTableSize = 0;\n\t}", "private void clearTable(DefaultTableModel table){\n\t\t\n\t\tfor(int i = 0; i < table.getRowCount(); i++){\n\t\t\ttable.removeRow(i);\n\t\t}\n\t}", "public void clearUserTable() {\n\t\tSQLDelete deleteStatament = new SQLDelete();\n\t\tdeleteStatament.clearUserTable();\n\t}", "public void clear()\r\n {\r\n // Create the tables stack and add the top level\r\n tables.clear();\r\n tables.add( new HashMap<String,T>() );\r\n \r\n // Ditto with the counts\r\n counts.clear();\r\n counts.add( 0 ); \r\n }", "public void clear() {\n table = new Handle[defaultSize];\n logicalSize = 0;\n }", "public void clearHashTable()\n {\n int index;\n\n for(index = 0; index < tableSize; index++)\n {\n tableArray[index] = null;\n }\n }", "private void clearTable(final MyCustomer customer) {\n\tDo(\"Clearing table \" + (customer.tableNum+1) + \" (2500 milliseconds)\");\n\ttimer.schedule(new TimerTask(){\n\t public void run(){\t\t \n\t\tendCustomer(customer);\n\t }\n\t}, 2500);\n\t \n\tcustomer.state = CustomerState.NO_ACTION;\n\tstateChanged();\n }", "public void clearTable() {\n\t\tfor (int i = modelCondTable.getRowCount() - 1; i >= 0; i--) {\n\t\t\tmodelCondTable.removeRow(i);\n\t\t}\n\t}", "public void clean() {\r\n\t\t\r\n\t\tlogger.trace(\"Enter clean\");\r\n\t\t\r\n\t\tdata.clear();\r\n\t\tfireTableDataChanged();\r\n\t\t\r\n\t\tlogger.trace(\"Exit clean\");\r\n\t}", "public void clear() {\n minCommittedLog = 0;\n maxCommittedLog = 0;\n /* to be safe we just create a new\n * datatree.\n */\n dataTree.shutdownWatcher();\n dataTree = createDataTree();\n sessionsWithTimeouts.clear();\n WriteLock lock = logLock.writeLock();\n try {\n lock.lock();\n committedLog.clear();\n } finally {\n lock.unlock();\n }\n initialized = false;\n }", "void clear( final ResultProcs procs )\n {\n enqueue( new Runnable() {\n @Override\n public void run() {\n int result = getWritableDatabase()\n .delete( LOGS_TABLE_NAME, \"1\", null );\n procs.onCleared( result );\n }\n } );\n }", "public ClearTableResponse clearTable(ClearTableRequest request) throws GPUdbException {\n ClearTableResponse actualResponse_ = new ClearTableResponse();\n submitRequest(\"/clear/table\", request, actualResponse_, false);\n return actualResponse_;\n }", "@Override\n public void clearDB() throws Exception {\n hBaseOperation.deleteTable(this.dataTableNameString);\n hBaseOperation.createTable(this.dataTableNameString, this.columnFamily, numRegion);\n }", "@Override\n public void clear() {\n for (LinkedList<Entry<K,V>> list : table) {\n list = null;\n }\n }", "private void clearTable() {\n\t\tcards.clear();\n\t\ttopCard = new Card();\n\t}", "public void clearData(){\n\t\t\n\t\tclearTable(conditionTableModel);\n\t\tclearTable(faultTableModel);\n\t}", "public void clearTables() {\n\t _database.delete(XREF_TABLE, null, null);\n\t _database.delete(ORDER_RECORDS_TABLE, null, null); \n\t}", "@Override\r\n\tpublic void clear() {\r\n\t\tlock_.lock();\r\n\r\n\t\ttry {\r\n\t\t\tlog_.clear();\r\n\t\t} finally {\r\n\t\t\tlock_.unlock();\r\n\t\t}\r\n\t}", "public void clearTable(String tableName) throws Exception {\n DefaultDataSet dataset = new DefaultDataSet();\n dataset.addTable(new DefaultTable(tableName));\n DatabaseOperation.DELETE_ALL.execute(conn, dataset);\n }", "static void emptyTable () {\n Session session = null;\n Transaction transaction = null;\n try {\n session = sessionFactory.openSession();\n transaction = session.beginTransaction();\n Query query = session.createQuery(\"DELETE from ReservationsEntity \");\n query.executeUpdate();\n Query query2 = session.createQuery(\"DELETE from OrdersEntity \");\n query2.executeUpdate();\n\n Query query3 = session.createQuery(\"DELETE from TablesEntity \");\n query3.executeUpdate();\n transaction.commit();\n }\n catch (Exception e)\n {\n if (transaction != null) {\n transaction.rollback();\n }\n throw e;\n } finally {\n if (session != null) {\n session.close();\n }\n }\n }", "public void clearTable() {\n topLeft = new Item(0, \"blank\");\n topCenter = new Item(0, \"blank\");\n topRight = new Item(0, \"blank\");\n left = new Item(0, \"blank\");\n center = new Item(0, \"blank\");\n right = new Item(0, \"blank\");\n bottomLeft = new Item(0, \"blank\");\n bottomCenter = new Item(0, \"blank\");\n bottomRight = new Item(0, \"blank\");\n result = new Item(0, \"blank\");\n index = 0;\n }", "public void doEmptyTableList() {\n tableList.deleteList();\n }", "protected void truncate() {\n doQuery(\"TRUNCATE TABLE feedentryqueue\");\n }", "public void reset() {\n\t\ttry {\n\t\ttr.reset();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Exception when reset the table reader\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void clear() \r\n\t{\r\n\t\tEntry\ttab[] = m_table;\r\n\t\tint\t\tindex;\r\n\t\r\n\t\tif (tab != null) {\r\n\t\t\tfor (index = tab.length; --index >= 0; ) {\r\n\t\t\t\ttab[index] = null;\r\n\t\t}\t}\r\n\t\tm_count = 0;\r\n\t\tclearElisionCache();\r\n }", "public void flushAllTables() {\n\t}", "public void clear() {\n\t\tLog.i(TAG, \"clear table \" + TABLE_USER);\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tdb.delete(TABLE_USER, null, null);\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic void clear( )\r\n\t{\r\n\t\tfor (int i =0; i< this.tableSize; i++)\r\n\t\t\t{ ((LinkedArrays<T>) table[i]).clear(); }\r\n\t\tthis.size = 0; \r\n\t\t\r\n\t}", "private void clearTable(String tableName) throws SQLException {\n Connection conn = getConnection();\n String setStatement = \"DELETE FROM \" + tableName;\n Statement stm = conn.createStatement();\n stm.execute(setStatement);\n }", "public void resetTables() {\n SQLiteDatabase db = this.getWritableDatabase();\n // Delete All Rows\n db.delete(TABLE_LOGIN, null, null);\n db.close();\n }", "public void clearLifeloggingTables() throws SQLException, ClassNotFoundException {\n\t\tString sqlCommand1 = \"DELETE TABLE IF EXISTS minute\";\n\t\tString sqlCommand2 = \"DELETE TABLE IF EXISTS image\";\n\t\tStatement stmt = this.connection.createStatement();\n\t\tstmt.execute(sqlCommand1);\n\t\tstmt.execute(sqlCommand2);\n\t\tstmt.close();\n\t}", "public void reset() {\n\t\tdroppedFiles.clear();\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t((DefaultTableModel) table.getModel()).setRowCount(0);\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t}", "private void cleanUp() {\n if (rehash()) {\n // If we rehashed, we needn't clean up (clean up happens as\n // a side effect).\n return;\n }\n\n if (size == 0) {\n // No live entries == nothing to clean.\n return;\n }\n\n // Clean log(table.length) entries picking up where we left off\n // last time.\n int index = clean;\n Object[] table = this.table;\n for (int counter = table.length; counter > 0; counter >>= 1,\n index = next(index)) {\n Object k = table[index];\n\n if (k == TOMBSTONE || k == null) {\n continue; // on to next entry\n }\n\n // The table can only contain null, tombstones and references.\n @SuppressWarnings(\"unchecked\")\n Reference<ThreadLocal<?>> reference\n = (Reference<ThreadLocal<?>>) k;\n if (reference.get() == null) {\n // This thread local was reclaimed by the garbage collector.\n table[index] = TOMBSTONE;\n table[index + 1] = null;\n tombstones++;\n size--;\n }\n }\n\n // Point cursor to next index.\n clean = index;\n }", "public void clearTables() {\r\n // your code here\r\n\t\ttry {\r\n\t\t\tdeleteReservationStatement.executeUpdate();\r\n\t\t\tdeleteBookingStatement.executeUpdate();\r\n\t\t\tdeleteUserStatement.executeUpdate();\r\n\t\t} catch (SQLException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }", "public void clearData(){\r\n data.clear();\r\n this.fireTableDataChanged();\r\n }", "public void clear() {\n this.setRowCount(0);\n }", "void clearAllItemsTable();", "public Builder clearBaseTable() {\n\n baseTable_ = getDefaultInstance().getBaseTable();\n onChanged();\n return this;\n }", "public void deleteAllLog()\n\t{\n\t\tchatLog.clear();\n\t}", "public synchronized void clear() {\n ServerDescEntry tab[] = table;\n for (int index = tab.length; --index >= 0; )\n tab[index] = null;\n count = 0;\n }", "@Override\n public final void clearData() {\n synchronized (tableRows) {\n statModel.clearData();\n tableRows.clear();\n tableRows.put(TOTAL_ROW_LABEL, new SamplingStatCalculator(TOTAL_ROW_LABEL));\n statModel.addRow(tableRows.get(TOTAL_ROW_LABEL));\n }\n }", "public void resetLogCollection();", "private void repopulateTableForDelete()\n {\n clearTable();\n populateTable(null);\n }", "public void resetHighscoreTable()\r\n\t{\r\n\t\tcreateArray();\r\n\t\twriteFile();\r\n\t}", "public void makeEmpty() {\r\n for (int i = 0; i < tableSize; i++) {\r\n table[i] = new DList<Entry<K, V>>();\r\n }\r\n }", "public void Clear() throws DataAccessException {\n try (Statement stmt = conn.createStatement()){\n String sql = \"DELETE FROM Event\";\n stmt.executeUpdate(sql);\n } catch (SQLException e) {\n throw new DataAccessException(\"SQL Error encountered while clearing tables\");\n }\n }", "public void clear()\n {\n if (resultSet != null)\n {\n try\n {\n resultSet.close();\n } catch (SQLException ex)\n {\n edu.ku.brc.af.core.UsageTracker.incrSQLUsageCount();\n edu.ku.brc.exceptions.ExceptionTracker.getInstance().capture(ResultSetTableModelDirect.class, ex);\n log.error(ex);\n }\n resultSet = null;\n }\n\n metaData = null;\n classNames.clear();\n\n currentRow = 0;\n numRows = 0;\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJTableUtils.clearTable(allowStressTable);\r\n\t\t\t}", "public void clear() \r\n\t{\r\n\t\ttotal = 0;\r\n\t\thistory = \"\";\r\n\t}", "@Override\n public void reset() {\n setActive(false);\n if (tablePane != null) {\n tablePane.removeAll();\n }\n table = null;\n tablePane = null;\n }", "public void clear() {\n\trows.removeAllElements();\n\tfireTableDataChanged();\n}", "public void clearLog() {\n try {\n Runtime.getRuntime().exec(new String[] { \"logcat\", \"-c\" });\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static boolean testTableClear() {\r\n table.clear();\r\n if (table.size() != 0)\r\n return false;\r\n return true;\r\n }", "public void clear()\r\n {\r\n m_alParameters.clear();\r\n fireTableDataChanged();\r\n }", "public void reset() {\n Log.i(TAG, \"Clearing everything from the notifications table\");\n this.cancelAllNotifications();\n this.ntfcn_items.reset();\n }", "private void logBeginningOfTheTable() {\n\t\tLOG.log(Level.FINER, () -> \"Stupac tablice:\");\n\t\tLOG.log(Level.FINER, () -> \"=================================\");\n\t}", "@AfterEach\n\tvoid clearDatabase() {\n\t\t//Clear the table\n\t\taccountRepository.deleteAll();\n\t}", "public static void resetTableRam(){\r\n singleton.dtm = new DefaultTableModel();\r\n singleton.dtm.setColumnIdentifiers(ram);\r\n home_RegisterUser.table.setModel(singleton.dtm);\r\n \r\n }", "private void limparTabela() {\n while (tmLivro.getRowCount() > 0) {\n tmLivro.removeRow(0);\n }\n }", "private void clearData() throws SQLException {\n//Lay chi so dong cuoi cung\n int n = tableModel.getRowCount() - 1;\n for (int i = n; i >= 0; i--) {\n tableModel.removeRow(i);//Remove tung dong\n }\n }", "@Override\n\tpublic void cleanUp() {\n\t\t table = null;\n colFam = null;\n currentEvent = null;\n\t}", "@Override\n public void clear() {\n hashtableBean = null;\n\n hashtableBean = new HashTableBean[5];\n position = 0;\n }", "@Override\n\t\tpublic void clear() {\n\t\t\tsuper.clear();\n\t\t\tLogCateManager.getInstance().onLogsChanged();\n\t\t}", "public void clear() {\n index.clear();\n }", "@Override\n public void cleanUsersTable() {\n\n Session session = sessionFactory.openSession();\n Transaction tx = session.beginTransaction();\n session.createQuery(\"delete from User\").executeUpdate();\n tx.commit();\n System.out.println(\"HibCleaning users table\");\n session.close();\n\n }", "private void limparTabela() { \n while (tmLivro.getRowCount() > 0) { \n tmLivro.removeRow(0);\n }\n }", "public void reset() {\n initEntries();\n }", "public void clearDatabase(){\n\t\tem.createNativeQuery(\"DELETE FROM CAMINHO\").executeUpdate();\r\n\t\tem.createNativeQuery(\"DELETE FROM MAPA\").executeUpdate();\r\n\t\t\r\n\t\tlog.info(\"Limpou a base de dados\");\r\n\t\r\n\t}", "public Builder clearTables() {\n if (tablesBuilder_ == null) {\n tables_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n tablesBuilder_.clear();\n }\n return this;\n }", "public void resetTables(){\r\n try {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n // Delete All Rows\r\n db.delete(User.TABLE_USER_NAME, null, null);\r\n db.close();\r\n }catch(SQLiteDatabaseLockedException e){\r\n e.printStackTrace();\r\n }\r\n }", "private void truncateTable() throws SQLException {\n trace(\"truncateTable\");\n String command = \"TRUNCATE TABLE \" + _tableName;\n Statement stmt = _connection.createStatement();\n stmt.executeUpdate(command);\n stmt.close();\n }", "private void clearData() {\r\n em.createQuery(\"delete from MonitoriaEntity\").executeUpdate();\r\n }", "public void reset(){\r\n \ttablero.clear();\r\n \tfalling = null;\r\n \tgameOver = false;\r\n \tlevel = 0;\r\n \ttotalRows = 0;\r\n \tLevelHelper.setLevelSpeed(level, this);\r\n }", "private static void clearDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n clearTable(\"myRooms\");\n clearTable(\"myReservations\");\n }", "@org.junit.Test\n public void clear() throws Exception {\n hashTable.clear();\n assertEquals(null, hashTable.get(\"Savon\"));\n assertEquals(null, hashTable.get(\"Blue\"));\n assertEquals(null, hashTable.get(\"math\"));\n }", "public void reset() {\n while (getNumTotal() > 0) {\n this.removeNuclei();\n }\n lastModified = Calendar.getInstance().getTimeInMillis(); // record time\n }", "@Override\r\n\tpublic void clearDatabase() {\n\t\t\r\n\t}", "public void resetChatsTable(){\r\n try {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n // Delete All Rows\r\n db.delete(UserChat.TABLE_USERCHAT, null, null);\r\n db.close();\r\n }catch(SQLiteDatabaseLockedException e){\r\n e.printStackTrace();\r\n }\r\n }", "private CommandResult clearAllLessons() {\n timetable.clearTimetable();\n logger.log(Level.INFO, \"User has cleared timetable\");\n return new CommandResult(\"Timetable has been cleared completely\");\n }" ]
[ "0.7625707", "0.7389604", "0.7368192", "0.73528486", "0.73508537", "0.7334117", "0.72938657", "0.69904435", "0.69825816", "0.69722253", "0.69453305", "0.69372886", "0.6873977", "0.6869481", "0.68605065", "0.68417174", "0.68399465", "0.6781368", "0.676738", "0.6762537", "0.67405766", "0.66838384", "0.6683411", "0.6677241", "0.66644585", "0.6651863", "0.664869", "0.66482717", "0.66243285", "0.6620629", "0.6611002", "0.65789014", "0.65704805", "0.64830154", "0.64808095", "0.6473272", "0.6464133", "0.64522415", "0.6443603", "0.64407897", "0.6438891", "0.64119995", "0.6370429", "0.6361568", "0.63311696", "0.63259804", "0.6323724", "0.63114876", "0.6302733", "0.62843215", "0.62699133", "0.62569535", "0.6235762", "0.623418", "0.6231598", "0.62159973", "0.62129307", "0.6207147", "0.6186408", "0.61680824", "0.61547774", "0.6129529", "0.61231935", "0.61079013", "0.6087295", "0.6077357", "0.60614574", "0.6049701", "0.6032125", "0.6001036", "0.5991346", "0.5982214", "0.5979264", "0.5947277", "0.5926784", "0.59240717", "0.59185165", "0.5915763", "0.5902245", "0.58887506", "0.58756626", "0.5866968", "0.5863406", "0.586328", "0.5842882", "0.58402336", "0.58209527", "0.5820796", "0.5819263", "0.5811918", "0.5803011", "0.5796801", "0.5795934", "0.5780861", "0.57678396", "0.5766217", "0.57543904", "0.5748454", "0.57472336", "0.5745236" ]
0.70903325
7
Add a record to the log
public void addRecord(LogRecord entry) { int newIndex = m_records.size(); m_records.add(entry); fireTableRowsInserted(newIndex, newIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addRecord(HistoryRecord record) throws IOException;", "public void addRecord();", "LogRecord saveLog(LogRecord logRecord);", "@Override\n\tpublic void addRecords(Records record) {\n\t\trecordsDAO.addRecords(record);\n\n\t}", "public void insert(RAlarmLog record) {\r\n getSqlMapClientTemplate().insert(\"R_ALARM_LOG.ibatorgenerated_insert\", record);\r\n }", "public void insertRecord(Record record) {\n record.setIrecordTime(new Date());\n lanRenMapper.insertRecord(record);\n }", "int insert(BehaveLog record);", "public void addLog(Log p) {\n logs.add(p);\n }", "public void addRecord(ListGridRecord record) {\r\n\t\tthis.addData(record);\r\n\t}", "void addLogEntry(LogEntry entry) throws LogEntryOperationFailedException;", "private void addLog(String log) {\n LogHelper.addIdentificationLog(log);\n }", "@SuppressWarnings(\"unchecked\")\n public final void addRecord(final Record record) {\n // TODO check if attributes present in report are also\n // present in record.\n // record.;\n// for (int i = 0; i < attributes.length; i++) {\n// if (!record.getAttributesString().contains(attributes[i])) {\n // launch new query to update list of attributes.\n// }\n// }\n records.add(record);\n }", "@Override\n\tpublic void publish(LogRecord record) {\n\tSystem.err.println(formatter.format(record));\n\tLogInfo info = new LogInfo(record.getTime(), \n\t\t\t\t record.getSource()+\":\"+record.getLevel(), \n\t\t\t\t formatter.format(record));\n\ttry {\n\t Telemetry.getInstance().publish(\"LOG\", info);\n\t} catch (Exception e) {\n\t System.err.println(\"Telemetry log error...\");\n\t e.printStackTrace();\n\t}\n }", "public void addRecord(Record record, String clientName, String assessmentYear, String taxType, String paymentDate, String paymentAmount) {\n\n String add = \"INSERT INTO \" + TABLE_RECORDS + \" VALUES\" + \"(\\\"\" + clientName + \"\\\",\\\"\" + assessmentYear + \"\\\"\" + \",\\\"\" + taxType + \"\\\"\" + \",\\\"\" +\n paymentDate + \"\\\"\" + \",\\\"\" + paymentAmount + \"\\\")\";\n records.add(record);\n\n try {\n statement = connection.prepareStatement(add);\n statement.executeUpdate();\n logFile.modifyLogFile(\"New record added successfully in database\"); //writing insert statement into log file\n } catch (SQLException e) {\n logFile.modifyLogFile(\"Error adding new record in database : \" + e.getMessage());\n e.printStackTrace();\n }\n }", "public void addRecord(Record record) {\n if (records.add(record)) {\n // if record has been added, then changing balance\n if (record.getType() == RecordType.WITHDRAW)\n balance -= record.getAmount();\n else if (record.getType() == RecordType.DEPOSIT)\n balance += record.getAmount();\n }\n }", "int insert(EbayLmsLog record);", "public boolean add( TPMTransportLogEntry logEntry )\r\n {\n return log.add( logEntry );\r\n }", "void addRecord(DistRecord record, boolean persistPoints);", "public void addData(AggregateRecord record) {\n this.data.add(record);\n }", "public void record() {\n stats.record();\n }", "int insert(GatewayLog record);", "int insert(FactRoomLog record);", "int insert(Miss_control_log record);", "void addItem(DataRecord record);", "public void recordLog(){\r\n\t\tthis.finishLog(resourceFiles.getString(\"PathHepparIITestDirectory\") + \"/\" + TEST_FILE_NAME); \r\n\t}", "public void addRecord(final AbstractRecord record) {\n\t\tif (record == null) {\n\t\t\tthrow new IllegalArgumentException(\"Passed record is null!\");\n\t\t} else if (!recordType.equals(record.getClass())) {\n\t\t\tthrow new IllegalArgumentException(\"Passed Record type \" + record.getClass().getName()\n\t\t\t\t\t+ \" is not compatibel with the wrapper record type \" + recordType.getName());\n\t\t}\n\n\t\tif (records.isEmpty()) {\n\n\t\t\tList<String> parNames = record.getNonMetricParameterNames();\n\t\t\tList<Object> parValues = record.getNonMetricValues();\n\t\t\tfor (int i = 0; i < parNames.size(); i++) {\n\t\t\t\taddInputParameter(parNames.get(i), parValues.get(i));\n\t\t\t}\n\n\t\t}\n\n\t\trecords.add(record);\n\t}", "public RecordObject addEvent(String token, Object record) throws RestResponseException;", "int insert(HotspotLog record);", "public void record(){\n\t}", "@Override\n protected void append(LoggingEvent event) {\n if (event.getMessage() instanceof WrsAccessLogEvent) {\n WrsAccessLogEvent wrsLogEvent = (WrsAccessLogEvent) event.getMessage();\n\n try {\n HttpServletRequest request = wrsLogEvent.getRequest();\n if (request != null) {\n String pageHash = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_BCD_PAGEHASH));\n String requestHash = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_BCD_REQUESTHASH));\n String sessionId = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_SESSION_ID));\n String requestUrl = request.getRequestURL().toString();\n String reqQuery = request.getQueryString();\n requestUrl += (reqQuery != null ? \"?\" + reqQuery : \"\");\n if (requestUrl.length()> 2000)\n requestUrl = requestUrl.substring(0, 2000);\n String bindingSetName = wrsLogEvent.getBindingSetName();\n if (bindingSetName != null && bindingSetName.length()> 255)\n bindingSetName = bindingSetName.substring(0, 255);\n String requestXML = wrsLogEvent.getRequestDoc()!=null ? Utils.serializeElement(wrsLogEvent.getRequestDoc()) : null;\n\n // log access\n if(AccessSqlLogger.getInstance().isEnabled()) {\n final AccessSqlLogger.LogRecord recordAccess = new AccessSqlLogger.LogRecord(\n sessionId\n , requestUrl\n , pageHash\n , requestHash\n , bindingSetName\n , requestXML\n , wrsLogEvent.getRowCount()\n , wrsLogEvent.getValueCount()\n , wrsLogEvent.getRsStartTime()\n , wrsLogEvent.getRsEndTime()\n , wrsLogEvent.getWriteDuration()\n , wrsLogEvent.getExecuteDuration()\n );\n AccessSqlLogger.getInstance().process(recordAccess);\n }\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "private static void addToLog(String message) {\n\t\ttry {\n\t\t\tDateFormat df = new SimpleDateFormat(\"dd/MM/yy HH:mm:ss:SS\");\n\t\t\tDate dateobj = new Date();\n\t\t\tlog.write(df.format(dateobj) + \": \" + message + \"\\n\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error With the Log File\");\n\t\t\tSystem.err.println(\"Exiting...\");\n\t\t\tSystem.exit(1);\n\t\t};\n\t}", "private void addLog(final String key, final Log logger) {\r\n this.logs.put(key, logger);\r\n }", "public void addNewRecord(TrajectoryTableRow newrecord){\r\n\t\tthis.data.add(newrecord);\r\n\t}", "public void add(SignLog log) {\n ContentValues values = new ContentValues();\n values.put(DatabaseSQLiteHelper.LOGS_NAME, log.getName());\n values.put(DatabaseSQLiteHelper.LOGS_PASSWORD, log.getPassword());\n values.put(DatabaseSQLiteHelper.LOGS_USER_ID, log.getUserId());\n values.put(DatabaseSQLiteHelper.LOGS_DAY, log.getDay());\n values.put(DatabaseSQLiteHelper.LOGS_TIME, log.getTime());\n values.put(DatabaseSQLiteHelper.LOGS_TYPE, log.getType());\n\n database.insert(DatabaseSQLiteHelper.TABLE_SIGN_LOGS, null, values);\n }", "private void insertRecord(String userName){\n\t\tLog.v(TAG, \"1\");\n\t\tLog.i(TAG, \"2\");\n\t\tLog.d(TAG, \"\");\n\t\tLog.w(\"Data printing.....\", \"3\");\n\t\tLog.e(\"Data printing.....\", \"\");\n\t}", "public void record(Event evt) {\n record0(evt);\n }", "@Override\r\n\tpublic void addLog(Log log) throws RuntimeException {\n\t\tlogMapper.addLog(log);\r\n\t}", "@PostMapping(path=\"/addRecord\")\n public ResponseEntity<Record> addRecord(@RequestBody Record record) {\n return ResponseEntity.ok().body(this.recordService.addRecord(record));\n }", "int insertSelective(BehaveLog record);", "public void record() throws Exception {\n\n\tString sDatabase = \"\"; // Some services may not have this value.\n\tString sSchema = \"\"; // Some services may not have this value.\n\n\t// If the start has not been defined yet, throw exception.\n\tif (dtStart == null) {\n\t throw new Exception(\n\t\t \"Start timer is not initialized in measurement collection class.\");\n\t}\n\n\t// Stop the timer if it was not defined yet.\n\tif (dtEnd == null) {\n\t stopTimer();\n\t}\n\n\t// Get the hostname\n\tInetAddress addr = InetAddress.getLocalHost();\n\tString hostname = addr.getHostName();\n\n\t// Log the usage in logs directory. This log contains more\n\t// information then what's being logged in CQ.\n\tString sUser = xCqUser.getUsername();\n\tString sClient = xCqClient.getClientName();\n\tif (xCqUser.getDatabase() != null) {\n\t sDatabase = xCqUser.getDatabase();\n\t}\n\tif (xCqUser.getSchema() != null) {\n\t sSchema = xCqUser.getSchema();\n\t}\n\n\tString sRecord = sClient + \";\" + sUser + \";\" + sService + \";\"\n\t\t+ sDatabase + \";\" + sSchema + \";\" + dtStart.toString() + \";\"\n\t\t+ dtEnd.toString() + \";\" + getDuration() + \";\" + hostname\n\t\t+ \";\\n\";\n\n\t// Append to the file.\n\tappend(sRecord);\n }", "public void add(BindRecord record) {\n map.put(record.getPeptide(), record);\n }", "int insert(PayLogInfoPo record);", "public static void addLogEntry(LogEntry logEntry, Context context) {\n if (log != null) log.add(0, logEntry);\n try {\n FileOutputStream fos = context.openFileOutput(FILENAME_LOG, Context.MODE_APPEND);\n PrintWriter writer = new PrintWriter(fos);\n writer.println(logEntry.toTextLine());\n writer.close();\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void addLog(int _sid, String _query, int _did, String _action){\n Logger log = new Logger(_sid, _query, _did, _action);\n if(_logs.containsKey(_sid) == false){\n _logs.put(_sid, new Vector<Logger>());\n }\n _logs.get(_sid).add(log);\n }", "@Override\n\tpublic int addLog(Log l) {\n\t\tString sql = \"INSERT INTO t_log(fTime,fTel,fType,fDocld,fResult)values(?,?,?,?,?)\";\n\t\tint result = 0;\n\t\tObject[] params = {l.getfTime(),l.getfTel(),l.getfType(),l.getfDocld(),l.getfResult()};\n\t\ttry {\n\t\t\tresult = qr.update(sql,params);\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 result;\n\t}", "@Override\r\n protected void append(LoggingEvent event)\r\n {\n String category = event.getLoggerName();\r\n String logMessage = event.getRenderedMessage();\r\n String nestedDiagnosticContext = event.getNDC();\r\n String threadDescription = event.getThreadName();\r\n String level = event.getLevel().toString();\r\n long time = event.timeStamp;\r\n LocationInfo locationInfo = event.getLocationInformation();\r\n\r\n // Add the logging event information to a LogRecord\r\n Log4JLogRecord record = new Log4JLogRecord();\r\n\r\n record.setCategory(category);\r\n record.setMessage(logMessage);\r\n record.setLocation(locationInfo.fullInfo);\r\n record.setMillis(time);\r\n record.setThreadDescription(threadDescription);\r\n\r\n if (nestedDiagnosticContext != null) {\r\n record.setNDC(nestedDiagnosticContext);\r\n } else {\r\n record.setNDC(\"\");\r\n }\r\n\r\n if (event.getThrowableInformation() != null) {\r\n record.setThrownStackTrace(event.getThrowableInformation());\r\n }\r\n\r\n try {\r\n record.setLevel(LogLevel.valueOf(level));\r\n } catch (LogLevelFormatException e) {\r\n // If the priority level doesn't match one of the predefined\r\n // log levels, then set the level to warning.\r\n record.setLevel(LogLevel.WARN);\r\n }\r\n MgcLogBrokerMonitor monitor = Lf5MainWindowController.getMonitor();\r\n if (monitor != null) {\r\n monitor.addMessage(record);\r\n }\r\n }", "void addLogToBatch(TelemetryData log) throws IOException;", "boolean appendEntry(final LogEntry entry);", "public void addLog(Timestamp startTime, Element requester, int instrumentId,\n\t\t\tint tickref, int lookupKey, int arg, Element responder, LkuResult resultCode,\n\t\t\tfloat data, int lookupTime) {\n\t\t\n\t\tLkuAuditLog log = new LkuAuditLog(startTime, requester, instrumentId, tickref,\n\t\t\t\tlookupKey, arg, responder, lookupTime, resultCode, data);\n\t\taddLog(log);\t\t\n\t}", "public void insertSelective(RAlarmLog record) {\r\n getSqlMapClientTemplate().insert(\"R_ALARM_LOG.ibatorgenerated_insertSelective\", record);\r\n }", "public static void appendLog(String log) {\n\t\tif (mTracker != null && mDebugLogFile) {\n\t\t\tmTracker.appendLog(log);\n\t\t}\n\t}", "int insertSelective(EbayLmsLog record);", "public void addRecord(Object... args) throws Exception {\n\n //Initialize records array\n updateRecords();\n\n\n //Create new record\n Record record;\n if (args[0] instanceof Record){\n record = (Record) args[0];\n }\n else{\n Field[] fields = new Field[args.length];\n for (int i=0; i<fields.length; i++){\n String name = null;\n Object value = args[i];\n fields[i] = new Field(name, value);\n }\n record = new Record(fields);\n }\n\n\n //Add record to the records array and increment number of shapes\n records.add(record);\n numShapes++;\n }", "public void addLogModel(LogModel param) {\n if (localLogModel == null) {\n localLogModel = new LogModel[] { };\n }\n\n //update the setting tracker\n localLogModelTracker = true;\n\n java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localLogModel);\n list.add(param);\n this.localLogModel = (LogModel[]) list.toArray(new LogModel[list.size()]);\n }", "public static void log(Context context, AttackRecord record) {\n\t\tIntent intent = new Intent(context, Logger.class);\n\t\tintent.setAction(ACTION_LOG_ATTACK);\n\t\tintent.putExtra(EXTRA_RECORD, (Parcelable)record);\n\t\tcontext.startService(intent);\n\t}", "public boolean add(OpenERPRecord record) {\r\n\t\tif (record != null) {\r\n\t\t\treturn records.add(record);\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "LogRecorder getLogRecorder();", "LogRecorder getLogRecorder();", "public static void log(Context context, MessageRecord record) {\n\t\tIntent intent = new Intent(context, Logger.class);\n\t\tintent.setAction(ACTION_LOG_MESSAGE);\n\t\tintent.putExtra(EXTRA_RECORD, (Parcelable)record);\n\t\tcontext.startService(intent);\n\t}", "@Override\n public synchronized void record(LogEvent le) {\n \n le.setDateEvent(new Date());\n System.out.println(\"Записывается в \"+name+\" лог с датой: \"+SDF.format(le.getDateEvent()));\n String message = layout.getMessage(le);\n \n if (isRotation){\n try {\n if (Files.size(file.toPath())>=maxSize){\n System.out.println(\"Размер файла\" +file.getName()+\" был превышен!\");\n file = getRotationFile(file);\n \n if (changeXML){\n changeXML(file.toPath(), config, name);\n }\n }\n } catch (FileNotFoundException f){\n System.out.println(\"Ошибка ввода-вывода в RollingFileAppender\");\n System.out.println(\"Файд не найден! \"+f.getMessage());\n } catch (IOException ex){\n System.out.println(\"Ошибка ввода-вывода в RollingFileAppender\");\n System.out.println(\"Ошибка в проверке размера файла: \"+ex.getMessage());\n }\n }\n \n try(OutputStreamWriter writer \n = new OutputStreamWriter(Files.newOutputStream(file.toPath(),\n StandardOpenOption.APPEND, StandardOpenOption.WRITE,\n StandardOpenOption.CREATE, StandardOpenOption.DSYNC) )){\n String m2 = new String(message.getBytes(\"UTF-8\"));\n writer.append(m2);\n } catch (IOException ex){\n System.out.println(\"Ошибка ввода-вывода в FileAppender \"+ex.getMessage());\n }\n }", "public void saveLogEntry(LogEntry log){\n\t\tlog.creationTime = new Date();\n\t\tgetSession().save(log);\n\t}", "@Override\n public void append( LogEvent event ) {\n long eventTimestamp;\n if (event instanceof AbstractLoggingEvent) {\n eventTimestamp = ((AbstractLoggingEvent) event).getTimestamp();\n } else {\n eventTimestamp = System.currentTimeMillis();\n }\n LogEventRequest packedEvent = new LogEventRequest(Thread.currentThread().getName(), // Remember which thread this event belongs to\n event, eventTimestamp); // Remember the event time\n\n if (event instanceof AbstractLoggingEvent) {\n AbstractLoggingEvent dbLoggingEvent = (AbstractLoggingEvent) event;\n switch (dbLoggingEvent.getEventType()) {\n\n case START_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the test case id, which we will later pass to ATS agent\n testCaseState.setTestcaseId(eventProcessor.getTestCaseId());\n\n // clear last testcase id\n testCaseState.clearLastExecutedTestcaseId();\n\n //this event has already been through the queue\n return;\n }\n case END_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the last executed test case id\n testCaseState.setLastExecutedTestcaseId(testCaseState.getTestcaseId());\n\n // clear test case id\n testCaseState.clearTestcaseId();\n // this event has already been through the queue\n return;\n }\n case GET_CURRENT_TEST_CASE_STATE: {\n // get current test case id which will be passed to ATS agent\n ((GetCurrentTestCaseEvent) event).setTestCaseState(testCaseState);\n\n //this event should not go through the queue\n return;\n }\n case START_RUN:\n\n /* We synchronize the run start:\n * Here we make sure we are able to connect to the log DB.\n * We also check the integrity of the DB schema.\n * If we fail here, it does not make sense to run tests at all\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n Level level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n // create the queue logging thread and the DbEventRequestProcessor\n if (queueLogger == null) {\n initializeDbLogging(null);\n }\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, false);\n //this event has already been through the queue\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n return;\n case END_RUN: {\n /* We synchronize the run end.\n * This way if there are remaining log events in the Test Executor's queue,\n * the JVM will not be shutdown prior to committing all events in the DB, as\n * the END_RUN event is the last one in the queue\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n //this event has already been through the queue\n return;\n }\n case DELETE_TEST_CASE: {\n // tell the thread on the other side of the queue, that this test case is to be deleted\n // on first chance\n eventProcessor.requestTestcaseDeletion( ((DeleteTestCaseEvent) dbLoggingEvent).getTestCaseId());\n // this event is not going through the queue\n return;\n }\n default:\n // do nothing about this event\n break;\n }\n }\n\n passEventToLoggerQueue(packedEvent);\n }", "int insertSelective(H5AppDownloadLog record);", "void saveActivityHistForAddEntity(Record inputRecord);", "public void log(String str)\n\t{\n\t\tDate date = new Date();\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm\");\n\t\t\n\t\tString loggable = dateFormat.format(date) + \": \" + str;\n\t\t\n\t\t// Add it to the log\n\t\tthis.log.add(loggable);\n\t\t\n\t\t// Print it out, for now.\n\t\tSystem.out.println(loggable); \n\t}", "int insert(NjOrderCallbackLog record);", "private void recordPushLog(String configName) {\n PushLog pushLog = new PushLog();\n pushLog.setAppId(client.getAppId());\n pushLog.setConfig(configName);\n pushLog.setClient(IP4s.intToIp(client.getIp()) + \":\" + client.getPid());\n pushLog.setServer(serverHost.get());\n pushLog.setCtime(new Date());\n pushLogService.add(pushLog);\n }", "public void add_to_log(String s){\n }", "int insertSelective(GatewayLog record);", "private void _addMessage(LogMessage logMessage) {\n\t\tString realmName = logMessage.getRealm();\n\t\tLinkedHashSet<LogMessage> logMessages = this.logMessagesByRealmAndId.computeIfAbsent(realmName,\n\t\t\t\tOperationsLog::newHashSet);\n\t\tlogMessages.add(logMessage);\n\n\t\t// store under locator\n\t\tLinkedHashMap<Locator, LinkedHashSet<LogMessage>> logMessagesLocator = this.logMessagesByLocator.computeIfAbsent(\n\t\t\t\trealmName, this::newBoundedLocatorMap);\n\t\tLinkedHashSet<LogMessage> messages = logMessagesLocator.computeIfAbsent(logMessage.getLocator(),\n\t\t\t\tOperationsLog::newHashSet);\n\t\tmessages.add(logMessage);\n\n\t\t// prune if necessary\n\t\tList<LogMessage> messagesToRemove = _pruneMessages(realmName, logMessages);\n\n\t\t// persist changes for non-transient realms\n\t\tStrolchRealm realm = getContainer().getRealm(realmName);\n\t\tif (!realm.getMode().isTransient())\n\t\t\tpersist(realm, logMessage, messagesToRemove);\n\t}", "void insert(VRpHrFeedback record);", "void add(CallRecordAddReqDto req);", "public static void addRecord() {\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter name: \");\r\n\t\tString name = in.nextLine();\r\n\t\tSystem.out.println(\"Enter number: \");\r\n\t\tString number = in.nextLine();\r\n\t\ttd.addRecord(name,number);\r\n\t\t\r\n\t\tSystem.out.println(\"Added record for \" + name + \" along with their number \" + number);\r\n\t}", "protected void addRecordWithoutChecks(final AbstractRecord record) {\n\t\trecords.add(record);\n\t}", "public static void log(Context context, NetworkRecord record) {\n\t\tIntent intent = new Intent(context, Logger.class);\n\t\tintent.setAction(ACTION_LOG_NETWORK);\n\t\tintent.putExtra(EXTRA_RECORD, (Parcelable)record);\n\t\tcontext.startService(intent);\n\t}", "public void insertHistory(RecordDTO recordDTO);", "public void insertRecord(Object key, Object record ) \n\t{ \n\t check(\"insert\", key, record);\n\t if ( htRecords.get(key) == null )\n\t {\n\t\t //--- Store a copy of the given key+record\n\t\t Object key2 = copy ( key ); // Is it realy useful for the key ?\n\t\t Object record2 = copy ( record );\n\t\t \n\t\t htRecords.put(key2, record2);\n\t }\n\t else\n\t {\n\t throw new RuntimeException(\"Cannot insert record (\" + recordClass + \") : duplicate key\");\n\t }\n\t}", "public boolean addLog(LogBean log) {\n\t\treturn ld.addLog(log);\n\t}", "@Override\r\n\tpublic int insert(KfExaminememo record) {\n\t\treturn mapper.insert(record);\r\n\t}", "@Override\n\tpublic Class<LoggingRecord> getRecordType() {\n\t\treturn LoggingRecord.class;\n\t}", "public static boolean add(String logMessage) {\n\n\t\t// Take care just in case nasty stuff happens adding to the file. \n\t\ttry {\n\t\t\ttrail.append(logMessage);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\n\t}", "int insertSelective(FactRoomLog record);", "void addRecord(String[] propertyValues, Date timestamp) throws IOException;", "public synchronized long addLog(final Log log) {\n if (log == null\n || TextUtils.isEmpty(log.getUrl())\n || TextUtils.isEmpty(log.getToken())\n || log.getJSON() == null) {\n Logger.e(\"Cannot add log without args.\");\n return getCount();\n }\n\n queryExecutor(new QueryExecCallback<Void>() {\n @Override\n public Void execute(SQLiteDatabase db) {\n ContentValues values = new ContentValues();\n values.put(Columns.URL, log.getUrl());\n values.put(Columns.TOKEN, log.getToken());\n values.put(Columns.LOG, log.getJSON().toString());\n values.put(Columns.CREATED_AT, System.currentTimeMillis());\n\n db.insert(TABLE_NAME, null, values);\n return null;\n }\n });\n\n return getCount();\n }", "int insert(ParseTableLog record);", "int insertSelective(PayLogInfoPo record);", "public void logrec()\r\n {\n Object[] row = new Object[4];\r\n\r\n if(true){\r\n row[0] = date;\r\n row[1] = un;\r\n row[2] = tn;\r\n // add row to the model\r\n\r\n\r\n model.addRow(row);}\r\n\r\n\r\n }", "public void addLog(String item) {\n\t\tlong itemTime = System.currentTimeMillis();\r\n\r\n\t\t// Measure total time\r\n\t\tlong itemTotalTime = (itemTime - start) / 1000;\r\n\t\tReporter.log(\"<td> - \" + item + itemTotalTime + \" </td>\");\r\n\t}", "void addLog(String beforeChange, String afterChange, String time) {\r\n ArrayList<String> logItem = new ArrayList<>();\r\n logItem.add(beforeChange);\r\n logItem.add(afterChange);\r\n logItem.add(time);\r\n allLogs.add(logItem);\r\n writeToFile(\"Save.bin\",allLogs);\r\n }", "private void insertEventRecord(Device device, \n long fixtime, int statusCode, Geozone geozone,\n GeoPoint geoPoint, \n long gpioInput,\n double speedKPH, double heading, \n double altitude,\n double odomKM)\n {\n\n /* create event */\n EventData evdb = createEventRecord(device, fixtime, statusCode, geoPoint, gpioInput, speedKPH, heading, altitude, odomKM);\n\n /* insert event */\n // this will display an error if it was unable to store the event\n Print.logInfo(\"Event : [0x\" + StringTools.toHexString(statusCode,16) + \"] \" + StatusCodes.GetDescription(statusCode,null));\n if (device != null) {\n device.insertEventData(evdb); \n }\n this.eventTotalCount++;\n\n }", "@Override\n\tpublic int addMediaRecord(MediaRecord record) {\n\t\treturn mediaRecordMapper.insertSelective(record);\n\t}", "public void log (Object msg) {\n getLogEvent().addMessage (msg);\n }", "public boolean appendRecord(String record) {\r\n\t\tboolean isAppended = false;\r\n\t\tif (!record.isEmpty()) {\r\n\t\t\tfileRecords.add(record);\r\n\t\t\tisAppended = true;\r\n\t\t}\r\n\t\treturn isAppended;\r\n\t}", "public void publish(LogRecord record) {\n\t\n\tGRAB_LOG_DONE done = new GRAB_LOG_DONE(id);\n\tdone.setRecord(record);\n\tdone.setSuccessful(true);\n\tif (connection != null) {\n\t try {\n\t\tconnection.send(done);\n\t } catch (IOException iox) {\t \n\t\tconnection.close();\n\t\tconnection = null;\n\t }\n\t}\n }", "@RequiresApi(api = Build.VERSION_CODES.N)\n public long AddRecord(SHUBORecord EventRecord) {\n return model.AddRecord(EventRecord);\n }", "int insertSelective(HotspotLog record);", "int insertSelective(Miss_control_log record);", "public void append(final String aEvent, long aTimestamp)\n {\n final InputLogEvent awsLogEvent = new InputLogEvent();\n\n final String message = aEvent;\n awsLogEvent.setTimestamp(Long.valueOf(aTimestamp));\n awsLogEvent.setMessage(message);\n if (!this.queue.offer(awsLogEvent) && !this.queueFull)\n {\n debug(\"Log queue is full!\");\n this.queueFull = true;\n }\n else if (this.queueFull)\n {\n this.queueFull = false;\n }\n }", "@Override\n\tpublic synchronized boolean add(TracesMessage obj) {\n\t\tTracesMessage log = obj;\n\t\tlong ts =log.getTime();\n\t\tif (ts < startTime || startTime < 0)\n\t\t\tstartTime = ts;\n\t\treturn super.add(obj);\n\t}", "public static void recordLog(String logLevel, String logInfo, Object... args)\n {\n Recorder.FunctionRecord(getRecordMetadata(), String.format(logInfo, args), logLevel);\n }" ]
[ "0.74737453", "0.6940462", "0.69015515", "0.688727", "0.6830101", "0.6681145", "0.6666353", "0.6659402", "0.65853035", "0.6583804", "0.6582379", "0.654669", "0.6451188", "0.6447459", "0.6403065", "0.6377342", "0.6353115", "0.6329277", "0.632217", "0.6302929", "0.6282147", "0.62678325", "0.6266299", "0.62637424", "0.6245553", "0.6233389", "0.6228296", "0.6193105", "0.6171229", "0.6140356", "0.61319065", "0.6110594", "0.61078656", "0.6101128", "0.609134", "0.6087755", "0.60852206", "0.60636383", "0.6063594", "0.6061744", "0.60344404", "0.6030179", "0.6027113", "0.60266805", "0.6021414", "0.60145754", "0.6009231", "0.60006", "0.6000558", "0.5988166", "0.59848315", "0.59774035", "0.5973956", "0.5972159", "0.59606284", "0.59497136", "0.5943185", "0.5943185", "0.59384805", "0.59365934", "0.5931811", "0.5896428", "0.58907944", "0.58840746", "0.58698916", "0.5859472", "0.5856265", "0.5847483", "0.58338326", "0.5831537", "0.58222085", "0.5820344", "0.581931", "0.5813591", "0.5808255", "0.5801969", "0.5800518", "0.57720983", "0.57668495", "0.5765032", "0.5733541", "0.5730665", "0.57176316", "0.5715939", "0.57145655", "0.57075405", "0.5695627", "0.56942445", "0.56873786", "0.5682065", "0.568163", "0.5680062", "0.567942", "0.5676807", "0.566487", "0.56397426", "0.5622348", "0.5615589", "0.56017697", "0.56002265" ]
0.741515
1
List listMsgProdOutputDestinations = new ArrayList(); / Connects to a node and adds producers and consumers both of them. Note:Sadly i can't find a simple way to include sender in messages.
public boolean sendTextMessageToDestination(String msgText,Destination msgDest){ MessageProducer msgTempProd = null; try { msgTempProd=this.serverSession.createProducer(msgDest); TextMessage msg=this.serverSession.createTextMessage(msgText); msg.setJMSReplyTo(this.getInputPort()); msgTempProd.send(msg); } catch (JMSException e) { // TODO Auto-generated catch block e.printStackTrace(); return false; }finally{ if(msgTempProd!=null) try { msgTempProd.close(); } catch (JMSException e) { e.printStackTrace(); } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addProducerDestinations(MonitoringDestination value) {\n value.getClass();\n ensureProducerDestinationsIsMutable();\n this.producerDestinations_.add(value);\n }", "public abstract List<JMSDestinationBean> getAllJmsDestinations();", "public void sendPeerListToAll() {\r\n\t\tPacket packet = new Packet();\r\n\t\tpacket.eventCode = 1;\r\n\t\tfor(int i = 0; i < peerClientNodeConnectionList.size(); i++) {\r\n\t\t\tPeer peer = new Peer();\r\n\t\t\tpeer.peerID = peerClientNodeConnectionList.get(i).peerClientID;\r\n\t\t\tpeer.peerIP = peerClientNodeConnectionList.get(i).peerClientIP;\r\n\t\t\tpeer.peerPort = peerClientNodeConnectionList.get(i).peerClientListeningPort;\r\n\t\t\tpacket.peerList.add(peer);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < peerClientNodeConnectionList.size(); i++) {\r\n\t\t\ttry {\r\n\t\t\t\tpeerClientNodeConnectionList.get(i).outStream.writeObject(packet);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t}", "void addSinks(McastRoute route, Set<ConnectPoint> sinks);", "public void clearProducerDestinations() {\n this.producerDestinations_ = emptyProtobufList();\n }", "protected void messageList() {\r\n\t\tif (smscListener != null) {\r\n\t\t\tmessageStore.print();\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"You must start listener first.\");\r\n\t\t}\r\n\t}", "Set<ConnectPoint> sinksFor(McastRoute route);", "String addReceiveQueue();", "Set<ConnectPoint> sinksFor(McastRoute route, HostId hostId);", "public Node(){\n outgoing = new ArrayList<>();\n //System.out.println(\"Node created!\");\n }", "public void readMessagingNodesList() {\n\t\tiStream = new ByteArrayInputStream(marshalledBytes);\t\n\t\tdin = new DataInputStream(new BufferedInputStream(iStream));\n\t\ttry {\n\t\t\tint totalCr = din.readInt();\n\t\t\tint nNeededConnections = din.readInt();\n\t\t\tint listByteLength = din.readInt();\n\t\t\tbyte[] listBytes = new byte[listByteLength];\n\t\t\tdin.readFully(listBytes);\n\n\t\t\tMessagingNodesList newList = new MessagingNodesList();\n\t\t\t//Unmarshall object of Messaging Nodes in list\n\t\t\tByteArrayInputStream bis = new ByteArrayInputStream(listBytes);\n\t\t\tDataInputStream dis = new DataInputStream(bis);\n\n\t\t\tint nLength, nLPort; byte[] nodeLinkBytes; String nIP;\n\t\t\tfor (int i=0; i< nNeededConnections; i++ ) {\n\t\t\t\tnLength = dis.readInt();\n\t\t\t\tnodeLinkBytes = new byte[nLength];\n\t\t\t\tdis.readFully(nodeLinkBytes);\n\t\t\t\tnIP= new String(nodeLinkBytes);\n\t\t\t\tnLPort = dis.readInt();\n\t\t\t\tnewList.addNode(nIP, nLPort);\n\t\t\t}\n\t\t\tiStream.close(); din.close();\n\t\t\t\n\t\t\tnode.setMessagingNodesList(newList,totalCr);\n\t\t\tnode.setPeerNumber(totalCr+node.getNumberNeededPeers());\n\t\t\tif(node.getNumberNeededPeers() ==0 ) System.out.println(\"All connections are established. Number of connections: \"+(node.getCurrentMessagingNodesList().getSize()));\n\n\t\t\t// Creating a registration message for each node in the messagingNodesList\n\t\t\tfor(int i=0; i<node.getFutureMessagingNodesList().getSize(); i++) {\n\t\t\t\tMessage message = new RegisterMessage(node.ipAddr, node.portNum);\n\t\t\t\tString friendIP = node.getFutureMessagingNodesList().getNodeAtIndex(i).ipAddress;\n\t\t\t\tint friendPort = node.getFutureMessagingNodesList().getNodeAtIndex(i).port;\n\n\t\t\t\t// Creating a socket that connects directly to the registry.\n\t\t\t\tSocket senderSocket = new Socket(friendIP, friendPort );\n\t\t\t\tnode.getConnections().addConnection(friendIP, senderSocket);\n\t\t\t\tnew TCPSender(senderSocket, message);\n\t\t\t}\n\t\t} catch (IOException e) {System.out.println(\"Failed to read message. \"); }\n\t}", "void addSink(McastRoute route, HostId hostId, Set<ConnectPoint> sinks);", "public void addConsumerDestinations(MonitoringDestination value) {\n value.getClass();\n ensureConsumerDestinationsIsMutable();\n this.consumerDestinations_.add(value);\n }", "void getSinkSet(){\n\t\tsink = new HashSet<>(inlinks.keySet());\n\t\tfor(String node : outlinks.keySet()){\n\t\t\tif(!(sink.add(node))){\n\t\t\t\tsink.remove(node);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Sink Size : \"+sink.size());\n\t }", "@Override\n public String toString() {\n\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"msg : \" + msg);\n\n sb.append(\"\\n\\n\");\n\n sb.append(\"nodeList : \" + nodeList == null ? \"null\" : nodeList.size());\n \n sb.append(\"\\n\\n\");\n\n sb.append(\"pnodeList : \" + pnodeList == null ? \"null\" : pnodeList.size());\n\n return sb.toString().trim();\n }", "public void addAllProducerDestinations(Iterable<? extends MonitoringDestination> values) {\n ensureProducerDestinationsIsMutable();\n AbstractMessageLite.addAll(values, this.producerDestinations_);\n }", "public void connectClusters()\n\t{\n//\t\tfor(int i = 0; i<edges.size();i++)\n//\t\t{\n//\t\t\tEdgeElement edge = edges.get(i);\n//\t\t\tString fromNodeID = edge.fromNodeID;\n//\t\t\tNodeElement fromNode = findSubNode(fromNodeID);\n//\t\t\tString toNodeID = edge.toNodeID;\n//\t\t\tNodeElement toNode = findSubNode(toNodeID); \n//\t\t\t\n//\t\t\tif(fromNode != null && toNode != null)\n//\t\t\t{\n//\t\t\t\tPortInfo oport = new PortInfo(edge, fromNode);\n//\t\t\t\tfromNode.addOutgoingPort(oport);\n//\t\t\t\tedge.addIncomingPort(oport);\n//\t\t\t\tPortInfo iport = new PortInfo(edge, toNode);\n//\t\t\t\ttoNode.addIncomingPort(iport);\n//\t\t\t\tedge.addOutgoingPort(iport);\n//\t\t\t}\n//\t\t}\n\t}", "public void testSenderOrderWithMultipleSiteMasters() throws Exception {\n MyReceiver<Object> rx=new MyReceiver<>().rawMsgs(true).verbose(true),\n ry=new MyReceiver<>().rawMsgs(true).verbose(true), rz=new MyReceiver<>().rawMsgs(true).verbose(true);\n final int NUM=512;\n final String sm_picker_impl=SiteMasterPickerImpl.class.getName();\n a=createNode(LON, \"A\", LON_CLUSTER, 2, sm_picker_impl, null);\n b=createNode(LON, \"B\", LON_CLUSTER, 2, sm_picker_impl, null);\n c=createNode(LON, \"C\", LON_CLUSTER, 2, sm_picker_impl, null);\n Util.waitUntilAllChannelsHaveSameView(10000, 1000, a,b,c);\n\n x=createNode(SFO, \"X\", SFO_CLUSTER, 2, sm_picker_impl, rx);\n y=createNode(SFO, \"Y\", SFO_CLUSTER, 2, sm_picker_impl, ry);\n z=createNode(SFO, \"Z\", SFO_CLUSTER, 2, sm_picker_impl, rz);\n Util.waitUntilAllChannelsHaveSameView(10000, 1000, x,y,z);\n\n waitForBridgeView(4, 10000, 1000, a,b,x,y);\n\n // C in LON sends messages to the site master of SFO (via either SM A or B); everyone in SFO (x,y,z)\n // must receive them in correct order\n SiteMaster target_sm=new SiteMaster(SFO);\n System.out.printf(\"%s: sending %d messages to %s:\\n\", c.getAddress(), NUM, target_sm);\n for(int i=1; i <= NUM; i++) {\n Message msg=new BytesMessage(target_sm, i); // the seqno is in the payload of the message\n c.send(msg);\n }\n\n boolean running=true;\n for(int i=0; running && i < 10; i++) {\n for(MyReceiver<Object> r: Arrays.asList(rx,ry,rz)) {\n if(r.size() >= NUM) {\n running=false;\n break;\n }\n }\n Util.sleep(1000);\n }\n\n System.out.printf(\"X: size=%d\\nY: size=%d\\nZ: size=%d\\n\", rx.size(), ry.size(), rz.size());\n assert rx.size() == NUM || ry.size() == NUM;\n assert rz.size() == 0;\n }", "public void addProducerDestinations(int index, MonitoringDestination value) {\n value.getClass();\n ensureProducerDestinationsIsMutable();\n this.producerDestinations_.add(index, value);\n }", "private void sendCmdToHandler(List<Object> out, AbstractMsg<?> msg) {\n out.add(msg);\n }", "private void sendmessage(int new_offset[], int[] port_list) {\n\t\ttry {\n\n\t\t\t/**\n\t\t\t * \n\t\t\t * port_list has the port of all processes. Message will be sent to\n\t\t\t * all process.\n\t\t\t * \n\t\t\t */\n\n\t\t\tfor (int i = 0; i < port_list.length; i++) {\n\t\t\t\tSocket processClient = new Socket(\"localhost\", port_list[i]);\n\t\t\t\tprocessClient.setReuseAddress(true);\n\t\t\t\tOutputStream processStream = processClient.getOutputStream();\n\t\t\t\tBufferedWriter processWriter = new BufferedWriter(\n\t\t\t\t\t\tnew OutputStreamWriter(processStream));\n\n\t\t\t\tprocessWriter.write(\"Master: Offset =\" + new_offset[i]);\n\n\t\t\t\t// System.out.println(\"Sending data from Master to other process running on \"\n\t\t\t\t// + port_list[i]);\n\n\t\t\t\tprocessWriter.flush();\n\t\t\t\t// processWriter.close();\n\t\t\t\tprocessClient.close();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void sendTo(P2PUser dest, Object msg) throws IOException;", "public void clearConsumerDestinations() {\n this.consumerDestinations_ = emptyProtobufList();\n }", "double collectOutput(List<NeuronsConnection> inputConnections);", "public void propagate(XQueue in, XQueue[] out) throws JMSException {\n Message inMessage = null;\n String msgStr = null, ruleName = null;\n StringBuffer strBuf = null;\n Object o;\n Map rule;\n Browser browser;\n MessageFilter[] filters = null;\n Template template = null;\n AssetList taskList = null;\n String[] propertyName = null, propertyValue = null;\n long[] outInfo = null, ruleInfo = null, taskInfo;\n int[] ruleMap;\n long currentTime, sessionTime;\n long count = 0;\n int mask, ii, hbeat, retry;\n int i = 0, id, hid, tid, m, n;\n int cid = -1; // the cell id of the message in input queue\n int rid = 0; // the id of the ruleset\n int oid = 0; // the id of the output queue\n boolean dspBody = false, inDetail = ((debug & DEBUG_REPT) > 0);\n boolean ckBody = false;\n byte[] buffer = new byte[bufferSize];\n\n i = in.getCapacity();\n if (capacity != i) { // assume it only occurs at startup\n new Event(Event.WARNING, name + \": \" + in.getName() +\n \" has the different capacity of \" + i + \" from \" +\n capacity).send();\n capacity = i;\n msgList.clear();\n msgList = new AssetList(name, capacity);\n cells.clear();\n cells = new CollectibleCells(name, capacity);\n }\n\n // initialize patterns\n n = ruleList.size();\n filters = new MessageFilter[n];\n browser = ruleList.browser();\n ruleMap = new int[n];\n i = 0;\n while ((rid = browser.next()) >= 0) {\n rule = (Map) ruleList.get(rid);\n filters[i] = (MessageFilter) rule.get(\"Filter\");\n if (filters[i] != null) {\n if ((!ckBody) && filters[i].checkBody())\n ckBody = true;\n }\n ruleMap[i++] = rid;\n }\n\n // update assetList\n n = out.length;\n for (i=0; i<n; i++) {\n Object[] asset = (Object[]) assetList.get(i);\n asset[ASSET_XQ] = out[i];\n outInfo = assetList.getMetaData(i);\n if (outInfo[OUT_CAPACITY] != out[i].getCapacity())\n outInfo[OUT_CAPACITY] = out[i].getCapacity();\n }\n pool = out[outLinkMap[POOL_OUT]];\n poolInfo = assetList.getMetaData(outLinkMap[POOL_OUT]);\n if (pool.getCapacity() != reqList.getCapacity()) { // rereate reqList\n reqList.clear();\n reqList = new AssetList(name, pool.getCapacity());\n }\n\n n = ruleMap.length;\n strBuf = new StringBuffer();\n // set all groups active at startup but the first\n hid = heartbeat.length - 1;\n hbeat = heartbeat[hid];\n currentTime = System.currentTimeMillis();\n sessionTime = currentTime;\n ii = 0;\n while (((mask = in.getGlobalMask()) & XQueue.KEEP_RUNNING) > 0) {\n if ((mask & XQueue.STANDBY) > 0) // standby temporarily\n break;\n if ((cid = in.getNextCell(waitTime)) >= 0) { // got a new msg\n currentTime = System.currentTimeMillis();\n\n if ((inMessage = (Message) in.browse(cid)) == null) {\n in.remove(cid);\n new Event(Event.WARNING, name + \": \" + Event.traceStack(\n new JMSException(\"null msg from \"+in.getName()))).send();\n continue;\n }\n\n msgStr = null;\n rid = 0;\n i = 0;\n try {\n if (ckBody)\n msgStr = MessageUtils.processBody(inMessage, buffer);\n for (i=1; i<n; i++) {\n if (filters[i].evaluate(inMessage, msgStr)) {\n rid = ruleMap[i];\n break;\n }\n }\n }\n catch (Exception e) {\n String str = name;\n Exception ex = null;\n if (e instanceof JMSException)\n ex = ((JMSException) e).getLinkedException();\n if (ex != null)\n str += \" Linked exception: \" + ex.toString() + \"\\n\";\n new Event(Event.ERR, str + \" failed to apply the filter \"+i+\n \": \" + Event.traceStack(e)).send();\n i = -1;\n }\n\n ruleName = ruleList.getKey(rid);\n ruleInfo = ruleList.getMetaData(rid);\n\n if (i < 0) // failed on filter\n oid = outLinkMap[FAILURE_OUT];\n else if (TYPE_ACTION != (int) ruleInfo[RULE_PID]) // bypass\n oid = (int) ruleInfo[RULE_OID];\n else try { // to init the monitor and to add it to taskList\n rule = (Map) ruleList.get(rid);\n propertyName = (String[]) rule.get(\"PropertyName\");\n template = (Template) rule.get(\"Template\");\n Map<String,Object> task=initTask(template,buffer,inMessage);\n if (task != null && task.size() > 0) {\n String key = (String) task.get(\"Name\");\n TimeWindows tw = (TimeWindows) task.get(\"TimeWindow\");\n if (ruleInfo[RULE_TTL] > 0)\n tw.setStopTime(currentTime + ruleInfo[RULE_TTL]);\n if (propertyName != null) // copy properties over\n copyProperties(propertyName, task, inMessage);\n taskList = (AssetList) rule.get(\"TaskList\");\n id = taskList.add(key, new long[TASK_TIME+1], task);\n if ((debug & DEBUG_UPDT) > 0)\n new Event(Event.DEBUG, name + \" \" + ruleName +\n \" added a new task of \" + key + \" from \" + cid +\n \" to \" + id + \" with \" + taskList.size() + \" \" +\n ruleInfo[RULE_PEND]).send();\n if (id >= 0) {\n taskInfo = taskList.getMetaData(id);\n for (i=0; i<=TASK_TIME; i++)\n taskInfo[i] = 0;\n taskInfo[TASK_ID] = -1;\n taskInfo[TASK_GID] = -1;\n taskInfo[TASK_STATUS] = NODE_READY;\n taskInfo[TASK_TIME] = currentTime;\n ruleInfo[RULE_PEND] ++;\n ruleInfo[RULE_TIME] = currentTime;\n if (ruleInfo[RULE_OPTION] > 0) { // on wait\n // hold the message until it is done \n taskInfo[TASK_GID] = cid;\n continue;\n }\n oid = outLinkMap[BYPASS_OUT];\n }\n else { // failed to add to the list\n MonitorReport report;\n report = (MonitorReport) task.get(\"Report\");\n if (report != null)\n report.destroy();\n task.clear();\n if (taskList.getID(key) < 0) {\n new Event(Event.ERR, name + \": \" + ruleName +\n \" failed to add new task of \" + key +\n \" \" + taskList.size() + \"/\" +\n ruleInfo[RULE_EXTRA]).send();\n oid = outLinkMap[FAILURE_OUT];\n }\n else {\n new Event(Event.WARNING, name +\": \"+ruleName+\n \" has an active task for \" + key).send();\n oid = outLinkMap[BYPASS_OUT];\n }\n }\n }\n else { // failed to init occurrence\n oid = outLinkMap[FAILURE_OUT];\n new Event(Event.ERR, name + \": \" + ruleName +\n \" failed to init a new task\").send();\n }\n }\n catch (Exception e) {\n oid = outLinkMap[FAILURE_OUT];\n new Event(Event.ERR, name + \": \" + ruleName +\n \" failed to create a new task: \" +\n Event.traceStack(e)).send();\n }\n\n if ((debug & DEBUG_PROP) > 0)\n new Event(Event.DEBUG, name+\" propagate: cid=\" + cid +\n \" rid=\" + rid + \" oid=\" + oid).send();\n\n if (displayMask > 0) try {// display message\n if (dspBody)\n msgStr = MessageUtils.processBody(inMessage, buffer);\n new Event(Event.INFO, name+\": \"+ruleName+\" processed msg \"+\n (count + 1)+\":\"+MessageUtils.display(inMessage, msgStr,\n displayMask, displayPropertyName)).send();\n }\n catch (Exception e) {\n new Event(Event.WARNING, name + \": \" + ruleName +\n \" failed to display msg: \" + e.toString()).send();\n }\n\n count += passthru(currentTime, inMessage, in, rid, oid, cid, 0);\n feedback(in, -1L);\n }\n\n currentTime = System.currentTimeMillis();\n if (currentTime < sessionTime) { // session not due yet\n if (pool.collectible() > 0)\n collect(in, outLinkMap[RESULT_OUT]);\n if (msgList.size() > 0)\n feedback(in, -1L);\n continue;\n }\n\n inDetail = ((debug & DEBUG_REPT) > 0);\n m = 0;\n browser.reset();\n while ((rid = browser.next()) >= 0) { // update active rulesets\n ruleInfo = ruleList.getMetaData(rid);\n if (ruleInfo[RULE_PID] != TYPE_ACTION)\n continue;\n if ((hbeat % (int) ruleInfo[RULE_MODE]) != 0) // not active\n continue;\n if (ruleInfo[RULE_PEND] <= 0) // empty rule\n continue;\n\n ruleName = ruleList.getKey(rid);\n rule = (Map) ruleList.get(rid);\n taskList = null;\n if (rule == null || rule.size() <= 0) {\n new Event(Event.WARNING, name + \": \" + ruleName +\n \" is empty\").send();\n continue;\n }\n taskList = (AssetList) rule.get(\"TaskList\");\n if (taskList == null) {\n new Event(Event.WARNING, name + \": \" + ruleName +\n \" has no taskList\").send();\n continue;\n }\n if (inDetail)\n new Event(Event.DEBUG, name + \": \" + ruleName +\n \" is active with \" + taskList.size() + \" tasks\").send();\n if (taskList.size() <= 0)\n continue;\n retry = (int) ruleInfo[RULE_GID];\n Browser b = taskList.browser();\n while ((tid = b.next()) >= 0) { // dispatch tasks\n taskInfo = taskList.getMetaData(tid);\n id = (int) taskInfo[TASK_ID];\n if (id < 0) { // ready for next run\n ObjectEvent msg = new ObjectEvent();\n msg.setPriority(Event.INFO);\n msg.setAttribute(\"name\", taskList.getKey(tid));\n msg.setBody(taskList.get(tid));\n id = pool.reserve(waitTime);\n if (id >= 0) { // reserved\n if (reqList.existsID(id)) { // preoccupied?\n collect(currentTime, id, in,\n outLinkMap[RESULT_OUT]);\n }\n pool.add(msg, id);\n taskInfo[TASK_ID] = id;\n taskInfo[TASK_STATUS] = NODE_RUNNING;\n taskInfo[TASK_TIME] = currentTime;\n taskInfo[TASK_RETRY] = 0;\n reqList.add(String.valueOf(id),\n new long[]{rid, tid}, msg, id);\n poolInfo[OUT_SIZE] ++;\n poolInfo[OUT_TIME] = currentTime;\n poolInfo[OUT_QTIME] = currentTime;\n m ++;\n if (inDetail)\n strBuf.append(\"\\n\\t\" + ruleName + \"/\" +\n taskList.getKey(tid) + \": \" + tid + \" \" +\n id + \" \" + taskInfo[TASK_RC] + \" \" +\n taskInfo[TASK_COUNT]);\n }\n else { // failed to reserve\n new Event(Event.ERR, name + \" \"+ ruleName + \":\" +\n taskList.getKey(tid) + \" failed to reserve \"+\n \"from \" + pool.getName() + \" \" + pool.depth()+\n \":\" + pool.size() + \"/\" + id).send();\n }\n }\n else if (ruleInfo[RULE_GID] > 0 &&\n taskInfo[TASK_RETRY] >= ruleInfo[RULE_GID]) { // stuck\n taskInfo[TASK_RETRY] ++;\n if (taskInfo[RULE_STATUS] == NODE_RUNNING ||\n taskInfo[RULE_STATUS] == NODE_READY)\n taskInfo[RULE_STATUS] = NODE_RETRYING;\n new Event(Event.ERR, name + \" \"+ ruleName + \":\" +\n taskList.getKey(tid) + \" timed out and stuck \"+\n taskInfo[TASK_RETRY] + \" times at \" + id).send();\n }\n else {\n taskInfo[TASK_RETRY] ++;\n new Event(Event.WARNING, name + \" \"+ ruleName + \":\" +\n taskList.getKey(tid) + \" timed out and stuck \"+\n taskInfo[TASK_RETRY] + \" times at \" + id).send();\n }\n }\n }\n\n if (pool.collectible() > 0)\n collect(in, outLinkMap[RESULT_OUT]);\n if (msgList.size() > 0)\n feedback(in, -1L);\n\n if (inDetail && strBuf.length() > 0) {\n new Event(Event.DEBUG, name + \" RULE/KEY: TID ID RC COUNT - \" +\n m + \" \" + hid + \" \" + hbeat + \" \" + pool.size() + \":\" +\n pool.depth() + \" \" + reqList.size() +\n strBuf.toString()).send();\n strBuf = new StringBuffer();\n }\n\n hid ++;\n if (hid >= heartbeat.length) { // reset session\n hid = 0;\n sessionTime += heartbeat[hid];\n }\n else {\n sessionTime += heartbeat[hid] - hbeat;\n }\n hbeat = heartbeat[hid];\n currentTime = System.currentTimeMillis();\n if (currentTime > sessionTime) // reset sessionTime\n sessionTime = currentTime;\n }\n }", "ListDestinationsResult listDestinations(ListDestinationsRequest listDestinationsRequest);", "private void createMessagesForPhones() {\n int msgQtd = getMessageQuantityInterval().randomValue();\n getEvents().forEach((event)->{\n Phone originPhone = event.getOriginPhone();\n \n Message message = new Message(originPhone, event.getDestinationPhone(), MessageStatus.PHONE_TO_ANTENNA);\n if ( msgQtd > 0 ) {\n message.setSendQuantity(msgQtd);\n message.setSendAgain(false);\n \n originPhone.addMessageToOutbox(message);\n }\n });\n }", "@Test\n public void multipleNetServers() throws Exception {\n String gNode1 = \"graphNode1\";\n String gNode2 = \"graphNode2\";\n\n Map<String, String> rcaConfTags = new HashMap<>();\n rcaConfTags.put(\"locus\", RcaConsts.RcaTagConstants.LOCUS_DATA_NODE);\n IntentMsg msg = new IntentMsg(gNode1, gNode2, rcaConfTags);\n wireHopper2.getSubscriptionManager().setCurrentLocus(RcaConsts.RcaTagConstants.LOCUS_DATA_NODE);\n\n wireHopper1.sendIntent(msg);\n\n WaitFor.waitFor(() ->\n wireHopper2.getSubscriptionManager().getSubscribersFor(gNode2).size() == 1,\n 10,\n TimeUnit.SECONDS);\n GenericFlowUnit flowUnit = new SymptomFlowUnit(System.currentTimeMillis());\n DataMsg dmsg = new DataMsg(gNode2, Lists.newArrayList(gNode1), Collections.singletonList(flowUnit));\n wireHopper2.sendData(dmsg);\n wireHopper1.getSubscriptionManager().setCurrentLocus(RcaConsts.RcaTagConstants.LOCUS_DATA_NODE);\n\n WaitFor.waitFor(() -> {\n List<FlowUnitMessage> receivedMags = wireHopper1.getReceivedFlowUnitStore().drainNode(gNode2);\n return receivedMags.size() == 1;\n }, 10, TimeUnit.SECONDS);\n }", "@Test\n public void testAddingSinkEventVlanEnabled() throws InterruptedException {\n init(true, VlanId.vlanId(\"4000\"), null);\n\n Set<ConnectPoint> sinks2Cp = new HashSet<ConnectPoint>(Arrays.asList(CONNECT_POINT_B));\n Map<HostId, Set<ConnectPoint>> sinks2 = ImmutableMap.of(HOST_ID_NONE, sinks2Cp);\n\n //Adding the details to create different routes\n previousSubject = McastRouteUpdate.mcastRouteUpdate(route1, sources, sinks);\n currentSubject = McastRouteUpdate.mcastRouteUpdate(route1, sources, sinks2);\n // Creating new mcast event for adding sink\n McastEvent event = new McastEvent(McastEvent.Type.SINKS_ADDED, previousSubject, currentSubject);\n cordMcast.listener.event(event);\n synchronized (forwardMap) {\n forwardMap.wait(WAIT_TIMEOUT);\n }\n // ForwardMap will contain the operation \"Add\" in the flowObjective. None -> CP_B\n assertNotNull(forwardMap.get(DEVICE_ID_OF_A));\n assertEquals(forwardMap.get(DEVICE_ID_OF_A).op(), Objective.Operation.ADD);\n\n // Output port number will be PORT_B i.e. 16\n Collection<TrafficTreatment> traffictreatMentCollection =\n nextMap.get(DEVICE_ID_OF_A).next();\n assertEquals(1, traffictreatMentCollection.size());\n OutputInstruction output = null;\n for (TrafficTreatment trafficTreatment : traffictreatMentCollection) {\n output = outputPort(trafficTreatment);\n }\n assertNotNull(output);\n assertEquals(PORT_B, output.port());\n // Checking the group ip address\n TrafficSelector trafficSelector = forwardMap.get(DEVICE_ID_OF_A).selector();\n IPCriterion ipCriterion = ipAddress(trafficSelector);\n assertNotNull(ipCriterion);\n assertEquals(MULTICAST_IP, ipCriterion.ip().address());\n //checking the vlan criteria\n TrafficSelector meta = forwardMap.get(DEVICE_ID_OF_A).meta();\n VlanIdCriterion vlanIdCriterion = vlanId(meta, Criterion.Type.VLAN_VID);\n assertNotNull(vlanIdCriterion); //since vlanEnabled flag is true\n assertEquals(cordMcast.assignedVlan(), vlanIdCriterion.vlanId());\n VlanIdCriterion innerVlanIdCriterion = vlanId(meta, Criterion.Type.INNER_VLAN_VID);\n assertNull(innerVlanIdCriterion);\n }", "public void createAndRegisterActors(){\n //stressAppNetworkService.getAbstractNetworkServiceList().forEach((type,ns)->{\n stressAppNetworkService.getChatNetworkServicePluginRootList().forEach(ns->{\n //System.out.println(\"Network Service type: \"+type);\n nsPublicKeyMap.put(ns.getPublicKey(), (ChatNetworkServicePluginRoot) ns);\n ((ChatNetworkServicePluginRoot) ns).setMessageReceiver(this);\n int actorCounter = 0;\n for(ActorProfile actor : actorProfileList){\n createAndRegisterActor(actor,(ChatNetworkServicePluginRoot) ns, actorCounter);\n actorCounter++;\n actorsCreated++;\n report(ReportType.ACTOR_CREATED);\n }\n nsStarted++;\n report(ReportType.NS_STARED);\n });\n }", "@Test\n public void testAddingSinkEventInnerVlanEnabled() throws InterruptedException {\n init(true, VlanId.vlanId(\"4000\"), VlanId.vlanId(\"1000\"));\n\n Set<ConnectPoint> sinks2Cp = new HashSet<ConnectPoint>(Arrays.asList(CONNECT_POINT_B));\n Map<HostId, Set<ConnectPoint>> sinks2 = ImmutableMap.of(HOST_ID_NONE, sinks2Cp);\n\n //Adding the details to create different routes\n previousSubject = McastRouteUpdate.mcastRouteUpdate(route1, sources, sinks);\n currentSubject = McastRouteUpdate.mcastRouteUpdate(route1, sources, sinks2);\n // Creating new mcast event for adding sink\n McastEvent event = new McastEvent(McastEvent.Type.SINKS_ADDED, previousSubject, currentSubject);\n cordMcast.listener.event(event);\n synchronized (forwardMap) {\n forwardMap.wait(WAIT_TIMEOUT);\n }\n\n // ForwardMap will contain the operation \"Add\" in the flowObjective. None -> CP_B\n assertNotNull(forwardMap.get(DEVICE_ID_OF_A));\n assertEquals(forwardMap.get(DEVICE_ID_OF_A).op(), Objective.Operation.ADD);\n\n // Output port number will be PORT_B i.e. 16\n Collection<TrafficTreatment> traffictreatMentCollection =\n nextMap.get(DEVICE_ID_OF_A).next();\n assertEquals(1, traffictreatMentCollection.size());\n OutputInstruction output = null;\n for (TrafficTreatment trafficTreatment : traffictreatMentCollection) {\n output = outputPort(trafficTreatment);\n }\n assertNotNull(output);\n assertEquals(PORT_B, output.port());\n // Checking the group ip address\n TrafficSelector trafficSelector = forwardMap.get(DEVICE_ID_OF_A).selector();\n IPCriterion ipCriterion = ipAddress(trafficSelector);\n assertNotNull(ipCriterion);\n assertEquals(MULTICAST_IP, ipCriterion.ip().address());\n //checking the vlan criteria\n TrafficSelector meta = forwardMap.get(DEVICE_ID_OF_A).meta();\n VlanIdCriterion vlanIdCriterion = vlanId(meta, Criterion.Type.VLAN_VID);\n assertNotNull(vlanIdCriterion); //since vlanEnabled flag is true\n assertEquals(cordMcast.assignedVlan(), vlanIdCriterion.vlanId());\n VlanIdCriterion innerVlanIdCriterion = vlanId(meta, Criterion.Type.INNER_VLAN_VID);\n assertNotNull(innerVlanIdCriterion);\n assertEquals(cordMcast.assignedInnerVlan(), innerVlanIdCriterion.vlanId());\n }", "private static List<Message> buildOutMessage(String s) throws Exception {\n Tuple tuple = tupleBuilder(s);\n int ID = tupleToHost(tuple);\n Host host = P1.nets.get(ID);\n List<Message> messageList = new ArrayList<>();\n messageList.add(new OUTMessage(host.getIP(), host.getPort(), tuple, ID, host.getHostName()));\n return messageList;\n }", "public List<MessageSource> createMessageSources(){\n\n List<MessageSource> messageSourceList = new ArrayList<>();\n\n String messageSourceConfig = Configurations.map.getProperty(\"messageSourceChannels\");\n String[] sourceConfigArray = messageSourceConfig.split(\",\");\n\n for(String sourceConfig : sourceConfigArray) {\n MessageSource messageSource = null;\n\n // there is only file message source option for instance, but it's extendable\n if(sourceConfig.equals(\"file\")){\n messageSource = new FileSource();\n }\n\n if(messageSource != null){\n messageSourceList.add(messageSource);\n }\n }\n\n if(messageSourceList.size() == 0){\n return null;\n }\n\n return messageSourceList;\n }", "public void show(){\n System.out.println(\"Sender:\"+_sender);\n System.out.println(\"Receivers:\");\n for(String receiver: _receivers){\n System.out.println(\" - \" + receiver);\n }\n }", "private void sendRegisterTopics(PrintWriter pw)\n {\n if(clientTopicsTable.containsKey(clientSocket))\n {\n sendToClient(pw, \"*topics-\" + clientTopicsTable.get(clientSocket).toString());\n }\n else\n {\n sendToClient(pw,\"*topics-empty\");\n }\n }", "public void addConsumerDestinations(int index, MonitoringDestination value) {\n value.getClass();\n ensureConsumerDestinationsIsMutable();\n this.consumerDestinations_.add(index, value);\n }", "@SuppressWarnings(\"static-access\")\r\n\tpublic void live(TreeMap<Integer, String> nodes) {\n\t\tthis.nodeValue = nodes;\r\n\t\t// update the common object\r\n\t\tpro.incrementClock();\r\n\t\tcsCheck.setClock(pro.getClock());\r\n\t\t\r\n\t\tSctpServerChannel serverChannel = null;\r\n\t\tByteBuffer byteBuffer = ByteBuffer.allocate(MESSAGE_SIZE);\r\n\t\t\r\n\t\t// My port\r\n\t\tString[] mc = nodeValue.get(pro.getPid()).split(\"-\");\r\n\t\tint port = Integer.parseInt(mc[1]);\r\n\t\tSystem.out.println(\"Machine:\"+mc[0]+\", Port:\"+mc[1]);\r\n\ttry{\r\n\t\t\r\n\t\t// Open the server channel\r\n\t\tserverChannel = SctpServerChannel.open();\r\n\t\t\r\n\t\t// socket address at given port\r\n\t\tInetSocketAddress serverAddr = new InetSocketAddress(port);\r\n\t\t// Binding the socket address with channel\r\n\t\tserverChannel.bind(serverAddr);\r\n\t\tSystem.out.println(\"Server Up\");\r\n\t\t// No Termination\t\r\n\t\twhile(true){\t\r\n\t\t// Blocks till the receive event occurs\r\n\t\tSctpChannel sctpCh = serverChannel.accept();\r\n\t\tMessageInfo messageInfo = sctpCh.receive(byteBuffer, null, null);\r\n\t\t\r\n\t\tString messagePart = byteToString(byteBuffer, messageInfo.bytes());\r\n\t\t\r\n\t\t// Clearing to receive message\r\n\t\tbyteBuffer.clear();\r\n\t\t\r\n\t\tString controlMsg = null;\r\n\t\tString[] msg = messagePart.split(\",\");\r\n\t\t\r\n\t\tSystem.out.println(\"Queue in \"+pro.getPid()+\" : \"+pro.getRequestQ());\r\n\t\t\r\n\t\tif(msg[0].equals(\"REQ\")){\r\n\t\t\t// message values\r\n\t\t\tStringBuffer buf = new StringBuffer().append(msg[1]).append(\",\").append(msg[2]);\r\n\t\t\tSystem.out.println(\"GOT REQUEST in \"+pro.getPid()+\" : \"+messagePart);\r\n\t\t\t// priority queue is empty\r\n\t\t\tif(pro.getRequestQ().isEmpty()){\r\n\t\t\t\tpro.setLockP(Integer.parseInt(msg[1]));\r\n\t\t\t\tpro.setLockT(Integer.parseInt(msg[2]));\r\n\t\t\t\tpro.getRequestQ().add(buf.toString());\r\n\t\t\t\tcontrolMsg = new StringBuffer().append(\"LOCK\").append(\",\").append(pro.getPid()).toString();\r\n\t\t\t\tfifo.putFIFO(new StringBuffer().append(nodeValue.get(Integer.parseInt(msg[1]))).append(\"=\").append(controlMsg).toString());\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\tif(pro.getLockT() < Integer.parseInt(msg[2])){\r\n\t\t\t\t\t\tadd(buf.toString(), pro.getRequestQ());\r\n\t\t\t\t\t\tcontrolMsg = new StringBuffer().append(\"FAIL\").append(\",\").append(pro.getPid()).toString();\r\n\t\t\t\t\t\tfifo.putFIFO(new StringBuffer().append(nodeValue.get(Integer.parseInt(msg[1]))).append(\"=\").append(controlMsg).toString());\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(pro.getLockT() > Integer.parseInt(msg[2])){\r\n\t\t\t\t\t\t// lock holder has higher timestamp\r\n\t\t\t\t\t\tadd(buf.toString(), pro.getRequestQ());\r\n\t\t\t\t\t\tif(!inquire){\r\n\t\t\t\t\t\t\tinquire = true;\r\n\t\t\t\t\t\t\tcontrolMsg = new StringBuffer().append(\"INQ\").append(\",\").append(pro.getPid()).toString();\r\n\t\t\t\t\t\t\tfifo.putFIFO(new StringBuffer().append(nodeValue.get(pro.getLockP())).append(\"=\").append(controlMsg).toString());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(pro.getLockT() == Integer.parseInt(msg[2])){\r\n\t\t\t\t\t\t// need to compare process ids\r\n\t\t\t\t\t\tif(pro.getLockP() < Integer.parseInt(msg[1])){\r\n\t\t\t\t\t\t\tadd(buf.toString(), pro.getRequestQ());\r\n\t\t\t\t\t\t\tcontrolMsg = new StringBuffer().append(\"FAIL\").append(\",\").append(pro.getPid()).toString();\r\n\t\t\t\t\t\t\tfifo.putFIFO(new StringBuffer().append( nodeValue.get(Integer.parseInt(msg[1])) ).append(\"=\").append(controlMsg).toString());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(pro.getLockP() > Integer.parseInt(msg[1])){\r\n\t\t\t\t\t\t\t// lock holder has same timestamp but higher process id\r\n\t\t\t\t\t\t\tadd(buf.toString(), pro.getRequestQ());\r\n\t\t\t\t\t\t\tif(!inquire){\r\n\t\t\t\t\t\t\t\tinquire = true;\r\n\t\t\t\t\t\t\t\tcontrolMsg = new StringBuffer().append(\"INQ\").append(\",\").append(pro.getPid()).toString();\r\n\t\t\t\t\t\t\t\tfifo.putFIFO(new StringBuffer().append( nodeValue.get(pro.getLockP()) ).append(\"=\").append(controlMsg).toString());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(pro.getLockP() == Integer.parseInt(msg[1])){\r\n\t\t\t\t\t\t\tthrow new Exception(\"ERROR: Process ids cannot be same\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t} // else part of non-empty requestQ\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\telse if(msg[0].equals(\"REL\")){\r\n\t\t\tSystem.out.println(\"GOT RELEASE in \"+pro.getPid()+\" : \"+messagePart);\r\n\t\t\t\r\n\t\t\tinquire = false;\r\n\t\t\t\r\n\t\t\t// need to find(compare pid) my index in priority queue, then remove it\r\n\t\t\tfor(int i=0; i < pro.getRequestQ().size(); i++){\r\n\t\t\t\tString value = (String)pro.getRequestQ().get(i);\r\n\t\t\t\tString[] temp = value.split(\",\");\r\n\t\t\t\t// Compares ProcessIDs\r\n\t\t\t\tif(temp[0].equals(msg[1])){\r\n\t\t\t\t\tpro.getRequestQ().remove(i);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(pro.getRequestQ().isEmpty()){\r\n\t\t\t\t// No one has request for my lock\r\n\t\t\t\tSystem.out.println(\"No Pending Request in \"+pro.getPid());\r\n\t\t\t\tpro.setRequestQ(new ArrayList<String>());\r\n\t\t\t\tpro.setLockP(-1);\r\n\t\t\t\tpro.setLockT(-1);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tString value = (String) pro.getRequestQ().get(0);\r\n\t\t\t\tString[] temp = value.split(\",\");\r\n\t\t\t\tpro.setLockP(Integer.parseInt(temp[0]));\r\n\t\t\t\tpro.setLockT(Integer.parseInt(temp[1]));\r\n\t\t\t\t// need to send the lock message\r\n\t\t\t\tcontrolMsg = new StringBuffer().append(\"LOCK\").append(\",\").append(pro.getPid()).toString();\r\n\t\t\t\tfifo.putFIFO(new StringBuffer().append( nodeValue.get(pro.getLockP()) ).append(\"=\").append(controlMsg).toString());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telse if(msg[0].equals(\"YIELD\")){\r\n\t\t\tSystem.out.println(\"GOT YIELD in \"+pro.getPid()+\" : \"+messagePart);\r\n\t\t\tinquire = false;\r\n\t\t\tString value = (String) pro.getRequestQ().get(0);\r\n\t\t\tString[] temp = value.split(\",\");\r\n\t\t\t// overriding the Lock values\r\n\t\t\tpro.setLockP(Integer.parseInt(temp[0]));\r\n\t\t\tpro.setLockT(Integer.parseInt(temp[1]));\r\n\t\t\tcontrolMsg = new StringBuffer().append(\"LOCK\").append(\",\").append(pro.getPid()).toString();\r\n\t\t\tfifo.putFIFO(new StringBuffer().append( nodeValue.get(pro.getLockP()) ).append(\"=\").append(controlMsg).toString());\r\n\t\t}\r\n\t\t\r\n\t\telse if(msg[0].equals(\"LOCK\")){\r\n\t\t\tSystem.out.println(\"GOT LOCK in \"+pro.getPid()+\" : \"+messagePart);\r\n\t\t\t// Process Clock incremented\r\n\t\t\tpro.incrementClock();\r\n\t\t\tcsCheck.setClock(pro.getClock());\r\n\t\t\tif(fails.contains(Integer.parseInt(msg[1]))){\r\n\t\t\t\tfails.remove(fails.indexOf(Integer.parseInt(msg[1])));\r\n\t\t\t}\r\n\t\t\tlockQueue.add(Integer.parseInt(msg[1]));\r\n\t\t\t// if I get the locks from all my quorum members\r\n\t\t\tif(lockQueue.size() == pro.getQuorum().size()){\r\n\t\t\t\tcsCheck.setCritical(true);\r\n\t\t\t\t//critical = true;\r\n\t\t\t\tif(fails.size() == 0){\r\n\t\t\t\t\tSystem.out.println(\"No Fail Message and Critical Set\");\r\n\t\t\t\t\t// Resetting the fails queue\r\n\t\t\t\t\tfails = new ArrayList<Integer>();\r\n\t\t\t\t\tSystem.out.println(\"Going for CS : \"+pro.getPid());\r\n\t\t\t\t\t// Notifies the cs_thread\r\n\t\t\t\t\tcsCheck.set(csCheck.getCsClock(), csCheck.getClock());\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telse if(msg[0].equals(\"GO\")){\r\n\t\t\tSystem.out.println(\"GOT GO in \"+pro.getPid()+\" : \"+messagePart);\r\n\t\t\t// Check if myself\r\n\t\t\tif(pro.getPid() == Integer.parseInt(msg[3])){\r\n\t\t\t\t\r\n\t\t\t\t// PHASE ONE\r\n\t\t\t\tcsTime.add(new StringBuffer().append(msg[1]).append(\":\").append(msg[2]).toString());\r\n\t\t\t\t// Sending REL to my QUORUM\r\n\t\t\t\tThread.currentThread().sleep(2000);\r\n\t\t\t\tfor(int i = 0; i < pro.getQuorum().size(); i++){\r\n\t\t\t\t\tcontrolMsg = new StringBuffer().append(\"REL\").append(\",\").append(pro.getPid()).toString();\r\n\t\t\t\t\tfifo.putFIFO(new StringBuffer().append( nodeValue.get(pro.getQuorum().get(i)) ).append(\"=\").append(controlMsg).toString());\r\n\t\t\t\t}\r\n\t\t\t\tlockQueue = new ArrayList<Integer>();\r\n\t\t\t\tcsCheck.Critical(false);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t// Keeping the latest csClock\r\n\t\t\t\tcsCheck.setCsClock(max( csCheck.getCsClock(),Integer.parseInt(msg[2]) ) + 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telse if(msg[0].equals(\"INQ\")){\r\n\t\t\tSystem.out.println(\"GOT INQUIRE in \"+pro.getPid()+\" : \"+messagePart);\r\n\t\t\t// Process Clock incremented\r\n\t\t\tpro.incrementClock();\r\n\t\t\tcsCheck.setClock(pro.getClock());\r\n\t\t\tif(csCheck.getCritical()){\r\n\t\t\t\t// When I am in critical section, discard INQ message, do not respond\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif( !fails.isEmpty() ){\r\n\t\t\t\t\tSystem.out.println(\"Lock Queue in \"+pro.getPid()+\" : \"+lockQueue);\r\n\t\t\t\t\t// Cannot have same process in both fails and lockQueue, I can only YIELD for lock that I have.\r\n\t\t\t\t\tif( lockQueue.contains(Integer.parseInt(msg[1])) && !fails.contains(Integer.parseInt(msg[1]))){\r\n\t\t\t\t\t\t// decrement counter, as held Lock is being given away\r\n\t\t\t\t\t\t//lockCount--;\r\n\t\t\t\t\t\tlockQueue.remove(lockQueue.indexOf(Integer.parseInt(msg[1])));\r\n\t\t\t\t\t\t// need to send the yield message\r\n\t\t\t\t\t\tcontrolMsg = new StringBuffer().append(\"YIELD\").append(\",\").append(pro.getPid()).toString();\r\n\t\t\t\t\t\tfifo.putFIFO(new StringBuffer().append( nodeValue.get(Integer.parseInt(msg[1])) ).append(\"=\").append(controlMsg).toString());\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\t// Haven't received any FAIL messages\r\n\t\t\t\t\t// Do not yield then\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// When I get FAIL message, behave as PROCESS\r\n\t\telse if(msg[0].equals(\"FAIL\")){\r\n\t\t\tSystem.out.println(\"GOT FAILED in \"+pro.getPid()+\" : \"+messagePart);\r\n\t\t\t// Process Clock incremented\r\n\t\t\tpro.incrementClock();\r\n\t\t\tcsCheck.setClock(pro.getClock());\r\n\t\t\t// Add the processID who sent me FAIL message, no duplicate ProcessIDS - ASSUMPTION\r\n\t\t\t// Keeps the check for corresponding processes who sent me FAIL messages\r\n\t\t\t// On receiving LOCK from them I should remove them from Fail List\r\n\t\t\tfails.add(Integer.parseInt(msg[1]));\r\n\t\t\tif(lockQueue.contains(Integer.parseInt(msg[1]))){\r\n\t\t\t\tSystem.out.println(\"Error : *************** Cannot be contained both in Lock and Fail queues ********************\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telse if(msg[0].equals(\"INFO\")){\r\n\t\t\tSystem.out.println(\"GOT CS INFO in \"+pro.getPid()+\" : \"+messagePart);\r\n\t\t\tStringBuffer buffer = null;\r\n\t\t\tif(!csTime.isEmpty()){\r\n\t\t\t\tbuffer = new StringBuffer().append(\"TIME\").append(\",\").append(pro.getPid());\r\n\t\t\t\tfor(String i : csTime){\r\n\t\t\t\t\tbuffer.append(\",\").append(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tbuffer = new StringBuffer().append(\"TIME\").append(\",\").append(pro.getPid()).append(\",\").append(\"-1\");\r\n\t\t\t}\r\n\t\t\tfifo.putFIFO(new StringBuffer().append( nodeValue.get( Integer.parseInt(msg[1]) ) ).append(\"=\").append(buffer.toString()).toString());\r\n\t\t}\r\n\t\t\r\n\t\telse if(msg[0].equals(\"TIME\")){\r\n\t\t\tSystem.out.println(\"GOT CS TIME in \"+pro.getPid()+\" : \"+messagePart);\r\n\t\t\ttimeCounter++;\r\n\t\t\tif(msg[2].equals(\"-1\"))\r\n\t\t\t{\r\n\t\t\t\tif(timeCounter==nodeValue.size()){\r\n\t\t\t\t\tSystem.out.println(\"***** No Critical Section Executed *****\");\r\n\t\t\t\t\ttimeCounter = 0;\r\n\t\t\t\t}\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tfor(int i=2; i<msg.length ;i++)\r\n\t\t\t{\r\n\t\t\t\ttimeBasket.add(msg[i]);\r\n\t\t\t\tpid.add(Integer.parseInt(msg[1]));\r\n\t\t\t}\r\n\t\t\tif(timeCounter==nodeValue.size())\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"TimeBasket and Pid\");\r\n\t\t\t\tfor(int i=0; i< timeBasket.size(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(timeBasket.get(i)+\",\");\r\n\t\t\t\t\tSystem.out.print(pid.get(i)+\",\");\r\n\t\t\t\t}\r\n\t\t\t\ttimeCounter = 0;\r\n\t\t\t\t// Verification Can be given to different Thread for computation\r\n\t\t\t\tverify(timeBasket, pid);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\telse if(msg[0].equals(\"DONE\")){\r\n\t\t\tdone++;\r\n\t\t\tif(done == nodeValue.size()){\r\n\t\t\t\tSystem.out.println(\"Terminating : \"+pro.getPid());\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t} // end of While\r\n\t}\r\n\tcatch(Exception e){\r\n\t\te.printStackTrace();\r\n\t}\r\n}", "public List getTargetConnections() {\n return new ArrayList(targetConnections);\n }", "com.nhcsys.webservices.getmessages.getmessagestypes.v1.MessageDestinationType addNewTo();", "public void anycast(Set<P2PUser> dests, Object msg);", "public void Gossipalgorithm() {\n\t\tint T = numofConnections();\n\t\tint t = 0;\n\t\tint rounds = 0;\n\t\tint size = Sizeofnetwork();\n\t\tint connections;\n\t\tString[] nodeswithMessage, nodetorecieve;\n\t\tnodeswithMessage = new String [size];\n\t\t\n\t\tArrays.fill(nodeswithMessage, \"null\");\n\t\t\n\t\t//while the number of nodes with message is not equal to the number of nodes\n\t\twhile ((rounds != size)) {\n\t\t\tconnections = 0;\n\t\t\tnumofnodewithmessage = 0;\n\t\t\tint ab = 0;\n\t\t\t//update on which nodes has recieved the message\n\t\t\tArrays.fill(nodeswithMessage, \"null\");\n\t\t\tfor (String nodes : Push.outputNodes) {\n\t\t\t\tnodeswithMessage[ab] = nodes;\n\t\t\t\tab++;\n\t\t\t}\n\t\t\t//how many nodes has recieved message\n\t\t\tfor (int l=0; l<nodeswithMessage.length; l++) {\n\t\t\t\tif(!nodeswithMessage[l].equals(\"null\")) {\n\t\t\t\t\tnumofnodewithmessage++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//set array to host nodes with message\n\t\t\tnodetorecieve = new String[numofnodewithmessage];\n\t\t\tint flip = 0;\n\t\t\tfor (int a = 0; a < nodeswithMessage.length; a++) {\n\t\t\t\tif (!nodeswithMessage[a].equals(\"null\")) {\n\t\t\t\t\tnodetorecieve[flip] = nodeswithMessage[a];\n\t\t\t\t\tflip++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//for all the nodes with message, randomly choose a node in its connected nodes mapping, specified in the \n\t\t\t//Nodeswithconnect Hashmap to send the message to\n\t\t\tfor (int i = 0; i < nodetorecieve.length; i++) {\n\t\t\t\tconnections = 0;\n\t\t\t\tfor (int p=0; p < (Nodeswithconnect.get(nodetorecieve[i])).length; p++) {\n\t\t\t\t\tconnections++;\n\t\t\t\t}\n\t\t\t\tint rand = new Random().nextInt(connections);\n\t\t\t\tnetworkk.setMessage(Nodeswithconnect.get(nodetorecieve[i])[rand]);\n\t\t\t\t\n\t\t\t}\n\t\t\t//update the number of nodes with message.\n\t\t\trounds = numofnodewithmessage;\n\t\t\t//delay for some interval\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\t\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void recieveGossip(GossipData gossipData) {\n\t\t\n\t\tfor(NodeData data : gossipData.BEnodes) {\n\t\t\tm_BEnodesList.addIfAbsent(data);\n\t\t}\n\t\t\n\t\t//FEServer.print(\"New BE node list:\");\n\t\t//printBEnodesList();\n\t\t\n\t\t\n\t\t//FEServer.print(\"Old FE node list:\");\n\t\t//printFEnodesList();\n\t\t\n\t\tfor(NodeData data : gossipData.FEnodes) {\n\t\t\tm_FEnodesList.addIfAbsent(data);\n\t\t}\n\t\t\n\t\t//FEServer.print(\"New FE node list:\");\n\t\t//printFEnodesList();\n\t\t\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.502 -0500\", hash_original_method = \"6B74CB8285045DC3058688AFD39174C7\", hash_generated_method = \"D21EC7D6F55E6DDB571DC2CC93C25E59\")\n \npublic void connected(Context srcContext, Handler srcHandler, Messenger dstMessenger) {\n if (DBG) log(\"connected srcHandler to the dstMessenger E\");\n\n // Initialize source fields\n mSrcContext = srcContext;\n mSrcHandler = srcHandler;\n mSrcMessenger = new Messenger(mSrcHandler);\n\n // Initialize destination fields\n mDstMessenger = dstMessenger;\n\n if (DBG) log(\"connected srcHandler to the dstMessenger X\");\n }", "private void connectingPeer() {\n for (int index = 0; index < this.peers.size(); index++) {\n String peerUrl = urlAdderP2PNodeName((String) this.peers.get(index));\n try {\n Node distNode = NodeFactory.getNode(peerUrl);\n P2PService peer = (P2PService) distNode.getActiveObjects(P2PService.class.getName())[0];\n \n if (!peer.equals(this.localP2pService)) {\n // Send a message to the remote peer to record me\n peer.register(this.localP2pService);\n // Add the peer in my group of acquaintances\n this.acqGroup.add(peer);\n }\n } catch (Exception e) {\n logger.debug(\"The peer at \" + peerUrl +\n \" couldn't be contacted\", e);\n }\n }\n }", "private void addLinkesToGraph()\n\t{\n\t\tString from,to;\n\t\tshort sourcePort,destPort;\n\t\tMap<Long, Set<Link>> mapswitch= linkDiscover.getSwitchLinks();\n\n\t\tfor(Long switchId:mapswitch.keySet())\n\t\t{\n\t\t\tfor(Link l: mapswitch.get(switchId))\n\t\t\t{\n\t\t\t\tfrom = Long.toString(l.getSrc());\n\t\t\t\tto = Long.toString(l.getDst());\n\t\t\t\tsourcePort = l.getSrcPort();\n\t\t\t\tdestPort = l.getDstPort();\n\t\t\t\tm_graph.addEdge(from, to, Capacity ,sourcePort,destPort);\n\t\t\t} \n\t\t}\n\t\tSystem.out.println(m_graph);\n\t}", "public void listSubscribedTopics() {\r\n for (Topic topic : subscriberTopics){\r\n System.out.print(topic);\r\n }\r\n }", "public SJSendNode_c(Position pos, String target, TypeNode/*List*/ messageType)\r\n\t{\r\n\t super(pos, messageType/*null*/); //MQTODO: the null parameter must be substituted. This paramter should pass messageType\r\n\t this.target = target;\r\n\t}", "void transferOwnerShipToUser(List<String> list, String toEmail);", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.500 -0500\", hash_original_method = \"D9A9DAD002038F54D59084B945A008ED\", hash_generated_method = \"4C9173AD3605BE46EEB06DBE1A2B9E52\")\n \npublic void connect(Context srcContext, Handler srcHandler, Messenger dstMessenger) {\n if (DBG) log(\"connect srcHandler to the dstMessenger E\");\n\n // We are connected\n connected(srcContext, srcHandler, dstMessenger);\n\n // Tell source we are half connected\n replyHalfConnected(STATUS_SUCCESSFUL);\n\n if (DBG) log(\"connect srcHandler to the dstMessenger X\");\n }", "public static void main(String[] args) throws JMSException, IOException {\n JmsFactoryFactory jmsFact = JmsFactoryFactory.getInstance();\n\n // Create a JMS destination\n Destination dest;\n\n // Create JMS queue\n JmsQueue queue = jmsFact.createQueue(QUEUE_NAME);\n dest = queue;\n\n // Create a unified JMS connection factory\n JmsConnectionFactory connFact = jmsFact.createConnectionFactory();\n\n // Configure the connection factory\n connFact.setBusName(BUS_NAME);\n connFact.setProviderEndpoints(JMS_ENDPOINT);\n\n // Create the connection\n Connection conn = connFact.createConnection();\n\n Session session = null;\n MessageProducer producer = null;\n MessageConsumer consumer = null;\n try {\n\n // Create a session\n session = conn.createSession(false, // Not transactional\n Session.AUTO_ACKNOWLEDGE);\n\n // Create a message producer\n producer = session.createProducer(dest);\n consumer = session.createConsumer(dest);\n\n // Loop reading lines of text from the console to send\n System.out.println(\"Ready to send to \" + dest + \" on bus \" + BUS_NAME);\n BufferedReader lineInput = new BufferedReader(new InputStreamReader(System.in));\n String line = lineInput.readLine();\n\n TextMessage message = session.createTextMessage();\n message.setText(line);\n\n // Send the message\n producer.send(message,\n Message.DEFAULT_DELIVERY_MODE,\n Message.DEFAULT_PRIORITY,\n Message.DEFAULT_TIME_TO_LIVE);\n\n // should start the connection to receive messages\n conn.start();\n Message msg = consumer.receiveNoWait();\n System.out.println(\"Consumed a message from queue\");\n if (msg != null) {\n msg.acknowledge();\n System.out.println(msg.toString());\n } else System.out.println(\"null msg\");\n\n }\n // Finally block to ensure we close our JMS objects\n finally {\n\n // Close the message producer\n try {\n if (producer != null) producer.close();\n if (consumer != null) consumer.close();\n } catch (JMSException e) {\n System.err.println(\"Failed to close message producer: \" + e);\n }\n\n // Close the session\n try {\n if (session != null) session.close();\n } catch (JMSException e) {\n System.err.println(\"Failed to close session: \" + e);\n }\n\n // Close the connection\n try {\n conn.close();\n } catch (JMSException e) {\n System.err.println(\"Failed to close connection: \" + e);\n }\n\n }\n }", "protected void listClients() {\r\n\t\tif (smscListener != null) {\r\n\t\t\tsynchronized (processors) {\r\n\t\t\t\tint procCount = processors.count();\r\n\t\t\t\tif (procCount > 0) {\r\n\t\t\t\t\tSimulatorPDUProcessor proc;\r\n\t\t\t\t\tfor (int i = 0; i < procCount; i++) {\r\n\t\t\t\t\t\tproc = (SimulatorPDUProcessor) processors.get(i);\r\n\t\t\t\t\t\tSystem.out.print(proc.getSystemId());\r\n\t\t\t\t\t\tif (!proc.isActive()) {\r\n\t\t\t\t\t\t\tSystem.out.println(\" (inactive)\");\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"No client connected.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"You must start listener first.\");\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic String toString () {\n\t\treturn \"|AListPQueue: \" + aPList.toString() + \"|\";\r\n\t}", "public void sendDataToCrQueue() {\n List<Shares> sharesList = new ArrayList<>();\n amqpTemplate.convertAndSend(\"queueTestKey\", sharesList);\n }", "private List<String> prepareToPrint(List<String[]> beacon, List<String[]> receiver, String[] destination){\n\n List<String> list = new ArrayList<>();\n boolean destinationAdded = false;\n\n Iterator<String[]> it = receiver.iterator();\n for(String [] oneBeacon : beacon) {\n String s = \"\";\n String[] receiverElementList = it.next();\n //i = 1 to skip the id\n for(int i = 1; i < receiverElementList.length; i++){\n s = s + receiverElementList[i] + \",\";\n }\n\n s += oneBeacon[1].trim()+\",\"+oneBeacon[2].trim();\n if(!destinationAdded){\n s += \",\"+destination[0]+\",\"+destination[1];\n destinationAdded = true;\n }\n list.add(s);\n }\n //adding one more time the position of the first beacon in order to plot a triangle\n if(it.hasNext()){\n String s = \"\";\n String[] receiverElementList = it.next();\n String[] oneBeacon = beacon.get(0);\n for(int i = 1; i < receiverElementList.length; i++){\n s = s + receiverElementList[i] + \",\";\n }\n\n s += oneBeacon[1].trim()+\",\"+oneBeacon[2].trim();\n list.add(s);\n }\n\n while(it.hasNext()){\n String[] receiverElementList = it.next();\n String s = \"\";\n for(int i = 1; i < receiverElementList.length; i++){\n s = s + receiverElementList[i]+\",\";\n }\n\n list.add(s.substring(0,s.length()-1));\n\n }\n return list;\n }", "public void sendMessage2Client(String msg){\n\t\t\t\n\t\t\toutPrintStream.println(msg);\n\t\t\t\n\t\t}", "public MessageProcessorDistributor() {\n this.messageProcessors = new LinkedList<MessageProcessor>();\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.507 -0500\", hash_original_method = \"AB6DAC74FF8B2E5B9FEB974F6DCFF3D6\", hash_generated_method = \"87BDA9A9972ECA7310DB39F217B483FA\")\n \npublic void connect(AsyncService srcAsyncService, Messenger dstMessenger) {\n connect(srcAsyncService, srcAsyncService.getHandler(), dstMessenger);\n }", "private void fourNodesTopo() {\n ReadWriteTransaction tx = dataBroker.newReadWriteTransaction();\n n(tx, true, \"n1\", Stream.of(pB(\"n1:1\"), pB(\"n1:2\"), pI(\"n1:3\"), pO(\"n1:4\"), pO(\"n1:5\")));\n n(tx, true, \"n2\", Stream.of(pB(\"n2:1\"), pB(\"n2:2\"), pO(\"n2:3\"), pI(\"n2:4\"), pI(\"n2:5\")));\n n(tx, true, \"n3\", Stream.of(pB(\"n3:1\"), pB(\"n3:2\"), pO(\"n3:3\"), pO(\"n3:4\"), pI(\"n3:5\")));\n n(tx, true, \"n4\", Stream.of(pB(\"n4:1\"), pB(\"n4:2\"), pI(\"n4:3\"), pI(\"n4:4\"), pO(\"n4:5\")));\n l(tx, \"n1\", \"n1:5\", \"n2\", \"n2:5\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n1\", \"n1:4\", \"n4\", \"n4:4\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n2\", \"n2:3\", \"n4\", \"n4:3\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n3\", \"n3:4\", \"n2\", \"n2:4\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n4\", \"n4:5\", \"n3\", \"n3:5\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n try {\n tx.submit().checkedGet();\n } catch (TransactionCommitFailedException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws Exception {\n DefaultMQProducer producer = new\n DefaultMQProducer(\"producer1\");\n //Launch the instance.\n producer.setNamesrvAddr(\"192.168.0.159:9876\");\n\n producer.start();\n for (int i = 0; i < 2000; i++) {\n //Create a message instance, specifying topic, tag and message body.\n Message msg = new Message(\"test111\" /* Topic */,\n \"TagA\" /* Tag */,\n (\"{\\\"_db_\\\":\\\"order_service\\\",\\\"_table_\\\":\\\"order_base\\\",\\\"_event_\\\":\\\"row_insert\\\",\\\"order_id\\\":\\\"1\" + i +\"\\\",\\\"order_from\\\":\\\"rocketmq\\\",\\\"order_no\\\":\\\"P12311111\\\",\" +\n \"\\\"category\\\":\\\"1\\\",\\\"serve_type\\\":\\\"2\\\",\\\"account_id\\\":\\\"\\\",\\\"account_type\\\":\\\"\\\",\\\"order_status\\\":\\\"\\\",\\\"region_id\\\":\\\"\\\",\\\"appoint_method\\\":\\\"\\\",\\\"sp_type\\\":\\\"\\\",\\\"order_type\\\":\\\"\\\",\\\"is_delete\\\":\\\"\\\",\\\"refund_status\\\":\\\"\\\",\\\"order_pay_status\\\":\\\"\\\",\\\"is_logistics\\\":\\\"\\\",\\\"repair_type\\\":\\\"\\\",\\\"is_return\\\":\\\"\\\",\\\"create_time\\\":\\\"\\\",\\\"update_time\\\":\\\"\\\"}\").getBytes(RemotingHelper.DEFAULT_CHARSET) /* Message body */\n );\n //Call send message to deliver message to one of brokers.\n SendResult sendResult = producer.send(msg);\n System.out.printf(\"%s%n\", sendResult);\n }\n //Shut down once the producer instance is not longer in use.\n producer.shutdown();\n }", "private void sendGMToAll(String msg){\r\n for(ClientHandler ch: clientThreads){\r\n try{\r\n //Get the client's ObjectOutputStream\r\n ObjectOutputStream oos = ch.getOOS();\r\n //Print the message to the client\r\n oos.writeObject(new DataWrapper(0, msg, true));\r\n } catch(IOException ioe) {\r\n System.out.println(\"IOException occurred: \" + ioe.getMessage());\r\n ioe.printStackTrace();\r\n }\r\n }\r\n }", "private void sendMessage(Collection<? extends ClusterNode> nodes, GridTopic topic,\n GridEventStorageMessage msg, byte plc) throws IgniteCheckedException {\n ClusterNode locNode = F.find(nodes, null, F.localNode(ctx.localNodeId()));\n\n Collection<? extends ClusterNode> rmtNodes = F.view(nodes, F.remoteNodes(ctx.localNodeId()));\n\n if (locNode != null)\n ctx.io().sendToGridTopic(locNode, topic, msg, plc);\n\n if (!rmtNodes.isEmpty()) {\n msg.responseTopicBytes(U.marshal(marsh, msg.responseTopic()));\n\n ctx.io().sendToGridTopic(rmtNodes, topic, msg, plc);\n }\n }", "public java.lang.String toString()\r\n\t{\r\n\t\tString output;\r\n\t\t\r\n\t\toutput = sourceActor + \" to \" + destinationActor + \" via \" + movieNameConnection;\r\n\t\t\t\t\t\t\t\t\r\n\t\treturn output;\t\r\n\t}", "private Sink getSink(int node_id, int dvn) {\n\n\t\t// address of Mote\n\t\tString addr = new MoteAddrStrategy().execute(new int[] { node_id }, 0);\n\t\treturn dao.getSinkDAO().mergeSink(addr, dvn);\n\n\t}", "public List getSourceConnections() {\n return new ArrayList(sourceConnections);\n }", "public static void sendCoordinatorMsg() {\n int numberOfRequestsNotSent = 0;\n for ( int key : ServerState.getInstance().getServers().keySet() ) {\n if ( key != ServerState.getInstance().getSelfID() ){\n Server destServer = ServerState.getInstance().getServers().get(key);\n\n try {\n MessageTransfer.sendServer(\n ServerMessage.getCoordinator( String.valueOf(ServerState.getInstance().getSelfID()) ),\n destServer\n );\n System.out.println(\"INFO : Sent leader ID to s\"+destServer.getServerID());\n }\n catch(Exception e) {\n numberOfRequestsNotSent += 1;\n System.out.println(\"WARN : Server s\"+destServer.getServerID()+\n \" has failed, it will not receive the leader\");\n }\n }\n }\n if( numberOfRequestsNotSent == ServerState.getInstance().getServers().size()-1 ) {\n // add self clients and chat rooms to leader state\n List<String> selfClients = ServerState.getInstance().getClientIdList();\n List<List<String>> selfRooms = ServerState.getInstance().getChatRoomList();\n\n for( String clientID : selfClients ) {\n LeaderState.getInstance().addClientLeaderUpdate( clientID );\n }\n\n for( List<String> chatRoom : selfRooms ) {\n LeaderState.getInstance().addApprovedRoom( chatRoom.get( 0 ),\n chatRoom.get( 1 ), Integer.parseInt(chatRoom.get( 2 )) );\n }\n\n leaderUpdateComplete = true;\n }\n }", "private void sendToNodes(Sm.RetrieveChunkResponse chunkResponse, ArrayList<Sm.StorageNode> toSend) {\n\n System.out.println(\"Nodes to send to: \" + toSend);\n\n if (toSend.size() != 0) {\n EventLoopGroup workerGroup = new NioEventLoopGroup();\n PatrolMessagePipeline pipeline = new PatrolMessagePipeline();\n Bootstrap bootstrap = new Bootstrap()\n .group(workerGroup)\n .channel(NioSocketChannel.class)\n .option(ChannelOption.SO_KEEPALIVE, true)\n .handler(pipeline);\n\n// for (Sm.StorageNode node: toSend) {\n\n //create StoreChunkRequest\n Sm.StoreChunk chunk = Sm.StoreChunk.newBuilder()\n .setFileName(chunkResponse.getFilename())\n .setChunkId(chunkResponse.getChunkId())\n .setChunkSize(chunkResponse.getChunkSize())\n .setData(chunkResponse.getData())\n .setChunkName(chunkResponse.getChunkName())\n .build();\n\n Sm.StorageNodes nodes = Sm.StorageNodes.newBuilder()\n .addAllNodeList(toSend)\n .build();\n\n Sm.StorageNode primary = toSend.get(0);\n System.out.println(\"Primary: \" + primary.getIp());\n System.out.println(\"Primary: \" + primary.getPort());\n\n //Connect to the first replica\n ChannelFuture cf = bootstrap.connect(primary.getIp(), primary.getPort());\n cf.syncUninterruptibly();\n\n //Prepare Request & Wrap\n Sm.StoreChunkRequest request = Sm.StoreChunkRequest.newBuilder()\n .setChunk(chunk)\n .setNodes(nodes)\n .build();\n\n Sm.StorageMessageWrapper msgWrapper = Sm.StorageMessageWrapper.newBuilder()\n .setScRequest(request)\n .build();\n\n //Send\n Channel chan = cf.channel();\n PatrolInboundHandler handler = chan.pipeline().get(PatrolInboundHandler.class);\n Sm.StorageMessageWrapper response = handler.request(msgWrapper);\n\n if (response.getScResponse().getSuccess()) {\n System.out.println(\"StoreChunk successful?: \" + response.getScResponse().getSuccess());\n Controller.getInstance().updateReplicasAndChunkNames(toSend, chunk.getChunkName());\n }\n\n workerGroup.shutdownGracefully();\n }\n }", "private void fiveNodesTopo() {\n ReadWriteTransaction tx = dataBroker.newReadWriteTransaction();\n n(tx, true, \"n1\", Stream.of(pI(\"n1:1\"), pB(\"n1:2\"), pI(\"n1:3\"), pO(\"n1:4\")));\n n(tx, true, \"n2\", Stream.of(pI(\"n2:1\"), pB(\"n2:2\"), pO(\"n2:3\"), pI(\"n2:4\")));\n n(tx, true, \"n3\", Stream.of(pO(\"n3:1\"), pB(\"n3:2\"), pO(\"n3:3\"), pI(\"n3:4\")));\n n(tx, true, \"n4\", Stream.of(pO(\"n4:1\"), pI(\"n4:2\"), pB(\"n4:3\"), pB(\"n4:4\")));\n n(tx, true, \"n5\", Stream.of(pI(\"n5:1\"), pB(\"n5:2\"), pB(\"n5:3\"), pO(\"n5:4\")));\n l(tx, \"n2\", \"n2:3\", \"n3\", \"n3:4\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n3\", \"n3:1\", \"n1\", \"n1:1\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n3\", \"n3:3\", \"n5\", \"n5:1\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n4\", \"n4:1\", \"n1\", \"n1:3\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n1\", \"n1:4\", \"n2\", \"n2:4\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n5\", \"n5:4\", \"n4\", \"n4:2\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n try {\n tx.submit().checkedGet();\n } catch (TransactionCommitFailedException e) {\n e.printStackTrace();\n }\n }", "protected void handleOutboundMessage(Object msg) {\n/* 741 */ outboundMessages().add(msg);\n/* */ }", "protected void deliverMessages()\n {\n Set<Envelope> envelopes = messengerDao.getEnvelopes();\n\n Map<String, Set<Envelope>> peerEnvelopesMap = Maps.newHashMap();\n int maxTimeToLive = 0;\n //distribute envelops to peers\n for ( Envelope envelope : envelopes )\n {\n if ( envelope.getTimeToLive() > maxTimeToLive )\n {\n maxTimeToLive = envelope.getTimeToLive();\n }\n Set<Envelope> peerEnvelopes = peerEnvelopesMap.get( envelope.getTargetPeerId() );\n if ( peerEnvelopes == null )\n {\n //sort by createDate asc once more\n peerEnvelopes = new TreeSet<>( new Comparator<Envelope>()\n {\n @Override\n public int compare( final Envelope o1, final Envelope o2 )\n {\n return o1.getCreateDate().compareTo( o2.getCreateDate() );\n }\n } );\n peerEnvelopesMap.put( envelope.getTargetPeerId(), peerEnvelopes );\n }\n\n peerEnvelopes.add( envelope );\n }\n\n\n //try to send messages in parallel - one thread per peer\n try\n {\n for ( Map.Entry<String, Set<Envelope>> envelopsPerPeer : peerEnvelopesMap.entrySet() )\n {\n Peer targetPeer = messenger.getPeerManager().getPeer( envelopsPerPeer.getKey() );\n if ( targetPeer.isLocal() )\n {\n completer.submit(\n new LocalPeerMessageSender( messenger, messengerDao, envelopsPerPeer.getValue() ) );\n }\n else\n {\n completer.submit(\n new RemotePeerMessageSender( messengerDao, targetPeer, envelopsPerPeer.getValue() ) );\n }\n }\n\n //wait for completion\n try\n {\n for ( int i = 0; i < peerEnvelopesMap.size(); i++ )\n {\n Future<Boolean> future = completer.take();\n future.get();\n }\n }\n catch ( InterruptedException | ExecutionException e )\n {\n LOG.warn( \"ignore\", e );\n }\n }\n catch ( PeerException e )\n {\n LOG.error( e.getMessage(), e );\n }\n }", "public List<PeerInfo> getSealerAndObserverList(int groupId) {\n log.debug(\"start getSealerAndObserverList groupId:{}\", groupId);\n List<String> sealerList = frontInterface.getSealerList(groupId);\n List<String> observerList = frontInterface.getObserverList(groupId);\n List<PeerInfo> resList = new ArrayList<>();\n sealerList.stream().forEach(nodeId -> resList.add(new PeerInfo(nodeId)));\n observerList.stream().forEach(nodeId -> resList.add(new PeerInfo(nodeId)));\n log.debug(\"end getSealerAndObserverList resList:{}\", resList);\n return resList;\n }", "public abstract List<String> associateAddresses(NodeMetadata node);", "private void initializeProducers(ComponentContext context) {\n BrokerHost rfHost;\n Properties prop = MQUtil.getProp(context);\n if (prop == null) {\n log.error(\"RabbitMQ configuration file not found...\");\n return;\n }\n try {\n correlationId = prop.getProperty(SENDER_COR_ID);\n rfHost = new BrokerHost(MQUtil.getMqUrl(\n prop.getProperty(SERVER_PROTO),\n prop.getProperty(SERVER_UNAME),\n prop.getProperty(SERVER_PWD),\n prop.getProperty(SERVER_ADDR),\n prop.getProperty(SERVER_PORT),\n prop.getProperty(SERVER_VHOST)));\n\n manageSender = registerProducer(rfHost,\n MQUtil.rfProducerChannelConf(\n prop.getProperty(SENDER_EXCHG),\n prop.getProperty(ROUTE_KEY),\n prop.getProperty(SENDER_QUEUE)),\n msgOutQueue);\n } catch (Exception e) {\n throw new IllegalStateException(e);\n }\n manageSender.start();\n }", "private void setupCollector() {\n outList = new ArrayList<>();\n }", "java.util.List<PCommon_Base.CommonBase.NetTransferMsg> \n getNetTransferMsgsList();", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.505 -0500\", hash_original_method = \"30351ACDB73035A90D0CFF564E4380CE\", hash_generated_method = \"48DADB4CE0ACD3C0C678FBD72552DA66\")\n \npublic void connect(Context srcContext, Handler srcHandler, Handler dstHandler) {\n connect(srcContext, srcHandler, new Messenger(dstHandler));\n }", "@Override\n public String generateRouter(String routeJsonStr) {\n if(routeJsonStr.isEmpty()) return null;\n pubSubJson = new JSONObject();\n topicJson = new JSONObject();\n JSONObject routerObj = JSONObject.parseObject(routeJsonStr);\n for (Map.Entry<String, Object> entry : routerObj.entrySet()) {\n String deviceName = entry.getKey();\n List<Map<String,Object>> routerList =(List<Map<String,Object>>) entry.getValue();\n for(Map<String,Object> routerInstance:routerList) {\n String moduleName = routerInstance.get(\"moduleName\").toString();\n List nextRoute = (List<Map<String, Object>>) routerInstance.get(\"next\");\n getNextRoute(nextRoute, moduleName, deviceName);\n }\n }\n\n /*JSONArray jsonArray = JSONObject.parseArray(routeJsonStr);\n for (Iterator iterator = jsonArray.iterator(); iterator.hasNext(); ) {\n JSONObject jsonObject = (JSONObject) iterator.next();\n String deviceName = jsonObject.getString(\"deviceName\");\n JSONObject routeObj = jsonObject.getJSONObject(\"route\");\n String moduleName = routeObj.getString(\"moduleName\");\n JSONArray nextRoute = routeObj.getJSONArray(\"moduleName\");\n getNextRoute(nextRoute, moduleName, deviceName);\n }*/\n\n String topicJsonStr = topicJson.toJSONString();\n String pubSubStr = pubSubJson.toJSONString();\n System.out.println(topicJsonStr);\n System.out.println(pubSubStr);\n //优化 一个订阅者如果订阅了 多个topic topic可能可以合并\n JSONObject joinTopic = new JSONObject();\n for (Map.Entry<String, Object> entry : topicJson.entrySet()) {\n List<String> subList = (List<String>) entry.getValue();\n String topic = entry.getKey();\n String key = StringUtils.join(subList, '_');\n JSONArray topicArray;\n if (joinTopic.containsKey(key)) {\n topicArray = joinTopic.getJSONArray(key);\n } else {\n topicArray = new JSONArray();\n joinTopic.put(key,topicArray);\n }\n topicArray.add(topic);\n }\n JSONObject topicReplace = new JSONObject();\n for (Map.Entry<String, Object> entry : joinTopic.entrySet()) {\n List<String> topicList = (List<String>) entry.getValue();\n if (topicList.size() > 1) {\n String newTopic = StringUtils.join(topicList, '_');\n for (String topic : topicList) {\n topicReplace.put(topic, newTopic);\n }\n }\n }\n //合并\n for (Map.Entry<String, Object> entry : pubSubJson.entrySet()) {\n Map<String, Object> pubSubInstance = (Map<String, Object>) entry.getValue();\n if(pubSubInstance.containsKey(\"pub\")){\n Map<String, String> pubList= (Map<String, String>)pubSubInstance.get(\"pub\");\n for(Map.Entry<String, String> pubEntry:pubList.entrySet()){\n String topic = pubEntry.getValue();\n if(topicReplace.containsKey(topic)){\n pubList.replace(pubEntry.getKey(),topicReplace.getString(topic));\n }\n }\n /* List<Map<String, String>> pubList= (List<Map<String, String>>)pubSubInstance.get(\"pub\");\n for(Map<String, String> pubInstance:pubList){\n String = pubInstance.get(\"topic\");\n if(topicReplace.containsKey(topic)){\n pubInstance.replace(\"topic\",topicReplace.getString(topic));\n }\n }*/\n }\n if(pubSubInstance.containsKey(\"sub\")){\n List<String> subList= (List<String>)pubSubInstance.get(\"sub\");\n List<String> removeList = new ArrayList<>();\n List<String> addList = new ArrayList<>();\n for(String topic:subList){\n if(topicReplace.containsKey(topic)){\n removeList.add(topic);\n String newTopic = topicReplace.getString(topic);\n if(!addList.contains(newTopic)){\n addList.add(newTopic);\n }\n }\n }\n if(!removeList.isEmpty()){\n subList.removeAll(removeList);\n subList.addAll(addList);\n }\n }\n //entry.getValue()\n }\n topicJsonStr = topicJson.toJSONString();\n pubSubStr = pubSubJson.toJSONString();\n System.out.println(topicJsonStr);\n System.out.println(pubSubStr);\n return pubSubStr;\n }", "java.util.List<io.netifi.proteus.admin.om.Connection> \n getConnectionsList();", "@Override\n public final SortedSet<Node<N>> getSinks() {\n return new Sinks(this);\n }", "public void addAllConsumerDestinations(Iterable<? extends MonitoringDestination> values) {\n ensureConsumerDestinationsIsMutable();\n AbstractMessageLite.addAll(values, this.consumerDestinations_);\n }", "public abstract boolean SourceSinkSide( Communicator comm);", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.528 -0500\", hash_original_method = \"9F609FC4DF465EEA0A9F2C3A79A2C6B4\", hash_generated_method = \"B9D65B71D31F113C9D169E78F4EAE96E\")\n \npublic void replyToMessage(Message srcMsg, Message dstMsg) {\n try {\n dstMsg.replyTo = mSrcMessenger;\n srcMsg.replyTo.send(dstMsg);\n } catch (RemoteException e) {\n log(\"TODO: handle replyToMessage RemoteException\" + e);\n e.printStackTrace();\n }\n }", "void storeSources(McastRoute route, Set<ConnectPoint> sources);", "public static void main(String[] args) {\n\n\n final KafkaProducer<String, String> kafkaProducer = new KafkaProducer<String, String>(getKafkaProducerProperties());\n\n // kafka\n final String topic = \"test-4\";\n\n // queue manager.\n String PARAM_QUEUE_NAME = \"DEV.QUEUE.1\";\n String PARAM_USERNAME = \"app\";\n String PARAM_PASSWORD = \"passw0rd\";\n String PARAM_QMGR_CHANNEL_NAME = \"DEV.APP.SVRCONN\";\n String PARAM_QMGR_NAME = \"QM1\";\n int PARAM_QMGR_PORT = 1414;\n String PARAM_QMGR_HOST_NAME = \"localhost\";\n\n Connection conn = null;\n\n try {\n\n // Set up the connection factory to connect to the queue manager,\n // populating it with all the properties we have been provided.\n MQConnectionFactory cf = new MQQueueConnectionFactory();\n cf.setTransportType(WMQConstants.WMQ_CM_CLIENT);\n cf.setHostName(PARAM_QMGR_HOST_NAME);\n cf.setPort(PARAM_QMGR_PORT);\n cf.setQueueManager(PARAM_QMGR_NAME);\n cf.setChannel(PARAM_QMGR_CHANNEL_NAME);\n\n // Create the connection to the queue manager\n conn = cf.createConnection(PARAM_USERNAME, PARAM_PASSWORD);\n\n // Create a session and a queue object to enable us to interact with the\n // queue manager. By creating a transactional session we can roll back\n // the message onto the queue if the processing fails.\n Session session = conn.createSession(true, 0);\n Queue q = session.createQueue(\"queue:///\"+PARAM_QUEUE_NAME);\n\n // For testing purposes we can put some messages onto the queue using this\n\n // Set up the consumer to read from the queue\n MessageConsumer consumer = session.createConsumer(q);\n\n // Don't forget to start the connection before trying to receive messages!\n conn.start();\n\n try {\n\n // Read messages from the queue and process them until there\n // are none left to read.\n while (true) {\n Message receivedMsg = consumer.receiveNoWait();\n if (receivedMsg != null) {\n // use final -> multithreading env\n final TextMessage rcvTxtMsg = (TextMessage) receivedMsg;\n final String txt = rcvTxtMsg.getText();\n final ProducerRecord<String, String> objectStringProducerRecord = new ProducerRecord<>(topic, null, txt);\n kafkaProducer.send(objectStringProducerRecord, (recordMetadata, e) -> {\n if (e!=null){\n logger.warn(\"Producer call back end up with exception\");\n try {\n session.rollback();\n logger.warn(\"Ibm mq session rollback\");\n } catch (JMSException ex) {\n logger.warn(\"Ibm mq session failed to rollback\");\n ex.printStackTrace();\n }\n } else {\n try {\n session.commit();\n logger.info(\"Transaction success: Message was committed by IBM MQ Session and was delivered by Kafka-producer to kafka topic: {}, with offset: {}\", recordMetadata.topic(), recordMetadata.offset());\n } catch (JMSException ex) {\n logger.info(\"Transaction failed: Message was not committed by IBM MQ Session\");\n throw new RuntimeException(e);\n }\n }\n });\n\n\n // Since we returned from processing the message without\n // an exception being thrown we have successfully\n // processed the message, so increment our success count\n // and commit the transaction so that the message is\n // permanently removed from the queue.\n// messagesProcessed++;\n// session.commit();\n }\n\n }\n\n } catch (JMSException jmse2)\n {\n // This block catches any JMS exceptions that are thrown during\n // the business processing of the message.\n jmse2.printStackTrace();\n\n // Roll the transaction back so that the message can be put back\n // onto the queue ready to have its proessing retried next time\n // the action is invoked.\n session.rollback();\n throw new RuntimeException(jmse2);\n\n } catch (RuntimeException e) {\n e.printStackTrace();\n\n // Roll the transaction back so that the message can be put back\n // onto the queue ready to have its proessing retried next time\n // the action is invoked.\n session.rollback();\n throw e;\n }\n\n // Indicate to the caller how many messages were successfully processed.\n\n } catch (JMSException jmse) {\n // This block catches any JMS exceptions that are thrown before the\n // message is retrieved from the queue, so we don't need to worry\n // about rolling back the transaction.\n jmse.printStackTrace();\n\n // Pass an indication about the error back to the caller.\n throw new RuntimeException(jmse);\n\n } finally {\n if (conn != null) {\n try {\n conn.close();\n } catch (JMSException jmse2) {\n // Swallow final errors.\n }\n }\n }\n\n }", "void removeSinks(McastRoute route, HostId hostId, Set<ConnectPoint> connectPoints);", "public void TCPNodeMessage(String message) throws IOException\n\t{\n\t\t//System.out.println(\"MessagingNode got message: \" + message + \" ~from Registry.\");\n\t\t\n\t\tString[] splitMessage = message.split(\"\\n\"); // split each line up.\n\t\t\n\t\tif(splitMessage[0].equals(\"MESSAGING_NODES_LIST\"))\n\t\t{\n\t\t\tString[] splitLine = splitMessage[1].split(\" \"); // split the line containing the number of messaging nodes.\n\t\t\tint numConnections = Integer.parseInt(splitLine[splitLine.length-1]); // holds the number of connections the messaging node should make.\n\t\t\totherNodes = parseNodeInfo(splitMessage); // get that info.\n\t\t\tsetNodeConnectionList(otherNodes); // set this list of node connections to be used by the registry.\n\t\t\t// System.out.println(\"first node has IP address: \" + otherNodes.get(0).getFirst() + \" and has portnum: \" + otherNodes.get(0).getSecond()); // for testing.\n\t\t\tmakeConnections(otherNodes, numConnections); // start making connections with the other nodes.\n\t\t}\n\t\telse if(splitMessage[0].equals(\"Link_Weights\"))\n\t\t{\n\t\t\tString[] splitLine = splitMessage[1].split(\" \"); // split the line containing the number of messaging nodes.\n\t\t\tint numLinks = Integer.parseInt(splitLine[splitLine.length - 1]); // get the number of links sent from the Registry.\n\t\t\t\n\t\t\tprocessLinkWeights(splitMessage); // have the link weights get processed.\n\t\t}\n\t\telse if(splitMessage[0].equals(\"TASK_INITIATE\")) // registry is telling the nodes to begin sending data and payload.\n\t\t{\n\t\t\tString[] splitLine = splitMessage[1].split(\" \");\n\t\t\tint numOfRounds = Integer.parseInt(splitLine[1]); // get the number of rounds that the messaging nodes must go for.\n\t\t\tstartSendingMessages(numOfRounds); // start sending messages for the number of rounds.\n\t\t}\n\t\telse if(splitMessage[0].equals(\"SHORTEST_PATH_LIST\"))\n\t\t{\n\t\t\t// make a method that may or may not need to be synchronized, then go through it storing all the portnumbers.\n\t\t\tprocessShortestPath(splitMessage); // takes in the string[] and constructs the shortest path that will be sent to the other nodes.\n\t\t}\n\t}", "@DSSink({DSSinkKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.513 -0500\", hash_original_method = \"9DAC7AFA4C14A1022E9DEC304018391F\", hash_generated_method = \"B2E7772166FCACAF852F55F44CB46D51\")\n \npublic void sendMessage(Message msg) {\n msg.replyTo = mSrcMessenger;\n try {\n mDstMessenger.send(msg);\n } catch (RemoteException e) {\n replyDisconnected(STATUS_SEND_UNSUCCESSFUL);\n }\n }", "public String getSink(String cat);", "protected void sendMessage() throws IOException {\r\n\t\tif (smscListener != null) {\r\n\t\t\tint procCount = processors.count();\r\n\t\t\tif (procCount > 0) {\r\n\t\t\t\tString client;\r\n\t\t\t\tSimulatorPDUProcessor proc;\r\n\t\t\t\tlistClients();\r\n\t\t\t\tif (procCount > 1) {\r\n\t\t\t\t\tSystem.out.print(\"Type name of the destination> \");\r\n\t\t\t\t\tclient = keyboard.readLine();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tproc = (SimulatorPDUProcessor) processors.get(0);\r\n\t\t\t\t\tclient = proc.getSystemId();\r\n\t\t\t\t}\r\n\t\t\t\tfor (int i = 0; i < procCount; i++) {\r\n\t\t\t\t\tproc = (SimulatorPDUProcessor) processors.get(i);\r\n\t\t\t\t\tif (proc.getSystemId().equals(client)) {\r\n\t\t\t\t\t\tif (proc.isActive()) {\r\n\t\t\t\t\t\t\tSystem.out.print(\"Type the message> \");\r\n\t\t\t\t\t\t\tString message = keyboard.readLine();\r\n\t\t\t\t\t\t\tDeliverSM request = new DeliverSM();\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\trequest.setShortMessage(message);\r\n\t\t\t\t\t\t\t\tproc.serverRequest(request);\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Message sent.\");\r\n\t\t\t\t\t\t\t} catch (WrongLengthOfStringException e) {\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Message sending failed\");\r\n\t\t\t\t\t\t\t\tevent.write(e, \"\");\r\n\t\t\t\t\t\t\t} catch (IOException ioe) {\r\n\t\t\t\t\t\t\t} catch (PDUException pe) {\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tSystem.out.println(\"This session is inactive.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"No client connected.\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"You must start listener first.\");\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testPublisherAndSubscriber() throws Exception {\n\t\tString address = \"kafka://[localhost:9092]&topic=junk\";\n\n\t\tZPublisher z = new ZPublisher(address);\n CountDownLatch latch = new CountDownLatch(2);\n\n List list = new ArrayList();\n\n com.jacamars.dsp.rtb.jmq.RTopic channel = new com.jacamars.dsp.rtb.jmq.RTopic(\"kafka://[localhost:9092]&topic=junk\");\n channel.addListener(new com.jacamars.dsp.rtb.jmq.MessageListener<String>() {\n @Override\n public void onMessage(String channel, String data) {\n System.out.println(\"<<<<<<<<<<<<<<<<<\" + data);\n list.add(data);\n // latch.countDown();\n }\n });\n\n com.jacamars.dsp.rtb.jmq.RTopic channel2= new com.jacamars.dsp.rtb.jmq.RTopic(\"kafka://[localhost:9092]&topic=junk\");\n channel2.addListener(new com.jacamars.dsp.rtb.jmq.MessageListener<String>() {\n @Override\n public void onMessage(String channel, String data) {\n System.out.println(\"================\" + data);\n list.add(data);\n\n }\n });\n\n\n z.add(\"Hello world\");\n z.add(\"Another Hello world\");\n\n Thread.sleep(15000);\n\t}", "public static void main(String[] args) throws Exception {\n\t\t\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss:SSS\"); \n\t\tDate date;\n\t\t\n\t\tString topicName = \"SampleTest4\";\n\t\tList colorResponseList = new ArrayList();\n\t\tList courseResponseList = new ArrayList();\n\t\t\n\t List colorList = new ArrayList();\n\t colorList.add(\"black\");\n\t colorList.add(\"white\");\n\t colorList.add(\"red\");\n\t colorList.add(\"blue\");\n\t colorList.add(\"yellow\");\n\t \n\t List courseList = new ArrayList();\n\t courseList.add(\"java\");\n\t courseList.add(\"mulesoft\");\n\t courseList.add(\"kafka\");\n\t\t\n\t Properties props = new Properties();\n\t props.put(\"bootstrap.servers\", \"localhost:9092\");\n\t props.put(\"acks\", \"all\");\n\t props.put(\"retries\", 0);\n\t props.put(\"batch.size\", 16384);\n\t props.put(\"linger.ms\", 1);\n\t props.put(\"buffer.memory\", 33554432);\n\t props.put(\"key.serializer\", \"org.apache.kafka.common.serialization.StringSerializer\");\n\t props.put(\"value.serializer\", \"org.apache.kafka.common.serialization.StringSerializer\");\n\t \n\t Producer<String, String> producer = new KafkaProducer<String, String>(props);\n\t \n\t for(int i = 30; i < 40; i++)\n\t {\n\t \t//RecordMetadata colorResponse = producer.send(new ProducerRecord<String, String>(topicName, 3, \"Color\", (String) colorList.get(i))).get();\n\t \t//colorResponseList.add(colorResponse);\n\t \tdate = new Date();\n\t \tSystem.out.println(producer.send(new ProducerRecord<String, String>(topicName, \"ColorCount\"+i)).get());\n\t \tSystem.out.println(\"String Message sent successfully\"+formatter.format(date));\n\t }\n\t \n\t /*for(int i = 21; i < 30; i++)\n\t {\n\t \t//RecordMetadata colorResponse = producer.send(new ProducerRecord<String, String>(topicName, 3, \"Color\", (String) colorList.get(i))).get();\n\t \t//colorResponseList.add(colorResponse);\n\t \tdate = new Date();\n\t \tSystem.out.println(producer.send(new ProducerRecord<String, String>(topicName, 0, \"Color\", \"ColorCount\"+i)).get());\n\t \tSystem.out.println(\"String Message sent successfully\"+formatter.format(date));\n\t }\n\t \n\t for(int j = 121; j < 130; j++)\n\t {\n\t \t//RecordMetadata colorResponse = producer.send(new ProducerRecord<String, String>(topicName, 3, \"Color\", (String) colorList.get(i))).get();\n\t \t//colorResponseList.add(colorResponse);\n\t \tdate = new Date();\n\t \tProducerRecord<String, String> record = new ProducerRecord<String, String>(topicName, 1, \"Place\", \"PlaceCount\"+j);\n\t \tproducer.send(record,\n\t \t\t\tnew Callback() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onCompletion(RecordMetadata metadata, Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tif(e != null) {\n\t\t\t e.printStackTrace();\n\t\t\t } else {\n\t\t\t System.out.println(\"The offset of the record we just sent is: \" + metadata);\n\t\t\t }\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t });\n\t \tSystem.out.println(\"String Message sent successfully\"+formatter.format(date));\n\t }\n\t \n\t for(int i = 1021; i < 1030; i++)\n\t {\n\t \t//RecordMetadata colorResponse = producer.send(new ProducerRecord<String, String>(topicName, 3, \"Color\", (String) colorList.get(i))).get();\n\t \t//colorResponseList.add(colorResponse);\n\t \tdate = new Date();\n\t \tSystem.out.println(producer.send(new ProducerRecord<String, String>(topicName, 2, \"Subject\", \"SubjectCount\"+i)).get());\n\t \tSystem.out.println(\"String Message sent successfully\"+formatter.format(date));\n\t }*/\n\t \t \n\t /*for(int i = 0; i < colorList.size(); i++)\n\t {\n\t \t//RecordMetadata colorResponse = producer.send(new ProducerRecord<String, String>(topicName, 3, \"Color\", (String) colorList.get(i))).get();\n\t \t//colorResponseList.add(colorResponse);\n\t \tSystem.out.println(producer.send(new ProducerRecord<String, String>(topicName, 3, \"Color\", (String) colorList.get(i))).get());\n\t }\n\t System.out.println(\"colorResponseList : \"+colorResponseList);\n\t \n\t for(int j = 0; j < courseList.size(); j++)\n\t {\n\t \t//RecordMetadata courseResponse = producer.send(new ProducerRecord<String, String>(topicName, 2, \"Color\", (String) courseList.get(j))).get();\n\t \t//courseResponseList.add(courseResponse);\n\t \tSystem.out.println(producer.send(new ProducerRecord<String, String>(topicName, 2, \"Color\", (String) courseList.get(j))).get());\n\t }\n\t System.out.println(\"courseResponseList : \"+courseResponseList);*/\n\t \n\t \n\t /*System.out.println(producer.send(new ProducerRecord<String, String>(topicName, \"Color\", \"Violet\")).get());\t \n\t System.out.println(\"String Message sent successfully\"+formatter.format(date));\n\t \n\t System.out.println(producer.send(new ProducerRecord<String, String>(topicName, \"Color\", \"Indigo\")).get());\t \n\t System.out.println(\"String Message sent successfully\"+formatter.format(date));*/\n\t \n\t \n\t /*ProducerRecord<String, String> record = new ProducerRecord<String, String>(topicName, \"Color\", \"Green\");\n\t producer.send(record,\n\t \t\t\tnew Callback() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onCompletion(RecordMetadata metadata, Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tif(e != null) {\n\t\t\t e.printStackTrace();\n\t\t\t } else {\n\t\t\t System.out.println(\"The offset of the record we just sent is: \" + metadata);\n\t\t\t }\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t \t\t);*/\n\t \t\t\t\t \n\t \n\t producer.close();\n\n\t}", "public void sendList(String msg, int count) {\n\t\t\toutput.println((count + 1) + \". \" + msg);\n\t\t}", "public void setProducerDestinations(int index, MonitoringDestination value) {\n value.getClass();\n ensureProducerDestinationsIsMutable();\n this.producerDestinations_.set(index, value);\n }", "void createExposedDestinations(List<DestinationTargetModel> destinationTargets,\n\t InboundChannelConfigurationModel inboundChannelConfig,\n\t AbstractCredentialModel credential);", "private void sendMsgList(String queue, List<String> listMessage) throws JMSException {\n for (String textMessage : listMessage) {\n this.sendMsg(queue, textMessage);\n }\n }", "public void run() {\n System.out.println(\"NS: in service NameServer worker!\");\n\n PrintStream out;\n BufferedReader in;\n\n try {\n out = new PrintStream(serv.getOutputStream());\n in = new BufferedReader(new InputStreamReader(serv.getInputStream()));\n\n String input = in.readLine();\n StringTokenizer parsedIn = new StringTokenizer(input, \"&\");\n\n \n //if the message sent is a host registering, take the info and put it in\n //the host info list.\n if (input.contains(\"HOST:\")) {\n parsedIn.nextToken();\n String ip = parsedIn.nextToken();\n int port = Integer.parseInt(parsedIn.nextToken());\n HostInfo newHost = new HostInfo(ip, port);\n HostInfoList.add(newHost);\n\n out.println(\"Host registered with NameServer: \" + newHost.toString());\n out.flush();\n\n } else if (input.startsWith(\"NEWAGENT:\")) {\n //register agent with its ID number... assign it a name\n //give all the names of group members\n parsedIn.nextToken();\n AgentInfo agent = newAgent(parsedIn);\n\n out.println(\"NEWAGENT:&\" + agent.getName() + \"&\" + agent.getGroupId());\n out.flush();\n\n\n } else if (input.startsWith(\"AGENTMIGRATE:\")) {\n /*\n * updates info on the agent.\n */\n parsedIn.nextToken();\n String agentId = parsedIn.nextToken();\n AgentInfo agent = null;\n List<AgentInfo> agentList = AgentInfoList.getList();\n for (AgentInfo a : agentList){\n if (a.agentId.equals(agentId))\n agent = a;\n }\n\n //agent.getCurLocation().setNumAgents(agent.getCurLocation().getNumAgents() - 1);\n agent.getCurLocation().incNumAgents();\n HostInfo newHost = HostInfoList.getRandomHost();\n agent.setCurLocation(newHost);\n //newHost.setNumAgents(newHost.getNumAgents() + 1);\n newHost.incNumAgents();\n\n out.println(\"AGENTMIGRATE:&\" + newHost.getIp() + \"&\" + newHost.getPort());\n out.flush();\n\n \n\n \n \n } else if (input.startsWith(\"REAGENT:\")){\n System.out.println(\"NS: receiving: \");\n parsedIn.nextToken();\n String agentId = parsedIn.nextToken();\n int newPort = Integer.parseInt(parsedIn.nextToken());\n List<AgentInfo> agentList = AgentInfoList.getList();\n for (AgentInfo a : agentList){\n if (a.agentId.equals(agentId))\n a.setPort(newPort);\n }\n \n }\n else {\n System.out.println(\"NS: Agent or HostServer requesting unimplemented action from service port.\");\n }\n\n\n } catch (IOException e) {\n System.out.println(\"NS: issue with connection in service NameServer worker!\");\n }\n\n\n }", "private void addOutgoing(String to, String subject, String text, Message m){\n\t\tMyMessage mess = new MyMessage(m, \"Eddian\", to, subject, text,\n\t\t\t\t\t\t\t\t\t\tCalendar.getInstance().getTime());\n\t\toutgoingList.add(mess);\n\t}", "private void talker( String broker, String username, String password, String rQueue, String sQueue)\n {\n // Create a connection.\n try\n {\n javax.jms.ConnectionFactory factory;\n factory = new ActiveMQConnectionFactory(username, password, broker);\n connect = factory.createConnection (username, password);\n sendSession = connect.createSession(false,javax.jms.Session.AUTO_ACKNOWLEDGE);\n receiveSession = connect.createSession(false,javax.jms.Session.AUTO_ACKNOWLEDGE);\n }\n catch (javax.jms.JMSException jmse)\n {\n System.err.println(\"error: Cannot connect to Broker - \" + broker);\n jmse.printStackTrace();\n System.exit(1);\n }\n\n // Create Sender and Receiver 'Talk' queues\n try\n {\n if (sQueue != null)\n {\n javax.jms.Queue sendQueue = sendSession.createQueue (sQueue);\n sender = sendSession.createProducer(sendQueue);\n }\n if (rQueue != null)\n {\n javax.jms.Queue receiveQueue = receiveSession.createQueue (rQueue);\n javax.jms.MessageConsumer qReceiver = receiveSession.createConsumer(receiveQueue);\n qReceiver.setMessageListener(this);\n // Now that 'receive' setup is complete, start the Connection\n connect.start();\n }\n }\n catch (javax.jms.JMSException jmse)\n {\n jmse.printStackTrace();\n exit();\n }\n\n try\n {\n if (rQueue != null)\n System.out.println (\"\");\n else\n System.out.println (\"\\nNo receiving queue specified.\\n\");\n\n // Read all standard input and send it as a message.\n java.io.BufferedReader stdin =\n new java.io.BufferedReader( new java.io.InputStreamReader( System.in ) );\n if (sQueue != null)\n System.out.println (\"\\nTalk application:\\n\"\n \t\t\t\t\t+ \"=================\\n\"\n \t\t\t\t\t+ \"The application user \" + username + \" connects to the broker at \" + DEFAULT_BROKER_NAME + \".\\n\"\n\t\t\t\t\t\t\t\t+ \"The application will send messages to the \" + sQueue + \" queue.\\n\"\n + \"The application creates a receiver on the \" + rQueue + \" queue to consume any messages allocated to it.\\n\\n\"\n + \"Type some text, and then press Enter to send it as a TextMesssage from \" + username + \".\\n\");\n\n else\n System.out.println (\"\\nPress CTRL-C to exit.\\n\");\n\n while ( true )\n {\n String s = stdin.readLine();\n\n if ( s == null )\n exit();\n else if ( s.length() > 0 && sQueue != null)\n {\n javax.jms.TextMessage msg = sendSession.createTextMessage();\n msg.setText( username + \": \" + s );\n // Queues usually are used for PERSISTENT messages.\n // Hold messages for 30 minutes (1,800,000 millisecs).\n sender.send( msg,\n javax.jms.DeliveryMode.PERSISTENT,\n javax.jms.Message.DEFAULT_PRIORITY,\n MESSAGE_LIFESPAN);\n }\n }\n }\n catch ( java.io.IOException ioe )\n {\n ioe.printStackTrace();\n }\n catch ( javax.jms.JMSException jmse )\n {\n jmse.printStackTrace();\n }\n // Close the connection.\n exit();\n }", "@Override\n protected void encode(ChannelHandlerContext ctx, FoscamTextByteBufDTO msg, List<Object> out) {\n final ByteBuf buf = FoscamTextByteBufDTOEncoder.allocateBuf(ctx, msg);\n new FoscamTextByteBufDTOEncoder().encode(ctx, msg, buf);\n final DatagramPacket datagramPacket = new DatagramPacket(buf, new InetSocketAddress(BROADCAST_ADDRESS, BROADCAST_PORT));\n out.add(datagramPacket);\n }", "public void onTransferWS() {\n log.debug(\"Transf WS...\");\n targetWSList.clear();\n targetPROCList.clear();\n CommunicationBridge communicationBridge;\n String strTarget = communicationBridgeWs.getTarget().toString();\n strTarget = strTarget.substring(1, strTarget.length() - 1);\n if (!strTarget.isEmpty()) {\n String[] split = strTarget.split(\",\");\n for (String cb : split) {\n log.debug(\"CB : \" + cb);\n communicationBridge = communicationBridgeMap.get(cb.trim());\n if (communicationBridge != null)//Identificar el componente WS o Proc\n targetWSList.add(communicationBridge);\n\n }\n\n }\n log.debug(\"List target : \" + targetWSList.size());\n }", "public void setupConsumers() throws Exception {\n Consumer logConsumer1 = new LogConsumer1(channel);\n String queueName1 = channel.queueDeclare().getQueue();\n channel.queueBind(queueName1, EXCHANGE_NAME, \"\");\n channel.basicConsume(queueName1, true, logConsumer1);\n\n // Consumer 1:\n Consumer logConsumer2 = new LogConsumer2(channel);\n String queueName2 = channel.queueDeclare().getQueue();\n channel.queueBind(queueName2, EXCHANGE_NAME, \"\");\n channel.basicConsume(queueName2, true, logConsumer2);\n\n }", "public void connectFrom( Wire w ) {\n outgoing.add( w );\n }" ]
[ "0.5591935", "0.55791545", "0.5578226", "0.5411611", "0.5325968", "0.52533257", "0.5223423", "0.52147007", "0.52119064", "0.5211664", "0.52099204", "0.52090234", "0.51989853", "0.51712495", "0.5139896", "0.5137304", "0.5115651", "0.5065014", "0.5048545", "0.50416094", "0.49961472", "0.49939817", "0.49893305", "0.49825025", "0.49636874", "0.49571982", "0.49517107", "0.49504846", "0.49115834", "0.49100342", "0.48988262", "0.4897619", "0.4883705", "0.48674682", "0.48609117", "0.48567605", "0.48375368", "0.48370928", "0.48328114", "0.483247", "0.4829776", "0.48244777", "0.48209786", "0.47918123", "0.47910577", "0.47692212", "0.4766939", "0.47668555", "0.47626284", "0.4760501", "0.47508386", "0.47439608", "0.47294614", "0.47156575", "0.47128215", "0.4711049", "0.47084776", "0.470326", "0.4694703", "0.4694205", "0.46920976", "0.4685679", "0.4685407", "0.46796587", "0.4678809", "0.46755815", "0.46745434", "0.467214", "0.46663362", "0.46604106", "0.4650903", "0.46502292", "0.4649993", "0.4647911", "0.46469006", "0.46461612", "0.4645689", "0.46288735", "0.46265182", "0.46259937", "0.46217376", "0.4618204", "0.46005157", "0.45996085", "0.4596985", "0.4591771", "0.45872533", "0.4584005", "0.45787504", "0.45778832", "0.45743772", "0.4572939", "0.45717832", "0.4571625", "0.45691437", "0.4568487", "0.45680255", "0.45647478", "0.45587453", "0.45530018", "0.45516488" ]
0.0
-1
generate a poem stat with begin and end with end. if the whole length is larger than MAX_OUTPUT, just stop and return.
public String generate(String begin, String end) { //check input para's availability if(begin == null) return null; StringBuffer sb = new StringBuffer(); int wordCount = 0; if(!chain.containsKey(begin)) return null; if(begin.equalsIgnoreCase(end)) return begin; //set the previous and current String previous = begin; //for the first word, get the next String current = getNext(previous); if(current == null) return null; String preAndCurrent = previous + " " + current + ""; sb.append(preAndCurrent + " "); int lastCharIndex = -1; boolean isFinish = false; //for the rest, get the next of "previous current" randomly. while(current != null && !current.equalsIgnoreCase(end) && wordCount < MAX_OUTPUT) { previous = current; current = getNext(preAndCurrent); if(current == null) break; preAndCurrent = previous + " " + current; sb.append(current); if(current.equals(end)) { isFinish = true; break; } //deal with punctuation specially //if there is a punctuation, end this line lastCharIndex = current.length() - 1; if(current.charAt(lastCharIndex) >= '!' && current.charAt(lastCharIndex) <= '?') sb.append("<br />"); else sb.append(" "); wordCount++; } if(!isFinish) sb.append(end); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "org.mojolang.mojo.lang.Position getEndPosition();", "int getPenultimateOutputSize() {\n\t\treturn lastStrLen[0];\n\t}", "String getEnd();", "org.mojolang.mojo.lang.PositionOrBuilder getEndPositionOrBuilder();", "int getMaxOutputLines();", "public int getResultLength() { return i_end; }", "int getEnd();", "public boolean process(byte[] input, int offset, int len, boolean finish) {\n final byte[] alphabet = this.alphabet;\r\n final byte[] output = this.output;\r\n int op = 0;\r\n int count = this.count;\r\n\r\n int p = offset;\r\n len += offset;\r\n int v = -1;\r\n\r\n switch (tailLen) {\r\n case 0:\r\n break;\r\n\r\n case 1:\r\n if (p+2 <= len) {\r\n v = ((tail[0] & 0xff) << 16) |\r\n ((input[p++] & 0xff) << 8) |\r\n (input[p++] & 0xff);\r\n tailLen = 0;\r\n };\r\n break;\r\n\r\n case 2:\r\n if (p+1 <= len) {\r\n // A 2-byte tail with at least 1 byte of input.\r\n v = ((tail[0] & 0xff) << 16) |\r\n ((tail[1] & 0xff) << 8) |\r\n (input[p++] & 0xff);\r\n tailLen = 0;\r\n }\r\n break;\r\n }\r\n\r\n if (v != -1) {\r\n output[op++] = alphabet[(v >> 18) & 0x3f];\r\n output[op++] = alphabet[(v >> 12) & 0x3f];\r\n output[op++] = alphabet[(v >> 6) & 0x3f];\r\n output[op++] = alphabet[v & 0x3f];\r\n if (--count == 0) {\r\n if (do_cr) output[op++] = '\\r';\r\n output[op++] = '\\n';\r\n count = LINE_GROUPS;\r\n }\r\n }\r\n while (p+3 <= len) {\r\n v = ((input[p] & 0xff) << 16) |\r\n ((input[p+1] & 0xff) << 8) |\r\n (input[p+2] & 0xff);\r\n output[op] = alphabet[(v >> 18) & 0x3f];\r\n output[op+1] = alphabet[(v >> 12) & 0x3f];\r\n output[op+2] = alphabet[(v >> 6) & 0x3f];\r\n output[op+3] = alphabet[v & 0x3f];\r\n p += 3;\r\n op += 4;\r\n if (--count == 0) {\r\n if (do_cr) output[op++] = '\\r';\r\n output[op++] = '\\n';\r\n count = LINE_GROUPS;\r\n }\r\n }\r\n\r\n if (finish) {\r\n if (p-tailLen == len-1) {\r\n int t = 0;\r\n v = ((tailLen > 0 ? tail[t++] : input[p++]) & 0xff) << 4;\r\n tailLen -= t;\r\n output[op++] = alphabet[(v >> 6) & 0x3f];\r\n output[op++] = alphabet[v & 0x3f];\r\n if (do_padding) {\r\n output[op++] = '=';\r\n output[op++] = '=';\r\n }\r\n if (do_newline) {\r\n if (do_cr) output[op++] = '\\r';\r\n output[op++] = '\\n';\r\n }\r\n } else if (p-tailLen == len-2) {\r\n int t = 0;\r\n v = (((tailLen > 1 ? tail[t++] : input[p++]) & 0xff) << 10) |\r\n (((tailLen > 0 ? tail[t++] : input[p++]) & 0xff) << 2);\r\n tailLen -= t;\r\n output[op++] = alphabet[(v >> 12) & 0x3f];\r\n output[op++] = alphabet[(v >> 6) & 0x3f];\r\n output[op++] = alphabet[v & 0x3f];\r\n if (do_padding) {\r\n output[op++] = '=';\r\n }\r\n if (do_newline) {\r\n if (do_cr) output[op++] = '\\r';\r\n output[op++] = '\\n';\r\n }\r\n } else if (do_newline && op > 0 && count != LINE_GROUPS) {\r\n if (do_cr) output[op++] = '\\r';\r\n output[op++] = '\\n';\r\n }\r\n\r\n assert tailLen == 0;\r\n assert p == len;\r\n } else {\r\n if (p == len-1) {\r\n tail[tailLen++] = input[p];\r\n } else if (p == len-2) {\r\n tail[tailLen++] = input[p];\r\n tail[tailLen++] = input[p+1];\r\n }\r\n }\r\n\r\n this.op = op;\r\n this.count = count;\r\n\r\n return true;\r\n }", "public int maxSentenceOffset();", "java.lang.String getOutput();", "int getEndPosition();", "public String generateOperationalProfile(String start, String end)\r\n\t{\r\n\t return start;\r\n\t}", "Output createOutput();", "public boolean endOfInput() {\n \tif((tmpPosition<totalLength)&&(IsOk)){\n \t//\tSystem.out.println(\"Am returnat ok\");\n \t\treturn false;\n\t\t\t\n \t}\n\t\telse\n\t\t\treturn true;\n \t\n }", "public double getEnd();", "String getOutput();", "private static void writeFinalRuleBase (boolean printStdOut) throws IllegalArgumentException, IOException{\n \t\n \tFileSystem fs = FileSystem.get(Mediator.getConfiguration());\n \tPath textPath = new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath()+\"_text.txt\");\n BufferedWriter bwText = new BufferedWriter(new OutputStreamWriter(fs.create(textPath,true)));\n FileStatus[] status = fs.listStatus(new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath()+\"_TMP\"));\n \tWriter writer = SequenceFile.createWriter(Mediator.getConfiguration(), \n \t\t\tWriter.file(new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath())), \n \t\t\tWriter.keyClass(ByteArrayWritable.class), Writer.valueClass(FloatWritable.class));\n Reader reader;\n\t\tByteArrayWritable rule = new ByteArrayWritable();\n\t\tFloatWritable ruleWeight = new FloatWritable();\n\t\tint id = 0;\n \n bwText.write(\"\\nRULE BASE:\\n\\n\");\n if (printStdOut)\n \tSystem.out.println(\"\\nRULE BASE:\\n\");\n \t\n \t// Read all sequence files from stage 2\n \tfor (FileStatus fileStatus:status){\n \t\t\n \t\tif (!fileStatus.getPath().getName().contains(\"_SUCCESS\")){\n \t\t\n\t \t\t// Open sequence file\n\t \t\treader = new Reader(Mediator.getConfiguration(), Reader.file(fileStatus.getPath()));\n\t \n\t // Read all rules\n\t while (reader.next(rule, ruleWeight)) {\n\t \t\n\t \t// Write rule in the output sequence file\n\t \twriter.append(rule, ruleWeight);\n\t \t\n\t \tbwText.write(\"Rule (\"+id+\"): IF \");\n\t \tif (printStdOut)\n\t \t\tSystem.out.print(\"Rule (\"+id+\"): IF \");\n\t \t\n\t \t// Write antecedents\n\t \tfor (int i = 0; i < rule.getBytes().length - 2; i++){\n\t \t\t\n\t \t\tbwText.write(Mediator.getVariables()[i].getName()+\" IS \");\n\t \t\tif (printStdOut)\n\t \t\tSystem.out.print(Mediator.getVariables()[i].getName()+\" IS \");\n\t \t\tif (Mediator.getVariables()[i] instanceof NominalVariable){\n\t \t\t\tbwText.write(((NominalVariable)Mediator.getVariables()[i]).getNominalValue(rule.getBytes()[i])+\" AND \");\n\t \t\t\tif (printStdOut)\n\t \t\tSystem.out.print(((NominalVariable)Mediator.getVariables()[i]).getNominalValue(rule.getBytes()[i])+\" AND \");\n\t \t\t}\n\t \t\t\telse {\n\t \t\t\t\tbwText.write(\"L_\"+rule.getBytes()[i]+\" AND \");\n\t \t\t\t\tif (printStdOut)\n\t \t\tSystem.out.print(\"L_\"+rule.getBytes()[i]+\" AND \");\n\t \t\t\t}\n\t \t\t\n\t \t}\n\t \t\n\t \t// Write the last antecedent\n\t \tbwText.write(Mediator.getVariables()[rule.getBytes().length-2].getName()+\" IS \");\n\t \tif (printStdOut)\n\t \t\tSystem.out.print(Mediator.getVariables()[rule.getBytes().length-2].getName()+\" IS \");\n\t \tif (Mediator.getVariables()[rule.getBytes().length-2] instanceof NominalVariable){\n\t \t\tbwText.write(((NominalVariable)Mediator.getVariables()[rule.getBytes().length-2]).getNominalValue(rule.getBytes()[rule.getBytes().length-2]));\n\t \t\tif (printStdOut)\n\t \t\tSystem.out.print(((NominalVariable)Mediator.getVariables()[rule.getBytes().length-2]).getNominalValue(rule.getBytes()[rule.getBytes().length-2]));\n\t \t}\n\t \t\telse {\n\t \t\t\tbwText.write(\"L_\"+rule.getBytes()[rule.getBytes().length-2]);\n\t \t\t\tif (printStdOut)\n\t \t\tSystem.out.print(\"L_\"+rule.getBytes()[rule.getBytes().length-2]);\n\t \t\t}\n\t \t\n\t \t// Write the class and rule weight\n\t \tbwText.write(\" THEN CLASS = \"+Mediator.getClassLabel(rule.getBytes()[rule.getBytes().length-1]));\n\t \tbwText.write(\" WITH RW = \"+ruleWeight.get()+\"\\n\\n\");\n\t \tif (printStdOut){\n\t \t\tSystem.out.print(\" THEN CLASS = \"+Mediator.getClassLabel(rule.getBytes()[rule.getBytes().length-1]));\n\t \t\tSystem.out.print(\" WITH RW = \"+ruleWeight.get()+\"\\n\\n\");\n\t \t}\n\t\n\t \tid++;\n\t \t\n\t }\n\t \n\t reader.close();\n \n \t\t}\n \t\t\n \t}\n \t\n \tbwText.close();\n writer.close();\n \t\n \t// Remove temporary rule base\n \tfs.delete(new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath()+\"_TMP\"),true);\n \t\n }", "String getEndRange();", "public int getOutputPositionIncrement () { return 1; }", "public int end() { return _end; }", "@Override\n\tpublic byte[] generateOutput() {\n\t\tthis.plainOut = new PlainOutputConversion();\n\n\t\tString output = \"\";\n\t\ttry {\n\t\t\toutput = constructTextfromXML(this.rootXML, true);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn output.getBytes();\n\t}", "MinmaxEntity getEnd();", "public void computeParagraph(){\r\n\r\n\t\tstrBuff = new StringBuffer();\r\n\r\n\t\t//For else for ER2 rule of inserting the first letter of my last name twice before each consonant\r\n\t\tfor(int i = 0; i < paragraph.length(); i++){\r\n\r\n\t\t\tif(paragraph.charAt(i) == 'a' || paragraph.charAt(i) == 'e' || paragraph.charAt(i) == 'i'\r\n\t\t\t\t|| paragraph.charAt(i) == 'o' || paragraph.charAt(i) == 'u' || paragraph.charAt(i) == 'A'\r\n\t\t\t\t|| paragraph.charAt(i) == 'E' || paragraph.charAt(i) == 'I' || paragraph.charAt(i) == 'O'\r\n\t\t\t\t|| paragraph.charAt(i) == 'U' || paragraph.charAt(i) == ' ' || paragraph.charAt(i) == '.'\r\n\t\t\t\t|| paragraph.charAt(i) == '!' || paragraph.charAt(i) == '?'){\r\n\t\t\t\tstrBuff.append(paragraph.charAt(i));\r\n\t\t\t}\r\n\r\n\t\t\telse{\r\n\t\t\t\tstrBuff.append(\"OO\");\r\n\t\t\t\tstrBuff.append(paragraph.charAt(i));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tnewParagraph = strBuff.toString();\r\n\r\n\t\tcount = 0;\r\n\r\n\t\t//For for ER2 rule of counting the number of characters in the initial text excluding the number of vowels\r\n\t\tfor(int i = 0; i < paragraph.length(); i++){\r\n\t\t\tif(paragraph.charAt(i) != 'a' && paragraph.charAt(i) != 'e' && paragraph.charAt(i) != 'i'\r\n\t\t\t\t&& paragraph.charAt(i) != 'o' && paragraph.charAt(i) != 'u' && paragraph.charAt(i) != 'A'\r\n\t\t\t\t&& paragraph.charAt(i) != 'E' && paragraph.charAt(i) != 'I' && paragraph.charAt(i) != 'O'\r\n\t\t\t\t&& paragraph.charAt(i) != 'U'){\r\n\t\t\t\t\tcount++;\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t}", "private void _writeSegment(int end)\n/* */ throws IOException\n/* */ {\n/* 1006 */ int[] escCodes = this._outputEscapes;\n/* 1007 */ int escLen = escCodes.length;\n/* */ \n/* 1009 */ int ptr = 0;\n/* 1010 */ int start = ptr;\n/* */ \n/* */ \n/* 1013 */ while (ptr < end)\n/* */ {\n/* */ char c;\n/* */ for (;;) {\n/* 1017 */ c = this._outputBuffer[ptr];\n/* 1018 */ if ((c >= escLen) || (escCodes[c] == 0))\n/* */ {\n/* */ \n/* 1021 */ ptr++; if (ptr >= end) {\n/* */ break;\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1030 */ int flushLen = ptr - start;\n/* 1031 */ if (flushLen > 0) {\n/* 1032 */ this._writer.write(this._outputBuffer, start, flushLen);\n/* 1033 */ if (ptr >= end) {\n/* */ break;\n/* */ }\n/* */ }\n/* 1037 */ ptr++;\n/* */ \n/* 1039 */ start = _prependOrWriteCharacterEscape(this._outputBuffer, ptr, end, c, escCodes[c]);\n/* */ }\n/* */ }", "org.hl7.fhir.Integer getEnd();", "@Test\n public void testStreamGlyph() throws IOException {\n final int byteArraySize = 10;\n final byte[] byteArray = new byte[byteArraySize];\n final int runs = 100;\n for (int i = 0; i < runs; i++) {\n this.glyphOut.streamGlyph(byteArray, 0, byteArraySize);\n }\n verify(this.mockGen, times(runs)).streamBytes(byteArray, 0,\n byteArraySize);\n\n /*\n * We want to run this for MAX_BUFFER_SIZE / byteArraySize so that go\n * over the string boundary and enforce the ending and starting of a new\n * string. Using mockito to ensure that this behaviour is performed in\n * order (since this is an integral behavioural aspect)\n */\n final int stringLimit = PSTTFGenerator.MAX_BUFFER_SIZE / byteArraySize;\n for (int i = 0; i < stringLimit; i++) {\n this.glyphOut.streamGlyph(byteArray, 0, byteArraySize);\n }\n final InOrder inOrder = inOrder(this.mockGen);\n inOrder.verify(this.mockGen, times(stringLimit)).streamBytes(byteArray,\n 0, byteArraySize);\n inOrder.verify(this.mockGen).endString();\n inOrder.verify(this.mockGen).startString();\n inOrder.verify(this.mockGen, times(runs)).streamBytes(byteArray, 0,\n byteArraySize);\n\n try {\n this.glyphOut.streamGlyph(byteArray, 0,\n PSTTFGenerator.MAX_BUFFER_SIZE + 1);\n fail(\"Shouldn't allow a length > PSTTFGenerator.MAX_BUFFER_SIZE\");\n } catch (final UnsupportedOperationException e) {\n // PASS\n }\n }", "@Override\n\tpublic String genResult() {\n\t\tCollections.sort(meanTimes, new Comparator<Time>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Time a, Time b) {\n\t\t\t\treturn a.toString().compareTo(b.toString());\n\t\t\t}\n\t\t});\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(realLaps()).append(\"; \");\n\t\tsb.append(totalTime()).append(\"; \");\n\t\tLinkedList<Time> times = new LinkedList<>();\n\t\tif(!startTimes.isEmpty()) times.add(startTimes.getFirst());\n\t\tfor(Time t: meanTimes) times.addLast(t);\n\t\tif(!finishTimes.isEmpty()) times.addLast(finishTimes.getFirst());\n\t\tint i = 0;\n\t\tif(startTimes.isEmpty()) {\n\t\t\ti++;\n\t\t\tsb.append(\"; \");\n\t\t}\n\t\tfor (; i < maxLaps; i++) {\n\t\t\tif (times.size() > 1) {\n\t\t\t\tTime t = times.removeFirst();\n\t\t\t\tsb.append(Time.diff(times.getFirst(), t).toString());\n\t\t\t}\n\t\t\tsb.append(\"; \");\n\t\t}\n\t\tString out = sb.toString();\n\t\treturn out.substring(0, out.length() - 2);\n\n\t}", "static void generate(Proc proc, PrintWriter outData)\r\n {\r\n for (int i=0; i < proc.lines.size(); i++)\r\n {\r\n //String l = (String) proc.lines.elementAt(i);\r\n Line line = \tproc.lines.elementAt(i);\r\n outData.println(line.line);\r\n }\r\n outData.println();\r\n }", "public Object[] startingBatchEmit(int bank, int start, int end, boolean toFile) \n {\n return new Object[0]; \n }", "public int length() { return _end - _start; }", "public void setEnd(int end)\n {\n this.end = end;\n this.endSpecified = true;\n }", "String getIfEnd();", "public int getEnd() {\n switch(getType()) {\n case Insertion:\n case SNP:\n case InterDup:\n case TandemDup:\n case TransDup:\n return pos;\n default:\n return pos + maxLen() - 1;\n }\n }", "public void generateOutputLine(String outputLine, int index);", "void actOut(PetriP[] pp) {\n if (buffer < 0) return;\n\n for (int j = 0; j < outP.size(); j++) {\n pp[outP.get(j)].increaseMark(quantOut.get(j));\n }\n if (num == 0 && (timeOut.size() == 1)) {\n timeOut.set(0, Double.MAX_VALUE);\n } else {\n timeOut.remove(num);\n }\n\n buffer--;\n if (observedMin > buffer) {\n observedMin = buffer;\n }\n }", "public abstract void createLongestRepeatedSubstring();", "@Test\n public void endOffsetTest() throws IOException {\n String segmentName = \"log_current\";\n LogSegment segment = getSegment(segmentName, LogSegmentTest.STANDARD_SEGMENT_SIZE, true);\n try {\n long writeStartOffset = segment.getStartOffset();\n int segmentSize = 500;\n appendRandomData(segment, segmentSize);\n Assert.assertEquals(\"End offset is not as expected\", (writeStartOffset + segmentSize), segment.getEndOffset());\n // should be able to set end offset to something >= initial offset and <= file size\n int[] offsetsToSet = new int[]{ ((int) (writeStartOffset)), segmentSize / 2, segmentSize };\n for (int offset : offsetsToSet) {\n segment.setEndOffset(offset);\n Assert.assertEquals(\"End offset is not equal to what was set\", offset, segment.getEndOffset());\n Assert.assertEquals(\"File channel positioning is incorrect\", offset, segment.getView().getSecond().position());\n }\n // cannot set end offset to illegal values (< initial offset or > file size)\n int[] invalidOffsets = new int[]{ ((int) (writeStartOffset - 1)), ((int) ((segment.sizeInBytes()) + 1)) };\n for (int offset : invalidOffsets) {\n try {\n segment.setEndOffset(offset);\n Assert.fail(((\"Setting log end offset an invalid offset [\" + offset) + \"] should have failed\"));\n } catch (IllegalArgumentException e) {\n // expected. Nothing to do.\n }\n }\n } finally {\n closeSegmentAndDeleteFile(segment);\n }\n }", "org.hyperledger.fabric.protos.token.Transaction.PlainOutputOrBuilder getOutputOrBuilder();", "com.google.protobuf.ByteString\n getOutputBytes();", "protected void end() {\r\n lang.nextStep();\r\n int total = seen + failed;\r\n\r\n hideAll();\r\n SourceCode end = lang.newSourceCode(new Offset(0, 50, pMap.get(\"hRect\"),\r\n \"SW\"), \"end\", null, sourceCodeProperties);\r\n end.addCodeLine(\r\n \"Das h\\u00F6chste Ergebnis, dass der Spieler bei einem optimal spielenden Gegner erzielen kann, ist \"\r\n + result + \".\", \"end\", 0, null);\r\n if (seen == 1) {\r\n end.addCodeLine(\"Von den insgesamt \" + nodesTotal + \" Knoten wurde \"\r\n + seen + \" nur Knoten untersucht.\", \"end\", 0, null);\r\n } else {\r\n end.addCodeLine(\"Von den insgesamt \" + nodesTotal + \" Knoten wurden \"\r\n + seen + \" verschiedene Knoten untersucht.\", \"end\", 0, null);\r\n }\r\n if (pruned == 1) {\r\n end.addCodeLine(\"Es wurde \" + pruned + \" Knoten gepruned.\", \"end\", 0,\r\n null);\r\n } else {\r\n end.addCodeLine(\"Es wurde \" + pruned + \" Knoten gepruned.\", \"end\", 0,\r\n null);\r\n }\r\n if (failed == 1) {\r\n end.addCodeLine(\"Allerdings musste auch \" + failed\r\n + \" Knoten erneut untersucht werden, weil es zum Fail High kam.\",\r\n \"end\", 0, null);\r\n } else {\r\n end.addCodeLine(\"Allerdings mussten auch \" + failed\r\n + \" Knoten erneut untersucht werden, weil es zum Fail High kam.\",\r\n \"end\", 0, null);\r\n }\r\n end.addCodeLine(\"Damit wurde der Algorithmus insgesamt \" + total\r\n + \" Mal aufgerufen.\", \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Im Vergleich dazu h\\u00E4tte der Minimax-Algorithmus alle \"\r\n + nodesTotal + \" Knoten einmal untersucht.\", \"end\", 0, null);\r\n end.addCodeLine(\"\", \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Da der Algorithmus annimmt, dass jeweils der erste Kindknoten der beste ist \",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"und danach mit einem Nullwindow arbeitet, ist die Reihenfolge der Knoten sehr wichtig, \",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"damit m\\u00F6glichst viele Knoten gepruned werden und m\\u00F6glichst wenige erneut untersucht werden m\\u00FCssen.\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Es kann sich sogar zeitlich lohnen, die Knoten vorzusortieren.\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Bei unsortierten Knoten ist der Negascout-Algorithmus langsamer als das Alpha-Beta-Pruning,\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"bei dem zwar weniger Knoten nicht untersucht werden, daf\\u00FCr aber auch keine erneut untersucht werden m\\u00FCssen.\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Die Komplexit\\u00E4t von Negascout betr\\u00E4gt O(b^d) in der Landau-Notation,\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"wobei b f\\u00FCr den Verzweigungsfaktor (branching factor) und d f\\u00FCr die Baumtiefe (depth) steht\",\r\n \"end\", 0, null);\r\n lang.nextStep(\"Conclusion\");\r\n }", "@Test\n public void testEndGlyphStream() throws IOException {\n this.glyphOut.endGlyphStream();\n verify(this.mockGen).endString();\n }", "public String findFromToEnd(int end) {\n StringBuilder sb = new StringBuilder() ;\n ArrayList paths = new ArrayList() ;\n while (end != start) {\n\n paths.add(\"From \" + pred[end] + \" go to \" + end + \"\\n\") ;\n end = pred[end] ;\n\n }\n int count = paths.size() ;\n while (count > 0) {\n sb.append(paths.get(count-1)) ;\n count-- ;\n }\n return sb.toString() ;\n\n }", "public String getEnd() {\n\t\t\t\t\n\t\t\t\t\tString vS = \"NONE\";\n\t\t\t\t\tSystem.out.println(vS + \" l \" + length);\n\t\t\t\t\tif (length != 0) vS = tail.getPrev().getValue();\n\t\t\t\t\tSystem.out.println(vS + \" l2 \" + length);\n\t\t\t\treturn vS;\n\t\t\t\t}", "private ShellStatus getCmdOutput() {\n ShellStatus status = RUNNING;\n\n while (!stdOut.buffer.isEmpty()) {\n String line = stdOut.buffer.remove(0);\n LOG.trace(String.format(\"lockId=%s, shell line:=%s \", lockId, line));\n\n if (\"END_OF_SCRIPT\".equals(line)) {\n if (!hasErrors()) {\n status = SUCCESS;\n } else {\n status = PSSHELL_ERROR;\n }\n } else {\n command.addOutputLine(line);\n }\n }\n\n if (!stdErr.buffer.isEmpty()) {\n while (!stdErr.buffer.isEmpty()) {\n String errorLine = stdErr.buffer.remove(0);\n LOG.trace(\"CallerId: \" + lockId + \" error line: \" + errorLine);\n command.addErrorLine(errorLine);\n }\n status = PSSHELL_ERROR;\n }\n\n command.setReturnCode(status);\n return status;\n }", "org.hyperledger.fabric.protos.token.Transaction.PlainOutput getOutput();", "@Override\n public Predicate generateOutputStructure(Predicate predicate) {\n Predicate modifiedPredicate = new Predicate(predicate.getPredicateName());\n phrase = nlgFactory.createClause();\n //create phrase using the annotations of each predicate element describing its function in the sentence\n for (PredicateElement element : predicate.getElements()) {\n if (element != null && element.getPredicateElementAnnotation() != null) {\n PredicateElementAnnotation elementAnnotation = element.getPredicateElementAnnotation();\n if (elementAnnotation.equals(PredicateElementAnnotation.subject)) {\n phrase.setSubject(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.verb)) {\n phrase.setVerb(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.directObject)) {\n phrase.setObject(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.indirectObject)) {\n phrase.setIndirectObject(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.complement)) {\n phrase.setComplement(element.toString());\n }\n }\n }\n //get annotation which affect whole predicate and use them to create correct type of phrase\n if (predicate.getPredicateAnnotations() != null) {\n List<PredicateAnnotation> predicateAnnotations = predicate.getPredicateAnnotations();\n if (predicateAnnotations.contains(PredicateAnnotation.NEGATION)) {\n phrase.setFeature(Feature.NEGATED, true);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.YES_NO)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.YES_NO);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHO_SUBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHO_SUBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHAT_SUBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHAT_SUBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHO_OBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHO_OBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHAT_OBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHAT_OBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.HOW)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.HOW);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.HOW_MANY)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.HOW_MANY);\n }\n if (predicateAnnotations.contains((PredicateAnnotation.IMPERATIVE))) {\n phrase.setFeature(Feature.FORM, Form.IMPERATIVE);\n }\n }\n //create the output sentence\n String resultString = realiser.realiseSentence(phrase);\n setOutputStructure(resultString);\n //split output structure into its elements\n String resStructure = phrase.getParent().getFeatureAsString((\"textComponents\"));\n resStructure = resStructure.replace(\"[\", \"\");\n resStructure = resStructure.replace(\"]\", \"\");\n ArrayList<String> outputOrderList = new ArrayList<>();\n String[] resSplit = resStructure.split(\",\");\n for (int i = 0; i < resSplit.length; i++) {\n outputOrderList.add(resSplit[i].trim());\n }\n //create new predicate element list\n ArrayList<PredicateElement> modifiedPredicateElementList = new ArrayList<>();\n //use this orderList as new predicate element list -> order important for planning\n boolean elementAlreadyAdded = false;\n for (String outputOrderElement : outputOrderList) {\n //keep old predicate if worldobjectid and type were already set (\"I\", \"you\")\n for(PredicateElement element: predicate.getElements()) {\n if(element.getWorldObjectId() != null && element.toString().equals(outputOrderElement)) {\n modifiedPredicateElementList.add(element);\n elementAlreadyAdded = true;\n break;\n }\n }\n if(elementAlreadyAdded) {\n elementAlreadyAdded = false;\n continue;\n }\n modifiedPredicateElementList.add(new StringPredicateElement(outputOrderElement));\n }\n if(phrase.hasFeature(Feature.INTERROGATIVE_TYPE)) {\n modifiedPredicateElementList.add(new StringPredicateElement(\"?\"));\n }else {\n modifiedPredicateElementList.add(new StringPredicateElement(\".\"));\n }\n //set new elements for the modified predicate\n modifiedPredicate.setElements(modifiedPredicateElementList.toArray(new StringPredicateElement[modifiedPredicateElementList.size()]));\n return modifiedPredicate;\n }", "public void test(int maxLength, double maxVelocity, int maxEpoch) {\n\t\tMAX_LENGTH = maxLength;\n\t\tpso = new ParticleSwarmOptimization(MAX_LENGTH);\t\t//instantiate and define params for PSO here\n\t\tpso.setVMax(maxVelocity);\n\t\tpso.setMaxEpoch(maxEpoch);\n\t\tlong testStart = System.nanoTime();\n\t\tString filepath = \"PSO-N\"+MAX_LENGTH+\"-\"+maxVelocity+\"-\"+maxEpoch+\".txt\";\n\t\tlong startTime = 0;\n long endTime = 0;\n long totalTime = 0;\n int fail = 0;\n int success = 0;\n \n\t\tlogParameters();\n \n for(int i = 0; i < MAX_RUN; ) {\t\t\t\t\t\t\t\t\t\t\t\t//run 50 sucess to pass passing criteria\n \tstartTime = System.nanoTime();\n \tif(pso.algorithm()) {\n \t\tendTime = System.nanoTime();\n \t\ttotalTime = endTime - startTime;\n \t\t\n \t\tSystem.out.println(\"Done\");\n \t\tSystem.out.println(\"run \"+(i+1));\n \tSystem.out.println(\"time in nanoseconds: \"+totalTime);\n \tSystem.out.println(\"Success!\");\n \t\n \truntimes[i] = totalTime;\n \ti++;\n \tsuccess++;\n \t\n \t//write to log\n \tlogWriter.add((String)(\"Run: \"+i));\n \tlogWriter.add((String)(\"Runtime in nanoseconds: \"+totalTime));\n \tlogWriter.add((String)(\"Found at epoch: \"+pso.getEpoch()));\n \tlogWriter.add((String)(\"Population size: \"+pso.getPopSize()));\n \tlogWriter.add(\"\");\n \t\n \tfor(Particle p: pso.getSolutions()) {\t\t\t\t\t\t\t\t//write solutions to log file\n\t\t\t\t\tlogWriter.add(p);\n\t\t\t\t\tlogWriter.add(\"\");\n \t\t\t}\n \t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//count failures for failing criteria\n \t\tfail++;\n \t\tSystem.out.println(\"Fail!\");\n \t}\n \t\n \tif(fail >= 100) {\n \t\tSystem.out.println(\"Cannot find solution with these params\");\n \t\tbreak;\n \t}\n \tstartTime = 0;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//reset time\n \tendTime = 0;\n \ttotalTime = 0;\n }\n\t\n System.out.println(\"Number of Success: \" +success);\n System.out.println(\"Number of failures: \"+fail);\n logWriter.add(\"Runtime summary\");\n logWriter.add(\"\");\n \n\t\tfor(int x = 0; x < runtimes.length; x++){\t\t\t\t\t\t\t\t\t//print runtime summary\n\t\t\tlogWriter.add(Long.toString(runtimes[x]));\n\t\t}\n\t\t\n\t\tlong testEnd = System.nanoTime();\n\t\tlogWriter.add(Long.toString(testStart));\n\t\tlogWriter.add(Long.toString(testEnd));\n\t\tlogWriter.add(Long.toString(testEnd - testStart));\n\t\t\n \n \tlogWriter.writeFile(filepath);\n \tprintRuntimes();\n\t}", "public int getEnd()\n {\n return end;\n }", "public int getEnd() {\r\n return end;\r\n }", "private void generateEnd(World world, Random random, int i, int j) {\n\t\t\n\t}", "private void buildOutput()\n\t{\n\t\tif(outIndex >= output.length)\n\t\t{\n\t\t\tbyte[] temp = output;\n\t\t\toutput = new byte[temp.length * 2];\n\t\t\tSystem.arraycopy(temp, 0, output, 0, temp.length);\n\t\t}\n\t\t\n\t\tif(sb.length() < 16 && aryIndex < fileArray.length)\n\t\t{\n\t\t\tbyte[] b = new byte[1];\n\t\t\tb[0] = fileArray[aryIndex++];\n\t\t\tsb.append(toBinary(b));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < prioQ.size(); i++)\n\t\t{\n\t\t\tif(sb.toString().startsWith(prioQ.get(i).getCode()))\n\t\t\t{\n\t\t\t\toutput[outIndex++] = (byte)prioQ.get(i).getByteData();\n\t\t\t\tsb = new StringBuilder(\n\t\t\t\t\t\tsb.substring(prioQ.get(i).getCode().length()));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Can't find Huffman code.\");\n\t\tSystem.exit(1);\n\t\texit = true;\n\t}", "String getEndSplited();", "@Override\r\n \tpublic final int getEndPos() {\r\n \t\treturn sourceEnd;\r\n \t}", "public abstract String generateTokens(int targetNumber);", "public int getEndIndex() {\n return start + length - 1;\n }", "@Override\r\n\tpublic void process(TextInstance input) {\n\t\tList<Token> tokens = input.getTokens();\r\n\t\tfor (AnnotatedSegment segment : input.getTargetAnnotation()) {\r\n\t\t\tint length = 0;\r\n\t\t\tfor (int tokenIndex = 0; tokenIndex < tokens.size(); tokenIndex++) {\r\n\t\t\t\tif (segment.overlaps(tokens.get(tokenIndex))) {\r\n\t\t\t\t\tlength++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (length > maxLength) {\r\n\t\t\t\tmaxLength = length;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public int changeOutput(Pair p, int pos) {\n return 0;\n }", "@Override\n\tpublic void getOutput(ICreationCondition condition, ICreationData data, long amountToApply, IUnitCountList output) {\n\t}", "public abstract String generateUntil(String regex, int minLength, int maxLength);", "public void generateOutputFile(String inputFilePath) {\n \n String outputFile = properties.getProperty(\"output.directory\")\n + properties.getProperty(\"output.file.token.search.locations\");\n \n ArrayList<String> lines = new ArrayList<String>();\n \n try ( PrintWriter outputWriter =\n new PrintWriter(new BufferedWriter(new FileWriter(outputFile)))) {\n \n //using the map.entry for the key-value pair and to ensure we can work with the map entry. Entryset method will return the map entries\n // iterating over the entry set of the locations. key and value \n for (Map.Entry<String, List<Integer>> entry : getFoundLocations().entrySet()) {\n // If the key is empty - it gets ignored and continues on.\n if (entry.getKey().trim().length() < 1) {\n //found continue https://www.javatpoint.com/java-continue - was looking for a way to continue if the entry is less than 1\n continue;\n }\n //using the getKey method to fetch the set of entries\n String line = entry.getKey() + \" =\";\n // adding the line to the string arraylist\n lines.add(line);\n line = \"[\";\n // If the location list is empty we add the line and close off the locations. \n if (entry.getValue().size() == 0) {\n line += \"]\";\n lines.add(line);\n lines.add(\"\");\n } else {\n // loop through all the locations and keep line under 80 characters. Checking all the values and size\n for (int i = 0; i < entry.getValue().size(); i++) {\n //Declaring location as the value\n String location = \"\" + entry.getValue().get(i);\n // if i is equal to 0, then you are displaying the first of the positions in the list so you can append it to the position\n if (i == 0) {\n line += location;\n }\n //Added the else if if you are about to exceed 80 characters in your line, then you close the line and begin a new line\n else if (line.length() + location.length() + 2 > 80) {\n lines.add(line);\n line = location;\n }\n //Added the else if you are not at the beginning of the locations nor at the end of the line, you just append a comma and space and the location.\n else {\n line += \", \" + location;\n }\n //Checking to see if that was the last entry then close the bracket\n if (i == (entry.getValue().size() - 1)) {\n line += \"]\";\n lines.add(line);\n lines.add(\"\");\n }\n }\n }\n }\n for (String line : lines) {\n //Trying out this typechar character for automatic string conversion\n outputWriter.printf(\"%s\\n\", line);\n }\n outputWriter.println();\n } catch (IOException inputOutputException) {\n inputOutputException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }", "public abstract int end(int i);", "public static void merge(String in, long[] endPointers, String out)\n throws IOException {\n\n FileIO mergeFiles = new FileIO(in, out + \"Out.bin\");\n long[] currPointers = Arrays.copyOf(endPointers, endPointers.length\n - 1);\n Buffer[] runBuffers = new Buffer[currPointers.length];\n boolean[] runStatus = new boolean[runBuffers.length];\n for (int i = 0; i < currPointers.length; i++) {\n runBuffers[i] = new Buffer(1);\n runStatus[i] = false;\n }\n\n Buffer outBuffer = new Buffer(1);\n boolean mergeComplete = false;\n while (!mergeComplete) {\n\n for (int i = 0; i < runBuffers.length; i++) {\n if (!runStatus[i] && runBuffers[i].isEmpty()) {\n\n if (endPointers[i + 1] - currPointers[i] >= BLOCK_SIZE) {\n runBuffers[i].insertBlock(mergeFiles.getBlock(\n currPointers[i]));\n currPointers[i] = mergeFiles.getReadPointer();\n }\n else {\n runBuffers[i].insertBlock(mergeFiles.getPartialBlock(\n currPointers[i], endPointers[i + 1]));\n currPointers[i] = mergeFiles.getReadPointer();\n }\n if (currPointers[i] == endPointers[i + 1]) {\n runStatus[i] = true;\n }\n\n }\n }\n\n int bufferMinIdx = -1;\n Record min = null;\n for (int i = 0; i < runBuffers.length; i++) {\n if (!runBuffers[i].isEmpty()) {\n bufferMinIdx = i;\n min = runBuffers[i].getFirst();\n break;\n }\n }\n if (bufferMinIdx == -1) {\n if (outBuffer.isFull()) {\n mergeFiles.outBlock(outBuffer.removeBlock());\n }\n break;\n }\n for (int i = 0; i < runBuffers.length; i++) {\n if (!runBuffers[i].isEmpty() && min.compareTo(runBuffers[i]\n .getFirst()) > 0) {\n\n min = runBuffers[i].getFirst();\n bufferMinIdx = i;\n\n }\n\n }\n outBuffer.insertRecEnd(runBuffers[bufferMinIdx].removeRecFront());\n if (outBuffer.isFull()) {\n mergeFiles.outBlock(outBuffer.removeBlock());\n\n }\n\n }\n\n FileIO printFile = new FileIO(out + \"Out.bin\", \"Empty.bin\");\n int numRec = 0;\n while (printFile.getReadLength() != printFile.getReadPointer()) {\n outBuffer.insertBlock(printFile.getCurrBlock());\n System.out.print(outBuffer.removeRecFront().toString());\n numRec += 1;\n if (numRec % 5 == 0) {\n System.out.print(\"\\n\");\n }\n else {\n System.out.print(\" \");\n }\n }\n }", "public static String compile(OutputPin pin) {\n String index1String = \"\\t\\t\\t\\t\\tindex_1(\" + compileArray(pin.getParent().getIndex1()) + \");\\n\";\n String index2String = \"\\t\\t\\t\\t\\tindex_2(\" + compileArray(pin.getParent().getIndex2()) + \");\\n\";\n String output = \"\\n\\t\\tpin(\" + pin.getName() + \") {\\n\" + \"\\t\\t\\tdirection : output ;\\n\" + \"\\t\\t\\tfunction : \\\"(\"\n + pin.getOutputFunction() + \")\\\" ;\\n\" + \"\\t\\t\\tmax_capacitance : \"\n + Model.formatFloat(pin.getMaxCapacitance()) + \" ;\\n\" + \"\\t\\t\\tmin_capacitance : \"\n + Model.formatFloat(pin.getMinCapacitance()) + \" ;\\n\";\n for (InputPin relatedPin : pin.getParent().getInPins()) {\n boolean usedPin = false;\n for (OutputPower outputPower : pin.getOutputPowers()) {\n if (outputPower.getRelatedPin().getName().equals(relatedPin.getName())) {\n if (!usedPin) {\n output += \"\\n\\t\\t\\tinternal_power() {\\n\" + \"\\t\\t\\t\\trelated_pin : \\\"\" + relatedPin.getName()\n + \"\\\" ;\\n\";\n usedPin = true;\n }\n String valuesString = \"\\t\\t\\t\\t\\tvalues(\";\n for (float[] valuesArray : outputPower.getValues()) {\n valuesString += compileArray(valuesArray) + \",\\\\\\n\\t\\t\\t\\t\\t \";\n }\n valuesString = valuesString.substring(0, valuesString.length() - 15);\n output += \"\\n\\t\\t\\t\\t\" + outputPower.getPowGroup().name().toLowerCase() + \"() {\\n\" + index1String\n + index2String + valuesString + \");\\n\\t\\t\\t\\t}\\n\";\n }\n }\n if (usedPin) {\n output += \"\\t\\t\\t}\\n\";\n }\n }\n for (InputPin relatedPin : pin.getParent().getInPins()) {\n for (TimingSense timingSense : pin.getAvailableTimSen()) {\n for (TimingType timingType : pin.getAvailableTimType()) {\n boolean usedCombination = false;\n for (Timing timing : pin.getTimings()) {\n if (timing.getRelatedPin().getName().equals(relatedPin.getName())\n && timing.getTimSense().equals(timingSense) && timing.getTimType().equals(timingType)) {\n if (!usedCombination) {\n output += \"\\n\\t\\t\\ttiming() {\\n\" + \"\\t\\t\\t\\trelated_pin : \\\"\" + relatedPin.getName()\n + \"\\\" ;\\n\" + \"\\t\\t\\t\\ttiming_sense : \" + timingSense.name().toLowerCase()\n + \" ;\\n\" + \"\\t\\t\\t\\ttiming_type : \" + timingType.name().toLowerCase() + \" ;\\n\";\n usedCombination = true;\n }\n String valuesString = \"\\t\\t\\t\\t\\tvalues(\";\n for (float[] valuesArray : timing.getValues()) {\n valuesString += compileArray(valuesArray) + \",\\\\\\n\\t\\t\\t\\t\\t \";\n }\n valuesString = valuesString.substring(0, valuesString.length() - 15);\n valuesString += \"); \\n\";\n output += \"\\n\\t\\t\\t\\t\" + timing.getTimGroup().name().toLowerCase() + \"() {\\n\" + index1String\n + index2String + valuesString + \"\\t\\t\\t\\t}\\n\";\n }\n }\n if (usedCombination) {\n output += \"\\t\\t\\t}\\n\";\n }\n }\n }\n }\n output += \"\\n\\t\\t}\";\n return output;\n }", "public abstract int getEndIndex();", "private void runPassZero() {\n\t\twriterBucketID = 0;\n\t\tpassNumber = 0;\n\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode\n\t\t\t\t+ \"_\" + passNumber + \"_\" + writerBucketID);\n\n\t\twhile (true) {\n\t\t\twhile (outputBuffer.size() < bufferCapacity) {\n\t\t\t\tTuple temp = childOperator.getNextTuple();\n\t\t\t\tif (temp != null) {\n\t\t\t\t\toutputBuffer.add(temp);\n\t\t\t\t} else {\n\t\t\t\t\tsortOutputBuffer();\n\t\t\t\t\tflushOutputBuffer();\n\t\t\t\t\toutputWriter.close();\n\t\t\t\t\tprevTotalBuckets = writerBucketID + 1;\n\t\t\t\t\twriterBucketID = 0;\n\t\t\t\t\tpassNumber = 1;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsortOutputBuffer();\n\t\t\tflushOutputBuffer();\n\t\t\twriterBucketID++;\n\t\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\"\n\t\t\t\t\t+ instanceHashcode + \"_\" + passNumber + \"_\" + writerBucketID);\n\n\t\t}\n\t}", "public AndroidLintProfileGenerator(String input, String output) {\n\t pathTextFile = input;\n\t pathProfileXml = output;\n\t }", "public int getEnd() {\n return this.end;\n }", "private boolean reachedEnd() {\n return current >= source.length();\n }", "public String generateSentence() {\n // If our map is empty return the empty string\n if (model.size() == 0) {\n return \"\";\n }\n\n ArrayList<String> startWords = model.get(\"_begin\");\n ArrayList<String> endWords = model.get(\"_end\");\n\n // Retrieve a starting word to begin our sentence\n int rand = ThreadLocalRandom.current().nextInt(0, startWords.size());\n\n String currentWord = startWords.get(rand);\n StringBuilder sb = new StringBuilder();\n\n while (!endWords.contains(currentWord)) {\n sb.append(currentWord + \" \");\n ArrayList<String> nextStates = model.get(currentWord);\n\n if (nextStates == null) return sb.toString().trim() + \".\\n\";\n\n rand = ThreadLocalRandom.current().nextInt(0, nextStates.size());\n currentWord = nextStates.get(rand);\n }\n\n sb.append(currentWord);\n\n return sb.toString() + \"\\n\";\n\n\n }", "public boolean done() {\n\t\treturn pos>=program.length();\n }", "public int getEnd() {\n return end;\n }", "public int getEnd() {\r\n\t\treturn end;\r\n\t}", "@Test\n\tpublic void testP2(){\n\t\tList<Token> list = pa.getTokens(str);\n\t\tSystem.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n\t\tfor(Token t : list){\n\t\t\tSystem.out.println(t.toString());\n\t\t}\n\t\tSystem.out.println(\"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\");\n\t\tboolean a = false;\n\t\ttry {\n\t\t\ta = pa.runSentence(str,null);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"end res : \"+a);\n\t}", "public boolean end() {\n outputList.add(new ByteArrayInputStream(outputData));\n totBytes += outputData.length;\n return true;\n }", "public Object[] stoppingBatchEmit(int bank, int start, int end, boolean toFile) \n {\n return new Object[0]; \n }", "public Vector2 getEndLoc( ) { return endLoc; }", "@Override\n public int doWork() {\n INPUT = FileListParsingUtils.expandFileList(INPUT);\n\n if (OUTPUT != null && !OUTPUT.getPath().contains(OUTPUT_SLUG)) {\n throw new IllegalArgumentException(OUTPUT + \" does not contain the replacement token \" + OUTPUT_SLUG);\n }\n\n if (OUTPUT == null) {\n setDefaultOutput();\n }\n\n if (DELETE_INPUT_INDICES == null) {\n DELETE_INPUT_INDICES = DELETE_INPUTS;\n }\n\n // Check that input BAM files can be deleted\n if (DELETE_INPUTS) {\n for (File bamFile : INPUT) {\n IOUtil.assertFileIsWritable(bamFile);\n }\n }\n\n if (DELETE_INPUT_INDICES) {\n for (File bamFile : INPUT) {\n final File index = SamFiles.findIndex(bamFile);\n if (index != null && index.exists()) {\n IOUtil.assertFileIsWritable(index);\n }\n }\n }\n\n if (TARGET_BAM_SIZE != null) {\n long targetSize = dehumanizeFileSize(TARGET_BAM_SIZE);\n NUM_OUTPUTS = (int) Math.max(1, Math.round(1.0 * getTotalBamSize(INPUT) / targetSize));\n }\n\n checkOutputOverwrites();\n\n samWriterFactory = new SAMFileWriterFactory().setCreateIndex(CREATE_INDEX);\n\n headerAndIterator = SamFileMergeUtil.mergeInputs(INPUT, true);\n SamHeaderUtil.addPgRecord(headerAndIterator.header, this);\n splitBAMs();\n CloserUtil.close(headerAndIterator.iterator);\n for (SAMFileInfo writerInfo : writerInfoList) {\n writerInfo.getWriter().close();\n }\n if (OUTPUT_MANIFEST != null) {\n writeManifest(OUTPUT_MANIFEST);\n }\n\n\n writeOutputList();\n writeReport();\n\n if (DELETE_INPUTS) {\n deleteInputBamFiles();\n }\n\n\n return 0;\n }", "public static void CreateSpartanLHCScript(String outputPath, ArrayList<String> parameters,\n\t ArrayList<String> minVals, ArrayList<String> maxVals, ArrayList<String> baseline,\n\t ArrayList<String> increment)\n {\n\ttry\n\t{\n\t PrintWriter writer = new PrintWriter(outputPath + \"/OAT_Sampling.R\", \"UTF-8\");\n\t writer.println(\"library(spartan)\");\n\n\t // Write the filepath\n\n\t String OS = System.getProperty(\"os.name\").toLowerCase();\n\t if (OS.indexOf(\"win\") >= 0)\n\t {\n\t\tString winOutputPath = outputPath.replace(\"\\\\\", \"/\");\n\t\twriter.println(\"FILEPATH<-\\\"\" + winOutputPath + \"\\\"\");\n\t }\n\t else\n\t {\n\t\t// Not Windows\n\t\twriter.println(\"FILEPATH<-\\\"\" + outputPath + \"\\\"\");\n\t }\n\n\t // Now add the Parameters\n\t String parameterLine = \"PARAMETERS<-c(\";\n\t String minLine = \"PMIN<-c(\";\n\t String maxLine = \"PMAX<-c(\";\n\t String baselineLine = \"BASELINE<-c(\";\n\t String incLine = \"PINC<-c(\";\n\n\t for (int param = 0; param < parameters.size() - 1; param++)\n\t {\n\t\tparameterLine = parameterLine + \"\\\"\" + parameters.get(param) + \"\\\",\";\n\t\tminLine = minLine + \"\" + minVals.get(param) + \",\";\n\t\tmaxLine = maxLine + \"\" + maxVals.get(param) + \",\";\n\t\tbaselineLine = baselineLine + \"\" + baseline.get(param) + \",\";\n\t\tincLine = incLine + \"\" + increment.get(param) + \",\";\n\t }\n\t // Now add the final parameter\n\t parameterLine = parameterLine + \"\\\"\" + parameters.get(parameters.size() - 1) + \"\\\")\";\n\t minLine = minLine + \"\" + minVals.get(parameters.size() - 1) + \")\";\n\t maxLine = maxLine + \"\" + maxVals.get(parameters.size() - 1) + \")\";\n\t baselineLine = baselineLine + \"\" + baseline.get(parameters.size() - 1) + \")\";\n\t incLine = incLine + \"\" + increment.get(parameters.size() - 1) + \")\";\n\n\t writer.println(parameterLine);\n\t writer.println(minLine);\n\t writer.println(maxLine);\n\t writer.println(baselineLine);\n\t writer.println(incLine);\n\n\t // Write the call\n\t writer.println(\"oat_parameter_sampling(FILEPATH,PARAMETERS,BASELINE,PMIN,PMAX,PINC)\");\n\n\t writer.close();\n\n\t}\n\tcatch (Exception e)\n\t{\n\t e.printStackTrace();\n\t}\n\n }", "public void testMoveToEnd() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n test1.moveToEnd();\n test1.prev();\n assertTrue(test1.getValue().inRange(9));\n }", "String getDefiningEnd();", "public String generateCode(){\n return \"P\" + repository.getCount();\n }", "private void eatRangeEnd() {\n\n Token token = tokens.get(currentTokenPointer++);\n\n if (token.kind == TokenKind.ENDINCLUSIVE) {\n\n endInclusive = true;\n\n } else if (token.kind == TokenKind.ENDEXCLUSIVE) {\n\n endInclusive = false;\n\n } else {\n\n raiseParseProblem(\"expected a version end character ']' or ')' but found '\" + string(token) + \"' at position \" + token.start, token.start);\n\n }\n\n }", "public static int Main()\n\t\t{\n\t\t\tint n;\n\t\t\tint i;\n\t\t\tint wl;\n\t\t\tint len = 0;\n\t\t\tint line = 0;\n\t\t\tString w = new String(new char[64]);\n\t\t\tString tempVar = ConsoleInput.scanfRead();\n\t\t\tif (tempVar != null)\n\t\t\t{\n\t\t\t\tn = Integer.parseInt(tempVar);\n\t\t\t}\n\t\t\tfor (int i = 1; i <= n; i++)\n\t\t\t{\n\t\t\t\tString tempVar2 = ConsoleInput.scanfRead();\n\t\t\t\tif (tempVar2 != null)\n\t\t\t\t{\n\t\t\t\t\tw = tempVar2.charAt(0);\n\t\t\t\t}\n\t\t\t\twl = w.length();\n\t\t\t\tif (line == 0)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.printf(\"%s\",w);\n\t\t\t\t\tlen = wl;\n\t\t\t\t\tline++;\n\t\t\t\t}\n\t\t\t\telse if (len + wl + 1 <= 80)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.printf(\" %s\",w);\n\t\t\t\t\tlen += wl + 1;\n\t\t\t\t}\n\t\t\t\telse if (len + wl + 1 > 80)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.printf(\"\\n%s\",w);\n\t\t\t\t\tlen = wl;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 0;\n\t\t}", "boolean hasEndPosition();", "boolean hasEndPosition();", "private String addEnd() {\n\t\t// NO PARAMETERS\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|End\");\n\t\treturn tag.toString();\n\t}", "public int getEnd() {\n\t\treturn end;\n\t}", "private String computeOutput(int modifier, char character)\n { \n Hashtable<String, String[]> sequences = data.getDeadKeySequences();\n String key, terminator, sequenceData[];\n\n\t Hashtable<Integer, String[]> deadKeyMap = data.getDeadKeyMap(modifier);\n\t if (deadKeyMap==null)\n\t {\n\t\t terminator = data.findTerminator(state);\n\t\t state = \"none\";\n\t\t return terminator;\n\t }\n\t\n\t String[] mapData = deadKeyMap.get((int)character);\n\t if (mapData == null)\n\t {\n\t\t terminator = \"\";\n\t\t if (!state.equals(\"none\"))\n\t\t {\n\t\t\t terminator = data.findTerminator(state);\n\t\t }\n \t char[] keyMap = data.getModifierKeyMap(modifier);\n \t char xlate = translateChar\n (keyMap, character);\n \t state = \"none\";\n \t return terminator + xlate;\n\t }\n\n\t if (mapData[ACTION].length()==0)\n\t {\n\t\t state = \"none\";\n\t\t return mapData[OUTPUT]; // No next state\n\t }\n\n\t if (state.contentEquals(\"none\"))\n {\n\t\t key = state + \"~~\" + mapData[ACTION];\n\t\t sequenceData = sequences.get(key);\n\t\t if (sequenceData == null)\n\t\t {\n\t\t\t terminator = data.findTerminator(mapData[ACTION]);\n\t\t\t state = \"none\";\n\t\t\t return terminator;\n\t\t }\n\n\t\t if (sequenceData[ACTION].length()>0)\n\t\t {\n\t\t\t state = sequenceData[ACTION];\n\t\t\t return \"\";\n\t\t }\n\t\t else\n\t\t {\n\t\t\t state = \"none\";\n\t\t\t return sequenceData[OUTPUT];\n\t\t }\n }\n\t \n key = state + \"~~\" + mapData[ACTION];\n sequenceData = sequences.get(key);\n if (sequenceData == null)\n {\n\t\t terminator = data.findTerminator(state);\n \t char[] keyMap = data.getModifierKeyMap(modifier);\n \t char xlate = translateChar\n (keyMap, character);\n \t state = \"none\";\n \t return terminator + xlate;\n }\n \n if (sequenceData[ACTION].length()==0)\n {\n \t state = \"none\";\n \t return sequenceData[OUTPUT];\n }\n \t\t\t \n state = sequenceData[ACTION];\n return \"\";\n }", "public String next() {\n // abc len=2 [0,1]--> [0,2]---> [1,2] //\n // abc len=3 [0,1,2]\n // 01,02,03,12,13,23 len=2 c=4\n //\n for (int i = len-1; i >=0; i--) {\n // i = 1; (2)\n // i = 0; (1)\n// if (index[i]< characters.length()-1 - (len-1 - i)) {\n if (index[i]< characters.length() - len + i) {\n index[i]++;\n break;\n }\n }\n StringBuilder sb = new StringBuilder();\n for(int i:index) {\n sb.append(characters.charAt(i));\n }\n return sb.toString();\n }", "private String getExpectedXMLOutput() {\r\n\t\tStringBuffer xml = new StringBuffer();\r\n\t\txml.append(\"<ddms:verticalExtent \").append(getXmlnsDDMS()).append(\" \");\r\n\t\txml.append(\"ddms:unitOfMeasure=\\\"\").append(TEST_UOM).append(\"\\\" \");\r\n\t\txml.append(\"ddms:datum=\\\"\").append(TEST_DATUM).append(\"\\\">\\n\\t\");\r\n\t\txml.append(\"<ddms:\").append(getTestMinVerticalExtentName()).append(\">\").append(TEST_MIN);\r\n\t\txml.append(\"</ddms:\").append(getTestMinVerticalExtentName()).append(\">\\n\\t\");\r\n\t\txml.append(\"<ddms:\").append(getTestMaxVerticalExtentName()).append(\">\").append(TEST_MAX);\r\n\t\txml.append(\"</ddms:\").append(getTestMaxVerticalExtentName()).append(\">\\n\");\r\n\t\txml.append(\"</ddms:verticalExtent>\");\r\n\t\treturn (xml.toString());\r\n\t}", "public interface Generator {\n /**\n * Generates part of the output lines for each input line\n * One outline for each:\n * -Given\n * -Postfix\n * -Postfix Evaluation\n * @param outputLine - string to be appended\n * @param index - index of the input line being processed\n */\n public void generateOutputLine(String outputLine, int index);\n}", "public String getEnd(){\n\t\treturn end;\n\t}", "public static void main(String[] args) {\n String X_awal = \"my name is marouane, and i'm sick, thank you very much\";\n String Y = \"my name is adeleye, but you are very sick, thank you \";\n String X = match(X_awal, Y);\n int[] Penanda_Y = new int[Y.length()];\n int y_length = Y.length();\n for (int k = 0; k < y_length; k++) {\n Penanda_Y[k] = 0;\n }\n int m = X.length();\n int n = Y.length();\n String L = \"\";\n String LSym = \"\";\n int R = 0;\n int i = 1;\n int[] P = new int[100];\n P[i] = posisi(X, Y, i, Penanda_Y, R);\n i = 1;\n while (i <= m) {\n if (i != m) {\n P[i + 1] = posisi(X, Y, (i + 1), Penanda_Y, R);\n }\n if (P[i + 1] == 0) {\n if (P[i] > R) {\n L = L + \" \" + Integer.toString(P[i]);\n LSym = LSym + \" \" + X.charAt(i - 1);\n }\n break;\n }\n\n if (P[i + 1] < R || P[i] < R) {\n R = 0;\n }\n if (P[i] > P[i + 1]) {\n if (R == 0 && i > 1) {\n L = L + \" \" + Integer.toString(P[i]);\n LSym = LSym + \" \" + X.charAt(i - 1);\n Penanda_Y[P[i] - 1] = 1;\n R = P[i];\n i = i + 1;\n if (R == Y.length() || i > X.length()) {\n break;\n }\n P[i] = posisi(X, Y, i, Penanda_Y, R);\n } else {\n L = L + \" \" + Integer.toString(P[i + 1]);\n LSym = LSym + \" \" + X.charAt(i + 1 - 1);\n Penanda_Y[P[i + 1] - 1] = 1;\n R = P[i + 1];\n i = (i + 1) + 1;\n if (R == Y.length() || i > X.length()) {\n break;\n }\n P[i] = posisi(X, Y, i, Penanda_Y, R);\n }\n\n } else {\n\n if (R == 0 && i > 1) {\n L = L + \" \" + Integer.toString(P[i + 1]);\n LSym = LSym + \" \" + X.charAt(i + 1 - 1);\n Penanda_Y[P[i + 1] - 1] = 1;\n R = P[i + 1];\n i = (i + 1) + 1;\n if (R == Y.length() || i > X.length()) {\n break;\n }\n P[i] = posisi(X, Y, i, Penanda_Y, R);\n } else {\n L = L + \" \" + Integer.toString(P[i]);\n LSym = LSym + \" \" + X.charAt(i - 1);\n Penanda_Y[P[i] - 1] = 1;\n R = P[i];\n i = i + 1;\n if (R == Y.length() || i > X.length()) {\n break;\n }\n P[i] = posisi(X, Y, i, Penanda_Y, R);\n }\n }\n }\n System.out.println(\"X = \" + X_awal);\n System.out.println(\"X = \" + Y);\n System.out.println(\"L = \" + L);\n System.out.println(\"LSym = \" + LSym);\n System.out.println(\"Length = \" + LSym.length() / 2);\n}", "public void setEnd(int end) {\r\n this.end = end;\r\n }", "net.opengis.gml.x32.TimePositionType getEndPosition();", "speech.multilang.Params.OutputControllerParamsOrBuilder getOutputParamsOrBuilder();", "boolean hasOutput();", "public String getTemplate(AnalysisOutput output) {\n String performance = output.getPerformance();\n String alert = output.getAlert();\n String history = output.getHistory();\n Baseline baseline = null;\n ReportStatus status;\n String measurement = \" \";\n Job job = null;\n Matcher matcher = PATTERN_AVG_COUNT.matcher(performance);\n if (matcher.find()) {\n String template = \"unknown\";\n int averageCount = Integer.parseInt(matcher.group(1));\n if (averageCount == 1) {\n template = reportTemplate1;\n } else {\n Matcher avgMatcher = PATTERN_AVG.matcher(performance);\n if (avgMatcher.find()) {\n short avgElapsedPct = Short.parseShort(avgMatcher.group(1).replaceAll(\">999\", \"+999\"));\n short avgCpuPct = Short.parseShort(avgMatcher.group(2).replaceAll(\">999\", \"+999\"));\n short avgExcpPct = Short.parseShort(avgMatcher.group(3).replaceAll(\">999\", \"+999\"));\n short avgSrvuPct = Short.parseShort(avgMatcher.group(4).replaceAll(\">999\", \"+999\"));\n baseline = new Baseline(avgElapsedPct, avgCpuPct, avgExcpPct, avgSrvuPct);\n } else {\n throw new RuntimeException(\"Could not evaluate avg_count for performance analysis\");\n }\n }\n\n // Evaluate job and program information\n Matcher jobProgInf = PATTERN_FIRST.matcher(performance);\n if (jobProgInf.find()) {\n String jobName = jobProgInf.group(1);\n String stepName = jobProgInf.group(2);\n String procStep = jobProgInf.group(3);\n String program = jobProgInf.group(4);\n job = new Job(jobName, stepName, procStep, program);\n } else {\n throw new RuntimeException(\"Could not evaluate output information\");\n }\n\n if (averageCount > 1) {\n String alertJob = \"unknown\";\n if (alert.contains(\"No ALERTS generated today\")) {\n status = ReportStatus.WITHIN_THE_NORMAL_RANGE;\n template = reportTemplate2;\n } else {\n Matcher alertMatcher = PATTERN_ALERT.matcher(alert);\n if (alertMatcher.find()) {\n alertMatcher.find(); //Second match\n alertJob = alertMatcher.group(1);\n measurement = alertJob;\n if (alertJob.contains(job.name)) {\n status = ReportStatus.ALERT;\n template = reportTemplate3;\n } else {\n status = ReportStatus.WITHIN_THE_NORMAL_RANGE;\n template = reportTemplate2;\n }\n final SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n String formattedDate = dateFormat.format(new Date());\n if (history.contains(formattedDate)) {\n template = template.replace(\"%MAT_MEASUREMENT_ALERT%\",\n \"PMA generated an alert and MAT measurement was performed\");\n } else {\n template = template.replace(\"%MAT_MEASUREMENT_ALERT%\", \" \");\n }\n } else {\n throw new RuntimeException(\"Could not evaluate alert information\");\n }\n }\n\n if ((status != ReportStatus.WARNING) && (status != ReportStatus.ALERT)) {\n status = ReportStatus.WITHIN_THE_NORMAL_RANGE;\n if (baseline.elapsed <= NORMAL_RANGE_THRESHOLD) {\n status = ReportStatus.WARNING;\n }\n if (baseline.cpu <= NORMAL_RANGE_THRESHOLD) {\n status = ReportStatus.WARNING;\n }\n if (baseline.excp <= NORMAL_RANGE_THRESHOLD) {\n status = ReportStatus.WARNING;\n }\n if (baseline.srvu <= NORMAL_RANGE_THRESHOLD) {\n status = ReportStatus.WARNING;\n }\n }\n if (status == ReportStatus.WARNING) {\n template = reportTemplate4;\n }\n\n template = template.replace(\"%ELP%\", baseline.elapsed + \"%\");\n template = template.replace(\"%ELP_STATUS%\", baseline.elapsed <= 0 ? \"success\" : \"failures\");\n template = template.replace(\"%CPU%\", baseline.cpu + \"%\");\n template = template.replace(\"%CPU_STATUS%\", baseline.cpu <= 0 ? \"success\" : \"failures\");\n template = template.replace(\"%EXCP%\", baseline.excp + \"%\");\n template = template.replace(\"%EXCP_STATUS%\", baseline.excp <= 0 ? \"success\" : \"failures\");\n template = template.replace(\"%SRVU%\", baseline.srvu + \"%\");\n template = template.replace(\"%SRVU_STATUS%\", baseline.srvu <= 0 ? \"success\" : \"failures\");\n\n Matcher previousMatcher = PATTERN_SEC.matcher(performance);\n String prefix = \"CUR\";\n while (previousMatcher.find()) {\n template = template.replace(\"%\" + prefix + \"_DATE%\", previousMatcher.group(1));\n template = template.replace(\"%\" + prefix + \"_TIME%\", previousMatcher.group(2));\n template = template.replace(\"%\" + prefix + \"_CODE%\", previousMatcher.group(3));\n template = template.replace(\"%\" + prefix + \"_SYSTEM%\", previousMatcher.group(4));\n template = template.replace(\"%\" + prefix + \"_ELAPSED%\", previousMatcher.group(5));\n template = template.replace(\"%\" + prefix + \"_CPU%\", previousMatcher.group(6));\n template = template.replace(\"%\" + prefix + \"_EXCP%\", previousMatcher.group(7));\n template = template.replace(\"%\" + prefix + \"_SRVU%\", previousMatcher.group(8));\n prefix = \"PREV\";\n }\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\n String reportGenerateTimestamp = sdf.format(new Date());\n Matcher avgCalc = PATTERN_AVG_CALC.matcher(performance);\n\n if (avgCalc.find()) {\n template = template.replace(\"%AVG_CALCULATION%\", avgCalc.group(1));\n template = template.replace(\"%AVG_ELAPSED%\", avgCalc.group(2));\n template = template.replace(\"%AVG_CPU%\", avgCalc.group(3));\n template = template.replace(\"%AVG_EXCP%\", avgCalc.group(4));\n template = template.replace(\"%AVG_SRVU%\", avgCalc.group(5));\n } else {\n throw new RuntimeException(\"Could not evaluate average calculations\");\n }\n template = template.replace(\"%MEASUREMENT%\", measurement);\n template = template.replace(\"%INITIAL_TEST%\", status.toString().replaceAll(\"_\", \" \"));\n template = template.replace(\"%JOBNAME%\", job.name);\n template = template.replace(\"%STEPNAME%\", job.step);\n template = template.replace(\"%PROCSTEP%\", job.proc);\n template = template.replace(\"%PROGRAM%\", job.pgmJcl);\n template = template.replace(\"%REPORT_GENERATE_TIMESTAMP%\", reportGenerateTimestamp);\n return template;\n }\n } else {\n throw new RuntimeException(\"Could not evaluate average count\");\n }\n throw new RuntimeException(\"Could not create e-mail template with performance analysis results.\");\n }", "public static String run() {\r\n\t\t// Initialize\r\n\t\tint[] array = new int[10];\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tarray[i] = i;\r\n\r\n\t\t// Permute\r\n\t\tfor (int i = 0; i < 999999; i++) {\r\n\t\t\tif (!nextPermutation(array))\r\n\t\t\t\tthrow new AssertionError();\r\n\t\t}\r\n\r\n\t\t// Format output\r\n\t\tString ans = \"\";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tans += array[i];\r\n\t\treturn ans;\r\n\t}", "public String getEndAt() {\n return endAt;\n }" ]
[ "0.54097104", "0.51898044", "0.4940742", "0.4937477", "0.49252018", "0.48435074", "0.47817385", "0.47642222", "0.471513", "0.46754405", "0.46305823", "0.46223384", "0.4622118", "0.46035734", "0.45965096", "0.45961136", "0.45539948", "0.45482674", "0.4535968", "0.45271453", "0.44726482", "0.44722468", "0.44600797", "0.4425265", "0.4414888", "0.44023395", "0.44019958", "0.43894312", "0.43848664", "0.43817744", "0.43781164", "0.43775538", "0.4376398", "0.43762457", "0.43700776", "0.43615347", "0.43508822", "0.43475527", "0.433852", "0.43244627", "0.43192285", "0.43147355", "0.4313095", "0.43128118", "0.43095434", "0.4306857", "0.4302338", "0.4301686", "0.4291952", "0.4287931", "0.4285107", "0.4279717", "0.42776835", "0.42685044", "0.42658156", "0.4262365", "0.4260653", "0.4255446", "0.42407674", "0.42379802", "0.42284232", "0.42265236", "0.42249885", "0.42237446", "0.4219486", "0.42193523", "0.42186818", "0.42137766", "0.42081624", "0.42072254", "0.42058545", "0.42054293", "0.42040485", "0.42000604", "0.4196305", "0.4195229", "0.41871744", "0.4178862", "0.41746983", "0.4173872", "0.41649476", "0.4159916", "0.41591063", "0.41583455", "0.41583455", "0.41560438", "0.41499463", "0.41498885", "0.41425428", "0.41385016", "0.4137679", "0.41282767", "0.41274065", "0.4125433", "0.41236985", "0.41233155", "0.4121137", "0.4118107", "0.41179314", "0.4115178" ]
0.5051967
2
get next of current or "previous current"
private String getNext(String current) { if(!chain.containsKey(current)) return null; Set<String> nextOptions = chain.get(current); if(nextOptions == null || nextOptions.size() == 0) return null; Object[] nextArray = nextOptions.toArray(); return (String)(nextArray[(int)(Math.random() * nextArray.length)]); //get one from nextArray randomly }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object next()\n {\n if(!hasNext())\n {\n throw new NoSuchElementException();\n //return null;\n }\n previous= position; //Remember for remove;\n isAfterNext = true; \n if(position == null) \n {\n position = first;// true == I have not called next \n }\n else\n {\n position = position.next;\n }\n return position.data;\n }", "public E getNext() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index >= this.size() - 1)\n\t\t\t\tindex = -1;\n\t\t\treturn this.get(++index);\n\t\t}\n\t\treturn null;\n\t}", "public K next()\n {\n\tif (hasNext()) {\n\t K element = current.data();\n\t current = current.next(0);\n\t return element; \n\t} else {\n\t return null; \n\t}\n }", "public Object getNext() {\n\t\tif (current != null) {\n\t\t\tcurrent = current.next; // Get the reference to the next item\n\t\t}\n\t\treturn current == null ? null : current.item;\n\t}", "public E next() {\r\n\r\n\t\tE result = null;\r\n\t\tif (hasNext()) {\r\n\t\t\tresult = links.get(counter);\r\n\t\t\tcounter++;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public SlideNode getNext() {\n\t\treturn next;\n\t}", "@Override\n\t\tpublic Item next() {\n\t\t\tItem item=current.item;\n\t\t\tcurrent=current.next;\n\t\t\treturn item;\n\t\t}", "public T next()\n {\n T data = current.item;\n current = current.next;\n return data;\n }", "public T next() {\n T temp = this.curr.next.getData();\n this.curr = this.curr.next;\n return temp;\n }", "public T next() {\n T temp = this.curr.getData();\n this.curr = this.curr.getNext();\n return temp;\n }", "public T next()\r\n { \r\n if (next == null)\r\n throw new NoSuchElementException(\"Attempt to\" +\r\n \" call next when there's no next element.\");\r\n\r\n prev = next;\r\n next = next.next;\r\n return prev.data;\r\n }", "public int next() {\n\treturn _current < _last ? _data[_current++] : END;\n }", "public ListElement<T> getNext()\n\t{\n\t\treturn next;\n\t}", "public long next() {\n long ret = prev;\n prev = current;\n current = ret + current;\n return ret;\n }", "public C getNext();", "public int next() {\r\n\t\tif (currentPosition <= list.length &&list[currentPosition]==-1) {\r\n\t\t\tcurrentPosition = 0;\r\n\t\t\treturn list[currentPosition];\r\n\t\t}\r\n\t\treturn list[currentPosition++];\r\n\t}", "@Override\n public Integer next() {\n Integer result = null;\n if (checkCurrentIterator(this.currentIterator) && this.currentIterator.hasNext()) {\n while (this.currentIterator.hasNext()) {\n return this.currentIterator.next();\n }\n } else if (it.hasNext()) {\n this.currentIterator = getIterator(it);\n return this.next();\n }\n return result;\n }", "public T getNextElement();", "public E next() {\r\n current++;\r\n return elem[current];\r\n }", "public E next()\n\t{\n\t\treturn (vector.get(curr++));\n\t}", "public T getNext(T element);", "@Override\r\n\t\tpublic Key next() {\n\t\t\tKey i=current.item;\r\n\t\t\tcurrent=current.next;\r\n\t\t\treturn i;\r\n\t\t}", "public Item next(){\n if(current==null) {\n throw new NoSuchElementException();\n }\n\n Item item = (Item) current.item;\n current=current.next;\n return item;\n }", "@Override\n public T next() {\n T n = null;\n if (hasNext()) {\n // Give it to them.\n n = next;\n next = null;\n // Step forward.\n it = it.next;\n stop -= 1;\n } else {\n // Not there!!\n throw new NoSuchElementException();\n }\n return n;\n }", "public Object getNext() { \t\n\t\t\tcurrIndex++;\t \n\t\t\treturn collection.elementAt(currIndex);\n\t\t}", "Object getNextElement() throws NoSuchElementException;", "@Override\n\t\tpublic int next() {\n\t\t\treturn current++;\n\t\t}", "public E nextStep() {\r\n\t\tthis.current = this.values[Math.min(this.current.ordinal() + 1, this.values.length - 1)];\r\n\t\treturn this.current;\r\n\t}", "public int getCurrentNext() {\n\t\tInteger ii = (Integer) get_Value(\"CurrentNext\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public ListNode<T> getNext();", "public void gotoNext(){\r\n if(curr == null){\r\n return;\r\n }\r\n prev = curr;\r\n curr = curr.link;\r\n }", "@Override\n public Integer next() {\n if (hasTop) {\n hasTop = false;\n return top;\n }\n return it.next();\n }", "public boolean getNext();", "String getNext();", "String getNext();", "public T getNextItem();", "private E next() {\n\t\tif (hasNext()) {\n\t\t\tE temp = iterator.data;\n\t\t\titerator = iterator.next;\n\t\t\treturn temp;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n public Integer next() {\n if (cur != null) {\n int temp = cur.intValue();\n cur = null;\n return temp;\n }\n\n if (iter.hasNext()) {\n return iter.next();\n }\n\n return null;\n }", "public T next() {\n return array[current++];\n }", "public T next()\n\t\t{\n\t\t\tif(hasNext())\n\t\t\t{\n\t\t\t\tT currentData = current.getData(); //the data that will be returned\n\t\t\t\t\n\t\t\t\t// must continue to keep track of the Node that is in front of\n\t\t\t\t// the current Node whose data is must being returned , in case\n\t\t\t\t// its nextNode must be reset to skip the Node whose data is\n\t\t\t\t// just being returned\n\t\t\t\tbeforePrevious = previous;\n\t\t\t\t\n\t\t\t\t// must continue keep track of the Node that is referencing the\n\t\t\t\t// data that was just returned in case the user wishes to remove()\n\t\t\t\t// the data that was just returned\n\t\t\t\t\n\t\t\t\tprevious = current; // get ready to point to the Node with the next data value\n\t\t\t\t\n\t\t\t\tcurrent = current.getNext(); // move to next Node in the chain, get ready to point to the next data item in the list\n\t\t\t\t\n\t\t\t\tthis.removeCalled = false;\n\t\t\t\t// it's now pointing to next value in the list which is not the one that may have been removed\n\t\t\t\t\n\t\t\t\treturn currentData;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\t}\n\t\t}", "@Override\n public T next() {\n current = current.next;\n return current.data;\n }", "@Override\n public Integer next() {\n if (next != null) {\n Integer next = this.next;\n this.next = null;\n return next;\n\n }\n\n return iterator.next();\n }", "IList<T> getNext();", "@Override\n public Node next() {\n if (next == null) {\n throw new NoSuchElementException();\n }\n Node current = next;\n next = next.getNextSibling();\n return current;\n }", "public HL7DataTree next() {\n final int size = Util.size(this.list), i = this.next == null ? size : this.list.indexOf(this.next) + 1;\n final HL7DataTree curr = this.next;\n \n this.next = i == size ? more() : this.list.get(i);\n \n return curr;\n }", "public BSCObject next()\n {\n if (ready_for_fetch)\n {\n // the next sibling is waiting to be returned, so just return it\n ready_for_fetch = false;\n return sibling;\n }\n else if (hasNext())\n {\n // make sure there is a next sibling; if so, return it\n ready_for_fetch = false;\n return sibling;\n }\n else\n throw new NoSuchElementException();\n }", "@Nonnull\n public Optional<ENTITY> next()\n {\n currentItem = Optional.of(items.get(++index));\n update();\n return currentItem;\n }", "@Override\n\tpublic Item next() {\n\t\tindex = findNextElement();\n\n\t\tif (index == -1)\n\t\t\treturn null;\n\t\treturn items.get(index);\n\t}", "public Item next() {\n\t\t\tif (!hasNext())\n\t\t\t\treturn null;\n lastAccessed = current;\n Item item = current.item;\n current = current.next; \n index++;\n return item;\n\t\t}", "public T getNext() {\n\n // Create a new item to return\n T nextElement = getInstance();\n\n // Check if there are any more items from the list\n if (cursor <= arrayLimit) {\n nextElement = collection.get(cursor);\n cursor++;\n } else {\n // There are no more items - set to null\n nextElement = null;\n }\n\n // Return the derived item (will be null if not found)\n return nextElement;\n }", "public T next(){\r\n\t\t\tif (expectedModCount != modCount){\r\n\t\t\t\tthrow new ConcurrentModificationException();\r\n\t\t\t}\r\n\t\t\tT passed = current;\r\n\t\t\tif ((currentNode.next==endMarker)&&(currentNode.getLast()==current)){\r\n\t\t\t\tcurrentNode = endMarker;\r\n\t\t\t\tcurrent = null;\r\n\t\t\t\treturn passed;\r\n\t\t\t}\r\n\t\t\tif (currentNode.indexOf(current)==currentNode.getArraySize()-1){\r\n\t\t\t\tcurrentNode = currentNode.next;\r\n\t\t\t\tcurrent = currentNode.getFirst();\r\n\t\t\t\tidx = 0;\r\n\t\t\t\treturn passed;\r\n\t\t\t}\t\r\n\t\t\tidx++;\r\n\t\t\tcurrent = currentNode.get(idx);\r\n\t\t\treturn passed;\r\n\t\t}", "public void goToNext() {\r\n\t\tif (curr == null)\r\n\t\t\treturn;\r\n\t\tprev = curr;\r\n\t\tcurr = curr.link;\r\n\t}", "public Node<S> getNext() { return next; }", "public Node getNext() { return next; }", "public Nodo getnext ()\n\t\t{\n\t\t\treturn next;\n\t\t\t\n\t\t}", "public Node<E> getNext() { return next; }", "public T getNext()\n {\n T elem = handler.getTop();\n handler.pop();\n return elem;\n }", "public T next() {\n return cur.next();\n }", "public E next() \n {\n \tfor(int i = 0; i < size; i++)\n \t\tif(tree[i].order == next) {\n \t\t\tnext++;\n \t\t\ttree[i].position = i;\n \t\t\treturn tree[i].element;\n \t\t}\n \treturn null;\n }", "public Player getNext(){\n\t\treturn this.players.get(this.nextElem);\n\t}", "public Node getNext() {\t\t//O(1)\n\t\treturn next;\n\t}", "public ListElement getNext()\n\t {\n\t return this.next;\n\t }", "private Object getNextElement()\n {\n return __m_NextElement;\n }", "public Node getNext(){\n\t\treturn next;\n\t}", "public Prism getNext() {\r\n\t\treturn next;\r\n\t}", "@Override\n\t\tpublic T1 next() {\n\t\t\treturn (T1)_items[getindex(++_current)];\n\t\t}", "public MyNode<? super E> getNext()\n\t{\n\t\treturn this.next;\n\t}", "public Node getNext(){\n\t\t\treturn next;\n\t\t}", "public Integer next() {\n if (list.isEmpty()){\n return iterator.next();\n }else {\n Integer integer = list.get(list.size() - 1);\n list.remove(list.size()-1);\n return integer;\n }\n\n }", "@Override\n public Integer next() {\n if (!isPeeked && hasNext())\n return iterator.next();\n int toReturn = peekedElement;\n peekedElement = -1;\n isPeeked = false;\n return toReturn;\n }", "public abstract Tuple getNext();", "public Index next() {\n return Index.valueOf(value + 1);\n }", "public int nextOffset(int curr) {\n return curr + 1;\n }", "public Variable getNext(){\n\t\treturn this.next;\n\t}", "@Override\n public Integer next() {\n Integer res = next;\n advanceIter();\n return res;\n }", "@Override\n public IntVec3 next() {\n if(this.hasNext()){\n this.current = this.current.clone();\n } else throw new NoSuchElementException();\n if(this.current.x != this.end.x){\n this.current=this.current.incrX(this.xDir);\n } else if(this.current.y != this.end.y){\n this.current=IntVec3.get(0, this.current.y + this.yDir, this.current.z);\n } else if(this.current.z != this.end.z){\n this.current=IntVec3.get(0, 0, this.current.z + this.zDir);\n } else throw new NoSuchElementException();\n return this.current;\n }", "public ListNode getNext()\r\n {\r\n return next;\r\n }", "public Item next() throws NoSuchElementException {\n if (isEmpty()) {\n throw new NoSuchElementException(\"Cannot retrieve item from empty deque\");\n }\n Item item = current.getItem(); //item = current item to be returned\n current = current.getNext();\n return item;\n }", "public DNode getNext() { return next; }", "public IndexRecord getIteratorNext() {\n iter = (iter == next - 1 ? -1: iter + 1);\n return (iter == -1 ? null : data[iter]);\n }", "public Z peek() {\n return mNext;\n }", "private int findNextElement() {\n\t\tif (hasNext()) {\n\t\t\tint value = this.index + 1;\n\t\t\treturn value;\n\n\t\t}\n\t\treturn -1;\n\t}", "public Object next()throws NullPointerException\r\n {\r\n if(hasNext())\r\n return e.get(index+1);\r\n else\r\n throw new NullPointerException();\r\n }", "public Node getNext()\r\n\t{\r\n\t\treturn next;\r\n\t}", "public Node getNext()\r\n\t{\r\n\t\treturn next;\r\n\t}", "public LLNode<T> getNext() {\n return next;\n }", "@Override\n public Integer next() {\n if (next == null) {\n throw new NoSuchElementException();\n }\n Integer toReturn = next;\n next = null;\n if (peekingIterator.hasNext()) {\n next = peekingIterator.next();\n }\n return toReturn;\n }", "public Node getNext()\n\t{\n\t\treturn next;\n\t}", "public Node getNext()\n\t{\n\t\treturn next;\n\t}", "public final TemplateSubPatternAssociation getNext() {\n/* 230 */ return this.m_next;\n/* */ }", "@Override\r\n\tpublic String next() {\n\t\tString nx;\r\n\r\n\t\tnx = p.getNext();\r\n\r\n\t\tif (nx != null) {\r\n\t\t\tthisNext = true;\r\n\t\t\tinput(nx);\r\n\t\t}\r\n\t\treturn nx;\r\n\t}", "public AIter next() {\n int p;\n return (p = start + 1) < size ? new Iter(p) : null;\n }", "public PlayerPosition getNext() {\n\n\t\tswitch (this) {\n\t\t\tcase BOTTOM:\n\t\t\t\treturn LEFT;\n\t\t\tcase LEFT:\n\t\t\t\treturn TOP;\n\t\t\tcase TOP:\n\t\t\t\treturn RIGHT;\n\t\t\tcase RIGHT:\n\t\t\t\treturn BOTTOM;\n\t\t\tdefault:\n\t\t\t\t// must not happen\n\t\t\t\treturn null;\n\t\t}\n\t}", "public E next()\n {\n if (hasNext())\n {\n E item = currentNode.data();\n currentNode = currentNode.next();\n count--;\n return item;\n }\n else\n {\n throw new NoSuchElementException(\"There isnt another element\");\n\n }\n }", "@Override\n public Item next() {\n if(!hasNext()) throw new NoSuchElementException(\"Failed to perform next because hasNext returned false!\");\n Item item = current.data;\n current = current.next;\n return item;\n }", "String getPrevious();", "public node getNext() {\n\t\t\treturn next;\n\t\t}", "Object previous();", "public Object next()\n/* */ {\n/* 84 */ if (this.m_offset < this.m_limit) {\n/* 85 */ return this.m_array[(this.m_offset++)];\n/* */ }\n/* 87 */ throw new NoSuchElementException();\n/* */ }", "public E next() throws NoSuchElementException{\n\t\tPosition<E> aux=actual;\n\t\tif (aux == null) \n\t\t\tthrow new NoSuchElementException();\t\t\n\t\tthis.avanzar();\n\t\treturn aux.element();\n\t}", "public DependencyElement next() {\n\t\treturn next;\n\t}" ]
[ "0.74859524", "0.7290924", "0.72480893", "0.72393763", "0.72341716", "0.7188369", "0.71611065", "0.7153635", "0.71478266", "0.7135586", "0.7134484", "0.7095567", "0.70481753", "0.70449036", "0.70407146", "0.70308006", "0.70211613", "0.70141345", "0.70102084", "0.6989821", "0.69847995", "0.6963023", "0.694209", "0.69373775", "0.6935711", "0.69346046", "0.6932843", "0.6925179", "0.6923411", "0.6899043", "0.68899876", "0.68769896", "0.6871695", "0.68664324", "0.68664324", "0.68572795", "0.6854232", "0.685268", "0.6850311", "0.6843747", "0.68428737", "0.6826784", "0.6821005", "0.6820886", "0.6820845", "0.6820844", "0.68144625", "0.6810867", "0.68020236", "0.67982066", "0.6797198", "0.67931545", "0.6792352", "0.67920744", "0.67879236", "0.67803407", "0.6772523", "0.67660177", "0.6765227", "0.67438966", "0.67183113", "0.6717728", "0.67112964", "0.6704654", "0.67029685", "0.66886014", "0.66857165", "0.66851574", "0.6680882", "0.66726685", "0.66591656", "0.66541886", "0.6652492", "0.66485316", "0.66483456", "0.66417384", "0.663495", "0.66293", "0.6626494", "0.66159946", "0.66159916", "0.6611668", "0.6611178", "0.6610069", "0.6610069", "0.6605215", "0.65995085", "0.6597711", "0.6597711", "0.65975326", "0.6587482", "0.6585653", "0.65850836", "0.6584423", "0.65800226", "0.65783775", "0.6577545", "0.6575176", "0.6571464", "0.6570861", "0.6569318" ]
0.0
-1
for internal debug use. dump all the mapping rules of getting the next.
public void dumpRules() { if(chain == null) return; Iterator it = chain.keySet().iterator(); Iterator subIt = null; String key = null; while(it.hasNext()) { key = (String)it.next(); System.out.print(key + " --> "); subIt = (chain.get(key)).iterator(); while(subIt.hasNext()) System.out.print(subIt.next() + ", "); System.out.println(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printMapping() {\n LogDumper.out(sourceOutputMap);\n }", "private void dumpResultMapping ()\r\n {\r\n for (Entry<Result, Set<Candidate>> entry : connection.getResultMap().\r\n entrySet()) {\r\n logger.debug(\"Result: {}\", entry.getKey());\r\n\r\n for (Candidate candidate : entry.getValue()) {\r\n logger.debug(\"* candidate: {}\", candidate);\r\n }\r\n }\r\n }", "public void mapping() {\n\t\t\n\t}", "public void printMiniMap() { }", "private void dumpState() {\r\n\t\tfor (TextChunk location : locationalResult) {\r\n\t\t\tlocation.printDiagnostics();\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public abstract Map<String, Node> next() throws TrippiException;", "@Override\n public List<String> getNextMappings(NextGroup nextGroup) {\n return Collections.emptyList();\n }", "@Override\n public List<String> getNextMappings(NextGroup nextGroup) {\n return Collections.emptyList();\n }", "public void dump() {\n Log.e(TAG, \"dump: size=\" + mMap.size());\n for (String k : mMap.keySet()) {\n Log.e(TAG, \"dump: \" + k + \"=\" + mMap.get(k));\n }\n }", "void remap()\n\t\t{\n\t\t\tif(nextMap == null)\n\t\t\t\treturn;\n\t\t\tnextMap = newNodeMap(nextMap);\n\t\t\tfor(Node<T> node : nextMap.values())\n\t\t\t\tnode.remap();\n\t\t}", "public void dump() {\n\t\tfor(Symbol s: assignments.keySet()) {\n\t\t\tSystem.out.println(s.toString() + \" = \" + assignments.get(s));\n\t\t}\t\n\t}", "public void printMap() {\n\t\tmap.printMap();\n\t}", "public String toString() {\n return this.grammarRules.keySet() + \"\";\n\t}", "public HashMap<String,ArrayList<Rule_in_State>> get_rules_of_next_state() throws Exception;", "private void printMap() {\n\t\tfor(Integer key: location.keySet()){\n\t\t\tString val= location.get(key).toString();\n\t\t\tSystem.out.println(\"(\" + key.toString() + \", \" + val+ \")\");\n\t\t}\n\t}", "void dump() {\n\t\tSystem.out.print(\"I am: \" + (territoryID));\n\t\tSystem.out.print(\"\\tNeighbour of:\");\n\n\t}", "@Override\n public String mapping() {\n return StringUtils.lines(\n \"foo.bar.Baz -> foo.bar.Baz:\", \" java.lang.Object f1 -> a\", \" java.lang.String f2 -> a\");\n }", "public void printMappings() {\t\n\t\tSystem.out.println(\"Printing rowsMap. \");\n\t\tfor (Map.Entry<String, String> entry : rowMap.entrySet()) {\n\t\t System.out.println(entry);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Printing columnMap. \");\n\t\tfor (Map.Entry<String, String> entry : columnMap.entrySet()) {\n\t\t System.out.println(entry);\n\t\t}\n\t}", "public void dump() {\n for(Object object : results) {\n System.out.println( object );\n }\n }", "public void dump(){\n\t\tfor(int n=0; n<_numBuckets; n++){\r\n\t\t\tNode current = _buckets[n];\r\n\t\t\tif(current != null){\r\n\t\t\t\tSystem.out.println(n + \": \" + current.toString());\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(n + \": null\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void printRules () {\n \n System.out.println(\"PRINTING RULESET ID : \" + this.id + \" (\" + this.size() + \") entries.\");\n for (int i = 0; i < this.size(); i++) {\n \n System.out.println(\"Rule \" + (i+1) + \" (ID \" + references.get(i) + \") : \" + this.rulelist.getRuleByID(references.get(i)) + \" Prob : \" + this.rulelist.getRuleByID(references.get(i)).getProb() + \" TIMES \" + this.rulelist.getRuleByID(references.get(i)).occurrencies + \" PREC \" + this.rulelist.getRuleByID(references.get(i)).prec_occurrencies);\n }\n System.out.println(\"Total Prob : \" + this.totalProb);\n System.out.println(\"Precedences : \" + this.precedences);\n }", "public void map() {\n\t\tfor(GameObject object : gameObject)\n\t\t\tSystem.out.println(object);\n\t}", "public void print_DEBUG() {\n\t\tSystem.out.println(\"Direction\");\n\t\tSystem.out.println(\"ID: \" + ID);\n\t\tSystem.out.println(\"FROM: \" + from.name() );\n\t\tSystem.out.println(\"TO: \" + to.name() );\n\t\tSystem.out.println(\"dir: \" + dir);\n\t\tSystem.out.println(\"Locked: \" + locked);\n\t\tSystem.out.println(\"LockPattern: \" + lockPattern);\n\t}", "private void dumpAll(Map map, int lvmid) {\n if (DEBUG) {\n Set keys = map.keySet();\n\n System.err.println(\"Dump for \" + lvmid);\n int j = 0;\n for (Iterator i = keys.iterator(); i.hasNext(); j++) {\n Monitor monitor = (Monitor)map.get(i.next());\n System.err.println(j + \"\\t\" + monitor.getName()\n + \"=\" + monitor.getValue());\n }\n System.err.println(\"nextEntry = \" + nextEntry\n + \" pollForEntry = \" + pollForEntry);\n System.err.println(\"Buffer info:\");\n System.err.println(\"buffer = \" + buffer);\n }\n }", "private void ini_MapPaks()\r\n\t{\r\n\r\n\t}", "public String toDebugString(RuleSet rs){\n\t\tString res = \"\";\n\t\tif(body != null)\n\t\t\tfor(Integer e : body){\n\t\t\t\tres = res + (res.equals(\"\") ? \"\" : \" & \") + OWLPrinter.getString(rs.debugLookup(e));\n\t\t\t}\n\n\t\tres += \" -> \";\n\t\tif(head != null) res += OWLPrinter.getString(rs.debugLookup(head));\n\t\telse{\n\t\t\tres += OWLPrinter.getString(rs.debugLookup(axiom));\n\t\t\tif(define != null){\n\t\t\t\tres += \" def \" + OWLPrinter.getString(rs.debugLookup(define));\n\t\t\t}\n\t\t}\n\n\t\t//if(head instanceof OWLAxiom) \tres += \" -> \" + ClassPrinter.printAxiom((OWLAxiom) head);\n\t\t//else \t\t\t\t\t\t\tres += \" -> \" + ClassPrinter.printClass(head);\n\t\treturn res;\n\t}", "@Override\r\n public String toString() {\r\n return this.bnfRuleMap.keySet().toString();\r\n }", "public void dump(){\n int address = 0;\n String lastline = new String(\"junk\");\n String nextline;\n boolean star = false, needNewline = false;\n for (int i = 0; i < memory.length; i+=8){\n nextline = buildLine(i);\n if (! lastline.equals(nextline)){\n star = false;\n if (needNewline) System.out.println(); \n System.out.print(Tools.pad(Integer.toHexString(address), 4, \"0\",\n Direction.RIGHT) + \":\\t\");\n System.out.print(nextline); \n needNewline = true;\n } \n\t\t\telse if (lastline.equals(nextline) && (star == false)){\n System.out.println(\" *\");\n needNewline = false;\n star = true;\n } \n address = address + 32;\n lastline = nextline;\n }\n System.out.println();\n }", "public void dumpTypeMapping(Config config) throws FileNotFoundException {\n PrintStream stream = new PrintStream(\"type_mapping.txt\");\n\n // avoid \"unused\" warning\n dumpMap(stream, new HashMap<String, String>());\n //\n // Map<String, String> simpleAttrAtomicTypeMapping =\n // config.getSimpleAttrAtomicTypeMapping();\n // stream.println(\"AttrAtomicTypeMapping\");\n // dumpMap(stream, simpleAttrAtomicTypeMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrAtomicTypePreConversionMapping = config\n // .getSimpleAttrAtomicTypePreConversionMapping();\n // stream.println(\"AttrAtomicTypePreConversionMapping\");\n // dumpMap(stream, simpleAttrAtomicTypePreConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrAtomicTypeConversionMapping =\n // config.getSimpleAttrAtomicTypeConversionMapping();\n // stream.println(\"AttrAtomicTypeConversionMapping\");\n // dumpMap(stream, simpleAttrAtomicTypeConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrAtomicTypePostConversionMapping =\n // config\n // .getSimpleAttrAtomicTypePostConversionMapping();\n // stream.println(\"AttrAtomicTypePostConversionMapping\");\n // dumpMap(stream, simpleAttrAtomicTypePostConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrListTypeMapping =\n // config.getSimpleAttrListTypeMapping();\n // stream.println(\"AttrListTypeMapping\");\n // dumpMap(stream, simpleAttrListTypeMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrListTypePreConversionMapping =\n // config.getSimpleAttrListTypePreConversionMapping();\n // stream.println(\"AttrListTypePreConversionMapping\");\n // dumpMap(stream, simpleAttrListTypePreConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrListTypeConversionMapping =\n // config.getSimpleAttrListTypeConversionMappingNoItemValidation();\n // stream.println(\"AttrListTypeConversionMapping\");\n // dumpMap(stream, simpleAttrListTypeConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrListTypePostConversionMapping = config\n // .getSimpleAttrListTypePostConversionMapping();\n // stream.println(\"AttrListTypePostConversionMapping\");\n // dumpMap(stream, simpleAttrListTypePostConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleDataAtomicTypeMapping =\n // config.getSimpleDataAtomicTypeMapping();\n // stream.println(\"DataAtomicTypeMapping\");\n // dumpMap(stream, simpleDataAtomicTypeMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleDataAtomicTypePreConversionMapping = config\n // .getSimpleDataAtomicTypePreConversionMapping();\n // stream.println(\"DataAtomicTypePreConversionMapping\");\n // dumpMap(stream, simpleDataAtomicTypePreConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleDataAtomicTypeConversionMapping =\n // config.getSimpleDataAtomicTypeConversionMapping();\n // stream.println(\"DataAtomicTypeConversionMapping\");\n // dumpMap(stream, simpleDataAtomicTypeConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleDataAtomicTypePostConversionMapping =\n // config\n // .getSimpleDataAtomicTypePostConversionMapping();\n // stream.println(\"DataAtomicTypePostConversionMapping\");\n // dumpMap(stream, simpleDataAtomicTypePostConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleDataListTypeMapping =\n // config.getSimpleDataListTypeMapping();\n // stream.println(\"DataListTypeMapping\");\n // dumpMap(stream, simpleDataListTypeMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleDataListTypeConversionMapping =\n // config.getSimpleDataListTypeConversionMapping();\n // stream.println(\"DataListTypeConversionMapping\");\n // dumpMap(stream, simpleDataListTypeConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n stream.close();\n }", "@Override\n\tpublic void dump() {\n\t\t\n\t}", "public Mapping getMapping() {\n\t\t// FIXME Tranform list into mapping\n\t\treturn m;\n\t}", "protected void dumpr() {\n println(Arrays.toString(register));\n println(\"Compare register: \" + compareRegister);\n println(\"StackRegister: \" + stackRegister);\n }", "void setNext(MapElement next) {\n this.next = next;\n }", "public void printInfo() {\n\t\tString nodeType = \"\";\n\t\tif (nextLayerNodes.size() == 0) {\n\t\t\tnodeType = \"Output Node\";\n\t\t} else if (prevLayerNodes.size() == 0) {\n\t\t\tnodeType = \"Input Node\";\n\t\t} else {\n\t\t\tnodeType = \"Hidden Node\";\n\t\t}\n\t\tSystem.out.printf(\"%n-----Node Values %s-----%n\", nodeType);\n\t\tSystem.out.printf(\"\tNumber of nodes in next layer: %d%n\", nextLayerNodes.size());\n\t\tSystem.out.printf(\"\tNumber of nodes in prev layer: %d%n\", prevLayerNodes.size());\n\t\tSystem.out.printf(\"\tNext Layer Node Weights:%n\");\n\t\tNode[] nextLayer = new Node[nextLayerNodes.keySet().toArray().length];\n\t\tfor (int i = 0; i < nextLayer.length; i++) {\n\t\t\tnextLayer[i] = (Node) nextLayerNodes.keySet().toArray()[i];\n\t\t}\n\t\tfor (int i = 0; i < nextLayerNodes.size(); i++) {\n\t\t\tSystem.out.printf(\"\t\t# %f%n\", nextLayerNodes.get(nextLayer[i]));\n\t\t}\n\t\tSystem.out.printf(\"%n\tPartial err partial out = %f%n%n\", getPartialErrPartialOut());\n\t}", "private Map getMapping() {\n return getIndexOperations().getMapping();\n }", "public void dumpChildren ()\r\n {\r\n dumpChildren(0);\r\n }", "public String toString()\n/* */ {\n/* 885 */ StringBuilder result = new StringBuilder();\n/* 886 */ for (int i = 0; i < this.ruleSets.length; i++) {\n/* 887 */ result.append(this.ruleSets[i].toString());\n/* */ }\n/* 889 */ return result.toString();\n/* */ }", "public String toString(PrefixMapping pmap) \n {\n return null;\n }", "private void printDebugGraphTransform(final BaseGraph<?,?> graph, final String fileName) {\n File outputFile = new File(debugGraphOutputPath, fileName);\n if ( PRINT_FULL_GRAPH_FOR_DEBUGGING ) {\n graph.printGraph(outputFile, pruneFactor);\n } else {\n graph.subsetToRefSource(10).printGraph(outputFile, pruneFactor);\n }\n }", "public static void main(String[] args) {\n\t\ttry {\n//\t\t\tExtractorXML xml = new ExtractorXML(\"./TLf6PpaaExclBrkdnD-sqlMap.xml\", \"utf-8\");\n\t\t\tExtractorXML xml = new ExtractorXML(\"D:/tmp/test.xml\",\"utf-8\");\n\n\n\t\t\tTObj nd = xml.doAnalyze();\n\n\t\t\txml.dump(\"c:\\\\a.out\");\n/*\t\t\tfor ( int i = 0; ; i ++) {\n\t\t\tif (xml.getAttributeValue(\"/sqlMap/insert[\" + i +\"]\", \"id\") == null)\n\t\t\t\tbreak;\n\t\t\tSystem.out.println(xml.getAttributeValue(\"/sqlMap/insert[\" + i +\"]\", \"id\"));\n\t\t\t}*/\n\n\t\t//System.out.println(\"!!\" + rootnode.getNodeValue(\"/navigation/action[\" + 3 +\"]\"));\n\n\t\t\tSystem.out.println(\"root=\"+xml.getRootName());\n//\t\tArrayList arr = node_list.get(3).sublist;\n\n/*\t\tfor(int i = 0; i < arr.size() ; i ++){\n\n\t\t\tnode_data ndd = (node_data)arr.get(i);\n\t\t\tif(ndd.nodename.equals(\"command\") ){\n\t\t\t\t//System.out.println(ndd.tlocation.getStartLine() + \" :: \" + ndd.nodename + \" :: \" + ndd.tlocation.getEndLine());\n\t\t\t\tfor(int j =0; j < ndd.sublist.size() ; j ++){\n\t\t\t\t\tSystem.out.println(ndd.sublist.get(j).nodename);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n*/\n\t\t/*\tfor(int j =0 ; j < node_list.size(); j ++){\n\n\t\t\tnode_data nd = (node_data)node_list.get(j);\n\t\t\tSystem.out.println(nd.keylist.get(0).value + \" TLOCATION start :: \" + nd.tlocation.getStartLine() + \" TLOCATION end :: \" + nd.tlocation.getEndLine());\n\t\t}\n\t\tSystem.out.println(rootnode.sublist.get(0).tlocation.getStartLine() + \" \"+ rootnode.sublist.get(0).tlocation.getEndLine());\n\t\t */\n\t\t\t// xml.log.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t}", "public void dumpState() {\n\t\tif (_Debug) {\n\t\t\tSystem.out.println(\" :: SeqConditionSet --> BEGIN - dumpState\");\n\n\t\t\tSystem.out.println(\" ::--> Set : \" + mCombination);\n\n\t\t\tif (mConditions != null) {\n\t\t\t\tSystem.out.println(\" ::--> [\" + mConditions.size() + \"]\");\n\t\t\t\tSystem.out.println(\" ::----------------::\");\n\n\t\t\t\tfor (int i = 0; i < mConditions.size(); i++) {\n\t\t\t\t\tSeqCondition cond = mConditions.get(i);\n\n\t\t\t\t\tcond.dumpState();\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\" NULL\");\n\t\t\t\tSystem.out.println(\" ::----------------::\");\n\t\t\t}\n\n\t\t\tSystem.out.println(\" :: SeqConditionSet --> END - dumpState\");\n\t\t}\n\t}", "@Override\n\tpublic void printFilteredMap() {\n\t\tthis.result.forEach((k, v )-> v.forEach((ke,ve) -> ve.forEach((s) -> System.out.println(k + \" : \"+ ke + \" : \"+ s))));\n\n\t}", "public void dump()\r\n {\r\n dump(true);\r\n }", "public MapElement getNext() {\n return next;\n }", "protected void printAll() {\n\t\tSystem.out.println(\"Network maps\");\n\t\tSystem.out.println(\"\tAddresses\");\n\t\ttry {\n\t\t\tPreparedStatement pstmt = \n\t\t\t\t\tthis.agent.getDatabaseManager().getConnection().prepareStatement(\n\t\t\t\t\t\t\tthis.agent.getDatabaseManager().selectAll);\n\t ResultSet rs = pstmt.executeQuery();\n\t // loop through the result set\n while (rs.next()) {\n \t System.out.printf(\"%s -> %s\\n\", rs.getString(\"username\"), rs.getString(\"address\"));\n }\n\t\t} catch (Exception e) {\n\t\t\tAgent.errorMessage(\n\t\t\t\t\tString.format(\"ERROR when trying to get all the address of the table users in the database\\n\"), e);\n\t\t}\n\t\tSystem.out.println(\"\tmapSockets\");\n\t\tfor (String u: this.mapSockets.keySet()) {\n\t\t\tSystem.out.printf(\"%s -> %s\\n\", u, this.mapSockets.get(u));\n\t\t}\n\t}", "void printTableMap() {\n StringBuilder sb = new StringBuilder();\n\n appendQuery(sb);\n appendTableMapBody(sb);\n\n sb.append(\" assertThat(tableMapEventBody.getTableId(), equalTo(\" + getTableId() + \"L));\\n\");\n sb.append(\" assertThat(tableMapEventBody.getTableRef().schemaName, equalTo(\\\"capture_binlog_events\\\"));\\n\");\n sb.append(\" assertThat(tableMapEventBody.getTableRef().tableName, equalTo(\\\"foo\\\"));\\n\");\n sb.append(\" assertThat(tableMapEventBody.getColumnTypes(), equalTo(new byte[] {0})); // todo: add appropriate types\\n\");\n sb.append(\" }\\n\");\n System.out.println(sb.toString());\n }", "public java.util.List<Mapping> getMapping() { \n\t\tif (myMapping == null) {\n\t\t\tmyMapping = new java.util.ArrayList<Mapping>();\n\t\t}\n\t\treturn myMapping;\n\t}", "void debug() {\n\t\tfor( int i = 0; i < N; i++ ) {\t\n\t\t\tSystem.out.print(i+\" \");\n\t\t\tfor( int j = 0; j < N; j++ )\n\t\t\t\tSystem.out.print(j+\":\"+(defined[i][j]?\"T\":\"F\")+\" \"+\n\t\t\t\t\t\tc[i][j]+\" p=\"+path[i][j]+\" f=\"+f[i][j]+\"; \");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public Output<TInt64> remapping() {\n return remapping;\n }", "protected String debug(Iterator<OBResultShort<O>>it , Index<O> index) throws IllegalIdException, OBException, InstantiationException, IllegalAccessException{\n \tStringBuilder res = new StringBuilder();\n \t\n \twhile(it.hasNext()){\n \t\tOBResultShort<O> r = it.next();\n \t\tres.append(r.getId());\n \t\tres.append(\" r: \");\n \t\tres.append(r.getDistance());\n \t\tres.append(\"\\n\");\n \t\tres.append(index.debug(index.getObject(r.getId())));\n \t\tres.append(\"\\n\");\n \t}\n \treturn res.toString();\n }", "public void dump(java.io.PrintStream out) {\n for (int i=0; i<registers.length; ++i) {\n if (registers[i] == null) continue;\n out.print(i+\": \"+registers[i]+\" \");\n }\n out.println();\n }", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "public void printRules_RVLR () {\n \n System.out.println(\"PRINTING RULESET ID : \" + this.id + \" (\" + this.size() + \") entries.\");\n for (int i = 0; i < this.size(); i++) {\n \n System.out.println(\"Rule \" + (i+1) + \" (ID \" + references.get(i) + \") : \" + this.rulelist.getRuleByID(references.get(i)) + \" Prob : \" + this.rulelist.getRuleByID(references.get(i)).getProb() + \" TIMES \" + this.rulelist.getRuleByID(references.get(i)).occurrencies + \" PREC \" + this.rulelist.getRuleByID(references.get(i)).prec_occurrencies + \" Value : \" + this.rulelist.getRuleByID(references.get(i)).get_RVRL());\n }\n System.out.println(\"Total Prob : \" + this.totalProb);\n //System.out.println(\"Precedences : \" + this.precedences);\n }", "public MapElement next() {\n return findNext(true);\n }", "public void dump()\n {\n System.out.println(toString());\n }", "private void printGraph() {\r\n\t\tSortedSet<String> keys = new TreeSet<String>(vertexMap.keySet());\r\n\t\tIterator it = keys.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tVertex v = vertexMap.get(it.next());\r\n\t\t\tif (v.isStatus())\r\n\t\t\t\tSystem.out.println(v.getName());\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(v.getName() + \" DOWN\");\r\n\t\t\tsortEdges(v.adjacent);\r\n\t\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\t\t// v.adjacent.sort();\r\n\t\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\t\tif (edge.isStatus())\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost());\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost() + \" DOWN\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic String toString() {\t\t\n\t\treturn \"mirMap:\\n\" + mapToString(mirMap) + \"\\ngeneMap:\\n\" + mapToString(geneMap);\n\t}", "public final Caseless getMapping() {\n\t\treturn mappedto;\n\t}", "public void mapToString() {\r\n for (Square[] x : map) {\r\n for (Square y : x) {\r\n System.out.print(y.getVisual() + \" \");\r\n }\r\n System.out.println();\r\n }\r\n }", "void dumpIR_debug(CodeGenEnv cenv){\n try {\n\n System.out.println(\"--- dump \" + class_.name.str + \"--- IR ----\");\n System.out.println(\"struct_typeRef: \");Thread.sleep(10);\n cenv.DumpIR( struct_typeRef );\n\n\n\n System.out.println(\"\\n---constructor: \");Thread.sleep(10);\n cenv.DumpIR(constructorFun);\n\n System.out.println(\"constructor initializer: \");Thread.sleep(10);\n cenv.DumpIR(constructor_initval_fun);\n\n System.out.println(\"\\n----class method: \");\n for (var i:classMethod.members){\n System.out.println(\"method: \" + i.funSymbol.str);Thread.sleep(10);\n cenv.DumpIR(i.funRef);\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic String toString()\n\t{\n\t\t/* output looks like this\n\t\t * \n\t\t * 20 - 10, 30 20 has edges with 10 and 30\n\t\t * 40 - 10, 30 \t\t40 has edges with 10 and 30\n\t\t * 10 - 20, 40 \t\t\t10 has edges with 20 and 40\n\t\t * 30 - 20, 40 \t\t\t30 has edges with 20 and 40\n\t\t */\n\t\tString str = new String();\n\t\tfor(Map.Entry<Object, SinglyLinkedList> vertex : map.entrySet())\n\t\t\tstr += vertex.getKey() + \" - \" + vertex.getValue() + '\\n';\t\t\t\t\n\t\treturn str;\n\t}", "private static java.util.HashMap<Integer, Command> getMappings() {\n if (mappings == null) {\n synchronized (Command.class) {\n if (mappings == null) {\n mappings = new java.util.HashMap<Integer, Command>();\n }\n }\n }\n return mappings;\n }", "public java_cup.runtime.Symbol debug_next_token() throws java.io.IOException {\n java_cup.runtime.Symbol s = next_token();\n System.out.println( \"line:\" + (yyline+1) + \" col:\" + (yycolumn+1) + \" --\"+ yytext() + \"--\" + getTokenName(s.sym) + \"--\");\n return s;\n }", "public java_cup.runtime.Symbol debug_next_token() throws java.io.IOException {\n java_cup.runtime.Symbol s = next_token();\n System.out.println( \"line:\" + (yyline+1) + \" col:\" + (yycolumn+1) + \" --\"+ yytext() + \"--\" + getTokenName(s.sym) + \"--\");\n return s;\n }", "public java_cup.runtime.Symbol debug_next_token() throws java.io.IOException {\n java_cup.runtime.Symbol s = next_token();\n System.out.println( \"line:\" + (yyline+1) + \" col:\" + (yycolumn+1) + \" --\"+ yytext() + \"--\" + getTokenName(s.sym) + \"--\");\n return s;\n }", "IMappingNode getMappingNode(Object groupID) throws Exception;", "public void printAst(){\n explore(ctx);\n }", "public void print() {\n System.out.println(\"Scheme print:\");\n System.out.println(\" Blocks:\");\n for (Block block : this.blocks) {\n // System.out.println(\" \" + block.getName() + \" (\" + block.getID() + \")\");\n for (Integer id : block.getConnections()) {\n System.out.println(\" \" + id);\n }\n //System.out.println(\" \" + block.outputs.getFirst().getDstID());\n }\n /*System.out.println(\" Connections:\");\n for (Con connection : this.connections) {\n System.out.println(\" [\" + connection.src + \"]---[\" + connection.dst + \"]\");\n }*/\n if(this.queue_set){\n System.out.println(\" Queue: \" + this.queue);\n }\n else{\n System.out.println(\" Queue not loaded\");\n }\n }", "private void parseDump(String dumpName) throws IOException {\n dump.createParserFile(dumpName);\n System.out.println(\"Processing the file: \" + dumpName);\n Source source = new Source();\n source.setNodeInfo(parseNodeInfo());\n String code = source.getNodeInfo().getCode();\n Map response = dump.parseNext();\n while (response != null) {\n source.addNewPath(response);\n response = dump.parseNext();\n }\n if(source.isRoutesEmpty())\n System.err.println(\"Node \" + code + \" has no routes, discarded from the graph\");\n else\n graph.put(code,source);\n }", "public Mapping[] getMapping() {\n return mMapping;\n }", "@Test\n public void testGetAllMapping() throws InvalidSmilesException {\n System.out.println(\"getAllMapping\");\n SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());\n IAtomContainer target = sp.parseSmiles(\"C\\\\C=C/Nc1cccc(c1)N(O)\\\\C=C\\\\C\\\\C=C\\\\C=C/C\");\n IAtomContainer query = sp.parseSmiles(\"Nc1ccccc1\");\n\n VF2lib smsd1 = new VF2lib();\n smsd1.set(query, target);\n smsd1.searchMCS(true);\n assertNotNull(smsd1.getFirstMapping());\n\n assertEquals(4, smsd1.getAllMapping().size());\n }", "public void printImageMap(){\n for(int counter = savedMap.length-1 ; counter != -1;counter--)\n System.out.println(Arrays.toString(savedMap[counter]));\n }", "private void initializeMaps(){\n\t\t\n\t\tsteps = new HashMap<Integer, Set<PlanGraphStep>>();\n\t\tfacts = new HashMap<Integer, Set<PlanGraphLiteral>>();\n\t\tinconsistencies = new HashMap<Integer, Set<LPGInconsistency>>();\n\t\t\n\t\tfor(int i = 0; i <= maxLevel; i++) {\n\t\t\tsteps.put(i, new HashSet<PlanGraphStep>());\n\t\t\tfacts.put(i, new HashSet<PlanGraphLiteral>());\n\t\t\tinconsistencies.put(i, new HashSet<LPGInconsistency>());\n\t\t}\n\t\t\n\t\t/* This level holds only the special action end which has the goals as preconditions */\n\t\tsteps.put(maxLevel + 1, new HashSet<PlanGraphStep>());\n\t}", "public String toString()\n {\n return super.toString() + \":\\n\" + getMap();\n }", "@Override\n public String toString() {\n if (map == null || map.size() == 0)\n return \"\";\n StringBuilder sb = new StringBuilder();\n\n Set<String> visited = new HashSet<>();\n\n for (Map.Entry<String, Vertex> m : map.entrySet()) {\n dfs(sb, m.getKey(), m.getValue(), visited);\n }\n\n return sb.toString();\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void printMemory(){\n\t\t\n\t\tint bank =0;\n\t\tfor (int i = 0; i < MEMORY_ADDRESS_LIMIT; i++) {\n\t\t\tbank = i % numOfbank;\n\t\t\t\n\t\t\tMap<Integer,Entry> value = contentInBank.get(bank);\n\t\t\tEntry data = value.get(i);\n\n \t\tif (!(data.type == MemoryType.UNDEF) ) {\n \t\t\tlogger.debug(\"In bank \"+bank+\" at \"+ i + \" \" + data.type + \" \" + data.data);\n \t\t}\n\t\t}\n\t\t\n// for (Map.Entry<Integer, Map<Integer,Entry>> entry : contentInBank.entrySet()) {\n// \tbank = entry.getKey();\n// \tMap<Integer,Entry> value = entry.getValue();\n//\n// \tfor(Map.Entry<Integer,Entry> e: value.entrySet()){\n// \t\tint address = e.getKey();\n// \t\tEntry data =e.getValue();\n// \t\tif (!(data.type == MemoryType.UNDEF) ) {\n// \t\t\tlogger.debug(\"In bank \"+bank+\" at \"+ address + \" \" + data.type + \" \" + data.data);\n// \t\t}\n// \t}\n// }\n\t}", "public Map getMapping() {\n return mapping;\n }", "@Override\n public String toString()\n {\n StringBuilder sb = new StringBuilder();\n sb.append(tx2gtxMap.size()).append(\" mappings, \");\n sb.append(gtx2ContextMap.size()).append(\" transactions\");\n return sb.toString();\n }", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tsb.append(\"WidgetLayoutMapping -> \");\r\n\t\tsb.append(\"widgetId: \");\r\n\t\tsb.append(widgetId);\r\n\t\tsb.append(\"; layoutId: \");\r\n\t\tsb.append(layoutId);\r\n\t\tsb.append(\"; layoutWidgetPosition: \");\r\n\t\tsb.append(layoutWidgetPosition);\r\n\t\tsb.append(\"; blockPosition : \");\r\n\t\tsb.append(blockPosition);\r\n\t\tsb.append(\"; closedInd: \");\r\n\t\tsb.append(closedInd);\r\n\t\treturn sb.toString();\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void readDumpedKeggPathways() {\n\t\ttry {\n\t\t\t// read dumped file contents\n//\t\t\tFile input = new File(\"conf/keggKO2PW.map\");\n\t\t\tInputStream is = getClass().getResourceAsStream(\"/de/mpa/resources/conf/keggKO2PW.map\");\n\t\t\tObjectInputStream ois = new ObjectInputStream(new BufferedInputStream(new GZIPInputStream(is)));\n\n\t\t\tko2pathway = (HashMap<Short, List<Short>>) ois.readObject();\n\t\t\tpathway2ko = (HashMap<Short, List<Short>>) ois.readObject();\n\t\t\t\n//\t\t\tec2pathway = (HashMap<short[], List<Short>>) ois.readObject();\n\t\t\tec2pathway = new TreeMap<short[], List<Short>>(\n\t\t\t\t\tnew Comparator<short[]>() {\n\t\t\t\t\t\tpublic int compare(short[] o1, short[] o2) {\n\t\t\t\t\t\t\tint delta = 0;\n\t\t\t\t\t\t\tfor (int i = 0; i < o1.length; i++) {\n\t\t\t\t\t\t\t\tdelta = o1[i] - o2[i];\n\t\t\t\t\t\t\t\tif (delta != 0) {\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn delta;\n\t\t\t\t\t\t}\n\t\t\t});\n\t\t\tec2pathway.putAll((Map<? extends short[], ? extends List<Short>>) ois.readObject());\n\t\t\t\n\t\t\tpathway2ec = (HashMap<Short, List<short[]>>) ois.readObject();\n\t\t\tois.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public MapIterator() {\n findNext(false);\n }", "private void PrintFineMap() {\n\t\tif (fineMap.isEmpty()) {\n\t\t\tviolationProcess.CalculateFinesPerCapita(populationReader.getPopulationMap());\n\t\t\tfineMap = violationProcess.getFineMap();\n\t\t}\n\t\tSystem.out.println(fineMap);\n\t}", "@Override\r\n\tpublic void print()\r\n\t{\t//TODO méthode à compléter (TP1-ex11)\r\n\t\tfor (IndexEntry indexEntry : data) {\r\n\t\t\tif(indexEntry ==null){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(indexEntry.toString());\r\n\t\t}\r\n\t}", "public void printGraph()\n {\n Iterator<T> nodeIterator = nodeList.keySet().iterator();\n \n while (nodeIterator.hasNext())\n {\n GraphNode curr = nodeList.get(nodeIterator.next());\n \n while (curr != null)\n {\n System.out.print(curr.nodeId+\"(\"+curr.parentDist+\")\"+\"->\");\n curr = curr.next;\n }\n System.out.print(\"Null\");\n System.out.println();\n }\n }", "private String getMapping(Connection connection, List<String> colNames) {\n connection.verifyFile();\n File mapFile = null;\n if (!overWriteOutputFile)\n mapFile = PathManager.createUniqueFile(filenamePrefix + \".mapping.n3\", outputFolder);\n else\n mapFile = new File(outputFolder + filenamePrefix + \".mapping.n3\");\n\n Validation validation = processController.getValidation();\n Mapping mapping = processController.getMapping();\n D2RQPrinter.printD2RQ(colNames, mapping, validation, mapFile, connection, defaultLocalURIPrefix);\n return mapFile.getAbsolutePath();\n }", "private void dumpProcesses()\n{\n System.err.println(\"\\n\\nDumping Processes\");\n for (DpinProcess dp : process_set.values()) {\n dp.dump();\n }\n}", "public int getMappingNum () {\n return this.mappingNum; \n }", "private void printAccessibility(Map<AccessibilityTarget, ArrayList<Accessor>> targetsToAccessors) {\n Iterator<Map.Entry<AccessibilityTarget, ArrayList<Accessor>>> targetsToAccessorsIter = targetsToAccessors.entrySet().iterator();\n while (targetsToAccessorsIter.hasNext()) {\n Map.Entry<AccessibilityTarget, ArrayList<Accessor>> entry = targetsToAccessorsIter.next();\n AccessibilityTarget target = (AccessibilityTarget) entry.getKey();\n System.out.println(target);\n Iterator<Accessor> accIter = ((List<Accessor>) entry.getValue()).iterator();\n while (accIter.hasNext()) {\n AccessibilityMember accessor = (AccessibilityMember) accIter.next();\n System.out.println(accessor);\n }\n System.out.println(\"=======================\");\n }\n }", "private final void m11968d() {\n synchronized (this.f10173g) {\n for (zzsk a : this.f10174h) {\n a.m11971a();\n }\n }\n }", "private static void debug()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords:\");\r\n\t\tfor(String word : keywords)\r\n\t\t{\r\n\t\t\tSystem.out.println(word);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"-----------------\");\r\n\t\tSystem.out.println();\r\n\t\tSharedLink.debugLinks();\r\n\t\t\r\n\t\tSystem.out.println(\"-----------------\");\r\n\t\tSystem.out.println();\r\n\t\tSharedPage.debugPages();\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t}", "public void display() {\n MyMapNode current = head;\n if (head == null) {\n System.out.println(\"List is empty\");\n return;\n }\n while (current != null) {\n //Prints each node by incrementing pointer\n System.out.print(current.data + \" \");\n current = current.next;\n }\n System.out.println();\n }" ]
[ "0.68133855", "0.6298655", "0.5862953", "0.5809257", "0.5745252", "0.5718112", "0.5668209", "0.5668209", "0.5606585", "0.5552552", "0.5551051", "0.5494874", "0.53866476", "0.5313178", "0.5288437", "0.52874404", "0.52693397", "0.5236773", "0.5163561", "0.516328", "0.5151478", "0.51410556", "0.5137737", "0.51343393", "0.5126214", "0.51220423", "0.5121174", "0.51135147", "0.510989", "0.5103406", "0.5094059", "0.50789684", "0.5066773", "0.5062732", "0.5049417", "0.5026965", "0.50095946", "0.49993852", "0.4999014", "0.49781922", "0.4932766", "0.49301454", "0.49244913", "0.49129233", "0.49030516", "0.48976064", "0.48972005", "0.48937106", "0.48893288", "0.48864838", "0.48847848", "0.48843172", "0.48831475", "0.4869729", "0.4862476", "0.4856059", "0.48527446", "0.48475558", "0.48435888", "0.48392954", "0.48370007", "0.4835939", "0.48302385", "0.48302385", "0.48302385", "0.4829636", "0.48216617", "0.481955", "0.48100752", "0.48088858", "0.48085108", "0.48040074", "0.4798962", "0.47974", "0.47953317", "0.47940326", "0.47940326", "0.47940326", "0.47940326", "0.47940326", "0.47940326", "0.47940326", "0.47940326", "0.47940326", "0.4791265", "0.47878283", "0.47787562", "0.47757643", "0.4774197", "0.47680128", "0.47668225", "0.47619355", "0.476133", "0.47608224", "0.47596616", "0.47578225", "0.475763", "0.4754974", "0.4742134", "0.4741772" ]
0.66464204
1
The function des two things. 1 add next to current's next set. 2 add next to "previous current"'s next set if previous is not null
public void add(String previous, String current, String next) { //assume the input is "aaa bbb ccc aaa ddd" // the map is : // aaa -> {bbb, ddd} // bbb -> {ccc} // aaa bbb -> {ccc} // bbb ccc -> {ddd} // ccc -> {ddd} // ccc aaa -> {ddd} // ddd -> {null} //it means the key is not just a string of "XXX XXX"(two words connected by one space), //but also a single word //because user will input one single word(but not two) as the prefix //one is nextSet of current addOneWord(current, next); //it is not the first time. add suffix to the nextSet of "previous current" if(previous != null) { String preAndCurrent = previous + " " + current; addOneWord(preAndCurrent, next); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void goToNext() {\r\n\t\tif (curr == null)\r\n\t\t\treturn;\r\n\t\tprev = curr;\r\n\t\tcurr = curr.link;\r\n\t}", "public void setNext()\n {\n\t int currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex +1);\n\t \n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = firstObject;\n }", "public void gotoNext(){\r\n if(curr == null){\r\n return;\r\n }\r\n prev = curr;\r\n curr = curr.link;\r\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "public boolean SetNext(List v_next){\n\tnext = v_next ;\n\treturn true ;\n }", "IList<T> getNext();", "public Node setNextNode(Node node);", "public void shiftUp() {\n\t\tif (next == null) {\n\t\t\tthrow new IllegalStateException(\"Cannot shift \" + this + \" up because it is already at the top\");\n\t\t}\n\t\tDependencyElement n = next;\n\t\tDependencyElement nn = next.next;\n\t\tif (nn != null) {\n\t\t\tnn.prev = this;\n\t\t\tnext = nn;\n\t\t}\n\t\telse {\n\t\t\tnext = null;\n\t\t}\n\t\tn.next = this;\n\t\tn.prev = prev;\n\t\tprev = n;\n\t}", "private ListNode add(ListNode current, T datum) {\n\t\tif (current == null) {\n\t\t\tsize++;\n\t\t\treturn new ListNode(datum);\n\t\t}\n\t\telse {\n\t\t\tcurrent.next = add(current.next, datum);\n\t\t\treturn current;\n\t\t}\n\t}", "public void goToNext()\n {\n if (current != null)\n {\n previous = current;\n current = current.nLink;\n } // end if\n else if (head != null)\n {\n System.out.println(\"Iteration reached end of line.\");\n System.exit(0);\n } // else if\n else\n {\n System.out.println(\"You can't iterate an empty list.\");\n System.exit(0);\n }\n }", "public void setNext(DNode newNext) { next = newNext; }", "private void prepareNext() {\n this.hasNext = false;\n while (!this.hasNext && this.nodesIterator.hasNext()) {\n this.next = this.nodesIterator.next();\n this.hasNext = this.computeHasNext();\n }\n }", "public void setNext(Node<E> next) { this.next = next; }", "public void setNext(ListElement<T> next)\n\t{\n\t\tthis.next = next;\n\t}", "public void setNext(Node n) { next = n; }", "private void remove() {\n if (prev != null) {\n prev.next = next;\n }\n if (next != null) {\n next.prev = prev;\n }\n }", "public void add(LinkedListInt other) {\nthis.size += other.size;\nNode current = head;\nif(head == null) {\nhead = other.head;\nreturn;\n}\nwhile(current.next != null)\ncurrent = current.next;\ncurrent.next = other.head;\n}", "public void next() {\r\n\t\tif (curr != tail)\r\n\t\t\tcurr = curr.next();\r\n\t}", "public void setNext(Node<T> another)\n\t{\tthis.next = another; }", "public List<T> next(){\n\t\tif(hasNext==true){\n\t\t\tSystem.out.println(\"***BEFORE CALL [NCR] next\");\n\t\t\tprintIndices();\n\t\t\t\n\t\t\tif(first==true){\n\t\t\t\tfirst = false;\n\t\t\t\treturn getCompList();\n\t\t\t}\n\t\t\t\n\t\t\t//current is always rightmost 1\n\t\t\tfor(int i=indices.length-1; i>=0; i--){\n\t\t\t\tif(indices[i]==1){\n\t\t\t\t\tcurrent = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//push current pointer right\n\t\t\tif(current<indices.length-1){\n\t\t\t\tSystem.out.println(\"[NCR] pushing\");\n\t\t\t\t//push\n\t\t\t\tindices[current++] = 0;\n\t\t\t\tindices[current] = 1;\n\t\t\t} \n\t\t\t//if current pointer can't be pushed right any further, pull closest base 1 spot right and reset to closest base\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"[NCR] Pulling\");\n\t\t\t\t//scan left to find closest base\n\t\t\t\tfor(int i=indices.length-1; i>=0; i--){\n\t\t\t\t\t//skip all consecutive 1's before searching for qualified base\n\t\t\t\t\tif(indices[i]==0){\n\t\t\t\t\t\tboolean addBase = true;\n\t\t\t\t\t\tfor(int j=i; j>=0; j--){\n\t\t\t\t\t\t\tif(indices[j]==1){\n\t\t\t\t\t\t\t\tindices[j++] = 0;\n\t\t\t\t\t\t\t\tindices[j] = 1;\n\t\t\t\t\t\t\t\tbase = j;\n\t\t\t\t\t\t\t\taddBase = false;\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\t//if all current 1's are consecutively located at the end, add another base and reset to base\n\t\t\t\t\t\tif(addBase==true){\n\t\t\t\t\t\t\tpointers++;\n\t\t\t\t\t\t\tif(pointers==indices.length){\n\t\t\t\t\t\t\t\thasNext = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tindices[0] = 1;\n\t\t\t\t\t\t\tbase = 0;\n\t\t\t\t\t\t\tSystem.out.println(\"Add base true; added a base\");\n\t\t\t\t\t\t\tprintIndices();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//reset to base\n\t\t\t\t\t\tresetToBase();\n\t\t\t\t\t\tSystem.out.println(\"After base reset\");\n\t\t\t\t\t\tprintIndices();\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn getCompList();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "private void moveMatchingNodeToNextElement(Node tmp) {\n for (int i = 0; i < ALL_LINKED_LISTS.size();i++) {\n Node next = ALL_LINKED_LISTS.get(i);\n if (tmp.equals(next)) {\n next = next.next;\n ALL_LINKED_LISTS.put(i, next);\n break;\n }\n }\n }", "public void add()\n {\n set(++ current);\n }", "public void setNext(ListElement next)\n\n\t {\n\t this.next = next;\n\t }", "public void setNext(DependencyElement next) {\n\t\tthis.next = next;\n\t}", "public void setNext(Variable next){\n\t\tthis.next = next;\n\t}", "public void setPrevious()\n {\n\tint currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex -1);\n\t\n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = lastObject;\n }" ]
[ "0.68122363", "0.661517", "0.63332343", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62306064", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.62302816", "0.6228608", "0.6197545", "0.61927325", "0.6165503", "0.6156643", "0.6141519", "0.61206055", "0.6103728", "0.6056969", "0.60417855", "0.59961295", "0.59389776", "0.5921628", "0.5903262", "0.5893984", "0.5884385", "0.5871193", "0.58669764", "0.5844124", "0.58421373", "0.5838939" ]
0.6054347
88
switch to light mode here
@Override public void actionPerformed(ActionEvent e) { app.toggleLightMode(); isDark = !isDark; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void switchLight(){\r\n _switchedOn = !_switchedOn;\r\n }", "private void toggle_light() {\n\t\ttry {\n\t\t\tif (!light_on) {\n\t\t\t\tlightButton.setBackgroundResource(R.drawable.light_selected);\n\t\t\t\tif (handler != null) {\n\t\t\t\t\thandler.quitSynchronously();\n\t\t\t\t\thandler = null;\n\t\t\t\t}\n//\t\t\t\tCameraManager.get().closeDriver();\n\t\t\t\tgetCameraManager().closeDriver();\n\t\t\t\tinitCamera(surfaceHolder);\n\t\t\t\tgetCameraManager().getFramingRect();\n//\t\t\t\tCameraManager.get().turn_onFlash();\n\t\t\t\tgetCameraManager().setTorch(true);\n\n\t\t\t} else {\n\t\t\t\tlightButton.setBackgroundResource(R.drawable.light);\n\t\t\t\tif (handler != null) {\n\t\t\t\t\thandler.quitSynchronously();\n\t\t\t\t\thandler = null;\n\t\t\t\t}\n//\t\t\t\tCameraManager.get().closeDriver();\n\t\t\t\tgetCameraManager().closeDriver();\n\t\t\t\tinitCamera(surfaceHolder);\n//\t\t\t\tCameraManager.get().turn_offFlash();\n\t\t\t\tgetCameraManager().setTorch(false);\n\n\t\t\t}\n\t\t\tlight_on = !light_on;\n\t\t} catch (Exception oEx) {\n\n\t\t}\n\t}", "public void flashlightSwitch()\n {\n usingFlashlight = !usingFlashlight;\n }", "private static void turnFlashlightOn() {\n Parameters p = cam.getParameters();\n p.setFlashMode(Parameters.FLASH_MODE_TORCH);\n cam.setParameters(p);\n }", "private void toggleLight(){\n\t\tmyGLView.queueEvent(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tmRenderer.toggleLight();\n\t\t\t}\n\t\t});\n\t\t\n\t}", "private void enableMoonlightMode() {\n stopService(new Intent(this, SunriseService.class));\n\n // Kill the previous moonlight service (in case it's running)\n stopService(new Intent(this, MoonlightService.class));\n\n // (Re)start the moonlight service\n startService(new Intent(this, MoonlightService.class));\n }", "private void setLightStatus() {\n if (mCmd.equals(MSG_ON)) {\n setLighIsOn(true);\n } else {\n setLighIsOn(false);\n }\n }", "private static boolean isLightMode(Context context)\n {\n return ((BladeSampleApplication)context.getApplicationContext()).isLightMode();\n }", "public void turnOn( ) {\n\t\t\t\tSystem.out.println(\"Light is on \");\n\t\t}", "@Override\n\tpublic void open() {\n\t\tlight.open();\n\t}", "public void flash(){\n phoneCam.setFlashlightEnabled(!flash);\n flash = !flash;\n }", "private void updateLight() {\r\n\t}", "private void turnOnFlash() {\n if (!batteryOk) {\n showBatteryLowDialog();\n return;\n }\n getCamera();\n Log.d(\"Flash on?\", \"============+>\" + String.valueOf(isFlashOn));\n if (!isFlashOn) {\n if (camera == null || params == null) {\n isFlashOn = false;\n return;\n }\n // play sound\n playSound();\n try {\n if (freq != 0) {\n sr = new StroboRunner();\n t = new Thread(sr);\n t.start();\n } else {\n params = camera.getParameters();\n params.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {\n params.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE);\n }\n camera.setParameters(params);\n camera.startPreview();\n }\n } catch (Exception e) {\n // Do nothing;\n }\n\n isFlashOn = true;\n // changing button/switch image\n toggleButtonImageSwitch();\n }\n\n }", "private void on(){\n\n\t\t// if light is off and there is a flash object\n\t\tif(_flash != null && !isFlashOn){\n\n\t\t\t_flash.on();\n\t\t\tisFlashOn = true;\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent light = new Intent(MainActivity.this,Light.class);\n\t\t\t\tstartActivity(light);\n\t\t\t}", "@Override\n\tpublic void on() {\n\t\tSystem.out.println(\"turn on the \"+name+\" Light\");\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlightOn = !lightOn;\n\t\t\t\tactiveLightSource(lightOn);\n\t\t\t\tlightButton.setLabel(lightOn ? \"Light off\" : \"Light On\");\n\t\t\t}", "public void turnLightsOn()\n {\n set(Relay.Value.kForward);\n }", "public static void lightOn(Window window) {\n\t\tWindowManager.LayoutParams lp = window.getAttributes();\r\n\t\tlp.alpha = 1.0f;\r\n\t\twindow.setAttributes(lp);\r\n\t}", "private void initLighting() {\n\t\t\n\t\t\n\t\tfloat lmodel_ambient[] = { 1f, 1f, 1f, 1.0f };\n\t\t// Hintergrundbeleuchtung definieren\n\t\tglLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);\n\n\t\t// Eine weitere Lichtquellen definieren\n\t\t\n\t\tglEnable(GL_LIGHTING);\n\n\t\tspotLight.turnLightOn();\n\t\tpointLight.turnLightOn();\n\t}", "private void toggleMode() {\n\t if(freestyle){\n\t\t Toast.makeText(getApplicationContext(), \"Take a picture in any pose\", Toast.LENGTH_LONG).show();\n\t\t \nmodeTextView.setText(\"Freestyle\");\nnewImgButton.setEnabled(false);\ncountdownView.setEnabled(false);\ncountdownView.setText(\"-\");\nframenumTextView.setEnabled(false);\nframenumTextView.setText(\"-\");\n\t }\n\t else{\n\t\t Toast.makeText(getApplicationContext(), \"Try to match the shape and take a picture\", Toast.LENGTH_LONG).show();\n\t\t modeTextView.setText(\"Match\");\n\t\t newImgButton.setEnabled(true);\n\t\t countdownView.setEnabled(true);\n\t\t framenumTextView.setEnabled(true);\n\t }\n\t \n\t\n}", "public void toggleLightSpheres() {\r\n\t\tmodel.control(AbstractModel.TOGGLE_LIGHT_SPHERES, null);\r\n\t}", "public void turnStrobeOn(){\n if (!WatchFlags.gestureSensingOn){\n Log.d(TAG, \"Gesture sensing mode is off, aborting start strobe command\");\n return;\n }\n if (WatchFlags.strobeIsOn == false) {\n startActivity(new Intent(this, wSignalingActivity.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));\n }\n }", "public Light(boolean isOn) {\n\t\tthis.isOn = isOn;\n\t}", "public void LightUpScreen(){\n PowerManager pm = (PowerManager)this.getSystemService(this.POWER_SERVICE);\n\n //Is the screen already on?\n boolean isScreenOn = pm.isScreenOn();\n\n //If the screen is NOT on, light it up for 5 seconds, and then turn it off again.\n if(isScreenOn == false){\n PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK |PowerManager.ACQUIRE_CAUSES_WAKEUP |PowerManager.ON_AFTER_RELEASE,\"MyLock\");\n wl.acquire(5000);\n }\n }", "public void setLight1(){\n }", "public void toggleMode() {\n if (edit_rbmi.isSelected()) filter_rbmi.setSelected(true);\n // else if (filter_rbmi.isSelected()) edgelens_rbmi.setSelected(true);\n // else if (edgelens_rbmi.isSelected()) timeline_rbmi.setSelected(true);\n else edit_rbmi.setSelected(true);\n }", "public void switchOn();", "public void setStaticLight(boolean staticLight);", "@Override\n public void initialize() {\n limelight.disableDriverMode();\n limelight.enableLEDs();\n }", "public void enterRealTimeRecognitionMode(View view) {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "void changeMode(int mode);", "private void turnOnCamera() {\n // play sound\n playSound();\n isCameraOn = true;\n turnOffFlash();\n strobo.setChecked(false);\n previewCamera();\n toggleButtonImageCamera();\n }", "void onEnoughLightAvailable() {\n //start eye tracking if it is not running already\n startEyeTracking();\n }", "private static void turnFlashlightOff() {\n Parameters p = cam.getParameters();\n p.setFlashMode(Parameters.FLASH_MODE_OFF);\n cam.setParameters(p);\n }", "public final void setLed(boolean on_off){\n LIBRARY.CLEyeCameraLED(camera_, on_off ? 1 :0);\n }", "private void updateDemoModeOn() {\n boolean z = false;\n if (Settings.Global.getInt(getContext().getContentResolver(), \"sysui_tuner_demo_on\", 0) != 0) {\n z = true;\n }\n this.mOnSwitch.setChecked(z);\n }", "public void setLights(boolean lights) {\n \tthis.lightsAreOn = lights;\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n app.toggleDarkMode();\n isDark = !isDark;\n }", "@Override\n protected void initialize() {\n //Robot.limelight.setLiveStream(0);\n Robot.limelight.setLEDMode(3);\n }", "private void turnOnLights(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_turnOnLights\n\n this.selectedTrain.setLights(1); // turn on lights\n this.operatingLogbook.add(\"Lights on.\");\n this.printOperatingLogs();\n }", "public void onSwitchCamera(View v) {\n if (mWZCameraView == null) return;\n\n mBtnTorch.setState(false);\n mBtnTorch.setEnabled(false);\n\n WZCamera newCamera = mWZCameraView.switchCamera();\n if (newCamera != null) {\n if (newCamera.hasCapability(WZCamera.FOCUS_MODE_CONTINUOUS))\n newCamera.setFocusMode(WZCamera.FOCUS_MODE_CONTINUOUS);\n\n boolean hasTorch = newCamera.hasCapability(WZCamera.TORCH);\n if (hasTorch) {\n mBtnTorch.setState(newCamera.isTorchOn());\n mBtnTorch.setEnabled(true);\n }\n }\n }", "@Override\n\n public void runOpMode() {\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n\n // Initialize the hardware variables. Note that the strings used here as parameters\n // to 'get' must correspond to the names assigned during the robot configuration\n // step (using the FTC Robot Controller app on the phone).\n // FR = hardwareMap.get(DcMotor.class, \"FR\");\n // FL = hardwareMap.get(DcMotor.class, \"FL\");\n // BR = hardwareMap.get(DcMotor.class, \"BR\");\n //BL = hardwareMap.get(DcMotor.class, \"BL\");\n //yoo are ___\n // Most robots need the motor on one side to be reversed to drive forward\n // Reverse the motor that runs backwards when connected directly to the battery\n/* FR.setDirection(DcMotor.Direction.FORWARD);\n FL.setDirection(DcMotor.Direction.REVERSE);\n BR.setDirection(DcMotor.Direction.FORWARD);\n BL.setDirection(DcMotor.Direction.REVERSE);\n\n */ RevBlinkinLedDriver blinkinLedDriver;\n RevBlinkinLedDriver.BlinkinPattern pattern;\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n blinkinLedDriver = this.hardwareMap.get(RevBlinkinLedDriver.class, \"PrettyBoi\");\n blinkinLedDriver.setPattern(RevBlinkinLedDriver.BlinkinPattern.RAINBOW_WITH_GLITTER);\n// runtime.reset();\n\n // run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n\n\n\n // Show the elapsed game time and wheel power.\n// telemetry.addData(\"Status\", \"Run Time: \" + runtime.toString());\n// // telemetry.addData(\"Motors\", \"FL (%.2f), FR (%.2f), BL (%.2f), BR (%.2f)\", v1, v2, v3, v4);\n// telemetry.update();\n }\n }", "void enableFlipMode();", "public void lighting(boolean onOrOff)\r\n {\r\n \tint i;\r\n \tfor (i=0;i<LightSet.size();i++) {\r\n \t\t((Light)LightSet.elementAt(i)).setState(onOrOff);\r\n \t}\r\n }", "@Override\n public void execute() {\n light.on();\n }", "public void updateSwitches(){\r\n if(this.ar){\r\n this.augmentedReality.setChecked(true);\r\n }else{\r\n this.augmentedReality.setChecked(false);\r\n }\r\n\r\n if(this.easy){\r\n this.easyMode.setChecked(true);\r\n }else{\r\n this.easyMode.setChecked(false);\r\n }\r\n }", "public void setIntakeLights(){\n \tintakeLights.set(true);\n }", "public ToggleCameraMode() {\n requires(Robot.vision);\n }", "public static void setLightScreenOnNotification(Context context, boolean lightsOn)\n\t{\n\t\tPreferenceUtils.setLightScreenOnNotification(context, lightsOn);\n\t}", "public void change() {\r\n this.mode = !this.mode;\r\n }", "public void confirmLightning() {\n selectedLightning = true;\n }", "public void changeState(){\n\t\t//red - Green\n\t\tif (lights[0].isOn()){\n\t\t\tlights[0].turnOff();\n\t\t\tlights[2].turnOn();\n\t\t}\n\t\t\n\t\t//Green -yellow\n\t\telse if(lights[2].isOn()){\n\t\t\tlights[2].turnOff();\n\t\t\tlights[1].turnOn();\n\t\t}\n\t\t//yellow to red\n\t\telse if (lights[1].isOn()){\n\t\t\tlights[1].turnOff();\n\t\t\tlights[0].turnOn();\n\t\t}\n\t\t\n\t}", "public int switchMode() {\r\n int mode = GameInfo.getInstance().switchMode();\r\n MazeMap.getInstance().updateMaze(mode);\r\n return mode;\r\n }", "@Override\r\n public void turnOn(){\r\n isOn = true;\r\n Reporter.report(this, Reporter.Msg.SWITCHING_ON);\r\n if (isOn){\r\n engageLoads();\r\n }\r\n }", "public void turnOn ()\n\t{\n\t\tthis.powerState = true;\n\t}", "public void turnLightsOff()\n {\n set(Relay.Value.kOff);\n }", "void turnFrontScreenFlashOn();", "public static void update(Context context, boolean islightMode)\n {\n update(context,null,null,islightMode);\n }", "public void turn_on () {\n this.on = true;\n }", "public void initLight(GL10 gl)\n\t{\n\t\tgl.glEnable(GL10.GL_LIGHT0);// 打开0号光源\n\n\t\t// 环境光设置\n\t\tfloat[] ambientParams =\n\t\t{ 0.46f, 0.21f, 0.05f, 1.0f };// 光参数 RGBA\n\t\tgl.glLightfv(GL10.GL_LIGHT0, GL10.GL_AMBIENT, ambientParams, 0);\n\n\t\t// 散射光设置\n\t\tfloat[] diffuseParams =\n\t\t{ 0.46f, 0.21f, 0.05f, 1.0f };\n\t\tgl.glLightfv(GL10.GL_LIGHT0, GL10.GL_DIFFUSE, diffuseParams, 0);\n\n\t\t// 镜面光设置\n\t\tfloat[] specularParams =\n\t\t{ 0.46f, 0.21f, 0.05f, 1.0f };\n\t\tgl.glLightfv(GL10.GL_LIGHT0, GL10.GL_SPECULAR, specularParams, 0);\n\n\t\t// 指定光源位置\n\t\tfloat[] directionParams =\n\t\t{ -1f, 1f, 1f, 0 };// 定向光\n\t\tgl.glLightfv(GL10.GL_LIGHT0, GL10.GL_POSITION, directionParams, 0);\n\t}", "@Override\n\tpublic void backlight() {\n\t\t\n\t}", "public void lightsOff() {\n PHBridge bridge = PHHueSDK.getInstance().getSelectedBridge();\n PHLightState lightState = new PHLightState();\n lightState.setOn(false);\n bridge.setLightStateForDefaultGroup(lightState);\n }", "public void enableLighting(boolean enable)\n\t{\n\t\tthis.glStateChanger.setLighting(enable);\n\t}", "public void switchInsMode() {\n this.inputMode = !this.inputMode;\n }", "@Override\n\tpublic void off() {\n\t\tSystem.out.println(\"turn off the \"+name+\" Light\");\n\t}", "private void activateTrafficLight(TrafficLight activeTrafficLight) {\n for (TrafficLight trafficLight : trafficLights) {\n trafficLight.setState(TrafficLight.State.RED);\n }\n\n // Activating light\n this.activeTrafficLight = activeTrafficLight;\n activeTrafficLight.nextState();\n stepCounter = 0;\n }", "public void switchOn() throws RemoteHomeConnectionException {\n m.sendCommand(parseDeviceIdForMultipleDevice(getRealDeviceId()), \"l\"+getSubDeviceNumber()+\"o\");\n setCurrentState(true);\n }", "public String getLightingControl() {\n return lightingControl;\n }", "@Override\n\t\tpublic void run() {\n\t\t\tif(mCameraDevices != null && mParameters!=null){\n\t\t\t\tmParameters.setFlashMode(Parameters.FLASH_MODE_TORCH);\n\t\t\t\tmCameraDevices.setParameters(mParameters); \n\t\t\t\tison = true;\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tLog.d(TAG,\"mParameters is null\");\n\t\t\t\tison = true;\n\t\t\t}\n\t\t\tmCallback.onLightStateChange(ison);\n\t\t}", "@FXML\n\tpublic void handleModeScreenButton(){\n\t mainAnimation.stop();\n\t\tScreen cs = new Screen(this.getStage(), \"Select Mode to Play\", \"View/ModeScreen.fxml\");\n\t\tController controller = new ModeScreenController(this.getStage());\n\t\tcs.display(controller);\n\t}", "@Override\n public void onClick(View v) {\n Log.d(TAG, \"Set LCD mute ON. (display OFF)\");\n mDisplayControl.setMute(true);\n try{\n Thread.sleep(3000); //3000É~ÉäïbSleepÇ∑ÇÈ\n }catch(InterruptedException e){}\n\n Log.d(TAG, \"Set LCD mute OFF. (display ON)\");\n mDisplayControl.setMute(false);\n }", "private void refreshLights(){\n\n if (this.selectedTrain.getLights() == 1){ this.lightsOnRadioButton.setSelected(true); }\n else if (this.selectedTrain.getLights() == 0){ this.lightsOffRadioButton.setSelected(true); }\n else if (this.selectedTrain.getLights() == -1){ this.lightsFailureRadioButton.setSelected(true); }\n }", "OnOffSwitch alarmSwitch();", "public void setIsLight(boolean blight){\n\t\tm_bLight = blight;\n\t\tinitPaint();\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickMainLight();\n\t\t\t}", "public void open(){\n \ttriggerTimer.reset();\n \tisClosed = false;\n \tClawAct.set(false);\n\t\tRobot.oi.armRumble(RUMBLE_DURATION);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_constant_flash) {\n if (isFlashSupported()) {\n camera = Camera.open();\n parameters = camera.getParameters();\n\n if(isFlashLightOn){\n // flashLightButton.setImageResource(R.drawable.flashlight_off);\n parameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);\n camera.setParameters(parameters);\n camera.stopPreview();\n isFlashLightOn = false;\n }else{\n // flashLightButton.setImageResource(R.drawable.flashlight_on);\n parameters.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);\n camera.setParameters(parameters);\n camera.startPreview();\n isFlashLightOn = true;\n }\n\n }\n else {\n Toast.makeText(this, \"No FlashLight supported\", Toast.LENGTH_SHORT).show();\n }\n\n\n\n\n return true;\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "public void setScreenBrightnessMode(int mode) {\n Settings.System.putInt(mContext.getContentResolver(),\n Settings.System.SCREEN_BRIGHTNESS_MODE, mode);\n }", "public void onSwitchCameraClicked(View view) {\n // Switch the camera\n mRtcEngine.switchCamera();\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase LIGHTON:\n\t\t\t\tSystem.out.println(\"on\");\n\t\t\t\tsetWifi.setBackgroundResource(R.mipmap.cam_set_image_red);\n\t\t\t\tbreak;\n\t\t\tcase LIGHTOFF:\n\t\t\t\tSystem.out.println(\"off\");\n\t\t\t\tsetWifi.setBackgroundResource(R.mipmap.cam_set_image_default);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "public void handleToggleButtonLowPass() {\n\t\tif (toggleButtonLowPass.isSelected() == true) {\n\t\t\tcontroller.audioManipulatorUseLowPassProcessor(true);\n\t\t\tsliderLowPass.setDisable(false);\n\t\t\ttextFieldLowPass.setDisable(false);\n\t\t\ttoggleButtonLowPass.setText(bundle.getString(\"mixerToggleButtonOn\"));\n\t\t} else {\n\t\t\tcontroller.audioManipulatorUseLowPassProcessor(false);\n\t\t\tsliderLowPass.setDisable(true);\n\t\t\ttextFieldLowPass.setDisable(true);\n\t\t\ttoggleButtonLowPass.setText(bundle.getString(\"mixerToggleButtonOff\"));\n\t\t}\n\n\t}", "public void mode() {\n APIlib.getInstance().addJSLine(jsBase + \".mode();\");\n }", "public Limelight(String name, boolean mode3D) {\n this(name);\n this.mode3d = mode3D; \n }", "@Override\n\tpublic void execute() {\n\t\tlight.on();\n\t}", "@Override\n protected void screenMode(int mode) {\n\n }", "void setShutterLEDState(boolean on);", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetFullscreen();\n\t\tsetContentView(R.layout.flashlight);\n\t\t\n\t\tmOldBrightness = getOldBrightness();\n\t\t\n\t\t\n\t\tmWindow = findViewById(R.id.window);\n\t\t\n\t\t// default is flashlight mode\n\t\tmodeFlashlight();\n\t\t\n\t\tmWakeLock = getWakeLock();\n\t}", "public void switchTheme() {\n if (_theme.equals(\"light\")) {\n _theme = \"dark\";\n setCss(darkCss);\n _switchThemeImageView.setImage(darkImage);\n } else {\n _theme = \"light\";\n setCss(lightCss);\n _switchThemeImageView.setImage(lightImage);\n }\n }", "@Override\n public void runOpMode() {\n initialize();\n\n //wait for user to press start\n waitForStart();\n\n if (opModeIsActive()) {\n\n // drive forward 24\"\n // turn left 90 degrees\n // turnLeft(90);\n // drive forward 20\"\n // driveForward(20);\n // turn right 90 degrees\n // turnRight(90);\n // drive forward 36\"\n // driveForward(36);\n\n }\n\n\n }", "protected void toggleLaser() {\n laserOn = !laserOn;\n }", "public boolean isLightEnabled() {\n return mLightEnabled;\n }", "public void switchMode() {\n final FloatingActionButton guidedButton = (FloatingActionButton)findViewById(R.id.btn_guided);\n final FloatingActionButton settingsButton = (FloatingActionButton)findViewById(R.id.btn_settings);\n final FloatingActionButton modeSwitch = (FloatingActionButton)findViewById(R.id.btn_mode_select);\n\n\n // switch background color\n String themeId = getThemeId();\n if (mCurrentMode) {\n mNavigationService.to(new SearchFragment(), null);\n // set button colors\n if (themeId.equals(\"light\")) {\n DrawableCompat.setTintList(DrawableCompat.wrap(settingsButton.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorB)));\n DrawableCompat.setTintList(DrawableCompat.wrap(settingsButton.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorB)));\n\n DrawableCompat.setTintList(DrawableCompat.wrap(modeSwitch.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorB)));\n DrawableCompat.setTintList(DrawableCompat.wrap(modeSwitch.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorB)));\n\n DrawableCompat.setTintList(DrawableCompat.wrap(guidedButton.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorB)));\n DrawableCompat.setTintList(DrawableCompat.wrap(guidedButton.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorB)));\n }\n else /*if (themeId.equals(\"dark\"))*/ {\n DrawableCompat.setTintList(DrawableCompat.wrap(settingsButton.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorB)));\n DrawableCompat.setTintList(DrawableCompat.wrap(settingsButton.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorB)));\n\n DrawableCompat.setTintList(DrawableCompat.wrap(modeSwitch.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorB)));\n DrawableCompat.setTintList(DrawableCompat.wrap(modeSwitch.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorB)));\n\n DrawableCompat.setTintList(DrawableCompat.wrap(guidedButton.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorB)));\n DrawableCompat.setTintList(DrawableCompat.wrap(guidedButton.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorB)));\n }\n } else {\n mNavigationService.to(new ReadFragment(), null);\n // set button colors\n if (themeId.equals(\"light\")) {\n DrawableCompat.setTintList(DrawableCompat.wrap(settingsButton.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorA)));\n DrawableCompat.setTintList(DrawableCompat.wrap(settingsButton.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorA)));\n\n DrawableCompat.setTintList(DrawableCompat.wrap(modeSwitch.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorA)));\n DrawableCompat.setTintList(DrawableCompat.wrap(modeSwitch.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorA)));\n\n DrawableCompat.setTintList(DrawableCompat.wrap(guidedButton.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorA)));\n DrawableCompat.setTintList(DrawableCompat.wrap(guidedButton.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorA)));\n }\n else /*if (themeId.equals(\"dark\"))*/ {\n DrawableCompat.setTintList(DrawableCompat.wrap(settingsButton.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorA)));\n DrawableCompat.setTintList(DrawableCompat.wrap(settingsButton.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorA)));\n\n DrawableCompat.setTintList(DrawableCompat.wrap(modeSwitch.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorA)));\n DrawableCompat.setTintList(DrawableCompat.wrap(modeSwitch.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorA)));\n\n DrawableCompat.setTintList(DrawableCompat.wrap(guidedButton.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorA)));\n DrawableCompat.setTintList(DrawableCompat.wrap(guidedButton.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorA)));\n }\n }\n modeSwitch.setSelected(mCurrentMode);\n mCurrentMode = !mCurrentMode;\n speakModeHint();\n vibrate(10);\n }", "public boolean isLowLightShow() {\n return false;\n }", "public void enableTorchMode(boolean enable) {\n if (this.mCameraSettings.getCurrentFlashMode() != null) {\n FlashMode flashMode;\n SettingsManager settingsManager = this.mActivity.getSettingsManager();\n Stringifier stringifier = this.mCameraCapabilities.getStringifier();\n if (enable) {\n flashMode = stringifier.flashModeFromString(settingsManager.getString(this.mAppController.getCameraScope(), Keys.KEY_VIDEOCAMERA_FLASH_MODE));\n } else {\n flashMode = FlashMode.OFF;\n }\n if (this.mCameraCapabilities.supports(flashMode)) {\n this.mCameraSettings.setFlashMode(flashMode);\n }\n if (this.mCameraDevice != null) {\n this.mCameraDevice.applySettings(this.mCameraSettings);\n }\n this.mUI.updateOnScreenIndicators(this.mCameraSettings);\n }\n }", "public Light() {\n\t\tthis(false);\n\t}", "public void mapMode() {\n\t\ttheTrainer.setUp(false);\n\t\ttheTrainer.setDown(false);\n\t\ttheTrainer.setLeft(false);\n\t\ttheTrainer.setRight(false);\n\n\t\tinBattle = false;\n\t\tred = green = blue = 255;\n\t\tthis.requestFocus();\n\t}", "protected void doMoreLight() {\r\n\t\talpha = Math.min(1f, alpha + 0.05f);;\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}", "void setNightModeState(boolean b);", "public void changeStatus()\n {\n if(this.isActivate == false)\n {\n this.isActivate = true;\n switchSound.play();\n //this.dungeon.updateSwitches(true); \n }\n else{\n this.isActivate = false;\n switchSound.play(1.75, 0, 1.5, 0, 1);\n //this.dungeon.updateSwitches(false); \n }\n notifyObservers();\n\n }" ]
[ "0.80845857", "0.7910362", "0.7612292", "0.73223764", "0.7293938", "0.7175611", "0.7095041", "0.70559967", "0.70209056", "0.6996966", "0.669804", "0.6658443", "0.6652704", "0.66480577", "0.658014", "0.65284353", "0.6528024", "0.6461709", "0.64376295", "0.64287406", "0.64253116", "0.63822645", "0.636128", "0.6320625", "0.6307125", "0.63006544", "0.6289629", "0.62718886", "0.62561095", "0.6244142", "0.623078", "0.6228908", "0.6206059", "0.6201829", "0.61953056", "0.6189222", "0.61801106", "0.61744624", "0.61717784", "0.6169564", "0.6156759", "0.6155976", "0.61491436", "0.61318123", "0.61271465", "0.6127018", "0.6126573", "0.61181295", "0.6083559", "0.60829043", "0.6080984", "0.6078465", "0.6071081", "0.6064672", "0.6033426", "0.6027907", "0.6017235", "0.60145915", "0.59955984", "0.5987219", "0.59736496", "0.5971906", "0.59667695", "0.5958318", "0.5936372", "0.5934147", "0.593166", "0.5930531", "0.5920433", "0.59202707", "0.59197706", "0.5906759", "0.59062296", "0.59006345", "0.58993876", "0.5885671", "0.5879806", "0.58797574", "0.5875405", "0.587068", "0.5869141", "0.5868496", "0.58682865", "0.5866577", "0.5866421", "0.5865428", "0.58605695", "0.5858113", "0.5855084", "0.58483344", "0.58396107", "0.58352584", "0.58291215", "0.58289874", "0.5825529", "0.5811064", "0.5809639", "0.5807483", "0.580339", "0.5800703" ]
0.7129778
6
switch to dark mode here
@Override public void actionPerformed(ActionEvent e) { app.toggleDarkMode(); isDark = !isDark; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void registerDarkness() {\n this.setDark(true);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \tapp.toggleLightMode();\n \tisDark = !isDark;\n }", "@SuppressLint(\"SetTextI18n\")\n @Override\n public void onClick(View view) {\n if (isDarkModeOn) {\n\n // if dark mode is on it\n // will turn it off\n AppCompatDelegate\n .setDefaultNightMode(\n AppCompatDelegate\n .MODE_NIGHT_NO);\n // it will set isDarkModeOn\n // boolean to false\n editor.putBoolean(\n \"isDarkModeOn\", false);\n editor.apply();\n\n // change text of Button\n // btnToggleDark.setColorFilter(ContextCompat.getColor(context, R.color.colorPrimary), android.graphics.PorterDuff.Mode.MULTIPLY);\n btndarkmodeAcitvate.setText(\"Aktiviere Dark Mode\");\n } else {\n\n // if dark mode is off\n // it will turn it on\n AppCompatDelegate\n .setDefaultNightMode(\n AppCompatDelegate\n .MODE_NIGHT_YES);\n\n // it will set isDarkModeOn\n // boolean to true\n editor.putBoolean(\n \"isDarkModeOn\", true);\n editor.apply();\n\n // change text of Button\n // btnToggleDark.setText(\n // \"Disable Dark Mode\");\n btndarkmodeAcitvate.setText(\"Deaktiviere Dark Mode\");\n }\n }", "public boolean isDark(){\n int ui = getUI();\n int currentNightMode = ui & Configuration.UI_MODE_NIGHT_MASK;\n if(currentNightMode == Configuration.UI_MODE_NIGHT_YES)\n {\n return true;\n }\n return false;\n }", "protected void doDark() {\r\n\t\talpha = 0.5f;\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}", "private void toggleTheme() {\n\n // Following options to change the Theme must precede setContentView().\n\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n String lister = sharedPref.getString(\"list_preference\", \"1\");\n\n currentTheme = Integer.parseInt(lister);\n if (currentTheme == 2) {\n isLight = false;\n } else {\n isLight = true;\n }\n\n if (isLight) {\n setTheme(R.style.LightCustom);\n } else {\n setTheme(R.style.DarkCustom);\n }\n }", "public void switchTheme() {\n if (_theme.equals(\"light\")) {\n _theme = \"dark\";\n setCss(darkCss);\n _switchThemeImageView.setImage(darkImage);\n } else {\n _theme = \"light\";\n setCss(lightCss);\n _switchThemeImageView.setImage(lightImage);\n }\n }", "public void switchLight(){\r\n _switchedOn = !_switchedOn;\r\n }", "@FXML\n\tprivate void setDarkStyle() {\n\t\tapplication.getScene().getStylesheets().remove(urlDefaultTheme);\n\n\t\t// Add the new theme\n\t\tapplication.getScene().getStylesheets().add(urlDarkTheme);\n\t}", "private boolean getAppTheme() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n return preferences.getBoolean(\"dark_mode\", false);\n }", "private void toggle_light() {\n\t\ttry {\n\t\t\tif (!light_on) {\n\t\t\t\tlightButton.setBackgroundResource(R.drawable.light_selected);\n\t\t\t\tif (handler != null) {\n\t\t\t\t\thandler.quitSynchronously();\n\t\t\t\t\thandler = null;\n\t\t\t\t}\n//\t\t\t\tCameraManager.get().closeDriver();\n\t\t\t\tgetCameraManager().closeDriver();\n\t\t\t\tinitCamera(surfaceHolder);\n\t\t\t\tgetCameraManager().getFramingRect();\n//\t\t\t\tCameraManager.get().turn_onFlash();\n\t\t\t\tgetCameraManager().setTorch(true);\n\n\t\t\t} else {\n\t\t\t\tlightButton.setBackgroundResource(R.drawable.light);\n\t\t\t\tif (handler != null) {\n\t\t\t\t\thandler.quitSynchronously();\n\t\t\t\t\thandler = null;\n\t\t\t\t}\n//\t\t\t\tCameraManager.get().closeDriver();\n\t\t\t\tgetCameraManager().closeDriver();\n\t\t\t\tinitCamera(surfaceHolder);\n//\t\t\t\tCameraManager.get().turn_offFlash();\n\t\t\t\tgetCameraManager().setTorch(false);\n\n\t\t\t}\n\t\t\tlight_on = !light_on;\n\t\t} catch (Exception oEx) {\n\n\t\t}\n\t}", "private void changeTheme() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n boolean useDarkTheme = preferences.getBoolean(\"theme_pref\", false);\n\n if (useDarkTheme) {\n setTheme(R.style.DarkTheme);\n } else {\n setTheme(R.style.AppTheme);\n }\n }", "public boolean isDark() {\n return (col + row) % 2 == 0;\n }", "public void loadSavedTheme() {\n if(savedThemeDark)\n {\n if(isDark()){\n //El tema ya es oscuro, no hace nada\n }\n else{\n loadDark();\n }\n }\n else\n {\n if(isDark())\n {\n loadLight();\n }\n }\n\n }", "private static void setActivityTheme(Context context) {\n //access the dark mode theme\n SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);\n String themePref = sharedPrefs.getString(\"theme_preference\", \"Light\");\n //set the calling object's theme to match with what's listed in shared preferences\n switch (themePref) {\n case \"Light\":\n context.setTheme(R.style.AppTheme);\n AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);\n break;\n case \"Dark\":\n context.setTheme(R.style.AppThemeDark);\n //turn off AppThemeDayNight\n AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);\n break;\n //\"Auto\" is commented out due to time restraints. I hope to revisit this later. -Littlesnowman88\n /*case \"Auto\":\n context.setTheme(R.style.AppThemeDayNight);\n AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_AUTO);\n break;*/\n //a Runtime Exception is thrown to ensure that new themes are fully implemented into this case statement. Developers must not be sloppy with their theme changes.\n default:\n throw new RuntimeException(\"ERROR: mismatch between selected app theme and implemented app themes.\");\n }\n }", "public void switchMode() {\n final FloatingActionButton guidedButton = (FloatingActionButton)findViewById(R.id.btn_guided);\n final FloatingActionButton settingsButton = (FloatingActionButton)findViewById(R.id.btn_settings);\n final FloatingActionButton modeSwitch = (FloatingActionButton)findViewById(R.id.btn_mode_select);\n\n\n // switch background color\n String themeId = getThemeId();\n if (mCurrentMode) {\n mNavigationService.to(new SearchFragment(), null);\n // set button colors\n if (themeId.equals(\"light\")) {\n DrawableCompat.setTintList(DrawableCompat.wrap(settingsButton.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorB)));\n DrawableCompat.setTintList(DrawableCompat.wrap(settingsButton.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorB)));\n\n DrawableCompat.setTintList(DrawableCompat.wrap(modeSwitch.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorB)));\n DrawableCompat.setTintList(DrawableCompat.wrap(modeSwitch.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorB)));\n\n DrawableCompat.setTintList(DrawableCompat.wrap(guidedButton.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorB)));\n DrawableCompat.setTintList(DrawableCompat.wrap(guidedButton.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorB)));\n }\n else /*if (themeId.equals(\"dark\"))*/ {\n DrawableCompat.setTintList(DrawableCompat.wrap(settingsButton.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorB)));\n DrawableCompat.setTintList(DrawableCompat.wrap(settingsButton.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorB)));\n\n DrawableCompat.setTintList(DrawableCompat.wrap(modeSwitch.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorB)));\n DrawableCompat.setTintList(DrawableCompat.wrap(modeSwitch.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorB)));\n\n DrawableCompat.setTintList(DrawableCompat.wrap(guidedButton.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorB)));\n DrawableCompat.setTintList(DrawableCompat.wrap(guidedButton.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorB)));\n }\n } else {\n mNavigationService.to(new ReadFragment(), null);\n // set button colors\n if (themeId.equals(\"light\")) {\n DrawableCompat.setTintList(DrawableCompat.wrap(settingsButton.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorA)));\n DrawableCompat.setTintList(DrawableCompat.wrap(settingsButton.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorA)));\n\n DrawableCompat.setTintList(DrawableCompat.wrap(modeSwitch.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorA)));\n DrawableCompat.setTintList(DrawableCompat.wrap(modeSwitch.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorA)));\n\n DrawableCompat.setTintList(DrawableCompat.wrap(guidedButton.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorA)));\n DrawableCompat.setTintList(DrawableCompat.wrap(guidedButton.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorA)));\n }\n else /*if (themeId.equals(\"dark\"))*/ {\n DrawableCompat.setTintList(DrawableCompat.wrap(settingsButton.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorA)));\n DrawableCompat.setTintList(DrawableCompat.wrap(settingsButton.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorA)));\n\n DrawableCompat.setTintList(DrawableCompat.wrap(modeSwitch.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorA)));\n DrawableCompat.setTintList(DrawableCompat.wrap(modeSwitch.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorA)));\n\n DrawableCompat.setTintList(DrawableCompat.wrap(guidedButton.getDrawable()), ColorStateList.valueOf(getResources().getColor(R.color.lightColorA)));\n DrawableCompat.setTintList(DrawableCompat.wrap(guidedButton.getBackground()), ColorStateList.valueOf(getResources().getColor(R.color.darkColorA)));\n }\n }\n modeSwitch.setSelected(mCurrentMode);\n mCurrentMode = !mCurrentMode;\n speakModeHint();\n vibrate(10);\n }", "void setNightModeState(boolean b);", "@FXML\r\n void darkThemeAction() {\r\n root.getStylesheets().remove(\"sample/UserInterface/light_theme.css\");\r\n root.getStylesheets().add(\"sample/UserInterface/dark_theme.css\");\r\n }", "public void switchColor() {\r\n\t\tcolor = !color;\r\n\t}", "private void loadSettings() {\n // set theme\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n String themeId = preferences.getString(\"theme\", \"\");\n if (themeId.equals(\"light\")) {\n setTheme(R.style.ThemeLightReadMode);\n Log.d(TAG, \"switch to light theme \" + themeId);\n }\n else /*if (themeId.equals(\"dark\"))*/ {\n setTheme(R.style.ThemeDarkReadMode);\n Log.d(TAG, \"switch to dark theme \" + themeId);\n }\n }", "public CommonPopWindow setBackgroundDarkEnable(boolean darkEnable) {\n/* 163 */ this.mBackgroundDarkEnable = darkEnable;\n/* 164 */ return this;\n/* */ }", "public void fillDarkLight() {\n this.darkLight = new String[2];\n this.darkLight[0] = \"dark\";\n this.darkLight[1] = \"light\";\n }", "protected void updatePreferences() {\n boolean theme = PreferenceManager.getDefaultSharedPreferences(this).getBoolean(getString(R.string.prefTheme), false);\n\n if (theme) {\n\n // Set to light mode.\n AppCompatDelegate.setDefaultNightMode(\n AppCompatDelegate.MODE_NIGHT_NO);\n } else {\n\n // Set to dark mode.\n AppCompatDelegate.setDefaultNightMode(\n AppCompatDelegate.MODE_NIGHT_YES);\n }\n }", "private static boolean isLightMode(Context context)\n {\n return ((BladeSampleApplication)context.getApplicationContext()).isLightMode();\n }", "public void flashlightSwitch()\n {\n usingFlashlight = !usingFlashlight;\n }", "public void registerIllumination() {\n this.setDark(false);\n }", "private void turnOnOffColors () {\r\n\t\tif (store.getString(CDTFoldingConstants.COMBO_CHOICE).equals(\r\n\t\t\t\tCDTFoldingConstants.COMBO_CHOICE_HIGHLIGHT)) {\r\n\t\t\tfgLabel.setVisible(true);\r\n\t\t\tbgLabel.setVisible(true);\r\n\t\t\tbgColorSelector.setEnabled(true);\r\n\t\t\tfgColorSelector.setEnabled(true);\r\n\t\t} else {\r\n\t\t\tfgLabel.setVisible(false);\r\n\t\t\tbgLabel.setVisible(false);\r\n\t\t\tbgColorSelector.setEnabled(false);\r\n\t\t\tfgColorSelector.setEnabled(false);\r\n\t\t}\r\n\t}", "public void toggleMode() {\n if (edit_rbmi.isSelected()) filter_rbmi.setSelected(true);\n // else if (filter_rbmi.isSelected()) edgelens_rbmi.setSelected(true);\n // else if (edgelens_rbmi.isSelected()) timeline_rbmi.setSelected(true);\n else edit_rbmi.setSelected(true);\n }", "public void setScreenBrightnessMode(int mode) {\n Settings.System.putInt(mContext.getContentResolver(),\n Settings.System.SCREEN_BRIGHTNESS_MODE, mode);\n }", "@Override\n public void onGenerated(Palette palette) {\n int defaultValue = 0x000000;\n chosenColor = palette.getDarkMutedColor(defaultValue);\n collapsingToolbar.setContentScrimColor(chosenColor);\n\n //changing the status bar color\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getWindow();\n window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n int darkerColorChosen=getDarkerColor(chosenColor, 0.8f);\n window.setStatusBarColor(darkerColorChosen);\n }\n\n }", "public void setWeekendDarker(boolean b) {\n weekendDarker = b;\n }", "private void setTheme() {\n\t\tLog.i(LOG_TAG, \"setTheme\");\n\n\t\tSharedPreferences preferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\tthis.themeString = preferences.getString(\"theme_scheme\",\n\t\t\t\tMainMenuActivityThemeChanger.DARK_THEME);\n\n\t\tif (themeString\n\t\t\t\t.equalsIgnoreCase(MainMenuActivityThemeChanger.PINK_THEME)) {\n\n\t\t\tthis.setTheme(R.style.pinkTheme);\n\t\t\tsetContentView(R.layout.activity_time_trial);\n\n\t\t} else if (themeString\n\t\t\t\t.equalsIgnoreCase(MainMenuActivityThemeChanger.LIGHT_THEME)) {\n\n\t\t\tthis.setTheme(R.style.lightTheme);\n\t\t\tsetContentView(R.layout.activity_time_trial);\n\n\t\t} else {\n\n\t\t\tthis.setTheme(R.style.darkTheme);\n\t\t\tsetContentView(R.layout.activity_time_trial);\n\n\t\t}\n\t}", "public StateChangeMdiIcon dark() {\n defaultIcon.dark();\n statesMap.values().forEach(MdiIcon::dark);\n return this;\n }", "@Override\n public void onClick(View view) {\n if (sharedPref.loadNightModeState()) {\n sharedPref.setNightModeState(false);\n Picasso.get().load(R.drawable.ic_night).into(night_mode);\n// switchCompat.setChecked(false);\n recreate();\n } else {\n sharedPref.setNightModeState(true);\n// switchCompat.setChecked(true);\n// night_mode.setImageIcon(R.drawable.ic_day);\n Picasso.get().load(R.drawable.ic_day).into(night_mode);\n recreate();\n }\n }", "private void toggleMode() {\n\t if(freestyle){\n\t\t Toast.makeText(getApplicationContext(), \"Take a picture in any pose\", Toast.LENGTH_LONG).show();\n\t\t \nmodeTextView.setText(\"Freestyle\");\nnewImgButton.setEnabled(false);\ncountdownView.setEnabled(false);\ncountdownView.setText(\"-\");\nframenumTextView.setEnabled(false);\nframenumTextView.setText(\"-\");\n\t }\n\t else{\n\t\t Toast.makeText(getApplicationContext(), \"Try to match the shape and take a picture\", Toast.LENGTH_LONG).show();\n\t\t modeTextView.setText(\"Match\");\n\t\t newImgButton.setEnabled(true);\n\t\t countdownView.setEnabled(true);\n\t\t framenumTextView.setEnabled(true);\n\t }\n\t \n\t\n}", "public void changeTheme(ActionEvent actionEvent) throws IOException {\n if (user.isStyleDark()){\n user.setStyleSheet(LIGHT_STYLE_SHEET);\n }\n else {\n user.setStyleSheet(DARK_STYLE_SHEET);\n }\n AppManager.changeScene(getClass().getResource(\"/views/SettingsScreen.fxml\"),actionEvent, user);\n\n }", "@Override\n public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {\n setPreferencesFromResource(R.xml.preferences, rootKey);\n\n Preference themePreference = findPreference(\"dark_theme\");\n if(themePreference != null) {\n themePreference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {\n @Override\n public boolean onPreferenceChange(Preference preference, Object newValue) {\n mainActivity.toggleTheme((boolean) newValue);\n return true;\n }\n });\n }\n }", "public void modeColor(Graphics2D g2d) { g2d.setColor(RTColorManager.getColor(\"label\", \"default\")); }", "public final void setLed(boolean on_off){\n LIBRARY.CLEyeCameraLED(camera_, on_off ? 1 :0);\n }", "private static void turnFlashlightOn() {\n Parameters p = cam.getParameters();\n p.setFlashMode(Parameters.FLASH_MODE_TORCH);\n cam.setParameters(p);\n }", "private void setLightStatus() {\n if (mCmd.equals(MSG_ON)) {\n setLighIsOn(true);\n } else {\n setLighIsOn(false);\n }\n }", "public void switchColor(){\r\n System.out.println(color);\r\n if(color==\"W\"){\r\n color=\"B\";\r\n System.out.println(color);\r\n }else{ \r\n color=\"W\";\r\n } \r\n }", "public void onNightModeChanged(int i) {\n }", "public void onCreate() {\n super.onCreate();\n Application.context = getApplicationContext();\n\n AppCompatDelegate.setDefaultNightMode(AppSettingsStorage.getInstance().get(AppSettingsStorage.Setting.DARK_MODE, false) ? AppCompatDelegate.MODE_NIGHT_YES : AppCompatDelegate.MODE_NIGHT_NO);\n }", "@DISPID(1611006088) //= 0x60060088. The runtime will prefer the VTID if present\n @VTID(163)\n boolean trueColorMode();", "public void loadTheme() {\n runOnUiThread(new Runnable() {\n public void run() {\n try {\n //inspired by:https://stackoverflow.com/questions/15025369/changing-the-theme-of-an-android-app-using-preferences\n SharedPreferences data = getSharedPreferences(\"Themes\", 0);\n dataReturned = data.getString(\"LightDark\", \"ThemeDark\");\n if (dataReturned.equals(\"ThemeDark\"))\n setTheme(R.style.ThemeDark);\n else\n setTheme(R.style.ThemeLight);\n } catch (final Exception ex) {\n // Log.i(\"sortViewEntries\", \"Exception in thread\");\n }\n }\n });\n }", "public static boolean isDeviceDarkThemeEnabled(final Context context) {\n final int deviceTheme = context.getResources().getConfiguration().uiMode\n & Configuration.UI_MODE_NIGHT_MASK;\n switch (deviceTheme) {\n case Configuration.UI_MODE_NIGHT_YES:\n return true;\n case Configuration.UI_MODE_NIGHT_UNDEFINED:\n case Configuration.UI_MODE_NIGHT_NO:\n default:\n return false;\n }\n }", "void onDisplayBrightnessChange(int brightness);", "@Override\n public void stateChanged(ChangeEvent e) {\n try {\n if (e.getSource() == settingsDialogView.getThemeToggleButton()) {\n if (settingsDialogView.getThemeToggleButton().isSelected()) {\n settingsDialogView.getThemeToggleButton().setText(\"On\");\n settingsDialogView.getThemeToggleButton().setIcon(settingsDialogView.nightModeONIcon);\n try {\n UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.motif.MotifLookAndFeel\");\n SwingUtilities.updateComponentTreeUI(ActualApp.getAppWindow());\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException\n | UnsupportedLookAndFeelException excs) {\n throw new ThemeChangeException(0);\n }\n } else {\n settingsDialogView.getThemeToggleButton().setText(\"Off\");\n settingsDialogView.getThemeToggleButton().setIcon(settingsDialogView.nightModeOFFIcon);\n try {\n UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());\n SwingUtilities.updateComponentTreeUI(ActualApp.getAppWindow());\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException\n | UnsupportedLookAndFeelException excs) {\n throw new ThemeChangeException(0);\n }\n }\n }\n } catch (ThemeChangeException tce) {\n JPanel exceptionPanel = tce.getExceptionPanel();\n JOptionPane.showMessageDialog(new JFrame(), exceptionPanel, \"Error: \" + tce.getClass(),\n JOptionPane.ERROR_MESSAGE);\n }\n }", "public void setColor()\n {\n String PREF_FILE_NAME = \"PrefFile\";\n final SharedPreferences preferences = getSharedPreferences(PREF_FILE_NAME, MODE_PRIVATE);\n\n if(preferences.getBoolean(\"ColorBlind\", false)) {\n View box1 = this.findViewById(R.id.username);\n box1.setBackgroundColor(0xffffffff);\n\n View box2 = this.findViewById(R.id.password);\n box2.setBackgroundColor(0xffffffff);\n\n View box3 = this.findViewById(R.id.Login);\n box3.setBackgroundColor(0xffffffff);\n\n }\n }", "public void changeToStandard(){\n drawAttributeManager.toggleStandardView();\n getContentPane().setBackground(DrawAttribute.whiteblue);\n canvas.repaint();\n }", "@Override\n public void onClick(View v) {\n ButtonRectangle btn = (ButtonRectangle) v;\n SharedPreferences sp = getUserPref();\n String currentColor = sp.getString(BaseActivity.SF_THEME_COLOR, \"Teal\");\n if (currentColor.equals(btn.getText()))\n return;\n SharedPreferences.Editor editor = sp.edit();\n editor.putString(BaseActivity.SF_THEME_COLOR, btn.getText());\n editor.apply();\n getActivity().finish();\n startActivity(getActivity().getIntent());\n// android.os.Process.killProcess(android.os.Process.myPid());\n }", "private void applyCurrentTheme() {\n TempestatibusApplicationSettings tempestatibusApplicationSettings = getTempestatibusApplicationSettings();\n tempestatibusApplicationSettings.createSharedPreferenceContext(this);\n String theme = tempestatibusApplicationSettings.getAppThemePreference();\n mRefreshImageView.setBackgroundResource(TempestatibusApplicationSettings.getRefreshId());\n mDegreeImageView.setBackgroundResource(TempestatibusApplicationSettings.getLargeDegreeId(theme));\n mDewValueSmallDegree.setBackgroundResource(TempestatibusApplicationSettings.getSmallDegreeId(theme));\n mApparentTemperatureValueSmallDegree.setBackgroundResource(TempestatibusApplicationSettings.getSmallDegreeId(theme));\n mSettingsImageView.setBackgroundResource(TempestatibusApplicationSettings.getSettingsIconId());\n mHourglassIconImageView.setBackgroundResource(TempestatibusApplicationSettings.getHourglassId());\n mSaveIconImageView.setBackgroundResource(TempestatibusApplicationSettings.getSaveIconId());\n mSearchIconImageView.setBackgroundResource(TempestatibusApplicationSettings.getSearchIconId());\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v =inflater.inflate(R.layout.configuration_fragment, container, false);\n\n\n Switch interruptor=(Switch)v.findViewById(R.id.cinemaModeConfiguration);\n\n Switch interruptor2=(Switch)v.findViewById(R.id.lightModeConfiguration);\n\n SharedPreferences datos=((MainActivity) getActivity()).getDatos();\n boolean preferencias=datos.getBoolean(\"CinemaMode\",false);\n interruptor.setChecked(preferencias);\n\n\n\n boolean preferenciasLuz = datos.getBoolean(\"LightMode\",false);\n interruptor2.setChecked(preferenciasLuz);\n\n\n return v;\n }", "public void lightsOff() {\n PHBridge bridge = PHHueSDK.getInstance().getSelectedBridge();\n PHLightState lightState = new PHLightState();\n lightState.setOn(false);\n bridge.setLightStateForDefaultGroup(lightState);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n //changing the theme\n if (AppCompatDelegate.getDefaultNightMode() == AppCompatDelegate.MODE_NIGHT_YES) {\n setTheme(R.style.DarkTheme);\n } else {\n setTheme(R.style.AppTheme);\n }\n //code for changing theme ends\n\n //Layout set here from the xml files\n setContentView(R.layout.activity_admin_change);\n }", "private void setLightColor(final Light theLight) {\n switch (theLight) {\n case GREEN:\n myLightColor = Color.GREEN.darker();\n break;\n\n case RED:\n myLightColor = Color.RED.darker();\n break;\n\n case YELLOW:\n myLightColor = Color.YELLOW;\n break;\n\n default:\n }\n }", "private void toggleLight(){\n\t\tmyGLView.queueEvent(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tmRenderer.toggleLight();\n\t\t\t}\n\t\t});\n\t\t\n\t}", "public void toggle() {\n if (currentPlayer.equals(\"red\")) {\n currentColor = BLUE_COLOUR;\n currentPlayer = \"blue\";\n } else {\n currentColor = RED_COLOUR;\n currentPlayer = \"red\";\n }\n //change color of grid\n changeColor();\n }", "public void setStaticLight(boolean staticLight);", "public static Color getTextColorDark() {\n return TEXTCOLOR_DARK;\n }", "@DISPID(1611006088) //= 0x60060088. The runtime will prefer the VTID if present\n @VTID(164)\n void trueColorMode(\n boolean oActivated);", "private void changeColorWheels() {\n if (rgbRdo.getSelection() == true) {\n upperColorWheel.showRgbSliders(true);\n lowerColorWheel.showRgbSliders(true);\n } else {\n upperColorWheel.showRgbSliders(false);\n lowerColorWheel.showRgbSliders(false);\n }\n }", "@Override\n public void onClick(View v) {\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_SECONDARY);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }", "private static void turnFlashlightOff() {\n Parameters p = cam.getParameters();\n p.setFlashMode(Parameters.FLASH_MODE_OFF);\n cam.setParameters(p);\n }", "void changeMode(int mode);", "private void enableMoonlightMode() {\n stopService(new Intent(this, SunriseService.class));\n\n // Kill the previous moonlight service (in case it's running)\n stopService(new Intent(this, MoonlightService.class));\n\n // (Re)start the moonlight service\n startService(new Intent(this, MoonlightService.class));\n }", "public void checkTheme()\n {\n ImageView miniLogo = (ImageView) findViewById(R.id.mini_logo);\n LinearLayout colorBar = (LinearLayout) findViewById(R.id.color_bar);\n\n if(!ApplicationData.theme.equals(\"default\"))\n {\n switch(ApplicationData.theme)\n {\n case \"Banana\":\n colorBar.setBackgroundResource(R.color.color_banana);\n miniLogo.setImageResource(R.drawable.banner_logo_banana);\n //bigImg.setImageResource(R.drawable.banner_logo_banana);\n ApplicationData.theme = \"Banana\";\n //setTheme(R.style.AppThemeBanana);\n break;\n case \"Peach\":\n colorBar.setBackgroundResource(R.color.color_peach);\n miniLogo.setImageResource(R.drawable.banner_logo_peach);\n //bigImg.setImageResource(R.drawable.banner_logo_peach);\n ApplicationData.theme = \"Peach\";\n break;\n case \"Strawberry\":\n colorBar.setBackgroundResource(R.color.color_strawberry);\n miniLogo.setImageResource(R.drawable.banner_logo_strawberry);\n //bigImg.setImageResource(R.drawable.banner_logo_strawberry);\n ApplicationData.theme = \"Strawberry\";\n break;\n case \"Mellon\":\n colorBar.setBackgroundResource(R.color.color_mellon);\n miniLogo.setImageResource(R.drawable.banner_logo_mellon);\n //bigImg.setImageResource(R.drawable.banner_logo_mellon);\n ApplicationData.theme = \"Mellon\";\n break;\n default:\n colorBar.setBackgroundResource(R.color.color_default);\n miniLogo.setImageResource(R.drawable.banner_logo);\n //bigImg.setImageResource(R.drawable.banner_logo);\n ApplicationData.theme = \"Default\";\n break;\n }\n }\n }", "public void onThemeChanged()\n\t{\n\t}", "public boolean getWeekendDarker() {\n return weekendDarker;\n }", "private void setColorTheme(ViewHolder holder) {\n // Get the color theme string from SharedPreferences and check for the value associated with the key\n String colorTheme = sharedPrefs.getString(\n mContext.getString(R.string.settings_color_key),\n mContext.getString(R.string.settings_color_default));\n\n // Change the background color of titleTextView by using the user's stored preferences\n if (colorTheme.equals(mContext.getString(R.string.settings_color_white_value))) {\n holder.titleTextView.setBackgroundResource(R.color.white);\n holder.titleTextView.setTextColor(Color.BLACK);\n }else if (colorTheme.equals(mContext.getString(R.string.settings_color_sky_blue_value))) {\n holder.titleTextView.setBackgroundResource(R.color.nav_bar_start);\n holder.titleTextView.setTextColor(Color.WHITE);\n } else if (colorTheme.equals(mContext.getString(R.string.settings_color_dark_blue_value))) {\n holder.titleTextView.setBackgroundResource(R.color.color_app_bar_text);\n holder.titleTextView.setTextColor(Color.WHITE);\n } else if (colorTheme.equals(mContext.getString(R.string.settings_color_violet_value))) {\n holder.titleTextView.setBackgroundResource(R.color.violet);\n holder.titleTextView.setTextColor(Color.WHITE);\n } else if (colorTheme.equals(mContext.getString(R.string.settings_color_light_green_value))) {\n holder.titleTextView.setBackgroundResource(R.color.light_green);\n holder.titleTextView.setTextColor(Color.WHITE);\n } else if (colorTheme.equals(mContext.getString(R.string.settings_color_green_value))) {\n holder.titleTextView.setBackgroundResource(R.color.color_section);\n holder.titleTextView.setTextColor(Color.WHITE);\n }\n }", "int getHighLightColor();", "@Override\n public void setUilButtonDarkColor(java.lang.Object uilButtonDarkColor) throws G2AccessException {\n setAttributeValue (UIL_BUTTON_DARK_COLOR_, uilButtonDarkColor);\n }", "public Color darker()\n {\n return color.darker();\n }", "public static boolean isColorDark(int color) {\n double darkness = 1 - (0.299 * Color.red(color) + 0.587 * Color.green(color) + 0.114 * Color.blue(color)) / 255;\n return !(darkness < 0.5);\n }", "private void changeTheme(int type){\n frame.setBackground(Color.DARK_GRAY);\n mainPanel.setBackground(Color.DARK_GRAY);\n ((RequestPanel) mainPanel.getRightComponent()).changeTheme(type);\n ((RequestListPanel) mainPanel.getLeftComponent()).changeTheme(type);\n }", "public int switchMode() {\r\n int mode = GameInfo.getInstance().switchMode();\r\n MazeMap.getInstance().updateMaze(mode);\r\n return mode;\r\n }", "public void flash(){\n phoneCam.setFlashlightEnabled(!flash);\n flash = !flash;\n }", "protected void setTranslucentStatus(boolean on) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n Window win = getWindow();\n WindowManager.LayoutParams winParams = win.getAttributes();\n final int bits = WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS;\n if (on) {\n winParams.flags |= bits;\n } else {\n winParams.flags &= ~bits;\n }\n win.setAttributes(winParams);\n }\n }", "void setShutterLEDState(boolean on);", "public void clickNightHandler(View v) {\n SharedPreferences.Editor editor = preferences.edit();\n editor.putBoolean(night_key, !this.isNightModeEnabled);\n editor.apply();\n\n this.isNightModeEnabled = !this.isNightModeEnabled;\n\n Intent i = getBaseContext().getPackageManager()\n .getLaunchIntentForPackage( getBaseContext().getPackageName() );\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n\n this.recreate();\n }", "public void setBlackAndWhite()\n {\n if(eyeL != null) // only if it's painted already...\n {\n eyeL.changeColor(\"black\");\n eyeR.changeColor(\"black\");\n nose.changeColor(\"black\");\n mouthM.changeColor(\"black\");\n mouthL.changeColor(\"black\");\n mouthR.changeColor(\"black\");\n }\n }", "@Override\n\tpublic void off() {\n\t\tSystem.out.println(\"turn off the \"+name+\" Light\");\n\t}", "@Override\n\t\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) \n\t\t\t\t{\n\t\t\t\t\tSystem.putInt(cResolver, System.SCREEN_BRIGHTNESS, brightness);\n\t\t\t\t\t\n\t\t\t\t\t//preview brightness changes at this window\n\t\t\t\t\t//get the current window attributes\n\t\t\t\t\tLayoutParams layoutpars = window.getAttributes();\n\t\t\t\t\t//set the brightness of this window\n\t\t\t\t\tlayoutpars.screenBrightness = brightness / (float)255;\n\t\t\t\t\t//apply attribute changes to this window\n\t\t\t\t\twindow.setAttributes(layoutpars);\n\t\t\t\t}", "private void updateDemoModeOn() {\n boolean z = false;\n if (Settings.Global.getInt(getContext().getContentResolver(), \"sysui_tuner_demo_on\", 0) != 0) {\n z = true;\n }\n this.mOnSwitch.setChecked(z);\n }", "public static void lightOn(Window window) {\n\t\tWindowManager.LayoutParams lp = window.getAttributes();\r\n\t\tlp.alpha = 1.0f;\r\n\t\twindow.setAttributes(lp);\r\n\t}", "private void drawModesHub(Renderer r) {\n r.drawText(\"F1: SAT\", 8, 10, (mode == 0 ? HexColors.RED : HexColors.YELLOW));\n r.drawText(\"F2: SAT/STATIC\", 8, 40, (mode == 1 ? HexColors.RED : HexColors.YELLOW));\n r.drawText(\"F3: DIAG\", 8, 70, (mode == 2 ? HexColors.RED : HexColors.YELLOW));\n r.drawText(\"F4: DIAG/STATIC\", 8, 100, (mode == 3 ? HexColors.RED : HexColors.YELLOW));\n }", "public void changeState(){\n\t\t//red - Green\n\t\tif (lights[0].isOn()){\n\t\t\tlights[0].turnOff();\n\t\t\tlights[2].turnOn();\n\t\t}\n\t\t\n\t\t//Green -yellow\n\t\telse if(lights[2].isOn()){\n\t\t\tlights[2].turnOff();\n\t\t\tlights[1].turnOn();\n\t\t}\n\t\t//yellow to red\n\t\telse if (lights[1].isOn()){\n\t\t\tlights[1].turnOff();\n\t\t\tlights[0].turnOn();\n\t\t}\n\t\t\n\t}", "@Override\n public void onClick(View v) {\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_PRIMARY);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }", "public static void addDarkModule(int[][] matrix) {\n\t\tmatrix[8][matrix.length - 8] = B;\n\t}", "public void changeTurn(){\n\t\tif (this.turn ==\"blue\")\n\t\t{\n\t\t\tthis.turn = \"red\";\n\t\t\t\n\t\t}else{\n\t\t\tthis.turn =\"blue\";\n\t\t}\n\t}", "private void automaticModeChecks(){\n // turn on lights if underground\n if (this.isUnderground()){ this.selectedTrain.setLights(1);}\n // set heat\n if (this.selectedTrain.getTemp() <= 40.0){this.selectedTrain.setThermostat(60.0);}\n else if (this.selectedTrain.getTemp() >= 80){ this.selectedTrain.setThermostat(50.0);}\n }", "private void setUpConfetti() {\n Timber.d(\"setUpConfetti\");\n final Resources res = getResources();\n goldDark = res.getColor(R.color.gold_dark);\n goldMed = res.getColor(R.color.gold_med);\n gold = res.getColor(R.color.gold);\n goldLight = res.getColor(R.color.gold_light);\n colors = new int[]{goldDark, goldMed, gold, goldLight};\n }", "public void changeTurn() {\n\t\t\n\t\tif(currentTurn == white) {\n\t\t\t\n\t\t\tcurrentTurn = black;\n\t\t}\n\t\telse if(currentTurn == black){\n\t\t\t\n\t\t\tcurrentTurn = white;\n\t\t}\n\t}", "public void setLight1(){\n }", "public static boolean isLightThemeSelected(final Context context) {\n final String selectedThemeKey = getSelectedThemeKey(context);\n final Resources res = context.getResources();\n\n return selectedThemeKey.equals(res.getString(R.string.light_theme_key))\n || (selectedThemeKey.equals(res.getString(R.string.auto_device_theme_key))\n && !isDeviceDarkThemeEnabled(context));\n }", "protected void setLightBoxBackground() { Console.setBackground(Console.BLUE); }", "@Override\n public void onClick(View v) {\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_ACCENT);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }", "public ThemeManager(Context c) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(c);\n String guild = sp.getString(\"prefColorScheme\", \"Default\");\n if (guild.equalsIgnoreCase(c.getResources().getString(R.string.selesnya))) {\n this.drawable_background = R.drawable.std_life_bkg_seles;\n this.lightColor = R.color.primary_light_seles;\n this.theme = R.style.AppThemeSeles;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.azorious))) {\n this.drawable_background = R.drawable.std_life_bkg_azorious;\n this.lightColor = R.color.primary_light_azorious;\n this.theme = R.style.AppThemeAzorious;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.dimir))) {\n this.drawable_background = R.drawable.std_life_bkg_dimir;\n this.lightColor = R.color.primary_light_dimir;\n this.theme = R.style.AppThemeDimir;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.rakdos))) {\n this.drawable_background = R.drawable.std_life_bkg_rakdos;\n this.lightColor = R.color.primary_light_rakdos;\n this.theme = R.style.AppThemeRakdos;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.gruul))) {\n this.drawable_background = R.drawable.std_life_bkg_gruul;\n this.lightColor = R.color.primary_light_gruul;\n this.theme = R.style.AppThemeGruul;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.orzhov))) {\n this.drawable_background = R.drawable.std_life_bkg_orzhov;\n this.lightColor = R.color.primary_light_orzhov;\n this.theme = R.style.AppThemeOrzhov;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.izzet))) {\n this.drawable_background = R.drawable.std_life_bkg_izzet;\n this.lightColor = R.color.primary_light_izzet;\n this.theme = R.style.AppThemeIzzet;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.golgari))) {\n this.drawable_background = R.drawable.std_life_bkg_golgari;\n this.lightColor = R.color.primary_light_golgari;\n this.theme = R.style.AppThemeGolgari;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.boros))) {\n this.drawable_background = R.drawable.std_life_bkg_boros;\n this.lightColor = R.color.primary_light_boros;\n this.theme = R.style.AppThemeBoros;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.simic))) {\n this.drawable_background = R.drawable.std_life_bkg_simic;\n this.lightColor = R.color.primary_light_simic;\n this.theme = R.style.AppThemeSimic;\n } else {\n this.drawable_background = R.drawable.std_life_bkg;\n this.lightColor = R.color.primary_light_seles;\n this.theme = R.style.AppTheme;\n }\n }", "public void turnOn( ) {\n\t\t\t\tSystem.out.println(\"Light is on \");\n\t\t}" ]
[ "0.7692606", "0.705686", "0.69676507", "0.6953098", "0.69529676", "0.68781734", "0.67893493", "0.6609676", "0.641844", "0.6414033", "0.63819474", "0.63672626", "0.63069093", "0.6295672", "0.6293418", "0.62778974", "0.6230282", "0.6168335", "0.61382705", "0.6123293", "0.61031747", "0.60945517", "0.60793686", "0.60699105", "0.5999679", "0.5991327", "0.59805626", "0.5941921", "0.59295255", "0.5899314", "0.58766407", "0.586562", "0.5791312", "0.5766453", "0.5762029", "0.5759062", "0.57428235", "0.5718947", "0.57058465", "0.5696993", "0.569635", "0.56937754", "0.56893593", "0.5669333", "0.56509775", "0.56365085", "0.56140405", "0.5605297", "0.56003183", "0.55571157", "0.5529422", "0.5524089", "0.55090433", "0.55020237", "0.5496207", "0.5489662", "0.5454599", "0.54404527", "0.54381394", "0.54318935", "0.54313564", "0.53987163", "0.5396479", "0.5394854", "0.53926396", "0.53901803", "0.538233", "0.5373336", "0.53708494", "0.5361926", "0.5347374", "0.53405607", "0.534011", "0.5334226", "0.53329355", "0.53276783", "0.53213555", "0.5320407", "0.5319784", "0.5315153", "0.53116995", "0.5302575", "0.5298013", "0.5290322", "0.5289144", "0.5288814", "0.52871156", "0.5279695", "0.52756834", "0.5266929", "0.5263409", "0.5255898", "0.5255573", "0.5253333", "0.5249937", "0.5245495", "0.5244841", "0.5243298", "0.52408814", "0.52379346" ]
0.74506474
1
identify there is a player details in the database that matches with the user entered data
public void getPlayerByUsernamePassword(User user) { String r = "SELECT pusername , ppwd from players where pusername = '"+ user.getUsername()+"' "; try { pst=con.prepareStatement(r); pst.executeQuery(); //redirect to the particular page if (r!=null) { //Create next interface object(obj2) // NextInterfaceName nextInterfaceNameobj = new NextInterfaceName(); // nextInterfaceNameobj2.setVisible(true); // this.dispose(); } else { //Create current interface object(obj1) // SignInInterfaceName signInInterfaceNameobj = new SignInInterfaceName(); // signInInterfaceNameobj.setVisible(true); // this.dispose(); } } catch (SQLException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean existsPlayerInGame(String username, int game_id) throws SQLException;", "private void showMatch() {\n System.out.println(\"Player 1\");\n game.getOne().getField().showField();\n System.out.println(\"Player 2\");\n game.getTwo().getField().showField();\n }", "boolean hasPlayer(String player);", "boolean hasPlayerId();", "private List<String> validatePlayer(String playerName, CommandSender sender) {\n\n\t\tList<Player> players = new ArrayList<Player>();\n\t\tList<String> match = new ArrayList<String>();\n\n\t\tplayers = this.getServer().matchPlayer(playerName);\n\t\tif (players.isEmpty()) {\n\t\t\t// Check for an offline player (exact match).\n\t\t\tfor (OfflinePlayer player : Bukkit.getOfflinePlayers()) {\n\t\t\t\tif (player.getName().equals(playerName)) {\n\t\t\t\t\tmatch.add(player.getUniqueId().toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\tif (Arrays.asList(this.getServer().getOfflinePlayers()).contains(Bukkit.getOfflinePlayer(playerName))) {\n\t\t\t\tmatch.add(Bukkit.getOfflinePlayer(playerName).getName()); //.getUniqueId().toString());\n\t\t\t\t//match.add(Bukkit.getOfflinePlayer(Bukkit.getPlayer(playerName).getUniqueId()).getName()); //.getUniqueId().toString());\n\t\t\t} else {\n\t\t\t\t// look for partial matches\n\t\t\t\tfor (OfflinePlayer offline : this.getServer().getOfflinePlayers()) {\n\t\t\t\t\tif (offline.getName().toLowerCase().startsWith(playerName.toLowerCase()))\n\t\t\t\t\t\tmatch.add(offline.getName()); //.getUniqueId().toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\t*/\n\n\t\t} else {\n\t\t\tfor (Player player : players) {\n\t\t\t\tmatch.add(player.getUniqueId().toString());\n\t\t\t}\n\t\t}\n\n\t\tif (match.isEmpty()) {\n\t\t\tsender.sendMessage(ChatColor.RED + \"Player not found!\");\n\t\t\treturn null;\n\t\t} else if (match.size() > 1) {\n\t\t\tsender.sendMessage(ChatColor.RED + \"Too many matches found! (\" + match.toString() + \")\");\n\t\t\treturn null;\n\t\t}\n\n\t\treturn match;\n\n\t}", "public boolean evaluateDataClientHeavy() {\n // reset labels\n resetLabels();\n // get IDs of players\n // create one map with playerName and playerID\n // create one map with playerID and the count how often this player participates in this game\n List<Map<String, Object>> returnList;\n Map<String, Integer> mapNameToID = new HashMap<>();\n HashMap<Integer, Integer> mapIDToCount = new HashMap<>();\n if (!dbAccess.openConn()) {\n showAlertDBError();\n return false;\n }\n for (String playerName : playerNameList) {\n returnList = dbAccess.selectSQL(\"SELECT players.id FROM players WHERE players.name = '\" + playerName + \"';\");\n if (returnList == null || returnList.isEmpty()) {\n showAlertDBError();\n return false;\n } else {\n int playerID = (int) returnList.get(0).get(\"id\");\n if (!mapNameToID.containsKey(playerName)) {\n mapNameToID.put(playerName, playerID);\n }\n if (!mapIDToCount.containsKey(playerID)) {\n mapIDToCount.put(playerID, 1);\n } else {\n mapIDToCount.put(playerID, mapIDToCount.get(playerID) + 1);\n }\n }\n }\n\n // get all games and all participants from DB\n List<Map<String, Object>> dbGames = dbAccess.selectSQL(\"SELECT * FROM games;\");\n List<Map<String, Object>> dbParticipants = dbAccess.selectSQL(\"SELECT * FROM participants;\");\n if (dbGames == null || dbParticipants == null) {\n showAlertDBError();\n return false;\n }\n dbAccess.closeConn();\n\n // create winners map\n // holds gameID and ID of winning participant, if game has no winner participantID is -1\n HashMap<Integer, Integer> mapGameIDToWinnerID = new HashMap<>();\n\n // iterate all games\n for (Map<String, Object> rowGames : dbGames) {\n boolean dumpGame = false;\n int gameId = (int) rowGames.get(\"id\");\n String endTime = null;\n if (rowGames.get(\"end_time\") != null)\n endTime = rowGames.get(\"end_time\").toString();\n boolean isAIOnly = (boolean) rowGames.get(\"ai_only\");\n // get deepCopy of mapIDToCount\n Map<Integer, Integer> idToCountCopy = copyHashMapIntInt(mapIDToCount);\n // check if game was aborted preemptively\n if (endTime == null)\n continue;\n int winner = -1;\n\n //iterate all participants\n for (Map<String, Object> rowParticipants : dbParticipants) {\n // check if game.id matches participants.game\n if (gameId == (int) rowParticipants.get(\"game\")) {\n // get participants.id\n int playerID = (int) rowParticipants.get(\"player\");\n // check if participant is in the map of participants, if not skip to next game (break)\n if (idToCountCopy.containsKey(playerID)) {\n // check if the count in this map is higher than 0, if not skip to next game (break)\n if (idToCountCopy.get(playerID) > 0) {\n // lower value of count in map of participants for this participant\n idToCountCopy.put(playerID, idToCountCopy.get(playerID) - 1);\n // if this participant is winner - store it temporarily\n if (rowParticipants.get(\"winner\") != null) {\n winner = playerID;\n }\n } else {\n dumpGame = true;\n break;\n }\n } else {\n dumpGame = true;\n break;\n }\n }\n }\n // check if every value in idToCountCopy is 0\n // if yes -> save game and winner in winners map\n // if not -> dump game\n for (Map.Entry<Integer, Integer> entry : idToCountCopy.entrySet()) {\n if (entry.getValue() != 0) {\n dumpGame = true;\n }\n }\n if (dumpGame == false) {\n mapGameIDToWinnerID.put(gameId, winner);\n }\n }\n\n // check if any games with this constellation of players was played\n if (mapGameIDToWinnerID.isEmpty()) {\n resetPieChart();\n resetLabels();\n showAlertSelectionFail(\"Selection error\", \"No games with this constellation were found.\");\n return false;\n }\n\n // calculate average turns until winner is determined\n if (!dbAccess.openConn()) {\n showAlertDBError();\n return false;\n }\n Integer turnSum = 0;\n Integer gameCounter = 0;\n int averageTurns = 0;\n for (Map.Entry<Integer, Integer> entry : mapGameIDToWinnerID.entrySet()) {\n // check if game has winner\n if (entry.getValue() != -1) {\n // get number of turns for this game\n List<Map<String, Object>> resultList = dbAccess.selectSQL(\"SELECT MAX(turn) FROM moves WHERE game = \" + entry.getKey() + \";\");\n if (resultList == null || resultList.isEmpty()) {\n showAlertDBError();\n return false;\n } else {\n turnSum += (int) resultList.get(0).get(\"MAX(turn)\");\n gameCounter++;\n }\n }\n }\n\n // calculate average turns\n String strAverageTurns = \"\";\n if (gameCounter > 0) {\n averageTurns = Math.round(turnSum / gameCounter);\n }\n strAverageTurns = String.valueOf(averageTurns);\n dbAccess.closeConn();\n\n // now process mapGameIDToWinnerID to pieChart and labels\n Map<String, Integer> mapNameToWins = new HashMap<>();\n // iterate over GameID-WinnerID map and count wins for each player\n int endlessGames = 0;\n for (Map.Entry<Integer, Integer> entryWins : mapGameIDToWinnerID.entrySet()) {\n if (entryWins.getValue() == -1)\n endlessGames++;\n for (Map.Entry<String, Integer> entryName : mapNameToID.entrySet()) {\n if (entryName.getValue() == entryWins.getValue()) {\n if (!mapNameToWins.containsKey(entryName.getKey())) {\n mapNameToWins.put(entryName.getKey(), 1);\n } else {\n mapNameToWins.put(entryName.getKey(), mapNameToWins.get(entryName.getKey()) + 1);\n }\n }\n }\n }\n // add players without wins to the map\n for (Map.Entry<String, Integer> entry : mapNameToID.entrySet()) {\n if (!mapNameToWins.containsKey(entry.getKey()))\n mapNameToWins.put(entry.getKey(), 0);\n }\n\n // fill labels with numbers\n lblTotalGames.setText(String.valueOf(mapGameIDToWinnerID.size()));\n lblGamesWithoutWinner.setText(String.valueOf(endlessGames));\n if (averageTurns == 0) {\n lblAverageTurns.setText(\"Not available\");\n } else {\n lblAverageTurns.setText(strAverageTurns);\n }\n int labelCounter = 1;\n for (Map.Entry<String, Integer> entry : mapNameToWins.entrySet()) {\n vBoxDesc.getChildren().add(labelCounter, new Label(entry.getKey() + \":\"));\n vBoxNumbers.getChildren().add(labelCounter, new Label(String.valueOf(entry.getValue()) + \" wins\"));\n }\n\n // fill pieChart\n pieChartData = FXCollections.observableArrayList();\n for (Map.Entry<String, Integer> entry : mapNameToWins.entrySet()) {\n pieChartData.add(new PieChart.Data(entry.getKey(), entry.getValue()));\n }\n if (endlessGames > 0) {\n pieChartData.add(new PieChart.Data(\"No winner\", endlessGames));\n }\n chart.setData(pieChartData);\n chart.setTitle(\"Winners by percentage\");\n\n lblCaption.setTextFill(Color.web(\"#404040\", 1.0));\n lblCaption.setStyle(\"-fx-font: 24 arial;\");\n\n // set percentages\n for (PieChart.Data data : chart.getData()) {\n data.getNode().addEventHandler(MouseEvent.MOUSE_PRESSED,\n new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent e) {\n lblCaption.setTranslateX(e.getSceneX());\n lblCaption.setTranslateY(e.getSceneY());\n double percentage = (data.getPieValue() * 100) / Integer.valueOf(mapGameIDToWinnerID.size()).doubleValue();\n String strPercentage = formatDec(percentage);\n lblCaption.setText(String.valueOf(strPercentage + \"%\"));\n }\n });\n }\n // add pieChart and caption\n if (!diagramBox.getChildren().contains(chart))\n diagramBox.getChildren().add(chart);\n if (!root.getChildren().contains(lblCaption))\n root.getChildren().add(lblCaption);\n return true;\n }", "public boolean activeFor(String player);", "private void btn_LoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_LoginActionPerformed\n // Connect to database and verify login credentials\n try{\n String valid = \"\";\n // Connect to the database\n DBConnect con = new DBConnect();\n // SQL query statement\n ResultSet rs = con.getStatement().executeQuery(\"SELECT [PlayerId]\" +\n \", [Username], [Password] FROM LoginInfo\");\n\n // Validate the username and password\n while(rs.next()){\n /* If the username and password are incorrect then skip through\n the loop */\n if(!rs.getString(2).equals(txt_userName.getText()) ||\n !Arrays.equals(rs.getString(3).toCharArray(),\n password_password.getPassword())){\n continue;\n }\n // If username and password are correct then log in\n playerId = Integer.parseInt(rs.getString(1));\n valid = \"Login Successful\";\n\n // Create and display Main Form\n new frm_Main(playerId).setVisible(true);\n\n // Close database connection and dispose of this form\n con.getConnection().close();\n this.dispose();\n }\n // If username and password are not valid then print invalid\n if(valid.equals(\"\")){\n JOptionPane.showMessageDialog(null, \"Incorrect Username or Password!!\");\n txt_userName.setText(\"\");\n password_password.setText(\"\");\n txt_userName.requestFocus();\n }\n }catch(Exception ex){ // Print error is there is a problem with database\n System.out.println(\"Error: \" + ex);\n }\n }", "public static void checkResult() {\n\t\tint sum = PlayerBean.PLAYERONE - PlayerBean.PLAYERTWO;\n\n\t\tif (sum == 1 || sum == -2) {\n\t\t\tScoreBean.addWin();\n\t\t\tresult = \"player one wins\";\n\t\t} else {\n\t\t\tScoreBean.addLoss();\n\t\t\tresult = \"player two wins\";\n\t\t}\n\t}", "public static void savePlayerNames() {\r\n\t\tMain.player1 = GameSetup.choiceBoxPlayer1.getSelectedItem();\r\n\t\tMain.player2 = GameSetup.choiceBoxPlayer2.getSelectedItem();\r\n\t\tMain.player3 = GameSetup.choiceBoxPlayer3.getSelectedItem();\r\n\t\t\r\n\t\t//Don't show fourth player if playing 3 handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tMain.player4 = GameSetup.choiceBoxPlayer4.getSelectedItem();\r\n\t\t}\r\n\t}", "public abstract boolean existsGame2(String username) throws SQLException;", "public int checkPlayerInPlayers(String username) throws IOException{\r\n\t\tScanner userFinder = new Scanner(new BufferedReader(new FileReader(\"players.txt\")));\r\n\t\tint numberOfPlayers = userFinder.nextInt(); // read in number of players (first line in file);\r\n\t\tint playerId = -1; // should return -1 if numberOfPlayers is 0\r\n\t\tString playerName;\r\n\t\tboolean found = false;\r\n\t\tint iteration = 0;\r\n\t\t\r\n\t\twhile((iteration < numberOfPlayers) && (!found)) {\r\n\t\t\tplayerId = userFinder.nextInt();\r\n\t\t\tplayerName = userFinder.next();\r\n\t\t\tif(playerName.equals(username) == true) {\r\n\t\t\t\tfound = true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\titeration++;\r\n\t\t\t\tplayerId = -1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tuserFinder.close();\r\n\t\treturn playerId;\r\n\t}", "boolean hasTargetPlayerId();", "private boolean playerDetection() {\n\t\tAxisAlignedBB axisalignedbb = new AxisAlignedBB(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).grow(DETECTION_RANGE);\n\t\tList<EntityPlayer> list = world.getEntitiesWithinAABB(EntityPlayer.class, axisalignedbb);\n\n\t\treturn !list.isEmpty();\n\t}", "String checkTrueDetails() throws JSONException \n {\n String result;\n DataBaseConnection db= new DataBaseConnection();\n db.connectToDB();\n try {\n if (db.checkIfExist(db.checkUser,usernameJsn ))\n {\n String userPassword= db.findValue(usernameJsn, \"USERNAME\",\"PASSWORD\",\"PLAYERS\");\n if (userPassword.equals(passwordJsn))\n result= \"Success\";\n else\n result= \"WRONG PASSWORD\";\n }\n \n else result= \"user doesn't exist\";\n } catch (SQLException ex) {\n Logger.getLogger(LoginUser.class.getName()).log(Level.SEVERE, null, ex);\n result=\"error\";\n }\n db.closeDBConnection();\n return result;\n }", "private void getPlayerList(){\r\n\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n players = playerDAO.readListofPlayerNameswDefaultFirst();\r\n\r\n }", "public boolean showPlayer(){\n\t\t\n\t\tSystem.out.println(\"\\t\"+color+\"\\t \"+playermoney+\"\\t \\t\"+totalminions+\" \\t\"+totalbuildings+\" \\t\\t\"+personalityCard.cardName);\n\t\treturn true;\n\t}", "boolean hasTargetPlayerName();", "public Player retrieveOnePlayerFromDatabase(String dbMemberName, String dbChildName) {\n\n player = null;\n DatabaseReference dbReference = FirebaseDatabase.getInstance().getReference().child(dbMemberName).child(dbChildName);\n dbReference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n String name = dataSnapshot.child(\"name\").getValue().toString();\n String userName = dataSnapshot.child(\"userName\").getValue().toString();\n String password = dataSnapshot.child(\"password\").getValue().toString();\n String age = dataSnapshot.child(\"age\").getValue().toString();\n String phone = dataSnapshot.child(\"phone\").getValue().toString();\n String team = dataSnapshot.child(\"team\").getValue().toString();\n String location = dataSnapshot.child(\"location\").getValue().toString();\n String type = dataSnapshot.child(\"type\").getValue().toString();\n\n Log.d(\">>>>>\", \"[\" + name + \", \" + userName + \", \" + password + \", \" + age + \", \" + phone +\n \", \" + team + \", \" + location + \", \" + type + \"]\");\n player = new Player(name, userName, password, age, phone, team, location, type);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n return player;\n }", "public static boolean existPlayer(String name) throws SQLException, BaseDeDonnéesExcetion, ClassNotFoundException {\r\n Connection conn = null;\r\n String query = \"SELECT * FROM PokerPlayer2 WHERE name = ?\";\r\n try {\r\n conn = DriverManagerP.getConnection();\r\n PreparedStatement preparedStmt = conn.prepareStatement(query);\r\n preparedStmt.setString(1, name);\r\n ResultSet result = preparedStmt.executeQuery();\r\n if (result.next()) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n } catch (SQLException e) {\r\n throw new SQLException(\" impossible to find player \" + name + \" \" + e.getMessage());\r\n }\r\n\r\n }", "public boolean isWin_CommanderVimes(){\r\n // player got LordSelachii card\r\n Player playerHoldCard = null;\r\n for (Player player : discWorld.getPlayer_HASH().values()) {\r\n if (player.getPersonalityCardID() == 7) {\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }\r\n \r\n if(playerHoldCard != null){\r\n if(discWorld.getShuffled_PlayerCard().size() == 0){\r\n return true;\r\n }\r\n } \r\n \r\n return false;\r\n }", "private void getPlayers() {\r\n\t\tSystem.out.println(\"How Many Players: \");\r\n\t\tpnum = getNumber(1, 3);\r\n\r\n\t\tfor(int i=0; i < pnum; i++){\r\n\t\t\tSystem.out.println(\"What is player \" + (i + 1) + \"'s name? \");\r\n\t\t\tString name = sc.next();\r\n\t\t\tboolean dupe = true;\r\n\t\t\twhile(dupe){\r\n\t\t\t\tint samecounter = 0;\r\n\t\t\t\tfor(Player p : players){\r\n\t\t\t\t\tif(name.equals(p.getName())){\r\n\t\t\t\t\t\tsamecounter += 1;\r\n\t\t\t\t\t\tSystem.out.println(\"Name is the same as another players. Please choose another name: \");\r\n\t\t\t\t\t\tname = sc.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(samecounter == 0){\r\n\t\t\t\t\tdupe = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tplayers.add(new Player(name));\r\n\r\n\t\t}\r\n\t}", "public static void checkPlayer()\n\t{\n\t\ttry {\n\t\t\t\n\t\t\tscenarioResults = new String[127];\n\t\t\tArrayList<Integer> differences = new ArrayList<Integer>();\n\t\t\t//set scenarioResults to current result or player's bracket when not impossible\n\t\t\tfor(int i=0; i < 127; i++)\n\t\t\t{\n\t\t\t\tif(i < nextMatch){\n\t\t\t\t\tscenarioResults[i] = results[i];\n\t\t\t\t}else{\n\t\t\t\t\t//check if a pick has been disqualified by previous results. \n\t\t\t\t\t//If it is still possible, assume it happens, else add the match number to the list to iterate through.\n\t\t\t\t\tif(isValid(allPicks.get(checkIndex)[i],i)){\n\t\t\t\t\t\tscenarioResults[i] = allPicks.get(checkIndex)[i];\n\t\t\t\t\t}else{\n\t\t\t\t\t\tscenarioResults[i] = \"\";\n\t\t\t\t\t\tdifferences.add(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if there aren't any matches to check specifically (i.e. no picked winners that lost in previous rounds)\n\t\t\t//\tjust check to see if they win if everything breaks right.\n\t\t\tif(differences.size() == 0)\n\t\t\t{\n\t\t\t\tif(outputScenarioWinner(\"any combination+\"))\n\t\t\t\t{\n\t\t\t\t\twriter.write(\"\\t\"+entrants[checkIndex]+\" is ALIVE\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(entrants[checkIndex]);\n\t\t\t\t\twriter.write(\"\\t\"+entrants[checkIndex]+\" is DEAD\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//find later round matches to iterate through, where the player is already guaranteed to be wrong\n\t\t\t\twrongMatches = new int[differences.size()];\n\n\n\t\t\t\tfor(int i = 0; i < wrongMatches.length; i++)\n\t\t\t\t{\n\t\t\t\t\twrongMatches[i] = differences.get(i).intValue();\n\t\t\t\t}\n\n\t\t\t\t//recurse through results, checking from left-most first. When you reach the end of the list of matches, check scores\n\t\t\t\t//\tand print the winner for the given combination.\n\t\t\t\tboolean isAlive = checkPlayerHelper(0,\"\");\n\n\t\t\t\t//if player is the winner, end execution\n\t\t\t\tif(isAlive)\n\t\t\t\t{\n\t\t\t\t\twriter.write(\"\\t\"+entrants[checkIndex]+\" is ALIVE\");\n\t\t\t\t}else{\n\t\t\t\t\twriter.write(\"\\t\"+entrants[checkIndex]+\" is DEAD\");\n\t\t\t\t\tSystem.out.println(entrants[checkIndex]);\n\t\t\t\t}\n\t\t\t}\n\t\t\twriter.write(\"\\n\");\n\t\t\t\n\t\t}\t\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"problem with output\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public boolean hasPlayerInfo()\n {\n return this.getPlayerInfo() != null;\n }", "public void enterPlayerView(){\n\t\tplayerSeen=true;\r\n\t\tplayerMapped=true;\r\n\t}", "public PlayerMatches(String player1) {\n this.player1 = player1;\n }", "public static void addingNewPlayer(){\r\n\t\t//hard code each score includng a total.\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\t\tSystem.out.println(\"Enter the name of the Player?\");\r\n\t\t\t\t\tString name = scan.next();\r\n\t\t\t\t\t\r\n\t\t\t//establishing the connection\r\n\t\t\tstatement = connection.createStatement();\r\n\t\t\t\r\n\t\t\t//inserting the quries assign to the String variables\r\n\t\t\tString query=\"insert into \" + tableName + \" values ('\" + name +\"', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)\";\t\t\r\n\t\t\t\r\n\t\t\t//inserting the hard coded data into the table of the datbase\r\n\t\t\tstatement.execute(query);\r\n\t\t\t\r\n\t\t\t//closing the statement\r\n\t\t\tstatement.close();\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t System.out.println(\"SQL Exception occurs\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "private void isMatchInfoValid(String firstPlayerId, String secondPlayerId, String tennisMatchDate\r\n , String locationOfMatch, String score) throws TennisDatabaseException {\r\n if(firstPlayerId == null) {\r\n throw new TennisDatabaseException(\"firstPlayer Id is not a valid Id\");\r\n } else if (secondPlayerId == null) {\r\n throw new TennisDatabaseException(\"Second player Id is not a valid Id\");\r\n } else if (tennisMatchDate == null) {\r\n throw new TennisDatabaseException(\"tennisMatchDate is not a valid date\");\r\n } else if (locationOfMatch == null) {\r\n throw new TennisDatabaseException(\"locationOfMatch is not valid\");\r\n } else if (score == null) {\r\n throw new TennisDatabaseException(\"scores is not valid\");\r\n }\r\n }", "public Player isMatchWon(final String matchId) throws MatchNotFoundException {\r\n LOGGER.debug(\"--> isMatchWon: matchId=\" + matchId);\r\n Match match = getMatchById(matchId);\r\n Player player1 = match.getPlayer1();\r\n Player player2 = match.getPlayer2();\r\n int sunkBoatsP1 = countOfStatus(player1, FIELD_SUNK);\r\n int sunkBoatsP2 = countOfStatus(player2, FIELD_SUNK);\r\n if(sunkBoatsP1 == 30){\r\n return player2;\r\n }else if(sunkBoatsP2 == 30){\r\n return player1;\r\n } else {\r\n return null;\r\n }\r\n}", "public static void main(String[] args) throws IOException \r\n\t{\n\t\tString bowlerName = null;\r\n\t\tString wicket;\r\n\t\tString name;\r\n\t\tint wicketCount = 0;\r\n\t\tString ans,ans1;\r\n\t\tPlayer p=new Player(bowlerName, wicketCount);\r\n\t\tHashMap<String, Integer> hmap=new HashMap<String, Integer>();\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tdo\r\n\t\t{\r\n\t\tSystem.out.println(\"Enter the player name\");\r\n\t\tbowlerName=br.readLine();\r\n\t\tSystem.out.println(\"Enter wickets - seperated by \\\"|\\\" symbol.\");\r\n\t\twicket=br.readLine();\r\n\t\tString[] arr=wicket.split(\"\\\\|\");\r\n\t\twicketCount=arr.length;\r\n\t\tSystem.out.println(\"Do you want to add another player (yes/no)\");\r\n\t\tans=br.readLine();\r\n\t\thmap.put(bowlerName, wicketCount);\r\n\t\t}\r\n\t\twhile(ans.equalsIgnoreCase(\"yes\"));\r\n\t\tdo\r\n\t\t{\r\n\t\tSystem.out.println(\"Enter the player name to search\");\r\n\t\tname=br.readLine();\r\n\t\tif(hmap.containsKey(name))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Player name : \"+name);\r\n\t\t\tSystem.out.println(\"Wicket Count : \"+hmap.getOrDefault(name, wicketCount));\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"No player found with the name \"+name);\r\n\t\tSystem.out.println(\"Do you want to search another player (yes/no)\");\r\n\t\tans1=br.readLine();\r\n\t\t}\r\n\t\twhile(ans1.equalsIgnoreCase(\"yes\"));\r\n\t}", "public abstract boolean existsGameRequest(int game_id, String username1, String username2) throws SQLException;", "boolean playerExists() {\n return this.game.h != null;\n }", "public boolean evaluateDataDBHeavy() {\n // reset labels\n resetLabels();\n\n // create Map with player-name and count how often he participates\n Map<String, Integer> nameToPart = new HashMap<>();\n for (String playerName : playerNameList) {\n if (nameToPart.containsKey(playerName)) {\n nameToPart.put(playerName, nameToPart.get(playerName) + 1);\n } else {\n nameToPart.put(playerName, 1);\n }\n }\n\n // open conn\n if (!dbAccess.openConn()) {\n showAlertDBError();\n return false;\n }\n\n // get List with all games that finished (end_time != null) and have\n // the right number of each participant -> goes to totalGames\n String strSQL = \"SELECT max_turn.game, max_turn.turn, players.name, participants.winner FROM max_turn INNER JOIN participants ON max_turn.game = participants.game \" +\n \"INNER JOIN players ON participants.player = players.id \" +\n \"INNER JOIN games ON games.id = max_turn.game WHERE end_time IS NOT null GROUP BY max_turn.game \" +\n \"HAVING \";\n // add criteria of how often a player participates in a game in a loop (for every player)\n int counter = 0;\n for (Map.Entry<String, Integer> entry : nameToPart.entrySet()) {\n if (counter != 0)\n strSQL += \"AND \";\n strSQL += \"(SELECT COUNT(participants.player) FROM participants INNER JOIN players ON players.id = participants.player WHERE participants.game = max_turn.game AND players.name = '\";\n strSQL += entry.getKey() + \"') = \";\n strSQL += entry.getValue() + \" \";\n counter++;\n }\n // add criteria total amount of participants in game (numberOfParticipants)\n strSQL += \"AND (SELECT COUNT(participants.player) FROM participants INNER JOIN players ON players.id = participants.player \" +\n \"WHERE participants.game = max_turn.game) = \" + numberOfParticipants +\";\";\n // do select on db\n List<Map<String, Object>> resultList = dbAccess.selectSQL(strSQL);\n // check for dbError\n if(resultList == null){\n showAlertDBError();\n return false;\n }\n totalGames = resultList.size();\n\n\n // first new map to save wins - copy names from nameToPart\n nameToWins = new HashMap<>();\n for(Map.Entry<String, Integer> entry : nameToPart.entrySet()){\n nameToWins.put(entry.getKey(), 0);\n }\n\n // get list with winners and average turns - iterate through resultList of all games WITH A WINNER and the max turns\n strSQL = \"SELECT max_turn.game, max_turn.turn, players.name, participants.winner FROM max_turn INNER JOIN participants ON max_turn.game = participants.game \" +\n \"INNER JOIN players ON participants.player = players.id \" +\n \"INNER JOIN games ON games.id = max_turn.game WHERE end_time IS NOT null AND winner = 1 \" +\n \"HAVING \";\n // add criteria of how often a player participates in a game in a loop (for every player)\n counter = 0;\n for (Map.Entry<String, Integer> entry : nameToPart.entrySet()) {\n if (counter != 0)\n strSQL += \"AND \";\n strSQL += \"(SELECT COUNT(participants.player) FROM participants INNER JOIN players ON players.id = participants.player WHERE participants.game = max_turn.game AND players.name = '\";\n strSQL += entry.getKey() + \"') = \";\n strSQL += entry.getValue() + \" \";\n counter++;\n }\n // add criteria total amount of participants in game (numberOfParticipants)\n strSQL += \"AND (SELECT COUNT(participants.player) FROM participants INNER JOIN players ON players.id = participants.player \" +\n \"WHERE participants.game = max_turn.game) = \" + numberOfParticipants +\";\";\n // do select on db\n resultList = dbAccess.selectSQL(strSQL);\n // check for dbError\n if(resultList == null){\n showAlertDBError();\n return false;\n }\n\n // close conn\n dbAccess.closeConn();\n\n // iterate resultList with winners, write winners, sum up turns\n int turnSum = 0;\n for(Map<String, Object> row : resultList){\n String name = (String) row.get(\"name\");\n nameToWins.put(name, nameToWins.get(name) + 1);\n int maxTurn = (int) row.get(\"turn\");\n turnSum += maxTurn;\n }\n // until now nameToWins only holds winners - adding players without wins to the map with (with 0 as wins)\n for(Map.Entry<String, Integer> entry : nameToPart.entrySet()){\n if(!nameToWins.containsKey(entry.getKey()))\n nameToWins.put(entry.getKey(), 0);\n }\n\n // calculate games without winner\n int gamesWithWinner = resultList.size();\n gamesWithoutWinner = totalGames-gamesWithWinner;\n // calculate average turns\n if(gamesWithWinner > 0){\n averageTurns = Math.round(turnSum/gamesWithWinner);\n }else{\n averageTurns = 0;\n }\n // update gui and end\n updateGUI();\n return true;\n }", "@Test\n public void searchFindsPlayer() {\n Player jari = stats.search(\"Kurri\");\n assertEquals(jari.getName(), \"Kurri\");\n\n }", "public boolean playersFilled() throws SQLException {\n\t\ttry {\n\t\t\tif (getPlayers().last() == true) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn false;\n\t}", "boolean hasPlayerBagId();", "boolean hasPlayerBagId();", "boolean hasPlayerBagId();", "@Override\n\tpublic boolean checkUsername(String userName) {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tStatement userCheck = connectionService.getConnection().createStatement();\n\t\t\t//userCheck.executeQuery(\"SELECT name FROM players WHERE name='\" + userName + \"';\");\n\t\t\t\n\t\t\tResultSet rs = userCheck.executeQuery(\"SELECT username FROM players WHERE username='\" + userName + \"';\");\n\t\t\t\n\t\t\tif (rs.next()) {\n\t\t\t\t\n\t\t\t\t//if (!rs.getString(\"\")\n\t\t\t\t\t\n\t\t\t\t\t//connectionService.finalize();\n\t\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t//connectionService.finalize();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t\n\t\t\tSystem.out.println(\"Exception: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t\t\n\t\t}\n\t}", "private String whoIsMVP() {\n int highestValue = 0;\n String mvp = null;\n for (String player : mvpPlayersMap.keySet()) {\n if (highestValue < mvpPlayersMap.get(player)) {\n highestValue = mvpPlayersMap.get(player);\n mvp = player;\n }\n }\n log.info(\"MVP player: {} with {} points\", mvp, highestValue);\n return mvp;\n }", "public boolean isWin_LordVetinari(){\r\n // player got lordVetinari card\r\n Player playerHoldCard = null;\r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(player.getPersonalityCardID() == 1){\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }\r\n \r\n if (playerHoldCard != null) {\r\n int numPlayers = discWorld.getPlayer_HASH().size();\r\n\r\n Set<Integer> areaList = new HashSet<Integer>();\r\n for (Integer minionID : playerHoldCard.getMinionList()) {\r\n int minion_ID = minionID;\r\n MinionPiece minion = discWorld.getMinionPiece_HASH().get(minion_ID);\r\n if (minion.getAreaNumber() != ConstantField.DEFAULT_UNDEFINED_PLAYID) {\r\n int areaID = minion.getAreaNumber();\r\n Area area = discWorld.getArea_HASH().get(areaID);\r\n // make sure free of demon\r\n if (area.getDemonList().size() == 0) {\r\n areaList.add(minion.getAreaNumber());\r\n }\r\n }\r\n\r\n }\r\n\r\n if (numPlayers == 2) {\r\n\r\n if (areaList.size() >= 11) {\r\n return true;\r\n }\r\n\r\n } else if (numPlayers == 3) {\r\n\r\n if (areaList.size() >= 10) {\r\n return true;\r\n }\r\n\r\n } else if (numPlayers == 4) {\r\n\r\n if (areaList.size() >= 9) {\r\n return true;\r\n }\r\n\r\n }\r\n }\r\n\r\n return false;\r\n }", "public abstract boolean isPlayer();", "public boolean idNewPlayerCheck(TennisPlayer inPlayer) {\n \t\n TennisPlayerContainerNode node = this.root;\n \n for (int i = 0; i < playerCount; i++) {\n \t\n if (node.getPlayer().getId().equals(inPlayer.getId())) {\n return true;\n }\n }\n return false;\n }", "boolean hasSendPlayerName();", "public void addingPlayedMatch() throws IOException {\n\n displayStatistics();\n Scanner scn = new Scanner(System.in);\n System.out.println(\"Enter date (dd.mm.yyyy): \");\n String scanned = scn.nextLine();\n Date date;\n try {\n date = new SimpleDateFormat(\"dd.mm.yyyy\").parse(scanned);\n } catch (ParseException ex) {\n System.out.println(\"date should in this format!!! >> mm-dd-yyyy\");\n return;\n }\n System.out.println(\"Enter Team 1: \");\n scanned = scn.nextLine();\n FootballClub team1 = null;\n for (FootballClub club : footballClubArrayList) {\n if (club.getClubName().equals(scanned))\n team1 = club;\n }\n if (team1 == null) {\n System.out.println(\"Wrong club name!!!\");\n return;\n }\n System.out.println(\"Enter Team 2: \");\n scanned = scn.nextLine();\n FootballClub team2 = null;\n for (FootballClub club : footballClubArrayList) {\n if (club.getClubName().equals(scanned))\n team2 = club;\n }\n if (team2 == null) {\n System.out.println(\"Wrong club name!!!\");\n return;\n }\n\n System.out.println(\"Team 1 goals: \");\n scanned = scn.nextLine();\n int team1Goal = -1;\n try {\n team1Goal = Integer.parseInt(scanned);\n } catch (Exception e) {\n }\n if (team1Goal == -1) {\n System.out.println(\"Enter the number of goals\");\n return;\n }\n\n System.out.println(\"Team 2 goals: \");\n scanned = scn.nextLine();\n int team2Goal = -1;\n try {\n team2Goal = Integer.parseInt(scanned);\n } catch (Exception e) {\n }\n if (team2Goal == -1) {\n System.out.println(\"Enter the number of goals\");\n return;\n }\n\n\n Match match = new Match(date,team1,team2,team1Goal,team2Goal); //setting variables when user enter number of goals\n match.setDate(date);\n match.setTeam1(team1);\n match.setTeam2(team2);\n match.setTeam1Goal(team2Goal);\n match.setTeam2Goal(team1Goal);\n matchArrayList.add(match);\n team1.setNumOfGoalsScored(team1.getNumOfGoalsScored() + team1Goal);\n team2.setNumOfGoalsScored(team2.getNumOfGoalsScored() + team2Goal);\n team1.setNumOfGoalsReceived(team1.getNumOfGoalsReceived() + team2Goal);\n team2.setNumOfGoalsReceived(team2.getNumOfGoalsReceived() + team1Goal);\n team1.setNumOfMatchesPlayed(team1.getNumOfMatchesPlayed() + 1);\n team2.setNumOfMatchesPlayed(team2.getNumOfMatchesPlayed() + 1);\n\n if (team1Goal > team2Goal) {\n team1.setNumOfPoints(team1.getNumOfPoints() + 3);\n team1.setNumOfWins(team1.getNumOfWins() + 1);\n team2.setNumOfDefeats(team2.getNumOfDefeats() + 1);\n } else if (team1Goal < team2Goal) {\n team2.setNumOfPoints(team2.getNumOfPoints() + 3);\n team2.setNumOfWins(team2.getNumOfWins() + 1);\n team1.setNumOfDefeats(team1.getNumOfDefeats() + 1);\n } else {\n team1.setNumOfPoints(team1.getNumOfPoints() + 1);\n team2.setNumOfPoints(team2.getNumOfPoints() + 1);\n team1.setNumOfDraws(team1.getNumOfDraws() + 1);\n team2.setNumOfDraws(team2.getNumOfDraws() + 1);\n }\n\n FileOutputStream fis = new FileOutputStream(\"clubData.txt\");\n ObjectOutputStream oos = new ObjectOutputStream(fis);\n oos.writeObject(footballClubArrayList);\n oos.close();\n fis.close();\n\n displayStatistics();\n matchArrayList.add(new Match(date, team1, team2, team1Goal, team2Goal));\n\n\n try {\n FileOutputStream fileOut = new FileOutputStream(\"matchData.txt\");\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut);\n objectOut.writeObject(matchArrayList);\n objectOut.close();\n fileOut.close();\n System.out.println(\"Match added Successfully\");\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n\n }", "private List<Character> lookupPlayerCharacters() throws SQLException {\n QueryBuilder<Character, Integer> charactersQb = characterDao.queryBuilder();\n charactersQb.where().in(\"isPlayer\", true);\n return charactersQb.query();\n }", "private void isUser() {\r\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\r\n assert user != null;\r\n String Uphonenumber = user.getPhoneNumber();\r\n final String usernumber = Objects.requireNonNull(Uphonenumber);\r\n\r\n DatabaseReference reference = FirebaseDatabase.getInstance().getReference(\"UsersData\");\r\n Query checkUser = reference.orderByChild(\"phone\").equalTo(usernumber);\r\n checkUser.addListenerForSingleValueEvent(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\r\n if (dataSnapshot.exists()){\r\n\r\n nameFromDB = dataSnapshot.child(usernumber).child(\"name\").getValue(String.class);\r\n phoneFromDB = dataSnapshot.child(usernumber).child(\"phone\").getValue(String.class);\r\n dashboardUsername.setText(nameFromDB);\r\n dashboardPhoneNumber.setText(phoneFromDB);\r\n progressBar.DismissDialog();\r\n\r\n\r\n }\r\n else{\r\n Toast.makeText(getApplicationContext(),\"User data didn't matched! \", Toast.LENGTH_LONG).show();\r\n }\r\n\r\n }//End of onDataChange method\r\n\r\n @Override\r\n public void onCancelled(@NonNull DatabaseError databaseError) {\r\n\r\n }\r\n });//End of addListenerForSingleValueEvent method\r\n\r\n\r\n }", "public boolean updatePlayerInfo() throws IOException {\n\n com.google.api.services.games.model.Player gpgPlayer =\n gamesAPI.players().get(player.getPlayerId()).execute();\n\n player.setDisplayName(gpgPlayer.getDisplayName());\n player.setVisibleProfile(gpgPlayer.getProfileSettings()\n .getProfileVisible());\n player.setTitle(gpgPlayer.getTitle());\n\n // Handle 'games-lite' player id migration.\n if (!player.getPlayerId().equals(gpgPlayer.getPlayerId())) {\n // Check the original player id and set the alternate id to it.\n if (player.getPlayerId().equals(gpgPlayer.getOriginalPlayerId())) {\n player.setAltPlayerId(gpgPlayer.getPlayerId());\n } else {\n return false;\n }\n } else if (gpgPlayer.getOriginalPlayerId() != null &&\n !gpgPlayer.getOriginalPlayerId().equals(player.getAltPlayerId())) {\n player.setAltPlayerId(gpgPlayer.getOriginalPlayerId());\n }\n\n return true;\n }", "@Override\n protected String checkIfGameOver() {\n if(pgs.getP0Score() >= 50){\n return playerNames[0] + \" \" + pgs.getP0Score();\n }else if(pgs.getP1score() >= 50){\n return playerNames[1] + \" \" + pgs.getP1score();\n }\n\n return null;\n }", "public abstract void info(Player p);", "boolean hasPlayerBag();", "public void checkUsernameExist() {\n\n try {\n BLUser bluser = new BLUser();\n User user = new User();\n\n ResultSet rs = bluser.selectUserIdFromUsername(txt_username.getText());\n\n user.setUsername(txt_username.getText());\n bluser.setUser(user);\n\n if (bluser.checkUsernameExist()) {\n \n populateDataOnTable();\n }// end if\n else {\n JOptionPane.showMessageDialog(rootPane, \"Invalid username!\");\n }// end else \n\n }// end try\n catch (Exception ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage(), \"Exception\", JOptionPane.INFORMATION_MESSAGE);\n }//end catch\n }", "public void onClick(View v) {\n\t\t\t\tString name=editName.getText().toString(); \r\n\t\t\t\tint playerId=Integer.parseInt(editId.getText().toString());\r\n\t\t\t\tint handicap=Integer.parseInt(editHandicap.getText().toString());\r\n\t\t\t\tint code=Integer.parseInt(editCode.getText().toString());\r\n\t\t\t\tint status=editStatus.isChecked()?0:1;\r\n\t\t\t\t\r\n\t\t\t\t// check if REQUIRED fields are vacant \r\n\t\t\t\tif(name.equals(\"\")|| code<1 || handicap<1 || playerId<1)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (playerId<1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Select a player\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Enter a name and handicap\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t} \t\r\n\t\t\t\telse \r\n\t\t\t\t{ //db = new DatabaseHelper(getApplicationContext());\r\n\t\t\t\t\tplayer=db.getPlayer(playerId);\r\n\t\t\t\t\tplayer.setName(name);\r\n\t\t\t\t\tplayer.setHandicap(handicap);\r\n\t\t\t\t\tplayer.setKey(code);\r\n\t\t\t\t\tplayer.setStatus(status);\r\n\t\t\t\t\tdb.updatePlayer(player);\r\n\t\t\t\t\t//db.close();\r\n\t\t\t\t\t// Save the Data in Database \r\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Saved Successfully \", Toast.LENGTH_LONG).show();\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t\t\r\n\t\t\t\t} \r\n\t\t\t}", "void playMatch() {\n while (!gameInformation.checkIfSomeoneWonGame() && gameInformation.roundsPlayed() < 3) {\n gameInformation.setMovesToZeroAfterSmallMatch();\n playSmallMatch();\n }\n String winner = gameInformation.getWinner();\n if(winner.equals(\"DRAW!\")){\n System.out.println(messageProvider.provideMessage(\"draw\"));\n }else {\n System.out.println(messageProvider.provideMessage(\"winner\")+\" \"+winner+\"!\");\n }\n }", "public boolean playerExists(String username) {\n return getPlayer(username) != null;\n }", "private boolean getDetails(){\n ResultSet rs = this.SQL.PreparedSelect(\"btcwallet\", new String[]{\"guid\",\"rnd\",\"time\",\"session\"}, \"`session`=\"+this.Session, \"1\", \"\");\n try {\n if(rs.first()){\n this.GUID=rs.getString(\"guid\");\n this.Time=rs.getString(\"time\");\n this.Creator=rs.getString(\"rnd\");\n return true;\n }\n } catch (SQLException ex) {\n Logger.getLogger(openBTCWallet.class.getName()).log(Level.SEVERE, null, ex);\n }\n return false;\n }", "@Override\n public boolean equals(Object object) {\n if (this == object) return true;\n if (!(object instanceof Player)) return false;\n Player player = (Player) object;\n return getId().equals(player.getId()) &&\n username.equals(player.username);\n }", "static PlayerState findPlayerState(String playerName) {\n PlayerState playerState = null;\n\n try (Connection connection = DriverManager.getConnection(DatabaseUtil.DB_URL);\n PreparedStatement preparedStatement = connection.prepareStatement(\n \"SELECT * \"\n + \"FROM player_state s, player p, alien_wave w \"\n + \"WHERE s.player_name = p.name \"\n + \"AND s.alien_wave = w.wave \"\n + \"AND s.player_name = ?\")) {\n preparedStatement.setString(1, playerName);\n ResultSet results = preparedStatement.executeQuery();\n if (results.next()) {\n if (StringUtils.isBlank(results.getString(\"name\"))) {\n return null;\n }\n Player player = new Player();\n player.setName(results.getString(\"name\"));\n player.setLastGameStarted(results.getTimestamp(\n \"last_game_started\").toLocalDateTime());\n AlienWave alienWave = new AlienWave();\n alienWave.setWave(results.getInt(\"alien_wave\"));\n alienWave.setDescription(results.getString(\"description\"));\n alienWave.setNumberOfRows(results.getInt(\"number_of_rows\"));\n alienWave.setNumberOfColumns(results.getInt(\"number_of_columns\"));\n alienWave.setMissileSpeed(results.getInt(\"missile_speed\"));\n alienWave.setPoints(results.getInt(\"points\"));\n playerState = new PlayerState();\n playerState.setId(results.getInt(\"id\"));\n playerState.setTerminated(results.getBoolean(\"terminated\"));\n playerState.setScore(results.getInt(\"score\"));\n playerState.setPlayer(player);\n playerState.setAlienWave(alienWave);\n LOGGER.info(String.format(\"Retrieved player, %s, playing in wave: %d with player \"\n + \"state id: %d terminated %s wave: %d alien points: %d.\",\n player.getName(), playerState.getAlienWave().getWave(), playerState.getId(), playerState\n .isTerminated(), playerState.getAlienWave().getWave(), playerState.getAlienWave().getPoints()));\n }\n } catch (SQLException e) {\n LOGGER.error(\"SQLException occurred in findPlayerState().\", e);\n }\n\n return playerState;\n }", "@FXML\n private void fastMatch() {\n if (Client.getUser().getState() != Type.UserState.IDLE) {\n JOptionPane.showMessageDialog(null, \"您已经在房间中\");\n return;\n }\n Room match = null;\n for (Room room : Client.roomsMap.values()) {\n if (room.hasSeat()) {\n match = room;\n Client.getUser().setRoom(match.getId());\n Client.getUser().setState(Type.UserState.READY);\n Client.updateUser();\n match.setState(Type.RoomState.READY);\n if (match.getPlayer1() == null || match.getPlayer1().isEmpty()) {\n match.setPlayer1(Client.getUser().getAccount());\n Client.updateRoom(room, Type.UpdateRoom.PLAYER1IN);\n } else {\n match.setPlayer2(Client.getUser().getAccount());\n Client.updateRoom(room, Type.UpdateRoom.PLAYER2IN);\n }\n break;\n }\n }\n if (match != null) {\n client.gotoGame(match);\n } else {\n int res = JOptionPane.showConfirmDialog(null, \"暂时找不到匹配的房间哦,是否要自己创建一个呢?\", \"未找到匹配的房间\", JOptionPane.YES_NO_OPTION);\n if (res == JOptionPane.YES_OPTION) {\n client.gotoCreateRoom();\n }\n }\n }", "public void updateIsWinning() {\n if(!isOpponentDone && !isUserDone) {\n TextView opponentPosition = (TextView) findViewById(R.id.position_indicator_receiver);\n TextView userPosition = (TextView) findViewById(R.id.position_indicator_sender);\n\n Run opponentRun = ((ChallengeReceiverFragment) receiverFragment).getRun();\n Run userRun = ((ChallengeSenderFragment) senderFragment).getRun();\n\n float opponentDistance = opponentRun.getTrack().getDistance();\n float userDistance = userRun.getTrack().getDistance();\n\n if (opponentDistance == userDistance) {\n opponentPosition.setText(R.string.dash);\n userPosition.setText(R.string.dash);\n } else if (opponentDistance > userDistance) {\n opponentPosition.setText(R.string.first_position);\n userPosition.setText(R.string.second_position);\n } else {\n opponentPosition.setText(R.string.second_position);\n userPosition.setText(R.string.first_position);\n }\n System.out.println(opponentDistance + \" \" + userDistance);\n }\n }", "public void retrieveAllPlayersFromDatabase(String dbMemberName) {\n DatabaseReference dbReference = FirebaseDatabase.getInstance().getReference().child(dbMemberName);\n Log.d(\">>>>>\", \"Starting method\");\n isPlayersRetrieved = false;\n\n dbReference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n Log.d(\">>>>>\", \"On 1 st method\");\n playersList.clear();\n for (DataSnapshot postSnapshot : snapshot.getChildren()) {\n Log.d(\">>>>>\", \"On 2 nd method\");\n player = postSnapshot.getValue(Player.class);\n playersList.add(player);\n\n // here you can access to name property like university.name\n System.out.println(\">>>>> Retrieving player -> \" + player);\n\n if (!isPlayersRetrieved) {\n isPlayersRetrieved = true;\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n System.out.println(\"The read failed: \" + databaseError.getMessage());\n }\n });\n }", "public abstract void isUsedBy(Player player);", "void findOpponent() {\n\t\tif(gameHelper == null){return;}\n\t\tif (gameHelper.isSignedIn()) {\n\t\t\tIntent intent = Games.TurnBasedMultiplayer\n\t\t\t\t\t.getSelectOpponentsIntent(gameHelper.getApiClient(), 1, 1);\n\t\t\tstartActivityForResult(intent, RC_SELECT_PLAYERS);\n\t\t} else if (gameHelper.isConnecting()) {\n\t\t\tToast.makeText(getActivity(), R.string.wait_connecting_to_google,\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t}", "protected abstract boolean isPlayerActivatable(PlayerSimple player);", "java.lang.String getPlayerId();", "public boolean loadPlayer(P player){\n\n //Is the player already loaded?\n if(playerMap.containsKey(player)){\n System.out.println(\"Tried to load player \" + player.getName() + \"'s data, even though it's already loaded!\");\n return false;\n } else {\n\n if(data.getConfig().contains(player.getUniqueId().toString())){\n //Load player\n PlayerProfile playerProfile = new PlayerProfile(false, data, player);\n playerMap.put(player, playerProfile);\n\n return true;\n } else {\n //Create player profile\n PlayerProfile playerProfile = new PlayerProfile(true, data, player);\n playerMap.put(player, playerProfile);\n\n return true;\n }\n }\n }", "private boolean isOver() {\r\n return players.size() == 1;\r\n }", "protected void processPlayerArrived(String name) {\n Player player = tournamentService.findPlayer(name);\n if (player == null) {\n alertManagers(\"Arriving player {0} is on my notify list, but I don''t have him in the tournament roster.\", name);\n return;\n }\n player.setState(PlayerState.WAITING);\n Game game = tournamentService.findPlayerGame(player);\n if (game == null) return;\n if (game.status.isFinished()) return;\n if (loggingIn) {\n \tcommand.sendCommand(\"observe {0}\", name);\n } else {\n tellManagers(\"{0} arrived. Reserving board {1}.\", name, game.boardNumber);\n }\n command.sendAdminCommand(\"spoof {0} tell JudgeBot nowin\", game.whitePlayer);\n command.sendAdminCommand(\"spoof {0} tell JudgeBot nowin\", game.blackPlayer);\n command.sendAdminCommand(\"set-other {0} kib 0\", game.blackPlayer);\n command.sendAdminCommand(\"set-other {0} kib 0\", game.whitePlayer);\n command.sendAdminCommand(\"reserve-game {0} {1}\", game.whitePlayer, game.boardNumber);\n command.sendAdminCommand(\"reserve-game {0} {1}\", game.blackPlayer, game.boardNumber);\n if (game.status.isAdjourned()) {\n command.sendAdminCommand(\"spoof {0} match {1}\", game.whitePlayer, game.blackPlayer);\n command.sendAdminCommand(\"spoof {0} match {1}\", game.blackPlayer, game.whitePlayer);\n }\n }", "@Test\n public final void testPlayer1Win() {\n checkPlayerWin(player1);\n }", "public void playerDetailedInfo(Player p){\n System.out.println(\"Indicator: \" + indicator + \"\\nJoker: \"+joker);\n System.out.println(\"Winner: Player\" + p.getPlayerNo());\n System.out.println(\"Tile size: \" + p.getTiles().size());\n System.out.println(\"Joker count: \" + p.getJokerCount());\n System.out.println(\"Double score: \" + p.getDoubleCount()*2);\n System.out.println(\"All tiles in ascending order:\\t\" + p.getTiles());\n System.out.println(\"Clustered according to number: \\t\" + p.getNoClus());\n System.out.println(\"Total number clustering score: \" + p.totalNoClustering());\n System.out.println(\"Clustered according to color: \\t\" + p.getColClus());\n System.out.println(\"Total color clustering score: \" + p.totalColCluster());\n System.out.println(\"Final score of Player\"+p.getPlayerNo()+\": \" + p.getPlayerScore());\n }", "private void findAndConstructPlayerFromDatabase(int id) throws IOException {\n openPlayerDataFromCSV(); // generate the file reader for the csv\n csvReader.readLine(); // read the first line through because it's just the headers\n String row = csvReader.readLine();\n\n // create a loop that reads until we find the player in the csv file\n while (row != null) {\n List<String> playerData = Arrays.asList(row.split(\",\"));\n playerID = Integer.parseInt(playerData.get(NbaGachaApp.ID_INDEX));\n if (playerID == id) {\n setPlayerData(playerData);\n row = null; // we've created the player so don't need to keep looking\n } else {\n row = csvReader.readLine(); // keep looking until we find the player\n }\n }\n\n }", "@Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n Match m = dataSnapshot.getValue(Match.class);\n assert m != null;\n //see if it is relevant to the user\n boolean booked = dataSnapshot.child(\"members/\" + ActivityLogin.currentUserID).exists();\n if(m.getPlayersNumber() > 0 && m.getTimestamp() > Calendar.getInstance().getTimeInMillis() && !booked && isLocationNearby(m.getLatitude(), m.getLongitude())\n && !ActivityLogin.currentUserID.equals(m.getCreatorID()))\n FragmentAvailableMatches.this.addUI(m);\n }", "public boolean isWin_LordSelachii(){\r\n // player got LordSelachii card\r\n Player playerHoldCard = null;\r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(player.getPersonalityCardID() == 2){\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }\r\n \r\n if(playerHoldCard != null){\r\n int numPlayers = discWorld.getPlayer_HASH().size();\r\n \r\n int numCityAreaCard = 0;\r\n \r\n for(Integer areaID : playerHoldCard.getCityAreaCardList()){\r\n Area area = discWorld.getArea_HASH().get(areaID);\r\n if(area.getDemonList().size() == 0){\r\n numCityAreaCard++;\r\n }\r\n }\r\n \r\n if (numPlayers == 2) {\r\n if(numCityAreaCard >= 7){\r\n return true;\r\n }\r\n } else if (numPlayers == 3) {\r\n if(numCityAreaCard >= 5){\r\n return true;\r\n }\r\n } else if (numPlayers == 4) {\r\n if(numCityAreaCard >= 4){\r\n return true;\r\n }\r\n }\r\n }\r\n \r\n return false;\r\n }", "private void loadPlayers() {\r\n this.passive_players.clear();\r\n this.clearRoster();\r\n //Map which holds the active and passive players' list\r\n Map<Boolean, List<PlayerFX>> m = ServiceHandler.getInstance().getDbService().getPlayersOfTeam(this.team.getID())\r\n .stream().map(PlayerFX::new)\r\n .collect(Collectors.partitioningBy(x -> x.isActive()));\r\n this.passive_players.addAll(m.get(false));\r\n m.get(true).stream().forEach(E -> {\r\n //System.out.println(\"positioning \"+E.toString());\r\n PlayerRosterPosition pos = this.getPlayerPosition(E.getCapnum());\r\n if (pos != null) {\r\n pos.setPlayer(E);\r\n }\r\n });\r\n }", "public boolean checkPlays(Player player){\n return true;\n }", "public boolean hasTeam(User std) {\r\n\t\tboolean hasTeam = false;\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM `is480-matching`.students WHERE id = \" + std.getID() + \" ;\");\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tint teamId \t= Integer.parseInt(array.get(3));\r\n\t\t\t\r\n\t\t\tif(teamId != 0){\r\n\t\t\t\thasTeam = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn hasTeam;\r\n\t}", "private void updateDB() {\r\n //if(!m_state.isEndingGame()) return;\r\n if(m_connectionName == null || m_connectionName.length() == 0 || !m_botAction.SQLisOperational()) {\r\n m_botAction.sendChatMessage(\"Database not connected. Not updating scores.\");\r\n return;\r\n }\r\n\r\n for(KimPlayer kp : m_allPlayers.values()) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"INSERT INTO tblJavelim (fcName,fnGames,fnKills,fnDeaths) \"\r\n + \"VALUES ('\" + Tools.addSlashes(kp.m_name) + \"',1,\" + kp.m_kills + \",\" + kp.m_deaths + \") \"\r\n + \"ON DUPLICATE KEY UPDATE fnGames = fnGames + 1, fnKills = fnKills + VALUES(fnKills), fnDeaths = fnDeaths + VALUES(fnDeaths)\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n\r\n if(m_mvp != null) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"UPDATE tblJavelim SET fnMVPs = fnMVPs + 1 WHERE fcName='\" + Tools.addSlashes(m_mvp.m_name) + \"'\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n\r\n if(m_winner != null && m_winner.size() != 0) {\r\n for(KimPlayer kp : m_winner) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"UPDATE tblJavelim SET fnWins= fnWins + 1 WHERE fcName='\" + Tools.addSlashes(kp.m_name) + \"'\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n }\r\n }", "public static void main(String[] args) {\n\t\tint gameID, playerID, achievementID, achievementPoints, totalGamerScore;\n\t\tString command, playerName, gameName, achievementName, tempIGN;\n\t\tHashMap<Integer, Player> players = new HashMap<Integer, Player>(); //Player DataBase\n\t\tHashMap<Integer, Game> games = new HashMap<Integer, Game>(); //Game DataBase\n\t\tint[] friendID = new int[2];\n\t\tPlayer[] compPlayer = new Player[2];\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (scanner.hasNext()) {\n\t\t\tcommand = scanner.next();\n\t\t\t\n\t\t\tif (command.equals(\"AddPlayer\")) {\n\t\t\t\tplayerID = scanner.nextInt();\n\t\t\t\t//findInLine with regex brings in everything in between quotes including random characters\n\t\t\t\tplayerName = scanner.findInLine(\"(\\\"[a-zA-Z0-9[_$&+,:;=?@#|'<>.^*()%!-]\\\\s]+\\\")\").replace(\"\\\"\", \"\");\n\t\t\t\tPlayer tempPlayer = new Player(playerID, playerName); //Creates a new Player object\n\t\t\t\tplayers.put(playerID, tempPlayer); //Adds player with ID as it's key to Player Database\n\t\t\t} \n\t\t\t\n\t\t\telse if (command.equals(\"AddGame\")) {\n\t\t\t\tgameID = scanner.nextInt();\n\t\t\t\tgameName = scanner.findInLine(\"(\\\"[a-zA-Z0-9[_$&+,:;=?@#|'<>.^*()%!-]\\\\s]+\\\")\").replace(\"\\\"\", \"\");\n\t\t\t\tGame tempGame = new Game(gameID, gameName); //Creates a new Game object\n\t\t\t\tgames.put(gameID, tempGame); //Adds game with ID as it's key to Game DataBase\n\t\t\t}\n\t\t\t\n\t\t\telse if (command.equals(\"AddAchievement\")) {\n\t\t\t\tgameID = scanner.nextInt();\n\t\t\t\tachievementID = scanner.nextInt();\n\t\t\t\tachievementName = scanner.findInLine(\"(\\\"[a-zA-Z0-9[_$&+,:;=?@#|'<>.^*()%!-]\\\\s]+\\\")\").replace(\"\\\"\",\n\t\t\t\t\t\t\"\");\n\t\t\t\tachievementPoints = scanner.nextInt();\n\t\t\t\tif (games.containsKey(gameID)) { //Checks if the game exists in the DataBase\n\t\t\t\t\tAchievement tempAchievement = new Achievement(gameID, achievementID, achievementName,\n\t\t\t\t\t\t\tachievementPoints); //Creates a new Achievement object\n\t\t\t\t\tgames.get(gameID).addAchievement(tempAchievement); //Adds achievement to the specified game's achievement DataBase\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Error: Game not found in database.\");\n\t\t\t\t}\n\t\t\t} \n\t\t\t\n\t\t\telse if (command.equals(\"Plays\")) {\n\t\t\t\tplayerID = scanner.nextInt();\n\t\t\t\tgameID = scanner.nextInt();\n\t\t\t\ttempIGN = scanner.findInLine(\"(\\\"[a-zA-Z0-9[_$&+,:;=/?@#|'<>.^*()%!-]\\\\s]+\\\")\").replace(\"\\\"\", \"\");\n\t\t\t\tif (games.containsKey(gameID)) {\n\t\t\t\t\tgameName = games.get(gameID).getGameName();\n\t\t\t\t\tGame tempGame = new Game(games.get(gameID)); //Creates a new instance of an existing game for the player\n\t\t\t\t\tplayers.get(playerID).plays(gameID, tempGame, tempIGN); //Calls the plays function inside of the Player class\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Error: Game not found in database.\");\n\t\t\t\t}\n\t\t\t} \n\t\t\t\n\t\t\telse if (command.equals(\"AddFriends\")) {\n\t\t\t\tfriendID[0] = scanner.nextInt();\n\t\t\t\tfriendID[1] = scanner.nextInt();\n\t\t\t\t//First checks that each Player ID is already in the player DataBase\n\t\t\t\tif (players.containsKey(friendID[0]) && players.containsKey(friendID[1])) {\n\t\t\t\t\t//Then makes sure they aren't already friends\n\t\t\t\t\tif(!players.get(friendID[0]).getFriends().containsKey(friendID[1])) {\n\t\t\t\t\t\t//Finally adds each friend to each other's friend DataBase in the Player object\n\t\t\t\t\t\tplayers.get(friendID[0]).addFriend(friendID[1], players.get(friendID[1]));\n\t\t\t\t\t\tplayers.get(friendID[1]).addFriend(friendID[0], players.get(friendID[0]));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Error: Player ID not found in database.\");\n\t\t\t\t}\n\t\t\t} \n\t\t\t\n\t\t\telse if (command.equals(\"Achieve\")) {\n\t\t\t\tplayerID = scanner.nextInt();\n\t\t\t\tgameID = scanner.nextInt();\n\t\t\t\tachievementID = scanner.nextInt();\n\t\t\t\t//First checks that the achievement exists in the game's achievement DataBase\n\t\t\t\tif(games.get(gameID).achievements.containsKey(achievementID)) {\n\t\t\t\t\tplayers.get(playerID).achieve(gameID, achievementID); //Calls achieve in the Player Class\n\t\t\t\t}\n\t\t\t} \n\t\t\t\n\t\t\telse if (command.equals(\"FriendsWhoPlay\")) {\n\t\t\t\tplayerID = scanner.nextInt();\n\t\t\t\tgameID = scanner.nextInt();\n\t\t\t\tPlayer tempPlayer = players.get(playerID);\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"//////////////////////////////////////////////////////////////////////////////////////////\");\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"Friends of \" + tempPlayer.getName() + \" who play \" + games.get(gameID).getGameName() + \":\");\n\t\t\t\tHashMap<Integer, Player> friendList = tempPlayer.getFriends(); //Gets the player's list of friends\n\t\t\t\tfor (int i : friendList.keySet()) {\n\t\t\t\t\t//Checks if the friend plays the specific game\n\t\t\t\t\tif (friendList.get(i).getPlayedGames().containsKey(gameID)) {\n\t\t\t\t\t\tSystem.out.println(friendList.get(i).getName());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\t\n\t\t\telse if (command.equals(\"ComparePlayers\")) {\n\t\t\t\tfriendID[0] = scanner.nextInt();\n\t\t\t\tfriendID[1] = scanner.nextInt();\n\t\t\t\tcompPlayer[0] = players.get(friendID[0]);\n\t\t\t\tcompPlayer[1] = players.get(friendID[1]);\n\t\t\t\tgameID = scanner.nextInt();\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"//////////////////////////////////////////////////////////////////////////////////////////\");\n\t\t\t\tSystem.out.println(\"Compare Players in: \" + games.get(gameID).getGameName());\n\t\t\t\tSystem.out.printf(\" %-22s %-20s %-20s\\n\", \"Name\", \"Achievements\", \"GamerScore\");\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"------------------------------------------------------------------------------------------\");\n\t\t\t\tfor (int i = 0; i < 2; i++) { //For loop that outputs both players' points and achievement completion \n\t\t\t\t\tint playerPoints = compPlayer[i].getPlayedGames().get(gameID).getGamePoints();\n\t\t\t\t\tint totalAchievements = compPlayer[i].getPlayedGames().get(gameID).getNumAchievements();\n\t\t\t\t\tint completedAchievements = compPlayer[i].getPlayedGames().get(gameID).getCompletedAchievements();\n\t\t\t\t\tString progress = completedAchievements + \"/\" + totalAchievements;\n\t\t\t\t\tSystem.out.printf(\" %-25s %-20s %-20s\\n\", compPlayer[i].getName(), progress, playerPoints);\n\t\t\t\t}\n\t\t\t} \n\t\t\t\n\t\t\telse if (command.equals(\"SummarizePlayer\")) {\n\t\t\t\tplayerID = scanner.nextInt();\n\t\t\t\tPlayer tempPlayer = players.get(playerID);\n\t\t\t\tplayerName = tempPlayer.getName();\n\t\t\t\ttotalGamerScore = tempPlayer.getGamerScore();\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"//////////////////////////////////////////////////////////////////////////////////////////\");\n\t\t\t\tSystem.out.println(\"Player Summary: \" + playerName);\n\t\t\t\tSystem.out.println(\"Total GamerScore: \" + totalGamerScore + \" pts\");\n\t\t\t\tSystem.out.printf(\" %-22s %-20s %-20s %-3s\\n\", \"Game\", \"Achievements\", \"GamerScore\", \"IGN\");\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"------------------------------------------------------------------------------------------\");\n\t\t\t\tif(tempPlayer.getNumGamesPlayed() == 0) { //Checks if the player has any played games\n\t\t\t\t\tSystem.out.println(\"None\");\n\t\t\t\t}\n\t\t\t\telse { //For Loop that outputs the player's games, achievement progress, game points and in-game name\n\t\t\t\tfor (int i = 1; i <= tempPlayer.getNumGamesPlayed(); i++) {\n\t\t\t\t\tgameName = tempPlayer.getGameName(i);\n\t\t\t\t\tint totalAchievements = tempPlayer.getNumAchievements(i);\n\t\t\t\t\tint completedAchievements = tempPlayer.getCompletedAchievements(i);\n\t\t\t\t\tString progress = completedAchievements + \"/\" + totalAchievements;\n\t\t\t\t\tint gamePoints = tempPlayer.getGamePoints(i);\n\t\t\t\t\tString inGameName = tempPlayer.getIGN(i);\n\t\t\t\t\tSystem.out.printf(\"%d. %-25s %-20s %-18s\", i, gameName, progress, gamePoints);\n\t\t\t\t\tSystem.out.printf(\"%-30s\", inGameName);\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\" %-22s %-20s \\n\", \"Friends\", \"GamerScore\");\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"------------------------------------------------------------------------------------------\");\n\t\t\t\tif(tempPlayer.getNumFriends() == 0) { //Checks if player has any friends\n\t\t\t\t\tSystem.out.println(\"None\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor (int i = 1; i <= tempPlayer.getNumFriends(); i++) { //Loop that prints out friends and their total gamer score\n\t\t\t\t\t\tString friendName = tempPlayer.getFriendName(i);\n\t\t\t\t\t\tint friendScore = tempPlayer.getFriendScore(i);\n\t\t\t\t\t\tSystem.out.printf(\" %-25s %-20s\", friendName, friendScore);\n\t\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\t\n\t\t\telse if (command.equals(\"SummarizeGame\")) {\n\t\t\t\tgameID = scanner.nextInt();\n\t\t\t\tgameName = games.get(gameID).getGameName();\n\t\t\t\tHashMap<Integer, Achievement> gameAchievements = games.get(gameID).getAchievements();\n\t\t\t\tHashMap<Integer, Integer> timesAchieved = new HashMap<Integer, Integer>();\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"//////////////////////////////////////////////////////////////////////////////////////////\");\n\t\t\t\tSystem.out.println(\"Game Summary: \" + gameName);\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"------------------------------------------------------------------------------------------\");\n\t\t\t\tSystem.out.println(\"Player(s): \");\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"------------------------------------------------------------------------------------------\");\n\t\t\t\t//Prints out the players of the game and gets the number of times each achievement has been completed\n\t\t\t\tfor (int a : players.keySet()) { \n\t\t\t\t\tif (players.get(a).getPlayedGames().containsKey(gameID)) {\n\t\t\t\t\t\tSystem.out.println(players.get(a).getName());\n\t\t\t\t\t\tHashMap<Integer, Achievement> playerAchievements = players.get(a).getPlayedGames().get(gameID)\n\t\t\t\t\t\t\t\t.getAchievements();\n\t\t\t\t\t\tfor (int c : playerAchievements.keySet()) {\n\t\t\t\t\t\t\tif (playerAchievements.get(c).getStatus()) {\n\t\t\t\t\t\t\t\tif (timesAchieved.containsKey(c)) {\n\t\t\t\t\t\t\t\t\ttimesAchieved.put(c, timesAchieved.get(c) + 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\ttimesAchieved.put(c, 1);\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\tSystem.out.println(\n\t\t\t\t\t\t\"------------------------------------------------------------------------------------------\");\n\t\t\t\tSystem.out.printf(\"%-30s %-20s\\n\", \"Achievement(s)\", \"Number of Times Completed\");\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"------------------------------------------------------------------------------------------\");\n\t\t\t\tfor (int b : gameAchievements.keySet()) { //Loops through each achievement and prints out the times it has been achieved\n\t\t\t\t\tSystem.out.printf(\"%-30s %-20s\\n\", gameAchievements.get(b).getAchieveName(), timesAchieved.get(b));\n\t\t\t\t}\n\t\t\t} \n\t\t\t\n\t\t\telse if (command.equals(\"SummarizeAchievement\")) {\n\t\t\t\tgameID = scanner.nextInt();\n\t\t\t\tachievementID = scanner.nextInt();\n\t\t\t\tint totalPlayers = 0;\n\t\t\t\tint numPlayersAchieved = 0;\n\t\t\t\tSystem.out.println(\"//////////////////////////////////////////////////////////////////////////////////////////\");\n\t\t\t\tSystem.out.println(\"Achievement Summary: \" + games.get(gameID).achievements.get(achievementID).getAchieveName());\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"------------------------------------------------------------------------------------------\");\n\t\t\t\tSystem.out.println(\"Players Completed:\");\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"------------------------------------------------------------------------------------------\");\n\t\t\t\tfor (int a : players.keySet()) { //Loops through the players of the game determining if achievement is completed\n\t\t\t\t\tif (players.get(a).getPlayedGames().containsKey(gameID)) {\n\t\t\t\t\t\ttotalPlayers++;\n\t\t\t\t\t\tif(players.get(a).getPlayedGames().get(gameID).getAchievements().get(achievementID).getStatus()) {\n\t\t\t\t\t\t\tnumPlayersAchieved++;\n\t\t\t\t\t\t\tSystem.out.println(players.get(a).getName());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"------------------------------------------------------------------------------------------\");\n\t\t\t\tSystem.out.print(\"Percent Completed: \");\n\t\t\t\tSystem.out.println((numPlayersAchieved/totalPlayers)*100 + \"%\");\n\t\t\t} \n\t\t\t\n\t\t\telse if (command.equals(\"AchievementRanking\")) {\n\t\t\t\tConcurrentHashMap<Integer, Player> playerList = new ConcurrentHashMap<Integer, Player>();\n\t\t\t\tplayerList.putAll(players);//Copies players from player DataBase into an editable Database\n\t\t\t\tint i = 0;\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"//////////////////////////////////////////////////////////////////////////////////////////\");\n\t\t\t\tSystem.out.println(\"Achievement Ranking\");\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"------------------------------------------------------------------------------------------\");\n\t\t\t\tSystem.out.printf(\"%-30s %-20s\\n\", \" Player\", \"GamerScore\");\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"------------------------------------------------------------------------------------------\");\n\t\t\t\twhile (playerList.size() > 0) { //Loops through all players\n\t\t\t\t\tfor (int a : playerList.keySet()) {\n\t\t\t\t\t\tif(playerList.get(a) != null) {\n\t\t\t\t\t\t\tPlayer aPlayer = playerList.get(a);\n\t\t\t\t\t\t\tfor (int b : playerList.keySet()) {\n\t\t\t\t\t\t\t\tPlayer bPlayer = playerList.get(b);\n\t\t\t\t\t\t\t\tif (bPlayer.getGamerScore() > aPlayer.getGamerScore()) {//Checks if new player has higher GamerScore\n\t\t\t\t\t\t\t\t\taPlayer = bPlayer; //Swaps out current highest GamerScore\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t\tSystem.out.printf(\"%-30s %-20s\\n\", i + \". \" + aPlayer.getName(), aPlayer.getGamerScore());//Outputs gamer with highest GamerScore\n\t\t\t\t\t\t\tplayerList.remove(aPlayer.getPlayerID());//Removes player with highest GamerScore and continues through the player list\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} \n\t\t\t\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Command doesn't exist.\");\n\t\t\t}\n\t\t}\n\t\tscanner.close();\n\t\tSystem.out.println(\"End of Program\");\n\t}", "private void checkPlayerCondition()\n\t{\n\t\tif (playerExists() && PlayerAccess.getPlayer().isInExit())\n\t\t{\n\t\t\twon = true;\n\t\t}\n\t\tif (playerIsDead())\n\t\t{\n\t\t\tMapInstance.getInstance().levelRestart();\n\t\t}\n\t\tif (playerHasLost())\n\t\t{\n\t\t\tlost = true;\n\t\t}\n\t\tif (runOutOfTime())\n\t\t{\n\t\t\tPlayerAccess.getPlayer().die();\n\t\t}\n\t}", "boolean hasSendPlayerId();", "boolean hasFindGamesResponse();", "static public void set_player_data(String league){\n\t\t\n\t\tEdit_row_window.attrs = new String[]{\"player name:\", \"rating:\", \"birth year:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct t.id, t.name, t.links_to_team, t.creation_year \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_\"+league+\"_teams t, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_\"+league+\"_player_team pt\" +\n\t\t\t\t\t\t\t\t\t\t\t\" where pt.team_id=t.id and pt.player_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by links_to_team desc \";\n\t\t\n\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct t.id, t.name, t.links_to_team, t.creation_year \" +\n\t\t\t\t\" from curr_\"+league+\"_teams t \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"team name\", \"rating\", \"creation year\"};\n\t\tEdit_row_window.label_min_parameter=\"min. creation year:\";\n\t\tEdit_row_window.linked_category_name = \"TEAMS\";\n\t}", "private void retrieve() throws IOException {\n String data = fromServer.readUTF();\n// report(\"data: \" + data);\n String[] datas = data.split(COMMAND_DELIMITER);\n int isFull = Integer.parseInt(datas[0]);\n\n if(isFull == 1) {\n // points\n String[] points = datas[1].split(POINTS_DELIMITER);\n int[][] board = new int[SIDE][SIDE];\n for (int i = 0; i < points.length; i++) {\n board[i / SIDE][i % SIDE] = Integer.parseInt(points[i]);\n }\n boardComponent.setBoard(board);\n boardComponent.repaint();\n\n // players\n String[] players = datas[2].split(POINTS_DELIMITER);\n lbPl1.setText(players[0]);\n lbPl2.setText(players[1]);\n lbBlackStone.setIcon(blackIcon);\n lbWhiteStone.setIcon(whiteIcon);\n\n\n colorLabel.setText(\"You are a viewer.\");\n setButtons(false);\n btnNewGame.setEnabled(false);\n }\n\n // attendants\n try {\n String[] attendants = datas[3].split(POINTS_DELIMITER);\n for (String str : attendants) {\n listOfNames.add(str);\n nameListTextArea.append(str + \"\\n\");\n }\n// nameListTextArea.update(nameListTextArea.getGraphics());\n// atsScrollPane.setViewportView(nameListTextArea);\n }catch(Exception e){\n // when the first player enter the room, there is no existed attendants\n }\n\n }", "private boolean horizontalMatches(int player, int y) {\n boolean result = true;\n for (int x = 0; x < this.gameField.length(); x++){\n if (this.gameField.getValue(x, y) != player) {\n result = false;\n break;\n }\n }\n return result;\n }", "public void printDetailedPlayer(Player player);", "public static boolean isPlayersSetupDone() {\r\n\t\tboolean playersNamed = true;\r\n\r\n\t\t//Check if all the choice boxes have been selected.\r\n\t\tif (GameSetup.choiceBoxPlayer1.getSelectedIndex() == -1\r\n\t\t\t\t|| GameSetup.choiceBoxPlayer1.getSelectedIndex() == 0) {\r\n\t\t\tplayersNamed = false;\r\n\t\t}\r\n\t\tif (GameSetup.choiceBoxPlayer2.getSelectedIndex() == -1\r\n\t\t\t\t|| GameSetup.choiceBoxPlayer2.getSelectedIndex() == 0) {\r\n\t\t\tplayersNamed = false;\r\n\t\t}\r\n\t\tif (GameSetup.choiceBoxPlayer3.getSelectedIndex() == -1\r\n\t\t\t\t|| GameSetup.choiceBoxPlayer3.getSelectedIndex() == 0) {\r\n\t\t\tplayersNamed = false;\r\n\t\t}\r\n\t\t\r\n\t\t//Don't show fourth player if playing 3 handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tif (GameSetup.choiceBoxPlayer4.getSelectedIndex() == -1\r\n\t\t\t\t\t|| GameSetup.choiceBoxPlayer4.getSelectedIndex() == 0) {\r\n\t\t\t\tplayersNamed = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Show dialog box reminder.\r\n\t\tif (!playersNamed) FrameUtils.showDialogBox(\"All players must be selected.\");\r\n\t\t\r\n\t\t//Save player names.\r\n\t\tsavePlayerNames();\r\n\t\t\r\n\t\treturn playersNamed;\r\n\t}", "private void doMatch() {\n // Remember how many games in this session\n mGameCounter++;\n\n PebbleDictionary resultDict = new PebbleDictionary();\n\n switch (mChoice) {\n case Keys.CHOICE_ROCK:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n case Keys.CHOICE_PAPER:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN); // Inform Pebble of opposite result\n break;\n case Keys.CHOICE_SCISSORS:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n }\n break;\n case Keys.CHOICE_PAPER:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n case Keys.CHOICE_PAPER:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n case Keys.CHOICE_SCISSORS:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN);\n break;\n }\n break;\n case Keys.CHOICE_SCISSORS:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN);\n break;\n case Keys.CHOICE_PAPER:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n case Keys.CHOICE_SCISSORS:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n }\n break;\n }\n\n // Inform Pebble of result\n PebbleKit.sendDataToPebble(getApplicationContext(), APP_UUID, resultDict);\n\n // Finally reset both\n mChoice = Keys.CHOICE_WAITING;\n mP2Choice = Keys.CHOICE_WAITING;\n\n // Leave announcement for 5 seconds\n mHandler.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n updateUI();\n }\n\n }, 5000);\n }", "boolean addPlayer(String player);", "@java.lang.Override\n public boolean hasPlayer() {\n return player_ != null;\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_waiting_room);\n\n String nameOfRoom = getIntent().getStringExtra(\"RoomName\");\n\n // TODO: Intent from previous screen contains EXTRA_ROOM_MESSAGE plus the nameOfRoom\n // Done?\n DatabaseReference _roomNameRefPlayer1 = database.getReference(\"rooms/\"+nameOfRoom+\"/player1\");\n _roomNameRefPlayer1.setValue(true);\n\n DatabaseReference _roomNameRefPlayer2 = database.getReference(\"rooms/\"+nameOfRoom+\"/player2\");\n _roomNameRefPlayer2.setValue(false);\n\n DatabaseReference _roomListener = database.getReference(\"rooms/\"+nameOfRoom);\n _roomListener.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n if(snapshot.child(\"player2\").exists()) {\n boolean P2Existence = snapshot.child(\"player2\").getValue(boolean.class);\n if (P2Existence) {\n Intent intent = new Intent(getApplicationContext(),GameActivity.class);\n intent.putExtra(\"playerID\", \"1\");\n startActivity(intent);\n }\n }\n /*\n //try{\n boolean P2Existence = snapshot.getValue(boolean.class);\n if (P2Existence) {\n Intent intent = new Intent(getApplicationContext(),GameActivity.class);\n intent.putExtra(\"playerID\", \"1\");\n startActivity(intent);\n }\n //} catch (NullPointerException e) {\n // System.err.println(\"Null pointer exception\");\n //}\n */\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }", "public static ArrayList<String> getPlayerInformation() {\n clearScreen();\n ArrayList<String> Names = new ArrayList<String>();\n for (int i = 1; i < 3; i++) {\n System.out.println(\"Player \" + i + \"'s Name:\");\n Names.add(Input.nextLine());\n clearScreen();\n }\n return Names;\n }", "Player getSelectedPlayer();", "public PlayerMatches(String player1, String player2) {\n this.player1 = player1;\n this.player2 = player2;\n }", "public void showResult(NimPlayer player1, NimPlayer player2) {\n String g1 = \"game\";\n String g2 = \"game\";\n\n // check the sigular\n if (player1.getWinTimes() >= 2) {\n g1 = \"games\";\n }\n if (player2.getWinTimes() >= 2) {\n g2 = \"games\";\n }\n System.out.println(player1.getName() + \" won \" +\n player1.getWinTimes() + \" \" + g1 + \" out of \" +\n player1.getTotalTimes() + \" played\");\n System.out.println(player2.getName() + \" won \" +\n player2.getWinTimes() + \" \" + g2 + \" out of \" +\n player2.getTotalTimes() + \" played\");\n }", "public boolean isWin_LordRust(){\r\n // player got LordSelachii card\r\n Player playerHoldCard = null;\r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(player.getPersonalityCardID() == 3){\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }\r\n \r\n if(playerHoldCard != null){\r\n int numPlayers = discWorld.getPlayer_HASH().size();\r\n \r\n int numCityAreaCard = 0;\r\n \r\n for(Integer areaID : playerHoldCard.getCityAreaCardList()){\r\n Area area = discWorld.getArea_HASH().get(areaID);\r\n if(area.getDemonList().size() == 0){\r\n numCityAreaCard++;\r\n }\r\n }\r\n \r\n if (numPlayers == 2) {\r\n if(numCityAreaCard >= 7){\r\n return true;\r\n }\r\n } else if (numPlayers == 3) {\r\n if(numCityAreaCard >= 5){\r\n return true;\r\n }\r\n } else if (numPlayers == 4) {\r\n if(numCityAreaCard >= 4){\r\n return true;\r\n }\r\n }\r\n }\r\n \r\n return false;\r\n }", "String getPlayer();", "private boolean createPlayers(){\n if(validatePlayerSettings()){\n ArrayList<Color> colors = createColorArray();\n\n // Player 1\n Main.PLAYER.add(new Player(P1text.getText(), colors.get(0)));\n // Player or AI\n if (P2label.getText().contains(\"PLAYER\")){\n Main.PLAYER.add(new Player(P2text.getText(), colors.get(1)));\n }\n else if (P2label.getText().contains(\"AI\")){\n Main.PLAYER.add(new AI(P2text.getText(), colors.get(1)));\n }\n // Player or AI 3\n if (P3label.getText().contains(\"PLAYER\")){\n Main.PLAYER.add(new Player(P3text.getText(), colors.get(2)));\n }\n else if (P3label.getText().contains(\"AI\")){\n Main.PLAYER.add(new AI(P3text.getText(), colors.get(2)));\n }\n // Player or AI 4\n if (P4label.getText().contains(\"PLAYER\")){\n Main.PLAYER.add(new Player(P4text.getText(), colors.get(3)));\n }\n else if (P4label.getText().contains(\"AI\")){\n Main.PLAYER.add(new AI(P4text.getText(), colors.get(3)));\n }\n // Player or AI 5\n if (P5label.getText().contains(\"PLAYER\")){\n Main.PLAYER.add(new Player(P5text.getText(), colors.get(4)));\n }\n else if (P5label.getText().contains(\"AI\")){\n Main.PLAYER.add(new AI(P5text.getText(), colors.get(4)));\n }\n // Player or AI 6\n if (P6label.getText().contains(\"PLAYER\")){\n Main.PLAYER.add(new Player(P6text.getText(), colors.get(5)));\n }\n else if (P6label.getText().contains(\"AI\")){\n Main.PLAYER.add(new AI(P6text.getText(), colors.get(5)));\n }\n return true;\n }\n else{\n DebugLabel.setText(\"All players must have different colors and names!\");\n return false;\n }\n }", "public int getPlayerId();", "public boolean isWin_DragonKingOfArms(){\r\n // player got LordSelachii card\r\n /*Player playerHoldCard = null;\r\n for (Player player : discWorld.getPlayer_HASH().values()) {\r\n if (player.getPersonalityCardID() == 5) {\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }*/\r\n int count = 0;\r\n for(TroubleMarker troubleMarker : discWorld.getTroubleMarker_HASH().values()){\r\n if(troubleMarker.getAreaNumber() != ConstantField.DEFAULT_PIECE_AREA_NUMBER){\r\n count++;\r\n }\r\n }\r\n \r\n if(count >= 8){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n \r\n }", "public boolean hasPlayer() {\n return playerBuilder_ != null || player_ != null;\n }" ]
[ "0.6172635", "0.6139824", "0.6082893", "0.6023534", "0.58414215", "0.5766416", "0.565272", "0.56414765", "0.56411904", "0.56313396", "0.5627934", "0.5607794", "0.5543442", "0.55251443", "0.55127525", "0.5509534", "0.5505904", "0.5489636", "0.54850376", "0.54820985", "0.54800725", "0.5476958", "0.54713386", "0.54692847", "0.5468176", "0.5463507", "0.5458604", "0.5455067", "0.545163", "0.5431374", "0.5415159", "0.5411684", "0.5406566", "0.5399457", "0.53874606", "0.53789586", "0.53789586", "0.53789586", "0.5366872", "0.5361508", "0.5358458", "0.535486", "0.53492", "0.5349039", "0.53487754", "0.53472817", "0.53464806", "0.5339971", "0.5335161", "0.5329016", "0.5327852", "0.5323814", "0.5316488", "0.5311269", "0.53028595", "0.530205", "0.52988344", "0.52882284", "0.5281599", "0.5279139", "0.5271189", "0.5268459", "0.52661395", "0.52651477", "0.52494675", "0.5249427", "0.5243291", "0.52404326", "0.5237878", "0.5236355", "0.5215373", "0.5214042", "0.52052283", "0.5190688", "0.51864654", "0.5185069", "0.5182926", "0.5178153", "0.5177447", "0.51761365", "0.5168203", "0.51668227", "0.5161371", "0.5159934", "0.5158422", "0.5147441", "0.51434636", "0.51419896", "0.5134354", "0.5132094", "0.5128098", "0.5126162", "0.5125971", "0.51131", "0.5111758", "0.5111406", "0.51104367", "0.5097642", "0.5088212", "0.5087429" ]
0.523622
70
Created by Vinh on 10/17/2017.
public interface DetailView { void initTabHost(JSONObject mJsonObject); void ExecutionUnitReuilt(String ExecutionUnit); void setAdapterListFileAttach(FileAttachAdapter attachAdapter, ArrayList<AttachFile> arrAttach, String TabName); void setVisibilitiesButtonForward(String Resuilt, String TabName); void setAdapterListDetais(List<DetailsRows> arrDetails, String TabName); void setAdapterMsgGroupTask(List<GroupMsgTasksRow> arrDocConnect,String TabName); void setAdapterContentTask(List<ContentTasksRow> arrDocConnect, String TabName, ModuleRow moduleRow); void setAdapterReportTask(List<ReportTasksRow> arrDocConnect,String TabName, ModuleRow moduleRow); void SetViewList(AndroidTreeView treeView,String TabName); void setAdapterFeedBack(List<FeedBackRow> arrFeedBack,String TabName, ModuleRow moduleRow); void deleteNotify(); void CheckShowMenuOther(JSONObject mOther, String other); void closeProgress(); void ToastError(String s); boolean isDestroy(); void getContextMenu(ArrayList<ContextMenuForwardRow> arrContextMenu); void startIntent(); void showError(); void inseartInputPersonDatabase(String s); void DetleteRow(boolean mResuilt); void setVisible(int i); void getArrMenuDialog(List<DialogMenuDetailAdapter.ItemMenu> arrMenu); void startAddTransfer(int tapType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public void init() {\n }", "public void mo4359a() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n void init() {\n }", "private void m50366E() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void init() {\n\n\t}", "@Override\n public void init() {}", "protected boolean func_70814_o() { return true; }", "@Override\n public void memoria() {\n \n }", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n protected void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n public void initialize() { \n }", "private void strin() {\n\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "public void mo6081a() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private MetallicityUtils() {\n\t\t\n\t}" ]
[ "0.61232597", "0.5930332", "0.5879437", "0.5868008", "0.58193326", "0.58010423", "0.58010423", "0.5736235", "0.5729505", "0.5696166", "0.5688901", "0.56754607", "0.566688", "0.56394476", "0.56350446", "0.562902", "0.5618807", "0.5592462", "0.5590476", "0.5569544", "0.55667543", "0.55634147", "0.55465466", "0.5543264", "0.5543264", "0.5543264", "0.5543264", "0.5543264", "0.55337757", "0.55301714", "0.5512957", "0.55098045", "0.55081105", "0.54969203", "0.54907894", "0.54902637", "0.54843587", "0.5482977", "0.5482977", "0.5482977", "0.5482977", "0.5482977", "0.5482977", "0.5480438", "0.54648185", "0.54577625", "0.54577625", "0.5455101", "0.54530567", "0.54530567", "0.5452346", "0.54495895", "0.54385966", "0.54339874", "0.5430436", "0.54274744", "0.5426778", "0.5423144", "0.54219705", "0.54219705", "0.54219705", "0.54173094", "0.54168034", "0.54106194", "0.54106194", "0.5406896", "0.5401884", "0.5401884", "0.5401884", "0.53959733", "0.53959733", "0.53959733", "0.53904086", "0.53902113", "0.53841966", "0.5381488", "0.53526837", "0.53499585", "0.53470093", "0.53453565", "0.53441674", "0.53441674", "0.53441674", "0.53441674", "0.53441674", "0.53441674", "0.53441674", "0.53349924", "0.5321073", "0.5313857", "0.5306211", "0.52947176", "0.5282443", "0.5280474", "0.52795357", "0.52628744", "0.5261405", "0.5261405", "0.52610564", "0.52430075", "0.52402526" ]
0.0
-1
This will create necessary network resources for UPnP right away System.out.println("Starting Cling...");
@Override public void run() { UpnpService upnpService = new UpnpServiceImpl(listener); // Send a search message to all devices and services, they should respond soon upnpService.getControlPoint().search(new STAllHeader()); // Let's wait 10 seconds for them to respond // System.out.println("Waiting 10 seconds before shutting down..."); try { Thread.sleep(10000); } catch (InterruptedException e) { e.printStackTrace(); } // Release all resources and advertise BYEBYE to other UPnP devices // System.out.println("Stopping Cling..."); upnpService.shutdown(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createAndListen() {\n\n\t\t\n\t}", "public void autonomousInit() {\n \tNetworkCommAssembly.start();\n }", "protected void setupUpnp() {\n try {\n GatewayDiscover discover = new GatewayDiscover();\n Map<InetAddress, GatewayDevice> devices = discover.discover();\n for (Map.Entry<InetAddress, GatewayDevice> entry : devices.entrySet()) {\n GatewayDevice gw = entry.getValue();\n logger.info(\"Found a gateway device: local address = {}, external address = {}\",\n gw.getLocalAddress().getHostAddress(), gw.getExternalIPAddress());\n\n gw.deletePortMapping(config.p2pListenPort(), \"TCP\");\n gw.addPortMapping(config.p2pListenPort(), config.p2pListenPort(), gw.getLocalAddress().getHostAddress(),\n \"TCP\", \"Semux P2P network\");\n }\n } catch (IOException | SAXException | ParserConfigurationException e) {\n logger.info(\"Failed to add port mapping\", e);\n }\n }", "private void initPeers() {\n this.servers.clear();\n this.clients.clear();\n\n if (SharedPrefUtils.isConnectionNfcEnabled(this)) {\n clients.add(new NFCClient(this, walletServiceBinder));\n servers.add(new NFCServerACSCLTV(this, walletServiceBinder));\n servers.add(new NFCServerCLTV(this, walletServiceBinder));\n\n }\n\n if (SharedPrefUtils.isConnectionBluetoothLeEnabled(this)) {\n clients.add(new BluetoothLEClient(this, walletServiceBinder));\n servers.add(new BluetoothLEServer(this, walletServiceBinder));\n }\n\n if (SharedPrefUtils.isConnectionWiFiDirectEnabled(this)) {\n clients.add(new WiFiClient(this, walletServiceBinder));\n servers.add(new WiFiServer(this, walletServiceBinder));\n }\n\n for (AbstractServer server : servers) {\n server.setPaymentRequestDelegate(getClientPaymentRequestDelegate());\n }\n\n for (AbstractClient client : clients) {\n client.setPaymentRequestDelegate(getClientPaymentRequestDelegate());\n if(client instanceof NFCClient) {\n client.start();\n }\n }\n\n }", "public void initialiseCRISTDiscovery() {\n\t}", "private void setUpNetworking() {\n\t\ttry {\n\t\t\t// setup a socket to the server\n\t\t\tsock = new Socket(\"127.0.0.1\", 5000);\n\n\t\t\t// flow for reader client -> buffered reader -> inputstream reader\n\t\t\tInputStreamReader streamReader = new InputStreamReader(sock.getInputStream());\n\t\t\treader = new BufferedReader(streamReader);\n\n\t\t\t// flow for writer client -> printwriter ->outputstream -> server\n\t\t\twriter = new PrintWriter(sock.getOutputStream());\n\t\t\tSystem.out.println(\"networking established\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "protected void initializeNetwork() {\n logger.debug(\"Initialising ZWave controller\");\n\n // Create config parameters\n Map<String, String> config = new HashMap<String, String>();\n config.put(\"masterController\", isMaster.toString());\n config.put(\"sucNode\", sucNode.toString());\n config.put(\"secureInclusion\", secureInclusionMode.toString());\n config.put(\"networkKey\", networkKey);\n config.put(\"wakeupDefaultPeriod\", wakeupDefaultPeriod.toString());\n\n // TODO: Handle soft reset?\n controller = new ZWaveController(this, config);\n controller.addEventListener(this);\n\n // Start the discovery service\n discoveryService = new ZWaveDiscoveryService(this, searchTime);\n discoveryService.activate();\n\n // And register it as an OSGi service\n discoveryRegistration = bundleContext.registerService(DiscoveryService.class.getName(), discoveryService,\n new Hashtable<String, Object>());\n }", "public void setup_servers()\n {\n // get ServerInfo\n ServerInfo t = new ServerInfo();\n // all 3 servers\n for(int i=0;i<3;i++)\n {\n // get the server IP and port info\n String t_ip = t.hmap.get(i).ip;\n int t_port = Integer.valueOf(t.hmap.get(i).port);\n Thread x = new Thread()\n {\n public void run()\n {\n try\n {\n Socket s = new Socket(t_ip,t_port);\n // SockHandle instance with svr_hdl true and rx_hdl false as this is the socket initiator\n SockHandle t = new SockHandle(s,my_ip,my_port,my_c_id,c_list,s_list,false,true,cnode);\n }\n catch (UnknownHostException e) \n {\n \tSystem.out.println(\"Unknown host\");\n \tSystem.exit(1);\n } \n catch (IOException e) \n {\n \tSystem.out.println(\"No I/O\");\n e.printStackTrace(); \n \tSystem.exit(1);\n }\n }\n };\n \n x.setDaemon(true); \t// terminate when main ends\n x.setName(\"Client_\"+my_c_id+\"_SockHandle_to_Server\"+i);\n x.start(); \t\t\t// start the thread\n }\n }", "public void Start(){\n Registry registry = null;\n try{\n for(int i=0;i<nsize;i++){\n registry= LocateRegistry.getRegistry(this.ports[i]);\n PRMI stub = (PRMI) registry.lookup(\"DCMP\");\n System.out.println(\"env calls Init to man \"+i);\n stub.InitHandler(new Request(this.id, -1, 'e'));\n D++;\n }\n\n } catch(Exception e){\n return;\n }\n return;\n }", "private void init() {\n\t\tsendPacket(new Packet01Login(\"[you have connected to \"+UPnPGateway.getMappedAddress()+\"]\", null));\n\t}", "@Override\r\n\tpublic void startup() {\n\t\t\r\n\t\tString wechatID = \"gh_f49bb9a333b3\";\r\n\t\tString Token = \"spotlight-wechat\";\r\n\t\t\r\n\t\tNoIOClient client = new NoIOClient(\"mg.protel.com.hk\",5010);\r\n\t\tclient.addCRouter(wechatID, Token,null,null);\r\n\t\t\r\n\t\tclient.startup();\r\n\r\n\t}", "public Intermediary()\r\n\t{\r\n\t\ttry {\r\n\t\t\treceiveSocket = new DatagramSocket(68);\r\n\t\t\tsendReceiveSocket = new DatagramSocket();\t\t\t\r\n\t\t\t\r\n\t\t} catch (SocketException se) {\r\n\t\t\tse.printStackTrace();\r\n\t\t\tSystem.exit(1);\r\n\t\t} \r\n\t\t\r\n\t\treqID = 1;\r\n\t\tSystem.out.println(\"===== INTERMEDIATE HOST STARTED =====\\n\");\r\n\t}", "private void init(String ip, int port, String name) {\n this.settings = new Settings(ip, port, name);\n this.network = new Network(this);\n this.clientGUI = new ClientGUI(this);\n //\n new Thread(network::start).start();\n }", "public void establishConnection() {\n httpNetworkService = new HTTPNetworkService(handler);\n }", "public void setup_connections()\n {\n setup_servers();\n setup_clients();\n }", "@Override\n @SuppressWarnings(\"CallToPrintStackTrace\")\n public void simpleInitApp() {\n \n\n try {\n System.out.println(\"Using port \" + port);\n // create the server by opening a port\n server = Network.createServer(port);\n server.start(); // start the server, so it starts using the port\n } catch (IOException ex) {\n ex.printStackTrace();\n destroy();\n this.stop();\n }\n System.out.println(\"Server started\");\n // create a separat thread for sending \"heartbeats\" every now and then\n new Thread(new NetWrite()).start();\n server.addMessageListener(new ServerListener(), ChangeVelocityMessage.class);\n // add a listener that reacts on incoming network packets\n \n }", "public void init()\n {\n boolean tHotspot = true;\n // Figures below valid for 1000TPS\n double tGcRateFactor = 1000.0D / ((1000.0D * 1000.0) * cClientTransPerMicro) ;\n if (tHotspot)\n {\n // tax average 6ms, max 65, every 20 seconds\n // me1 27ms, max 83ms, every 20 seconds\n // me1s 27ms, max 87, every 22seconds\n mTaxJvm = new GcService(9908.0D*1000 * tGcRateFactor, 9.0D*1000); \n mMeJvm = new GcService(2509.0D*1000 * tGcRateFactor, 17.0D*1000); \n mMeStandbyJvm = new GcService(2257.0D*1000 * tGcRateFactor, 15.0D*1000);\n }\n else\n {\n // Metronome \n mTaxJvm = new GcService(100*1000, 500);\n mMeJvm = new GcService(100*1000, 500);\n mMeStandbyJvm = new GcService(100*1000, 500);\n }\n\n String tName;\n mClient.init(new ServerConfig(mClient, mClientTaxNwDelay, \"Client\", cClientCount, cClientCount, 0.1));\n {\n mClientTaxNwDelay.init(new ServerConfig(mClientTaxNwDelay, mTaxTcp, \"ClientTaxNwDelay\", 1, 1, 0.1)); \n {\n tName = \"TaxServer\";\n mTaxTcp.init(new ServerConfig(mTaxJvm, mTaxTcp, mTaxPool, tName + \"_Tcp\", 1, 1, 22)); \n mTaxPool.init(new ServerConfig(mTaxJvm, mTaxPool, mTaxMeNwDelay, tName + \"_ServerPool\", 5, 150, 11)); \n\n {\n mTaxMeNwDelay.init(new ServerConfig(mTaxMeNwDelay, mMePrimaryTcp, \"TaxMeNwDelay\", 1, 1, 100)); \n {\n tName=\"MatchingEngine\";\n mMePrimaryTcp.init(new ServerConfig(mMeJvm, mMePrimaryTcp, mMePrimaryServerPool, tName + \"Tcp\", 1, 1, 14));\n mMePrimaryServerPool.init(new ServerConfig(mMeJvm, mMePrimaryServerPool, mMePrimarySorter, tName + \"_ServerPool\", 5, 150, 12)); \n mMePrimarySorter.init(new ServerConfig(mMeJvm, mMePrimarySorter, mMePrimaryChainUnit0, tName + \"_Sorter\", 1, 1, 13));\n mMePrimaryChainUnit0.init(new ServerConfig(mMeJvm, mMePrimaryChainUnit0, mMePrimaryPostChain, tName + \"_ChainUnit0\", 1, 1, 59)); \n mMePrimaryBatchSender.init(new ServerConfig(mMeJvm, mMePrimaryBatchSender, mMeMesNwDelay, tName + \"_BatchSender\", 10, 10, 1)); \n mMePrimaryRecoveryLog.init(new ServerConfig(mMeJvm, mMePrimaryRecoveryLog, mMePrimaryPostChain, tName + \"_RecoveryLog\", 1, 1, 50)); \n mMePrimaryPostChain.init(new ServerConfig(mMeJvm, mMePrimaryPostChain, mMePrimaryResponsePool, tName + \"_PostChain\", 1, 1, 46)); \n mMePrimaryResponsePool.init(new ServerConfig(mMeJvm, mMePrimaryResponsePool, mMeTaxNwDelay, tName + \"_ResponsePool\", 5, 25, 16)); \n\n {\n mMeMesNwDelay.init(new ServerConfig(mMeMesNwDelay, mMeStandbyTcp, \"MeMesNwDelay\", 1, 1, 90)); \n {\n tName=\"MatchingEngineStandby\";\n mMeStandbyTcp.init(new ServerConfig(mMeStandbyJvm, mMeStandbyTcp, mMeStandbyServerPool, tName + \"_Tcp\", 1, 1, 13)); \n mMeStandbyServerPool.init(new ServerConfig(mMeStandbyJvm, mMeStandbyServerPool, mMesMeNwDelay, tName + \"_ServerPool\", 5, 150, 18)); \n }\n mMesMeNwDelay.init(new ServerConfig(mMesMeNwDelay, mMePrimaryPostChain, \"MesMeNwDelay\", 1, 1, 90)); \n }\n }\n mMeTaxNwDelay.init(new ServerConfig(mMeTaxNwDelay, mTaxCollector, \"MeTaxNwDelay\", 1, 1, 100));\n }\n } \n mTaxCollector.init(new ServerConfig(mTaxJvm, mTaxCollector, mTaxClientNwDelay, tName + \"_Collector\", 1, 1, 0.1)); \n mTaxClientNwDelay.init(new ServerConfig(mTaxClientNwDelay, null, \"TaxClientNwDelay\", 1, 1, 0.1));\n }\n }", "public void startNetwork(int port);", "private void bankSetup() throws IOException {\n bankProtocol = new BankProtocol(this);\n notificationServer = new NotificationServer(portNumber, bankProtocol);\n Thread serverThread = new Thread(notificationServer);\n serverThread.start();\n }", "protected void startAll() throws Throwable {\n\t\tthis.udpServer = new UDPServer(this.agent);\n\t\tthis.connectionServer = new TCPServer(this.agent);\n\t}", "ConferenceScheduleBuilderService startNetworking();", "private void initializeNA(){\n name = \"N/A\";\n key = \"N/A\";\n serverIpString = \"N/A\";\n serverPort = 0;\n clientListenPort = 0;\n }", "@Override\n\tpublic void onNetStart(String id) {\n\t\t\n\t}", "protected void setup() {\n\t\t\t\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\t\t\t\tdfd.setName(getAID());\n\t\t\t\t\tServiceDescription sd = new ServiceDescription();\n\t\t\t\t\tsd.setType(\"wHOST\");\n\t\t\t\t\tsd.setName(\"wumpus-host-\" + Math.random());\n\t\t\t\t\tdfd.addServices(sd);\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tDFService.register(this, dfd);\n\t\t\t\t\t\thostMap = new WumpusMapHost();\n\t\t\t\t\t\tSystem.out.println(\"Registered as a host in the DF Service.\");\n\t\t\t\t\t\tlogic = new WumpusLogic();\n\t\t\t\t\t\tlogic.setHostMap(hostMap.getMap());\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\tcatch (FIPAException fe) {\n\t\t\t\t\t\tfe.printStackTrace();\n\t\t\t\t\t}\n\t\t\n\t\t// Printing out a message stating that the agent is ready for service.\n\t\tSystem.out.println(\"Wumpus host \"+getAID().getName()+\" is ready.\");\n\t\t\n\t\taddBehaviour(new TickerBehaviour(this, 1000) {\n\t\t\tprotected void onTick() {\n\t\t\t\tmyAgent.addBehaviour(new HandleRequest());\n\t\t\t}\n\t\t});\n\t \t\n\t\t\n\t}", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n public void startup(boolean withSigHandlers) throws DBusException {\n if (running)\r\n shutdown();\r\n\r\n this.withSigHandlers = withSigHandlers;\r\n\r\n dbusConnection = DBusConnection.getConnection(DBusConnection.SYSTEM);\r\n\r\n DBus dbus = dbusConnection.getRemoteObject(\"org.freedesktop.DBus\", \"/\", DBus.class);\r\n\r\n nwmDbusBusName = dbus.GetNameOwner(DBUS_NETWORKMANAGER);\r\n\r\n nwmObjectManager = dbusConnection.getRemoteObject(DBUS_NETWORKMANAGER, \"/org/freedesktop/NetworkManager\",\r\n ObjectManager.class);\r\n /*\r\n * for (Entry<DBusInterface, Map<String, Map<String, Variant<?>>>> object :\r\n * nwmObjectManager.GetManagedObjects() .entrySet()) { log.info(\"Object: {}\",\r\n * object.getKey().getObjectPath()); }\r\n */\r\n nwmNetworkManager = dbusConnection.getRemoteObject(DBUS_NETWORKMANAGER, \"/org/freedesktop/NetworkManager\",\r\n NetworkManager.class);\r\n\r\n nwmProperties = dbusConnection.getRemoteObject(DBUS_NETWORKMANAGER, \"/org/freedesktop/NetworkManager\",\r\n Properties.class);\r\n\r\n nwmSettings = dbusConnection.getRemoteObject(DBUS_NETWORKMANAGER, \"/org/freedesktop/NetworkManager/Settings\",\r\n NetworkManager.Settings.class);\r\n\r\n // Add signal handlers\r\n if (withSigHandlers)\r\n addSigHandlers();\r\n\r\n /*\r\n * Loop through devices and set up the wireless Device\r\n */\r\n for (DBusInterface device : getAllDevices()) {\r\n Properties deviceProperties = dbusConnection.getRemoteObject(DBUS_NETWORKMANAGER, device.getObjectPath(),\r\n Properties.class);\r\n Variant<UInt32> deviceType = deviceProperties.Get(NWM_DEVICE_INTERFACE, \"DeviceType\");\r\n\r\n if (NMDeviceType.NM_DEVICE_TYPE_WIFI.equals(deviceType.getValue())) {\r\n nwmWireless = new NWMDeviceWireless(this, device.getObjectPath());\r\n nwmDevice = new NWMDevice(this, device.getObjectPath());\r\n nwmDevice.startup(false);\r\n nwmWireless.startup();\r\n break;\r\n }\r\n }\r\n\r\n if (nwmWireless == null) {\r\n log.error(\"No wireless device found\");\r\n }\r\n\r\n running = true;\r\n log.debug(\"NWM Provider started.\");\r\n }", "@Override\n\tpublic void teleopInit() {\n\t\tservoCIMCommand.start();\n\t\tmonitorCommand.start();\n\t\twindowCommand.start();\n\t\t\n\t}", "public void setup_clients()\n {\n ClientInfo t = new ClientInfo();\n for(int i=0;i<5;i++)\n {\n // for mesh connection between clients\n // initiate connection to clients having ID > current node's ID\n if(i > my_c_id)\n {\n // get client info\n String t_ip = t.hmap.get(i).ip;\n int t_port = Integer.valueOf(t.hmap.get(i).port);\n Thread x = new Thread()\n {\n \tpublic void run()\n {\n try\n {\n Socket s = new Socket(t_ip,t_port);\n // SockHandle instance with svr_hdl false and rx_hdl false as this is the socket initiator\n // and is a connection to another client node\n SockHandle t = new SockHandle(s,my_ip,my_port,my_c_id,c_list,s_list,false,false,cnode);\n }\n catch (UnknownHostException e) \n {\n \tSystem.out.println(\"Unknown host\");\n \tSystem.exit(1);\n } \n catch (IOException e) \n {\n \tSystem.out.println(\"No I/O\");\n e.printStackTrace(); \n \tSystem.exit(1);\n }\n \t}\n };\n \n x.setDaemon(true); \t// terminate when main ends\n x.setName(\"Client_\"+my_c_id+\"_SockHandle_to_Client\"+i);\n x.start(); \t\t\t// start the thread\n }\n }\n\n // another thread to check until all connections are established ( ie. socket list size =4 )\n // then send a message to my_id+1 client to initiate its connection setup phase\n Thread y = new Thread()\n {\n public void run()\n {\n int size = 0;\n // wait till client connections are setup\n while (size != 4)\n {\n synchronized(c_list)\n {\n size = c_list.size();\n }\n }\n // if this is not the last client node (ID =4)\n // send chain init message to trigger connection setup\n // phase on the next client\n if(my_c_id != 4)\n {\n c_list.get(my_c_id+1).send_setup();\n System.out.println(\"chain setup init\");\n }\n // send the setup finish, from Client 4\n // indicating connection setup phase is complete\n else\n {\n c_list.get(0).send_setup_finish();\n }\n }\n };\n \n y.setDaemon(true); \t// terminate when main ends\n y.start(); \t\t\t// start the thread\n }", "public void start(){\n log.debug(\"Starting Host Router\");\n lobbyThread = pool.submit(new Runnable() {\n public void run() {\n waitForClients();\n }\n });\n }", "private void initialize() throws IOException {\n // All of this node's files are kept in this directory.\n File dir = new File(localDir);\n if (!dir.exists()) {\n if (!dir.mkdirs()) {\n throw new IOException(\"Unable to create directory: \" +\n dir.toString());\n }\n }\n\n Collection<File> data = FileUtils.listFiles(dir,\n FileFilterUtils.trueFileFilter(),\n FileFilterUtils.trueFileFilter());\n String[] files = new String[data.size()];\n Iterator<File> it = data.iterator();\n for (int i = 0; it.hasNext(); i++) {\n files[i] = it.next().getPath().substring(dir.getPath().length() + 1);\n }\n\n StartupMessage msg = new StartupMessage(InetAddress.getLocalHost()\n .getHostName(), port, id, files);\n msg.send(nameServer, namePort);\n }", "private void initConfig() {\n Path walletPath;\n Wallet wallet;\n\n // load a CCP\n Path networkConfigPath; \n \n try {\n \t\n \tif (!isLoadFile) {\n // Load a file system based wallet for managing identities.\n walletPath = Paths.get(\"wallet\");\n wallet = Wallet.createFileSystemWallet(walletPath);\n\n // load a CCP\n networkConfigPath = Paths.get(\"\", \"..\", \"basic-network\", configFile);\n \n builder = Gateway.createBuilder();\n \n \tbuilder.identity(wallet, userId).networkConfig(networkConfigPath).discovery(false);\n \t\n \tisLoadFile = true;\n \t}\n } catch (Exception e) {\n \te.printStackTrace();\n \tthrow new RuntimeException(e);\n }\n\t}", "public void teleopInit(){\r\n drive.setupTeleop();\r\n shooter.setupTeleop();\r\n pickup.setupTeleop();\r\n }", "public void run() {\n Runtime.getRuntime().addShutdownHook(new MNOSManagerShutdownHook(this));\n\n OFNiciraVendorExtensions.initialize();\n\n this.startDatabase();\n\n try {\n final ServerBootstrap switchServerBootStrap = this\n .createServerBootStrap();\n\n this.setServerBootStrapParams(switchServerBootStrap);\n\n switchServerBootStrap.setPipelineFactory(this.pfact);\n final InetSocketAddress sa = this.ofHost == null ? new InetSocketAddress(\n this.ofPort) : new InetSocketAddress(this.ofHost,\n this.ofPort);\n this.sg.add(switchServerBootStrap.bind(sa));\n }catch (final Exception e){\n throw new RuntimeException(e);\n }\n\n }", "@Override\r\n\tpublic void initial() {\n\t\ttry {\r\n\t\t\tserverSocket = new ServerSocket(port);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// System.out.println(\"LocalProxy run on \" + port);\r\n\t}", "private void startUp () {\n NativeMethodBroker.loadLibrary(false);\n try {\n start_up();\n } catch (UnsatisfiedLinkError e) {\n try {\n NativeMethodBroker.loadLibrary(true);\n NativeMethodBroker.traceln(AX_PROGRESS, \"There apparently were problems \" +\n \"in initially loading JavaContainer.dll. \" +\n \"It appears to be ok now. Error message \" +\n \"was \" + e.getMessage());\n start_up();\n } catch (UnsatisfiedLinkError e2) {\n NativeMethodBroker.traceln(AX_ERROR, fatalErrorMessage +\n \" Error message was: \" + e2.getMessage());\n // Really should exit here.\n // System.exit(-1);\n }\n }\n }", "protected void startConnect() {\n if (tcp) {\n connection = new TCPConnection(this);\n } else {\n connection = new UDPConnection(this, udpSize);\n }\n connection.connect(remoteAddr, localAddr);\n }", "private void startDiscovery() {\n client.startDiscovery(getResources().getString(R.string.service_id), endpointDiscoveryCallback, new DiscoveryOptions(STRATEGY));\n }", "private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}", "public void init(){\n\t\tmultiplexingClientServer = new MultiplexingClientServer(selectorCreator);\n\t}", "private synchronized void initNetwork() {\n if (connectivityManager == null) {\n ConnectivityManager tryConnectivityManager =\n (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n TelephonyManager tryTelephonyManager =\n (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);\n\n // Assign to member vars only after all the get calls succeeded,\n // so that either all get assigned, or none get assigned.\n connectivityManager = tryConnectivityManager;\n telephonyManager = tryTelephonyManager;\n \n // Some interesting info to look at in the logs\n NetworkInfo[] infos = connectivityManager.getAllNetworkInfo();\n for (NetworkInfo networkInfo : infos) {\n Logger.i(\"Network: \" + networkInfo);\n }\n Logger.i(\"Phone type: \" + getTelephonyPhoneType() +\n \", Carrier: \" + getTelephonyCarrierName());\n }\n assert connectivityManager != null;\n assert telephonyManager != null;\n }", "private void createAndStartNetworkCheckThread(final Shell shell,\n final ToolItem widgetItem, final Image off, final Image on) {\n new Thread(new Runnable() {\n \t\t\tpublic void run() {\n \t\t\t\twhile (!stop) {\n \t\t\t\t\ttry {\n \t\t\t\t\t\tThread.sleep(5000);\n \t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\tlog.error(e.getMessage());\n \t\t\t\t\t}\n \t\t\t\t\tif (!shell.isDisposed()) {\n \t\t\t\t\t\ttoolbar.getDisplay().asyncExec(new Runnable() {\n \t\t\t\t\t\t\tpublic void run() {\n \t\t\t\t\t\t\t\tif (isInternetReachable()) {\n \t\t\t\t\t\t\t\t\tlog.info(\"Connection - ON\");\n \t\t\t\t\t\t\t\t\twidgetItem.setImage(on);\n \t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\tlog.info(\"Connection - OFF\");\n \t\t\t\t\t\t\t\t\twidgetItem.setImage(off);\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}).start();\n }", "@Override\n public void initialize(final URL location, final ResourceBundle resources) {\n Network.start();\n initializeDragAndDrop();\n Thread t = new Thread(() -> {\n try {\n while (true) {\n /*\n 'while' statement cannot complete without throwing an exception less... (Ctrl+F1)\n Inspection info: Reports for, while, or do statements which can only exit by throwing an exception.\n While such statements may be correct, they are often a symptom of coding errors.\n */\n AbstractMessage am = Network.readObject();\n\n if (am instanceof FileMessage) {\n // Receiving file from server\n FileMessage fm = (FileMessage) am;\n downloadFile(fm);\n }\n\n // Receive list of client files from server\n if (am instanceof FileListMessage) {\n FileListMessage flm = (FileListMessage) am;\n refreshRemoteFilesList(flm);\n }\n }\n } catch (ClassNotFoundException | IOException e) {\n e.printStackTrace();\n } finally {\n Network.stop();\n }\n });\n t.setDaemon(true);\n t.start();\n }", "@Override\n\tpublic void onCreate() \n\t{\n\t\tconManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);\n\n\t\t// Timer is used to get info every UPDATE_TIME_PERIOD;\n\t\ttimer = new Timer(); \n\n\n\n\t\tThread thread = new Thread()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void run() {\t\t\t\n\n\t\t\t\tRandom random = new Random();\n\t\t\t\tint tryCount = 0;\n\t\t\t\twhile (socketOperator.startListening(10000 + random.nextInt(20000) ) == 0 )\n\t\t\t\t{\t\t\n\t\t\t\t\ttryCount++; \n\t\t\t\t\tif (tryCount > 10)\n\t\t\t\t\t{\n\t\t\t\t\t\t// if it can't listen a port after trying 10 times, give up...\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\t\t\n\t\tthread.start();\n\t}", "public void start() throws Exception {\n\n Location location = (locationManager != null && locationManager.getLocation() != null) ? locationManager.getLocation() : null;\n\n if(location == null)\n location = new NetworkNodeCommunicationDeviceLocation(\n 0.0 ,\n 0.0,\n 0.0 ,\n 0 ,\n 0.0 ,\n System.currentTimeMillis(),\n LocationSource.UNKNOWN\n );\n\n NodeContext.add(NodeContextItem.LOCATION, location);\n\n this.initialize();\n LOG.info(\"Starting the internal server\");\n this.server.start();\n LOG.info(\"Server URI = \" + this.server.getURI());\n this.server.join();\n\n\n\n }", "Network_Resource createNetwork_Resource();", "private void establishConnection() {\n\n try {\n\n for(Clone clone:this.clones){\n ClearConnection connection = new ClearConnection();\n connection.connect(clone.getIp(), clone.getOffloadingPort(), 5 * 1000);\n this.connections.add(connection);\n }\n\n this.protocol = new ERAMProtocol();\n this.ode = new ERAMode();\n\n } catch (Exception e) {\n Log.e(TAG,\"Connection setup with the Remote Server failed - \" + e);\n }\n }", "public void initAsg(){\n\t\tConfigure conf = Configure.getConf();\n\t\tint min = conf.getMaxNum();\n\t\t\n\t\t//launch min number of instances\n\t\tTimeManager.PrintCurrentTime(\"Init Cluster, launching %d DC\\n\", min);\n\t\tfor(int i=0; i < min; i++){\n\t\t\tConnToDC dc = nova.launchOne(conf.getInatanceName());\n\t\t\tif(dc != null){\n\t\t\t\tdcList.offer(dc);\n\t\t\t\tlb.addDC(dc.getIp());\n\t\t\t\tTimeManager.PrintCurrentTime(\"Successfully launch 1 DC [%s:%s]\\n\", \n\t\t\t\t\t\tdc.getIp(), dc.getId());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ;\n\t}", "private void initializeStartup()\n {\n /* Turn off Limelight LED when first started up so it doesn't blind drive team. */\n m_limelight.turnOffLED();\n\n /* Start ultrasonics. */\n m_chamber.startUltrasonics();\n }", "protected void setup() {\n /**\n * Content manager manages the content languages and ontologies \"known\" by a given agent.\n * We register new languages that is required that our agent knows.\n * SLCodec is the codec class for the FIPA-SLn languages.\n * MobilityOntology is the class that represents the ontology used for JADE mobility.\n */\n getContentManager().registerLanguage(new SLCodec());\n getContentManager().registerOntology(MobilityOntology.getInstance());\n\n /**\n * Create containers. ProfileImpl allows us to set boot-parameters for the new containers.\n */\n homeContainer = getContainerController(); //retrieve the containercontroller that this agent lives in\n createdContainers = new AgentContainer[3]; //we require 3 containers for this scenario\n ProfileImpl curatorContainer1 = new ProfileImpl();\n curatorContainer1.setParameter(ProfileImpl.CONTAINER_NAME, \"Curator-Container-1\");\n ProfileImpl curatorContainer2 = new ProfileImpl();\n curatorContainer2.setParameter(ProfileImpl.CONTAINER_NAME, \"Curator-Container-2\");\n ProfileImpl artistManagerContainer = new ProfileImpl();\n artistManagerContainer.setParameter(ProfileImpl.CONTAINER_NAME, \"Artistmanager-Container\");\n createdContainers[0] = runtime.createAgentContainer(curatorContainer1);\n createdContainers[1] = runtime.createAgentContainer(curatorContainer2);\n createdContainers[2] = runtime.createAgentContainer(artistManagerContainer);\n doWait(2000); //wait while containers initializes\n\n /**\n * Request a list of all containers on the platform from AMS\n */\n getAllContainers();\n\n /**\n * Initialize gui\n */\n\n myGui = new ControllerAgentGUI(this, (String[]) containersOnPlatform.keySet().toArray(new String[containersOnPlatform.keySet().size()]));\n myGui.setVisible(true);\n }", "public void setup(){\n\t\ttry{\n\t\t\tSocket serverSocket;\n\t\t\tboolean serverRunning = true;\n\t\t\twhile(serverRunning == true){\n\t\t\t\t serverSocket = server.accept();\n\t\t\t\t System.out.println(\"Connected to the server!\");\n\t\t\t\t DungeonClient connectedClient = new DungeonClient(serverSocket, game);\n\t\t\t\t connectedClient.start();\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e){\n\t\t\tSystem.out.println(\"Sorry, there was an IOException!\");\n\t\t}\n\t}", "boolean startNetwork() throws IOException;", "public void createAndRegisterActors(){\n //stressAppNetworkService.getAbstractNetworkServiceList().forEach((type,ns)->{\n stressAppNetworkService.getChatNetworkServicePluginRootList().forEach(ns->{\n //System.out.println(\"Network Service type: \"+type);\n nsPublicKeyMap.put(ns.getPublicKey(), (ChatNetworkServicePluginRoot) ns);\n ((ChatNetworkServicePluginRoot) ns).setMessageReceiver(this);\n int actorCounter = 0;\n for(ActorProfile actor : actorProfileList){\n createAndRegisterActor(actor,(ChatNetworkServicePluginRoot) ns, actorCounter);\n actorCounter++;\n actorsCreated++;\n report(ReportType.ACTOR_CREATED);\n }\n nsStarted++;\n report(ReportType.NS_STARED);\n });\n }", "public void init() {\r\n\t\tthis.initWebAndSocketServer();\r\n\r\n\t\t/*\r\n\t\t * Set/update server info\r\n\t\t */\r\n\t\ttry {\r\n\t\t\tServerInfo serverInfo = Info.getServerInfo();\r\n\t\t\tserverInfo.setPort(Integer.parseInt(SettingsManager.getStringValue(GeneralController.getInstance().getIdentifier(), GeneralController.Settings.NET_HTTP_PORT.get())));\r\n\t\t\tserverInfo.setName(SettingsManager.getStringValue(GeneralController.getInstance().getIdentifier(), GeneralController.Settings.SERVER_NAME.get(), \"Home server\"));\r\n\t\t\tserverInfo.setVersion(BuildConfig.VERSION);\r\n\t\t\tInfo.writeServerInfo(serverInfo);\r\n\t\t} catch (IOException | JSONException e1) {\r\n\t\t\tServer.log.error(\"Could not update server info. Designer might not work as expected: \" + e1.getMessage());\r\n\t\t}\r\n\r\n\t\tRuleManager.init();\r\n\t}", "private void initMSDPService() {\n // Connect to DvKit service\n DvKit.getInstance().connect(getApplicationContext(), new IDvKitConnectCallback() {\n // When the DvKit service is successfully connected\n @Override\n public void onConnect(int i) {\n addLog(\"init MSDPService done\");\n // Get Virtual Device Service Instance\n mVirtualDeviceManager = (VirtualDeviceManager) DvKit.getInstance().getKitService(VIRTUAL_DEVICE_CLASS);\n // Register virtual appliance observer\n mVirtualDeviceManager.subscribe(EnumSet.of(VIRTUALDEVICE), observer);\n }\n\n @Override\n public void onDisconnect() {\n\n }\n });\n }", "private void initHardware(){\n }", "private void initialize() {\r\n\r\n\t\tserverNode = new TreeParent(\"Servers\", \"Servers\", \"AA\", this);\r\n\t\tserverNode.setImageKey(\"System.gif\");\r\n\r\n\t\tnewServerNode = new TreeParent(\"NewServerWizard\", \"New Server\", \"AA\", this);\r\n\t\tnewServerNode.setImageKey(\"ApplicationFilter.gif\");\r\n\t\tnewServerNode.setExpandable(false);\r\n\t\tserverNode.addChild(newServerNode);\r\n\t\tnewServerNode.addChild(new TreeObject(\"Dummy\"));\r\n\t\r\n\t\tloadServers(serverNode);\r\n\r\n\t\tpreferenceNode = new TreeParent(\"Systems\", \"Preferences\", \"BB\", this);\r\n\t\tpreferenceNode.setImageKey(\"preference_page.gif\");\r\n\t\tpreferenceNode.addChild(new TreeObject(\"Dummy\"));\r\n\r\n\t\tinvisibleRoot = new TreeParent(\"\", \"InvisibleRoot\", \"AA\", this);\r\n\t\tinvisibleRoot.addChild(serverNode);\r\n\t\tinvisibleRoot.addChild(preferenceNode);\r\n\r\n\t}", "@Override\n public void onCreate() {\n\n Thread proxy = new Thread(new proxyMainLoop());\n proxy.start();\n\n }", "public void launch() throws NotBoundException, IOException\n\t{\n\t\t//call method to connect to server\t\t\n\t\tServerManager serverConnect = initialConnect();\t\n\t\n\t\t//get Setup menu from server\n\t\tSetUpMenu newSetup = new SetUpMenu(serverConnect);\n\t\tnewSetup.welcomeMenu();\n\t}", "@Override\n public void startUp(FloodlightModuleContext context)\n throws FloodlightModuleException {\n floodlightProvider = context\n .getServiceImpl(IFloodlightProviderService.class);\n\n floodlightProvider.addOFMessageListener(OFType.PACKET_IN, this);\n\n BufferedReader reader;\n try\n {\n //read in internal ip addresses\n reader = new BufferedReader(new FileReader(new File(this.insideIPsFile)));\n String temp = null;\n while ((temp = reader.readLine()) != null)\n {\n if( !temp.startsWith(\"//\") ){\n inside_ip.add(IPv4Address.of(temp));\n // System.out.println (IPv4Address.of(temp));\n }\n }\n reader.close();\n\n //read in externally visible ip addresses\n reader = new BufferedReader(new FileReader(new File(this.externalIPFile)));\n temp = null;\n while ((temp = reader.readLine()) != null)\n {\n if( !temp.startsWith(\"//\") ){\n external_ip = IPv4Address.of(temp);\n break;\n }\n }\n reader.close();\n\n //read in NAT switch id, inside ports, outside ports\n reader = new BufferedReader(new FileReader(new File(this.natInfoFile)));\n temp = null;\n while ((temp = reader.readLine()) != null)\n {\n if( !temp.startsWith(\"//\") ){\n String[] nat_info = temp.split( \",\" );\n\n nat_swId = DatapathId.of(Long.valueOf( nat_info[0] ));\n\n for( String internal_port: nat_info[1].trim().split(\" \") ){\n nat_internal_ports.add( TransportPort.of( Integer.parseInt(internal_port)) );\n }\n\n for( String external_port: nat_info[2].trim().split(\" \") ){\n nat_external_ports.add( TransportPort.of( Integer.parseInt(external_port)) );\n }\n break;\n }\n }\n reader.close();\n\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n\n\n }", "private void createAndStartConnectionThread() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n boolean success = webSocketConnection.createAndConnectTCPSocket();\n if (success) {\n webSocketConnection.startConnection();\n }\n } catch (Exception e) {\n synchronized (globalLock) {\n if (isRunning) {\n webSocketConnection.closeInternal();\n\n onException(e);\n\n if (e instanceof IOException && automaticReconnection) {\n createAndStartReconnectionThread();\n }\n }\n }\n }\n }\n }).start();\n }", "@Override\n protected void onStarted() {\n\n super.onStarted();\n\n // No need for discovery services in Archive mode\n if (mIsArchive) return; //TODO: maybe remove this line - should be caught by the NETWORK_NONE case\n\n\n switch (mNetworkType) {\n case BabbleService.NETWORK_NONE:\n Log.i(TAG, \"NONE / Archive\");\n return;\n case BabbleService.NETWORK_WIFI:\n Log.i(TAG, \"WIFI / MDNS\");\n mAdvertiser = new MdnsAdvertiser(mGroupDescriptor, sDiscoveryPort, mAppContext);\n break;\n case BabbleService.NETWORK_P2P:\n Log.i(TAG, \"P2P\");\n mAdvertiser = P2PService.getInstance(mAppContext);\n break;\n }\n\n // mMdnsAdvertiser = new MdnsAdvertiser(mGroupDescriptor, sDiscoveryPort, mAppContext);\n\n Log.i(TAG, \"onStarted: Port \"+sDiscoveryPort);\n\n mHttpPeerDiscoveryServer = new HttpPeerDiscoveryServer(sDiscoveryPort, mBabbleNode); //TODO: use next available port?\n try {\n mHttpPeerDiscoveryServer.start();\n mAdvertiser.advertise(); // start mDNS advertising if server started\n mAdvertising = true;\n } catch (IOException ex) {\n //Probably the port is in use, we'll continue without the discovery service\n }\n }", "private void initConnection(Socket cli) {\t\n\tConnection conn = new Connection(this, cli);\n conn.setConnlist(connlist);\n\tThread t = new Thread(conn);\n\tt.start();\n\t\n\tconnlist.add(conn);\n\t\t\n\tsetConnectedStatus(true);\n }", "public void startup() {\n\t\tstart();\n }", "private void startServer() {\n mBluetoothGattServer = mBluetoothManager.openGattServer(this, mGattServerCallback);\n if (mBluetoothGattServer == null) {\n Log.w(TAG, \"Unable to create GATT server\");\n return;\n }\n\n mBluetoothGattServer.addService(TimeProfile.createTimeService());\n\n // Initialize the local UI\n updateLocalUi(System.currentTimeMillis());\n mBluetoothGattServer.addService(SecurityProfile.createSecurityService());\n //mBluetoothGattServer.addService(ConfigurationProfile.createConfigurationService());\n\n }", "public abstract void init(OwNetworkContext context_p, OwXMLUtil networkSettings_p) throws Exception;", "public void startServer(PWModelDetails pwModelDetails) {\n try {\n List<ServerSap> serverSaps = null;\n try {\n serverSaps = ServerSap.getSapsFromSclFile(pwModelDetails.getSclFileName());\n } catch (SclParseException e) {\n logger.info(\"Error parsing SCL/ICD file: \" + e.getMessage());\n e.printStackTrace();\n return;\n }\n serverSap = serverSaps.get(0);\n serverSap.setPort(pwModelDetails.getPortNumber());\n\n InetAddress address = null;\n try {\n ipAddress = pwModelDetails.getIpAddress();\n address = InetAddress.getByName(ipAddress);\n } catch (UnknownHostException e) {\n logger.info(\"Unknown host: \" + ipAddress);\n logger.info(\"Proxy will run with the defualt IP as define in the SCL file.\");\n logger.info(\"Unknown host \" + ipAddress);\n return;\n }\n if (address != null) {\n serverSap.setBindAddress(address);\n }\n Runtime.getRuntime().addShutdownHook(new Thread() {\n @Override\n public void run() {\n if (serverSap != null) {\n serverSap.stop();\n }\n logger.info(\"Server was stopped\");\n }\n });\n ServerModel serverModel = serverSap.getModelCopy();\n// create a SampleServer instance that can be passed as a callback object to startListening() and\n// SmartPowerIEDServer sampleServer = new SmartPowerIEDServer();\n SoftGridIEDServer sampleServer = this;\n// Open MUC initialization\n List<BasicDataAttribute> branchCircuitBreakerVals = new ArrayList<BasicDataAttribute>(3);\n for (String reference : iedRefFcHashMap.keySet()) {\n BasicDataAttribute field = (BasicDataAttribute) serverModel.findModelNode(reference, iedRefFcHashMap.get(reference));\n if (field == null) {\n logger.info(\">>>>>> Error in obtaining SCL reference object = \" + reference);\n }\n branchCircuitBreakerVals.add(field);\n }\n// Power World Device Initialization\n ParameterGenerator parameterGenerator = new ParameterGenerator();\n parameterGenerator.setSclKeyToPWKeyMap(pwModelDetails.getSclToPWMapping());\n parameterGenerator.setKeyParameters(pwModelDetails.getKeyArray());\n parameterGenerator.setValueParameters(pwModelDetails.getDataFieldArray());\n parameterGenerator.setPersistedValues(pwModelDetails.getValueArray());\n parameterGenerator.setDeviceObjectName(pwModelDetails.getDeviceName());\n if (controlAPI == null) {\n controlAPI = IedControlerFactory.getPWComBridgeIterface();\n synchronized (controlAPI) {\n if (!controlAPI.isCaseOpened()) {\n controlAPI.openCase();\n }\n }\n }\n parameterGenerator.setControlAPI(controlAPI);\n// load power world data\n serverSap.startListening(sampleServer, parameterGenerator);\n try {\n serverSap.setValues(branchCircuitBreakerVals);\n } catch (Exception e) {\n logger.info(\"pwModelDetails.getModelNodeReference() = \" + pwModelDetails.getModelNodeReference());\n e.printStackTrace();\n }\n\n String[][] paramPack = parameterGenerator.getParamPack();\n type = IEDUtils.getIEDType(parameterGenerator.getDeviceObjectName());\n id = ++IED_COUNT;\n StringBuffer sb = new StringBuffer();\n String logDataSeperator = \":\";\n boolean loged = false;\n logEvent(\"IED : \" + type.name() + \" : \" + id + \" is Started...!\");\n String[] elements = null;\n while (true) {\n synchronized (this) {\n try {\n Thread.sleep(PW_INTERROGATION_INTERVAL);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n elements = parameterGenerator.loadDataValues(paramPack);\n if (elements == null) {\n if(type.name().equals(\"BUS\"))\n {\n System.out.println(\"BUS\");\n }\n continue;\n }\n sb.append(\"Type:\").append(type.name());\n for (int i = 0; i < branchCircuitBreakerVals.size(); i++) {\n BasicDataAttribute modelNodes = branchCircuitBreakerVals.get(i);\n if (modelNodes != null && elements.length > i) {\n String pwKeyName = null;\n for (String sclKey : parameterGenerator.getSclKeyToPWKeyMap().keySet()) {\n if (modelNodes.getReference().toString().endsWith(sclKey)) {\n pwKeyName = sclKey;\n }\n }\n if (pwKeyName == null) {\n continue;\n }\n for (int j = 0; j < paramPack[0].length; j++) {\n if (!loged) {\n sb.append(logDataSeperator).append(paramPack[0][j]).append(logDataSeperator).append(elements[j]);\n }\n if (parameterGenerator.getSclKeyToPWKeyMap().get(pwKeyName).equals(paramPack[0][j])) {\n if (modelNodes instanceof BdaDoubleBitPos) {\n byte[] status = new byte[1];\n if (elements[j].equalsIgnoreCase(\"open\")) {\n status[0] = 0;\n } else {\n status[0] = 1;\n }\n ((BdaDoubleBitPos) modelNodes).setValue(status);\n } else if (modelNodes instanceof BdaVisibleString) {\n ((BdaVisibleString) modelNodes).setValue(elements[j]);\n } else if (modelNodes instanceof BdaFloat32) {\n ((BdaFloat32) modelNodes).setFloat(Float.parseFloat(elements[j]));\n }\n }\n }\n loged = true;\n }\n }\n serverStarted = true;\n// synchronized (logger) {\n// if (ConfigUtil.MANUAL_EXPERIMENT_MODE) {\n // if this string is not printed in the log file,\n logger.info(sb.toString());\n// }\n// }\n sb = new StringBuffer(\"\");\n loged = false;\n serverSap.setValues(branchCircuitBreakerVals);\n if (serverStoped) {\n serverStarted = false;\n break;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void startBootstrapServices() {\n traceBeginAndSlog(\"StartWatchdog\");\n Watchdog watchdog = Watchdog.getInstance();\n watchdog.start();\n traceEnd();\n if (MAPLE_ENABLE) {\n this.mPrimaryZygotePreload = SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$UyrPns7R814gZEylCbDKhe8It4.INSTANCE, \"PrimaryZygotePreload\");\n }\n Slog.i(TAG, \"Reading configuration...\");\n traceBeginAndSlog(\"ReadingSystemConfig\");\n SystemServerInitThreadPool.get().submit($$Lambda$YWiwiKm_Qgqb55C6tTuq_n2JzdY.INSTANCE, \"ReadingSystemConfig\");\n traceEnd();\n traceBeginAndSlog(\"StartInstaller\");\n this.installer = (Installer) this.mSystemServiceManager.startService(Installer.class);\n traceEnd();\n traceBeginAndSlog(\"DeviceIdentifiersPolicyService\");\n this.mSystemServiceManager.startService(DeviceIdentifiersPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"UriGrantsManagerService\");\n this.mSystemServiceManager.startService(UriGrantsManagerService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"StartActivityManager\");\n ActivityTaskManagerService atm = this.mSystemServiceManager.startService(ActivityTaskManagerService.Lifecycle.class).getService();\n this.mActivityManagerService = ActivityManagerService.Lifecycle.startService(this.mSystemServiceManager, atm);\n this.mActivityManagerService.setSystemServiceManager(this.mSystemServiceManager);\n this.mActivityManagerService.setInstaller(this.installer);\n this.mWindowManagerGlobalLock = atm.getGlobalLock();\n traceEnd();\n traceBeginAndSlog(\"StartPowerManager\");\n try {\n this.mPowerManagerService = (PowerManagerService) this.mSystemServiceManager.startService(\"com.android.server.power.HwPowerManagerService\");\n } catch (RuntimeException e) {\n Slog.w(TAG, \"create HwPowerManagerService failed\");\n this.mPowerManagerService = (PowerManagerService) this.mSystemServiceManager.startService(PowerManagerService.class);\n }\n traceEnd();\n traceBeginAndSlog(\"StartThermalManager\");\n this.mSystemServiceManager.startService(ThermalManagerService.class);\n traceEnd();\n try {\n Slog.i(TAG, \"PG Manager service\");\n this.mPGManagerService = PGManagerService.getInstance(this.mSystemContext);\n } catch (Throwable e2) {\n reportWtf(\"PG Manager service\", e2);\n }\n traceBeginAndSlog(\"InitPowerManagement\");\n this.mActivityManagerService.initPowerManagement();\n traceEnd();\n traceBeginAndSlog(\"StartRecoverySystemService\");\n this.mSystemServiceManager.startService(RecoverySystemService.class);\n traceEnd();\n RescueParty.noteBoot(this.mSystemContext);\n traceBeginAndSlog(\"StartLightsService\");\n try {\n this.mSystemServiceManager.startService(\"com.android.server.lights.LightsServiceBridge\");\n } catch (RuntimeException e3) {\n Slog.w(TAG, \"create LightsServiceBridge failed\");\n this.mSystemServiceManager.startService(LightsService.class);\n }\n traceEnd();\n traceBeginAndSlog(\"StartSidekickService\");\n if (SystemProperties.getBoolean(\"config.enable_sidekick_graphics\", false)) {\n this.mSystemServiceManager.startService(WEAR_SIDEKICK_SERVICE_CLASS);\n }\n traceEnd();\n traceBeginAndSlog(\"StartDisplayManager\");\n this.mDisplayManagerService = (DisplayManagerService) this.mSystemServiceManager.startService(DisplayManagerService.class);\n traceEnd();\n try {\n this.mSystemServiceManager.startService(\"com.android.server.security.HwSecurityService\");\n Slog.i(TAG, \"HwSecurityService start success\");\n } catch (Exception e4) {\n Slog.e(TAG, \"can't start HwSecurityService service\");\n }\n traceBeginAndSlog(\"WaitForDisplay\");\n this.mSystemServiceManager.startBootPhase(100);\n traceEnd();\n String cryptState = (String) VoldProperties.decrypt().orElse(\"\");\n if (ENCRYPTING_STATE.equals(cryptState)) {\n Slog.w(TAG, \"Detected encryption in progress - only parsing core apps\");\n this.mOnlyCore = true;\n } else if (ENCRYPTED_STATE.equals(cryptState)) {\n Slog.w(TAG, \"Device encrypted - only parsing core apps\");\n this.mOnlyCore = true;\n }\n HwBootCheck.bootSceneEnd(100);\n HwBootFail.setBootTimer(false);\n HwBootCheck.bootSceneStart(105, 900000);\n if (!this.mRuntimeRestart) {\n MetricsLogger.histogram((Context) null, \"boot_package_manager_init_start\", (int) SystemClock.elapsedRealtime());\n }\n traceBeginAndSlog(\"StartPackageManagerService\");\n try {\n Watchdog.getInstance().pauseWatchingCurrentThread(\"packagemanagermain\");\n this.mPackageManagerService = PackageManagerService.main(this.mSystemContext, this.installer, this.mFactoryTestMode != 0, this.mOnlyCore);\n Watchdog.getInstance().resumeWatchingCurrentThread(\"packagemanagermain\");\n this.mFirstBoot = this.mPackageManagerService.isFirstBoot();\n this.mPackageManager = this.mSystemContext.getPackageManager();\n Slog.i(TAG, \"Finish_StartPackageManagerService\");\n traceEnd();\n if (!this.mRuntimeRestart && !isFirstBootOrUpgrade()) {\n MetricsLogger.histogram((Context) null, \"boot_package_manager_init_ready\", (int) SystemClock.elapsedRealtime());\n HwBootCheck.addBootInfo(\"[bootinfo]\\nisFirstBoot: \" + this.mFirstBoot + \"\\nisUpgrade: \" + this.mPackageManagerService.isUpgrade());\n HwBootCheck.bootSceneStart(101, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n }\n HwBootCheck.bootSceneEnd(105);\n if (!this.mOnlyCore && !SystemProperties.getBoolean(\"config.disable_otadexopt\", false)) {\n traceBeginAndSlog(\"StartOtaDexOptService\");\n try {\n Watchdog.getInstance().pauseWatchingCurrentThread(\"moveab\");\n OtaDexoptService.main(this.mSystemContext, this.mPackageManagerService);\n } catch (Throwable th) {\n Watchdog.getInstance().resumeWatchingCurrentThread(\"moveab\");\n traceEnd();\n throw th;\n }\n Watchdog.getInstance().resumeWatchingCurrentThread(\"moveab\");\n traceEnd();\n }\n traceBeginAndSlog(\"StartUserManagerService\");\n this.mSystemServiceManager.startService(UserManagerService.LifeCycle.class);\n traceEnd();\n traceBeginAndSlog(\"InitAttributerCache\");\n AttributeCache.init(this.mSystemContext);\n traceEnd();\n traceBeginAndSlog(\"SetSystemProcess\");\n this.mActivityManagerService.setSystemProcess();\n traceEnd();\n traceBeginAndSlog(\"InitWatchdog\");\n watchdog.init(this.mSystemContext, this.mActivityManagerService);\n traceEnd();\n this.mDisplayManagerService.setupSchedulerPolicies();\n traceBeginAndSlog(\"StartOverlayManagerService\");\n this.mSystemServiceManager.startService(new OverlayManagerService(this.mSystemContext, this.installer));\n traceEnd();\n traceBeginAndSlog(\"StartSensorPrivacyService\");\n this.mSystemServiceManager.startService(new SensorPrivacyService(this.mSystemContext));\n traceEnd();\n if (SystemProperties.getInt(\"persist.sys.displayinset.top\", 0) > 0) {\n this.mActivityManagerService.updateSystemUiContext();\n ((DisplayManagerInternal) LocalServices.getService(DisplayManagerInternal.class)).onOverlayChanged();\n }\n this.mSensorServiceStart = SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$oG4I04QJrkzCGs6IcMTKU2211A.INSTANCE, START_SENSOR_SERVICE);\n } catch (Throwable th2) {\n Watchdog.getInstance().resumeWatchingCurrentThread(\"packagemanagermain\");\n throw th2;\n }\n }", "private void init() {\n\n\t\tgroup = new NioEventLoopGroup();\n\t\ttry {\n\t\t\thandler = new MoocHandler();\n\t\t\tBootstrap b = new Bootstrap();\n\t\t\t\n\t\t\t\n\t\t\t//ManagementInitializer ci=new ManagementInitializer(false);\n\t\t\t\n\t\t\tMoocInitializer mi=new MoocInitializer(handler, false);\n\t\t\t\n\t\t\t\n\t\t\t//ManagemenetIntializer ci = new ManagemenetIntializer(handler, false);\n\t\t\t//b.group(group).channel(NioSocketChannel.class).handler(handler);\n\t\t\tb.group(group).channel(NioSocketChannel.class).handler(mi);\n\t\t\tb.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 10000);\n\t\t\tb.option(ChannelOption.TCP_NODELAY, true);\n\t\t\tb.option(ChannelOption.SO_KEEPALIVE, true);\n\n\t\t\t// Make the connection attempt.\n\t\t\tchannel = b.connect(host, port).syncUninterruptibly();\n\n\t\t\t// want to monitor the connection to the server s.t. if we loose the\n\t\t\t// connection, we can try to re-establish it.\n\t\t\tChannelClosedListener ccl = new ChannelClosedListener(this);\n\t\t\tchannel.channel().closeFuture().addListener(ccl);\n\t\t\tSystem.out.println(\" channle is \"+channel);\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"failed to initialize the client connection\", ex);\n\n\t\t}\n\n\t\t// start outbound message processor\n\t//\tworker = new OutboundWorker(this);\n\t//\tworker.start();\n\t}", "protected void initialize() {\r\n\r\n Robot.pneumatics.pneuOpen();\r\n }", "private void connectDevices() {\n Set<DeviceId> deviceSubjects =\n cfgRegistry.getSubjects(DeviceId.class, Tl1DeviceConfig.class);\n deviceSubjects.forEach(deviceId -> {\n Tl1DeviceConfig config =\n cfgRegistry.getConfig(deviceId, Tl1DeviceConfig.class);\n connectDevice(new DefaultTl1Device(config.ip(), config.port(), config.username(),\n config.password()));\n });\n }", "public void createSocket() \n { \n try \n { \n socket = new DatagramSocket(); \n } \n catch (Exception ex) \n { \n System.out.println(\"UDPPinger Exception: \" + ex); \n } \n }", "protected void setup(){\n setupRouter();\n \n if( bluetoothEnabled ){\n setupBluetooth();\n }\n }", "public void setup(){\n this.cluster = Cluster.builder().addContactPoint(\"127.0.0.1\").build();\n this.session = this.cluster.connect(\"demo\");\n }", "private static void init() {\n\t\ttry {\n\t\t\tlocalAddr = InetAddress.getLocalHost();\n\t\t\tlogger.info(\"local IP:\" + localAddr.getHostAddress());\n\t\t} catch (UnknownHostException e) {\n\t\t\tlogger.info(\"try again\\n\");\n\t\t}\n\t\tif (localAddr != null) {\n\t\t\treturn;\n\t\t}\n\t\t// other way to get local IP\n\t\tEnumeration<InetAddress> localAddrs;\n\t\ttry {\n\t\t\t// modify your network interface name\n\t\t\tNetworkInterface ni = NetworkInterface.getByName(networkInterface);\n\t\t\tif (ni == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlocalAddrs = ni.getInetAddresses();\n\t\t\tif (localAddrs == null || !localAddrs.hasMoreElements()) {\n\t\t\t\tlogger.error(\"choose NetworkInterface\\n\" + getNetworkInterface());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\twhile (localAddrs.hasMoreElements()) {\n\t\t\t\tInetAddress tmp = localAddrs.nextElement();\n\t\t\t\tif (!tmp.isLoopbackAddress() && !tmp.isLinkLocalAddress() && !(tmp instanceof Inet6Address)) {\n\t\t\t\t\tlocalAddr = tmp;\n\t\t\t\t\tlogger.info(\"local IP:\" + localAddr.getHostAddress());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Failure when init ProxyUtil\", e);\n\t\t\tlogger.error(\"choose NetworkInterface\\n\" + getNetworkInterface());\n\t\t}\n\t}", "public void setupWebServers(){\n if(rwsServer == null || csaServer == null){\n String serverURL = getFirstAttribute(cn,FRONTEND_ADDRESS_TAG);\n setupWebServers(serverURL);\n }\n }", "@Override\n\tpublic void ConstructNetwork() {\n\t\t\n\t\tAddUnit add_r_t=new AddUnit();\n\t\tUnitIterator ui=new UnitIterator();\n\t\tui.unit=add_r_t;\n\n\t\tnetwork=new UnitList();\n\t\tnetwork.unitList.add(ui);\n\t\tnetwork.unitList.add(new AddUnit());\n\t\t\t\n\t}", "public static void main(String[] args) {\n startupTime = DateUtil.getCurrentTimeSeconds();\n\n try {\n LoggingConfiguration.checkLoggingConfig();\n\n ServerConfiguration.load(\"server.ini\");\n GameConfiguration.load(\"game.ini\");\n\n log = LoggerFactory.getLogger(Kepler.class);\n ResourceLeakDetector.setLevel(ResourceLeakDetector.Level.ADVANCED);\n\n // TODO: The \"Standard\" ASCII from\n // http://patorjk.com/software/taag/#p=display&f=Standard&t=Kepler\n // On a grey background with white ASCII text\n // ASCII logo on the left side, contributors and other credits/info on the right side\n // TODO: also a way to disable the fancy headers, as in production it would only fill the logs\n log.info(\"Kepler - Habbo Hotel V21 Emulation\");\n\n if (!Storage.connect()) {\n return;\n }\n\n log.info(\"Setting up game\");\n\n WalkwaysManager.getInstance();\n ItemManager.getInstance();\n CatalogueManager.getInstance();\n RoomModelManager.getInstance();\n RoomManager.getInstance();\n PlayerManager.getInstance();\n FuserightsManager.getInstance();\n NavigatorManager.getInstance();\n GameScheduler.getInstance();\n CommandManager.getInstance();\n MessageHandler.getInstance();\n TextsManager.getInstance();\n\n // Get the server variables for the socket to listen on\n serverIP = ServerConfiguration.getString(\"server.bind\");\n serverPort = ServerConfiguration.getInteger(\"server.port\");\n\n // Get an InetAddressValidator\n InetAddressValidator validator = InetAddressValidator.getInstance();\n\n // Validate an IPv4 or IPv6 address\n if (!validator.isValid(serverIP)) {\n log.error(\"%s is not a valid IP\", serverIP);\n return;\n }\n\n // getByName parses IPv6, IPv4 and DNS all in one go\n serverIP = InetAddress.getByName(serverIP).getHostAddress();\n\n // Create the server instance\n // TODO: listen on both IPv4 and IPv6 if serverIP is 0.0.0.0 or localhost\n server = new NettyServer(serverIP, serverPort);\n server.createSocket();\n server.bind();\n\n Runtime.getRuntime().addShutdownHook(new Thread(() -> dispose()));\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void startDiscovery() {\n\t\tbtAdapter.cancelDiscovery();\n\t\tbtAdapter.startDiscovery();\n\t}", "public void startCasterThread () throws IllegalStateException\n {\n System.out.println (\"Start Mailserver on port \" + port);\n if (ntripCaster != null)\n throw new IllegalStateException (\"NTRIP caster is already running.\");\n\n ntripCasterRunning = false;\n\n ntripCaster = new NtripCasterThread ();\n ntripCaster.start ();\n\n // Now we wait for the NTRIP caster to open its socket.\n int cycles = 100;\n while (!ntripCasterRunning && --cycles > 0) {\n try { Thread.sleep (50); } catch (Exception e) {}\n Thread.yield ();\n }\n\n if (cycles == 0)\n throw new IllegalStateException (\"Can not launch NTRIP caster.\");\n }", "private void initialize(){\n\t\ttry\n\t\t{\n\t\t\tString[] packet = setPacket();\n\t\t\tif (validatePacket(packet))\n\t\t\t{\n\t\t\t\tsend(packet);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tSystem.out.println(\"Something went wrong...\");\n\t\t\tresetClient();\n\t\t}\n\t}", "void onCreateNewNetSuccess();", "public void teleopInit() {\n\t\tauto.cancel();\r\n\t\t// Create the teleop command and start it.\r\n\t\tteleop.start();\r\n\t\t// Reset the drivetrain encoders\r\n\t\tDriveTrain.getInstance().resetEncoders();\r\n\t\t// Start pushing sensor readings to the SD.\r\n\t\treadings.start();\r\n\t}", "protected void startResourcesThread() {\n\n\t\t// alive?\n\t\tif (resourcesThread != null && resourcesThread.isAlive())\n\t\t\treturn;\n \n \n\t\tresourcesThread = new Thread(() -> {\n\t\t\ttry {\n\n\t\t\t\t// Detect if the microphone is available\n\t\t\t\twhile (true) {\n\t\t\t\t\tif (AudioSystem.isLineSupported(Port.Info.MICROPHONE)) {\n\t\t\t\t\t\t// logger.log(Level.INFO, \"Microphone is available.\\n\")\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// logger.log(Level.INFO, \"Microphone is not\n\t\t\t\t\t\t// available.\\n\")\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// Sleep some period\n\t\t\t\t\tThread.sleep(350);\n\t\t\t\t}\n\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t\tlogger.log(Level.WARNING, null, ex);\n\t\t\t\tresourcesThread.interrupt();\n\t\t\t}\n\t\t});\n\n\t\t// Start\n\t\tresourcesThread.start();\n \n\t}", "public void autoConnect() {\n Log.i(TAG, \"HERE AUTOCONNECT\");\n connect(staticIp, staticPort);\n }", "public void initialize() throws InterruptedException, UnknownHostException;", "private void installLocalOrRemote() {\n CommandPacket startCommandPacket = null;\n //直到成功为止,控制台可能重启、网络问题等原因\n //TODO\n int time = 0;\n while ((startCommandPacket = getStartCommandPacket()) == null){\n try {\n time ++;\n if(time == 20){\n String defaultRegister = \"zookeeper\";\n String register = agentConfig.getProperty(\"register.name\", defaultRegister);\n if(defaultRegister.equals(register)){\n logger.error(\"经过10s尝试启动simulator失败, 请确认控制台是否正常\");\n }\n break;\n }\n logger.error(\"启动simulator获取远程失败,休眠500ms重试,请确认控制台是否正常\");\n Thread.sleep(500 );\n } catch (InterruptedException ignore) {\n }\n }\n\n if(startCommandPacket == null){\n startCommandPacket = new CommandPacket();\n // 启动\n startCommandPacket.setId(HeartCommandConstants.startCommandId);\n Map<String, Object> extras = new HashMap<String, Object>();\n extras.put(HeartCommandConstants.PATH_TYPE_KEY, HeartCommandConstants.PATH_TYPE_LOCAL_VALUE);\n // 使用本地探针包\n startCommandPacket.setExtras(extras);\n }\n install(startCommandPacket);\n }", "public void startThread(){\n String message = \"Connecting to RescueNet...Please Wait\";\n showProgressDialog(message);\n connectionThread = new ConnectionThread(mwifiAdmin, handlerMain);\n connectionThread.start();\n }", "@Override\n public synchronized void startInternal() throws Exception {\n createConnection();\n\n // ensure root dirs exist\n createRootDir(znodeWorkingPath);\n createRootDir(zkRootNodePath);\n createRootDir(rmDTSecretManagerRoot);\n createRootDir(rmAppRoot);\n }", "public static void main(String[] args) {\n PingPongServerFactory factory = new RealFactory();\n Skeleton<PingPongServerFactory> skeleton = null;\n\n\n try {\n // take the localHost's hostname and create the skeleton at port 80\n InetSocketAddress inet = new InetSocketAddress(InetAddress.getLocalHost().getHostName(), 80);\n\n skeleton = new Skeleton<PingPongServerFactory>(PingPongServerFactory.class, factory, inet);\n // start the skeleton and wait for requests\n skeleton.start();\n\n } catch (Exception e) {\n e.printStackTrace();\n try {\n skeleton.stop();\n } catch (NullPointerException e1) {\n e1.printStackTrace();\n }\n }\n }", "public void run()\n \t\t\t{\n \t\t\t\tif (mUseUPnP.getSelection())\n \t\t\t\t\tUPnPService.getInstance().enableUPnP();\n \t\t\t\telse\n \t\t\t\t\tUPnPService.getInstance().disableUPnP();\n \t\t\t}", "public ServerNMS() {\n\t\tclients = new LinkedList<PrintWriter>();\n\t}", "public void StartAllServices()\n\t{\n\t\tm_oCommServ.StartCmdService(m_oConfig.CmdPort()); //Giving introducer port here\n\t\t// bring up the heartbeat receiver\n\t\tm_oCommServ.StartHeartBeatRecvr();\n\t\t//breing up the file report recvr\n\t\tm_oCommServ.StartFileReportRecvr();\n\t}", "private void doPing()\r\n {\r\n requestQueue.add( new ChargerHTTPConn( weakContext,\r\n CHARGE_NODE_JSON_DATA, \r\n PING_URL,\r\n SN_HOST,\r\n null, \r\n cookieData,\r\n false,\r\n token,\r\n secret ) );\r\n }", "@Override\n\tpublic void run()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif (!establishVpn())\n\t\t\t{\n\t\t\t\taddLog(\"Failed to establish the VPN\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconnectTunnel(getLocalServerAddress(dsp.getString(\"local_port\", \"1080\")), getLocalServerAddress(dsp.getString(\"udp_port\", \"7300\")), true);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\n\t\t}\n\t}", "public void startRunning(){\n\t\ttry{\n\t\t\tserver = new ServerSocket(6789, 100);\n\t\t\t//int Port Number int 100 connections max (backlog / queue link)\n\t\t\twhile(true){\n\t\t\t\ttry{\n\t\t\t\t\twaitForConnection();\n\t\t\t\t\tsetupStreams();\n\t\t\t\t\twhileChatting();\n\t\t\t\t\t//connect and have conversation\n\t\t\t\t}catch(EOFException eofe){\n\t\t\t\t\tshowMessage(\"\\n Punk Ass Bitch.\");\n\t\t\t\t}finally{\n\t\t\t\t\tcloseChat();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(IOException ioe){\n\t\t\tioe.printStackTrace();\n\t\t\t\n\t\t}\n\t}", "public void start() throws IOException {\n System.out.println(\"Starting USCL-Bot...\");\n System.out.println();\n cmd.init();\n conn = new Connection(hostName, hostPort, loginName, loginPass);\n conn.addDatagramListener(conn, Datagram.DG_PERSONAL_TELL);\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_STATE);\n conn.addDatagramListener(conn, Datagram.DG_MY_GAME_RESULT);\n conn.addDatagramListener(conn, Datagram.DG_STARTED_OBSERVING);\n conn.addDatagramListener(conn, Datagram.DG_MOVE_LIST);\n conn.addDatagramListener(conn, Datagram.DG_SEND_MOVES);\n conn.addDatagramListener(conn, Datagram.DG_PLAYERS_IN_MY_GAME);\n conn.addDatagramListener(conn, Datagram.DG_GAME_MESSAGE);\n taskSwitchTracker.setUserService(userService);\n taskSwitchTracker.setTournamentService(tournamentService);\n taskSwitchTracker.setConnection(conn);\n taskSwitchTracker.setUSCLBot(this);\n taskSwitchTracker.start();\n conn.initiateConnect(hostName, hostPort);\n }", "@Override\n public void teleopInit()\n {\n System.out.println(\"Initializing teleop mode...\");\n\n commonInit();\n\n\n System.out.println(\"Teleop initialization complete.\");\n }", "public PingClient() throws IOException {\n selector = Selector.open();\n Connector connector = new Connector();\n Printer printer = new Printer();\n connector.start();\n printer.start();\n receiveTarget();\n }", "@Override\n public void initialize(URL location, ResourceBundle resources) {\n new Thread( ()-> {\n try {\n //Start the server\n ServerSocket serverSocket = new ServerSocket(8080);\n\n //show in terminal server has started\n System.out.println(\"Server Started: at \" + new Date() + \"\\n\");\n\n //main loop that will accept connections\n while (true) {\n //accept a new socket connection, this socket comes from client\n Socket clientSocket = serverSocket.accept();\n\n //thread that will handle what to do with new socket\n new Thread(new HandleAclient(clientSocket)).start();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }).start();\n\n }", "public void initialize() {\n\n getStartUp();\n }" ]
[ "0.60917276", "0.6067609", "0.597763", "0.59736097", "0.58451104", "0.57749665", "0.57718724", "0.5727326", "0.57012564", "0.5691619", "0.56838524", "0.5667418", "0.5639933", "0.5639793", "0.56075454", "0.55772555", "0.55707604", "0.55665183", "0.5546755", "0.5541916", "0.5535351", "0.5492975", "0.54762053", "0.5461619", "0.5460725", "0.545397", "0.5452698", "0.5449432", "0.5436496", "0.54364926", "0.54265887", "0.5420424", "0.5419361", "0.54172385", "0.5416427", "0.5402894", "0.5393573", "0.5385402", "0.5376896", "0.53767467", "0.53757185", "0.5373712", "0.5372186", "0.5371722", "0.5369566", "0.5356294", "0.5353546", "0.53332156", "0.5325167", "0.5323666", "0.5321926", "0.5313765", "0.5309773", "0.53032404", "0.5302574", "0.52981734", "0.52956563", "0.5286692", "0.52854764", "0.52790964", "0.5274046", "0.52659386", "0.52559817", "0.52518183", "0.52516025", "0.524537", "0.5245096", "0.52355856", "0.52311724", "0.5228586", "0.52275306", "0.522476", "0.52246976", "0.5217999", "0.52151966", "0.5210775", "0.52096134", "0.52095705", "0.5204847", "0.52006936", "0.5194058", "0.5193693", "0.5192212", "0.5188412", "0.51831776", "0.51781714", "0.5177608", "0.5173893", "0.51683974", "0.51674306", "0.5165129", "0.5157368", "0.5153613", "0.51478", "0.5147247", "0.5143868", "0.5137947", "0.51341933", "0.5129415", "0.5126542" ]
0.58662957
4
Instantiates a new button assignment table model.
public ButtonAssignmentTableModel() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ByaTableModel() {\n\t}", "public ViewModel(TableHomeFrame tableHomeFrame){\n dbActions = new Model();\n this.tableHomeFrame = tableHomeFrame;\n calculations = new Calculations();\n }", "public TableForm() {\n initComponents();\n \n setMyTable();\n }", "public TableCreation(Table table) {\n this.table = table;\n }", "public static LearningTable createLearningTable() {\n\t\tLearningTable table = new LearningTable(null, null, null);\n\t\t\n\t\ttable.getAttributes().addAll(createAttributes());\n\t\ttable.getExamples().addAll(createExamples(table.getAttributes()));\n\t\t\n\t\treturn table;\n\t}", "public EditingTable() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public table() {\n initComponents();\n }", "public TableDefinition(Class<T> model){\n this.singleton = this;\n this.model = model;\n try {\n OBJECT = Class.forName(model.getName());\n createTableDefinition();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void createButton() {\n\t\tbtnAddTask = new JButton(\"Add Task\");\n\t\tbtnSave = new JButton(\"Save\");\n\t\tbtnCancel = new JButton(\"Cancel\");\n\n\t\tbtnAddTask.addActionListener(new ToDoAction());\n\t\tbtnSave.addActionListener(new ToDoAction());\n\t\tbtnCancel.addActionListener(new ToDoAction());\n\t}", "public ColumnStateTableColumnModel() {\n\t}", "public AttlistTableModel () {\n super();\n }", "public Practice_JTable() {\n initComponents();\n }", "public void init() {\r\n\t\tsetModel(new ProductTableModel());\r\n\t}", "public void initializeBtn(){\r\n\t\t\r\n\t\t//Populate Table\r\n\t\tinitializeTable();\r\n\t\t\r\n\t\t//Initialize form\r\n\t\tinitializeForm();\r\n\t\t\r\n\t}", "public void initializeTable(){\r\n\t \r\n\t // Adding a button to tableView\r\n\t /*\r\n\t TableColumn actionCol = new TableColumn( \"Action\" );\r\n actionCol.setCellValueFactory( new PropertyValueFactory<>( \"DUMMY\" ) );\r\n\r\n Callback<TableColumn<WorkflowEntry, String>, TableCell<WorkflowEntry, String>> cellFactory = //\r\n new Callback<TableColumn<WorkflowEntry, String>, TableCell<WorkflowEntry, String>>()\r\n {\r\n public TableCell<WorkflowEntry, String> call( final TableColumn<WorkflowEntry, String> param )\r\n {\r\n final TableCell<WorkflowEntry, String> cell = new TableCell<WorkflowEntry, String>()\r\n {\r\n\r\n final Button btn = new Button( \"Approve\" );\r\n\r\n @Override\r\n public void updateItem( String item, boolean empty )\r\n {\r\n super.updateItem( item, empty );\r\n if ( empty )\r\n {\r\n setGraphic( null );\r\n setText( null );\r\n }\r\n else\r\n {\r\n btn.setOnAction( ( ActionEvent event ) ->\r\n {\r\n WorkflowEntry person = getTableView().getItems().get( getIndex() );\r\n System.out.println( person.getName() );\r\n } );\r\n setGraphic( btn );\r\n setText( null );\r\n }\r\n }\r\n };\r\n return cell;\r\n }\r\n };\r\n\r\n actionCol.setCellFactory( cellFactory );*/\r\n\t\t\r\n\t\ttableView.setItems(data);\r\n\t}", "public Assignment() {\n initComponents();\n }", "public Window_Table() {\n initComponents();\n \n \n \n }", "public CrudBook() {\n initComponents();\n loadTable();\n btnAdd.setEnabled(true);\n btnDelete.setEnabled(false);\n btnModify.setEnabled(false);\n }", "public Principal() {\n initComponents();\n setLocationRelativeTo(null);\n deshabilitarPermisos();\n String titulos[] = {\"Nº\", \"Fecha y Hora\", \"Actividad\"};\n modeloTabla.setColumnIdentifiers(titulos);\n this.tabla.setModel(modeloTabla);\n }", "public CampTableModel() {\n setColumnIdentifiers(new Object[] { Text.CAMP_ID.text(), Text.CAMP_LOCATION.text(), Text.CAMP_NAME.text() });\n }", "public void createButtons() {\n\n addRow = new JButton(\"Add row\");\n add(addRow);\n\n deleteRow = new JButton(\"Delete row\");\n add(deleteRow);\n }", "Button createButton();", "@Override\r\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t\tTableColumn workflowName = new TableColumn(\"Name\");\r\n\t\t\r\n\t\tworkflowName.setCellValueFactory(\r\n new PropertyValueFactory<WorkflowEntry, String>(\"name\"));\r\n\t\t\r\n\t\tTableColumn info = new TableColumn(\"Info\");\r\n\t\t\r\n\t info.setCellValueFactory(\r\n new PropertyValueFactory<WorkflowEntry, String>(\"info\"));\r\n\t \r\n\t // Adding a button to tableView\r\n\t \r\n\t TableColumn actionCol = new TableColumn( \"Action\" );\r\n actionCol.setCellValueFactory( new PropertyValueFactory<>( \"DUMMY\" ) );\r\n \r\n\t\ttableView.getColumns().addAll(workflowName,info,actionCol);\r\n\r\n\t}", "public ButtonsPane(final LambdacModel model) {\n super();\n this.model = model;\n\n setLayout(new FlowLayout(FlowLayout.LEADING));\n\n final JButton open = new JButton(\"Open...\");\n final JButton save = new JButton(\"Save\");\n final JButton saveAs = new JButton(\"Save As...\");\n final JButton run = new JButton(\"Run\");\n final JButton help = new JButton(\"Help\");\n add(open);\n add(save);\n add(saveAs);\n add(run);\n add(help);\n\n open.addActionListener(ev -> open());\n save.addActionListener(ev -> save());\n saveAs.addActionListener(ev -> saveAs());\n run.addActionListener(ev -> run());\n help.addActionListener(ev -> help());\n }", "TIAssignment createTIAssignment();", "public TableComboBox() {}", "public ReportMakerTab() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "public SwitchColTable() {\r\r\r\r\n }", "public ARCTable() {\n initComponents();\n table = new MyJTable();\n tableScrollPane.setViewportView(table);\n }", "public Book() {\n initComponents();\n table1 = (DefaultTableModel) travellers.getModel();\n }", "protected abstract void initialiseTable();", "public AttendanceForm() {\n super();\n initComponents();\n attendanceTableModel = new AttendanceTableModel();\n attendanceTable.setModel(attendanceTableModel);\n }", "private void setUpTable()\n {\n //Setting the outlook of the table\n bookTable.setColumnReorderingAllowed(true);\n bookTable.setColumnCollapsingAllowed(true);\n \n \n bookTable.setContainerDataSource(allBooksBean);\n \n \n //Setting up the table data row and column\n /*bookTable.addContainerProperty(\"id\", Integer.class, null);\n bookTable.addContainerProperty(\"book name\",String.class, null);\n bookTable.addContainerProperty(\"author name\", String.class, null);\n bookTable.addContainerProperty(\"description\", String.class, null);\n bookTable.addContainerProperty(\"book genres\", String.class, null);\n */\n //The initial values in the table \n db.connectDB();\n try{\n allBooks = db.getAllBooks();\n }catch(SQLException ex)\n {\n ex.printStackTrace();\n }\n db.closeDB();\n allBooksBean.addAll(allBooks);\n \n //Set Visible columns (show certain columnes)\n bookTable.setVisibleColumns(new Object[]{\"id\",\"bookName\", \"authorName\", \"description\" ,\"bookGenreString\"});\n \n //Set height and width\n bookTable.setHeight(\"370px\");\n bookTable.setWidth(\"1000px\");\n \n //Allow the data in the table to be selected\n bookTable.setSelectable(true);\n \n //Save the selected row by saving the change Immediately\n bookTable.setImmediate(true);\n //Set the table on listener for value change\n bookTable.addValueChangeListener(new Property.ValueChangeListener()\n {\n public void valueChange(ValueChangeEvent event) {\n \n }\n\n });\n }", "public MainUI() {\n initComponents();\n \n donationsTbl.setModel(model);\n \n donationsTbl.addMouseListener(new java.awt.event.MouseAdapter() {\n @Override\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n int row = donationsTbl.rowAtPoint(evt.getPoint());\n if (row >= 0) {\n selectedRow = row; //preserving the selected row\n //System.out.println(\"*** clicked row: \" + row);\n donationTitleFld.setText(model.getValueAt(row, 0).toString());\n donationTypeFld.setSelectedItem(model.getValueAt(row, 1).toString());\n donationValueFld.setSelectedItem(model.getValueAt(row, 2).toString());\n }\n }\n });\n }", "public void createTapTable(TableConfig tableConfig) throws ConfigurationException;", "public Cell ()\n {\n cellStatus = false;\n xCoordinate = 0;\n yCoordinate = 0;\n button = new JButton();\n }", "private void initTable() {\n \t\t// init table\n \t\ttable.setCaption(TABLE_CAPTION);\n \t\ttable.setPageLength(10);\n \t\ttable.setSelectable(true);\n \t\ttable.setRowHeaderMode(Table.ROW_HEADER_MODE_INDEX);\n \t\ttable.setColumnCollapsingAllowed(true);\n \t\ttable.setColumnReorderingAllowed(true);\n \t\ttable.setSelectable(true);\n \t\t// this class handles table actions (see handleActions method below)\n \t\ttable.addActionHandler(this);\n \t\ttable.setDescription(ACTION_DESCRIPTION);\n \n \t\t// populate Toolkit table component with test SQL table rows\n \t\ttry {\n \t\t\tQueryContainer qc = new QueryContainer(\"SELECT * FROM employee\",\n \t\t\t\t\tsampleDatabase.getConnection());\n \t\t\ttable.setContainerDataSource(qc);\n \t\t} catch (SQLException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\t// define which columns should be visible on Table component\n \t\ttable.setVisibleColumns(new Object[] { \"FIRSTNAME\", \"LASTNAME\",\n \t\t\t\t\"TITLE\", \"UNIT\" });\n \t\ttable.setItemCaptionPropertyId(\"ID\");\n \t}", "public DebugTableModel() {\r\n }", "private void initializeTable()\n {\n mTable = new ListView(mData);\n mTable.setPrefSize(200, 250);\n mTable.setEditable(false);\n }", "static LearningTable createLearningTable(List<Attribute> attributes) {\n\t\tLearningTable table = new LearningTable(null, null, null);\n\t\t\n\t\ttable.getAttributes().addAll(attributes);\n\t\ttable.getExamples().addAll(createExamples(attributes));\n\t\t\n\t\treturn table;\n\t}", "private void initComponent() {\n\t\t// Create Table Model (rows, columns...)\n\t\ttableur = new DefaultTableModel();\n\t\t// Add title column\n\t\ttableur.addColumn(fileNumber);\n\t\ttableur.addColumn(fileName);\n\t\ttableur.addColumn(\"\");\n\t\t// Add line of Action History with NodeStructureDTO\n\t\twhile(rootNode != null){\n\t\t\ttableur.addRow(new Object[] {rootNode.getId() , rootNode.getCompletePath()});\n\t\t\trootNode = rootNode.getNextNode();\n\t\t}\n\t\t//Create JTable \n\t\ttableHistory = new JTable(tableur);\n\t\t//Change the renderer of third cells whith grey font \n\t\ttableHistory.getColumn(\"\").setCellRenderer(new ButtonRenderer());\n\t\t//Make a CheckBox in this cell\n\t\ttableHistory.getColumn(\"\").setCellEditor(new ButtonEditor(new JCheckBox()));\n\t\t//Block reordering\n\t\ttableHistory.getTableHeader().setReorderingAllowed(false);\n\t\ttableHistory.setPreferredScrollableViewportSize(new Dimension(600 , 400));\n\t\tadd(new JScrollPane(tableHistory) , BorderLayout.CENTER);\n\t}", "public DetalleTablaComplementario() {\r\n }", "public TablesForm() {\n initComponents();\n this.getContentPane().setBackground(new Color(255, 217, 151));\n setBorder(BorderFactory.createLineBorder(new Color(235, 163, 91)));\n javax.swing.plaf.InternalFrameUI ifu = this.getUI();\n ((javax.swing.plaf.basic.BasicInternalFrameUI) ifu).setNorthPane(null);\n \n tableService = new TableService();\n commonService = new CommonService();\n\n Vector<Tables> vectorTables = commonService.getVectorTables();\n\n TablesTableModel tablesTableModel = new TablesTableModel(vectorTables);\n tblTablesNumber.setModel(tablesTableModel);\n }", "public Home() {\n this.tracker = new Tracker(this);\n initComponents();\n \n \n String[] columnNamesPeers = {\"IP\",\"State\"};\n \n this.modelPeers = new DefaultTableModel(columnNamesPeers, 0);\n this.jTable1.setModel(modelPeers);\n \n String[] columnNamesFiles = { \"Name File\", \"IP - Client\",\"State\"};\n \n this.modelFiles = new DefaultTableModel(columnNamesFiles, 0);\n this.jTable2.setModel(modelFiles);\n \n \n }", "public ResultsTable() {\n// this.achievementsArr = new ArrayList <Achievement>();\n initComponents();\n resultsTable = (DefaultTableModel) rTable.getModel();\n }", "public DebtTableModel(Model model) {\n this.model = model;\n this.suggestions = model.getDebtRepaymentSuggestions();\n }", "public ButtonPanel(ModelController c, ArrayList<Turtle> t) {\n\tsliderCurrent = 5;\n\tCONTROLLER = c;\n\tTURTLE = t;\n\tmakeUpButton();\n\tmakeDownButton();\n\tmakeLeftButton();\n }", "public EgresoUI() {\n initComponents();\n egresoJpaController = new EgresoJpaController();\n lotesEgresadosTableModel = new LoteEgresadoTableModel();\n tablaLotesEgresados.setModel(lotesEgresadosTableModel);\n }", "public TablesPanel() {\n\n tableModel = new TablesTableModel(); \n matchesModel = new MatchesTableModel();\n gameChooser = new GameChooser();\n\n initComponents();\n // tableModel.setSession(session);\n\n // formater\n // change default just now from 60 to 30 secs\n // see workaround for 4.0 versions: https://github.com/ocpsoft/prettytime/issues/152\n TimeFormat timeFormat = timeFormater.removeUnit(JustNow.class);\n JustNow newJustNow = new JustNow();\n newJustNow.setMaxQuantity(1000L * 30L); // 30 seconds gap (show \"just now\" from 0 to 30 secs)\n timeFormater.registerUnit(newJustNow, timeFormat);\n\n // 1. TABLE CURRENT\n tableTables.createDefaultColumnsFromModel();\n ((MageTable)tableTables).setTableInfo(tableInfo);\n \n activeTablesSorter = new MageTableRowSorter(tableModel) {\n @Override\n public void toggleSortOrder(int column) {\n // special sort for created and seat column\n if (column == TablesTableModel.COLUMN_CREATED || column == TablesTableModel.COLUMN_SEATS) {\n List<? extends SortKey> sortKeys = getSortKeys();\n if (sortKeys.size() == 2) {\n // clear sort on second click\n setSortKeys(null);\n } else {\n // setup sort on first click\n List<SortKey> list = new ArrayList<>();\n list.add(new RowSorter.SortKey(TablesTableModel.COLUMN_SEATS, SortOrder.ASCENDING));\n list.add(new RowSorter.SortKey(TablesTableModel.COLUMN_CREATED, SortOrder.DESCENDING));\n setSortKeys(list);\n }\n } else {\n super.toggleSortOrder(column);\n }\n }\n };\n tableTables.setRowSorter(activeTablesSorter);\n\n // time ago\n tableTables.getColumnModel().getColumn(TablesTableModel.COLUMN_CREATED).setCellRenderer(timeAgoCellRenderer);\n // skill level\n tableTables.getColumnModel().getColumn(TablesTableModel.COLUMN_SKILL).setCellRenderer(skillCellRenderer);\n // seats\n tableTables.getColumnModel().getColumn(TablesTableModel.COLUMN_SEATS).setCellRenderer(seatsCellRenderer);\n\n /* date sorter (not need, default is good - see getColumnClass)\n activeTablesSorter.setComparator(TablesTableModel.COLUMN_CREATED, new Comparator<Date>() {\n @Override\n public int compare(Date v1, Date v2) {\n return v1.compareTo(v2);\n }\n\n });*/\n\n // seats sorter (free tables must be first)\n activeTablesSorter.setComparator(TablesTableModel.COLUMN_SEATS, new Comparator<String>() {\n @Override\n public int compare(String v1, String v2) {\n int[] seats1 = parseSeatsInfo(v1);\n int[] seats2 = parseSeatsInfo(v2);\n boolean free1 = seats1[0] != seats1[1];\n boolean free2 = seats2[0] != seats2[1];\n\n // free seats go first\n if (free1 || free2) {\n return Boolean.compare(free2, free1);\n }\n\n // all other seats go without sorts\n return 0;\n }\n });\n\n // default sort by created date (last games from above)\n ArrayList list = new ArrayList<>();\n list.add(new RowSorter.SortKey(TablesTableModel.COLUMN_SEATS, SortOrder.ASCENDING));\n list.add(new RowSorter.SortKey(TablesTableModel.COLUMN_CREATED, SortOrder.DESCENDING));\n activeTablesSorter.setSortKeys(list);\n\n TableUtil.setColumnWidthAndOrder(tableTables, DEFAULT_COLUMNS_WIDTH, KEY_TABLES_COLUMNS_WIDTH, KEY_TABLES_COLUMNS_ORDER);\n\n // 2. TABLE COMPLETED\n completedTablesSorter = new MageTableRowSorter(matchesModel);\n tableCompleted.setRowSorter(completedTablesSorter);\n\n // duration\n tableCompleted.getColumnModel().getColumn(MatchesTableModel.COLUMN_DURATION).setCellRenderer(durationCellRenderer);\n // start-end\n tableCompleted.getColumnModel().getColumn(MatchesTableModel.COLUMN_START).setCellRenderer(datetimeCellRenderer);\n tableCompleted.getColumnModel().getColumn(MatchesTableModel.COLUMN_END).setCellRenderer(datetimeCellRenderer);\n // default sort by ended date (last games from above)\n ArrayList list2 = new ArrayList<>();\n list2.add(new RowSorter.SortKey(MatchesTableModel.COLUMN_END, SortOrder.DESCENDING));\n completedTablesSorter.setSortKeys(list2);\n\n // 3. CHAT\n chatPanelMain.getUserChatPanel().useExtendedView(ChatPanelBasic.VIEW_MODE.NONE);\n chatPanelMain.getUserChatPanel().setBorder(null);\n chatPanelMain.getUserChatPanel().setChatType(ChatPanelBasic.ChatType.TABLES);\n\n // 4. BUTTONS (add new buttons to the end of the list -- if not then users lost their filter settings)\n filterButtons = new JToggleButton[]{btnStateWaiting, btnStateActive, btnStateFinished,\n btnTypeMatch, btnTypeTourneyConstructed, btnTypeTourneyLimited,\n btnFormatBlock, btnFormatStandard, btnFormatModern, btnFormatLegacy, btnFormatVintage, btnFormatPremodern, btnFormatCommander, btnFormatTinyLeader, btnFormatLimited, btnFormatOther,\n btnSkillBeginner, btnSkillCasual, btnSkillSerious, btnRated, btnUnrated, btnOpen, btnPassword, btnFormatOathbreaker, btnFormatPioneer};\n\n JComponent[] components = new JComponent[]{chatPanelMain, jSplitPane1, jScrollPaneTablesActive, jScrollPaneTablesFinished, jPanelTop, jPanelTables};\n for (JComponent component : components) {\n component.setOpaque(false);\n }\n\n jScrollPaneTablesActive.getViewport().setBackground(new Color(255, 255, 255, 50));\n jScrollPaneTablesFinished.getViewport().setBackground(new Color(255, 255, 255, 50));\n\n restoreFilters();\n setGUISize();\n\n Action openTableAction;\n openTableAction = new AbstractAction() {\n @Override\n public void actionPerformed(ActionEvent e) {\n String searchID = e.getActionCommand();\n int modelRow = TablesUtil.findTableRowFromSearchId(tableModel, searchID);\n if (modelRow == -1) {\n return;\n }\n UUID tableId = (UUID) tableModel.getValueAt(modelRow, TablesTableModel.ACTION_COLUMN + 3);\n UUID gameId = (UUID) tableModel.getValueAt(modelRow, TablesTableModel.ACTION_COLUMN + 2);\n String action = (String) tableModel.getValueAt(modelRow, TablesTableModel.ACTION_COLUMN);\n String gameType = (String) tableModel.getValueAt(modelRow, TablesTableModel.COLUMN_GAME_TYPE);\n boolean isTournament = (Boolean) tableModel.getValueAt(modelRow, TablesTableModel.ACTION_COLUMN + 1);\n String owner = (String) tableModel.getValueAt(modelRow, TablesTableModel.COLUMN_OWNER);\n String pwdColumn = (String) tableModel.getValueAt(modelRow, TablesTableModel.COLUMN_PASSWORD);\n switch (action) {\n case \"Join\":\n if (owner.equals(SessionHandler.getUserName()) || owner.startsWith(SessionHandler.getUserName() + ',')) {\n try {\n JDesktopPane desktopPane = (JDesktopPane) MageFrame.getUI().getComponent(MageComponents.DESKTOP_PANE);\n JInternalFrame[] windows = desktopPane.getAllFramesInLayer(javax.swing.JLayeredPane.DEFAULT_LAYER);\n for (JInternalFrame frame : windows) {\n if (frame.getTitle().equals(\"Waiting for players\")) {\n frame.toFront();\n frame.setVisible(true);\n try {\n frame.setSelected(true);\n } catch (PropertyVetoException ve) {\n LOGGER.error(ve);\n }\n }\n\n }\n } catch (InterruptedException ex) {\n LOGGER.error(ex);\n }\n return;\n }\n if (isTournament) {\n LOGGER.info(\"Joining tournament \" + tableId);\n if (!gameType.startsWith(\"Constructed\")) {\n if (TablesTableModel.PASSWORD_VALUE_YES.equals(pwdColumn)) {\n joinTableDialog.showDialog(roomId, tableId, true, !gameType.startsWith(\"Constructed\"));\n } else {\n SessionHandler.joinTournamentTable(roomId, tableId, SessionHandler.getUserName(), PlayerType.HUMAN, 1, null, \"\");\n }\n } else {\n joinTableDialog.showDialog(roomId, tableId, true, !gameType.startsWith(\"Constructed\"));\n }\n } else {\n LOGGER.info(\"Joining table \" + tableId);\n joinTableDialog.showDialog(roomId, tableId, false, false);\n }\n break;\n case \"Remove\":\n UserRequestMessage message = new UserRequestMessage(\"Removing table\", \"Are you sure you want to remove table?\");\n message.setButton1(\"No\", null);\n message.setButton2(\"Yes\", PlayerAction.CLIENT_REMOVE_TABLE);\n MageFrame.getInstance().showUserRequestDialog(message);\n break;\n case \"Show\":\n if (isTournament) {\n LOGGER.info(\"Showing tournament table \" + tableId);\n SessionHandler.watchTable(roomId, tableId);\n }\n break;\n case \"Watch\":\n if (!isTournament) {\n LOGGER.info(\"Watching table \" + tableId);\n SessionHandler.watchTable(roomId, tableId);\n }\n break;\n case \"Replay\":\n LOGGER.info(\"Replaying game \" + gameId);\n SessionHandler.replayGame(gameId);\n break;\n }\n }\n };\n\n Action closedTableAction;\n closedTableAction = new AbstractAction() {\n @Override\n public void actionPerformed(ActionEvent e) {\n String searchID = e.getActionCommand();\n int modelRow = TablesUtil.findTableRowFromSearchId(matchesModel, searchID);\n if (modelRow == -1) {\n return;\n }\n String action = (String) matchesModel.getValueAt(modelRow, MatchesTableModel.COLUMN_ACTION);\n switch (action) {\n case \"Replay\":\n java.util.List<UUID> gameList = matchesModel.getListofGames(modelRow);\n if (gameList != null && !gameList.isEmpty()) {\n if (gameList.size() == 1) {\n SessionHandler.replayGame(gameList.get(0));\n } else {\n gameChooser.show(gameList, MageFrame.getDesktop().getMousePosition());\n }\n }\n // MageFrame.getDesktop().showTournament(tournamentId);\n break;\n case \"Show\":\n if (matchesModel.isTournament(modelRow)) {\n LOGGER.info(\"Showing tournament table \" + matchesModel.getTableId(modelRow));\n SessionHandler.watchTable(roomId, matchesModel.getTableId(modelRow));\n }\n break;\n }\n }\n };\n\n // !!!! adds action buttons to the table panel (don't delete this)\n actionButton1 = new TablesButtonColumn(tableTables, openTableAction, tableTables.convertColumnIndexToView(TablesTableModel.ACTION_COLUMN));\n actionButton2 = new TablesButtonColumn(tableCompleted, closedTableAction, tableCompleted.convertColumnIndexToView(MatchesTableModel.COLUMN_ACTION));\n // selection\n tablesLastSelection.put(tableTables, \"\");\n tablesLastSelection.put(tableCompleted, \"\");\n addTableSelectListener(tableTables);\n addTableSelectListener(tableCompleted);\n // double click\n addTableDoubleClickListener(tableTables, openTableAction);\n addTableDoubleClickListener(tableCompleted, closedTableAction);\n }", "public TablePanel( PokerClient gui){\n\t\t//card = selectCard; Card selectCard,\n\t\tparent = gui;\n\t}", "private void createTable(){\n Object[][] data = new Object[0][8];\n int i = 0;\n for (Grupo grupo : etapa.getGrupos()) {\n Object[][] dataAux = new Object[data.length+1][8];\n System.arraycopy(data, 0, dataAux, 0, data.length);\n dataAux[i++] = new Object[]{grupo.getNum(),grupo.getAtletas().size(),\"Registar Valores\",\"Selecionar Vencedores\", \"Selecionar Atletas\"};\n data = dataAux.clone();\n }\n\n //COLUMN HEADERS\n String columnHeaders[]={\"Numero do Grupo\",\"Número de Atletas\",\"\",\"\",\"\"};\n\n tableEventos.setModel(new DefaultTableModel(\n data,columnHeaders\n ));\n //SET CUSTOM RENDERER TO TEAMS COLUMN\n tableEventos.getColumnModel().getColumn(2).setCellRenderer(new ButtonRenderer());\n tableEventos.getColumnModel().getColumn(3).setCellRenderer(new ButtonRenderer());\n tableEventos.getColumnModel().getColumn(4).setCellRenderer(new ButtonRenderer());\n\n //SET CUSTOM EDITOR TO TEAMS COLUMN\n tableEventos.getColumnModel().getColumn(2).setCellEditor(new ButtonEditor(new JTextField(), this.etapa));\n tableEventos.getColumnModel().getColumn(3).setCellEditor(new ButtonEditor(new JTextField(), this.etapa));\n tableEventos.getColumnModel().getColumn(4).setCellEditor(new ButtonEditor(new JTextField(), this.etapa));\n\n }", "public jpQLHoKhau() {\n initComponents();\n tableModel = (DefaultTableModel) tblDG.getModel();\n tableModel2 = (DefaultTableModel) tblTP.getModel();\n fillTblDG();\n fillTblTP();\n }", "TABLE createTABLE();", "private void init() {\n try {\n renderer = new TableNameRenderer(tableHome);\n if (listId != null) {\n model = new DefaultComboBoxModel(listId);\n }\n else {\n Object[] idList = renderer.getTableIdList(step, extraTableRef);\n model = new DefaultComboBoxModel(idList);\n }\n setRenderer(renderer);\n setModel(model);\n }\n catch (PersistenceException ex) {\n ex.printStackTrace();\n }\n }", "public DisplayTable() {\n initComponents();\n }", "private void createUIComponents() {\n table = new ShareTraderTable();\n }", "public void initTable();", "public TaskBoardModel() {\n\n }", "private void initTableView() {\n try {\n NonEditableDefaultTableModel dtm = new NonEditableDefaultTableModel();\n dtm.setColumnIdentifiers(new String[]{\"Id\", \"Code\", \"From\", \"To\", \"Prepared\", \"Status\"});\n\n for (PayrollPeriod p : ppDao.getPayrollPeriods()) {\n\n try {\n Object[] o = new Object[]{p.getId(), p,\n sdf.format(p.getDateFrom()), sdf.format(p.getDateTo()),\n sdf.format(p.getDatePrepared()), p.getStatus()};\n dtm.addRow(o);\n } catch (Exception ex) {\n }\n\n }\n tablePayrollPeriod.setModel(dtm);\n } catch (Exception ex) {\n Logger.getLogger(PayrollPeriodInformation.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public TabelaDoces() {\n initComponents();\n }", "public Tabono() {\n }", "public LayoutClassTable(TableModel tableModel, String[] columnNames)\n {\n super(tableModel);\n\n this.columnNames = columnNames;\n }", "static LearningTable createFilledLearningTable() {\n\t\tLearningTable table = new LearningTable(null, null, null);\n\t\t\n\t\ttable.getAttributes().addAll(createAttributes());\n\t\ttable.getExamples().addAll(createFilledExamples());\n\t\t\n\t\treturn table;\n\t}", "private void createTable() {\n\t\t// Tao dataModel & table \n\t\tdataModel = new DefaultTableModel(headers, 0);\n\t\ttable.setModel(dataModel);\n\t\t\n\t\tnapDuLieuChoBang();\n\t}", "public add_assignments() {\n initComponents();\n homeButton.setContentAreaFilled(false);\n }", "BTable createBTable();", "public void createButtonClicked() {\n clearInputFieldStyle();\n setAllFieldsAndSliderDisabled(false);\n setButtonsDisabled(false, true, true);\n setDefaultValues();\n Storage.setSelectedRaceCar(null);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n String tableName = ((JButton) e.getSource()).getText();\n Order order = new Order(tableName);\n if (e.getSource().getClass().equals(button.getClass())) {\n frame.dispose();\n Tables table = new Tables(tableName, order);\n table.createTableGUI();\n }\n }", "public static MlTableModel createModel(MlObjectTable table) {\n\n MlTableModel model = null;\n switch (table.getType()) {\n case Contact:\n model = new ContactTableModel(table);\n break;\n case Task:\n model = new TaskTableModel(table);\n break;\n case Image:\n model = new ImageTableModel(table);\n break;\n case Knowlet:\n case Collection:\n case Map:\n case Container:\n case Any:\n model = new AllObjectTableModel(table);\n break;\n default:\n throw new IllegalStateException(\"No table model found for specified object class: \" + table.getType().name());\n }\n return model;\n }", "public TableDeclaration() {\n }", "public TableObject()\r\n {\r\n\tsuper(ObjectType.Table);\r\n\tglobal = false;\r\n }", "public HubAdminDetailsFrame() {\n \n initComponents();\n dm = (DefaultTableModel) table.getModel();\n li.HubAdmins();\n hAlist = li.return_hubAdmin();\n }", "private IAssignmentElement createAssignment() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\tfinal IEvent event = createEvent(mch, \"event\");\n\t\treturn event.createChild(IAction.ELEMENT_TYPE, null, null);\n\t}", "public CursosTable() {\n \n \n }", "public Travellers() {\n initComponents();\n table1 = (DefaultTableModel) jTable1.getModel();\n }", "public formArticulo() {\r\n initComponents();\r\n this.tableModel = (javax.swing.table.DefaultTableModel)tblArt.getModel();\r\n }", "private EstabelecimentoTable() {\n\t\t\t}", "protected EquipmentTable() {\r\n\t\tsuper(NAME, PRIMARY_KEY_CONSTRAINT, null, null, GeneralHelper.getNonPrimaryColumns(COLUMNS));\r\n\t}", "public TestFrame() {\n\n final String[] columnNames = {\"Nombre\",\n \"Apellido\",\n \"webeo\",\n \"Años de Practica\",\n \"Soltero(a)\"};\n final Object[][] data = {\n\n {\"Lhucas\", \"Huml\",\n \"Patinar\", new Integer(3), new Boolean(true)},\n {\"Kathya\", \"Walrath\",\n \"Escalar\", new Integer(2), new Boolean(false)},\n {\"Marcus\", \"Andrews\",\n \"Correr\", new Integer(7), new Boolean(true)},\n {\"Angela\", \"Lalth\",\n \"Nadar\", new Integer(4), new Boolean(false)}\n };\n\n Vector dataV1 = new Vector();\n dataV1.add(\"XXXX\");\n dataV1.add(\"YYYY\");\n dataV1.add(\"JJJJ\");\n\n Vector dataV2 = new Vector();\n dataV2.add(\"XX2XX\");\n dataV2.add(\"Y2YYY\");\n dataV2.add(\"J2JJJ\");\n\n List dataF = new ArrayList();\n dataF.add(dataV1);\n dataF.add(dataV2);\n\n /*Vector dataC = new Vector();\n dataC.add(\"1\");\n dataC.add(\"2\");\n dataC.add(\"J23JJJ\");\n\n //model = new ModeloDatosTabla(data, true);\n model = new TableModel_1_1(dataC, dataF);\n model2 = new TableModel(columnNames, data, false);\n*/\n\n\n\n initComponents();\n\n\n }", "public void initTable() {\n this.table.setSelectable(true);\n this.table.setImmediate(true);\n this.table.setWidth(\"100%\");\n this.table.addListener(this);\n this.table.setDropHandler(this);\n this.table.addActionHandler(this);\n this.table.setDragMode(TableDragMode.ROW);\n this.table.setSizeFull();\n\n this.table.setColumnCollapsingAllowed(true);\n // table.setColumnReorderingAllowed(true);\n\n // BReiten definieren\n this.table.setColumnExpandRatio(LABEL_ICON, 1);\n this.table.setColumnExpandRatio(LABEL_DATEINAME, 3);\n this.table.setColumnExpandRatio(LABEL_DATUM, 2);\n this.table.setColumnExpandRatio(LABEL_GROESSE, 1);\n this.table.setColumnExpandRatio(LABEL_ACCESS_MODES, 1);\n this.table.setColumnHeader(LABEL_ICON, \"\");\n }", "MultTable() //do not use the name of the constructor for the name of another method\n {}", "private void Table()\n{\n Object [] Kolom = {\"Nama\", \"No. Telp\", \"Kota Asal\"};\n Table = new DefaultTableModel(null, Kolom);\n Tabel.setModel(Table);\n}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n assignmentHeader = new javax.swing.JPanel();\n assignmentHeader_Label = new javax.swing.JLabel();\n home_Label = new javax.swing.JLabel();\n homeButton = new javax.swing.JButton();\n paymentDetails = new javax.swing.JPanel();\n subjectCode_Label = new javax.swing.JLabel();\n doneButton = new javax.swing.JButton();\n subjectCode = new javax.swing.JTextField();\n backButton = new javax.swing.JButton();\n weight_Label = new javax.swing.JLabel();\n assignmentWeight = new javax.swing.JTextField();\n assignmentType_Label = new javax.swing.JLabel();\n assignmentType = new javax.swing.JTextField();\n addAssignmentButton = new javax.swing.JButton();\n removeAssignmentButton = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n assignmentsTable = new javax.swing.JTable();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setResizable(false);\n getContentPane().setLayout(null);\n\n assignmentHeader.setBackground(new java.awt.Color(36, 47, 65));\n assignmentHeader.setLayout(null);\n\n assignmentHeader_Label.setFont(new java.awt.Font(\"Consolas\", 1, 30)); // NOI18N\n assignmentHeader_Label.setForeground(new java.awt.Color(255, 255, 255));\n assignmentHeader_Label.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n assignmentHeader_Label.setText(\"ADD ASSIGNMENTS\");\n assignmentHeader.add(assignmentHeader_Label);\n assignmentHeader_Label.setBounds(0, 13, 900, 64);\n\n home_Label.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n home_Label.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/home.png\"))); // NOI18N\n assignmentHeader.add(home_Label);\n home_Label.setBounds(0, 0, 90, 90);\n\n homeButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n homeButtonActionPerformed(evt);\n }\n });\n assignmentHeader.add(homeButton);\n homeButton.setBounds(0, 0, 90, 90);\n\n getContentPane().add(assignmentHeader);\n assignmentHeader.setBounds(0, 0, 930, 90);\n\n paymentDetails.setBackground(new java.awt.Color(97, 212, 195));\n paymentDetails.setLayout(null);\n\n subjectCode_Label.setFont(new java.awt.Font(\"Consolas\", 0, 22)); // NOI18N\n subjectCode_Label.setText(\"Subject Code\");\n paymentDetails.add(subjectCode_Label);\n subjectCode_Label.setBounds(100, 110, 210, 30);\n\n doneButton.setBackground(new java.awt.Color(36, 47, 65));\n doneButton.setFont(new java.awt.Font(\"Consolas\", 1, 24)); // NOI18N\n doneButton.setForeground(new java.awt.Color(255, 255, 255));\n doneButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/done.png\"))); // NOI18N\n doneButton.setText(\"Done\");\n doneButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n doneButtonActionPerformed(evt);\n }\n });\n paymentDetails.add(doneButton);\n doneButton.setBounds(500, 430, 120, 50);\n\n subjectCode.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n subjectCode.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n subjectCodeActionPerformed(evt);\n }\n });\n paymentDetails.add(subjectCode);\n subjectCode.setBounds(310, 110, 230, 30);\n\n backButton.setBackground(new java.awt.Color(36, 47, 65));\n backButton.setFont(new java.awt.Font(\"Consolas\", 1, 24)); // NOI18N\n backButton.setForeground(new java.awt.Color(255, 255, 255));\n backButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/left-arrow.png\"))); // NOI18N\n backButton.setText(\"Back\");\n backButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backButtonActionPerformed(evt);\n }\n });\n paymentDetails.add(backButton);\n backButton.setBounds(330, 430, 120, 50);\n\n weight_Label.setFont(new java.awt.Font(\"Consolas\", 0, 22)); // NOI18N\n weight_Label.setText(\"Weight\");\n paymentDetails.add(weight_Label);\n weight_Label.setBounds(100, 190, 210, 30);\n\n assignmentWeight.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n assignmentWeight.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n assignmentWeightActionPerformed(evt);\n }\n });\n paymentDetails.add(assignmentWeight);\n assignmentWeight.setBounds(310, 190, 230, 30);\n\n assignmentType_Label.setFont(new java.awt.Font(\"Consolas\", 0, 22)); // NOI18N\n assignmentType_Label.setText(\"Assignment Type\");\n paymentDetails.add(assignmentType_Label);\n assignmentType_Label.setBounds(100, 150, 210, 30);\n\n assignmentType.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n assignmentType.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n assignmentTypeActionPerformed(evt);\n }\n });\n paymentDetails.add(assignmentType);\n assignmentType.setBounds(310, 150, 230, 30);\n\n addAssignmentButton.setBackground(new java.awt.Color(36, 47, 65));\n addAssignmentButton.setFont(new java.awt.Font(\"Consolas\", 0, 15)); // NOI18N\n addAssignmentButton.setForeground(new java.awt.Color(255, 255, 255));\n addAssignmentButton.setText(\"Add\");\n addAssignmentButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addAssignmentButtonActionPerformed(evt);\n }\n });\n paymentDetails.add(addAssignmentButton);\n addAssignmentButton.setBounds(650, 130, 80, 30);\n\n removeAssignmentButton.setBackground(new java.awt.Color(36, 47, 65));\n removeAssignmentButton.setFont(new java.awt.Font(\"Consolas\", 0, 15)); // NOI18N\n removeAssignmentButton.setForeground(new java.awt.Color(255, 255, 255));\n removeAssignmentButton.setText(\"Remove\");\n removeAssignmentButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n removeAssignmentButtonActionPerformed(evt);\n }\n });\n paymentDetails.add(removeAssignmentButton);\n removeAssignmentButton.setBounds(650, 180, 80, 30);\n\n assignmentsTable.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n assignmentsTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Subject Code\", \"Assignment Type\", \"Weight(%)\"\n }\n ));\n jScrollPane1.setViewportView(assignmentsTable);\n\n paymentDetails.add(jScrollPane1);\n jScrollPane1.setBounds(145, 250, 610, 150);\n\n getContentPane().add(paymentDetails);\n paymentDetails.setBounds(0, 0, 920, 520);\n\n setSize(new java.awt.Dimension(918, 547));\n setLocationRelativeTo(null);\n }", "private void createTable() {\n table = new Table();\n table.bottom();\n table.setFillParent(true);\n }", "public ButtonPanel(NoughtsCrossesModel model) {\n\t\tsuper();\n\n\t\tthis.model = model;\n\n\t\tthis.reset = new JButton(\"New Game\");\n\t\treset.setEnabled(false);\n\t\treset.addActionListener(e -> model.newGame());\n\n\t\tthis.exit = new JButton(\"Exit\");\n\t\texit.setEnabled(false);\n\t\texit.addActionListener(e -> {\n\t\t\tSwingUtilities.getWindowAncestor(this).dispose();\n\t\t\tmodel.exitGame();\n\t\t});\n\n\t\tadd(reset);\n\t\tadd(exit);\n\t}", "public Principal() {\n initComponents();\n JButton botonesH[] = {cmdCrear, cmdLimpiar};\n JButton botonesD[] = {cmdManual, cmdAutomatico, cmdOperaciones};\n\n Helper.habilitarBotones(botonesH);\n Helper.deshabilitarBotones(botonesD);\n\n txtFilas.setEditable(true);\n txtColumnas.setEditable(true);\n }", "public Product() { \n initComponents();\n table();\n \n }", "public PromocionTableModel() {\n \n //Establecemos la sentencia SQL que vamos a ejecutar\n super(\"SELECT ID_PROMOCION , NOMBRE, DESCUENTO FROM PROMOCION\");\n \n }", "private void initComponents() {\n\t\tfixedSizeTable = new FixedSizeTable();\r\n\t\tdataModel = new NonEditableTableModel();\r\n\t\t\r\n\t\tfixedSizeTable.getTable().setModel(dataModel);\r\n\t\tfixedSizeTable.getTable().setEnabled(false);\r\n\t\r\n\t\t// initialize selection listener\r\n\t\ttableMouseListener = new TableMouseListener();\r\n\t\t\r\n\t\t// add it to the panel so that it is centered left right and top down\r\n\t\tsetOpaque(false);\r\n\t\tsetLayout(new GridBagLayout());\r\n\t\tadd(fixedSizeTable, new GridBagConstraints());\r\n\t}", "public SaleOffPriceCreatorPanel() {\n initComponents();\n\n lookup = new AbstractLookup(content);\n\n saleOff = new SaleOff();\n promotion = new Promotion();\n\n tblSaleOffPrice.setRowHeight(26);\n\n tableCell = new SaleOffPiceTableCell(this);\n tblSaleOffPrice.getColumnModel().getColumn(0).setCellEditor(tableCell);\n tblSaleOffPrice.getColumnModel().getColumn(0).setCellRenderer(tableCell);\n\n tblSaleOffPrice.getColumnModel().getColumn(1).setCellEditor(tableCell);\n tblSaleOffPrice.getColumnModel().getColumn(1).setCellRenderer(tableCell);\n\n tblSaleOffPrice.getColumnModel().getColumn(2).setCellEditor(tableCell);\n tblSaleOffPrice.getColumnModel().getColumn(2).setCellRenderer(tableCell);\n\n tblSaleOffPrice.getColumnModel().getColumn(3).setCellEditor(tableCell);\n tblSaleOffPrice.getColumnModel().getColumn(3).setCellRenderer(tableCell);\n\n btnExit.addActionListener(this);\n btnNew.addActionListener(this);\n btnSave.addActionListener(this);\n btnSaveList.addActionListener(this);\n\n resetColorRowTable();\n\n }", "public BasicTable(String name) {\n setId(name);\n }", "public Formulario() {\n initComponents();\n modelo = (DefaultTableModel) jTable2.getModel();\n }", "private void setupTable() {\n\t\tString[] columns = { \"Course Name\", \"Course Number\" };\n\n\t\ttableModel = new DefaultTableModel(null, columns) {\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t@Override\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\n\t\ttable = new JTable(tableModel);\n\t\ttable.setColumnSelectionAllowed(false);\n\t\ttable.setRowSelectionAllowed(true);\n\t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n\t\ttable.getSelectionModel().addListSelectionListener((ListSelectionEvent event) -> {\n\t\t\tif (table.getSelectedRow() >= 0) {\n\t\t\t\tString name = table.getValueAt(table.getSelectedRow(), 0).toString();\n\t\t\t\tint num = Integer.parseInt(table.getValueAt(table.getSelectedRow(), 1).toString());\n\t\t\t\tupdateTextArea((Course) adCon.search(name, num));\n\t\t\t}\n\t\t});\n\n\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\tscrollPane.setPreferredSize(new Dimension(350, 175));\n\t\tdisplay.add(scrollPane);\n\t}", "public User_accounts() {\n\n initComponents();\n tableModel = (DefaultTableModel) jTable1.getModel();\n loadUsers();\n\n }", "private void prepareTable() {\n TeamsRepository tr = new TeamsRepository();\n //ka uradim ovo dle odma mi samo inicijalizuje tabelu\n// tblTeams.setModel(new TeamsTableModel(tr.getTeams()));\n// ni ovaj kod mi nista nije radio\n// TeamsTableModel ttm = new TeamsTableModel(tr.getTeams());\n TableColumnModel tcm = tblTeams.getColumnModel();\n TableColumn tc = tcm.getColumn(1);\n TableCellEditor tce = new DefaultCellEditor(getComboBox());\n tc.setCellEditor(tce);\n }", "public TableEx() {\r\n setStyleName(\"gwtEx-Table\");\r\n rf = getRowFormatter();\r\n this.addClickHandler(tableClickTable);\r\n }", "public Table() {\n this.tableName = \"\";\n this.rows = new HashSet<>();\n this.columnsDefinedOrder = new ArrayList<>();\n }", "void addButtonsToTable(){\n detailButtons = new Vector<JButton>();\n stornoButtons = new Vector<JButton>();\n for (int i=0; i<data.size(); i++){\n detailButtons.add(new JButton(\"+\"));\n detailButtons.get(i).addActionListener(this);\n myTable.setValueAt( detailButtons.get(i), i, 0 );\n stornoButtons.add(null);\n if (!stornoStatuses.get(i)) { // exclude already canceled bookings\n stornoButtons.set(i, new JButton(\"Storno\"));\n stornoButtons.get(i).addActionListener(this);\n myTable.setValueAt( stornoButtons.get(i), i, overviewLabels.size()-1 );\n }\n }\n }", "private JPanel initBtnPanel() {\n\t\tconvBtn = new JButton();\n\t\tconvBtn.addActionListener(new ConversionBtnListener());\n\t\tconvBtn.setFont(new AppFont());\n\n\t\t// A button to switch the input and output scales\n\t\tswitchBtn = new JButton();\n\t\tswitchBtn.addActionListener(new SwitchListener());\n\t\tswitchBtn.setFont(new AppFont());\n\n\t\t// The panel that displays the buttons\n\t\tJPanel btnPanel = new JPanel();\n\t\tbtnPanel.setLayout(new FlowLayout());\n\t\tbtnPanel.add(convBtn);\n\t\tbtnPanel.add(switchBtn);\n\n\t\treturn btnPanel;\n\t}", "private JTable getTable() {\n\t\tif (table == null) {\n\t\t\ttable = new JTable() {\n\t\t\t\t/**\n\t\t\t\t * \n\t\t\t\t */\n\t\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t};\n\t\t\ttable.setModel(getDataModel());\n\t\t\ttable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\n\t\t\ttable.getColumnModel().getColumn(0).setPreferredWidth(30);\n\t\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(100);\n\t\t\ttable.getColumnModel().getColumn(2).setPreferredWidth(100);\n\t\t}\n\t\treturn table;\n\t}" ]
[ "0.59392035", "0.58435833", "0.57452196", "0.56921756", "0.5600858", "0.5556652", "0.5528755", "0.5507077", "0.54953426", "0.5471782", "0.5469893", "0.5448977", "0.54181695", "0.5397323", "0.5391419", "0.53656405", "0.53443235", "0.5326899", "0.53040403", "0.5291361", "0.52865547", "0.52747154", "0.5266593", "0.52628666", "0.5262728", "0.5245308", "0.5237764", "0.5235302", "0.52311707", "0.5225119", "0.52155435", "0.5207815", "0.5203332", "0.51948935", "0.51894385", "0.518681", "0.51854515", "0.5181453", "0.5159842", "0.5159815", "0.5159477", "0.5150859", "0.51501364", "0.5144186", "0.51399446", "0.5137782", "0.51355886", "0.5134736", "0.51330006", "0.5131633", "0.5129371", "0.5125531", "0.5123471", "0.51200676", "0.51170594", "0.51149046", "0.51080155", "0.51010895", "0.5100412", "0.5092843", "0.50907093", "0.50857216", "0.50843954", "0.5083903", "0.5079803", "0.5073462", "0.5065563", "0.5063169", "0.50605303", "0.5060196", "0.5058323", "0.5058077", "0.50577265", "0.5054793", "0.5049172", "0.5045805", "0.50425994", "0.5041014", "0.5040259", "0.50341135", "0.50282353", "0.5028134", "0.5022316", "0.5021032", "0.5020962", "0.5019936", "0.50188726", "0.5018401", "0.50153714", "0.50082624", "0.5002356", "0.49968067", "0.49966967", "0.4995217", "0.49920064", "0.49903977", "0.49873737", "0.49849117", "0.49820584", "0.49806452" ]
0.82205945
0
Given a list, rotate the list to the right by k places, where k is nonnegative. For example: Given 1>2>3>4>5>NULL and k = 2, return 4>5>1>2>3>NULL.
public ListNode rotateRight(ListNode head, int n) { // Note: The Solution object is instantiated only once and is reused by // each test case. if (null == head) { return null; } ListNode p = head; int length = 0; while (null != p) { p = p.next; length++; } if (n % length == 0) { return head; } else { n = n % length; } int num = n; ListNode first = head; ListNode second = head; while (num > 0) { first = first.next; num--; } while (null != first.next) { first = first.next; second = second.next; } ListNode newHead = second.next; second.next = null; first.next = head; return newHead; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListNode rotateRight(ListNode head, int k) {\r\n\t\tint size = listSize(head);\r\n\t\tif (head == null || k <= 0 || k == size) return head;\r\n\t\tif (k > size) k %= size;\r\n\t\tint count = 1;\r\n\t\tListNode curr = head;\r\n\t\tk = size - k;\r\n\t\twhile (count < k && curr != null) {\r\n\t\t\tcurr = curr.next;\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tListNode nextHead = curr;\r\n\t\twhile (curr.next != null)\r\n\t\t\tcurr = curr.next;\r\n\t\tcurr.next = head;\r\n\t\thead = nextHead.next;\r\n\t\tnextHead.next = null;\r\n\t\treturn head;\r\n\t}", "public ListNode rotateRight(ListNode head, int k) {\n \tif (head == null || k == 0 || head.next == null)\n \t\treturn head;\n \tint size = 1;\n \tListNode curr = head,end=head;\n \tListNode newHead = new ListNode(0);\n \twhile (end.next != null){\n \t\tend = end.next;\n \t\tsize++;\n \t}\n \tif (k%size == 0)\n\t return head;\n \tint start = 1;\n \twhile(start < size - k%size){\n \t\tcurr = curr.next;\n \t\tstart++;\n \t}\n \tnewHead.next = curr.next;\n \tcurr.next = null;\n \tend.next = head;\n \treturn newHead.next;\n }", "private static void rightRotate(int[] nums, int k) {\r\n\t if (nums.length == 0) return;\r\n\t \r\n\t k %= nums.length;\r\n\t \r\n\t if (k == 0) return;\r\n\t \r\n\t int left=0, right=nums.length-1, tmp;\r\n\t \r\n\t while(left < right) {\r\n\t tmp = nums[left];\r\n\t nums[left] = nums[right];\r\n\t nums[right] = tmp;\r\n\t \r\n\t left++;\r\n\t right--;\r\n\t }\r\n\t \r\n\t left=0;\r\n\t right=k-1;\r\n\t \r\n\t while(left < right) {\r\n\t \ttmp = nums[left];\r\n\t \tnums[left] = nums[right];\r\n\t \tnums[right] = tmp;\r\n\t \t \r\n\t \tleft++;\r\n\t \tright--;\r\n\t }\r\n\t \r\n\t left=k;\r\n\t right=nums.length-1;\r\n\t \r\n\t while(left < right) {\r\n\t \ttmp = nums[left];\r\n\t \tnums[left] = nums[right];\r\n\t \tnums[right] = tmp;\r\n\t \t \r\n\t \tleft++;\r\n\t \tright--;\r\n\t }\r\n\t }", "public ListNode rotateLeft(ListNode head, int k) {\r\n\t\tif (k <= 0) return head;\r\n\t\tListNode curr = head;\r\n\t\tint count = 1;\r\n\t\twhile (count++ < k && curr != null)\r\n\t\t\tcurr = curr.next;\r\n\t\tif (curr == null) return head;\r\n\t\tListNode nextHead = curr;\r\n\t\twhile (curr.next != null)\r\n\t\t\tcurr = curr.next;\r\n\t\tcurr.next = head;\r\n\t\thead = nextHead.next;\r\n\t\tnextHead.next = null;\r\n\t\treturn head;\r\n\t}", "public ListNode rotateRight(ListNode head, int n) {\n \n if (head == null || head.next == null)\n return head;\n int i = 0;\n ListNode tail = head;\n ListNode dummy = new ListNode(0);\n dummy.next = head;\n ListNode pre = dummy;\n \n // get the length of the list\n int len = 0;\n while (head != null){\n head = head.next;\n len ++;\n if (head != null)\n tail = head;\n }\n head = dummy.next;\n if (n%len == 0)\n\t\t return dummy.next;\n\t n = len - n%len;\n\t ListNode cur = dummy.next;\n while (i < n){\n pre = cur;\n cur = cur.next;\n i++;\n }\n dummy.next = cur;\n tail.next = head;\n pre.next = null;\n return dummy.next;\n }", "public ListNode SolveByMovingPointers(ListNode head, int k)\n {\n // Edge cases\n if (head == null)\n return null;\n if (k == 0)\n return head;\n\n // Calculate list length + actual number of rotations\n int listLength = FindLength(head);\n int numberOfRotations = k >= listLength? k % listLength : k;\n\n // Another edge case - may not need to rotate at all\n if (listLength == 1 || numberOfRotations == 0)\n return head;\n\n // Iterate to the node before the node with number that needs to be rotated to beginning...\n ListNode oldHeadIterator = head;\n int counter = listLength - numberOfRotations - 1;\n while (counter != 0)\n {\n counter -= 1;\n oldHeadIterator = oldHeadIterator.next;\n }\n\n // ... Then make the following node be the beginning of new head + nullify tail of old head\n ListNode newHead = oldHeadIterator.next;\n oldHeadIterator.next = null;\n\n // Iterate to end of the new head, then simply add the old head contents to the tail\n ListNode newHeadIterator = newHead;\n while (newHeadIterator.next != null)\n newHeadIterator = newHeadIterator.next;\n newHeadIterator.next = head;\n\n return newHead;\n }", "public ListNode rotateRight(ListNode head, int n) {\n if(n == 0 || head == null) {\r\n return head;\r\n } \r\n ListNode curr = head;\r\n int length = 0;\r\n while(curr!=null) {\r\n length++;\r\n curr = curr.next;\r\n }\r\n n = n % length;\r\n //skip the zero\r\n if(n == 0) {\r\n return head;\r\n }\r\n //do the rotating\r\n ListNode newHead = new ListNode(-1);\r\n newHead.next = head;\r\n \r\n int step = length - n;\r\n curr = newHead;\r\n for(int i = 0; i < step; i++) {\r\n curr = curr.next;\r\n }\r\n \r\n //be aware need to break the loop\r\n ListNode tmp = curr.next;\r\n curr.next = null;\r\n curr = tmp;\r\n \r\n newHead.next = curr;\r\n while(curr.next != null) {\r\n curr = curr.next;\r\n }\r\n curr.next = head;\r\n \r\n return newHead.next;\r\n }", "public ListNode SolveUsingAdditionalLinkedList(ListNode head, int k)\n {\n // Edge cases\n if (head == null)\n return null;\n if (k == 0)\n return head;\n\n // Create blank list to store new result\n ListNode result = new ListNode(-1, null);\n\n // Find the length of the list\n int listLength = FindLength(head);\n\n // Calculate the actual number of rotations (since k can be greater than list length)\n int numberOfRotations = k >= listLength? k % listLength : k;\n\n // Another edge case - may not need to rotate at all\n if (listLength == 1 || numberOfRotations == 0)\n return head;\n\n // Iterate through list until we get to the numbers that need to be moved to beginning...\n int counter = listLength - numberOfRotations;\n ListNode temp = head;\n while (counter != 0)\n {\n temp = temp.next;\n counter -= 1;\n }\n\n // ... Then add the rotated numbers to list\n while (temp != null)\n {\n AddLast(result, temp.val);\n temp = temp.next;\n }\n\n // Lastly, reset counters and add the remaining numbers to the back\n counter = listLength - numberOfRotations;\n temp = head;\n while (counter != 0)\n {\n AddLast(result, temp.val);\n temp = temp.next;\n counter -= 1;\n }\n\n // Since result is dummy node, return result.next\n return result.next;\n }", "public static <V> ListNode<V> Rotate (\n\t\tfinal ListNode<V> head,\n\t\tfinal int k)\n\t{\n\t\tif (null == head || 0 >= k)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tint rotationCount = 0;\n\t\tListNode<V> prevNode = null;\n\t\tListNode<V> currentNode = head;\n\n\t\tListNode<V> nextNode = head.next();\n\n\t\twhile (++rotationCount < k)\n\t\t{\n\t\t\tif (null == nextNode)\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tprevNode = currentNode;\n\t\t\tcurrentNode = nextNode;\n\n\t\t\tnextNode = nextNode.next();\n\t\t}\n\n\t\tif (!prevNode.setNext (\n\t\t\tnull\n\t\t))\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tListNode<V> rotatedHead = currentNode;\n\n\t\tnextNode = currentNode.next();\n\n\t\twhile (null != nextNode)\n\t\t{\n\t\t\tcurrentNode = nextNode;\n\n\t\t\tnextNode = nextNode.next();\n\t\t}\n\n\t\treturn currentNode.setNext (\n\t\t\thead\n\t\t) ? rotatedHead : null;\n\t}", "public ListNode rotateRight(ListNode head, int n) {\n \n int len = 0;\n \n if (head == null) return head;\n \n ListNode node = head;\n ListNode prev = head;\n \n while (node != null) {\n prev = node;\n node = node.next;\n len++;\n }\n \n n = n % len;\n \n if (n == 0) return head;\n \n int current = 1;\n \n prev.next = head;\n \n node = head;\n \n while (current < len - n) {\n node = node.next;\n current++;\n }\n \n prev = node.next;\n node.next = null;\n \n return prev;\n }", "public ListNode rotateRight(ListNode head, int n) {\n if(n==0||head==null)\n return head;\n ListNode fast=head;\n ListNode slow=head;\n ListNode res=new ListNode(0);\n res.next=head;\n \n int count=0;\n for(int i=0;i<n;i++){\n if(fast==null){\n break; \n }else{\n count++;\n fast=fast.next;\n }\n }\n \n if(fast==null)\n return rotateRight(head,n%count);\n \n while(fast.next!=null){\n fast=fast.next;\n slow=slow.next;\n }\n \n ListNode b=slow.next;\n \n res.next=b;\n slow.next=null;\n fast.next=head;\n \n return res.next;\n }", "public void rotateNoSpace(int[] nums, int k){\n //in case k is greater than the length\n k = k % nums.length;\n \n for(int i = 0; i < k; i++){\n int last = nums[nums.length-1];\n for(int j = nums.length - 1; j >= 1; j--){\n nums[j] = nums[j-1];\n }\n nums[0] = last;\n }\n }", "public void rotate2(int[] nums, int k) {\n int start = 0, n = nums.length;\n k %= n;\n while (n > 0 && k > 0) {\n // Swap the last k elements with the first k elements.\n // The last k elements will be in the correct positions\n // but we need to rotate the remaining (n - k) elements\n // to the right by k steps.\n for (int i = 0; i < k; i++) {\n swap(nums, i + start, n - k + i + start);\n }\n n -= k;\n start += k;\n k %= n;\n }\n }", "public void rotateReverse(int[] nums, int k){\n int n = nums.length;\n \n //in case k is greater than the length\n k = k % n;\n \n reverse(nums, 0, n-1);\n reverse(nums, 0, k-1);\n reverse(nums, k, n-1);\n }", "public ListNode rotateRight(ListNode head, int n) {\n if(head==null)\n return null;\n ListNode p2=head;\n ListNode p1=head;\n ListNode newhead=head;\n int count=0;\n \n if(n==0)\n return head;\n \n for(int i=0;i<n;i++)\n {\n p1=p1.next;\n count++;\n if(p1==null)\n break;\n }\n \n if(count==1&&p1==null)\n return head;\n \n if(p1==null)\n {\n p1=head;\n n=n%count;\n if(n==0)\n return head;\n for(int i=0;i<n;i++)\n {\n p1=p1.next; \n }\n while(p1.next!=null)\n {\n p1=p1.next;\n p2=p2.next;\n }\n ListNode tail=p2;\n newhead=p2.next;\n while(tail.next!=null)\n tail=tail.next;\n tail.next=head;\n p2.next=null;\n }\n else\n {\n while(p1.next!=null)\n {\n p1=p1.next;\n p2=p2.next;\n }\n ListNode tail=p2;\n newhead=p2.next;\n while(tail.next!=null)\n {\n tail=tail.next;\n }\n tail.next=head;\n p2.next=null;\n }\n \n return newhead;\n }", "public ListNode rotateKplace(ListNode head, int n) {\n if (head == null) return head;\n\n int len = getLen(head);\n int half = n % len;\n if (half == 0) return head;\n\n int index = len - half; // index to rotate\n ListNode curr = head;\n\n for (int i = 0; i < index - 1; i++) {\n curr = curr.next;\n } // curr is last node before rotate\n\n ListNode h1 = curr.next;\n curr.next = null;\n\n ListNode tail = h1;\n while (tail.next != null) {\n tail = tail.next;\n }\n tail.next = head;\n return h1;\n }", "public void rotateLeftWithReverse(int arr[], int n, int k) {\n reverse(arr, 0, k-1);\n\n //reverse last k elements\n reverse(arr, n-k-1, n-1);\n\n //reverse all array\n reverse(arr, 0, n-1);\n printArray(arr);\n\n /*\n * Time Complexity : O(n) loop ran for k times\n * Space Complexity : O(1)\n */\n }", "public static ListNode reverseKGroup(ListNode head, int k) {\n\t\tListNode runner = head;\n\t\tint counter = 0;\n\t\twhile(runner != null){\n\t\t\trunner = runner.next;\n\t\t\tcounter++;\n\t\t}\n\t\tif(counter < k){return head;}\n\t\t\n\t\t// reverse first k nodes\n\t\tListNode dummy = new ListNode(0);\n\t\tdummy.next = head;\n\t\t\n\t\tListNode oriHead = head;\n\t\tListNode prev = null;\n\t\t\n\t\tfor(int i=0; i<k; i++){\n\t\t\tListNode temp = head.next;\n\t\t\thead.next = prev;\n\t\t\tprev = head;\n\t\t\thead = temp;\n\t\t}\n\t\t\n\t\t// append rest nodes by recur\n\t\tdummy.next = prev;\n\t\toriHead.next = reverseKGroup(head, k);\n\t\t\n\t\treturn dummy.next;\n\t\n\t}", "public static Nodelink rotate(Nodelink node, int k){ 1 2 3 4 5\n //\n\n Nodelink head = node;\n Nodelink temp = null;\n Nodelink temp2 = null;\n\n for(int i = 0; i < k; i++){\n while(node != null){\n\n temp = node;\n temp2 = node.next;\n\n node.next = temp;\n\n\n node = node.next;\n\n }\n\n head = node;\n }\n\n\n return head;\n }", "public void rotate(int[] nums, int k) {\n \n k = k % nums.length;\n reverse(nums, 0, nums.length-1);\n reverse(nums, 0, k-1);\n reverse(nums, k, nums.length-1);\n }", "public ListNode reverseKGroup(ListNode head, int k) {\n if(head==null || head.next==null || k==0)\n return head;\n ListNode left = head;\n ListNode right = head;\n int count = 1;\n while(count<=k && right!=null){\n right = right.next;\n count++;\n }\n if(count-1!=k && right==null)\n return left;\n ListNode pre = null;\n ListNode cur = left;\n while(cur!=right){\n ListNode next = cur.next;\n cur.next = pre;\n pre = cur;\n cur = next;\n }\n left.next = reverseKGroup(cur, k);\n return pre;\n }", "public ListNode reverseKGroup(ListNode head, int k) {\n if(head == null || head.next == null || k < 2)\n return head;\n \n ListNode dummy = new ListNode(0);\n ListNode curr = dummy;\n ListNode tail = head;\n int count = 0;\n while(head != null) {\n count++;\n if(count == k) {\n // Reverse nodes \n // Store location of head next\n // Store location of rear, this will be used to know where to continue next\n ListNode temp = head.next;\n ListNode last = tail;\n \n // Move pointers around to reverse the nodes\n ListNode next = tail;\n while(next != temp) {\n ListNode prev = tail;\n tail = next == tail ? tail.next : next;\n next = tail.next;\n tail.next = prev;\n }\n curr.next = head;\n curr = last;\n head = temp;\n tail = temp;\n count = 0;\n }\n else {\n head = head.next;\n }\n }\n curr.next = tail;\n return dummy.next;\n }", "public static void rotate(int[] nums, int k) {\n // get the kth index from the end to rotate\n\t\tint n = nums.length;\n\t\tk = k % n ;\n\t\tif(k == 0) return ;\n\t\tint prev = 0, tmp = 0;\n\t\tfor(int i = 0 ; i < k ; i++) {\n\t\t\tprev = nums[n - 1];\n\t\t\tfor(int j = 0 ; j < nums.length ; j++) {\n\t\t\t\ttmp = nums[j];\n\t\t\t\tnums[j] = prev;\n\t\t\t\tprev = tmp;\n\t\t\t}\n\t\t}\n }", "public void rotate(int[] nums, int k) {\n\t\tif(nums == null || nums.length == 0 || k <= 0){\n\t\t\treturn;\n\t\t}\n\t\tint n = nums.length, count = 0;\n\t\tk %= n;\n\t\tfor(int start = 0; count < n; start++){\n\t\t\tint cur = start;\n\t\t\tint prev = nums[start];\n\t\t\tdo{\n\t\t\t\tint next = (cur + k) % n;\n\t\t\t\tint temp = nums[next];\n\t\t\t\tnums[next] = prev;\n\t\t\t\tcur = next;\n\t\t\t\tprev = temp;\n\t\t\t\tcount++;\n\t\t\t}while(start != cur);\n\t\t}\n\t}", "public void rotateReverse(int[] nums, int k) {\n\t\tint n = nums.length;\n\t\tk %= n;\n\t\treverse(nums, 0, n - 1);\n\t\treverse(nums, 0, k - 1);\n\t\treverse(nums, k, n - 1);\n\t}", "public static int[] rotate(int[] nums, int k) {\n int[] temp = new int[k];\n int acc = k % nums.length;\n for (int i = 0; i < acc; i++) {\n temp[i] = nums[(nums.length - acc) + i];\n }\n for (int i = nums.length - acc - 1; i >= 0; i--) {\n nums[i + acc] = nums[i];\n }\n for (int i = 0; i < acc; i++) {\n nums[i] = temp[i];\n }\n return nums;\n }", "public static void main(String[] args) {\r\n RotateList rl = new RotateList();\r\n // test list : 1->2->3->4->5->NULL.\r\n ListNode testList = new ListNode(0);\r\n for (int i = 1; i < 6; i++) {\r\n testList.addNodeTail(new ListNode(i));\r\n }\r\n System.out.println(\"The input list is the following:\");\r\n testList.printList();\r\n ListNode result = rl.rotateRight(testList, 3);\r\n System.out.println(\"And the output is the following:\");\r\n result.printList();\r\n }", "public ListNode reverseKGroup(ListNode head, int k) {\n int len = getLength(head);\n ListNode dummy = new ListNode(-1);\n dummy.next = head;\n ListNode prepare = dummy;\n\n for (int i = 0; i <= len - k; i = i + k) {\n prepare = reverse(prepare, k);\n }\n return dummy.next;\n }", "public static ListNode reverse(ListNode head, int k) {\n\t\tListNode curr = head;\n\t\tListNode prev = null;\n\t\twhile (true) {\n\t\t\tListNode prevLast = prev; // null for head,1 for 4,5,6\n\t\t\tListNode first = curr;\n\n\t\t\t// reversing\n\t\t\tprev = null;\n\t\t\tfor (int i = 0; i < k && curr != null; i++) {\n\t\t\t\tListNode temp = curr.next;\n\t\t\t\tcurr.next = prev;\n\t\t\t\tprev = curr;\n\t\t\t\tcurr = temp;\n\t\t\t}\n\n\t\t\t// setting prevElement next pointer\n\t\t\tif (prevLast == null) {\n\t\t\t\thead = prev;\n\n\t\t\t} else {\n\t\t\t\tprevLast.next = prev;\n\t\t\t}\n\n\t\t\tif (curr == null)\n\t\t\t\tbreak;\n\n\t\t\tprev = first;\n\n\t\t}\n\n\t\treturn head;\n\n\t}", "public ListNode reverseKGroup(ListNode head, int k) {\r\n\t\tif (head == null) return head;\r\n\t\tint count = 0;\r\n\t\tListNode curr = head, prev = null, next = null;\r\n\t\t// Find the k+1 node\r\n\t\twhile (count != k && curr != null) {\r\n\t\t\tcurr = curr.next;\r\n\t\t\tcount++;\r\n\t\t}\r\n\r\n\t\tif (count != k) return head;\r\n\t\t// reverse list with k+1 node as head\r\n\t\tprev = reverseKGroup(curr, k);\r\n\t\t// LL Reversal Alg: reverse current k-group from head ptr\r\n\t\twhile (count-- > 0) {\r\n\t\t\tnext = head.next;\r\n\t\t\thead.next = prev;\r\n\t\t\tprev = head;\r\n\t\t\thead = next;\r\n\t\t}\r\n\t\treturn prev;\r\n\t}", "public void rotate(int[] nums, int k) {\n int[] tmp = new int[nums.length];\n for (int i = 0; i < nums.length; ++i) {\n tmp[(i + k) % nums.length] = nums[i];\n }\n\n for (int i = 0; i < nums.length; ++i) {\n nums[i] = tmp[i];\n }\n }", "ListNode kAltReverse(ListNode head, int k) {\r\n\t\tListNode curr = head, next = null, prev = null;\r\n\t\tint count = 0;\r\n\t\t/*1) LL Revese Alg: reverse first k nodes of the linked list */\r\n\t\twhile (curr != null && count < k) {\r\n\t\t\tnext = curr.next;\r\n\t\t\tcurr.next = prev;\r\n\t\t\tprev = curr;\r\n\t\t\tcurr = next;\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\t/* 2) Now head points to the kth node. So change next of head to (k+1)th node*/\r\n\t\tif (head != null) {\r\n\t\t\thead.next = curr;\r\n\t\t}\r\n\t\t/* 3) We do not want to reverse next k nodes. So move the curr pointer to skip next k nodes */\r\n\t\tcount = 0;\r\n\t\twhile (count < k - 1 && curr != null) {\r\n\t\t\tcurr = curr.next;\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\t/* 4) Recursively call for the list starting from curr->next. \r\n\t\tAnd make rest of the list as next of first node */\r\n\t\tif (curr != null) {\r\n\t\t\tcurr.next = kAltReverse(curr.next, k);\r\n\t\t}\r\n\t\t/* 5) prev is new head of the input list */\r\n\t\treturn prev;\r\n\t}", "public void rotateold2(int[] a, int k) {\n\n\t\tif (a == null || a.length == 0)\n\t\t\treturn;\n\n\t\tint jump = 0, len = a.length, cur = a[0], next, count = 0;\n\n\t\tk %= len; \n\t\tif (k == 0) return;\n\n\t\tif (len % k != 0 || k == 1)\n\t\t{ \n\t\t\tint i = 0;\n\t\t\twhile (i < len)\n\t\t\t{\n\t\t\t\tjump = (jump + k) % len;\n\t\t\t\tnext = a[jump];\n\t\t\t\ta[jump] = cur;\n\t\t\t\tcur = next;\n\t\t\t\ti++;\n\t\t\t} \n\t\t} \n\t\telse\n\t\t{\n\t\t\tfor (int i = 0; i <= len/k; i ++)\n\t\t\t{\n\t\t\t\tint start = 0;\n\t\t\t\tjump = i;\n\t\t\t\tnext = a[jump];\n\t\t\t\tcur = a[i];\n\t\t\t\twhile (start <= len/k)\n\t\t\t\t{\n\t\t\t\t\tjump = (jump + k) % len;\n\t\t\t\t\tnext = a[jump];\n\t\t\t\t\ta[jump] = cur;\n\t\t\t\t\tcur = next;\n\t\t\t\t\tstart++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void rotate() { // rotate the first element to the back of the list\n // TODO\n if ( tail != null){\n tail = tail.getNext();\n }\n\n }", "public static void rotate(java.util.List arg0, int arg1)\n { return; }", "public MyListNode reverseKGroup(MyListNode head, int k) {\n if (k == 1)\n return head;\n MyListNode H = new MyListNode(0);\n H.next = head;\n MyListNode q = H;\n for (MyListNode p = head; p != null; p = p.next) {\n p = reverseK(q, k);\n if (p == null)\n break;\n q = p;\n }\n return H.next;\n }", "public void rotate1(int[] nums, int k) {\n k %= nums.length;\n reverse(nums, 0, nums.length - 1);\n reverse(nums, 0, k - 1);\n reverse(nums, k, nums.length - 1);\n }", "public static void rotate1 (int [] nums, int k ) {\n\t\tint n = nums.length;\n\t\tk = k % n ;\n\t\tif(k == 0) return ;\n\t\tint prev = 0, currIndex = 0, temp = 0, count = 0;\n\t\tfor(int start = 0 ; count < nums.length ; start++) {\n\t\t\tprev = nums[start];\n\t\t\tcurrIndex = start;\n\t\t\t// keep rotating till reach the initial point\n\t\t\tdo {\n\t\t\t\tint nextIndex = (currIndex + k) % n;\n\t\t\t\ttemp = nums[nextIndex];\n\t\t\t\tnums[nextIndex] = prev;\n\t\t\t\tprev = temp;\n\t\t\t\tcurrIndex = nextIndex;\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t} while(start != currIndex);\n\t\t}\n\t}", "public static void removeKthToLast(Node head, int k) {\n if (head == null) return;\n if (k <= 0) return;\n\n Node first = head;\n Node second = head;\n int i = 0;\n while (i < k) {\n if (first == null) return;\n first = first.next;\n i++;\n }\n\n while (first != null) {\n first = first.next;\n second = second.next;\n }\n Node next = second.next;\n if (next == null) {\n second.next = null;\n } else {\n second.data = next.data;\n second.next = next.next;\n }\n }", "private void rightRotate(int[] nums, int n) {\n\t\tint temp;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttemp = nums[nums.length - 1];\n\t\t\tfor (int j = nums.length - 1; j > 0; j--) {\n\t\t\t\tnums[j] = nums[j - 1];\n\n\t\t\t}\n\n\t\t\tnums[0] = temp;\n\n\t\t}\n\t\tSystem.out.println(Arrays.toString(nums));\n\n\t}", "public void rotate(int [] a, int k)\n\t{\n\t\tif (a == null || k == 0)\n\t\t\treturn;\n\n\t\tint [] b = new int[a.length];\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t{\n\t\t\tint jump = (i + k) % a.length;\n\t\t\tb[jump] = a[i];\n\t\t}\n\t\tfor (int i = 0; i <a.length;i++)\n\t\t{\n\t\t\ta[i] = b[i];\n\t\t}\n\t}", "public List<Integer> rotate(List<Integer> a, int k, List<Integer> queries) {\n\n List<Integer> arrAfterRotation = new ArrayList<>(a);\n\n List<Integer> lastArrAfterRotation = new ArrayList<>(a);\n\n //Set the last one after rotation equal to provided array at initialization\n lastArrAfterRotation = a;\n\n for(int i=0; i<k; i++) {\n arrAfterRotation.set(0,lastArrAfterRotation.get(lastArrAfterRotation.size()-1));\n int counter=1;\n for (int elem=1; elem<lastArrAfterRotation.size();elem++ ) {\n arrAfterRotation.set(counter++, lastArrAfterRotation.get(elem-1));\n }\n List<Integer> tempList = new ArrayList<>(arrAfterRotation);\n lastArrAfterRotation= tempList;\n }\n printList(lastArrAfterRotation);\n\n List<Integer> returnList = new ArrayList<>(lastArrAfterRotation);\n\n for (int i : queries) {\n returnList.set(i,lastArrAfterRotation.get(i));\n }\n\n return returnList;\n\n }", "public List<Integer> rotateEfficiently(List<Integer> a, int k, List<Integer> queries) {\n\n List<Integer> newList = new ArrayList<>(a);\n int counter=0;\n int size = a.size();\n for (int count=k;count<k+size;count++) {\n newList.set(counter++, a.get(count%size));\n }\n\n return putInSpecifiedQueries(newList,queries);\n }", "private static SLLNode removeKthLast(SLLNode node, int k) {\n\n if (node == null) {\n throw new IllegalArgumentException(\"Node is empty\");\n }\n\n SLLNode first = node;\n while (k + 1 > 0) {\n first = first.next;\n k = k - 1;\n }\n\n SLLNode second = node;\n while (first != null) {\n second = second.next;\n first = first.next;\n }\n\n if (second != null && second.next != null) {\n second.next = second.next.next;\n }\n return node;\n }", "static void rotate_right(int[] arr, int rotate){\n for (int j = 0; j < rotate; j++) {\n int temp = arr[j];\n for (int i = j; i < arr.length+rotate; i+=rotate) {\n if(i-rotate < 0)\n temp = arr[i];\n else if(i >= arr.length)\n arr[i-rotate] = temp;\n else\n arr[i-rotate] = arr[i]; \n }\n }\n }", "public static void rotateArray(final int[] nums, final int k) {\n final var rot = k % nums.length;\n\n int temp, previous;\n for (int i = 0; i < rot; i++) {\n previous = nums[nums.length - 1];\n for (int j = 0; j < nums.length; j++) {\n temp = nums[j];\n nums[j] = previous;\n previous = temp;\n }\n }\n }", "private ListNode kthNodeInReverseOrder(ListNode head, int k) {\n if (k == 0 || head == null) {\n return head;\n }\n\n ListNode node = head;\n for (int i = 1; i <= k-1; i++) {\n if (node.next != null) {\n node = node.next;\n } else {\n return null;\n }\n }\n\n ListNode kthNodeInReverse = head;\n\n while (node.next != null) {\n kthNodeInReverse = kthNodeInReverse.next;\n node = node.next;\n }\n\n return kthNodeInReverse;\n }", "ListNode<Integer> rearrangeLastN(ListNode<Integer> l, int n) {\r\n\t\t\r\n\r\n\t\t\r\n\t\tListNode<Integer> result = new ListNode<Integer>(0);\r\n\t\tListNode<Integer> head_result = result;\r\n\t\t\r\n\t\tListNode<Integer> temp = new ListNode<Integer>(0);\r\n\t\tListNode<Integer> pointer = temp;\r\n\t\t\r\n\t/* 1. */\r\n\t\tint size = (listSize(l) - n);\r\n\t\t\r\n\t/* 2. */\r\n\t\tfor(int i = 0;i < size; i++)\t{\r\n\t\t\tresult.next = l;\r\n\t\t\tresult = result.next;\r\n\t\t\tl = l.next;\r\n\t\t}\r\n\t\tresult.next = null;\r\n\t\tresult = head_result.next;\r\n\t/*3.*/ \r\n\t\twhile(l != null)\t{\r\n\t\t\ttemp.next = l;\r\n\t\t\ttemp = temp.next;\r\n\t\t\tl = l.next;\r\n\t\t}\r\n\t\ttemp.next = head_result.next;\r\n\t\ttemp = pointer.next;\r\n\t\tresult = temp;\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public static int[] RotateByGivenNumber(int[] num, int k) \n\t{\n\t\tif(num == null || num.length == 0 || k < 0)\n\t\t\tthrow new IllegalArgumentException(\"Illegal argument!\");\n\t\t// This will take care of the value of k greater then the length of array\n\t\tif(k > num.length)\n\t\t\tk = k % num.length;\n\t\tint div = num.length - k; // get the remaining segment of the array.\n\t\t//Reverse(num,0,num.length-1); // rotate left side\n\t\tReverse(num,0,div-1); // rotate right side\n\t\tReverse(num,div,num.length-1); // keep in middle to rotate right and left\n\t\tReverse(num,0,num.length-1); // rotate right side\n\t\t//Reverse(num,0,div-1); // rotate left side\n\t\t//for(int e : Reverse(num,0,num.length-1))\n\t\t//\tSystem.out.println(e);\n\t\t\n\t\treturn num;\n\t}", "public int[] rotate2(int[] arr, int k) {\n\t\tif (arr == null || k < 0)// handles exceptions\n\t\t\tthrow new IllegalArgumentException(\"Illegal argument!\");\n\n\t\t// Goes through entire array for each space shifted\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\t// Go through the array starting at the end\n\t\t\tfor (int j = arr.length - 1; j > 0; j--) {\n\n\t\t\t\t// Shifts the value at the current index back one space:\n\t\t\t\tint temp = arr[j];\n\t\t\t\tarr[j] = arr[j - 1];\n\t\t\t\tarr[j - 1] = temp;\n\t\t\t} // end for loop\n\t\t} // end for loop\n\n\t\treturn arr;\n\n\t}", "public Node reverse(Node headNode, int k) {\n\n Node currNode = headNode;\n Node next = null;\n Node prev = null;\n\n int count = 0;\n\n /* reverse first k nodes of the linked list */\n while (currNode != null && count < k) {\n next = currNode.getNextNode();\n currNode.setNextNode(prev);\n prev = currNode;\n currNode = next;\n count++;\n }\n if (next != null) {\n headNode.setNextNode(reverse(next, k));\n }\n\n return prev;\n }", "public static ListNode swapNodes(ListNode head, int k) {\n if(head == null || head.next == null){\n return head;\n }\n ListNode tail = head;\n int begin = k;\n int len = 0;\n int index = 1;\n Map<Integer,Integer> map = new HashMap<>();\n while(tail != null){\n len++;\n map.put(index++,tail.val);\n tail = tail.next;\n }\n int end = len - k + 1;\n tail = head;\n index = 1;\n while(tail != null){\n if(index == begin){\n tail.val = map.get(end);\n }\n if(index == end){\n tail.val = map.get(begin);\n }\n index++;\n tail = tail.next;\n }\n return head;\n }", "public static void main(String[] args) {\n\t\tNode current=new Node(10);\r\n\t\tcurrent.next = new Node(20); \r\n\t\tcurrent.next.next = new Node(30); \r\n\t\tcurrent.next.next.next = new Node(40); \r\n\t\tcurrent.next.next.next.next = new Node(50); \r\n Node r=Rotatelinkedlistbyk(current,2);\r\n if(r==null)\r\n {\r\n \t System.out.print(\"no element to return\");\r\n }\r\n while(r != null)\r\n {\r\n \t System.out.print(r.data);\r\n \t r=r.next;\r\n }\r\n\r\n\t}", "public static ListNode swapNodes2(ListNode head, int k) {\n ListNode KthFromStart = head, out = head, KthFromLast = head;\n for (int i = 1; i < k; i++) {\n KthFromStart = KthFromStart.next;\n }\n ListNode temp_Node = KthFromStart;\n while (temp_Node.next != null) {\n temp_Node = temp_Node.next;\n KthFromLast = KthFromLast.next;\n }\n int temp = KthFromLast.val;\n KthFromLast.val = KthFromStart.val;\n KthFromStart.val = temp;\n return out;\n }", "private static void back(int k) {\r\n\t\tfor (int i = 0; i < SIZE; i++) {\r\n\t\t\tcurrentPerm[k] = i;\r\n\t\t\tif (validateCurrentPerm(currentPerm, k)) {\r\n\t\t\t\tif (k == SIZE - 1) {\r\n\t\t\t\t\tString currentPermString = \"\";\r\n\t\t\t\t\tfor (int t : currentPerm) {\r\n\t\t\t\t\t\tcurrentPermString += t;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tperms.add(currentPermString);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tback(k + 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static int[] reverseFromKtoEnd(int[] digits, int k, int length) {\r\n\t\tint temp[] = Arrays.copyOfRange(digits, k + 1, length);\r\n\t\tint l = temp.length;\r\n\t\tfor (int i = k + 1; i < length; i++) {\r\n\t\t\tdigits[i] = temp[l - 1];\r\n\t\t\tl--;\r\n\t\t}\r\n\t\treturn digits;\r\n\t}", "public void insertRight( long j ) {\n if ( end == max - 1 ) {\n end = -1;\n }\n Array[++end] = j;\n nItems++;\n }", "private AvlNode<E> rotateWithRightChild(AvlNode<E> k1){\n AvlNode<E> k2 = k1.right;\n k1.right = k2.left;\n k2.left = k1;\n k1.height = max(height(k1.left), height(k2.right)) + 1;\n k2.height = max(k1.height, height(k2.right)) + 1;\n return k2;\n }", "public int[] rotate(int[] arr, int k) {\n\t\tif (k > arr.length)// if k>n or (steps rotated)>(num of elts)\n\t\t\tk = k % arr.length;// then k is changed to k mod n\n\n\t\t// Create a new array of the same length\n\t\tint[] result = new int[arr.length];\n\n\t\tfor (int i = 0; i < k; i++)\n\t\t\tresult[i] = arr[arr.length - k + i];\n\n\t\tint j = 0;\n\t\tfor (int i = k; i < arr.length; i++) {\n\t\t\tresult[i] = arr[j];\n\t\t\tj++;\n\t\t}\n\n\t\t// Copy the shifted array into the original\n\t\tSystem.arraycopy(result, 0, arr, 0, arr.length);\n\t\treturn arr;\n\n\t}", "public static List<Integer> rotateLeft(int d, List<Integer> arr) {\n // Write your code here\n List<Integer> resultList = arr.subList(d, arr.size());\n resultList.addAll(arr.subList(0, d));\n return resultList;\n }", "public void rightRotate(Node n) {\r\n\t\tNode y = n.left;\r\n\t\tn.left = y.right;\r\n\t\tif(!y.right.isNil)\r\n\t\t\ty.right.parent = n;\r\n\t\ty.parent = n.parent;\r\n\t\tif(n.parent.isNil)\r\n\t\t\troot = y;\r\n\t\telse if(n == n.parent.right)\r\n\t\t\tn.parent.right = y;\r\n\t\telse\r\n\t\t\tn.parent.left = y;\r\n\t\ty.right = n;\r\n\t\tn.parent = y;\r\n\t}", "private long removeHelper(long r, int k) throws IOException {\n if (r == 0) {\r\n return 0;\r\n }\r\n long ret = r;\r\n Node current = new Node(r);\r\n if (current.key == k) {\r\n if (current.left == 0) {\r\n ret = current.right;\r\n addToFree(r);\r\n }\r\n else if (current.right == 0) {\r\n ret = current.left;\r\n addToFree(r);\r\n }\r\n else {\r\n current.left = replace(current.left, current);\r\n current.height = getHeight(current);\r\n current.writeNode(r);\r\n }\r\n }\r\n else if (current.key > k) {\r\n current.left = removeHelper(current.left, k);\r\n current.height = getHeight(current);\r\n current.writeNode(r);\r\n }\r\n else {\r\n current.right = removeHelper(current.right, k);\r\n current.height = getHeight(current);\r\n current.writeNode(r);\r\n }\r\n int heightDifference = getHeightDifference(r);\r\n if (heightDifference < -1) {\r\n if (getHeightDifference(current.right) > 0) {\r\n current.right = rightRotate(current.right);\r\n current.writeNode(r);\r\n return leftRotate(r);\r\n }\r\n else {\r\n return leftRotate(r);\r\n }\r\n }\r\n else if (heightDifference > 1) {\r\n if (getHeightDifference(current.left) < 0) {\r\n current.left = leftRotate(current.left);\r\n current.writeNode(r);\r\n return rightRotate(r);\r\n }\r\n else {\r\n return rightRotate(r);\r\n }\r\n }\r\n return ret;\r\n }", "public static void rotateAntiClockWise(int[] arr, int k)\r\n {\r\n\t for(int i=0; i< k; i++)\r\n\t {\r\n\t\t for(int j=0; j<arr.length-1; j++)\r\n\t\t {\r\n\t\t\t int temp = arr[j+1];\r\n\t\t\t arr[j+1] = arr[j];\r\n\t\t\t arr[j] = temp;\r\n\t\t\t\r\n\t\t }\r\n\t }\r\n }", "static void leftRotate(int arr[], int d, int n) \n\t{\n\t\tint i, j;\n\t\tif (d == 0 || d == n)\n\t\t\treturn;\n\t\ti = d;\n\t\tj = n - d;\n\t\twhile (i != j) {\n\t\t\tif (i < j) /* A is shorter */\n\t\t\t{\n\t\t\t\tswap(arr, d - i, d + j - i, i);\n\t\t\t\tj -= i;\n\t\t\t} else /* B is shorter */\n\t\t\t{\n\t\t\t\tswap(arr, d - i, d, j);\n\t\t\t\ti -= j;\n\t\t\t}\n\t\t\t// printArray(arr, 7);\n\t\t}\n\t\t/* Finally, block swap A and B */\n\t\tswap(arr, d - i, d, i);\n\t}", "public int[] rotate3(int[] arr, int k) {\n\t\tk = k % arr.length;\n\n\t\tif (arr == null || k < 0)// handles exceptions\n\t\t\tthrow new IllegalArgumentException(\"Illegal argument!\");\n\n\t\tint a = arr.length - k;// length of the first part\n\t\treverse(arr, 0, a - 1);// rotate the first part\n\t\treverse(arr, a, arr.length - 1);// rotate the second part\n\t\treverse(arr, 0, arr.length - 1);// rotate the whole array\n\n\t\treturn arr;\n\n\t}", "public static List<Integer> rotLeft(List<Integer> a, int d) {\n for(int count = 0; count < d; count++) {\n shiftElements(a);\n }\n return a;\n }", "protected Node<E> rotateRight( Node<E> root ) {\n\n if( root == null || root.left == null ) {\n return null;\n }\n\n Node<E> tempNode = root.left;\n root.left = tempNode.right;\n tempNode.right = root;\n return tempNode;\n\n }", "private void siftDown(int k, T x) {\n int half = size >>> 1;\n while (k < half) {\n int child = (k << 1) + 1;\n Object c = heap[child];\n int right = child + 1;\n if (right < size &&\n comparator.compare((T) c, (T) heap[right]) > 0)\n c = heap[child = right];\n if (comparator.compare(x, (T) c) <= 0)\n break;\n heap[k] = c;\n k = child;\n }\n heap[k] = x;\n }", "private void rotateRightDel (WAVLNode z) {\n\t WAVLNode x = z.left;\r\n\t WAVLNode d = x.right;\r\n\t x.parent=z.parent;\r\n\t if(z.parent!=null) {\r\n\t\t if(parentside(z.parent, z).equals(\"left\")) {\r\n\t\t\t z.parent.left=x;\r\n\r\n\t }\r\n\t else {\r\n\t\t\t z.parent.right=x;\r\n\r\n\t }\r\n\t }\r\n\r\n\t else {\r\n\t\t this.root=x;\r\n\t }\r\n\t x.right = z;\r\n\t x.rank++;\r\n\t z.parent=x;\r\n\t z.left = d;\r\n\t z.rank--;\r\n\t if(d.rank>=0) {\r\n\t\t d.parent=z; \r\n\t }\r\n\t if(z.left==EXT_NODE&&z.right==EXT_NODE&&z.rank!=0) {\r\n\t\t z.rank--;\r\n\t }\r\n\t z.sizen = z.right.sizen+d.sizen+1;\r\n\t x.sizen = z.sizen+x.left.sizen+1;\r\n }", "private static void rotateArray(int[] arr, int gcd, int k) {\n\t\t// gcd is the set length for which the rotation will happen\n\t\tint len = arr.length;\n\t\tfor (int i = 0; i < gcd; i++) {\n\t\t\tint temp = arr[i];\n\t\t\tint j = i;\n\t\t\tint l = -1;\n\t\t\twhile (true) {\n\t\t\t\tl = ((j + k) % len);\n\t\t\t\tif (l == i) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tarr[j] = arr[l];\n\t\t\t\tj = l;\n\t\t\t}\n\t\t\tarr[j] = temp;\n\t\t}\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tSystem.out.print(arr[i] + \" \");\n\t\t}\n\t}", "private long rightRotate(long n) throws IOException {\n Node current = new Node(n);\r\n long currentLeft = current.left;\r\n Node tempN = new Node(current.left);\r\n current.left = tempN.right;\r\n tempN.right = n;\r\n current.height = getHeight(current);\r\n current.writeNode(n);\r\n tempN.height = getHeight(tempN);\r\n tempN.writeNode(currentLeft);\r\n return currentLeft;\r\n }", "public static void main (String[] args) \n { \n int arr[] = {1, 2, 3, 4, 5, 6, 7}; \n int n = arr.length; \n int d = 2; \n \n // in case the rotating factor is \n // greater than array length \n d = d % n; \n leftRotate(arr, 2, 7); // Rotate array by d \n printArray(arr); \n }", "public static void quicksort(int l, int r, List<CustomCharacter> list)\n throws InterruptedException {\n\n // handle edge cases\n if(l >= r){\n return;\n }\n if(l >= list.size()){\n return;\n }\n if(r >= list.size()){\n r = list.size() - 1;\n }\n\n\n\n // partition smaller elements on left // and larger on right // with respect to the originalPosition of the rth element (pivot)\n int smallElementEnd = l-1;\n System.out.println(\"Deciding for : \" + list.get(r).key);\n\n CustomCharacter rth = list.get(r);\n for (int i = l; i < r; i++) {\n CustomCharacter curr = list.get(i);\n if(curr.originalPosition < rth.originalPosition){\n swap(list, ++smallElementEnd, i);\n }\n }\n\n // place rth element at correct position\n swap(list, ++smallElementEnd, r);\n\n Thread.sleep(1500);\n printList(list);\n\n // sort the remaining two halves\n quicksort(l, smallElementEnd-1, list);\n quicksort(smallElementEnd + 1, r, list);\n }", "static public ListNode reorder(ListNode head) {\n\t\tif (head == null || head.next == null) {\n\t\t\treturn head;\n\t\t}\n\t\tListNode one = head;\n\t\tListNode mid = findMidle(head);\n\t\tSystem.out.println(\"mid: \"+ mid.val);\n\t\tListNode two = reverse(mid.next);\n\t\tmid.next = null;\n\t\tListNodeUtils.printList(head);\n\t\tListNodeUtils.printList(two);\n\t\tListNode curr = one;\n\t\twhile (one != null && two != null) {\n\t\t\tone = one.next;\n\t\t\tcurr.next = two;\n\t\t\tcurr = curr.next;\n\n\t\t\ttwo = two.next;\n\t\t\tcurr.next = one;\n\t\t\tcurr = curr.next;\n\t\t}\n\t\tif (one != null) {\n\t\t\tcurr.next = null;\n//\t\t curr = curr.next; \n\t\t}\n\n\t\t// curr.next = null;\n\t\treturn head;\n\t}", "public final void rot() {\n\t\tif (size > 2) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tdouble thirdTopMostValue = pop();\n\n\t\t\tpush(secondTopMostValue);\n\t\t\tpush(topMostValue);\n\t\t\tpush(thirdTopMostValue);\n\n\t\t}\n\t}", "private void rotateRight(Node tree) {\n assert tree != null;\n assert tree.left != null;\n\n Node temp = tree.left;\n tree.left = temp.right;\n if(temp.right != null) { //no null pointers\n temp.right.parent = tree;\n }\n temp.parent = tree.parent;\n if(temp.parent != null) { //am i at the root?\n if(temp.parent.left == tree) {\n temp.parent.left = temp;\n } else if (temp.parent.right == tree) {\n temp.parent.right = temp;\n }\n }\n tree.parent = temp;\n temp.right = tree;\n if(tree == root) { root = temp; } //rewrite the root\n rotations += 1;\n }", "public static List<Integer> rotLeft(List<Integer> a, int d) {\n\t\tint len = a.size();\n\t\t// 1,2,3,4,5\n\t\tList<Integer> result = new ArrayList<Integer>();\n\t\tresult.addAll(a);\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\t// i = 0 , 1, 2, 3, 4\n\t\t\t// j = 1 , 2, 3, 4, 0\n\t\t\tint j = (i + (len - d)) % len;\n\t\t\tresult.set(j, a.get(i));\n\t\t}\n\t\treturn result;\n\t}", "public void rightRotate(RBNode<T, E> node) {\r\n\t\t// Keep Track of the root and the pivot and roots parent\r\n\t\tRBNode<T, E> root = node;\r\n\t\tRBNode<T, E> pivot = node.leftChild;\r\n\t\tRBNode<T, E> rParent = root.parent;\r\n\t\t// if the pivot is not null, then proceed to rotate\r\n\t\tif (pivot != nillLeaf) {\r\n\t\t\tif (rParent != nillLeaf) {\r\n\t\t\t\tif (root.uniqueKey.compareTo(rParent.uniqueKey) < 0) {\r\n\t\t\t\t\t// root must be to the left of the root's parent\r\n\t\t\t\t\troot.leftChild = pivot.rightChild;\r\n\t\t\t\t\tpivot.rightChild.parent = root;\r\n\t\t\t\t\tpivot.rightChild = root;\r\n\t\t\t\t\trParent.leftChild = pivot;\r\n\t\t\t\t\troot.parent = pivot;\r\n\t\t\t\t\tpivot.parent = rParent;\r\n\t\t\t\t\tthis.root = searchRoot(rParent);\r\n\r\n\t\t\t\t} else if (root.uniqueKey.compareTo(rParent.uniqueKey) > 0) {\r\n\t\t\t\t\t// root must be to the right of the root's parent\r\n\t\t\t\t\troot.leftChild = pivot.rightChild;\r\n\t\t\t\t\tpivot.rightChild.parent = root;\r\n\t\t\t\t\tpivot.rightChild = root;\r\n\t\t\t\t\trParent.rightChild = pivot;\r\n\t\t\t\t\troot.parent = pivot;\r\n\t\t\t\t\tpivot.parent = rParent;\r\n\t\t\t\t\tthis.root = searchRoot(rParent);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// else if root has no parent, then rotate with no parent\r\n\t\t\telse {\r\n\t\t\t\troot.leftChild = pivot.rightChild;\r\n\t\t\t\tpivot.rightChild.parent = root;\r\n\t\t\t\tpivot.leftChild = root;\r\n\t\t\t\troot.parent = pivot;\r\n\t\t\t\tthis.root = pivot;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected Node<E> rotateRight(Node<E> root) {\r\n\t\tNode<E> temp = root.left;\r\n\t\troot.left = temp.right;\r\n\t\ttemp.right = root;\r\n\t\treturn temp;\r\n\t}", "public static void rotateAntiClockBetter(int[] arr, int k)\r\n {\r\n\t int[] arr2 = arr.clone();\r\n\t for(int i =0; i< arr.length; i++)\r\n\t {\r\n\t\t arr2[i] = arr[(i+k)%arr.length];\r\n\t }\r\n\t System.out.println(Arrays.toString(arr2));\r\n }", "public static int[] rotateLeft(int[] array, int n) {\n\t\tif(n >= array.length) {\n\t\t\tn = n % array.length; \n\t\t}\n\t\t\n\t\tfor(int i = 0; i < n; ++i) {\n\t\t\t//hold the first element\n\t\t\tint placeholder = array[0];\n\t\t\tfor(int j = 0; j < array.length - 1; ++j) {\n\t\t\t\tarray[j] = array[j + 1];\n\t\t\t}\n\t\t\t//replace last element with first\n\t\t\tarray[array.length - 1] = placeholder;\n\t\t}\n\t\treturn array;\n\t}", "static int reverseRecursiveTravesal(Node node, int k) {\n\t\tif(node == null)\n\t\t\treturn -1;\n\t\t\n\t\tint indexFromLast = reverseRecursiveTravesal(node.getNext(), k) + 1;\n\t\tif(indexFromLast == k) \n\t\t\tSystem.out.println(node.getData());\n\t\t\n\t\treturn indexFromLast;\n\t\t\n\t}", "public static List<Integer> moveElementToEnd(List<Integer> array, int toMove) {\n\n int left = 0;\n int right = array.size()-1;\n while(left < right){\n while(array.get(right) == toMove){\n right--;\n }\n if(array.get(left) == toMove ){\n swap(array, left, right);\n }\n\n left++;\n }\n return array;\n }", "public Node rotateRight(Node n)\r\n\t{\r\n\t\tNode target = n.left;//rotate target to node\r\n\t\tNode subTree = target.right;//get its subtree\r\n\t\t\r\n\t\ttarget.right = n; //set targets old sub tree to nodes sub tree\r\n\t\tn.left =subTree;// set old sub tree to nodes subtree\r\n\t\t\r\n\t\t//increment the height of the tree\r\n\t\tn.height = maxHeight(height(n.left),height(n.right))+1;\r\n\t\ttarget.height = maxHeight(height(target.left),height(target.right))+1;\r\n\t\t\r\n\t\treturn target;\r\n\t}", "private List<MyPair> sortAndTrim(int k, List<MyPair> neighbours) {\n\n for (int i = 0; i <= neighbours.size() - 2; i++) {\n for (int j = 0; j <= neighbours.size() - 2 - i; j++) {\n if (neighbours.get(j + 1).getValue() > neighbours.get(j).getValue()) {\n Collections.swap(neighbours, j, j + 1);\n }\n }\n }\n if (k != -1) {\n try {\n neighbours = neighbours.subList(0, k);\n } catch (IndexOutOfBoundsException e) {\n return neighbours;\n }\n }\n return neighbours;\n }", "static Node reserveIterativeTraversal(MyLinkedList l, int k) {\n\t\tNode p1 = l.getHead();\n\t\tNode p2 = l.getHead();\n\t\t\n\t\tfor(int i = 0; i < k; i++) \n\t\t\tp1 = p1.getNext();\n\t\t\t\n\t\twhile(p1.getNext() != null) {\n\t\t\tp1 = p1.getNext();\n\t\t\tp2 = p2.getNext();\n\t\t}\n\t\t\n\t\treturn p2;\n\t}", "public void removeByRightShift(int pos) {\r\n if (pos > 0 || pos < size - 1) {\r\n int nshift = pos;\r\n int from = ((start + pos) - 1) % cir.length;\r\n int to = (from + 1) % cir.length;\r\n // int to=from--;\r\n for (int i = 0; i < nshift; i++) {\r\n cir[to % cir.length] = cir[from % cir.length];\r\n to = from;\r\n from--;\r\n if (from < 0) {\r\n from = cir.length - 1;\r\n }\r\n }\r\n cir[start] = \"null\";\r\n start++;\r\n size--;\r\n }\r\n }", "public Node theLastNele(MyList ml,int k)\n\t{\n\t\tif(ml==null|| ml.head==null) return null;\n\t\tNode rt=ml.head,cur = ml.head;\n\t\tint i;\n\t\tfor( i=0;i<k-1;i++) {\n\t\t\tif(cur == null) break;\n\t\t\tcur = cur.next;\n\t\t}\n\t\tif(i!=k-1) return null;\n\t\t\n\t\twhile(cur!=ml.tail)\n\t\t{\n\t\t\tcur = cur.next;\n\t\t rt = rt.next;\n\t\t}\n\t\t\n\t\treturn rt;\n\t}", "public static IntList incrListR(IntList L, int x) {\n if (L == null) {\n return null;\n }\n //each recursive run will create a new IntList until L.rest.rest.rest... = null meaning reaching the last item in\n //the original list\n return new IntList(L.first + x, incrListR(L.rest, x));\n }", "private static void rotate(int[][] a, start, end){\n for (int current = 0; start+current < end; current++){\n int temp = a[start][start+current]; // save the top \n a[start][start+current] = a[end-current][start]; // left to top moveing left elemnt to top\n a[end-current][start] = a[end][end-current]; // bottom element to left \n a[end][end-current] = a[start+current][end]; // right element to bottom \n a[start+current][end] = temp; // top elemrnt to right\n }\n}", "public int kToTheEnd(int k) {\n\n if(k<1 || k > this.size())\n return 0;\n\n Node p1=head, p2=head;\n\n for(int i=0; i<k; i++) {\n p2=p2.next;\n }\n\n while(null!=p2.next) {\n p1=p1.next;\n p2=p2.next;\n }\n\n print(\"k to end, k:\" + k + \" data: \" + p1.data);\n return p1.data;\n\n }", "@Test\n\tpublic void rotateArray_rotateLeftTwoItems() {\n\t\tint[] nums = prepareInputArray(5);\n\t\tint[] rotatedArray = ArrayLeftRotation.rotateArray(nums, 2);\n\t\tassertThat(rotatedArray[0], equalTo(3));\n\t\tassertThat(rotatedArray[1], equalTo(4));\n\t\tassertThat(rotatedArray[2], equalTo(5));\n\t\tassertThat(rotatedArray[3], equalTo(1));\n\t\tassertThat(rotatedArray[4], equalTo(2));\n\t}", "public void shellSort(){\n int increment = list.size() / 2;\n while (increment > 0) {\n for (int i = increment; i < list.size(); i++) {\n int j = i;\n int temp = list.get(i);\n while (j >= increment && list.get(j - increment) > temp) {\n list.set(j, list.get(j - increment));\n j = j - increment;\n }\n list.set(j, temp);\n }\n if (increment == 2) {\n increment = 1;\n } else {\n increment *= (5.0 / 11);\n }\n }\n }", "public void rotateRight(int numberOfTurns);", "public void reorderList(ListNode head) {\n if (head == null) {\n return;\n } else if (head.next == null) {\n return;\n }\n \n ListNode pre = findMidPre(head);\n \n // cut the two list.\n ListNode right = pre.next;\n pre.next = null;\n \n // reverse the right link.\n right = reverse(right);\n \n merge(head, right);\n }", "private void rightRotate(Entry<T> child, Entry<T> p) {\n\t\tif(p.parent != null) {\n\t\t\tif(p == p.parent.left)\n\t\t\t\tp.parent.left = child;\n\t\t\telse\n\t\t\t\tp.parent.right = child;\n\t\t}\n\t\tif(child.right != null)\n\t\t\tgetSplay(child.right).parent = p;\n\t\t\n\t\tchild.parent = p.parent;\n\t\tp.parent = child;\n\t\tp.left = child.right;\n\t\tchild.right = p;\n\t\t\t\t\n\t}", "static int[] rotLeft(int[] a, int d) {\n int temp = a[a.length - 1];\n for (int i = a.length - 1; i > 1; i--) {\n if (i > 2) {\n a[i - 2] = temp;\n temp = a[i - 3];\n } else {\n a[0] = a[a.length - 1];\n }\n }\n\n return a;\n }", "Node nthToLast(int k) {\n Node p1 = head;\n Node p2 = head;\n for (int i = 0; i < k; i++) {\n if (p1 == null) return null;\n p1 = p1.getNext();\n }\n\n while (p1 != null) {\n p1 = p1.getNext();\n p2 = p2.getNext();\n }\n return p2;\n }", "public void reorderList(ListNode head) {\n\tif (head == null || head.next == null) {\n\t return;\n\t}\n\n\tDeque<Integer> dq = new LinkedList<>();\n\tListNode cur = head;\n\twhile (cur != null) {\n\t dq.add(cur.val);\n\t cur = cur.next;\n\t}\n\n\tListNode cur1 = head;\n\twhile (cur1 != null && cur1.next != null) {\n\t cur1.val = dq.pollFirst();\n\t cur1.next.val = dq.pollLast();\n\t cur1 = cur1.next.next;\n\t}\n\n\tif (cur1 != null) {\n\t cur1.val = dq.poll();\n\t}\n }", "public static int[] rotateRight(int[] arr) {\n int[] newArr=new int[arr.length];\n for (int i =0;i< arr.length;i++){\n if (!(i== (arr.length-1))){\n newArr[i+1]=arr[i];\n }\n else{\n newArr[0]=arr[i];\n }\n }\n return newArr;\n }" ]
[ "0.79899323", "0.78092986", "0.709814", "0.70708233", "0.6908003", "0.6853618", "0.684266", "0.67106795", "0.671035", "0.66838664", "0.6674179", "0.6619751", "0.6599626", "0.6573976", "0.65416676", "0.6537286", "0.6517001", "0.6476461", "0.64018804", "0.63721746", "0.6285117", "0.62701553", "0.62671524", "0.6221156", "0.62001204", "0.61993796", "0.6164911", "0.6137163", "0.605215", "0.60374427", "0.60087496", "0.6007212", "0.59650844", "0.59472054", "0.592761", "0.5885785", "0.58624977", "0.58224887", "0.5775503", "0.5756863", "0.57501304", "0.57454115", "0.574308", "0.57155246", "0.56299263", "0.5617353", "0.5612675", "0.5590223", "0.55432194", "0.55223787", "0.55192614", "0.5500364", "0.54822433", "0.54555196", "0.5425079", "0.5411442", "0.54094666", "0.5408859", "0.5395345", "0.53559947", "0.5305326", "0.52988905", "0.5298692", "0.52968127", "0.5294562", "0.52576894", "0.52243006", "0.5181402", "0.5167291", "0.51668376", "0.51668215", "0.5165313", "0.5146005", "0.5143818", "0.5136854", "0.51286954", "0.5117255", "0.5068272", "0.50655836", "0.50645137", "0.50512844", "0.50456655", "0.5024284", "0.50199974", "0.50180143", "0.50038385", "0.4998748", "0.4993267", "0.49860078", "0.49851382", "0.49765512", "0.49571142", "0.49569538", "0.495524", "0.49518102", "0.49467358", "0.49450287", "0.49344105", "0.49329188", "0.49255857" ]
0.63172954
20
demo2 send paramter to jobs.
@Test public void parameterTest () throws SchedulerException, InterruptedException { // define the job and tie it to our SimpleJob class JobDetail job = JobBuilder.newJob(DataParseJob.class) .withIdentity("dataParseJob", "group2") // name "dataParseJob", group "group2" .usingJobData("jobSays", "Hello World!") .usingJobData("myFloatValue", 3.141f) .build(); // Trigger the job to run now, and then repeat every 40 seconds Trigger trigger = TriggerBuilder.newTrigger() .withIdentity("trigger2", "group2") .startNow() .withSchedule(SimpleScheduleBuilder.simpleSchedule() .withIntervalInSeconds(10) .repeatForever()) .build(); // Tell quartz to schedule the job using our trigger scheduler.scheduleJob(job, trigger); // make quartz keep going while(true) { Thread.sleep(3000); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendLocalParamData(){\n String json = gson.toJson(parameters);\n getJSON(hostUrl + sendLocalParamScript.getFilename() + \"?matchId=\" + matchId + \"&param=\" + json, 2000);\n }", "public void sendParameter(IPatch patch, SysexWidget.IParameter param) {\n }", "public ExportThread( String[] params )\n {\n super();\n execParams = params;\n }", "private void scheduleJob() {\n\n }", "String submitJob(JPPFJob job);", "void sendEmail(Job job, String email);", "public void onSubmit(String param1, Object param2) {\n }", "void doSend(Map<String, Object> parameters);", "@Override\n\tpublic void executeTask(Task task) {\n\t\tif (task.getMethodName().equals(\"upload\")) {\n\t\t\tString[] parameterArrays = task.getParameters().split(\";\");\n\t\t\t\n\t\t}\n\t}", "Value worker(String main, String address);", "public void scheduleJobs();", "public static void testIBMMQSendData(){\n\n MQParam param = new MQParam();\n param.setHost(\"10.86.92.194\");\n param.setPort(30099);\n param.setCcsid(1208);\n param.setChannel(\"SVRCONN_GW_OUT\");\n param.setQueueManager(\"ESB_OUT\");\n param.setQueueName(\"EIS.QUEUE.REQUEST.OUT.GCDCHZWMES\");\n param.setUserId(\"mqm\");\n param.setPassword(\"mqm\");\n new Thread(new IBMReceiverThread(param)).run();\n }", "JobResponse apply();", "public void setJob(Job jobNum){\n job = jobNum;\n }", "String submitJob(JPPFJob job, JobStatusListener listener);", "public void updateJob(int numeroticket, int chunkjustdone) {\n\t\tif (this.ticket == numeroticket)\n\t\t{\n\t\t\t//System.out.println(\"moi worker \" + id + \" ne doit plus faire \" + chunkjustdone);\n\t\t\tthis.chunkDone[chunkjustdone] = true;\n\t\t\t\n\t\t}\n\t}", "private void handleActionBaz(String param1, String param2) {\n\n Log.d(Constant.LOG_TAG, \"Start *Add* action\" );\n\n List<TestData> targetList1 = new ArrayList<>();\n for (int index = 0; index < 100; index++) {\n TestData data = new TestData(index, index + \"n\", index % 2 == 0 ? \"W\" : \"M\", index);\n targetList1.add(data);\n }\n\n List<TestData> targetList2 = new ArrayList<>();\n for (int index = 100; index < 199; index++) {\n TestData data = new TestData(index, index + \"n\", index % 2 == 0 ? \"W\" : \"M\", index);\n targetList2.add(data);\n }\n\n DatabaseManager manager = DatabaseManager.getInstance();\n manager.executeAddDataQueryTask(targetList1, TestData.class);\n\n DatabaseManager manager01 = DatabaseManager.getInstance();\n manager01.executeAddDataQueryTask(targetList2, TestData.class);\n\n EventBus.getDefault().post(new EventBusData());\n\n }", "void sendExample(String key, String value1, String value2) {\n messageProducer.send(new Key(key), new Value(value1, value2));\n }", "public void setJobId( int jobId ) ;", "@Override\n public String getDisplayName() {\n return \"Trigger a remote parameterized job\";\n }", "public void a(int i) {\n JobInfo.Builder builder = new JobInfo.Builder(2050, new ComponentName(this.f79003a.getPackageName(), AccsJobService.class.getName()));\n long j = (long) (i * PushConstants.PUSHSERVICE_INFO_SENDMESSAGE_BY_NOTIFICATIONSERVICE);\n ((JobScheduler) this.f79003a.getSystemService(\"jobscheduler\")).schedule(builder.setMinimumLatency(j).setOverrideDeadline(j).setRequiredNetworkType(1).build());\n }", "@Override\n\tpublic void submitJobEmployee(int je_id, String caller) {\n\n\t}", "public static void main(String[] args) {\n\t SimpleDateFormat DateFormat = new SimpleDateFormat(\"yyyyMMddHHmmss\"); \n\t Date d = new Date(); \n\t String returnstr = DateFormat.format(d); \n\t \n\t QuartzPush job = new QuartzPush(); \n\t String job_name =\"11\"; \n\t try {\n\t\t\t\tSystem.out.println(\"★★★★★★★★★★★ \"+\"The QuartzPush Strat,Date is \" +returnstr +\" ★★★★★★★★★★★\");\n\t\t\t\tClass jobClass = Class.forName(\"com.tinytree.job.QuartzPush\");\n\t\t\t\tMap<String ,Object> map = new HashMap<>();\n\t\t\t\tmap.put(\"name\",\"testname\");\n\t\t\t\tmap.put(\"jobName\",\"testname\");\n\t\t\t\tmap.put(\"jobGroup\",\"group\");\n\t\t\t\tmap.put(\"group\",\"group\");\n\t\t\t\tmap.put(\"jobClass\",\"com.tinytree.job.QuartzPush\");\n\t\t\t\t//String cronExpression = \"0 37 16 ? * *\";\n\t\t\t\tString cronExpression = \"0/10 * * * * ?\";//\"0 37 16 ? * *\"\n\t\t\t\tmap.put(\"cronExpression\",cronExpression);\n\n\t QuartzManager.addJob(map);\n\n\t \n\t } catch (Exception e) { \n\t e.printStackTrace(); \n\t } \n\t }", "public int getJobId() ;", "public void scheduleJob() {\n JobInfo.Builder builder = null;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n builder = new JobInfo.Builder(mJobId++, mServiceComponent);\n builder.setMinimumLatency(1000);\n builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY);\n // Extras, work duration.\n PersistableBundle extras = new PersistableBundle();\n extras.putLong(WORK_DURATION_KEY, Long.valueOf(1) * 1000);\n extras.putString(\"gsonData\", gsonDataa);\n extras.putInt(\"servicetype\", 1);\n builder.setExtras(extras);\n // Schedule job\n Log.d(TAG, \"Scheduling job\");\n JobScheduler tm = (JobScheduler) getSystemService(Context.JOB_SCHEDULER_SERVICE);\n tm.schedule(builder.build());\n\n }\n\n\n\n }", "@Override\n\tpublic void execute(JobExecutionContext arg0) throws JobExecutionException {\n\t\t new SchoolMsgService().writeIntoSchoolMsg_ReceivedStu();\n//\t\t System.out.println(\"just test: \" + new Date());\n\t}", "public static void main(String[] args){\n\t\ttry {\n\t\t\tConfigure.readConf();\n\t\t\t//first connect the socket\n\t\t\tconnect();\n\t\t} catch (IOException e2) {\n\t\t\tConfigure.logger.error(e2.getMessage());\n\t\t}\n\t\t//the pipe between get seting and sendto dev threads \n\t\ttry {\n\t\t\treader.connect(writer);\n\t\t\tset.setWriter(writer);\n\t\t\ts2dev.setReader(reader);\n\t\t} catch (IOException e2) {\n\t\t\tConfigure.logger.error(e2.getMessage());\n\t\t}\n\t\t\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner s = new Scanner(System.in);\n\t\tCLIParser cliparse = new CLIParser();\n\t\t\n\t\tbyte[] data2send = null;\n\t\t//auto join the appeui \n\t\ttry {\n\t\t\tauto_Join(cliparse);\n\t\t} catch (Exception e3) {\n\t\t\tConfigure.logger.error(\"auto join failed! \"+e3.getMessage());\n\t\t\tSystem.out.println(\"auto join failed!\");\n\t\t}\n\t\t\n\t\trg.setConn(conn);\n\t\ts2dev.setConn(conn);\n\t\t\n\t\trbk.setRg(rg);\n\t\trbk.setSettings(set);\n\t\trbk.setCalc(calcLo);\n\t\tset.setRg(rg);\n\t\t\n\t\tthread = new Thread(rg);\n\t\tthread.start();\n\t\t\n\t\tthreadRbk = new Thread(rbk);\n\t\tthreadRbk.start();\n\n\t\tthreadSet = new Thread(set);\n\t\tthreadSet.start();\n\n\t\tthreadDev = new Thread(s2dev);\n\t\tthreadDev.start();\n\t\t\n\t\tthreadCalcLo = new Thread(calcLo);\n\t\tthreadCalcLo.start();\n\t\twhile (true) {\n\t\t\tString line = s.nextLine();\n\n\t\t\tif (line.equals(\"exit\")) {\n\t\t\t\tif ((conn != null) && (!conn.isClosed())) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconn.disconnect();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tConfigure.logger.error(e.getMessage());\n\t\t\t\t\t\t//System.out.println(e.getMessage());\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tconn = null;\n\t\t\t\t} else {\n\t\t\t\t\tconn = null;\n\t\t\t\t}\n\n\t\t\t\trg.setConn(conn);\n\t\t\t\tthread.interrupt();\n\t\t\t\t\n\t\t\t\tthreadSet.interrupt();\n\t\t\t\ts2dev.setConn(conn);\n\t\t\t\tthreadDev.interrupt();\n\t\t\t\tthreadRbk.interrupt();\n\t\t\t\t \n\t\t\t\ttry {\n\t\t\t\t\tthreadSet.join();\t//等待exit前保存document\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tConfigure.logger.error(e.getMessage());\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSystem.exit(0);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\targs = line.split(\" \");\n\t\t\ttry {\n\t\t\t\tdata2send = cliparse.parseCmd(args);\n\t\t\t} catch (Exception e2) {\n\t\t\t\tConfigure.logger.error(e2.getMessage());\n\t\t\t\tSystem.out.println(e2.getMessage());\n\t\t\t}\n\t\t\t\n\t\t\tif (!args[0].trim().equalsIgnoreCase(\"quit\")) {\n\t\t\t\tif ((conn == null) || (conn.isClosed())) {\n\t\t\t\t\tconn = connect();\n\t\t\t\t\trg = new RespGetter();\n\t\t\t\t\trg.setConn(conn);\n\t\t\t\t\t\n\t\t\t\t\ts2dev.setConn(conn);\n\t\t\t\t\t\n\t\t\t\t\tthread = new Thread(rg);\n\t\t\t\t\tthread.start();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ((conn != null) && (!conn.isClosed())) {\n\t\t\t\t// server socket come data\n\t\t\t\ttry {\n\t\t\t\t\tconn.putData(data2send);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tif ((conn == null) || (conn.isClosed())) {\n\t\t\t\t\t\tInetAddress add;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tadd = Configure.getADDRESS();\n\t\t\t\t\t\t\tconn = ConnectionFactory.getConnect(add, Configure.port, \"TCP\");\n\t\t\t\t\t\t\trg.setConn(conn);\n\t\t\t\t\t\t\ts2dev.setConn(conn);\n\t\t\t\t\t\t\tconn.putData(data2send);\n\t\t\t\t\t\t} catch (UnknownHostException e1) {\n\t\t\t\t\t\t\tConfigure.logger.error(e1.getMessage());\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\"retry connect fail or connection problem, break out and restart the applicatoin\");\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\tthread.interrupt();\n\t\t\t\t\t\t\trg.setRunFlag(false);\n\t\t\t\t\t\t\tthread.interrupt();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tthreadRbk.interrupt();\n\t\t\t\t\t\t\tthreadSet.interrupt();\n\t\t\t\t\t\t\tthreadDev.interrupt();\n\t\t\t\t\t\t\tthreadCalcLo.interrupt();\n\t\t\t\t\t\t\tif ((conn != null) || (!conn.isClosed())) {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tconn.disconnect();\n\t\t\t\t\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t\t\t\t\tConfigure.logger.error(e2.getMessage());\n\t\t\t\t\t\t\t\t\tSystem.out.println(e2.getMessage());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tconn = null;\n\t\t\t\t\t\t\t\trg.setConn(null);\n\t\t\t\t\t\t\t\ts2dev.setConn(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data2send != null) {\n\t\t\t\t\tConfigure.cmdseq_counter = Configure.cmdseq_counter + 2;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tConfigure.logger.error(e.getMessage());\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t}\n\t\t\t\tif (args[0].trim().equalsIgnoreCase(\"quit\")) {\n\t\t\t\t\tSystem.out.println(\"quit cmd has sent\");\n\t\t\t\t\tConfigure.cmdseq_counter = Configure.DEFAULT_CMDSEQ;\n\t\t\t\t\trg.setRunFlag(false);\n\t\t\t\t\tthread.interrupt();\n\t\t\t\t\t\n//\t\t\t\t\tthreadRbk.interrupt();\n//\t\t\t\t\tthreadSet.interrupt();\n//\t\t\t\t\tthreadDev.interrupt();\n\t\t\t\t\t\n\t\t\t\t\tif ((conn != null) || (!conn.isClosed())) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconn.disconnect();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconn = null;\n\t\t\t\t\t\trg.setConn(null);\n\t\t\t\t\t\ts2dev.setConn(null);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//In fact, if application runs, the connection must be kept, if closed, open again\n\t\t\t\tif ((conn == null) || (conn.isClosed())) {\n\t\t\t\t\t\n\t\t\t\t\tconn = connect();\n\t\t\t\t\trg.setConn(conn);\n\t\t\t\t\t\n\t\t\t\t\tthread = new Thread(rg);\n\t\t\t\t\trg.setRunFlag(true);\n\t\t\t\t\tthread.start();\n\n//\t\t\t\t\trbk.setRg(rg);\n//\t\t\t\t\tthreadRbk = new Thread(rbk);\n//\t\t\t\t\tthreadRbk.start();\n\t\t\t\t\t\n\t\t\t\t\t\n//\t\t\t\t\tset.setRg(rg);\n//\t\t\t\t\tthreadSet = new Thread(set);\n//\t\t\t\t\tthreadSet.start();\n//\t\t\t\t\t\n//\t\t\t\t\tthreadDev = new Thread(s2dev);\n//\t\t\t\t\tthreadDev.start();\n\t\t\t\t\t\n\t\t\t\t\tif (conn == null) {\n\t\t\t\t\t\tConfigure.logger.error(\"Acquire connection failed, connecting error\");\n\t\t\t\t\t\tSystem.out.println(\"Acquire connection failed, connecting error\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected Map<String, String> getParams() {\n int noofstudent = 2*Integer.parseInt(noofconflicts);\n String checkconflicts = \"jbscjas\";//send anything part\n String uid = AppController.getString(WingForm.this,\"Student_id\");\n Map<String, String> params = new LinkedHashMap<String, String>();\n //using LinkedHashmap because backend does not check key value and sees order of variables\n params.put(\"checkconflicts\", checkconflicts);\n params.put(\"noofstudent\", String.valueOf(noofstudent));\n for(int m=0;m<noofstudent;m++){\n params.put(\"sid[\"+m+\"]\",sid[m]);\n }\n\n\n return params;\n }", "private void initParameters() {\n jobParameters.setSessionSource(getSession(\"source\"));\n jobParameters.setSessionTarget(getSession(\"target\"));\n jobParameters.setAccessDetailsSource(getAccessDetails(\"source\"));\n jobParameters.setAccessDetailsTarget(getAccessDetails(\"target\"));\n jobParameters.setPageSize(Integer.parseInt(MigrationProperties.get(MigrationProperties.PROP_SOURCE_PAGE_SIZE)));\n jobParameters.setQuery(MigrationProperties.get(MigrationProperties.PROP_SOURCE_QUERY));\n jobParameters.setItemList(getFolderStructureItemList());\n jobParameters.setPropertyFilter(getPropertyFilter());\n jobParameters.setReplaceStringInDestinationPath(getReplaceStringArray());\n jobParameters.setNamespacePrefixMap(getNamespacePrefixList());\n jobParameters.setBatchId(getBatchId());\n jobParameters.getStopWatchTotal().start();\n jobParameters.setSuccessAction(MigrationProperties.get(MigrationProperties.PROP_SOURCE_SUCCESS_ACTION));\n jobParameters.setErrorAction(MigrationProperties.get(MigrationProperties.PROP_SOURCE_ERROR_ACTION));\n jobParameters.setSuccessFolder(MigrationProperties.get(MigrationProperties.PROP_SOURCE_SUCCESS_FOLDER) + \"/\" + jobParameters.getBatchId());\n jobParameters.setErrorFolder(MigrationProperties.get(MigrationProperties.PROP_SOURCE_ERROR_FOLDER) + \"/\" + jobParameters.getBatchId());\n jobParameters.setCurrentFolder(getRootFolder());\n jobParameters.setSkipDocuments(Boolean.valueOf(MigrationProperties.get(MigrationProperties.PROP_MIGRATION_COPY_FOLDERS_ONLY)));\n \n }", "@Test\n\tpublic void runSend(){\n\t\tstandard();\n\t}", "@Override\r\n\tpublic void run(String... paramArrayOfString) throws Exception {\r\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\tmsg.what = 100;\n\t\t\t\t\tmsg.obj = split[1]+\",\"+split[2];\n\t\t\t\t\tmHandler.sendMessage(msg);\n\t\t\t\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void execute(JobExecutionContext context)\n\t\t\tthrows JobExecutionException {\n\t\tJobDataMap map = context.getJobDetail().getJobDataMap();\n\t\tString json = map.getString(getArg());\n\t\tif(json==null){\n\t\t\techo(\"json is null\");\n\t\t\treturn ;\n\t\t}\n\t\tMsg = JSON.parseObject(json, Map.class);\n\t\t\t\t\n\t\tSendEmail();\n\t}", "public static void testIBMMQReceiveData(){\n\n MQParam param = new MQParam();\n param.setHost(\"10.86.92.194\");\n param.setPort(30099);\n param.setCcsid(1208);\n param.setChannel(\"SVRCONN_GW_OUT\");\n param.setQueueManager(\"ESB_OUT\");\n param.setQueueName(\"EIS.QUEUE.REQUEST.OUT.GCDCHZWMES\");\n param.setReplyToQueueName(\"EIS.QUEUE.RESPONSE.IN.GCDCHZWMES\");\n param.setUserId(\"mqm\");\n param.setPassword(\"mqm\");\n\n new Thread(new IBMSenderThread(param,\"data1\")).run();\n new Thread(new IBMSenderThread(param,\"datata22\")).run();\n new Thread(new IBMSenderThread(param,\"datatatata333\")).run();\n }", "public abstract void param(byte[] data,SplitDetails name, SplitDetails value) throws ParseException;", "public static void main(String[] args) {\n Config config = ResourceAllocator.loadConfig(new HashMap<>());\n System.out.println(\"read config values: \" + config.size());\n System.out.println(config);\n\n // build JobConfig\n HashMap<String, Object> configurations = new HashMap<>();\n configurations.put(SchedulerContext.THREADS_PER_WORKER, 8);\n\n JobConfig jobConfig = new JobConfig();\n jobConfig.putAll(configurations);\n\n // build the job\n Twister2Job twister2Job = Twister2Job.loadTwister2Job(config, jobConfig);\n\n // now submit the job\n Twister2Submitter.submitJob(twister2Job, config);\n\n // now terminate the job\n terminateJob(config);\n// jobWriteTest(twister2Job);\n// jobReadTest();\n }", "@GetMapping(\"/runPesertaJobParameter\")\n public String pesertaBatchReaderFromParameter() {\n \n// lokasi folder disesuaikan dengan kebutuhan\n final File folder = new File(\"/home/anggi/tes\");\n try {\n for (final File fileEntry : folder.listFiles()) {\n if (fileEntry.isFile()) {\n String path = fileEntry.getAbsolutePath();\n \n// validasi file nya csv apa bukan\n String extention = path.substring(path.lastIndexOf(\".\") + 1);\n logger.info(\"file extention : \" + extention);\n if (extention.equalsIgnoreCase(\"csv\")) {\n JobParameters parameters = new JobParametersBuilder()\n .addString(\"runId\", \"1\") //mengirim parameter ke job\n .addString(\"fileName\", fileEntry.getAbsolutePath()) //mengirim parameter ke job\n .toJobParameters();\n jobLauncher.run(importDataPesertaFromCsvParameter, parameters);\n }\n }\n }\n } catch (Exception ex) {\n logger.error(\"ERROR LAUNCH importDataPesertaFromCsvJob : \", ex.getMessage(), ex);\n return \"ERROR LAUNCH importDataPesertaFromCsvJob : \" + ex.getMessage();\n }\n return \"JOB DONE !!\";\n }", "@Override\n\tpublic void execute(JobExecutionContext context) throws JobExecutionException {\n\n\t\tSystem.out.println(\"MyJob is executing!\");\n\t\t\n\n\t\tList<constantCom> allConstantCom = constantcomRepository.findAll();\n\t\tLong curr_negative_Val;\n\t\tString curr_ID;\n\t\n\t\tfor (int i=0;i< allConstantCom.size();i++)\n\t\t{\n\t\t\tSystem.out.println(\"AAA\");\n\t\t\tconstantCom curr_constantCom = allConstantCom.get(i);\n\t\t\tSystem.out.println(\"Current ID: \"+curr_constantCom.getUserId()+\"Current Amount: \"+curr_constantCom.getConstantAmt());\n\t\t\tcurr_negative_Val = curr_constantCom.getConstantAmt();\n\t\t\tcurr_ID = curr_constantCom.getUserId();\n\t\t\tmoolahuserRepository.updateConstantComponent(curr_negative_Val,curr_ID);\n\t\t\n\t\t}\n\t\t\n\n \n\n \n \n\t}", "public static void main(String[] args) {\n\t\tActorSystem system = ActorSystem.create(\"actors\");\n\n\t\tProps p = Props.create(Worker.class); //Props is a ActorRef configuration object. Worker is an actor \n\t\tActorRef a1 = system.actorOf(p,\"A1\"); //reference to an actor\n\t\tActorRef a2 = system.actorOf(p, \"A2\"); //reference to an actor\n\t\t\n\t\tInteger i = 100;\n\t\ta1.tell(i, null); //send a message (integer) to the actor a1\n\t\ta2.tell(\"Yes\", a1); //send a string message to a2\n\t\t\n\t}", "JobResponse apply(Context context);", "public thExecOTX(globalAreaData m, JSONObject jo) {\n gDatos = m;\n gSub = new srvRutinas(gDatos);\n this.params = jo;\n }", "@Override\r\n public void generateTasks() {\r\n int tasks = Integer.parseInt(this.getProperty(\"numTask\", \"1000\"));\r\n setNumOfTasks(tasks);\r\n //TODO:fixed port here !!!! need to change!!!\r\n serverPort = Integer.parseInt(this.getProperty(\"reqServerPort\", \"5560\")); \r\n PROC_MAX = Integer.parseInt(this.getProperty(\"reqServerMaxConcurrentClients\",\"10\"));\r\n location = this.getProperty(\"location\", \"rutgers\");\r\n energyplusPropertyFile = this.getProperty(\"energyplusTemplate\", \"energyplus.property\");\r\n \r\n winnerTakeAll = Boolean.parseBoolean(this.getProperty(\"winnerTakeAll\",\"true\"));\r\n jobDistributionMap = new HashMap<Integer,Integer>();\r\n copyJobDistributionMap = new HashMap<Integer,Integer>();\r\n //System.out.println(\"energyplusPropertyFile:\"+energyplusPropertyFile);\r\n \r\n initInfoSystem();\r\n initDistributionSystem();\r\n startFedServer();\r\n }", "@Override\n public void run() {\n CompareService.getRankedJobStrings();\n\n // get current job\n current = DataHandler.GetDataHandlerInstance().GetCurrentJob();\n String formattedComp =\n JOB.title + \" | \" + current.title + \"\\n\" +\n JOB.currentJob + \" | \" + current.currentJob + \"\\n\" +\n JOB.company + \" | \" + current.company + \"\\n\" +\n JOB.city + \" | \" + current.city + \"\\n\" +\n JOB.state + \" | \" + current.state + \"\\n\" +\n JOB.yearlySalary + \" | \" + current.yearlySalary + \"\\n\" +\n JOB.yearlyBonus + \" | \" + current.yearlyBonus + \"\\n\" +\n JOB.teleworkDaysPerWeek + \" | \" + current.teleworkDaysPerWeek + \"\\n\" +\n JOB.retirementBenefit + \" | \" + current.retirementBenefit + \"\\n\" +\n JOB.leaveTime + \" | \" + current.leaveTime;\n intent.putExtra(\"job1\", JOB.title + \", \" + JOB.company);\n intent.putExtra(\"job2\", current.title + \", \" + current.company);\n startActivity(intent);\n }", "@Override\n\t\tpublic void execute(ManagedFunctionContext<None, Indexed> context) throws Throwable {\n\t\t\tparameter = (Integer) context.getObject(0);\n\t\t\tcontext.doFlow(0, \"TEST\", null);\n\t\t}", "public static void main(String... args) {\n\n TestWrkactjob_ actJob = new TestWrkactjob_(args[0], args[1], args[2]);\n\n actJob.initJobList();\n actJob.loadJobList();\n\n actJob.setSortOnCPUTime();\n\n actJob.getJobList(\"csv\");\n\n }", "@Ignore(\"Надо переделать!!\")\n @Test\n public void testFull() throws Exception {\n // SYSTEM.DEF.SVRCONN/TCP/vs338(1414)\n // SYSTEM.ADMIN.SVRCONN/TCP/vs338(1414)\n // UCBRU.ADP.BARSGL.V4.ACDENO.FCC.NOTIF\n\n MQQueueConnectionFactory cf = new MQQueueConnectionFactory();\n\n\n // Config\n cf.setHostName(\"vs338\");\n cf.setPort(1414);\n cf.setTransportType(WMQConstants.WMQ_CM_CLIENT);\n cf.setQueueManager(\"QM_MBROKER10_TEST\");\n cf.setChannel(\"SYSTEM.ADMIN.SVRCONN\");\n\n SingleActionJob job =\n SingleActionJobBuilder.create()\n .withClass(MovementCreateTask.class)\n\n// .withProps(\n// \"mq.type = queue\\n\" +\n// \"mq.host = vs338\\n\" +\n// \"mq.port = 1414\\n\" +\n// \"mq.queueManager = QM_MBROKER10_TEST\\n\" +\n// \"mq.channel = SYSTEM.DEF.SVRCONN\\n\" +\n// \"mq.batchSize = 1\\n\" + //todo\n// \"mq.topics = LIRQ!!!!:UCBRU.ADP.BARSGL.V4.ACDENO.FCC.NOTIF:UCBRU.ADP.BARSGL.V4.ACDENO.MDSOPEN.NOTIF\"+\n// \";BALIRQ:UCBRU.ADP.BARSGL.V4.ACDENO.MDSOPEN.NOTIF:UCBRU.ADP.BARSGL.V4.ACDENO.FCC.NOTIF\\n\"+\n// \"mq.user=er22228\\n\" +\n// \"mq.password=Vugluskr6\"\n//\n// )//;MIDAS_UPDATE:UCBRU.ADP.BARSGL.V4.ACDENO.MDSUPD.NOTIF\n\n .build();\n jobService.executeJob(job);\n \n// receiveFromQueue(cf,\"UCBRU.ADP.BARSGL.V4.ACDENO.MDSOPEN.NOTIF\");\n// receiveFromQueue(cf,\"UCBRU.ADP.BARSGL.V4.ACDENO.MDSOPEN.NOTIF\");\n// receiveFromQueue(cf,\"UCBRU.ADP.BARSGL.V4.ACDENO.MDSOPEN.NOTIF\");\n// receiveFromQueue(cf,\"UCBRU.ADP.BARSGL.V4.ACDENO.FCC.NOTIF\");\n// receiveFromQueue(cf,\"UCBRU.ADP.BARSGL.V4.ACDENO.FCC.NOTIF\");\n// receiveFromQueue(cf,\"UCBRU.ADP.BARSGL.V4.ACDENO.FCC.NOTIF\");\n\n }", "@Override\n protected int run(String[] args) throws Exception {\n setDistributedCache(args[2], \"chuangdata_log_config\");\n setDistributedCache(args[3], \"chuangdata_encrypt_public_key_file\");\n setDistributedCache(args[4], \"chuangdata_resource_app_host\");\n setDistributedCache(args[5], \"chuangdata_resource_app_action\");\n setDistributedCache(args[6], \"chuangdata_resource_app_param\");\n setDistributedCache(args[7], \"chuangdata_resource_app_domain\");\n\n // 2. set specific property\n setProperty(\"chuangdata.log.config\", \"chuangdata_log_config\");\n setProperty(\"chuangdata.encrypt.public.key.file\", \"chuangdata_encrypt_public_key_file\");\n setProperty(\"chuangdata.dmu.userprofile.app.host\", \"chuangdata_resource_app_host\");\n setProperty(\"chuangdata.dmu.userprofile.app.action\", \"chuangdata_resource_app_action\");\n setProperty(\"chuangdata.dmu.userprofile.app.param\", \"chuangdata_resource_app_param\");\n setProperty(\"chuangdata.dmu.userprofile.app.domain\", \"chuangdata_resource_app_domain\");\n\n // args[7] should be meid resource input path\n String meidResourceFile = getMEIDResource(args[8]);\n LOG.info(\"Get MEID Resource: \" + meidResourceFile);\n if (meidResourceFile.endsWith(\".gz\")) {\n setDistributedCache(meidResourceFile, \"chuangdata_resource_sh_meid.gz\");\n setProperty(\"chuangdata.dmu.userprofile.sh.meid\", \"chuangdata_resource_sh_meid.gz\");\n } else {\n setDistributedCache(meidResourceFile, \"chuangdata_resource_sh_meid\");\n setProperty(\"chuangdata.dmu.userprofile.sh.meid\", \"chuangdata_resource_sh_meid\");\n }\n\n // 3. set Job\n Job job = Job.getInstance(getConfiguration(), CDPIJobDriver.class.getSimpleName());\n job.setJarByClass(CDPIJobDriver.class);\n job.setMapperClass(CDPIMapper.class);\n job.setReducerClass(CDPIReducer.class);\n job.setPartitionerClass(TimePartitioner.class);\n job.setMapOutputKeyClass(CDPIKeyModel.class);\n job.setMapOutputValueClass(Metrics.class);\n job.setOutputKeyClass(Text.class);\n job.setOutputValueClass(Text.class);\n job.setInputFormatClass(TextInputFormat.class);\n job.setOutputFormatClass(TextOutputFormat.class);\n FileInputFormat.addInputPath(job, new Path(args[0]));\n FileOutputFormat.setOutputPath(job, new Path(args[1]));\n\n return job.waitForCompletion(true) ? 0 : 1;\n }", "@Override\r\n @SuppressWarnings(\"empty-statement\")\r\n public Object createTaskData(int taskid) { \r\n List curPara = new ArrayList();\r\n ArrayList<String[]> regArgs1=new ArrayList<String[]>();\r\n String [] regArgs2 = null;\r\n synchronized(lock){\r\n curPara = paramList.get(taskid); \r\n }\r\n \r\n String _taskType = curPara.get(2).toString();\r\n String _info1 = curPara.get(4).toString();\r\n String _info2 = curPara.get(5).toString();\r\n if(_taskType.equals(\"c4c\")){ \r\n String _tupleTag = curPara.get(1).toString();\r\n HashMap<String,Object> requestArgs ;\r\n if (_info2.equals(\"MET\")) {\r\n try {\r\n Thread.sleep(100);\r\n System.out.println(\"[Notification-createTaskData] metadata array to send \"+C4CHelper.regArgs2.size());\r\n Thread.sleep(100);\r\n regArgs1=C4CHelper.regArgs2;\r\n Thread.sleep(10000);\r\n System.out.println(\"[Notification-createTaskData] metadata completed\");\r\n C4CHelper.uploadModel=true;\r\n } catch (Exception ex) {\r\n Logger.getLogger(FedMeteorPublisherMaster.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n } else if (_info2.equals(\"VER\")){\r\n try {\r\n Thread.sleep(100);\r\n System.out.println(\"[Notification-createTaskData] version array to send \"+C4CHelper.regArgs1.size());\r\n Thread.sleep(100);\r\n regArgs1=C4CHelper.regArgs1;\r\n Thread.sleep(10000);\r\n System.out.println(\"[Notification-createTaskData] version completed\");\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(FedMeteorPublisherMaster.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n } else if (_info1.equals(\"CONFIG\")){\r\n try {\r\n ArrayList<String[]> result=new ArrayList<String[]>();\r\n String[] res=new String[10];\r\n System.out.println(\"[Notification-createTaskData] config array to send: \"+C4CHelper.resultConfig.length());\r\n Thread.sleep(100);\r\n Pattern pattern = Pattern.compile(\"<IPAddress>(.*?)</IPAddress>\");\r\n Pattern pattern2 = Pattern.compile(\"<Port>(.*?)</Port>\");\r\n Matcher matcher = pattern.matcher(C4CHelper.resultConfig);\r\n Matcher matcher2 = pattern2.matcher(C4CHelper.resultConfig);\r\n while ((matcher.find()) && (matcher2.find())){\r\n res[0]=matcher.group(1);\r\n res[1]=matcher2.group(1);\r\n //System.out.println(\"[Notification-createTaskData] 1111 config completed \"+res[0] +\"-\"+res[1]);\r\n result.add(new String[] {res[0],res[1]});\r\n \r\n } \r\n regArgs1=result;\r\n //System.out.println(\"[Socket getInterfaceData] configuring ...end \"+result.get(0)[0]);\r\n //System.out.println(\"[Socket getInterfaceData] configuring ...end \"+result.get(0)[1]);\r\n System.out.println(\"[Notification-createTaskData] config completed\");\r\n \r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(FedMeteorPublisherMaster.class.getName()).log(Level.SEVERE, null, ex);\r\n } \r\n } else { \r\n \r\n System.out.println(\"[Notification-createTaskData] fetch received\");\r\n }\r\n return (Object) regArgs1;\r\n \r\n }else if(_taskType.equals(\"C4C\")){\r\n String _tupleTag = curPara.get(1).toString();\r\n HashMap<String,Object> requestArgs ;\r\n if(_tupleTag.equals(\"CPT\")){\r\n requestArgs = (HashMap<String,Object>)curPara.get(9);\r\n }else{\r\n regArgs1 = null;\r\n }\r\n return (Object) regArgs1;\r\n }else{\r\n return null;\r\n } \r\n }", "void sendMessageToTarget(@ParamName(\"message\") String message);", "public void createTasks(Integer _optID, String _tupleTag, String _taskType, String _info1, String _info2, String _destIP, String _port, String _location, long timestamp, Object _appSpecific){ \r\n //System.out.print(\"Create tasks\");\r\n boolean flag = false;\r\n String defaultIP = \"-1\";\r\n String defaultPort = \"-1\";\r\n \r\n //use wildcard to let one worker randomly choose the job to run\r\n //System.out.println(\"---What is optID: \" +_optID);\r\n if(_destIP.equals(\"RANDOM\")){\r\n int tempTaskID = getUpdatedTaskID();\r\n \r\n insertIntoParaList(tempTaskID, _optID, _tupleTag, _taskType,defaultIP,_info1,_info2,defaultPort,_location, timestamp,_appSpecific);\r\n flag = true;\r\n addEntryToResultList(_optID,flag);\r\n //------THE TASK IS INSERTED HERE\r\n insertTask(tempTaskID);\r\n }\r\n //send tuples to all\r\n else if(_destIP.equals(\"ALL\")){\r\n //Iterate through all sites that subscribe to certain types of task \r\n //System.out.println(\"infoSys.getSiteList(): \"+infoSys.getSiteList());\r\n Iterator it = infoSys.getSiteList().entrySet().iterator();\r\n while (it.hasNext()) {\r\n Map.Entry entry = (Map.Entry) it.next();\r\n _destIP = ((String) entry.getKey());\r\n ConcurrentHashMap<String, String> subscribeType = (ConcurrentHashMap<String, String>) entry.getValue();\r\n \r\n //option 2, if there is multiple subscribers of a certain taskType in one site\r\n Iterator subIt = subscribeType.entrySet().iterator();\r\n while (subIt.hasNext()) {\r\n Map.Entry subEntry = (Map.Entry) subIt.next();\r\n String[] typeAndAssociate = subEntry.getValue().toString().split(\",\");\r\n if (typeAndAssociate[0].equals(_tupleTag) && typeAndAssociate[1].equals(_taskType)) {\r\n _port = subEntry.getKey().toString();\r\n\r\n int tempTaskID = getUpdatedTaskID();\r\n insertIntoParaList(tempTaskID, _optID, _tupleTag, _taskType,_destIP, _info1,_info2,_port,_location, timestamp,_appSpecific);\r\n //System.out.println(\"Master out: \"+\"--\"+_tupleTag+\"--\"+_taskType+\"--\"+_optID+\"--\"+_destIP+\"--\"+_budget+\"--\"+_deadline+\"--\"+_port);\r\n flag = true;\r\n addEntryToResultList(_optID,flag);\r\n //------THE TASK IS INSERTED HERE\r\n insertTask(tempTaskID);\r\n \r\n }\r\n }\r\n }\r\n }\r\n //if user choose one specific worker, only send the message to it\r\n else{ \r\n //System.out.println(infoSys.getSiteList());\r\n //Check if this subscriber exists\r\n if (infoSys.hasAssociateSubscriber(_destIP, _port)) {\r\n int tempTaskID = getUpdatedTaskID();\r\n //System.out.println(\"Master out: \"+\"--\"+_tupleTag+\"--\"+_taskType+\"--\"+_optID+\"--\"+_destIP+\"--\"+_budget+\"--\"+_deadline+\"--\"+_port);\r\n insertIntoParaList(tempTaskID, _optID, _tupleTag, _taskType,_destIP,_info1,_info2,_port,_location, timestamp,_appSpecific);\r\n flag = true;\r\n addEntryToResultList(_optID,flag);\r\n insertTask(tempTaskID);\r\n } else {\r\n System.out.println(\"Incorrect destIP or destPort for creating task!\");\r\n }\r\n } \r\n //create entry in resultList\r\n addEntryToResultList(_optID,flag);\r\n }", "public void callVolley(JSONObject obj){\n RequestQueue queue = Volley.newRequestQueue(mContext);\n JSONObject obj1 = obj;\n //1. URL dari BASE_URL\n BASE_URL = BASE_URL+obj1.toString();\n //2. input = parameter\n //3. response listener : panggil processResult((response listener dijalankan di UI Thread)\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.POST, BASE_URL, obj1, new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n processResult(response.toString());\n Log.d(\"RESPONSE\", response.toString());\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError volleyError) {\n Log.d(\"RESPONSE\", \"That didn't work!\");\n }\n });\n queue.add(request);\n }", "public static void main(String[] argv) {\r\n\t\ttask_data task_info = new task_data();\r\n\t\tlocal_tube sheet_parser = new local_tube(task_info);\r\n\t\tString current_terminal = \"LSHITD0097\";\r\n\t\tHashMap<String, String> imported_data = new HashMap<String, String>();\r\n\t\timported_data.put(\"env\", \"a=b\");\r\n\t\timported_data.put(\"sort\", \"\");\r\n\t\timported_data.put(\"key\", public_data.CASE_USER_PATTERN + \"|\" + public_data.CASE_STANDARD_PATTERN);\r\n\t\tsheet_parser.generate_suite_file_local_admin_task_queues(time_info.get_date_time(), \"C:\\\\Users\\\\jwang1\\\\Desktop\\\\standard_suite2\\\\radiant_regression.xlsx\", imported_data, current_terminal);\r\n\t\t//System.out.println(task_info.get_received_task_queues_map().toString());\r\n\t\t//System.out.println(task_info.get_received_admin_queues_treemap().toString());\r\n\t\tsheet_parser.generate_suite_path_local_admin_task_queues(time_info.get_date_time(), \"C:/Users/jwang1/Desktop/qinhai_suite\", \"D:/tmp_work\", imported_data);\r\n\t\tSystem.out.println(task_info.get_received_task_queues_map().toString());\r\n\t\tSystem.out.println(task_info.get_received_admin_queues_treemap().toString());\r\n\t\t/*\t\t\r\n\t\txml_parser xml_parser2 = new xml_parser();\r\n\t\tIterator<String> dump_queue_it = task_info.get_received_admin_queues_treemap().keySet().iterator();\r\n\t\tString queue_name = dump_queue_it.next();\r\n\t\tHashMap<String, HashMap<String, String>> admin_queue_data = task_info\r\n\t\t\t\t.get_queue_data_from_received_admin_queues_treemap(queue_name);\r\n\t\tSystem.out.println(queue_name);\r\n\t\tSystem.out.println(admin_queue_data);\r\n\t\ttry {\r\n\t\t\txml_parser2.dump_admin_data(admin_queue_data, queue_name,\r\n\t\t\t\t\t\"D:/tmp_work_space/logs/finished/admin/test.xml\");\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tTreeMap<String, HashMap<String, HashMap<String, String>>> task_queue_data = task_info\r\n\t\t\t\t.get_received_task_queues_map().get(queue_name);\r\n\t\tSystem.out.println(task_queue_data);\r\n\t\ttry {\r\n\t\t\txml_parser2.dump_task_data(task_queue_data, queue_name,\r\n\t\t\t\t\t\"D:/tmp_work_space/logs/finished/task/test.xml\");\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t*/\r\n\t}", "void invoke(Map<String, Object> data, String sender);", "public static void startActionBaz(Context context, String param1, String param2) {\n Intent intent = new Intent(context, GcmIntentService.class);\n intent.setAction(ACTION_BAZ);\n intent.putExtra(EXTRA_PARAM1, param1);\n intent.putExtra(EXTRA_PARAM2, param2);\n context.startService(intent);\n }", "public interface DoJob {\n public void fillResult(int a, int b, int result);\n}", "public void doWithJob(String name) throws MojoExecutionException {\n getLog().info(\"Modifying job: \" + name);\n Document jobDoc = loadJobConfig(name);\n configurePlugin(jobDoc, PluginType.publishers, new Element(\n \"hudson.plugins.twitter.TwitterPublisher\"));\n saveJobConfig(name, jobDoc);\n }", "public abstract List<C_result> processJob(C_request processing_cmd);", "@GetMapping(\"/runPesertaJob\")\n public String pesertaBatchJob() {\n try {\n JobParameters parameters = new JobParametersBuilder()\n .addString(\"JobId\", \"60\") //mengirim parameter ke job\n .toJobParameters();\n jobLauncher.run(importDataPesertaFromCsv, parameters);\n\n } catch (Exception ex) {\n logger.error(\"ERROR LAUNCH importDataPesertaFromCsvJob : \", ex.getMessage(), ex);\n return \"ERROR LAUNCH importDataPesertaFromCsvJob : \" + ex.getMessage();\n }\n return \"JOB DONE !!\";\n }", "public void setRequestProperty(String paramString1, String paramString2) {\n/* 295 */ this.delegate.setRequestProperty(paramString1, paramString2);\n/* */ }", "void sendScheduledNotifications(JobProgress progress);", "public static void main(String[] args) {\n\t\tTryMethodParam tm1 = new TryMethodParam(10);\r\n\t\ttm1.try1(tm1);\r\n\t\tSystem.out.println(tm1.par); //10\r\n\t\ttm1.try2(tm1);\r\n\t\tSystem.out.println(tm1.par); //12345\r\n\t\tString s = \"tryyy\";\r\n\t\tStringParam.giveString(s);\r\n\t\tSystem.out.println(s);\r\n\t\tStringParam.addString(s);\r\n\t\tSystem.out.println(s);\r\n\r\n\t}", "public RunProcDefJob() {\n\t}", "public interface JobManager {\n void startJob(JobConfig<String, JsonRecord> name);\n}", "public static void singleHopJob(Configuration conf, String year,String[] args) throws IOException, InterruptedException, ClassNotFoundException{\n Job j = Job.getInstance(conf,\"Single Hops\");\n j.setJarByClass(SingleHopFlights.class);\n j.setMapperClass(SingleHopFlights.SingleHopFlightsMapper.class);\n j.setPartitionerClass(SingleHopFlights.FlightsPartitioner.class);\n j.setMapOutputKeyClass(Text.class);\n j.setMapOutputValueClass(DelayWritable.class);\n j.setReducerClass(SingleHopFlights.SingleHopFlightsReducer.class);\n j.setOutputKeyClass(Text.class);\n j.setOutputValueClass(DoubleWritable.class);\n j.setInputFormatClass(NonSplitableTextInputFormat.class);\n j.getConfiguration().set(\"year\",year);\n j.getConfiguration().set(\"mapreduce.output.textoutputformat.separator\", \",\");\n j.setNumReduceTasks(12);\n FileInputFormat.addInputPath(j, new Path(args[0]));\n FileOutputFormat.setOutputPath(j, new Path(args[1]+\"/phase1output\"));\n j.waitForCompletion(true);\n }", "@RequestMapping( value = \"/buildJob/{jobName}\", method = RequestMethod.GET)\n public String startJob(@PathVariable(\"jobName\") String jobName) throws IOException {\n QueueReference queueReference= jenkinsServer\n .getJob(jobName)\n .build();\n// .build(scrum_token);\n\n\n\n return queueReference.getQueueItemUrlPart();\n\n }", "public void subTask(String name) {\n\r\n\t}", "public DreamJob (String title) {\r\n System.out.println(\"Message from: DreamJob(String title)\");\r\n this.title = title;\r\n\t}", "private void setJob(String s) {\n switch (s) {\n case \"Wake\":\n _makeAnnouncement(\"The Zookeeper is about to wake the animals!\");\n break;\n case \"Sleep\":\n _makeAnnouncement(\"The Zookeeper is about to put the animals to sleep!\");\n break;\n case \"rollCall\":\n _makeAnnouncement(\"The Zookeeper is about to perform a roll call on the animals!\");\n break;\n case \"Exercise\":\n _makeAnnouncement(\"The Zookeeper is about to make the animals exercise!\");\n break;\n case \"Feed\":\n _makeAnnouncement(\"The Zookeeper is about to feed the animals!\");\n break;\n default:\n break;\n }\n }", "@Override\n\t\tpublic void subTask(String arg0) {\n\n\t\t}", "@Override\r\n\t public void run() {\n\r\n\t\ttry {\r\n\t\t URL uri = new URL(url);\r\n\t\t String newParams = URLEncoder.encode(params, \"utf-8\");\r\n\t\t HttpURLConnection conn = (HttpURLConnection) uri\r\n\t\t\t .openConnection();\r\n\t\t conn.setRequestMethod(\"POST\");\r\n\t\t // 设置请求的参数\r\n\t\t conn.setDoInput(true);\r\n\t\t conn.setDoOutput(true);\r\n\r\n\t\t conn.getOutputStream().write(newParams.getBytes());\r\n\r\n\t\t if (conn.getResponseCode() == 200) {\r\n\t\t\tInputStream is = conn.getInputStream();\r\n\t\t\tString result = convertInputStreamToString(is);\r\n\t\t\t// 通过handler发送消息\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.what = 1;\r\n\t\t\tmsg.obj = result;\r\n\t\t\thandler.sendMessage(msg);\r\n\t\t }\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t // TODO Auto-generated catch block\r\n\t\t e.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t // TODO Auto-generated catch block\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t }", "@Override\n public void run(String... args) throws Exception {\n worker.sendPayEvent(\"Pay\", 0,1000);\n worker.sendReceiveEvent(\"Receive\", 0,1000);\n worker.sendStartFromScratchEvent(\"StartFromScratch\", 0,1000);\n\n worker.sendPayEvent(\"Pay\", 0,1000);\n worker.sendReceiveEvent(\"Receive\", 0,1000);\n worker.sendStartFromScratchEvent(\"StartFromScratch\", 0,1000);\n\n worker.sendPayEvent(\"Pay\", 0,1000);\n worker.sendReceiveEvent(\"Receive\", 0,1000);\n worker.sendStartFromScratchEvent(\"StartFromScratch\", 0,1000);\n\n worker.stop();\n\n }", "public static void main(String[] args) {\n\t\tJobDetail job = JobBuilder.newJob(TimeJob.class).withIdentity(\"Time INfo\", \"group1\").build();\n\t\t// Create a trigger with identity\n\t\tTrigger trigger = TriggerBuilder.newTrigger().withIdentity(\"triggerINfo\", \"group1\")\n\t\t\t\t.withSchedule(SimpleScheduleBuilder.simpleSchedule().withIntervalInSeconds(5).repeatForever()).build();\n\t\t// Tie both Job and trigger to a scheduler\n\t\tScheduler scheduler;\n\t\ttry {\n\t\t\tscheduler = new StdSchedulerFactory().getScheduler();\n\t\t\tscheduler.start();\n\t\t\tscheduler.scheduleJob(null, trigger);\n\t\t} catch (SchedulerException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void setParaToRequest(String key, Object obj)\n\t{\n\t\t\n\t\t\n\t}", "void run(AnswerType parameter);", "abstract void doJob();", "public static void main(String argv[]) {\n\n // Is there anything to do?\n if (argv.length == 0) {\n printUsage();\n System.exit(1);\n }\n\n // Values to be read from parameters\n String broker \t= DEFAULT_BROKER_NAME;\n String username \t= null;\n String password \t= DEFAULT_PASSWORD;\n String qSender\t\t= null;\n String qReceiver\t= null;\n\n // Check parameters\n for (int i = 0; i < argv.length; i++) {\n String arg = argv[i];\n\n // Options\n if (!arg.startsWith(\"-\")) {\n System.err.println (\"error: unexpected argument - \"+arg);\n printUsage();\n System.exit(1);\n }\n else {\n if (arg.equals(\"-b\")) {\n if (i == argv.length - 1 || argv[i+1].startsWith(\"-\")) {\n System.err.println(\"error: missing broker name:port\");\n System.exit(1);\n }\n broker = argv[++i];\n continue;\n }\n\n if (arg.equals(\"-u\")) {\n if (i == argv.length - 1 || argv[i+1].startsWith(\"-\")) {\n System.err.println(\"error: missing user name\");\n System.exit(1);\n }\n username = argv[++i];\n continue;\n }\n\n if (arg.equals(\"-p\")) {\n if (i == argv.length - 1 || argv[i+1].startsWith(\"-\")) {\n System.err.println(\"error: missing password\");\n System.exit(1);\n }\n password = argv[++i];\n continue;\n }\n\n if (arg.equals(\"-qr\")) {\n if (i == argv.length - 1 || argv[i+1].startsWith(\"-\")) {\n System.err.println(\"error: missing receive queue parameter\");\n System.exit(1);\n }\n qReceiver = argv[++i];\n continue;\n }\n\n if (arg.equals(\"-qs\")) {\n if (i == argv.length - 1 || argv[i+1].startsWith(\"-\")) {\n System.err.println(\"error: missing send queue parameter\");\n System.exit(1);\n }\n qSender = argv[++i];\n continue;\n }\n\n\n if (arg.equals(\"-h\")) {\n printUsage();\n System.exit(1);\n }\n }\n }\n\n // Check values read in.\n if (username == null) {\n System.err.println (\"error: user name must be supplied\");\n printUsage();\n System.exit(1);\n }\n\n if (qReceiver == null && qSender == null) {\n System.err.println (\"error: receive queue, or send queue, must be supplied\");\n printUsage();\n System.exit(1);\n }\n\n // Start the JMS client for the \"Talk\".\n Talk talk = new Talk();\n talk.talker (broker, username, password, qReceiver, qSender);\n\n }", "worker(long workOn) {\n this.workOn = workOn;\n }", "void sendChat(SendChatParam param);", "@Override\r\n\tpublic void doBeforeJob() {\n\r\n\t}", "public TriggerEchoJob() {\n\t}", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t\trequestToNet(mGetJobDept, null);\n\t\t\t}", "public void receberJogada(Jogada jogada);", "public static void main(String[] args) {\n\t\tsp.addListener(new ChangeListener<String>() {\n\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tmojString=newValue;\n\t\t\t}\n\t\t});\n\t\tdr.bindBidirectional(sp);\n\t\tdr.set(\"Drugi moj string\");\n\n\t\tsp.set(\"Opet neki string\");\n\t\tisprintaj();\n\t}", "private Response execute_work(Request request){\n if (request.getFname().equals(\"tellmenow\")){\n int returnValue = tellMeNow();\n }\n else if(request.getFname().equals(\"countPrimes\")){\n int returnValue = countPrimes(request.getArgs()[0]);\n }\n else if(request.getFname().equals(\"418Oracle\")){\n int returnValue = oracle418();\n }\n else{\n System.out.println(\"[Worker\"+String.valueOf(this.id)+\"] WARNING function name not recognized, dropping request\");\n }\n\n return new Response(id,request.getId(),request.getFname(),0);//0 meaning ok!\n }", "public interface BaseJob {\n Object start();\n\n Object initJob(Map<String, Object> param);\n\n Object stop();\n}", "java.lang.String getParameterValue();", "public void execute(JobExecutionContext context)\r\n throws JobExecutionException {\n _log.info(\"Hello World! Job 2 - \" + new Date());\r\n System.out.println(\"Hello World! Job 2 - \" + new Date());\r\n }", "public static void main(String[] args) {\n\n\n final KafkaProducer<String, String> kafkaProducer = new KafkaProducer<String, String>(getKafkaProducerProperties());\n\n // kafka\n final String topic = \"test-4\";\n\n // queue manager.\n String PARAM_QUEUE_NAME = \"DEV.QUEUE.1\";\n String PARAM_USERNAME = \"app\";\n String PARAM_PASSWORD = \"passw0rd\";\n String PARAM_QMGR_CHANNEL_NAME = \"DEV.APP.SVRCONN\";\n String PARAM_QMGR_NAME = \"QM1\";\n int PARAM_QMGR_PORT = 1414;\n String PARAM_QMGR_HOST_NAME = \"localhost\";\n\n Connection conn = null;\n\n try {\n\n // Set up the connection factory to connect to the queue manager,\n // populating it with all the properties we have been provided.\n MQConnectionFactory cf = new MQQueueConnectionFactory();\n cf.setTransportType(WMQConstants.WMQ_CM_CLIENT);\n cf.setHostName(PARAM_QMGR_HOST_NAME);\n cf.setPort(PARAM_QMGR_PORT);\n cf.setQueueManager(PARAM_QMGR_NAME);\n cf.setChannel(PARAM_QMGR_CHANNEL_NAME);\n\n // Create the connection to the queue manager\n conn = cf.createConnection(PARAM_USERNAME, PARAM_PASSWORD);\n\n // Create a session and a queue object to enable us to interact with the\n // queue manager. By creating a transactional session we can roll back\n // the message onto the queue if the processing fails.\n Session session = conn.createSession(true, 0);\n Queue q = session.createQueue(\"queue:///\"+PARAM_QUEUE_NAME);\n\n // For testing purposes we can put some messages onto the queue using this\n\n // Set up the consumer to read from the queue\n MessageConsumer consumer = session.createConsumer(q);\n\n // Don't forget to start the connection before trying to receive messages!\n conn.start();\n\n try {\n\n // Read messages from the queue and process them until there\n // are none left to read.\n while (true) {\n Message receivedMsg = consumer.receiveNoWait();\n if (receivedMsg != null) {\n // use final -> multithreading env\n final TextMessage rcvTxtMsg = (TextMessage) receivedMsg;\n final String txt = rcvTxtMsg.getText();\n final ProducerRecord<String, String> objectStringProducerRecord = new ProducerRecord<>(topic, null, txt);\n kafkaProducer.send(objectStringProducerRecord, (recordMetadata, e) -> {\n if (e!=null){\n logger.warn(\"Producer call back end up with exception\");\n try {\n session.rollback();\n logger.warn(\"Ibm mq session rollback\");\n } catch (JMSException ex) {\n logger.warn(\"Ibm mq session failed to rollback\");\n ex.printStackTrace();\n }\n } else {\n try {\n session.commit();\n logger.info(\"Transaction success: Message was committed by IBM MQ Session and was delivered by Kafka-producer to kafka topic: {}, with offset: {}\", recordMetadata.topic(), recordMetadata.offset());\n } catch (JMSException ex) {\n logger.info(\"Transaction failed: Message was not committed by IBM MQ Session\");\n throw new RuntimeException(e);\n }\n }\n });\n\n\n // Since we returned from processing the message without\n // an exception being thrown we have successfully\n // processed the message, so increment our success count\n // and commit the transaction so that the message is\n // permanently removed from the queue.\n// messagesProcessed++;\n// session.commit();\n }\n\n }\n\n } catch (JMSException jmse2)\n {\n // This block catches any JMS exceptions that are thrown during\n // the business processing of the message.\n jmse2.printStackTrace();\n\n // Roll the transaction back so that the message can be put back\n // onto the queue ready to have its proessing retried next time\n // the action is invoked.\n session.rollback();\n throw new RuntimeException(jmse2);\n\n } catch (RuntimeException e) {\n e.printStackTrace();\n\n // Roll the transaction back so that the message can be put back\n // onto the queue ready to have its proessing retried next time\n // the action is invoked.\n session.rollback();\n throw e;\n }\n\n // Indicate to the caller how many messages were successfully processed.\n\n } catch (JMSException jmse) {\n // This block catches any JMS exceptions that are thrown before the\n // message is retrieved from the queue, so we don't need to worry\n // about rolling back the transaction.\n jmse.printStackTrace();\n\n // Pass an indication about the error back to the caller.\n throw new RuntimeException(jmse);\n\n } finally {\n if (conn != null) {\n try {\n conn.close();\n } catch (JMSException jmse2) {\n // Swallow final errors.\n }\n }\n }\n\n }", "public void setJob(String job) {\n this.job = job;\n }", "public static void startActionAddData(Context context, String param1, String param2) {\n Intent intent = new Intent(context, DbIntentService.class);\n intent.setAction(ACTION_BAZ);\n intent.putExtra(EXTRA_PARAM1, param1);\n intent.putExtra(EXTRA_PARAM2, param2);\n context.startService(intent);\n }", "void run(String name, int v);", "java.lang.String getJobId();", "void schedule(ScheduledJob job);", "public static void main(String[] args) throws MqttException {\n try {\n mqttClient = Communication.connect(PUBLISHER_ID );\n } catch (MqttException e) {\n e.printStackTrace();\n }\n // args[0] is the file name\n // args[1] is the drone type : airdrone or landdrone\n // args[2] is the drone name\n\n if (args.length > 1 && (args[0].equals(\"airdrone\") | args[0].equals(\"landdrone\" ))) {\n DroneType = args[0];\n DroneName = args[1];\n\n delegateMissionRequest(DroneType, DroneName);\n\n } else {\n System.out.println(\" Specify existing drone to assign mission to \");\n\n }\n\n}", "public void sendMessage(String message, JButton b1, JButton b2){\n port +=1;\n serverConnect.sendMessage(message);\n if(\"prepare\".equals(message)){\n serverConnect.sendMessage(parameters);\n }\n new CCWorker(b1, b2, port).execute();\n }", "private void sendMessage(JSONArray parameter) {\n String msg = \"\";\n if (parameter.size() > 1) {\n for (int i = 1; i < parameter.size(); i++) {\n msg = msg + parameter.get(i).toString();\n }\n Client xClient = MailboxServer.getClientX((String) parameter.get(0));\n JSONObject j = new JSONObject();\n\n j.put(\"sequence\", ++sequence);\n j.put(\"response\", msg);\n\n if (xClient != null) {\n try {\n PrintWriter xOutput = new PrintWriter(xClient.getClientSocket().getOutputStream());\n xOutput.println(j);\n xOutput.flush();\n } catch (IOException ex) {\n }\n } else {\n failedClientResponse(\"Client doesent exist!\");\n }\n clientResponse(\"Message sent! 200- OK\");\n }\n }" ]
[ "0.5746468", "0.5618469", "0.5528273", "0.5502024", "0.5396267", "0.539124", "0.5303409", "0.5281352", "0.5266018", "0.5251658", "0.5224951", "0.5219694", "0.5192203", "0.51861", "0.51722926", "0.5169697", "0.51624405", "0.5158753", "0.515413", "0.5150882", "0.514851", "0.5144432", "0.51355875", "0.5129035", "0.5123506", "0.5119114", "0.51020575", "0.5100006", "0.509818", "0.5090675", "0.50865877", "0.5085341", "0.5064805", "0.5064521", "0.506418", "0.50615424", "0.5053759", "0.50499976", "0.5048232", "0.5034097", "0.5026948", "0.5026814", "0.5025967", "0.5024581", "0.50184345", "0.5006696", "0.5001486", "0.5001347", "0.49996954", "0.4998569", "0.49943691", "0.4988321", "0.4987073", "0.49832007", "0.49808964", "0.49776068", "0.49661744", "0.4965838", "0.49607182", "0.4959789", "0.49590546", "0.49572366", "0.49469507", "0.49389166", "0.49346328", "0.49297652", "0.49210533", "0.4914914", "0.49147835", "0.49142265", "0.4911241", "0.4909785", "0.4905173", "0.49041", "0.4900202", "0.4896085", "0.48953426", "0.4891355", "0.48904032", "0.48887184", "0.48819682", "0.48819682", "0.48819682", "0.48819682", "0.48792797", "0.48734516", "0.48698217", "0.48680875", "0.48679605", "0.48673207", "0.48662353", "0.48662263", "0.48645645", "0.4863736", "0.48607087", "0.48539463", "0.48495248", "0.48485383", "0.484806", "0.48461226" ]
0.6626352
0
because we dont have default, we force to use the first child url for parent
private void setUrlAndSelectedOfParentBasedOnFirstChild(int parentId, Set<Integer> listMenu, Map<Integer, PageMenu> menuMap, Map<Integer, Integer> parentChildRelation) { menuMap.get(parentId).setUrl(listMenu.stream() .filter(x -> parentChildRelation.get(x) == parentId) .map(x -> menuMap.get(x)) .sorted(Comparator.comparing(PageMenu::getOrder)).findFirst().map(x -> x.getUrl()).orElse("")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void initSelf(OrchidContext oc) throws OrchidException\n {\n super.initSelf(oc);\n\n try {\n BlogPolicy blog = getParentBlog();\n if (blog != null) {\n ContentId blogId = blog.getContentId().getContentId();\n\n parentBlogLink = new OContentIdLink();\n parentBlogLink.setContentId(blogId);\n parentBlogLink.setLabel(blog.getName());\n parentBlogLink.setTitle(blogId.getContentIdString());\n parentBlogLink.init(oc);\n }\n } catch (CMException e) {\n e.printStackTrace();\n }\n }", "public String getParent(String anItem) { return null; }", "public String getParent(String anItem) { return null; }", "ContentIdentifier getParent(ContentIdentifier cid);", "void setParent(Resource parent)\n {\n this.parent = new ResourceRef(parent, coral);\n if(parent != null)\n {\n \tparentId = parent.getId();\n }\n else\n {\n \tparentId = -1;\n }\n }", "Object getParent();", "public PageTreeNode getParent() {\n return parent;\n }", "Genome chooseParent();", "private static URL getParentURL(URL url) {\n if (url == null) {\n return null;\n }\n\n try {\n String urlString = url.toString();\n return new URL(urlString.substring(0, urlString.lastIndexOf('/')));\n } catch (MalformedURLException e) {\n return null;\n }\n }", "private int parent ( int pos )\n\t{\n\t\treturn -1; // replace this with working code\n\t}", "public void setParent(String parent) {\r\n this.parent = parent;\r\n }", "@VTID(7)\r\n void getParent();", "private static String recoverParent(BabelSynset bs) throws IOException {\n\t\tif(bs.getEdges(BabelPointer.ANY_HYPERNYM).size() == 0) {\n\t\t\tif(bs.getEdges(BabelPointer.DERIVATIONALLY_RELATED).size() > 0) {\n\t\t\t\tString tag = bs.getEdges(BabelPointer.DERIVATIONALLY_RELATED).get(0).getTarget();\n\t\t\t\tif(tag != null) \n\t\t\t\t\treturn tag;\n\t\t\t}\n\t\t}\n\t\treturn findHighParent_A(bs);\n\t}", "public void setParent(String parent) {\n _parent = parent;\n }", "public Resource getParent() {\n return null;\n }", "public void setParent(String parent) {\n this.parent = parent;\n }", "java.lang.String getParent();", "java.lang.String getParent();", "public static String resolveAgainstParent(String pageUrl, String parentUrl) {\r\n\t\tif (pageUrl == null || !pageUrl.startsWith(\"/\"))\r\n\t\t\t// The URL is null or is not a relative URL. Return it as is.\r\n\t\t\treturn pageUrl;\r\n\t\telse\r\n\t\t\t// The URL is relative. Resolve it against its parent. \r\n\t\t\treturn parentUrl + pageUrl;\r\n\t}", "public T getParent(T anItem) { return null; }", "CoreParentNode coreGetParent();", "protected Directory getParent() {\n return parent;\n }", "IMenuItem getParent();", "@Override\n public Node getParentNode() {\n return null;\n }", "@RequestMapping(method=RequestMethod.GET,value=\"/parent/\")\r\n\t@JsonView(Views.Private.class)\r\n\tpublic ResponseEntity<?> getParentFromToken_parent(){\r\n\t\treturn parentDao.getParentFromToken();\r\n\t}", "public abstract Optional<TypeName> parent();", "public void setORM_Parent(orm.Nomenclature value) {\r\n\t\tthis.parent = value;\r\n\t}", "public void addParentLink(String page_id, Vector<String> child_ids) throws IOException \n\t{\n\t\tVector<String> parents;\n\t\tfor(String oneChild: child_ids) \n\t\t{\t\t\n\t\t\tif(parentLink.getEntry(oneChild)==null) \n\t\t\t{\n\t\t\t\tparents = new Vector<String>();\t\t\t\t\t\t\t// create new Vector if this child doesn't have an entry.\n\t\t\t}else{\n\t\t\t\t//System.out.println(parentLink.getEntry(oneChild));\n\t\t\t\tparents = (Vector<String>) parentLink.getEntry(oneChild);\n\t\t\t\tif(parents.contains(page_id)) continue;\t\t\t\t\t// if it already has this parent, do nothing\n\t\t\t}\n\t\t\tparents.add(page_id);\n\t\t\tparentLink.addEntry(oneChild, parents);\t\t// overwrite the previous entry or add a new one.\n\t\t}\n\t}", "public int getParent();", "public AppFile getParent(AppFile anItem) { return anItem.getParent(); }", "public void registerParent(){\n \t\tparent = manager.getList(parentName);\n \t}", "public abstract T getParent(T anItem);", "public String getParent() {\n return _parent;\n }", "public String getParent() {\r\n return parent;\r\n }", "@Override\r\n\tpublic Object getParent(Object element) {\n\t\treturn null;\r\n\t}", "public String getParent() {\n return _theParent;\n }", "@Override\r\n\t\tpublic Node getParentNode()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\n\tpublic WhereNode getParent() {\n\t\treturn parent;\n\t}", "public String href() {\r\n if (parent == null) {\r\n return name;\r\n //return encodedName();\r\n } else {\r\n //return parent.href() + encodedName();\r\n return parent.href() + name;\r\n }\r\n }", "@Override\r\n\tpublic Tag getParent() {\n\t\treturn null;\r\n\t}", "MenuEntry getParent();", "public boolean isParent(String anItem) { return anItem.equals(\"BrowserView\"); }", "public abstract String getChildTitle();", "Spring getParent() {\n return parent;\n }", "ILitePackItem getParent();", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "protected abstract String childFolderPath();", "@RequestMapping(method=RequestMethod.GET,value=\"/parent/{id}\")\r\n\t@JsonView(Views.Private.class)\r\n\tpublic ResponseEntity<?> getParentById_parent(@PathVariable String id){\r\n\t\treturn parentDao.getParentById(id);\r\n\t}", "Node<T> parent();", "private int parent(int index) {\n return index / 2;\n }", "private int parent(int index) {\n return index / 2;\n }", "public void setParent(String aParent) {\n _theParent = aParent;\n }", "@Override\n\tpublic void onParentSet() {\n\t\t\n\t}", "private void backToParent(){\n\t\tList<Node> tmp = new ArrayList<Node>();\n\t\t\n\t\tfor(int i = 0; i < r.size(); i++){\n\t\t\tif(r.get(i).getNodeType() == Node.ATTRIBUTE_NODE){\n\t\t\t\tNode localNode = ((Attr)r.get(i)).getOwnerElement();\n\t\t\t\tif(localNode != null)\n\t\t\t\t\ttmp.add(localNode);\n\t\t\t} else {\n\t\t\t\tNode localNode = r.get(i).getParentNode();\n\t\t\t\tif(localNode != null && localNode.getNodeType() != Node.DOCUMENT_NODE && !listContainsElement(tmp, localNode)){\n\t\t\t\t\ttmp.add(localNode);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tr = tmp;\n\t}", "private int parentIdx(int idx) {\r\n // TODO\r\n return -1;\r\n }", "public XMLElement getParent()\n/* */ {\n/* 323 */ return this.parent;\n/* */ }", "public String getParentTitle() {\n return getProperty(Property.PARENT_TITLE);\n }", "@Override\r\n\tprotected Object getParentKey(String parentWebSafeKey) {\n\t\treturn null;\r\n\t}", "String getFullParentId();", "@Override\r\n\tpublic void setParent(Tag arg0) {\n\t}", "public void setParent(int id);", "public String getParent() {\n return parent;\n }", "public TreeNode getParent() { return par; }", "public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }", "VersionedDocument getParentDocument();", "public Resource getParent()\n {\n if(parent == null)\n {\n if(parentId != -1)\n {\n try\n {\n parent = new ResourceRef(coral.getStore().getResource(parentId), coral);\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"corrupted data parent resource #\"+parentId+\n \" does not exist\", e);\n }\n }\n else\n {\n parent = new ResourceRef(null, coral);\n }\n }\n try\n {\n return parent.get();\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"in-memory data incosistency\", e);\n }\n }", "public synchronized WebElement div_pdpBreadcrumb_parent() throws Exception {\n\n\t\treturn utils.findElementByLocator(driver, \"PDP_BreadCrumb_Parent\", \"| PDP:Bread Crumb not present\");\n\t}", "public TreeNode getParent ()\r\n {\r\n return parent;\r\n }", "@Override\n\t\tpublic ParentInfo getParentInfo() {\n\t\t\treturn null;\n\t\t}", "public void resolveParent() {\n\t\tif (parentGroup.isEmpty() && parentName.isEmpty()) {\n\t\t\tparentDimensionId = dimensionId;\n\t\t} else {\n\t\t\tfinal CelestialObject celestialObjectParent = CelestialObjectManager.get(parentGroup, parentName);\n\t\t\tif (celestialObjectParent != null) {\n\t\t\t\tparentDimensionId = celestialObjectParent.dimensionId;\n\t\t\t}\n\t\t}\n\t}", "public Category getParent(){\r\n return parent;\r\n }", "public String getParentTitle() {\n return parentTitle;\n }", "public static String suffixSlash(String parentHref) {\r\n\t\tif( parentHref == null ) {\r\n\t\t\treturn null;\r\n\t\t} else if( parentHref.endsWith(\"/\")) {\r\n\t\t\treturn parentHref;\r\n\t\t} else {\r\n\t\t\treturn parentHref + \"/\";\r\n\t\t}\r\n\t}", "public String getParent() {\r\n return this.parent;\r\n }", "public RTWLocation parent();", "private int parent(int child) {\n\t\treturn (child-1)/2;\n\t}", "@Override\r\n public UriBuilder getAbsolutePathBuilder() {\n return null;\r\n }", "@Override\r\n\t\tpublic String getBaseURI()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private void updateParentLabel(){\r\n if(cvHierarchyLinks != null && cvHierarchyLinks.size() >0){\r\n if(!removing){\r\n if(lastSelectedRow != -1 && lastSelectedRow != deletingRow) {\r\n BudgetSubAwardBean prevBudgetSubAwardBean = (BudgetSubAwardBean)data.get(lastSelectedRow);\r\n for(int index =0 ;index <cvHierarchyLinks.size();index++){\r\n ProposalHierarchyLinkBean proposalHierarchyLinkBean = (ProposalHierarchyLinkBean)cvHierarchyLinks.get(index);\r\n if(proposalHierarchyLinkBean.getParentModuleNumber() == prevBudgetSubAwardBean.getSubAwardNumber()){\r\n subAwardBudget.lblParent.setText(\" This attachment was uploaded from proposal number : \"+proposalHierarchyLinkBean.getChildProposalNumber()+\" and cannot be edited in this proposal\");\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }", "private int parent(int index) {\n // Formula to calculate the index of the parent node\n return Math.floorDiv(index - 1, d);\n }", "@Override\n public ConfigurationNode getParentNode()\n {\n return parent;\n }", "public Node getParent(){\n return parent;\n }", "public int getParent_id() {\n return this.parent_id;\n }", "abstract public Container<?> getParent();", "protected void findNewParent() {\n\t\t\tif (parent != null)\n\t\t\t\tparent.children.remove(this);\n\t\t\tNodeLayout[] predecessingNodes = node.getPredecessingNodes();\n\t\t\tparent = null;\n\t\t\tfor (int i = 0; i < predecessingNodes.length; i++) {\n\t\t\t\tTreeNode potentialParent = (TreeNode) owner.layoutToTree\n\t\t\t\t\t\t.get(predecessingNodes[i]);\n\t\t\t\tif (!children.contains(potentialParent)\n\t\t\t\t\t\t&& isBetterParent(potentialParent))\n\t\t\t\t\tparent = potentialParent;\n\t\t\t}\n\t\t\tif (parent == null)\n\t\t\t\tparent = owner.superRoot;\n\n\t\t\tparent.addChild(this);\n\t\t}", "com.google.apps.drive.activity.v2.DriveItem getParent();", "UIComponent getParent();", "private void setParent(Node<T> parent) {\n this.parent = parent;\n }", "protected PortalObject getDefaultChild()\n {\n String portalName = getDeclaredProperty(PORTAL_PROP_DEFAULT_OBJECT_NAME);\n if (portalName == null)\n {\n portalName = DEFAULT_OBJECT_NAME;\n }\n return getChild(portalName);\n }", "@Override\n\tpublic void setParent(HtmlTag parent){\n\t\tif(parent != null)\n\t\t{\n\t\t\tsetParentInternal(TreeNode.create(parent));\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetParentInternal(null);\n\t\t}\n\t\tif(!parent.getChildren().contains(this))\n\t\t{\n\t\t\tparent.addChild(this);\t\n\t\t}\n\t}", "public String getChildScmUrlInheritAppendPath()\n {\n return this.childScmUrlInheritAppendPath;\n }", "ViewActivity getDefaultParentActivity();", "private boolean hasParent(int index) {\n return index > 1;\n }", "public void setParentOne(int parent)\n\t{\n\t\tparentSetOne = parent;\n\t}", "public String getParentMenu();", "public Resource getChild(String relPath) {\n return null;\n }", "@JsProperty\n Node getParentNode();", "public FileIndex getParent()\n {\n return( parent );\n }", "public void setParent(Node parent){\n this.parent = parent;\n }", "public void selectParents1() {\n // Create a new parent list for this reproductive cycle. Let the garbage\n // handler dispose of the old list, if there was one.\n switch (Defines.parentAlgo) {\n case Defines.PA_RANDOM:\n this.parents = this.selectParentsRandom();\n break;\n\n case Defines.PA_ROULETTE:\n this.parents = this.selectParentsRoulette();\n break;\n\n case Defines.PA_TOURNAMENT:\n this.parents = this.selectParentsTournament();\n break;\n }\n// this.howGoodAreParents();\n }" ]
[ "0.58248585", "0.58086294", "0.58086294", "0.57331586", "0.5725167", "0.5718507", "0.5710851", "0.56819874", "0.5633966", "0.56176364", "0.55766684", "0.5538653", "0.55272716", "0.55211693", "0.5520924", "0.5507035", "0.5500808", "0.5500808", "0.549293", "0.5469177", "0.544885", "0.5446599", "0.54451114", "0.54314226", "0.5428807", "0.53871125", "0.53480285", "0.5347905", "0.53455824", "0.5340739", "0.53280956", "0.5318555", "0.53089625", "0.5294461", "0.5293947", "0.52915007", "0.52848816", "0.5273387", "0.5267121", "0.52667403", "0.52541935", "0.52532524", "0.5252469", "0.52410686", "0.52280885", "0.5225905", "0.52247864", "0.52191097", "0.5215419", "0.5198263", "0.5198263", "0.5197805", "0.5195842", "0.5186615", "0.51686597", "0.51639116", "0.516135", "0.5153927", "0.5151411", "0.5147271", "0.51415616", "0.5141206", "0.51298094", "0.5129092", "0.5125074", "0.5120541", "0.51188666", "0.5111524", "0.510192", "0.50986665", "0.50961375", "0.5094616", "0.50894445", "0.5079638", "0.50687486", "0.5068165", "0.50670034", "0.5054486", "0.50538945", "0.50489086", "0.50485134", "0.5045943", "0.5044595", "0.50437874", "0.5043433", "0.50421923", "0.50396055", "0.50389516", "0.50354636", "0.5035017", "0.50276893", "0.50235575", "0.5016569", "0.5009832", "0.50053227", "0.5001194", "0.5000174", "0.49999738", "0.4999881", "0.49983442" ]
0.6283048
0
with pages, we have two types: page and button, real pages are the pages with url;
public List<Page> getRealPages() { List<Page> pages = new ArrayList<>(pageRepository.findByUrlIsNotNull().stream().filter(p -> !p.getUrl().equals("")).collect(Collectors.toList())); Comparator<Page> c = (a, b) -> a.getName().compareToIgnoreCase(b.getName()); pages.sort(c); return pages; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Page getPage();", "public void setPage(Page page) {this.page = page;}", "public abstract void addCustomPages();", "public void addPages() {\t\t\n\t\tpage1 = new Opera2ActionsTransformationWizardPage1(selection, operaModel);\n\t\taddPage(page1);\t\n\t}", "Page createPage();", "PageAgent getPage();", "public void setPage(Page page) {\n this.page=page;\n }", "public void setPage(Page page) {\n this.page=page;\n }", "public interface OnChangePageButtonClick {\n void selectPage(int page);\n}", "public void pageNavigationString(String pagination) {\n\t\t\n\t\ttry {\n\t\t\tTestLog.log.info(\"Check Next Button eneble\");\n\t\t\tif(pagination.equalsIgnoreCase(\"Next\") ){\n\t\t\t\tif (btnNext.isEnabled()) {\n\t\t\t\t\tTestLog.log.info(\"Click on Next Button\");\n\t\t\t\t\tbtnFirst.click();\n\t\t\t\t\tbtnNext.click();\n\t\t\t\t} else {\n\t\t\t\t\tTestLog.log.info(\"Page Navigation button Next Disable\");\n\t\t\t\t}\n\t\t\t\tTestLog.log.info(\"Check Pervios Button eneble\");\n\t\t\t}else if(pagination.equalsIgnoreCase(\"Previous\") ){\n\t\t\t\tif (btnPrevious.isEnabled()) {\n\t\t\t\t\tTestLog.log.info(\"Click on Previous Button\");\n\t\t\t\t\tbtnLast.click();\n\t\t\t\t\tbtnPrevious.click();\n\t\t\t\t} else {\n\t\t\t\t\tTestLog.log.info(\"Page Navigation button Previous Disable\");\n\t\t\t\t}\n\t\t\tTestLog.log.info(\"Check Pervios Button eneble\");\n\t\t}else if(pagination.equalsIgnoreCase(\"First\") ){\n\t\t\tif (btnFirst.isEnabled()) {\n\t\t\t\tTestLog.log.info(\"Click on First Button\");\n\t\t\t\tbtnFirst.click();\n\t\t\t} else {\n\t\t\t\tTestLog.log.info(\"Page Navigation button First Disable\");\n\t\t\t}\n\t\t\tTestLog.log.info(\"Check Pervios Button eneble\");\n\t\t}else if(pagination.equalsIgnoreCase(\"Last\") ){\n\t\t\tif (btnLast.isEnabled()) {\n\t\t\t\tTestLog.log.info(\"Click on Last Button\");\n\t\t\t\tbtnLast.click();\n\t\t\t} else {\n\t\t\t\tTestLog.log.info(\"Page Navigation button Last Disable\");\n\t\t\t}\n\t\t\tTestLog.log.info(\"Check Pervios Button eneble\");\n\t\t}else{\n\t\t\tSystem.out.println(\"Page navigation not success\");\n\t\t}\n\t\t\t\n\t\t} catch (Exception ex) {\n\t\t\tTestLog.log.info(\"Could not find page Navigation button\" + ex);\n\t\t}\n\t}", "public void addPages() {\n\t\tpage = new NewTotoriWizardPage(selection);\n\t\taddPage(page);\n\t}", "public interface PageConnector {\n void onLastPage();\n void onNormalPage();\n}", "lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage();", "@Override\r\n\tpublic void mypage() {\n\t\t\r\n\t}", "public abstract void pageDisplayed();", "Pages getPages();", "@Override\r\n\tpublic URLModule gotoPage(int page) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void process(Page page){\n\n\t CollectTemplate collectTemplate = templateService.getCollectTemplateById(templateId);\n\t String currentUrl=page.getUrl().toString();\n\t String nextUrlXpath=collectTemplate.getNextUrlXpath();\n \tString contentUrlXpath=collectTemplate.getContentUrlXpath();\n \tString listUrlRegex=collectTemplate.getListUrlRegex();\n \tString contentUrlRegex=collectTemplate.getContentUrlRegex();\n \tList<CollectTemplateField> fields=collectTemplate.getFields();\n \ttry {\n\t \t\t\n\t \tHtml currentHtml= page.getHtml();\n\n\t\t\t//判断是否是列表页\n\t if (currentUrl.matches(listUrlRegex)) {\n\n\t\t\t\t//处理列表页\n\t\t\t\tString nextPageUrl=\"\";\n\t\t\t\ttry{\n\t\t\t\t\tnextPageUrl=currentHtml.xpath(nextUrlXpath).toString();\n\t\t\t\t\tif (nextPageUrl==null||StringUtils.isEmpty(nextPageUrl)){\n\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t}\n\t\t\t\t}catch (Exception e){\n\t\t\t\t\tXpath2Selector xpath2Selector = new Xpath2Selector(nextUrlXpath);\n\t\t\t\t\tnextPageUrl = xpath2Selector.select(page.getRawText());\n\n\t\t\t\t\tif (nextPageUrl!=null&&nextPageUrl.startsWith(\"/\")){\n\t\t\t\t\t\tnextPageUrl = \"http://\"+site.getDomain()+nextPageUrl;\n\t\t\t\t\t}\n\n\n\t\t\t\t}\n\n\t \tif (StringUtils.isNotEmpty(nextPageUrl)) {\n\n\t \t\tRequest request=new Request();\n\t \t\trequest.setUrl(nextPageUrl);\n\t \t\trequest.setPriority(-1);\n\t \t\t\n\t \t\tpage.addTargetRequest(request);\n\n\t \t\tlogService.info(projectId,\"get the next page link \"+nextPageUrl+\" and add it to the queue\");\n\n\t\t\t\t}else{\n\t\t\t\t\tlogService.warn(projectId,\"fail to get the next page link\");\n\n\t\t\t\t}\n\t \tList<String> detailPagesUrl;\n\t \ttry{\n\t\t\t\t\tdetailPagesUrl = currentHtml.xpath(contentUrlXpath).all();\n\n\t\t\t\t}catch (Exception e){\n\n\t\t\t\t\tXpath2Selector xpath2Selector2 = new Xpath2Selector(contentUrlXpath);\n\t\t\t\t\tdetailPagesUrl = xpath2Selector2.selectList(currentHtml.getDocument().text());\n\t\t\t\t}\n\n\n\n\t \tif (detailPagesUrl!=null&&detailPagesUrl.size()!=0) {\n\t\t\t\t\t//添加详情页\n\t\t\t\t\tpage.addTargetRequests(detailPagesUrl, 1);\n\n\t\t\t\t\tlogService.info(projectId,\"get \"+detailPagesUrl.size()+\" detail pages\");\n\t\t\t\t}else{\n\t\t\t\t\tlogService.warn(projectId,\"fail to get detail page\");\n\n\t\t\t\t}\n\t\t\t}else if (StringUtils.isEmpty(contentUrlRegex)||currentUrl.matches(contentUrlRegex)) {\n\t \t//处理详情页\n\t\t\t\tcontentPageProcessService.setProjectId(projectId);\n\t\t\t\tcontentPageProcessService.progressContentPage(page,fields);\n\t\t\t}\n\t \t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t \n\t }", "@Override\nprotected void doPage(Frame frame,Circuit circuit, IPlug plug, PageContext ctx) {\n\t\n}", "@Test\r\n public void testConceptsButton() {\r\n WicketTester tester = new WicketTester(new GreenometerApplication());\r\n tester.startPage(StopLightPage.class);\r\n tester.assertRenderedPage(StopLightPage.class);\r\n\r\n tester.clickLink(\"ConceptsPageButton\", false);\r\n tester.assertRenderedPage(ConceptsPage.class);\r\n }", "@Override\n public void addPages() {\n super.addPages();\n page1 = new NewReviewWizardPage();\n addPage(page1);\n }", "public abstract Page value();", "List<? extends Page> getPages();", "@Override\r\n\tpublic Type getRequestType() {\n\t\treturn Type.PAGE;\r\n\t}", "public Page getPage() {return page;}", "public void addPages() {\n //super.addPages(); //<--- notice we're overriding here\n mainPage = new NewTargetWizardPage(\"newFilePage1\", getSelection());//$NON-NLS-1$\n mainPage.setTitle(TITLE);\n mainPage.setDescription(DESCRIPTION); \n addPage(mainPage);\n }", "public interface Page {\n\n public int getSize();\n public Container getContainer();\n public void setContainer(Container containerss);\n\n public String getName();\n public String getDisplayName();\n public PageComponent[] getPageComponents();\n\n public void putPageComponentsPlayerHotbar(Player player);\n\n public void showGui(Player player);\n public void addComponent(PageComponent pageComponent);\n public void addComponent(PageComponent pageComponent, int index);\n\n public Inventory getInventory();\n\n public boolean hasFreeSlot();\n public void clearComponents();\n public void removeComponent(String name);\n\n public void updateComponents();\n\n}", "public Page addUiAction(RetailscmUserContext userContext, String pageId, String code, String icon, String title, int displayOrder, String brief, String imageUrl, String linkToUrl, String extraData , String [] tokensExpr) throws Exception;", "Builder addMainEntityOfPage(URL value);", "String urlFor(Class<? extends Page> pageClazz, PageParameters params);", "@Override\n public void onPageSelected(int page) {\n \n Multimedia m = multimediaList.get(page);\n \n if(m.getMas_info() == null || m.getMas_info().trim().equals(\"\"))\n {\n moreInfoButton.setVisibility(View.GONE);\n }\n else\n {\n moreInfoButton.setVisibility(View.VISIBLE);\n }\n \n\n if(m.getTipo() != MMType.Video){\n continuarButton.setVisibility(View.GONE);\n }\n else\n {\n continuarButton.setVisibility(View.VISIBLE);\n }\n }", "public HtmlPage clickContentPath();", "@Test\r\n public void testHomePageButton() {\r\n WicketTester tester = new WicketTester(new GreenometerApplication());\r\n tester.startPage(StopLightPage.class);\r\n tester.assertRenderedPage(StopLightPage.class);\r\n\r\n tester.clickLink(\"HomePageButton\", false);\r\n tester.assertRenderedPage(GreenOMeterPage.class);\r\n }", "public static boolean isAddPagesAction(Context context, String info) {\n/* 986 */ if (context != null && !Utils.isNullOrEmpty(info)) {\n/* */ try {\n/* 988 */ JSONObject jsonObj = new JSONObject(info);\n/* 989 */ if (jsonObj.has(\"Action event\")) {\n/* 990 */ String action = jsonObj.getString(\"Action event\");\n/* 991 */ if (\"add_pages\".equals(action)) {\n/* 992 */ return true;\n/* */ }\n/* */ } \n/* 995 */ } catch (Exception e) {\n/* 996 */ if (!info.equals(\"state not found\")) {\n/* 997 */ AnalyticsHandlerAdapter.getInstance().sendException(e, \"info: \" + info);\n/* */ }\n/* */ } \n/* */ }\n/* */ \n/* 1002 */ return false;\n/* */ }", "public void setPage(Page page) {\n\t\tthis.page = page;\n\t}", "@Override\n\tpublic void addPages() {\n\t\t_fileWizard = new NewPlotFilenameWizardPage(selection);\n\t\t_scaleWizard = new ScaleWizardPage(selection);\n\t\t_coastWizard = new CoastWizardPage(selection);\n\t\t_gridWizard = new GridWizardPage(selection);\n\n\t\t// check there's ETOPO data before we add the page\n\t\t_etopoWizard = new ETOPOWizardPage(selection);\n\n\t\taddPage(_fileWizard);\n\t\taddPage(_scaleWizard);\n\t\taddPage(_coastWizard);\n\t\taddPage(_gridWizard);\n\t\tif (_etopoWizard.isAvailable())\n\t\t\taddPage(_etopoWizard);\n\t}", "void setUsePage(boolean page);", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(NDS_main.this, Urubuga_Services.class);\n intent.putExtra(\"pageId\", \"2\");\n startActivity(intent);\n }", "@Override\n protected void onNextPageRequested(int page) {\n\n }", "Point onPage();", "public void setPage(int page) {\n this.page = page;\n }", "lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPageHelper();", "lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPageHelper();", "lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPageHelper();", "public List<GenericTextModel> selector(PageEnum page) {\n\t\tString value = \"Metacube is a Software Engineering Services company with experience in\"\n\t\t\t\t+ \" developing enterprise applications for a wide spectrum of domains including\"\n\t\t\t\t+ \" global trade management, supply chain analytics, manufacturing analytics, business\"\n\t\t\t\t+ \" continuity planning, CRM, content management and eCommerce. These applications have\"\n\t\t\t\t+ \" been developed on a variety of technology platforms.\";\n\t\tGenericTextModel model;\n\t\t\n\t\t\n\t\tif (page.equals(PageEnum.LandingPage)) {//if Landing Page\n\t\t\tmodel = new GenericTextModel(value);\n\t\t\tcontentList.add(model);\n\t\t} else if (page.equals(PageEnum.EmployeeListPage)) { //if employee List page\n\t\t\tmodel = new GenericTextModel(\"Employee List Page\");\n\t\t\tcontentList.add(model);\n\t\t} else if (page.equals(PageEnum.EmployeeDetailsPage)) { //if employee Detail page\n\t\t\tmodel = new GenericTextModel(\"Employee Detail Page\");\n\t\t\tcontentList.add(model);\n\t\t} else if (page.equals(PageEnum.EmployeeRegistrationPage)) {//if employee Registeration page\n\t\t\tmodel = new GenericTextModel(\"Employee Registration/Edit Page\");\n\t\t\tcontentList.add(model);\n\t\t} else {//if other then all pages\n\t\t\tmodel = new GenericTextModel(\"Someting Wrong happen\");\n\t\t\tcontentList.add(model);\n\t\t}\n\n\t\treturn contentList;\n\t}", "private void initPages() {\n\t\tloginPage = new LoginPage(driver);\n\t\tflipkart = new FlipkartPage(driver);\n\t\t\n\t}", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(NDS_main.this, Urubuga_Services.class);\n intent.putExtra(\"pageId\", \"1\");\n startActivity(intent);\n }", "public Set getPages () {\n return pages;\n }", "@Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment\n public PageInfoType[] getPageContent() {\n return new PageInfoType[]{new PageInfoType(ContentType.EnumC30787c.Topic, this.f90217G.mo110111g())};\n }", "private void pageContent( String url) {\n\t\t\n\t\tif ( !url.matches(URL)) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tList<String> outlinks = null; // out link urls\n\t\tUrlBean bean = null; // basic info of the url\n\t\t\n\t\tbean = new UrlBean();\n\t\ttry {\n\t\t\t\n\t\t\tconn = Jsoup.connect(url).timeout(5000);\n\t\t\tif ( conn == null) {\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\t\n\t\t\tdocument = conn.get(); // 得到网页源代码,超时时间是5秒\n\t\t\t\n\t\t\t/*\n\t\t\t * 文章基本信息\n\t\t\t */\n\t\t\telements = document.getElementsByTag(\"title\");\n\t\t\tif ( elements!= null && elements.size() != 0) {\n\t\t\t\telement = elements.get(0);\n\t\t\t}\n\t\t\tString title = element.text();\n\t\t\tbean.setTitle(title);\n\t\t\tbean.setKeywords(title);\n\t\t\t\n\t\t\telements = document.getElementsByTag(\"a\");\n\t\t\tif ( elements != null) {\n\t\t\t\tString linkUrl = null;\n\t\t\t\toutlinks = new ArrayList<String>();\n\t\t\t\tfor ( int i = 0; i < elements.size(); i++) {\n\t\t\t\t\tlinkUrl = elements.get(i).attr(\"href\");\n\t\t\t\t\tif ( linkUrl.matches(URL)) {\n\t\t\t\t\t\toutlinks.add(linkUrl);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t} \n\t\t\n\t\tbean.setUrl(url);\n\t\tbean.setId(urlId++);\n\t\tbean.setRank(1);\n\t\tif ( outlinks != null) {\n\t\t\tint count = outlinks.size();\n\t\t\tbean.setOutlinks(count);\n\t\t\tfor ( int i = 0; i < count; i++) {\n\t\t\t\turlsSet.add(outlinks.get(i));\n\t\t\t}\n\t\t\tif ( new AllInterface().addOneUrlInfo(bean, outlinks)) {\n\t\t\t\tSystem.out.println(\"Add to database successfully, url is '\" + url + \"'.\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Fail to add to database, maybe url exists. Url is '\" + url + \"'.\");\n\t\t\t}\n\t\t\tSystem.out.println(\"[\" + count + \" urls remain...]\");\n\t\t\tSystem.out.println();\n\t\t} else {\n\t\t\tSystem.out.println(\"Error occurs in crawl, url is '\" + url + \"'.\");\n\t\t\tSystem.out.println(\"[[FINISHED]]\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "HtmlPage clickLink();", "public HomePageActions() {\n\t\tPageFactory.initElements(driver,HomePageObjects.class);\n\t}", "@Override\r\n public String toString()\r\n {\r\n return \"Page \"+name;\r\n }", "@Override\n public void visit(Page page) {\n\t visitObject.visitUrls(page);\n\t String url = page.getWebURL().getURL();\n\t System.out.println(\"URL: \" + url);\n\t if (page.getParseData() instanceof HtmlParseData) {\n\t\t HtmlParseData htmlParseData = (HtmlParseData) page.getParseData();\n\t\t String text = htmlParseData.getText();\n\t\t String html = htmlParseData.getHtml();\n\t\t Set<WebURL> links = htmlParseData.getOutgoingUrls();\n\t\t System.out.println(\"Text length: \" + text.length());\n\t\t System.out.println(\"Html length: \" + html.length());\n\t\t System.out.println(\"Number of outgoing links: \" + links.size());\n\t\t }\n }", "@UML(identifier=\"page\", obligation=OPTIONAL, specification=ISO_19115)\n String getPage();", "public void getNextPage(String url) {\n String kw = \"flag\";\n client = new OkHttpClient();\n final Request request = new Request.Builder()\n .url(url)\n .build();\n Call call = client.newCall(request);\n call.enqueue(new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n System.out.println(e);\n }\n\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n String htmlStr = response.body().string();\n //Type listTpye = new TypeToken<LinkedList<QueryRes>>(){}.getType();\n //System.out.println(htmlStr.toString());\n\n try {\n json = new JSONObject(htmlStr);\n //parsePageJson(json);\n System.out.println(json);\n } catch (Exception e) {\n System.out.println(\"error again\");\n }\n //parseJson(json);\n Message msg = handler.obtainMessage();\n msg.what = 1;\n handler.sendMessage(msg);\n //parsePageJson(page_json);\n }\n });\n }", "@Override\r\n\tpublic void addPages() {\n\t\tprojectPage = new NewProjectWizardPage();\r\n\t\taddPage(projectPage);\r\n\t}", "private void backPage()\n {\n page--;\n open();\n }", "boolean hasPage();", "boolean hasPage();", "public void goToNextPage() {\n nextPageButton.click();\n }", "public void setPages(int pages) {\n this.pages = pages;\n }", "private void viewPageClicked(ActionEvent event) {\n\n Item tempItem = new Item();\n String itemURL = tempItem.itemURL;\n Desktop dk = Desktop.getDesktop();\n try{\n dk.browse(new java.net.URI(itemURL));\n }catch(IOException | URISyntaxException e){\n System.out.println(\"The URL on file is invalid.\");\n }\n\n showMessage(\"Visiting Item Web Page\");\n\n }", "public void setPages(int pages) {\n this.pages = pages;\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIntent i1= new Intent(MainActivity.this,page1.class);\n\t\t\tstartActivity(i1);\n\t\t\t\n\t\t}", "boolean hasPage(String page);", "public void setPage(String page) {\r\n pageEL = page;\r\n }", "@Test\n\tpublic void test02_PreviewAPage() {\n\t\tinfo(\"Test 2: Preview a page\");\n\t\t/*Step Number: 1\n\t\t*Step Name: Step 1: Open form to create new page\n\t\t*Step Description: \n\t\t\t- Choose path to add new page\n\t\t\t- Click [Add Page] --> [Blank Page]/[From Template...]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tForm to create new page is shown and in the [Rich Text] editor*/\n\t\tinfo(\"Go to Add a Wiki page\");\n\t\tString title = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tString content = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\thp.goToWiki();\n\t\twHome.goToAddBlankPage();\n\t\t\n\t\t/*Step Number: 2\n\t\t*Step Name: Step 2: Create new page\n\t\t*Step Description: \n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tAll fields are inputed with values*/\n\t\trichEditor.addSimplePage(title, content);\n\t\t\n\t\t/*Step Number: 3\n\t\t*Step Name: Step 3: Preview a page\n\t\t*Step Description: \n\t\t\t- Click on Preview \n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tContent of page is shown*/\n\t\t\n\t\twikiMg.PreviewASimplePage(title, content);\n \t}", "protected PageRec createPage(IWorkbenchPart part, IPageBookViewPage page) {\n\t\tinitPage(page);\n\t\tpage.createControl(getPageBook());\n\t\tgetPages().add(page);\n\t\treturn new PageRec(part, page);\n\t}", "public interface Page {\n\n public abstract String createTitle();\n public abstract Markup createMarkup();\n}", "public static void handleList(Page page){\n\n logger.info(\"handle:\" + page.getUrl());\n Document document = page.getHtml().getDocument();\n String currentUrl = document.location();\n String date =currentUrl.substring(currentUrl.lastIndexOf(\"/\")+1);\n\n Elements competitions = document.select(\"div.competition-matches\");\n for (Element competition : competitions) {\n String competitionName = competition.select(\"div.competition-name\").text();\n logger.debug(competition.html());\n Elements matches = competition.select(\"div.match-row\");\n\n if(matches.isEmpty()){\n continue;//没有比赛\n }\n for (Element match : matches) {\n Elements mainData = match.select(\"a.match-main-data-link\");\n String href = mainData.attr(\"abs:href\");\n String[] split = href.split(\"/\");\n int lastIndex = href.lastIndexOf(\"/\");\n String newUrl = href.substring(0,lastIndex)+\"/commentary-result\"+href.substring(lastIndex);\n Request request = new Request(newUrl);\n request.putExtra(Const.COMPETITION,competitionName);\n request.putExtra(Const.DATE,date);\n request.putExtra(Const.PAGE_TYPE,Const.DETAIL);\n request.putExtra(Const.MATCH,split[split.length-2]);\n page.addTargetRequest(request);\n }\n\n }\n }", "public void clickDynamicPage() {\n driver.get(\"https://\"+B1MainClass.site);\n driver.findElement(dynamicPage).click();\n }", "protected void createPages() {\n\t\tcreateIntroEditor();\n\t\tcreatePageMainEditor();\n\t\tcreatePageController();\n\t\tcreateCssEditor();\n\t\tcreatePageTextEditor();\n\t\trefreshPageMainEditor();\n\t\trefreshPageControllerEditor();\n\t\trefreshCssEditor();\n\t\tsetDirty(false);\n\t}", "public void setPage(Integer page) {\n this.page = page;\n }", "@Test\r\n public void testGridInfoButton() {\r\n WicketTester tester = new WicketTester(new GreenometerApplication());\r\n tester.startPage(StopLightPage.class);\r\n tester.assertRenderedPage(StopLightPage.class);\r\n\r\n tester.clickLink(\"GridInfoPageButton\", false);\r\n tester.assertRenderedPage(GridInfoPage.class);\r\n }", "public void addPages() {\n\t\t\n\t\tProjectUtils projectUtils = new ProjectUtils();\n\t\tIProject proj = projectUtils.getProject(selection);\n\t\t\n\t\t\n\t\t\n\t\tDb db = loadDBParams();\n\t\tDBConnection dbConn = new DBConnection();\n\t\tConnection connection = null;\n\t\t\n\t\t\n\t\ttry {\n\t\t\tconnection = dbConn.loadDriver(proj.getLocation()+\"/\"+db.getDriverClassPath(), db.getDriverClass(), db.getDatabaseURL(), db.getUserName(), db.getPassWord());\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\tpage = new SmartNewWizardPage(selection, connection, proj.getLocation().toString());\n\t\taddPage(page);\n\n\t}", "public interface TestPage<D> {\r\n\tpublic TestPage<D> getParent();\r\n\r\n\tpublic PageLocator getPageLocator();\r\n\r\n\t/***\r\n\t * This method check for existence of page in browser so we can proceed\r\n\t * further with page functionality.\r\n\t * \r\n\t * @param args\r\n\t * optional arguments required to identify page.\r\n\t * @return\r\n\t */\r\n\tpublic boolean isPageActive(PageLocator loc, Object... args);\r\n\r\n\t/**\r\n\t * selenium base instance to provide selenium\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic UiTestBase<D> getTestBase();\r\n\r\n\t/**\r\n\t * Returns the body text of the current page\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String getText();\r\n\r\n\t/**\r\n\t * Use only launchPage method to load a page. For more usability you can\r\n\t * overload this method in your page class but make sure to call this method\r\n\t * within it to load page. eg:\r\n\t * \r\n\t * <pre>\r\n\t * <code>\r\n\t * void launchPage(){\r\n\t * \t\tlaunchPage(null)\r\n\t * }\r\n\t * OR\r\n\t * void launchPage(String locator){\r\n\t * \t\tlaunchPage(new DefaultPageLocator(locator));\r\n\t * }\r\n\t * </code>\r\n\t * </pre>\r\n\t * \r\n\t * @param locator\r\n\t * to locate page on parent page.\r\n\t * <p>\r\n\t * This locator will be passed to other fw methods for example\r\n\t * {@link #isPageActive(PageLocator, Object...)}\r\n\t * @param args\r\n\t * optional page identifiers to verify is this page for what we\r\n\t * aspect? for example: view details page for specific user or\r\n\t * item, you can identify page by user or item id/name\r\n\t * <p>\r\n\t * This args will be passed to other fw methods for example\r\n\t * {@link #isPageActive(PageLocator, Object...)}\r\n\t */\r\n\tpublic void launchPage(PageLocator locator, Object... args);\r\n\r\n\t/**\r\n\t * You can specify launch behavior before launching the page by calling this\r\n\t * method.\r\n\t * \r\n\t * @param strategy\r\n\t * launch strategy.\r\n\t */\r\n\tpublic void setLaunchStrategy(LaunchStrategy strategy);\r\n\r\n\tpublic enum LaunchStrategy {\r\n\t\t/**\r\n\t\t * To specify that even if the page is active, launch page form the\r\n\t\t * parent page.\r\n\t\t */\r\n\t\talwaysRelaunchFromParent,\r\n\t\t/**\r\n\t\t * To specify that even if the page or its parent page is active, launch\r\n\t\t * form the root by navigating entire hierarchy.\r\n\t\t */\r\n\t\talwaysRelaunchFromRoot,\r\n\t\t/**\r\n\t\t * To specify that launch the page if it is not active.\r\n\t\t */\r\n\t\tonlyIfRequired;\r\n\t}\r\n\r\n}", "@Override\n\tprotected void openPage(PageLocator arg0, Object... arg1) {\n\t\t\n\t}", "public IWizardPage getNextPage();", "boolean getUsePage();", "public lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage() {\n return page_;\n }", "@Override\r\n\tprotected void openPage(PageLocator locator, Object... args) \r\n\t{\n\t\t\r\n\t}", "@Override\n public LiveWebModel[] getChildren() {\n return pages;\n }", "private void forwardPage()\n {\n page++;\n open();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i= new Intent(MainActivity.this,page8.class);\n\t\t\t\tstartActivity(i);\n\t\t\t\t\n\t\t\t}", "boolean canHandlePageClass(Class<? extends Page> pageClazz, PageParameters pageParameters);", "public void showPage_MainContainer(String page){\n if(!(this.currentPage_ActionPanel.equals(page))){\n cardLayout_Action.show(mainActionPanel,page);\n currentPage_ActionPanel = page;\n }\n }", "public void pageListAtmosphere(View view) {\n start_button.setEnabled(false);\n Intent intent = new Intent(getApplicationContext(), PageVersion2.class);\n startActivity(intent);\n\n }", "@Override\n public void changePage(int newPage) {\n\n if ( (newPage >= 0) && (newPage< bookInitial.getListAllTextToDisplay().size()))\n {\n\n if (isManual)\n {\n bookInitial.setCurrentPage(newPage);\n updateCurrentPage();\n displayPage();\n }else\n {\n int a = bookInitial.getCurrentPage();\n bookInitial.setCurrentPage(newPage);\n updateCurrentPage();\n displayPage();\n updateAutoWPop(a);\n }\n\n\n }\n\n\n }", "public void searchForPageToChange(String searchPage)\n\t{\n\t\twait.waitElementToBeDisplayed(By.xpath(\"//td/input[@class='z-textbox' and @z.type='zul.vd.Txbox']\"));\n\t\tdriver.findElement(By.xpath(\"//td/input[@class='z-textbox' and @z.type='zul.vd.Txbox']\")).sendKeys(searchPage);\n\t\tList<WebElement> searchBtn=driver.findElements(By.xpath(\"//img[@src='/cmscockpit/cockpit/images/BUTTON_search.png']\"));\n\t\tif(searchBtn!=null&&searchBtn.size()>0)\n\t\t{\n\t\t\tsearchBtn.get(0).click();\n\t\t}\n\t}", "public void changePage(Page page) {\n currentClient.changePage(page);\n this.page = currentClient.getCurrentPage();\n this.refresh();\n }", "public void setPage(Page page)\r\n {\r\n this.pageId = page.getId();\r\n }", "public Button(String name, Page page) {\r\n super(name);\r\n this.page = page;\r\n //assignedParameters = new HashMap();\r\n //assignedParameters.put(this.name, Button.EMPTY);\r\n //assignedParameters.put(this.name+\".x\", Button.EMPTY);\r\n addExcludeParam(this.name);\r\n addExcludeParam(this.name+\".x\");\r\n addExcludeParam(this.name+\".y\");\r\n }", "public PageLink(int page, String label, String url) {\r\n this.page = page;\r\n if (url != null) {\r\n StringBuilder sb = new StringBuilder(\"<a \").append(\"id='page_\");\r\n\r\n if (\"<\".equals(label)) {\r\n sb.append(\"prev\");\r\n } else if (\">\".equals(label)) {\r\n sb.append(\"next\");\r\n } else {\r\n sb.append(label);\r\n }\r\n sb.append(\"'\").append(\" href='\").append(url).append(\"'>\").append(label).append(\"</a>\").toString();\r\n\r\n this.link = sb.toString();\r\n } else {\r\n this.label = label;\r\n }\r\n }", "public void setPage(int value) {\n this.page = value;\n }", "private final void createAppPages() {\r\n\t\t//Instantiate Page objects that have no associated test properties\r\n\t\t//Note that if a test DOES need to specify test properties for one of these pages\r\n\t\t// (e.g., search terms), it can create its own local version of the page, and pass\r\n\t\t// the pagePropertiesFilenameKey argument, OR create it here, by calling createPage\r\n\t\t// instead of createStaticPage\r\n\r\n\t\t//Can also instantiate regular (i.e., with associated test properties) DD-specific\r\n\t\t// Page objects here, but typically it is best for the test or utility methods to do that;\r\n\t\t// if we do it here we may end up creating Page objects that never get used.\r\n }", "@Override\n\tpublic void checkPage() {\n\t}", "@Override\n\tpublic void process(Page page) {\n\t\t\n\t}", "public void setPage(View view){\n //page is always the great grand parent\n linearLayoutBody = (LinearLayout) view.getParent().getParent().getParent();\n currentPage = (TemplatePage) linearLayoutBody.getTag();\n }", "public static final <E extends Page> E open(String url, final Class<E> page) {\n\t\tlog.info(\"Open page: \" + url);\n\t\tWebDriver wd = WebDriverStorage.getDriver();\n\t\twd.get(url);\n\t\tfinal E result = PageFactory.initElements(wd, page);\n\t\tif (!wd.getCurrentUrl().contains(url)) {\n\t\t\tthrow new RuntimeException(\"Expected url: \" + url + \"\\nBut opened: \" + wd.getCurrentUrl());\n\t\t}\n\t\treturn result;\n\t}" ]
[ "0.65260774", "0.6433991", "0.64069325", "0.63193506", "0.62974274", "0.6125543", "0.6049352", "0.6049352", "0.60194266", "0.6014929", "0.599615", "0.5985092", "0.59816635", "0.59632957", "0.59619665", "0.59599406", "0.5924527", "0.591072", "0.5892174", "0.58795816", "0.5846887", "0.583723", "0.5788515", "0.5776455", "0.5737697", "0.5711949", "0.57072586", "0.5700491", "0.5669452", "0.5635656", "0.56269646", "0.5626388", "0.5625594", "0.56084424", "0.55991817", "0.559683", "0.5591802", "0.5579121", "0.5576735", "0.557501", "0.5552788", "0.5542141", "0.5542141", "0.5542141", "0.55292183", "0.5518882", "0.5508136", "0.5495833", "0.54953057", "0.54854554", "0.54758245", "0.5457698", "0.5447636", "0.5444144", "0.5443919", "0.54405814", "0.54390407", "0.54365605", "0.54265624", "0.54265624", "0.5423774", "0.5415877", "0.5414473", "0.54036725", "0.5397572", "0.5394851", "0.5388811", "0.5382169", "0.5380691", "0.53763014", "0.5375785", "0.5365269", "0.5363528", "0.5357055", "0.5356192", "0.5355867", "0.5347563", "0.53461444", "0.53458697", "0.5345266", "0.53447807", "0.5336795", "0.532778", "0.5326089", "0.532368", "0.5320869", "0.53141516", "0.5312898", "0.53041613", "0.5304003", "0.5302894", "0.529734", "0.52940494", "0.5290685", "0.52877426", "0.528579", "0.52847654", "0.527804", "0.52732587", "0.5272648" ]
0.5286883
95
array of Runnable tasks Create a new DoubleEnded Queue (DEQ)
public DEQueue(int size) { tasks = new Runnable[size]; top = new AtomicStampedReference<Integer>(0, 0); bottom = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void runQueue();", "public TaskQueue(){\n this(\n new PrintWriter(System.out, true),\n new PrintWriter(System.err, true),\n DEFAULT_CONCURRENT_ACTIONS\n );\n }", "public static <T> UnboundedDEQueue<T> createUnboundedDoubleEndedQueue() {\n \t\treturn new UnboundedDEQueue<T>(LOG_CAPACITY);\n \t}", "@Override\n\tpublic Object[] splitTasks() {\n\t\tif (tasks == null) {\n\t\t\tSystem.out.println(\"There are \"+taskNum +\" tasks, and handled by \"+clientsNum+\" clients\");\n\t\t}\t\t\n\t\ttasks = new SimpleTask[clientsNum];\n\t\ttq = taskNum / clientsNum;\n//\t\tbatchSize = tq;\n\t\tint left = taskNum - tq * clientsNum;\n\t\t\n\t\tfor (int i = 0; i < tasks.length; i++) {\n\t\t\tint l = 0;\n\t\t\tif (left >= i+1) {\n\t\t\t\tl = 1;\n\t\t\t}\n\t\t\tif (i == 0) {\n\t\t\t\ttasks[i] = new SimpleTask(1, tq + l, batchSize);\n\t\t\t} else {\n\t\t\t\ttasks[i] = new SimpleTask(\n\t\t\t\t\t\ttasks[i - 1].getEnd()+ 1, tasks[i - 1].getEnd() + tq + l, batchSize);\n\t\t\t}\t\t\t\n\t\t}\n//\t\tSystem.out.println(\"done .\"+clientsNum);\n\t\tthis.srvQ2QLSTM.getCfg().getQlSTMConfigurator().setMBSize(batchSize);\n\t\tthis.srvQ2QLSTM.getCfg().getAlSTMConfigurator().setMBSize(batchSize);\t\t\n\t\treturn tasks;\n\t}", "final Runnable deqTask() {\n Runnable t;\n Runnable[] q;\n int i;\n int b;\n if (sp != (b = base) &&\n (q = queue) != null && // must read q after b\n (t = q[i = (q.length - 1) & b]) != null &&\n casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n return null;\n }", "final void pushTask(Runnable t) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int s = sp;\n setSlot(q, s & mask, t);\n storeSp(++s);\n if ((s -= base) == 1)\n pool.signalWork();\n else if (s >= mask)\n growQueue();\n }", "private void runScheduleTasks() {\r\n // To minimize the time the lock is held, make a copy of the array\r\n // with the tasks while holding the lock then release the lock and\r\n // execute the tasks\r\n List<Runnable> tasksCopy;\r\n synchronized (taskLock) {\r\n if (tasks.isEmpty()) { return; } \r\n tasksCopy = tasks;\r\n tasks = new ArrayList<Runnable>(4);\r\n }\r\n for (Runnable task : tasksCopy) {\r\n task.run();\r\n } \r\n }", "public SynchronousTimeLimitedTask(Queue<BooleanSupplier> steps) {\n _steps = steps;\n }", "void deleteQueue();", "public void queueUsage() {\n\t\t//use LinkedList as a queue\n\t\tQueue<String> q = new LinkedList<String>();\n\t\tq.add(\"1\");\n\t\tq.add(\"2\");\n\t\tq.add(\"3\");\n\t\tq.add(\"10\");\n\t\tq.add(\"11\");\n\t\tint[] a;\n\n\t\tLinkedBlockingQueue<String> bq = new LinkedBlockingQueue<String>();\n\t\t\n\t\t//ArrayBlockingQueue needs to set the size when created.\n\t\tArrayBlockingQueue<String> aq = new ArrayBlockingQueue<String>(100);\n\t\t\n\t\tPriorityBlockingQueue<String> pq = new PriorityBlockingQueue<String>();\n\t\t\n//\t\tDelayQueue<String> dq = new DelayQueue<String>(); \n\t\t\n\t}", "public SynchronousTimeLimitedTask() {\n _steps = new ArrayDeque<BooleanSupplier>();\n }", "public Deque() {}", "public TaskQueue(PrintWriter stdout, PrintWriter stderr){\n this(stdout, stderr, DEFAULT_CONCURRENT_ACTIONS);\n }", "private void workOnQueue() {\n }", "final Runnable locallyDeqTask() {\n Runnable work = dispatchQueue.poll();\n if( work!=null ) {\n return work;\n }\n int b;\n while (sp != (b = base)) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int i = (q.length - 1) & b;\n Runnable t = q[i];\n if (t != null && casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n }\n }\n return dispatchQueue.getSourceQueue().poll();\n }", "private static Task[] createTaskList() {\n\t\t\n\t Task evalTask = new EvaluationTask();\n\t Task tamperTask = new TamperTask();\n\t Task newDocTask = new NewDocumentTask();\n\t Task reportTask = new AssignmentReportTask();\n\n\t Task[] taskList = {evalTask, tamperTask, newDocTask, reportTask};\n\n\t return taskList;\n\t}", "public BoundedQueue(int size){\n queueArray = (T[]) new Object[size];\n tail = 0;\n }", "myQueue(){\n }", "public void onQueue();", "public static void main(String[] args) {\n CircleArrayQueue circleArrayQueue = new CircleArrayQueue(4);\n circleArrayQueue.addQueue(1);\n circleArrayQueue.addQueue(2);\n circleArrayQueue.addQueue(3);\n System.out.println(circleArrayQueue.getQueue());\n circleArrayQueue.showQueue();\n// System.out.println(circleArrayQueue.getQueue());\n// System.out.println(circleArrayQueue.getQueue());\n circleArrayQueue.addQueue(4);\n circleArrayQueue.showQueue();\n\n System.out.println(circleArrayQueue.getQueue());\n circleArrayQueue.showQueue();\n\n circleArrayQueue.addQueue(5);\n circleArrayQueue.showQueue();\n System.out.println(circleArrayQueue.getQueue());\n circleArrayQueue.showQueue();\n\n circleArrayQueue.addQueue(5);\n circleArrayQueue.showQueue();\n// System.out.println(circleArrayQueue.getQueue());\n }", "public Deque() {\n first = null;\n last = null;\n N = 0;\n }", "void processQueue();", "private Queue(){\r\n\t\tgenerateQueue();\r\n\t}", "private synchronized void addTask(Runnable runnable) {\r\n mTaskQueue.add(runnable);\r\n try {\r\n if (mPoolThreadHandler==null){\r\n mSemaphorePoolThreadHandler.acquire();\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n mPoolThreadHandler.sendEmptyMessage(0x110);\r\n }", "public static void main(String[] args) {\n ArrayQueue<String> qu = new ArrayQueue<>();\n\n qu.enqueue(\"this\");\n System.out.println(qu);\n\n qu.enqueue(\"is\");\n System.out.println(qu);\n\n qu.enqueue(\"a\");\n System.out.println(qu);\n\n System.out.println(qu.dequeue());\n System.out.println(qu);\n\n qu.enqueue(\"queue\");\n System.out.println(qu);\n\n qu.enqueue(\"of\");\n System.out.println(qu);\n\n // qu.enqueue(\"strings\");\n // System.out.println(qu);\n\n\n while (!qu.isEmpty()) {\n System.out.println(qu.dequeue());\n System.out.println(qu);\n }\n\n }", "public interface DoubleQueue {\n\n public void accoda(Object elemento);\n public Object leggicoda();\n public void fuoricoda();\n public void inpila(Object elemento);\n public Object leggitesta();\n public void fuoritesta();\n public boolean codavuota();\n\n}", "@Override\r\n\tpublic void run() {\n\t\twhile(true) {\r\n\t\t\tfor(String data:queueData) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected abstract void createTasks();", "private Runnable getTask() {\r\n if (mType== Type.FIFO){\r\n return mTaskQueue.removeFirst();\r\n }else if (mType== Type.LIFO){\r\n return mTaskQueue.removeLast();\r\n }\r\n return null;\r\n }", "public void newQueue(){\r\n\t\tgenerateQueue();\r\n\t\trefreshLeft = true;\r\n\t}", "private void tryDoingTasksInQueue() {\n var list = queue.exceptionsList;\n var t2 = new Thread(() -> {\n Retry.Operation op = (list1) -> {\n if (!list1.isEmpty()) {\n LOG.warn(\"Error in accessing queue db to do tasks, trying again..\");\n throw list1.remove(0);\n }\n doTasksInQueue();\n };\n Retry.HandleErrorIssue<QueueTask> handleError = (o, err) -> {\n };\n var r = new Retry<>(op, handleError, numOfRetries, retryDuration,\n e -> DatabaseUnavailableException.class.isAssignableFrom(e.getClass()));\n try {\n r.perform(list, null);\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n });\n t2.start();\n }", "public static void main(String[] args) {\n\t\tCreate_queue new_queue= new Create_queue();\n\t\tnew_queue.enqueu(12);\n\t\tnew_queue.enqueu(5);\n\t\tnew_queue.enqueu(36);\n\t\tnew_queue.enqueu(5);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.dequeu();\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.enqueu(10);\n\t\tnew_queue.enqueu(8);\n\t\tnew_queue.enqueu(2);\n\t\tnew_queue.enqueu(14);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.dequeu();\n\t\tnew_queue.dequeu();\n\t\tSystem.out.println(new_queue);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.enqueu(32);\n\t\tnew_queue.enqueu(11);\n\t\tnew_queue.enqueu(21);\n\t\tnew_queue.enqueu(44);\n\t\tnew_queue.enqueu(46);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.enqueu(50);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.dequeu();\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.enqueu(100);\n\t\tSystem.out.println(new_queue);\n\t\tSystem.out.println(new_queue.peek());\n\t\tnew_queue.dequeu();\n\t\tSystem.out.println(new_queue.peek());\n\t\t\n\t\t\n\t}", "private void growQueue() {\n Runnable[] oldQ = queue;\n int oldSize = oldQ.length;\n int newSize = oldSize << 1;\n if (newSize > MAXIMUM_QUEUE_CAPACITY)\n throw new RejectedExecutionException(\"Queue capacity exceeded\");\n Runnable[] newQ = queue = new Runnable[newSize];\n\n int b = base;\n int bf = b + oldSize;\n int oldMask = oldSize - 1;\n int newMask = newSize - 1;\n do {\n int oldIndex = b & oldMask;\n Runnable t = oldQ[oldIndex];\n if (t != null && !casSlotNull(oldQ, oldIndex, t))\n t = null;\n setSlot(newQ, b & newMask, t);\n } while (++b != bf);\n pool.signalWork();\n }", "LinkedList<double[]> getTasks() {\r\n return tasks;\r\n }", "public CircularArrayQueue() {\n\t\tthis(QUEUESIZE);\t// constructs queue with default queue size\n\t}", "public static void main(String[] args) {\n\t\tBlockingQueue queue = new LinkedBlockingQueue(4);\n\n\t\t// Thread factory below is used to create new threads\n\t\tThreadFactory thFactory = Executors.defaultThreadFactory();\n\n\t\t// Rejection handler in case the task get rejected\n\t\tRejectTaskHandler rth = new RejectTaskHandler();\n\t\t// ThreadPoolExecutor constructor to create its instance\n\t\t// public ThreadPoolExecutor(int corePoolSize,int maximumPoolSize,long\n\t\t// keepAliveTime,\n\t\t// TimeUnit unit,BlockingQueue workQueue ,ThreadFactory\n\t\t// threadFactory,RejectedExecutionHandler handler) ;\n\t\tThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 2, 10L, TimeUnit.MILLISECONDS, queue,\n\t\t\t\tthFactory, rth);\n\n\t\tfor (int i = 1; i <= 10; i++) {\n\t\t\tDataFileReader df = new DataFileReader(\"File \" + i);\n\t\t\tSystem.out.println(\"A new file has been added to read : \" + df.getFileName());\n\t\t\t// Submitting task to executor\n\t\t\tthreadPoolExecutor.execute(df);\n\t\t}\n\t\tthreadPoolExecutor.shutdown();\n\t}", "void queueShrunk();", "public Deque() {\n first = null;\n last = null;\n }", "protected abstract List<BlockingQueue<CallRunner>> getQueues();", "public CincamimisQueue()\r\n {\r\n measurementQueue=new ArrayBlockingQueue(10,true);\r\n }", "public void startDeleteWorkers(){\r\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\r\n\t\t\r\n\t\t//Create threads\r\n\t\tfor(int i = 0; i < dlts.length; i++){\r\n\t\t\tthreads.add(new Thread(dlts[i]));\r\n\t\t\tthreads.get(i).start();\r\n\t\t}\r\n\t\t\r\n\t\t//Wait for threads to finish\r\n\t\tfor(int i = 0; i < dlts.length; i++){\r\n\t\t\ttry {\r\n\t\t\t\tthreads.get(i).join();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void generateQueue(){\r\n\t\tqueue = new int[5];\r\n\t\tfor (int x = 0; x < queue.length; x++){\r\n\t\t\tqueue[x] = random.nextInt(9);\r\n\t\t}\r\n\t}", "public void mo37770b() {\n ArrayList<RunnableC3181a> arrayList = f7234c;\n if (arrayList != null) {\n Iterator<RunnableC3181a> it = arrayList.iterator();\n while (it.hasNext()) {\n ThreadPoolExecutorFactory.getScheduledExecutor().execute(it.next());\n }\n f7234c.clear();\n }\n }", "public Deque() {\n\n }", "public Deque() {\n\n }", "public Deque(){\n\t\tthis.first = null;\n\t\tthis.last = null;\n\t\tthis.n = 0;\n\t}", "public I0304MyQueue() {\n nums = new Stack<>();\n temp = new Stack<>();\n }", "private void addToQueue (Parcel[] packagesAssigned){\n\n }", "public static Queue newQueue(int n){\n Queue q = new Queue(); //New object \n String array[] = new String[n]; //Create a new array of specified size \n q.names = array; //Make a new array onject \n q.queuesize = 0; //Set the initial size to 0 \n return q; //Return the whole queue out\n }", "private TransferDispatcher() {\n taskList=new Vector();\n }", "public static void main(String[] args) throws Exception {\n\t\tDynamicQueue dq = new DynamicQueue();\n\t\tfor (int i =1; i <=10; i++) {\n\t\t\tdq.Enqueue(i);\n\t\t\tdq.Display();\n\t\t\t\n\t\t}\n\t\tSystem.out.println(dq.Dequeue());\n\t\tdq.Display();\n\n\t}", "public Queue<T> deQueue();", "public Deque() {\n first = null;\n last = null;\n len = 0;\n }", "public interface TaskQueue {\n\n /**\n * Adds a task to this dependency queue.\n *\n * @param task the {@code KernelRunnable} to add\n * @param owner the {@code Identity} that owns the task\n */\n void addTask(KernelRunnable task, Identity owner);\n\n}", "public TaskQueue(PrintWriter stdout, PrintWriter stderr, int maxConcurrentActions) {\n this.stdout = stdout;\n this.stderr = stderr;\n this.maxConcurrentActions = maxConcurrentActions;\n }", "public interface Queue {\n\tpublic Set getGatheredElements();\n\tpublic Set getProcessedElements();\n\tpublic int getQueueSize(int level);\n\tpublic int getProcessedSize();\n\tpublic int getGatheredSize();\n\tpublic void setMaxElements(int elements);\n\tpublic Object pop(int level);\n\tpublic boolean push(Object task, int level);\n\tpublic void clear();\n}", "public abstract void backoffQueue();", "public Deque() {\n }", "public ArrayTaskList() {\n\t\tcount = 0;\n\t\tmassTask = new Task[10];\n\t}", "public static void main(String [] args) {\n Task specialTask = new MessageTask(args[0],args[1],args[2],args[3],args[4],args[5]);\n specialTask.execute();\n\n System.out.println(\"Hello to your first Java program!\");\n\n Task[] tasks = new Task[5];\n tasks[0] = new MessageTask(\"1\",\"Seminar\",\"Hello world\",\"Computer\",\"Students\",\"2018-10-02 13:00\");\n tasks[1] = new MessageTask(\"2\",\"Laborator\",\"Beautiful world\",\"Love\",\"Ex's\",\"2012-05-02 15:00\");\n tasks[2] = new MessageTask(\"3\",\"Curs\",\"Cruel world\",\"Teacher\",\"Parents\",\"2058-08-02 13:35\");\n tasks[3] = new MessageTask(\"4\",\"Examen\",\"Great world\",\"Colleague\",\"Teachers\",\"1018-03-02 20:00\");\n tasks[4] = new MessageTask(\"5\",\"Colocviu\",\"Bye world\",\"Deputy\",\"Mayor\",\"2618-10-02 13:00\");\n\n// for(Task i: tasks)\n// i.execute();\n\n }", "public Deque() {\n first = null;\n last = null;\n n = 0;\n }", "@Override\n public void addTasksToRun() {\n //gets the tasks that are ready for execution from the list with new tasks\n List<Task> collect = tasks.stream().filter((task) -> (task.getDate() == TIME))\n .collect(Collectors.toList());\n //sort the tasks inserted. The sort is based in \"priority\" value for all the tasks.\n collect.sort(new Comparator<Task>() {\n @Override\n public int compare(Task o1, Task o2) {\n return o1.getPriority() - o2.getPriority();\n }\n });\n //Change the status of tasks for READY\n collect.stream().forEach((task) -> {\n task.setStatus(Task.STATUS_READY);\n });\n //Adds the tasks to the queue of execution\n tasksScheduler.addAll(collect);\n\n //Removes it from list of new tasks\n tasks.removeAll(collect);\n }", "public Queue(){\n first = null;\n last = null;\n N = 0;\n }", "public List<Runnable> shutdownNow() {\n lock.lock();\n try {\n shutdown();\n List<Runnable> result = new ArrayList<>();\n for (SerialExecutor serialExecutor : serialExecutorMap.values()) {\n serialExecutor.tasks.drainTo(result);\n }\n result.addAll(executor.shutdownNow());\n return result;\n } finally {\n lock.unlock();\n }\n }", "public static void main(String[] args) {\n\n ScheduledExecutorService service = Executors.newScheduledThreadPool(4);\n\n //task to run after 10 seconds delay\n service.schedule(new Task(), 10, TimeUnit.SECONDS);\n\n //task to repeatedly every 10 seconds\n service.scheduleAtFixedRate(new Task(), 15, 10, TimeUnit.SECONDS);\n\n //task to run repeatedly 10 seconds after previous task completes\n service.scheduleWithFixedDelay(new Task(), 15, 10, TimeUnit.SECONDS);\n\n\n for (int i = 0; i < 100; i++) {\n System.out.println(\"task number - \" + i + \" \");\n service.execute(new Task());\n }\n System.out.println(\"Thread name: \" + Thread.currentThread().getName());\n\n }", "public static LinkedQueue makeQueueOfQueues(LinkedQueue q) {\n // Replace the following line with your solution.\n LinkedQueue overall = new LinkedQueue();\n while (!q.isEmpty())\n {\n try \n {\n LinkedQueue single = new LinkedQueue();\n single.enqueue(q.dequeue());\n overall.enqueue(single);\n } \n catch (QueueEmptyException e) \n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } \n }\n \n return overall;\n }", "public static <T> BDEQueue<T> createBoundedDoubleEndedQueue(int capacity) {\n \t\treturn new BDEQueue<T>(capacity);\n \t}", "public void debugQueue(int[] values){ \r\n\t\tfor (int x = 0; x <=4; x++){\r\n\t\t\tqueue[x] = values[x];\r\n\t\t}\r\n\t}", "public QueueExplorator() {\n\t\tqueue = new LinkedQueue<Square>();\t\n\t}", "void event(long t) {\n\r\n \r\n\r\n Job temp;\r\n if (this.TempListMigrating.front != null) { //if there are any new migrating tasks\r\n TempListMigrating.insertionSortIdentifier(this.TempListMigrating.front); //order the TempList, from smallest-largest\r\n\r\n while (this.TempListMigrating.front != null) {\r\n //TempList.calculateD(t);\r\n temp = TempListMigrating.remove();\r\n int assignedProcessor = this.getNextProcessor(temp);\r\n\r\n //add this task to the processor\r\n this.servers[this.Tasks[temp.identifier].index[assignedProcessor]].addToMigratingPool(temp);\r\n\r\n }\r\n }\r\n\r\n while (this.TempListFixed.front != null) {\r\n\r\n temp = TempListFixed.remove();\r\n this.servers[this.Tasks[temp.identifier].index[0]].pool.insertionSortDeadline(temp, t);\r\n\r\n }\r\n\r\n //add things to the processor now\r\n for (int i = 0; i < numProcessors; i++) {\r\n\r\n if (this.servers[i].executing.top != null) { //not empty, there is a job present\r\n //check for migrating tasks\r\n if (this.servers[i].migratingPool.front != null) {\r\n //there are migrating Tasks, and something on the stack\r\n if (this.Tasks[this.servers[i].executing.top.identifier].numMigrations < 2 || this.Tasks[this.servers[i].executing.top.identifier].fixed == true) { //executing is a fixed task\r\n if (servers[i].migratingPool.front != null) {\r\n //switch\r\n temp = servers[i].executing.top;\r\n servers[i].executing.top = servers[i].migratingPool.remove();\r\n servers[i].pool.insertionSortDeadline(temp, t);\r\n this.preemptions++;\r\n\r\n }\r\n } //if both migrating tasks\r\n else if (this.servers[i].migratingPool.front.identifier < servers[i].executing.top.identifier) {\r\n temp = servers[i].migratingPool.remove();\r\n servers[i].executing.top = temp; //add to the EMPTY stack\r\n this.preemptions++;\r\n }\r\n } else if (this.servers[i].pool.front != null)//check for fixed tasks\r\n {\r\n if (this.servers[i].pool.front.deadline < servers[i].executing.top.deadline) {\r\n temp = servers[i].pool.remove();\r\n servers[i].executing.top = temp; //add to the EMPTY stack\r\n this.preemptions++;\r\n }\r\n }\r\n\r\n } else if (this.servers[i].migratingPool.front != null) //it was empty, add now migrating\r\n {\r\n temp = servers[i].migratingPool.remove();\r\n servers[i].executing.top=temp;\r\n \r\n \r\n\r\n } else if (this.servers[i].pool.front != null) //executing was empty, and migratingPool was empty, add from fixed list\r\n {\r\n\r\n temp = servers[i].pool.remove();\r\n servers[i].executing.top = temp; //add to the EMPTY stack\r\n }\r\n\r\n }\r\n }", "public Deque() {\n size = 0;\n first = null;\n last = null;\n }", "private void initReadBlockingTask(int size){ \n for (int i=0; i < size; i++){\n getReadTasks().offer(newReadBlockingTask(false));\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tQueueUsingArray obj1 = new QueueUsingArray(5);\n\t\tobj1.enqueue(10);\n\t\tobj1.enqueue(20);\n\t\tSystem.out.println(obj1.dequeue() + \" is deleted\");\n\t\tobj1.enqueue(30);\n\t\tSystem.out.println(obj1.dequeue() + \" is deleted\");\n\t\tobj1.enqueue(40);\n\t\tSystem.out.println(obj1.dequeue() + \" is deleted\");\n\t\tobj1.enqueue(50);\n\t\tSystem.out.println(obj1.dequeue() + \" is deleted\");\n\t\tSystem.out.println(obj1.dequeue() + \" is deleted\");\t\n\n\n\t}", "@Override\n\tpublic YzlResult deleterTask(String[] ids) {\n\t\treturn null;\n\t}", "myQueue(int size){\n }", "private void pushLater(Recycler.DefaultHandle<?> item, Thread thread)\r\n/* 547: */ {\r\n/* 548:589 */ Map<Stack<?>, Recycler.WeakOrderQueue> delayedRecycled = (Map)Recycler.DELAYED_RECYCLED.get();\r\n/* 549:590 */ Recycler.WeakOrderQueue queue = (Recycler.WeakOrderQueue)delayedRecycled.get(this);\r\n/* 550:591 */ if (queue == null)\r\n/* 551: */ {\r\n/* 552:592 */ if (delayedRecycled.size() >= this.maxDelayedQueues)\r\n/* 553: */ {\r\n/* 554:594 */ delayedRecycled.put(this, Recycler.WeakOrderQueue.DUMMY);\r\n/* 555:595 */ return;\r\n/* 556: */ }\r\n/* 557:598 */ if ((queue = Recycler.WeakOrderQueue.allocate(this, thread)) == null) {\r\n/* 558:600 */ return;\r\n/* 559: */ }\r\n/* 560:602 */ delayedRecycled.put(this, queue);\r\n/* 561: */ }\r\n/* 562:603 */ else if (queue == Recycler.WeakOrderQueue.DUMMY)\r\n/* 563: */ {\r\n/* 564:605 */ return;\r\n/* 565: */ }\r\n/* 566:608 */ queue.add(item);\r\n/* 567: */ }", "public EventQueue(){}", "public ArrayQueue() {\n this(10);\n }", "public static void main(String[] args) {\n\t\tQueueExample queue = new QueueExample();\r\n\t\tqueue.enque(3);\r\n\t\tqueue.enque(4);\r\n\t\tqueue.enque(5);\r\n\t\tqueue.enque(6);\r\n\t\t\r\n\t\tSystem.out.println(queue.deque());\r\n\t\tSystem.out.println(queue.deque());\r\n\t\tSystem.out.println(queue.deque());\r\n\t\t\r\n\t\t\r\n\r\n\t}", "void submitAndWaitForAll(Iterable<Runnable> tasks);", "public Serializable asyncPop() {//can move on to another task before it finishes.\n Serializable temp = null;\n boolean finished = false;\n while(!finished){\n if(taskQueue.isEmpty()){\n try {\n Thread.sleep(1000);//1 second\n } catch (InterruptedException ex) {\n Logger.getLogger(BasicMsgQ.class.getName()).log(Level.SEVERE, null, ex);\n }\n }else{\n temp = taskQueue.removeFirst();\n finished = true;\n } \n }\n return temp;\n }", "void addDoneTasks(List<Task> task);", "@Override\r\n\tpublic List<GridTask<LinPackResult>> split() {\r\n\t\tList<GridTask<LinPackResult>> list = new ArrayList<GridTask<LinPackResult>>();\r\n\t\tfor (int i=0; i < tasks; i++) {\r\n\t\t\tlist.add(new LinPackTask(cycles));\r\n\t\t}\r\n\t\t\r\n\t\tsw = new StopWatch();\r\n\t\t\r\n\t\tsw.start();\r\n\t\t\r\n\t\treturn list;\r\n\t}", "public TaskBookBuilder addUnfinishedFloatingTasks() {\n final List<FloatingTask> taskList = (new TypicalFloatingTasks()).getFloatingTasks();\n final List<FloatingTask> toAdd = new ArrayList<FloatingTask>();\n final TaskUnfinishedPredicate predicate = new TaskUnfinishedPredicate(referenceDateTime);\n for (FloatingTask floatingTask : taskList) {\n if (predicate.test(floatingTask)) {\n toAdd.add(floatingTask);\n }\n }\n return addFloatingTasks(toAdd);\n }", "public Deque() {\n size = 0;\n\n }", "public RandomizedQueue() {\n\t\tN = 0;\n\t\tarr = (Item []) new Object[1];\n\t}", "public abstract void queue(@Nonnull LimiterPair task);", "public WaitingProcessQueue() {\r\n this.data = new CustomProcess[INITIAL_CAPACITY];\r\n }", "private Tasks createNoKeywordTask(Tasks task, String descriptionOfTask, ArrayList<String> timeArray,\n int numberOfArguments) {\n if (numberOfArguments == 1 || numberOfArguments == 2) { //deadline tasks\n task = createDeadlineTask(task, descriptionOfTask, timeArray);\n } else { //duration tasks\n task = createDurationTask(task, descriptionOfTask, timeArray);\n }\n return task;\n }", "protected final void spawn(Task<?>... task) {\n // Gets a list of tasks, make a forLoop, and add it the the queue of that specific task\n for (int i=0; i<task.length; i++){\n // We want the pool to add a given task.\n // pool.addTask(task[i], id); <- this function needs to increase aswell.\n myProcessor.getPool().addTask(task[i], myProcessor.getProcessorID());\n //\tSystem.out.println(\"Spawned \" + i + \" new tasks\");\n }\n }", "public void removeTasks() {\n\t\t\r\n\t}", "public interface TaskQueueFactory {\n\n\t/**\n\t * Creates a {@link com.twilio.sdk.resource.instance.taskrouter.TaskQueue}.\n\t *\n\t * @param params the params list\n\t * @return a TaskQueue\n\t * @throws com.twilio.sdk.TwilioRestException\n\t */\n\tpublic TaskQueue create(Map<String, String> params) throws TwilioRestException;\n\n\t/**\n\t * Creates a {@link com.twilio.sdk.resource.instance.taskrouter.TaskQueue}.\n\t *\n\t * @param params the params list\n\t * @return a TaskQueue\n\t * @throws TwilioRestException\n\t */\n\tpublic TaskQueue create(List<NameValuePair> params) throws TwilioRestException;\n}", "public QueueHandler(int numberOfQueues){\n queues = new ArrayList<LinkedList<Passenger>>();\n closed = false;\n \n for(int i = 0; i < numberOfQueues; i++) {\n \tqueues.add(new LinkedList<Passenger>());\n }\n }", "public Boolean lazyQueue();", "public void postponeNext()\n {\n\tif (toDo.size() > 0)\n\t {\n\t\tTask t = toDo.get(0);\n\t\ttoDo.remove(0);\n\t\ttoDo.add(t);\n\t }\n }", "public static void main(String[] args) {\n int[] test = {1,2,3,4,5,6,7,8,9,10};\n Queue testing = new Queue(test);\n int[] pulled = new int[3];\n pulled[0] = testing.pop();\n pulled[1] = testing.pop();\n pulled[0] = testing.pop();\n System.out.println(\"pulled \" + pulled[0] + \" \" + pulled[1] + \" \" + pulled[2]);\n testing.push(pulled);\n testing.iter();\n }", "public Deque() {\n\t\tfirst = null;\n\t\tlast = null;\n\t\tsize = 0;\n\t}", "public static void main(String args[])\n {\n\t ScheduledExecutorService executorService= Executors.newScheduledThreadPool(2);\n\t Runnable task1=new RunnableChild(\"task1\");\n\t Runnable task2=new RunnableChild(\"task2\");\n\t Runnable task3=new RunnableChild(\"task3\");\n\t executorService.submit(task1);\n\t executorService.submit(task2);\n\t executorService.submit(task3);\n\t executorService.schedule(task1,20, TimeUnit.SECONDS);\n\t System.out.println(\"*******shutting down called\");\n\t executorService.shutdown();\n }", "public InMemoryQueueService(){\n this.ringBufferQueue = new QueueMessage[10000];\n }", "protected void onQueued() {}" ]
[ "0.6307935", "0.61120296", "0.6058602", "0.60142547", "0.60139674", "0.59263545", "0.5912718", "0.58068234", "0.5705508", "0.56984967", "0.56724054", "0.5669939", "0.5606326", "0.5565984", "0.55415654", "0.5520438", "0.5506868", "0.54951537", "0.5477894", "0.5476683", "0.5473668", "0.5461321", "0.5426551", "0.5418219", "0.5397577", "0.5394322", "0.5390947", "0.53847003", "0.53841656", "0.53720427", "0.53622913", "0.53376883", "0.53308606", "0.532665", "0.53197515", "0.5312671", "0.52996856", "0.52995646", "0.52927285", "0.528796", "0.5270076", "0.52667934", "0.5265985", "0.52636635", "0.52636635", "0.52624285", "0.5256291", "0.5252863", "0.5246294", "0.5244466", "0.52330106", "0.5228099", "0.5210833", "0.5207876", "0.5205332", "0.5198668", "0.5196816", "0.5195643", "0.5190053", "0.5185347", "0.51821244", "0.51758033", "0.51743096", "0.5167023", "0.51633865", "0.5156714", "0.5154608", "0.5149322", "0.513821", "0.512838", "0.51268244", "0.51263607", "0.5118615", "0.5118214", "0.5113663", "0.5113214", "0.51122063", "0.5110117", "0.50993484", "0.5097757", "0.50922304", "0.5088285", "0.50765365", "0.5076007", "0.5075584", "0.5073855", "0.5073315", "0.5060944", "0.50594103", "0.50580657", "0.5054273", "0.5054025", "0.5048917", "0.5045349", "0.50450945", "0.504453", "0.50373733", "0.50361556", "0.50356704", "0.50339943" ]
0.68587136
0
Push a new job onto the end of the queue
public void pushBottom(Runnable r) { tasks[bottom] = r; // store task bottom++; // advance bottom }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void pipeStepQueueJob(final Job job) {\n synchronized(jobs_queue) {\n pipeStepLog(\"Queuing JOB #\" + job.getId());\n jobs_queue.add(job);\n jobs_queue.notifyAll();\n }\n }", "@Override\n protected void insertJobInQueueUponArrival (final J job, final double time)\n {\n addRealJobLocal (job);\n }", "@Override\n\tpublic void addToQueue() {\n\t}", "public void submit(final Job job, final long runAt) {\n deque.add(new DelayedJob(job, runAt));\n }", "public synchronized void enqueue(T thing) {\r\n\t\twhile (queue.size()==maxSize){\r\n\t\t\ttry{\r\n\t\t\t\tthis.wait();\r\n\t\t\t} catch(InterruptedException e){\r\n\t\t\t\tSystem.out.println(\"Interruption during enqueue\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tqueue.addLast(thing);\r\n\t\tthis.notifyAll();\r\n\t}", "public void enqueJob(FJJob job, boolean sample) {\n if (FJSimulator.DEBUG) System.out.println(\"enqueJob(\"+job.path_log_id+\") \"+job.arrival_time);\n \n // only keep a reference to the job if the simulator tells us to\n job.setSample(sample);\n \n job_queue.add(job);\n feedWorkers(job.arrival_time);\n if (FJSimulator.DEBUG) System.out.println(\" queued a job. New queue length: \"+job_queue.size());\n }", "public void submitJob(Job job) {\n\t\tthis.jobs.add(job);\n\t}", "public void submit(final Job job) {\n deque.add(new DelayedJob(job, System.nanoTime()));\n }", "void enqueue(E newEntry);", "private void addCommandToQueue(CancellableCommand command) {\n outstandingRequests.add(command);\n while (outstandingRequests.size() > maxOutstandingRequests) {\n outstandingRequests.poll().onCancelled();\n }\n }", "public void newQueue(){\r\n\t\tgenerateQueue();\r\n\t\trefreshLeft = true;\r\n\t}", "public void enqueue(E e) {\n\t\tlist.addLast(e);\n\t}", "public void enqueue ()\n {\n count++;\n questionList.add(newQuestion);\n //System.out.println(\"Question #\"+ totNumQ + \" is added to the queue.\");\n }", "public void addJob(String name, JobInProgress job) {\n Queue<JobInProgress> queue = queues.get(name);\n if (null != queue)\n queue.addJob(job);\n }", "private void enterToRunwayQueue() {\n\t\tqueue.insert(this);\n\t}", "@Override\n public void enqueue(E e) {\n array.addLast(e);\n }", "private void push(GameAction action) {\n this.queue.add(action);\n }", "public synchronized void enqueue(Object msg) {\n\t\tqueue.add(msg);\n\n\t\t// if any threads wait on empty queue then wake them up\n\t\tnotifyAll();\n\t}", "public void enqueue(T pushed)\n\t{insert(pushed);}", "public void queue(Object newItem){\n if(isFull()){\n System.out.println(\"queue is full\");\n return;\n }\n ArrayQueue[++rear] = newItem;\n if(front == -1)\n front = 0;\n \n }", "private void workOnQueue() {\n }", "final void pushTask(Runnable t) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int s = sp;\n setSlot(q, s & mask, t);\n storeSp(++s);\n if ((s -= base) == 1)\n pool.signalWork();\n else if (s >= mask)\n growQueue();\n }", "private void queueTask(Version theTask) {\n\tsynchronized(_taskQueue) {\n\t _taskQueue.add(theTask);\n\t}\n }", "public void append(Serializable message){\n taskQueue.addLast(message);\n unlockWaiter();//unblocks for taskQueue\n unlockPoolWaiter();//unblocks for threadPool\n }", "public void addToQueue(Unit unit) {\n if (units.size() < maxStock) {\n endTime = System.currentTimeMillis() + unit.getBuildTime();\n units.add(unit);\n }\n }", "public void enqueue(E item) {\n addLast(item);\n }", "public void addJob(Job job) {\n try {\n JobWrapper jobWrapper = new JobWrapper(agentManager, job);\n this.runningPool.execute(jobWrapper);\n JobWrapper jobWrapperRet = jobs.putIfAbsent(jobWrapper.getJob().getJobInstanceId(), jobWrapper);\n if (jobWrapperRet != null) {\n LOGGER.warn(\"{} has been added to running pool, \"\n + \"cannot be added repeatedly\", job.getJobInstanceId());\n } else {\n jobMetrics.runningJobs.incrementAndGet();\n }\n } catch (Exception rje) {\n LOGGER.debug(\"reject job {}\", job.getJobInstanceId(), rje);\n pendingJobs.putIfAbsent(job.getJobInstanceId(), job);\n }\n }", "void addToQueue(WebhookMessage msg);", "public void push(E item) {\n if (!isFull()) {\n this.stack[top] = item;\n top++;\n } else {\n Class<?> classType = this.queue.getClass().getComponentType();\n E[] newArray = (E[]) Array.newInstance(classType, this.stack.length*2);\n System.arraycopy(stack, 0, newArray, 0, this.stack.length);\n this.stack = newArray;\n\n this.stack[top] = item;\n top++;\n }\n }", "public void queueMessage(ByteBuffer bb) {\n queue.add(bb);\n processOut();\n updateInterestOps();\n }", "public void enqueue(E e) {\n\t\t\tsynchronized (this.pq) {\n\t\t\t\tthis.pq.add(e);\n//\t\t\t\tSystem.out.println(\"insert \" + e);\n\t\t\t}\n\t\t\tthis.sem.release();\n\t}", "public void queueMessage(ByteBuffer bb) {\n\t\tqueue.add(bb);\n\t\tprocessOut();\n\t\tupdateInterestOps();\n\t}", "private void growQueue() {\n Runnable[] oldQ = queue;\n int oldSize = oldQ.length;\n int newSize = oldSize << 1;\n if (newSize > MAXIMUM_QUEUE_CAPACITY)\n throw new RejectedExecutionException(\"Queue capacity exceeded\");\n Runnable[] newQ = queue = new Runnable[newSize];\n\n int b = base;\n int bf = b + oldSize;\n int oldMask = oldSize - 1;\n int newMask = newSize - 1;\n do {\n int oldIndex = b & oldMask;\n Runnable t = oldQ[oldIndex];\n if (t != null && !casSlotNull(oldQ, oldIndex, t))\n t = null;\n setSlot(newQ, b & newMask, t);\n } while (++b != bf);\n pool.signalWork();\n }", "public void push(E e) throws InterruptedException {\n while (!isFree) {\n synchronized (this) {\n wait();\n }\n }\n\n synchronized (this) {\n if (queue != null) {\n queue.add(e);\n }\n isFree = true;\n notifyAll();\n }\n }", "void addCommand(final Runnable command)\n {\n synchronized (command_queue)\n {\n // New maximum queue length (+1 for the one about to get added)\n if (command_queue.size() >= max_size_reached)\n max_size_reached = command_queue.size() + 1;\n command_queue.addLast(command);\n }\n }", "public static synchronized void insert(JeyEvent e) {\n queue.addLast(e);\r\n EventQueue.class.notifyAll();\r\n }", "public void requeue() {\n\t\tenqueue(queue.removeFirst());\n\t}", "public boolean addToSortedQueue(ArrayList<Integer> job) throws RemoteException;", "public void addJobToWaitingList(CommonCommand newJob) {\n \t\tif (null != localMonitor)\n \t\t\tlocalMonitor.newJobToWaitingList(newJob);\n \t}", "public static void enqueue(Object object) {\n queue.addLast(object);\n }", "public void invokeLater(Runnable task) {\n queue.add(task);\n }", "void enqueue(E item);", "public void enqueue (T item) {\n leftStack.push(item);\n }", "@Override\n\tpublic void enqueue(E e) {\n\t\tint index = (pos + size) % queue.length;\n\t\tqueue[index] = e;\n\t\tsize++;\n\t}", "public void enqueue (E element);", "public void onQueue();", "void enqueue(T item) {\n contents.addAtTail(item);\n }", "public synchronized void enqueue(Object o) {\r\n insertAtBack(o);\r\n }", "private void growQueue() {\n int newSize = (int)(QUEUE.length * 1.5f);\n \n Logger.log(\"INFO\", \"Queue is full, growing to new size: \" + Integer.toString(newSize));\n \n Object[] newQueue = new Object[newSize];\n lockQueue();\n copyQueue(newQueue);\n unlockQueue();\n }", "public void enqueue(Message msg){\n\t\tqueue.add(msg);\n\t}", "public void push(final String queueName, final String item);", "public static void writeNewJob(Job job) {\n DatabaseReference database = FirebaseDatabase.getInstance().getReference();\n database.child(\"jobs\").push().setValue(job);\n }", "void enqueue(E e);", "private void putOneQueue(BlockingQueue q, List buffer) throws InterruptedException {\n q.put(buffer);\n// System.err.println(Thread.currentThread().getName() + \"[MC] puts \" + buffer.size() + \" on \" + q.hashCode() + \" done\");\n// System.err.println(Thread.currentThread().getName() + \"[MC] puts \" + buffer.size() + \" on \" + q.hashCode() + \" first record \" + buffer.get(0));\n }", "void enqueue(T t);", "@Override\n public synchronized void push(String queueName, QueueMessage message) throws QueueFullException {\n if(this.itemsInQueue == this.ringBufferQueue.length) {\n throw new QueueFullException(\"The queue is full\");\n }\n\n int pushLocation = this.pushQueueLocation;\n boolean search = true;\n\n // Find the first free space starting from the last location\n while(search) {\n if(this.ringBufferQueue[pushLocation] == null) {\n search = false;\n }\n else {\n pushLocation = this.incrementPosition(pushLocation);\n }\n }\n\n message.setQueueLocation(pushLocation);\n this.ringBufferQueue[pushLocation] = message;\n\n // Move the next push location to where we inserted as anything before is filled\n this.pushQueueLocation = this.incrementPosition(pushLocation);\n this.itemsInQueue++;\n }", "public void push(Product p) throws InterruptedException\n\t{\n\t\tqueue.put(p);\n\t}", "protected void onQueued() {}", "private void addToMoveQueue() {\n\t\tSimulation.INSTANCE.getMoveQueue().offer(new Move(prevNode, currentNode));\n\t}", "public void enqueue(E element) {\n\t\tadd(element);\n\t}", "void enqueue(E el);", "public void enqueue(Object o) {\n queue.enqueue(o);\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tint i = 0;\r\n\t\t\t\twhile (i < 50) {\r\n\t\t\t\t\tString job = Thread.currentThread().getName() + \"---\" + new Random(99999L).toString();\r\n\t\t\t\t\tprinter.addJob(job);\r\n\t\t\t\t\tSystem.out.println(\"Added \" + job + \" to Printer Queue\");\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(15);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "public void addJob(Process p) {\n // Remove the next lines to start your implementation\n //throw new UnsupportedOperationException();\n \n // Fill in this method\n /*------------------------------------------------------------*/\n\n //Add the job to the unfinished process queue if it is not already present\n if(!this.unfinishedJobs.contains(p)){\n this.unfinishedJobs.add(p);\n }\n /*------------------------------------------------------------*/\n }", "private void add(Pair<MarketDataRequestAtom,Event> inData)\n {\n getQueue().add(inData);\n }", "public void enqueue(T element);", "public void enqueue(Item item) \n {\n stack1.push(item);\n }", "private void writeNextMessageInQueue() {\n // This should not happen in practice since this method is private and should only be called\n // for a non-empty queue.\n if (mMessageQueue.isEmpty()) {\n Log.e(TAG, \"Call to write next message in queue, but the message queue is empty.\");\n return;\n }\n\n if (mMessageQueue.size() == 1) {\n writeValueAndNotify(mMessageQueue.remove().toByteArray());\n return;\n }\n\n mHandler.post(mSendMessageWithTimeoutRunnable);\n }", "public void enqueue(T newEntry){\n Node newNode = new Node(newEntry, null);\n\n if (isEmpty()){\n firstNode = newNode;\n }\n else {\n lastNode.setNext(newNode);\n }\n lastNode = newNode;\n }", "public void enqueue(Object data){\r\n super.insert(data, 0);//inserts it to the first index everytime (for tostring)\r\n }", "public void enqueue(Object value)\n {\n queue.insertLast(value);\n }", "public void enqueue(process p) {\n\t\tqueue.addLast(p);\n\t}", "public void push(T newItem);", "public void add(Object element) {\n queue.put( new DelayedElement( element ) );\n }", "void push(Recycler.DefaultHandle<?> item)\r\n/* 519: */ {\r\n/* 520:554 */ Thread currentThread = Thread.currentThread();\r\n/* 521:555 */ if (this.threadRef.get() == currentThread) {\r\n/* 522:557 */ pushNow(item);\r\n/* 523: */ } else {\r\n/* 524:562 */ pushLater(item, currentThread);\r\n/* 525: */ }\r\n/* 526: */ }", "public void add(Object o) {\n Logger.log(\"DEBUG\", \"Data to add to queue: \" + o.toString());\n while(isLocked()) {\n try {\n Thread.sleep(10);\n }\n catch(InterruptedException ie) {\n // do nothing\n }\n }\n addToTail(o);\n LAST_WRITE_TIME = now();\n }", "@Override\n public void enqueue(T value) {\n myQ[myLength] = value;\n myLength++;\n }", "public void push(T newEntry);", "public void push(int x) {\r\n this.queueMain.offer(x);\r\n }", "public synchronized void push(Object o) {\n itemcount++;\n addElement(o);\n notify();\n }", "void enqueue(String object);", "public void enqueue (Item item){\n Node<Item> oldLast = last;\n last = new Node<Item>();\n last.item = item;\n last.next = null;\n if(isEmpty()) {first = last;}\n else oldLast.next = last;\n N++;\n }", "public void moveJob(String from, String to, JobInProgress job) {\n synchronized (queues) {\n removeJob(from, job);\n addJob(to, job);\n }\n }", "@Override\n\tpublic void addTask(ISimpleTask task) {\n\t\ttry {\n\t\t\tqueue.put(task);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void push(int x) {\n queue.addLast(x);\n }", "public void push(E element) {\r\n items.add(0, element);\r\n }", "@Override\n protected void insertJobInQueueUponStart (final J job, final double time)\n {\n if (job == null)\n throw new IllegalArgumentException ();\n if ((! isJob (job)) || isJobInServiceArea (job))\n throw new IllegalArgumentException ();\n getDelegateJob (job); // Sanity on existence of delegate job.\n }", "public void enqueue(Integer elem) {\n\t\t // add to end of array\n\t\t // increase size\n\t\t // create a recursive helper, percolateUp,\n\t\t // that allows you puts the inserted val \n\t\t // in the right place\n\t\t if(size == capacity) {\n\t\t\t ensureCapacity(size);\n\t\t }\n\t\t data[size] = elem;\n\t\t size++;\n\t\t percolateUp(size-1); \n\t }", "private void enqueue(E x) {\n final Object[] items = this.items;\n items[putIndex] = x;\n if (++putIndex == items.length) putIndex = 0;\n count++;\n notEmpty.signal();\n }", "@Override\r\n\tpublic boolean enqueue(T e) throws QueueOverflowException {\r\n\t\tif (this.isFull()) {\r\n\t\t\tthrow new QueueOverflowException(\"The queue is full\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdata.add(data.size(), e);\r\n\t\t}\r\n\t\t// Add element to the end of the Queue\t\t\r\n\t\treturn true;\r\n\t}", "void enqueue(Object elem);", "public void push(int x) {\n queue.offer(x);\n }", "void enqueue(T x);", "protected static Future<Job> checkAndAddJobToQueueFuture(Marker marker, Job job, HApiParam.HQuery.Command command){\n\n return checkRunningImportJobs(marker, job, command)\n .compose( runningJobs -> {\n if(runningJobs == null){\n CService.importQueue.addJob(job);\n return Future.succeededFuture(job);\n }else{\n return Future.failedFuture(new HttpException(CONFLICT, \"Job '\"+runningJobs+\"' is already running on target!\"));\n }\n });\n }", "public void push(int x) {\n queue.addLast(x);\n }", "public void enqueue(Person person) {\r\n saf.add(person);\r\n }", "abstract protected void queueEntity(Entity entity);", "public synchronized void enqueue(Task task) {\n tasks.add(task);\n }", "public boolean push(Event event) {\n boolean add;\n synchronized (this) {\n if (this.queue.size() >= 180) {\n dispatchCallback(this.queue.flush());\n }\n add = this.queue.add(event);\n }\n return add;\n }", "public void addIntoQueue(Integer block_id){\n if(this.queue_set){\n if(this.queue.contains(block_id) == false){\n this.queue.add(block_id);\n }\n }\n }" ]
[ "0.7608878", "0.70416665", "0.664222", "0.6566382", "0.6561256", "0.6559828", "0.6500165", "0.64855975", "0.64614236", "0.6400685", "0.6299896", "0.6297417", "0.62938553", "0.62636", "0.62599134", "0.6247446", "0.6226486", "0.6192183", "0.61636615", "0.61630094", "0.6160602", "0.61582327", "0.61365795", "0.6111471", "0.61079", "0.61024946", "0.6096729", "0.60593945", "0.60439855", "0.6020287", "0.60010517", "0.6000071", "0.5997721", "0.59819007", "0.5976956", "0.5963833", "0.5962815", "0.59617394", "0.5938599", "0.5931566", "0.592349", "0.5923232", "0.5918809", "0.59159255", "0.5914791", "0.59129554", "0.5900769", "0.5900261", "0.58824843", "0.5872105", "0.5853804", "0.5849232", "0.584293", "0.58062303", "0.5800183", "0.57917804", "0.5786512", "0.5784113", "0.5774437", "0.57651716", "0.5753648", "0.5752734", "0.5751483", "0.57440066", "0.57412225", "0.57381773", "0.5733138", "0.5731037", "0.5729822", "0.5729178", "0.5727712", "0.5718617", "0.5715219", "0.57076323", "0.5700412", "0.56841075", "0.56821895", "0.56761825", "0.56697094", "0.5667223", "0.5666805", "0.5663994", "0.5662523", "0.56584936", "0.5656848", "0.56558996", "0.5647261", "0.5643297", "0.56414956", "0.56396216", "0.5638614", "0.5638198", "0.5634187", "0.561902", "0.56123126", "0.56104255", "0.56096935", "0.56034666", "0.5599543", "0.5596476" ]
0.558879
100
Called by thieves to steal a thread
public Runnable popTop() { int[] stamp = new int[1]; int oldTop = top.get(stamp), newTop = oldTop + 1; int oldStamp = stamp[0], newStamp = oldStamp + 1; if (bottom <= oldTop) // empty return null; Runnable r = tasks[oldTop]; if (top.compareAndSet(oldTop, newTop, oldStamp, newStamp)) return r; return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void take(Thread usedBy)\n\t{\n\t\tthis.usedBy = usedBy;\n\t\t// System.out.println(usedBy.getName() + \": Taking \" + toString());\n\t}", "NetThread(){}", "public void toThread() {\n\t\t// TODO Auto-generated method stub\n\t\tnew Thread(this).start();\n\t\tclient.start();\n\t}", "private void esperarPorFatherThread() {\n\t\ttry {\n\t\t\tThread.sleep(50000);\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "@Override\n // Thread creation\n // Run method from the Runnable class.\n public void run() {\n p.println(\"Current thread = \" + Thread.currentThread().getName());\n // Shows when a task is being executed concurrently with another thread,\n // then puts the thread to bed (I like saying that)\n try {\n p.println(\"Doing a task during : \" + name);\n Thread.currentThread().sleep(time);\n }\n // Exception for when a thread is interrupted.\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public synchronized void retThread(WorkerThread w) {\n\t\tfor (int i = 0; i < this.threadPool.size(); ++i) {\n\t\t\tif (this.threadPool.get(i) == w) {\n\t\t\t\tthis.threadPool.get(i).setAvailable(true);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "void susThread(){\r\n suspended = true;\r\n }", "public void waitForAccess(KThread thread) \n\t\t{\n\t\t\tLib.assertTrue(Machine.interrupt().disabled());\n ThreadState waiterState = getThreadState(thread);\n waiterState.waitForAccess(this); //Call waitForAccess of ThreadState class\n waitQueue.add(thread); //Add this thread to this waitQueue \n if(owner != null)\n\t\t\t{\n\t\t\t getThreadState(owner).donatePriority(waiterState.getPriority()-getThreadState(owner).getPriority()); //See if the incoming thread has to donate priority to the owner\n\t\t\t}\n\t\t}", "public abstract void putThread(Waiter waiter, Thread thread);", "Thread getLocker();", "@Override\n public void threadStarted() {\n }", "public void thread() {\n\t\tnew Thread(first).start();\n\t\trest.thread();\n\t}", "@Override\n public void run (){\n System.out.println(\"soy \" +Thread.currentThread().getName());\n Recurso.uso();\n try {\n Thread.sleep( 2000 );\n } catch (InterruptedException e) {\n };\n }", "private void dofakework() {\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void callTheWaiter(){\n Student s = (Student) Thread.currentThread();\n\n \tCommunicationChannel com = new CommunicationChannel (serverHostName, serverPortNumb);\n \tObject[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n \tstate_fields[0] = s.getID();\n \tstate_fields[1] = s.getStudentState();\n \t\n Message m_toServer = new Message(7, params, 0, state_fields, 2, null); \n Message m_fromServer; \n \n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n }\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n \n s.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }", "private void step()\n\t\t{\n\t\tif(currentAlgo!=null && !isRunning())\n\t\t\t{\n\t\t\tthread=new SteppingThread();\n\t\t\tbStartStop.setText(\"Stepping\");\n\t\t\tthread.toStop=true;\n\t\t\tcurrentAlgo.setStopping(false);\n\t\t\tthread.start();\n//\t\t\tcurrentAlgo.setStopping(false);\n//\t\t\tcurrentAlgo.run(this);\n\t\t\t}\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\tThread thisThread = currentThread();\n\t\t\ttry {\n\t\t\t\tLog.i(\"con\", \"worked3\");\n\t\t\t\tconnectToServer();\n\t\t\t\tif (connected) {\n\t\t\t\t\tsetUpStreams();\n\t\t\t\t\tsendProfile();\n\t\t\t\t\tLog.i(\"con\", \"worked8\");\n\t\t\t\t\twhile (blinker == thisThread) {\n\t\t\t\t\t\tstartListening();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tLog.e(\"cl\", \"Found IO Exception!: \" + e);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tLog.e(\"cl\", \"Found class not found exception!: \" + e);\n\t\t\t}\n\n\t\t}", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tsleep(dauer);\n\t\t\tt.interrupt();\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t}", "private static void thrasher( int threadId )\n {\n Random rand = new Random( threadId );\n \n System.out.println( \"Thrasher Thread #\" + threadId + \" Begin\" );\n try\n {\n for ( int processId = 0; processId < 1000; processId++ )\n {\n int seconds = rand.nextInt( 10 );\n String command = c_simplewaiter + \" 0 \" + seconds;\n System.out.println( \"Thrasher Thread #\" + threadId + \" Process #\" + processId + \" Launch (\" + seconds + \" seconds)\" );\n try\n {\n handleWrapperProcess( command, ( seconds + 5 ) * 1000, threadId, processId );\n }\n catch ( IOException e )\n {\n System.out.println( \"Thrasher Thread #\" + threadId + \" Process #\" + processId + \" Launch Failed.\" );\n e.printStackTrace();\n }\n }\n }\n finally\n {\n System.out.println( \"Thrasher Thread #\" + threadId + \" End\" );\n }\n }", "public void run() {\n try {\n Thread.sleep(10000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n mainThread.interrupt();\n }", "private void kickControlThread() {\r\n\t\tcontrolSignal.release();\r\n\t}", "public void lockThreadForClient()\n {\n masterThread.lockThreadForClient();\n }", "public void setThread(Thread t);", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "private void go() {\n\n new Thread(this).start();\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile(bLinked &&!isExit()){\r\n\t\t\t\tLog.d(\"123\", \"set heart beat threadid:\"+Thread.currentThread().getId());\r\n\t\t\t\tjni.talkSetHeartBeat();\r\n\t\t\t\tif(jni.talkGetRegisterState()!=1 ){\r\n\t\t\t\t\tLog.e(\"123\", \"心跳停止了\");\r\n\t\t\t\t\tbLinked = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tbLinked = true;\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(interval*1000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(!bLinked){\r\n\t\t\t\thandler.sendEmptyMessage(MSG_NOT_LINK);\r\n\t\t\t}\r\n\t\t\theartThread = null;\r\n\t\t\tsuper.run();\r\n\t\t}", "@Override\n\tpublic void run()\n\t{\n\n\t}", "TumbleweedThread(JumpCanvas canvas) throws Exception {\n myTumbleweeds = canvas.getTumbleweeds();\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n\tpublic void run()\n\t{\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "public synchronized void takeToken(TokenObject token) {\n\t\n\t\t// start critical section by instantiating and starting criticalSection thread\n\t\tcritical = new criticalSection(this_node, this_node_host, next_node, next_node_host, token);\n\t\t\n\t\tSystem.out.println(\"Entered method takeToken(): ringMemberImpl\");\n\t\tcritical.start();\n\t\tSystem.out.println(\"Exiting method takeToken(): ringMemberImpl\");\n\t\t\t\n\t}", "private void awaitT(){\n try {\n game.getBarrier().await(20, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (BrokenBarrierException e) {\n e.printStackTrace();\n } catch (TimeoutException e) {\n trimBarrier();\n synchronized (lock){\n if(!botSignal){\n bot = new BotClient();\n new Thread(bot).start();\n botSignal = true;\n }\n\n }\n }\n }", "public void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n public void run() {\n transmit_set();\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "public void returningToTheBar(){\n Waiter w = (Waiter) Thread.currentThread();\n CommunicationChannel com = new CommunicationChannel(serverHostName, serverPortNumb);\n Object[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n state_fields[0] = w.getWaiterID();\n \tstate_fields[1] = w.getWaiterState();\n\n Message m_toServer = new Message(2, params, 0, state_fields, 2, null); \n Message m_fromServer;\n\n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n }\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n\n w.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }", "private void tokenRingThread() throws Exception {\n\t\tThread thread = new Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttokenRing.init();\n\t\t\t}\n\t\t});\n\t\tthread.start();\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "void pauseThread();", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "protected void run() {\r\n\t\t//\r\n\t}", "public void startThread() {\n\t\tif (this.serverConnectorUsed <= Byte.MAX_VALUE) {\n\t\t\tthis.serverConnectorUsed++;\n\t\t\tLOG.info(\"Running new thread. Now pool is \"+Integer.toString(MAX_THREADS-this.serverConnectorUsed)+\" / \"+Integer.toString(MAX_THREADS));\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tisAlive = false;\r\n\t\t\t}", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "public Thread getThread();", "@Override\n public void run()\n {\n\n }", "public void preempt()\n\t{\n\t}", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"inside run() method.....\");\n\n\t\tlock();\n\n\t}", "@Override\r\n public void run() {}", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t}", "@Override\r\n\tpublic void run() {\n\t}", "@Override\r\n\tpublic void run() {\n\t}", "@Override\n public void run() {\n final WeakHandler wh = hw.getThat();\n final Runnable r = runnable.get();\n if (wh == null || r == null) {\n return;\n }\n r.run();\n }" ]
[ "0.6490456", "0.6120184", "0.6096856", "0.6081406", "0.5967913", "0.5967584", "0.5908735", "0.59029853", "0.5850739", "0.5836", "0.5834632", "0.5818376", "0.58139914", "0.58090466", "0.58074903", "0.579133", "0.57589465", "0.5721166", "0.5717393", "0.57145786", "0.57120043", "0.5705226", "0.56961966", "0.56862116", "0.56859386", "0.56859386", "0.5671059", "0.5666507", "0.5659997", "0.5659306", "0.5651763", "0.5651763", "0.5651763", "0.56498945", "0.564796", "0.564796", "0.56444305", "0.56303585", "0.56286913", "0.5628069", "0.56280065", "0.56280065", "0.5627273", "0.5626115", "0.5624886", "0.5624886", "0.5624886", "0.5624886", "0.5624886", "0.5624886", "0.5624886", "0.5624886", "0.5624886", "0.56223774", "0.5620535", "0.5620535", "0.5620535", "0.5620535", "0.5620535", "0.5620535", "0.5620535", "0.5620535", "0.5620535", "0.5620535", "0.5620535", "0.5620535", "0.5620535", "0.5620535", "0.5620535", "0.5620535", "0.5619834", "0.5619777", "0.5619424", "0.5619036", "0.5619036", "0.56154305", "0.56149983", "0.5608377", "0.56054854", "0.56053156", "0.56046426", "0.56046426", "0.56046426", "0.56046426", "0.56046426", "0.56046426", "0.56046426", "0.5603119", "0.5603119", "0.5603119", "0.5603119", "0.5603119", "0.5603119", "0.5603119", "0.5603119", "0.5603119", "0.56023777", "0.56023777", "0.5596309", "0.5596309", "0.5592743" ]
0.0
-1
Called by local thread to get more work
Runnable popBottom() { // is the queue empty? if (bottom == 0) // empty return null; bottom--; Runnable r = tasks[bottom]; int[] stamp = new int[1]; int oldTop = top.get(stamp), newTop = oldTop + 1; int oldStamp = stamp[0], newStamp = oldStamp + 1; // no conflict with thieves if (bottom > oldTop) return r; // possible conflict: try to pop it ourselves if (bottom == oldTop) if (top.compareAndSet(oldTop, newTop, oldStamp, newStamp)) return r; // queue is empty, reset bottom and top to 0 bottom = 0; top.set(0, newStamp); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tTask t = bq.take();\n\n\t\t\t\t\n\t\t\t\tThread.sleep(t.getProcessTime() * 1000);\n\t\t\t\twaitingTime.addAndGet((-1) * t.getProcessTime());\n\t\t\t\tSimulator.getFrame().displayData(\"Client \"+t.getNr()+\" left. \\n\");\n\t\t\t\tsize--;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "private void workOnQueue() {\n }", "private void runWork()\r\n\t{\r\n\t\tRunnable transferPending = new Runnable()\r\n\t\t{\r\n\r\n\t\t\tpublic void run()\r\n\t\t\t{\r\n\t\t\t\ttransferPendingCellData();\r\n\t\t\t\tfireTableDataChanged(); // causes the table to be updated\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\twhile(noStopRequested)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t// refresh the plans vector\r\n\t\t\t\tplans = new java.util.LinkedList(Control.getInstance().getPlanObjects());\r\n\t\t\t\tcreatePendingCellData();\r\n\t\t\t\tSwingUtilities.invokeAndWait(transferPending);\r\n\t\t\t\tThread.sleep(2000L); // the REFRESH rate is set at two seconds\r\n\t\t\t}catch(InvocationTargetException tx)\r\n\t\t\t{\r\n\t\t\t\tlogger.error(\"runWork - InvocationTargetException building cell data: \", tx);\r\n\t\t\t\tstopRequest();\r\n\t\t\t}catch(InterruptedException x)\r\n\t\t\t{\r\n\t\t\t\tThread.currentThread().interrupt();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@Override\n\t\t\tpublic void internalWorked(double work) {\n\t\t\t\t\n\t\t\t}", "protected void internalRun() {\n work();\n }", "protected void doWork() {\n\t\ttry {\n\t\t\twhile ((_cli != null) && _cli.hasNext()) {\n\t\t\t\tConversationMessage cm = _cli.next2();\n\t\t\t\t_messages.add(cm);\n\t\t\t}\n\t\t\tThread.sleep(_DOWORK_WAIT);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void comeBackToWork() {\n\t\t\n\t}", "void consumeWorkUnit();", "worker(long workOn) {\n this.workOn = workOn;\n }", "protected abstract long doWork();", "@Override\n\t\t\tpublic void worked(int work) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void run() {\n adapterOverView.notifyDataSetChanged();\n\n // hide progress bar\n progressBarInOverViewWait.setVisibility(View.GONE);\n\n // change var for false if end getting data - can't start new request if old one is not finish\n isGetingDataFromMSSQL = false;\n }", "private void backgroundThreadProcessing() {\n // [ ... Time consuming operations ... ]\n }", "public void work() {\n\t}", "public void work() {\n\t}", "@Override\r\n\tpublic void run() {\n\t\tint i=0;\r\n\t\twhile(i<1000) {\r\n\t\t\tq.get();\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void myWork() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t// 获取当前要更新的数据\r\n\t\t\t\tList<Data> updateDataList = createUpdateData(currentPage,\r\n\t\t\t\t\t\tpageSize);\r\n\t\t\t\t// 需要更新的数据加入当前数据集合\r\n\t\t\t\tonLoadComplete.onLoadComplete(updateDataList);\r\n\r\n\t\t\t}", "@Override\n public void run() {\n load_remote_data();\n }", "public void run()\n {\n //while (still executing jobs on grid)\n // attempt to sample data\n while (processingJobs)\n {\n //if (not paused)\n // sample data\n if (!paused)\n {\n //get the storage element object appropriate for this thread\n int ind = nodeChoice.indexOf('e');\n String siteno = nodeChoice.substring(ind+1);\n int siteID = Integer.parseInt(siteno);\n site = _gc.findGridSiteByID(siteID);\n StorageElement se = site.getSE();\n //sample time\n long timeMillis = time.getRunningTimeMillis();\n timeSecs = (int)(timeMillis/1000);\n //sample capacity\n capacity = se.getCapacity();\n float usage = (capacity - se.getAvailableSpace())/100;\n /* if (range values identical for last three readings)\n * remove intermediate statistic\n */\n if (usage==prevUsage&&usage==prevPrevUsage)\n { \n int itemCount = seriesSEUVTime.getItemCount();\n if (itemCount>2)\n seriesSEUVTime.remove(itemCount-1);\n } \n prevPrevUsage = prevUsage;\n prevUsage = usage;\n seriesSEUVTime.add(timeSecs, usage);\n pieDataset.setValue(\"Used Storage (GB)\", new Integer((int)((capacity - se.getAvailableSpace())/100)));\n pieDataset.setValue(\"Free Storage (GB)\", new Integer((int)((se.getAvailableSpace())/100)));\n //if (not saving all graphs)\n // try to refresh statistics\n if(!printingAll)\n this.sendDatatoGUI();\n }\n \n //delay next sample by short time\n try\n {\n if (paused)\n sleep(Integer.MAX_VALUE);\n else\n sleep(samplingDelay);\n }\n catch (InterruptedException e)\n {\n //in here if user is wishing to see chart from this object\n this.sendDatatoGUI();\n } \n }\n \n //out here only when all jobs have finished.\n //thread shall sleep for long time but can be \n //re-awakened if user wants to see statistics \n //from this object when run is complete.\n while (true)\n {\n try\n {\n sleep(Integer.MAX_VALUE);\n }\n catch (InterruptedException e)\n {\n //in here if user is wishing to see chart from this object\n this.sendDatatoGUI();\n }\n }\n }", "@Override\n\tvoid finishWork() {\n\t\t\n\t}", "@Override\n\tvoid finishWork() {\n\t\t\n\t}", "@Override\r\n\tpublic void internalWorked(double work) {\n\r\n\t}", "@Override\n public void run() {\n refreshLayout.finishLoadMore(true);\n }", "protected abstract long waitOnQueue();", "@Override\r\n\tpublic void run() {\n\t\twhile (true) {\r\n\t\t\tif (MatchReqPool.size() == 0) {\r\n\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tmatchReqDao = new MatchReqDaoImpl();\r\n\r\n\t\t\t\t\tList<MatchReq> list = matchReqDao.getAllNewReq();\r\n\r\n\t\t\t\t\tIterator<MatchReq> iterator = list.iterator();\r\n\t\t\t\t\tif (list.size() > 0) {\r\n\t\t\t\t\t\tLogger.info(\"Has New Request....\");\r\n\r\n\t\t\t\t\t\twhile (iterator.hasNext()) {\r\n\t\t\t\t\t\t\tMatchReq req = iterator.next();\r\n\t\t\t\t\t\t\treq.setPoint(\"[0:0]\");\r\n\t\t\t\t\t\t\treq.setStatus(MatchStatus.START);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tmatchReqDao.update(list);\r\n\t\t\t\t\t\tMatchReqPool.put(list);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} catch (MatchException em) {\r\n\t\t\t\t\tem.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tsleep(5000);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void run()\n\t{\n\t\tthis.partition();\n\t}", "private void finishWork()\n\t{\n\t\ttry\n\t\t{\n\t\t\tswitch(currentWork.getType())\n\t\t\t{\n\t\t\tcase READ:\n\t\t\t\thandleRead();\n\t\t\t\tbreak;\n\t\t\tcase WRITE: \n\t\t\t\thandleWrite();\n\t\t\t\tbreak;\n\t\t\tcase HASH: \n\t\t\t\thandleHash();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Unknown work type\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tServer.getInstance().addWork(new DeregisterWork(currentWork.getSelectionKey()));\n\t\t\treturn;\n\t\t}\n\t}", "public void doInWorkerThread_2() {\n doInWorkerThread();\n }", "@Override\r\n\tpublic void worked(int work) {\n\t}", "private void dofakework() {\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tvoid startWork() {\n\t\t\n\t}", "@Override\n\tvoid startWork() {\n\t\t\n\t}", "@Override\n public void work() {\n if (!lnd_.isRpcReady())\n return;\n\n if (!started_) {\n // NOTE: start protocol to recover in-flight payments' state:\n // - get all payments w/ 'sending' state from db\n // - get all payments from lnd\n // - find 'sending' payments within lnd payments\n // - update found payments, reset state for not-found\n // - delete all payments from lnd to clear it\n // - started_ = true, can process new payments now\n if (!starting_) {\n starting_ = true;\n List<Job> sendingJobs = dao_.getSendingJobs();\n checkPayments(sendingJobs);\n }\n return;\n }\n\n if (!notified_ && nextWorkTime_ > System.currentTimeMillis())\n return;\n\n // reset\n notified_ = false;\n\n List<Job> pending = dao_.getPendingJobs(System.currentTimeMillis());\n for (Job job: pending) {\n WalletData.SendPayment p = (WalletData.SendPayment)job.objects.get(0);\n if (p.paymentHashHex() != null || p.isKeysend()) {\n queryRoutes(job, p);\n } else if (p.paymentRequest() != null) {\n decodePayment(job, p);\n }\n }\n\n nextWorkTime_ = System.currentTimeMillis() + WORK_INTERVAL;\n }", "@Override\n\tpublic void doWork() {\n\t\tmSource.doWork();\n\t}", "protected void done() {\n // Restore GUI state: we want to do this on the\n // event-dispatching thread regardless of whether the worker\n // succeeded or not.\n om.enableList(true);\n InfoPanel.logoPanel.stop();\n\n try {\n SpItem item = get();\n\n // Perform the following actions of the worker was\n // successful ('get' didn't raise an exception).\n DeferredProgramList.clearSelection();\n om.addNewTree(item);\n buildStagingPanel();\n }\n catch (InterruptedException e) {\n logger.error(\"Execution thread interrupted\");\n }\n catch (ExecutionException e) {\n logger.error(\"Error retriving MSB: \" + e);\n String why = null;\n Throwable cause = e.getCause();\n if (cause != null) {\n why = cause.toString();\n }\n else {\n why = e.toString();\n }\n\n // exceptions are generally Null Pointers or Number Format\n // Exceptions\n logger.debug(why);\n JOptionPane.showMessageDialog(\n null, why, \"Could not fetch MSB\",\n JOptionPane.ERROR_MESSAGE);\n }\n catch (Exception e) {\n // Retaining this catch-all block as one was present in\n // the previous version of this code. Exceptions\n // raised by 'get' should be caught above -- this block\n // is in case the in-QT handling of the MSB fails.\n // (Not sure if that can happen or not.)\n logger.error(\"Error processing retrieved MSB: \" + e);\n JOptionPane.showMessageDialog(\n null, e.toString(), \"Could not process fetched MSB\",\n JOptionPane.ERROR_MESSAGE);\n }\n }", "public void requestExtraSync()\n {\n executor.requestExtraSync();\n }", "public void run() {\n\t\tcurrentTime = 0;\n\t\twhile (currentTime < timeLimit) {\n\t\t\t// add chosen task(s) to the scheduler\n\t\t\taddTaskToServer();\n\t\t\t// calculate the peak hour in every step and empty queue time\n\t\t\tcalculatePeakHour();\n\t\t\tcalculateEmptyQueueTime();\n\t\t\t// show the evolution of the queues\n\t\t\tframe.displayData(getTasks(), generatedTasks, currentTime);\n\t\t\tcurrentTime++;\n\t\t\ttry {\n\t\t\t\tThread.sleep(simulationSpeed);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// the time is over, stop other threads from running\n\t\tframe.displayData(getTasks(), generatedTasks, currentTime);\n\t\tthis.scheduler.stopServers();\n\t\t// wait one more second before showing statistics\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tframe.dispayStatistics();\n\n\t\twriter.close();\n\t}", "@Override\n public void run() {\n mLocalManager.startLEScan(0);\n }", "public void run() {\n // System.out.println(\"bsid\\tiid\\tid\\tmethod name\");\n\n while (true) {\n // get interaction\n Hashtable<Integer, ArrayList<Request>> interaction = father\n .getInteraction();\n\n if (interaction == null) {\n break;\n }\n\n // execute interaction\n executeInteraction(interaction);\n if (reqIndex >= maxNoOfRequests)\n break;\n }\n\n // System.out.println(\"Thread \" + threadId + \" is ending\");\n father.replayFinished();\n }", "@Override\n public void run() {\n loadingMore=true;\n //load data from url\n ArrayList<Recipe> recipe = Utils.fetchListOfRecipeData(stringUrl+current_page);\n ++current_page;\n recipesList.addAll(recipe);\n }", "@Override\n protected void compute() {\n\n if(this.workLoad > 16){\n System.out.println(\"Splitting Workload :: \"+this.workLoad);\n List<MyRecursiveAction> subTasks = new ArrayList<>();\n subTasks.addAll(createSubTasks());\n\n subTasks.forEach(tasks -> {\n tasks.fork();\n });\n }else{\n System.out.println(\"Doing Workload myself :: \"+this.workLoad);\n }\n }", "@Override\n\tpublic void run()\n\t{\n\t\tthis.threadName = Thread.currentThread().getName();\n\t\t\n\t\tsynchronized(currentWorkLock)\n\t\t{\n\t\t\twhile (true)\n\t\t\t{\n\t\t\t\twhile(currentWork == null)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tcurrentWorkLock.wait();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(InterruptedException e)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tidle = false;\n\t\t\t\t\n\t\t\t\tfinishWork();\n\t\t\t\t\n\t\t\t\tcurrentWork = null;\n\t\t\t\tidle = true;\n\t\t\t\t\n\t\t\t\tmanager.signalDone(this);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void run() {\n\t\tint i=0;\r\n\t\twhile(i<1000) {\r\n\t\t\tq.put(i++);\r\n\t\t}\r\n\t}", "void allocateWorker(Work work);", "public void run() {\r\n PooledConnection pConn;\r\n do {\r\n while (needAddConnSize.get() > 0) {\r\n needAddConnSize.decrementAndGet();\r\n if (!waitQueue.isEmpty()) {\r\n try {\r\n if ((pConn = createPooledConn(CONNECTION_USING)) != null)\r\n recycle(pConn);\r\n } catch (Throwable e) {\r\n if (e instanceof SQLException) {\r\n transferException((SQLException) e);\r\n } else {\r\n transferException(new SQLException(e));\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (needAddConnSize.get() == 0 && createConnThreadState.compareAndSet(THREAD_WORKING, THREAD_WAITING))\r\n park(this);\r\n if (createConnThreadState.get() == THREAD_DEAD) break;\r\n } while (true);\r\n }", "protected abstract long waitToTravel();", "@Override\n public void run() {\n numStarted ++;\n\n while (true) {\n try {\n // pull a link from the link queue\n URL url = new URL(SharedLinkQueue.getNextLink());\n\n // download the HTML page text at the given URL\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n BufferedReader download = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n\n // store the HTML page text on the page queue as a string\n String pageText = \"\";\n String inputLine;\n while ((inputLine = download.readLine()) != null) {\n pageText += inputLine;\n }\n SharedPageQueue.addPage(pageText);\n\n download.close();\n } catch (MalformedURLException e) {\n errorCount ++;\n System.out.println(\"MalformedURLException: \" + e.getMessage());\n } catch (IOException e) {\n errorCount ++;\n System.out.println(\"IOException: \" + e.getMessage());\n } catch (InterruptedException e) {\n errorCount ++;\n System.out.println(\"InterruptedException: \" + e.getMessage());\n }\n }\n }", "private synchronized void join() {\n\t\ttry {\n\t\t\tlog.debug(\"Waiting for work...\");\n\n\t\t\twhile (pending > 0) {\n\t\t\t\t// if we put a wait() here... where does the notifyAll() go?\n\t\t\t\tthis.wait();\n\t\t\t\tlog.debug(\"Woke up with pending at {}.\", pending);\n\t\t\t}\n\n\t\t\tlog.debug(\"Work finished.\");\n\t\t}\n\t\tcatch (InterruptedException ex) {\n\t\t\tlog.debug(ex.getMessage(), ex);\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n\t\tpublic void run() {\n long throughputMeasurementStartTime = System.currentTimeMillis();\n\n byte[] reply;\n int reqId;\n int req = 0;\n\n Storage st = new Storage(nTXs);\n\n System.out.println(\"Executing experiment for \" + nTXs + \" ops\");\n\n for (int i = 0; i < nTXs; i++, req++) {\n long last_send_instant = System.nanoTime();\n if (dos) {\n reqId = proxy.generateRequestId((readOnly) ? TOMMessageType.UNORDERED_REQUEST : TOMMessageType.ORDERED_REQUEST); \n proxy.TOMulticast(request, reqId, (readOnly) ? TOMMessageType.UNORDERED_REQUEST : TOMMessageType.ORDERED_REQUEST); \n\n } else {\n \tif(readOnly) {\n \t\treply = proxy.invokeUnordered(request);\n \t} else {\n \t\treply = proxy.invokeOrdered(request);\n \t}\n }\n st.store(System.nanoTime() - last_send_instant);\n\n if (timeout > 0) {\n //sleeps timeout ms before sending next request\n try {\n\t\t\t\t\t\tThread.sleep(timeout);\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\n } \n writeReportJSON(throughputMeasurementStartTime, st); \n }", "void returnWorker(WorkerThread worker) {\n synchronized (idle) {\n idle.add(worker);\n }\n }", "public void run() {\n\t\tHtmlPage page = null;\n\t\tHtmlSelect select = null;\n\t\tHtmlOption option = null;\n\t\tDataStreamWriter connection = null;\n\t\tWebClient client = new WebClient(BrowserVersion.FIREFOX_3);\n\t\t/* eseguo i job assegnati al thread in esecuzione */\n\t\tfor(int j = 0; j < this.jobs.length; j++) {\n\t\t\tint currentJob = this.jobs[j];\n\t\t\ttry {\n\t\t\t\t/* faccio dei tentativi per collegarmi alle pagine */\n\t\t\t\tpage = getPage(client, this.getDataSourceURL());\n\t\t\t\t/* seleziono l'opzione relativa alla regione assegnata al task */\n\t\t\t\tselect = (HtmlSelect) page.getByXPath(\"//select\").get(0);\n\t\t\t\toption = select.getOption(currentJob);\n\t\t\t\toption.setSelected(true);\n\t\t\t\tString regione = option.asText();\n\t\t\t\t/* seleziono l'opzione ed ottengo la pagina aggiornata */\n\t\t\t\tpage = (HtmlPage) select.fireEvent(Event.TYPE_CHANGE).getNewPage();\n\t\t\t\t\n\t\t\t\t/* estraggo i dati e li salvo nello \"storage\" */\n\t\t\t\tconnection = this.storageFacade.getDataStreamWriter();\n\t\t\t\tconnection.openStreamWriter();\n\t\t\t\tthis.extractData(client, connection, page, regione);\n\t\t\t}\n\t\t\tcatch (HTMLCrawlerException e) {\n\t\t\t\tSystem.err.println(\"@ HTMLCrawlerException : Extracting Data Error\");\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\t//client.closeAllWindows();\n\t\t\t\tif (connection != null)\n\t\t\t\t\tconnection.closeStreamWriter();\n\t\t\t}\n\t\t}\n\t\tclient.closeAllWindows();\n\t}", "private void postLocal() {\n reduce3(_nleft); // Reduce global results from neighbors.\n reduce3(_nrite);\n if( _fs != null ) // Block on all other pending tasks, also\n _fs.blockForPending();\n // Finally, must return all results in 'this' because that is the API -\n // what the user expects\n int nlo = _nlo, nhi = _nhi; // Save these before copyOver crushes them\n if( _res == null ) _nlo = -1; // Flag for no local results *at all*\n else if( _res != this ) // There is a local result, and its not self\n copyOver(_res); // So copy into self\n if( nlo==0 && nhi == H2O.CLOUD.size() ) // All-done on head of whole MRTask tree?\n _fr.closeAppendables(); // Final close ops on any new appendable vec\n }", "public void run()\n/* */ {\n/* 534 */ while (!this.dispose)\n/* */ {\n/* */ \n/* 537 */ if (!this.workToDo)\n/* */ {\n/* 539 */ synchronized (this) {\n/* 540 */ try { wait();\n/* */ } catch (InterruptedException e) {\n/* 542 */ e.printStackTrace(SingleThreadedTabuSearch.err); } } } else { synchronized (this) { this.bestMove = SingleThreadedTabuSearch.getBestMove(this.soln, this.moves, this.objectiveFunction, this.tabuList, this.aspirationCriteria, this.maximizing, this.chooseFirstImprovingMove, this.tabuSearch);this.workToDo = false;notifyAll();\n/* */ }\n/* */ }\n/* */ }\n/* */ }", "@Override\n public void run() {\n currentContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n while (true) {\n String newlyReadContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n if (!newlyReadContent.equals(currentContent) || !newlyReadContent.isEmpty()){\n notify(newlyReadContent);\n currentContent = newlyReadContent;\n }\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n//end of modifiable zone..................E/bfb5c4c0-88e6-44fa-9add-89d5b4394004\n }", "private void getData() {\n\n //Adding the method to the queue by calling the method getDataFromServer\n requestQueue.add(getDataFromServer(pos));\n\n }", "@Override\npublic void run() {\n perform();\t\n}", "protected abstract void process(WorkerThread current_, double now_);", "private void run() throws InterruptedException, IOException {\n endpoint.getWcEvents().take();\n\n //process received data\n processRecv();\n\n for (int i=0; i < 1000000; i++) {\n //change data in remote memory\n writeData(i);\n\n //wait for writing remote memory to complete\n endpoint.getWcEvents().take();\n }\n System.out.println(\"ClientWrite::finished!\");\n }", "public void run () {\n\n String tflag = System.getenv (\"CSW_DONT_USE_THREADS\");\n\n if (tflag == null || tflag.isEmpty()) {\n HGWorker hgw = new HGWorker (hg);\n hgw.execute ();\n }\n else {\n hg.populateDlist ();\n hg.setVisible (true);\n }\n\n }", "@Override\r\n\tpublic void doWorkFlowAnalysis() {\n\t\t\r\n\t}", "@NonNull\n @Override\n public Result doWork() {\n\n Log.d(TAG, \"doWork: \");\n savedata();\n createNotification();\n\n OneTimeWorkRequest oneTimeWorkRequest = new OneTimeWorkRequest.Builder(MyWorkManager.class)\n .setInitialDelay(5, TimeUnit.SECONDS).build();\n WorkManager.getInstance().enqueueUniqueWork(\"aaa\", ExistingWorkPolicy.APPEND, oneTimeWorkRequest);\n\n\n return Result.success();\n\n }", "@Override\n\t\tpublic void run() {\n\t\t\tURL url;\n\t\t\ttry {\n\t\t\t\tThread.sleep(3000);\n\t\t\t\turl = new URL(strUrl);\n\t\t\t\tURLConnection con = url.openConnection();\n\t\t\t\tcon.connect();\n\t\t\t\tInputStream input = con.getInputStream();\n\t\t\t\tList<Map<String,Object>> temp = json.getListItems(input);\n\t\t\t\tif(temp != null){\n\t\t\t\t\tif(merger.mergeTwoList(list, temp, direction))\n\t\t\t\t\t\tmyHandler.sendEmptyMessage(1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tmyHandler.sendEmptyMessage(5);\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\twhile(true){\n\t\t\t\tif (client == null){\n\t\t\t\t\tsynchronized(holder){\n\t\t\t\t\t\trestTime = new Date();\n\t\t\t\t\t\tlogger.info(\"进入restRoom\");\n\t\t\t\t\t\tcentralSystem.rest(this);\n\t\t\t\t\t\tholder.wait();\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tthis.proc.process(client);\n client = centralSystem.fetchOne();\t\n if (client != null){\n \tlogger.info(\"领取新任务\");\n } \n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "void work();", "public void run() {\n\t\t\t\twhile (queue.size() > 0) {\n\t\t\t\t\tJobQueue urlList = queue.poll();\n\t\t\t\t\tdoRequests(urlList);\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\tThread thisThread = currentThread();\n\t\t\ttry {\n\t\t\t\tLog.i(\"con\", \"worked3\");\n\t\t\t\tconnectToServer();\n\t\t\t\tif (connected) {\n\t\t\t\t\tsetUpStreams();\n\t\t\t\t\tsendProfile();\n\t\t\t\t\tLog.i(\"con\", \"worked8\");\n\t\t\t\t\twhile (blinker == thisThread) {\n\t\t\t\t\t\tstartListening();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tLog.e(\"cl\", \"Found IO Exception!: \" + e);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tLog.e(\"cl\", \"Found class not found exception!: \" + e);\n\t\t\t}\n\n\t\t}", "public void startThread() {\n\t\tif (this.serverConnectorUsed <= Byte.MAX_VALUE) {\n\t\t\tthis.serverConnectorUsed++;\n\t\t\tLOG.info(\"Running new thread. Now pool is \"+Integer.toString(MAX_THREADS-this.serverConnectorUsed)+\" / \"+Integer.toString(MAX_THREADS));\n\t\t}\n\t}", "@WorkerThread\n long count();", "public void run() {\n for (CrawlTask newTask = queue.pop(level); newTask != null; newTask = queue.pop(level))\n /*while (queue.getQueueSize(currentLevel)>0)*/ {\n//\t\t\tObject newTask = queue.pop(currentLevel);\n // Tell the message receiver what we're doing now\n mainCrawler.receiveMessage(newTask, id);\n // Process the newTask\n process(newTask);\n // If there are less threads running than it could, try\n // starting more threads\n if (tc.getMaxThreads() > tc.getRunningThreads()) {\n try {\n tc.startThreads();\n } catch (Exception e) {\n System.err.println(\"[\" + id + \"] \" + e.toString());\n }\n }\n }\n // Notify the ThreadController that we're done\n tc.finished(id);\n }", "@Override\n public void run() {\n while (running) {\n try {\n if ((System.currentTimeMillis() - heartbeat) > 100 * threadWaiting) {\n if (cache.size() > 0) {\n logger.info(\"Long time no data entry, save the buffer(size:{}) to the database \", cache.size());\n flush();\n }\n }\n TimeUnit.MILLISECONDS.sleep(100 * threadWaiting);\n } catch (InterruptedException e) {\n logger.error(\" InterruptedException error :{}\", e);\n }\n }\n }", "@Override\n\tpublic Void call() throws Exception {\n\t\tList<Integer> list=new ArrayList<>(THRESHOLD);\n\t\tfor(int i=0;i<iterations;i++) {\n\t\t\tlist.add(ThreadLocalRandom.current().nextInt());\n\t\t\tif(list.size() == THRESHOLD) {\n\t\t\t\t//To avoid contention at queue level sending data in chunks.\n\t\t\t\tqueue.put(list);\n\t\t\t\tlist = new ArrayList<>(THRESHOLD);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public void run() {\n add10000();\n }", "private void fetchNextBlock() {\n try {\n \tSearchClient _client = new SearchClient(\"cubansea-instance\");\n \tWebSearchResults _results = _client.webSearch(createNextRequest());\n \t\tfor(WebSearchResult _result: _results.listResults()) {\n \t\t\tresults.add(new YahooSearchResult(_result, cacheStatus+1));\n \t\t\tcacheStatus++;\n \t\t}\n \t\tif(resultCount == -1) resultCount = _results.getTotalResultsAvailable().intValue();\n } catch (IOException e) {\n\t\t\tthrow new TechnicalError(e);\n\t\t} catch (SearchException e) {\n\t\t\tthrow new TechnicalError(e);\n\t\t}\n\t}", "public void run() {\n \tif (counter == POP_SIZE){\n \t\ttemp_wallpapers.clear();\n \t\tadView.requestFreshAd();\n \t\tsaveToDB();\n \t\tcrossover();\n \t\tmutation();\n \t\tcounter = 0;\n \t}\n \t// Make two thumbnails. \n \t// Set nodes that were choose to universal variables to keep track of which ones were selected.\n for (int r = 0; r < 2; r++){\n \tnodes[r] = getNode();\n \tbMap[r] = makeBitmap(nodes[r], r, 50, 50, height, width); \t\n }\n Message msg = mHandler.obtainMessage();\n Bundle b = new Bundle();\n b.putInt(\"total\", 100);\n msg.setData(b);\n mHandler.sendMessage(msg);\n\n }", "@Override\n\t\tpublic void run() {\n\t\t\twhile (flag) {\n\t\t\t\tloadData(App.address+\"GetModel.php?uid=\" + id);//循环加载模式\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1*1000); //暂定延时1s\n\t\t\t\t\t\n\t\t\t\t} catch (InterruptedException 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}\n\t\t\tThread.interrupted();\n\t\t}", "@Override\n public void run() {\n refreshData();\n }", "public void doWork() {\n Thread thread = new Thread( hva != null ? hva : this);\n thread.start();\n }", "@Override\n\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\t getResponse();\n\t\t\t\t\t\t }", "@Override\r\n\tpublic void run() {\n\t\tvfBest();\r\n\t\tif(currQSize > maxQSize){\r\n\t\t\tDTS(Prey.currentTrajectory.peek().qCounter,vFBestNode.qCounter);\r\n\t\t\tSystem.out.println(\"Queue Cut\");\r\n\t\t}\r\n\t\t\r\n\t}", "private void startRead() {\n ExecutorService service = Executors.newFixedThreadPool(this.countReadThreads);\n while (!this.files.isEmpty() || !this.isWorkSearch()) {\n service.submit(this.threads.getReadThread());\n }\n service.shutdown();\n }", "@Override\n\n public void run() {\n\n fetchTickets();\n\n }", "protected abstract void work();", "public void run() {\n \t\t\t\t\tif (pendingChunks.isEmpty()) {\r\n \t\t\t\t\t\tstop();\r\n \t\t\t\t\t\tchunkLoadTask = null;\r\n \t\t\t\t\t\treturn;\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// Ignore this run if fixing is still being performed\r\n \t\t\t\t\tsynchronized (toFix) {\r\n \t\t\t\t\t\tif (toFix.size() > 500) {\r\n \t\t\t\t\t\t\treturn;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// Load a maximum of 20 chunks\r\n \t\t\t\t\tfinal int loadRate = 20;\r\n \t\t\t\t\tfor (int i = 0; i < loadRate && !pendingChunks.isEmpty(); i++) {\r\n \t\t\t\t\t\tPendingChunk pending = pendingChunks.poll();\r\n \t\t\t\t\t\taddForFixing(pending.world.getChunkAt(pending.x, pending.z));\r\n \t\t\t\t\t}\r\n \t\t\t\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "protected void addChannelToReadCompletePendingQueue() {\n/* 354 */ while (!Http2MultiplexHandler.this.readCompletePendingQueue.offer(this)) {\n/* 355 */ Http2MultiplexHandler.this.processPendingReadCompleteQueue();\n/* */ }\n/* */ }", "@Override\r\n public void run() {\r\n CountDown.addItems(3);\r\n while(AH_AgentThread.running) {\r\n try {\r\n int i = 0;\r\n ArrayList<Item> auctionList = getAuctionList();\r\n int size = auctionList.size();\r\n int needed = 3 - auctionList.size();\r\n if(needed > 0){\r\n addItems(needed);\r\n }\r\n //change to while\r\n while(i < size) {\r\n Item listItem = auctionList.get(i);\r\n long currentTime = System.currentTimeMillis();\r\n listItem.remainingTime(currentTime);\r\n long timeLeft = listItem.getRemainingTime();\r\n if (timeLeft <= 0) {\r\n itemResult(listItem);\r\n }\r\n i++;\r\n size = auctionList.size();\r\n }\r\n Thread.sleep(500);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "protected void done() {\n logoPanel.stop();\n qtf.setCursor(normalCursor);\n searchButton.setEnabled(true);\n\n boolean isStatusOK = false;\n try {\n isStatusOK = get();\n } catch (Exception e) {\n }\n\n if (isStatusOK) {\n Thread tableFill = new Thread(msb_qtm);\n tableFill.start();\n\n try {\n tableFill.join();\n } catch (InterruptedException iex) {\n logger.warn(\"Problem joining tablefill thread\");\n }\n\n synchronized (this) {\n Thread projectFill = new Thread(\n qtf.getProjectModel());\n projectFill.start();\n try {\n projectFill.join();\n } catch (InterruptedException iex) {\n logger.warn(\"Problem joining projectfill thread\");\n }\n\n qtf.initProjectTable();\n }\n\n msb_qtm.setProjectId(\"All\");\n qtf.setColumnSizes();\n qtf.resetScrollBars();\n logoPanel.stop();\n qtf.setCursor(normalCursor);\n\n if (queryTask != null) {\n queryTask.cancel();\n }\n\n qtf.setQueryExpired(false);\n String queryTimeout = System.getProperty(\n \"queryTimeout\");\n System.out.println(\"Query expiration: \"\n + queryTimeout);\n Integer timeout = new Integer(queryTimeout);\n if (timeout != 0) {\n // Conversion from minutes of milliseconds\n int delay = timeout * 60 * 1000;\n queryTask = OMPTimer.getOMPTimer().setTimer(\n delay, infoPanel, false);\n }\n }\n }", "@Override\r\n\tpublic void run() {\n\t\twhile(true) {\r\n\t\t\tfor(String data:queueData) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void waitForData() {\n waitForData(1);\n }", "@Override\r\npublic void run() {\n\tfor (int i = 0; i < 10; i++) {\r\n\t\ttry {\r\n\t\t\tbQueue.take();\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\tSystem.out.println(\"------苹果的数量是:\"+\" \"+\" \"+bQueue.size());\r\n\t}\r\n}", "public synchronized void run() {\n\n try {\n\n while(true) {\n\n Thread.sleep(10000);\n\n Socket s = new Socket(server, 8999); // Request list in port 8999\n ObjectInputStream r = new ObjectInputStream(s.getInputStream());\n Message m = (Message) r.readObject();\n peerList = (PeerList) m.peerList; // Store new peer list\n\n for (int i = peerList.getSize() - 1; i >= 0; i--)\n new Thread(new download(peerList.getIP(i), peerList.getPort(i))).start(); // start thread to download image blocks from other peers\n\n }\n\n } catch (Exception e){\n\n // e.printStackTrace();\n\n }\n\n }", "private void esperarPorFatherThread() {\n\t\ttry {\n\t\t\tThread.sleep(50000);\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "private void workerExecute() {\r\n\r\n\t\t_workerStart = System.currentTimeMillis();\r\n\r\n\t\tPhoto[] newPhotos = null;\r\n\r\n\t\tif (_workerStateDir != null) {\r\n\r\n\t\t\t_display.syncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\r\n\t\t\t\t\t// guard against the ui being closed before this runs\r\n\t\t\t\t\tif (_uiContainer.isDisposed()) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tsetStatusMessage(UI.EMPTY_STRING);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t// get all image files, sorting is not yet done\r\n\t\t\tfinal File[] files = _workerStateDir.listFiles(_fileFilter);\r\n\r\n\t\t\t// check if interruption occred\r\n\t\t\tif (_workerCancelled) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tint numberOfImages = 0;\r\n\r\n\t\t\tif (files == null) {\r\n\r\n\t\t\t\t// prevent NPE\r\n\r\n\t\t\t\tnewPhotos = new Photo[0];\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\t// image files are available\r\n\r\n\t\t\t\tnumberOfImages = files.length;\r\n\r\n\t\t\t\tnewPhotos = new Photo[numberOfImages];\r\n\r\n\t\t\t\t// create a photo for each image file\r\n\t\t\t\tfor (int fileIndex = 0; fileIndex < numberOfImages; fileIndex++) {\r\n\r\n\t\t\t\t\tfinal File photoFile = files[fileIndex];\r\n\r\n\t\t\t\t\tPhoto galleryPhoto = PhotoCache.getPhoto(photoFile.getAbsolutePath());\r\n\r\n\t\t\t\t\tif (galleryPhoto == null) {\r\n\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * photo is not found in the photo cache, create a new photo\r\n\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\tgalleryPhoto = new Photo(photoFile);\r\n\r\n\t\t\t\t\t\tPhotoCache.setPhoto(galleryPhoto);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tnewPhotos[fileIndex] = galleryPhoto;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * sort photos with currently selected comparator\r\n\t\t\t\t */\r\n\t\t\t\t_currentComparator = getCurrentComparator();\r\n\t\t\t\tArrays.sort(newPhotos, _currentComparator);\r\n\t\t\t}\r\n\r\n\t\t\t// check if the previous files retrival has been interrupted\r\n\t\t\tif (_workerCancelled) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t_photoFolder = _workerStateDir;\r\n\r\n\t\t\tif (_photoFolder != null) {\r\n\t\t\t\t_newGalleryPositionKey = _photoFolder.getAbsolutePath();\r\n\t\t\t}\r\n\r\n\t\t\tworkerExecute_DisplayImages(newPhotos);\r\n\t\t}\r\n\t}", "public synchronized void retThread(WorkerThread w) {\n\t\tfor (int i = 0; i < this.threadPool.size(); ++i) {\n\t\t\tif (this.threadPool.get(i) == w) {\n\t\t\t\tthis.threadPool.get(i).setAvailable(true);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void run() {\n while (queue.num < 100) {\n try {\n queue.producer();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n }", "@Override\n\t\t\t\t\t\t\tpublic void onOnlineDiveDataProgress(Object result) {\n\n\t\t\t\t\t\t\t}", "public void run(){\t\n\t\tComputingRequest pathCompReq;\n\t\tlong timeIniNanos;\n\t\tlong timeEndNanos;\n\t\tlong timePreNanos=System.nanoTime();\n\t\twhile (running) {\n\t\t\tlog.info(\"Waiting for a new Computing Request to process\");\n\t\t\ttry {\n\t\t\t\tpathCompReq=pathComputingRequestQueue.take();\n\n\t\t\t\tif (analyzeRequestTime){\n\t\t\t\t\tdouble idleTimeV=(System.nanoTime()-timePreNanos)/(double)1000000;\n\t\t\t\t\tif (idleTimeV<20000){\n\t\t\t\t\t\tidleTime.analyze(idleTimeV);\t\n\t\t\t\t\t}\t\n\t\t\t\t}\n\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlog.warn(\"There is no path to compute\");\n\t\t\t\te.printStackTrace();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttimeIniNanos=System.nanoTime();\n\n\t\t\tif (pathCompReq.getRequestList().size()==1){\n\t\t\t\tlog.info(\"Processing New Path Computing request, id: \"+pathCompReq.getRequestList().get(0).toString());\t\n\t\t\t}\n\t\t\t//FIXME: ESTA PARTE PUEDE FALLAR SI MANDAN OTRA COSA QUE NO SEAN IPV4 o GEN END POINTS\n\t\t\t//POR AHORA PONGO TRY CATH Y MANDO NOPATH\n\t\t\tlong sourceIF=0;\n\t\t\tlong destIF=0;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tP2PEndpoints p2pep=null;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry{\n\t\t\t\t//For the IT case\n\t\t\t\tif (ted.isITtedb()){\n\t\t\t\t\tlog.info(\"Processing New Path Computing request, id: \"+pathCompReq.getRequestList().get(0).toString());\t\t\n\t\t\t\t\tsource =(((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints().getSourceEndPoint().getEndPointIPv4TLV().getIPv4address());\n\t\t\t\t\tdest =(((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints().getDestinationEndPoint().getEndPointIPv4TLV().getIPv4address());\n\t\t\t\t}else {\n\t\t\t\t\ttry { //EndPointsIPv4\n\t\t\t\t\t\tif (pathCompReq.getRequestList().get(0).getEndPoints() instanceof GeneralizedEndPoints){\n\t\t\t\t\t\t\tsource = ((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getSourceIP();\n\t\t\t\t\t\t\tdest = ((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getDestIP();\n\t\t\t\t\t\t\tsourceIF=((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getSourceIF();\n\t\t\t\t\t\t\tdestIF=((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getDestIF();\n\t\t\t\t\t\t\tlog.info(\"SubObjeto: EP-Unnumbered Interface: \"+((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).toString());\n\t\t\t\t\t\t\tEndPointsIPv4 ep= new EndPointsIPv4();\n\t\t\t\t\t\t\tep.setDestIP(dest);\n\t\t\t\t\t\t\tep.setSourceIP(source);\n\t\t\t\t\t\t\tpathCompReq.getRequestList().get(0).setEndPoints(ep);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsource = ((EndPointsIPv4)pathCompReq.getRequestList().get(0).getEndPoints()).getSourceIP();\n\t\t\t\t\t\tdest = ((EndPointsIPv4)pathCompReq.getRequestList().get(0).getEndPoints()).getDestIP();\n\t\t\t\t\t\tlog.info(\" XXXX try source: \"+source);\n\t\t\t\t\t\tlog.info(\" XXXX try dest: \"+dest);\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) { //GeneralizedEndPoints\n\t\t\t\t\t\tif (pathCompReq.getRequestList().get(0).getEndPoints() instanceof GeneralizedEndPoints){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tp2pep = ((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints();\t\t\t\n\n\t\t\t\t\t\t\t//P2PEndpoints p2pep = ((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints();\t\t\t\n\t\t\t\t\t\t\tlog.info(\"RequestProcessorThread GeneralizedEndPoints -> sourceDataPath:: \"+p2pep.getSourceEndPoint()+\" destDataPath :: \"+p2pep.getDestinationEndPoint());\n\n\t\t\t\t\t\t\tGeneralizedEndPoints ep= new GeneralizedEndPoints();\n\t\t\t\t\t\t\tep.setP2PEndpoints(p2pep); \t\n\t\t\t\t\t\t\tpathCompReq.getRequestList().get(0).setEndPoints(ep);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsource = p2pep.getSourceEndPoint().getEndPointIPv4TLV().getIPv4address();\n\t\t\t\t\t\t\tdest = p2pep.getDestinationEndPoint().getEndPointIPv4TLV().getIPv4address();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}catch (Exception e){\n\t\t\t\t//If fails, we send NoPath, by now (reasons later...)\n\t\t\t\t//FIXME\n\t\t\t\tlog.info(\"Shouldn't be here except in WLANs\");\n\t\t\t\t//log.info(FuncionesUtiles.exceptionToString(e));\n\t\t\t\t//this.sendNoPath(pathCompReq);\n\t\t\t}\n\t\t\t//In case it is a child PCE with a parent, requestToParent = true\n\t\t\tboolean requestToParent = false;\n\t\t\n\t\t\tif (this.isChildPCE==true){\n\t\t\t\t//Before sending to the parent, check that the source and destinations don't belong to the domain\n\t\t\t\t\n\t\t\t\tif((!(((DomainTEDB)ted).belongsToDomain(source))||(!(((DomainTEDB)ted).belongsToDomain(dest))))){\t\t\t\t\t\n\t\t\t\t\trequestToParent = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t//In case we need to send the request to the parent... this way...\n\t\t\tif (requestToParent == true) {\n\t\t\t\tlog.info(\"Child PCE: Request is going to be fowarded to the Parent PCE\");\n\t\t\t\tPCEPRequest pcreq = new PCEPRequest();\n\t\t\t\tRequest request=pathCompReq.getRequestList().get(0).duplicate();\n\t\t\t\t//FIXME: hay que poner un nuevo requestID, si no... la podemos liar\n\t\t\t\tpcreq.addRequest(request);\n\t\t\t\tPCEPResponse p_rep = cpcerm.newRequest(pcreq);\n\n\n\t\t\t\tif (p_rep==null){\n\t\t\t\t\tlog.warn(\"Parent doesn't answer\");\n\t\t\t\t\tthis.sendNoPath(pathCompReq);\n\t\t\t\t}else {\n\t\t\t\t\tlog.info(\"RESP: \"+p_rep.toString());\n\t\t\t\t}\n\n\t\t\t\tComputingResponse pcepresp = new ComputingResponse();\n\t\t\t\tpcepresp.setResponsetList(p_rep.getResponseList());\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tlog.info(\"Encoding Computing Request\");\n\t\t\t\t\tpcepresp.encode();\n\t\t\t\t} \n\t\t\t\tcatch (PCEPProtocolViolationException e1)\n\t\t\t\t{\n\t\t\t\t\tlog.info(UtilsFunctions.exceptionToString(e1));\n\t\t\t\t}\n\n\n\t\t\t\ttry {\n\t\t\t\t\tlog.info(\"oNE OF THE NODES IS NOT IN THE DOMAIN. Send Request to parent PCE,pcepresp:\"+pcepresp+\",pathCompReq.getOut():\"+pathCompReq.getOut());\n\t\t\t\t\tpathCompReq.getOut().write(p_rep.getBytes());\n\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tlog.warn(\"Parent doesn't answer\");\n\t\t\t\t\tComputingResponse m_resp=new ComputingResponse();\n\t\t\t\t\tResponse response=new Response();\n\t\t\t\t\tRequestParameters rp = new RequestParameters();\n\t\t\t\t\trp.setRequestID(request.getRequestParameters().requestID);\n\t\t\t\t\tresponse.setRequestParameters(rp);\n\t\t\t\t\tNoPath noPath= new NoPath();\n\t\t\t\t\tnoPath.setNatureOfIssue(ObjectParameters.NOPATH_NOPATH_SAT_CONSTRAINTS);\n\t\t\t\t\tNoPathTLV noPathTLV=new NoPathTLV();\n\t\t\t\t\tnoPath.setNoPathTLV(noPathTLV);\t\t\t\t\n\t\t\t\t\tresponse.setNoPath(noPath);\n\t\t\t\t\tm_resp.addResponse(response);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tm_resp.encode();\n\t\t\t\t\t\tpathCompReq.getOut().write(m_resp.getBytes());\n\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te2.printStackTrace();\n\t\t\t\t\t} catch (PCEPProtocolViolationException e3) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te3.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(\"Send NO PATH\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tlog.info(\"Response sent!!\");\n\t\t\t\t//\t}\n\t\t\t\t//}\n\t\t\t\tft=null;\n\n\t\t\t} else {\n\t\t\t\tint of=0;\n\t\t\t\tComputingAlgorithmManager algortithmManager=null;\n\t\t\t\tComputingAlgorithmManagerSSON algortithmManagerSSON=null;\n\t\t\t\tif (pathCompReq.getSvec()!=null){\n\t\t\t\t\tlog.info(\"SVEC Request \");\n\t\t\t\t\tObjectiveFunction objectiveFunctionObject=pathCompReq.getSvec().getObjectiveFunction();\n\t\t\t\t\tif (objectiveFunctionObject!=null){\n\t\t\t\t\t\tof=objectiveFunctionObject.getOFcode();\n\t\t\t\t\t\tlog.info(\"ObjectiveFunction code \"+of);\n\t\t\t\t\t\talgortithmManager =svecAlgorithmList.get(new Integer(of));\n\t\t\t\t\t\tif (algortithmManager==null){\n\t\t\t\t\t\t\tif (objectiveFunctionObject.isPbit()==true){\n\t\t\t\t\t\t\t\tlog.warn(\"OF not supported\");\n\t\t\t\t\t\t\t\t//Send error\n\t\t\t\t\t\t\t\tPCEPError msg_error= new PCEPError();\n\t\t\t\t\t\t\t\tErrorConstruct error_c=new ErrorConstruct();\n\t\t\t\t\t\t\t\tPCEPErrorObject error= new PCEPErrorObject();\n\t\t\t\t\t\t\t\terror.setErrorType(ObjectParameters.ERROR_UNSUPPORTEDOBJECT);\n\t\t\t\t\t\t\t\terror.setErrorValue(ObjectParameters.ERROR_UNSUPPORTEDOBJECT_UNSUPPORTED_PARAMETER);\n\t\t\t\t\t\t\t\terror_c.getErrorObjList().add(error);\n\t\t\t\t\t\t\t\tmsg_error.setError(error_c);\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tmsg_error.encode();\n\t\t\t\t\t\t\t\t\tpathCompReq.getOut().write(msg_error.getBytes());\n\t\t\t\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\tlog.warn(\"IOException sending error to PCC: \"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} catch (PCEPProtocolViolationException e) {\n\t\t\t\t\t\t\t\t\tlog.error(\"Malformed ERROR MESSAGE, CHECK PCE CODE:\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\tbreak;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tlog.warn(\"USING Default SVEC \");\n\t\t\t\t\t\t\t\tDefaultSVECPathComputing dspc=new DefaultSVECPathComputing(pathCompReq,ted);\n\t\t\t\t\t\t\t\tft=new ComputingTask(dspc);\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tlog.info(\"Custom SVEC OF \"+of);\n\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManager.getComputingAlgorithm(pathCompReq, ted);\n\t\t\t\t\t\t\tft=new ComputingTask(cpr);\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tlog.info(\"Default SVEC \");\n\t\t\t\t\t\tDefaultSVECPathComputing dspc=new DefaultSVECPathComputing(pathCompReq,ted);\n\t\t\t\t\t\tft=new ComputingTask(dspc);\t\n\n\t\t\t\t\t}\n\n\n\t\t\t\t}//aqui se acaba el de svec!=null\n\t\t\t\telse {\n\t\t\t\t\tboolean nopath=false;\n\t\t\t\t\tlog.debug(\"Non-svec request\");\n\t\t\t\t\tdouble totalTimeNs=System.nanoTime()-pathCompReq.getTimeStampNs();\n\t\t\t\t\tdouble totalTimeMs=totalTimeNs/1000000L;\n\t\t\t\t\tif (useMaxReqTime==true){\n\t\t\t\t\t\tif (totalTimeMs>pathCompReq.getMaxTimeInPCE()){\n\t\t\t\t\t\t\tlog.info(\"Request execeeded time, sending nopath\");\n\t\t\t\t\t\t\tft=null;\n\t\t\t\t\t\t\tlog.info(\"Mando no path request execeeded time.totalTimeMs \"+totalTimeMs+\"pathCompReq.getMaxTimeInPCE()\");\n\t\t\t\t\t\t\tsendNoPath(pathCompReq);\n\t\t\t\t\t\t\tnopath=true;\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\n\t\t\t\t\tif (nopath==false){\n\t\t\t\t\t\tObjectiveFunction objectiveFunctionObject=pathCompReq.getRequestList().get(0).getObjectiveFunction();\n\t\t\t\t\t\tif (objectiveFunctionObject!=null){ \t\t\t\t\n\t\t\t\t\t\t\tof=objectiveFunctionObject.getOFcode();\n\n\t\t\t\t\t\t\tlog.debug(\"ObjectiveFunction code \"+of);\n\t\t\t\t\t\t\talgortithmManager =singleAlgorithmList.get(new Integer(of));\n\t\t\t\t\t\t\tif (singleAlgorithmListsson != null){\n\t\t\t\t\t\t\t\talgortithmManagerSSON = singleAlgorithmListsson.get(new Integer(of));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (algortithmManager==null && algortithmManagerSSON==null){\n\t\t\t\t\t\t\t\tif (objectiveFunctionObject.isPbit()==true){\n\t\t\t\t\t\t\t\t\tlog.warn(\"OF not supported!!\");\n\t\t\t\t\t\t\t\t\t//Send error\n\t\t\t\t\t\t\t\t\tPCEPError msg_error= new PCEPError();\n\t\t\t\t\t\t\t\t\tErrorConstruct error_c=new ErrorConstruct();\n\t\t\t\t\t\t\t\t\tPCEPErrorObject error= new PCEPErrorObject();\n\t\t\t\t\t\t\t\t\terror.setErrorType(ObjectParameters.ERROR_UNSUPPORTEDOBJECT);\n\t\t\t\t\t\t\t\t\terror.setErrorValue(ObjectParameters.ERROR_UNSUPPORTEDOBJECT_UNSUPPORTED_PARAMETER);\n\t\t\t\t\t\t\t\t\terror_c.getErrorObjList().add(error);\n\t\t\t\t\t\t\t\t\terror_c.getRequestIdList().add(pathCompReq.getRequestList().get(0).getRequestParameters());\n\t\t\t\t\t\t\t\t\tmsg_error.setError(error_c);\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tmsg_error.encode();\n\t\t\t\t\t\t\t\t\t\tpathCompReq.getOut().write(msg_error.getBytes());\n\t\t\t\t\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\tlog.warn(\"IOException sending error to PCC: nons\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} catch (PCEPProtocolViolationException e) {\n\t\t\t\t\t\t\t\t\t\tlog.error(\"Malformed ERROR MESSAGE, CHECK PCE CODE. nons\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\t\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\tnopath=true;\n\t\t\t\t\t\t\t\t\tft=null;\n\t\t\t\t\t\t\t\t\tlog.warn(\"error message informing sent.\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tlog.info(\"Choosing default algotithm 1\");\n\t\t\t\t\t\t\t\t\tlog.info(\"pathCompReq:: \"+pathCompReq.toString());\n\t\t\t\t\t\t\t\t\t//log.info(\"ted:: \"+ted.printTopology());\n\t\t\t\t\t\t\t\t\tDefaultSinglePathComputing dspc=new DefaultSinglePathComputing(pathCompReq,ted);\n\t\t\t\t\t\t\t\t\tft=new ComputingTask(dspc);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tlog.info(\"Choosing algorithm of OF \"+of);\n\t\t\t\t\t\t\t\tboolean ssonAlgorithm = false;\n\t\t\t\t\t\t\t\tif (singleAlgorithmListsson != null){\n\t\t\t\t\t\t\t\t\tif (singleAlgorithmListsson.size()!=0){\n\t\t\t\t\t\t\t\t\t\tssonAlgorithm = true;\n\t\t\t\t\t\t\t\t\t\t//FIXME: Hay que declarar el parametro \"modulation format\".\n\t\t\t\t\t\t\t\t\t\tint mf=0;\n\t\t\t\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManagerSSON.getComputingAlgorithm(pathCompReq, ted, mf);\n\t\t\t\t\t\t\t\t\t\tft=new ComputingTask(cpr);\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\tif (!ssonAlgorithm){\n\t\t\t\t\t\t\t\t\tif (isMultilayer==true){\n\t\t\t\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManager.getComputingAlgorithm(pathCompReq, ted, opCounter);\n\t\t\t\t\t\t\t\t\t\tft=new ComputingTask(cpr);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManager.getComputingAlgorithm(pathCompReq, ted);\n\t\t\t\t\t\t\t\t\t\tft=new ComputingTask(cpr);\n\t\t\t\t\t\t\t\t\t}\n\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\telse {\n\t\t\t\t\t\t\tlog.info(\"Choosing default algotithm 2\");\n\t\t\t\t\t\t\tDefaultSinglePathComputing dspc=new DefaultSinglePathComputing(pathCompReq,ted);\n\t\t\t\t\t\t\tft=new ComputingTask(dspc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (ft!=null)\t{\n\t\t\t\t//Here the task will be executed. n\n\t\t\t\tComputingResponse rep;\n\t\t\t\ttry {\n\t\t\t\t\tft.run();\n\t\t\t\t\trep=ft.get(pathCompReq.getMaxTimeInPCE(),TimeUnit.MILLISECONDS);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\tlog.warn(\"Computation failed: \"+e.getMessage()+\" || \"+UtilsFunctions.exceptionToString(e)+\" || \" +\",MAXTIME: \"+pathCompReq.getMaxTimeInPCE());\n\t\t\t\t\trep=null;\n\t\t\t\t}\n\t\t\t\tlog.info(\"ReppPP:::\"+rep);\n\t\t\t\t//FIXME: There's a trap here. We change Response to send an unnumbered interface\n\t\t\t\tif ((sourceIF!=0)&&(destIF!=0))//Esto ocurre en el caso de recibir UnnumberedInterface EndPoints (Caso VNTM)\n\t\t\t\t\ttrappingResponse(rep, sourceIF, destIF);\n\t\t\t\ttry {\n\t\t\t\t\t//FIXME: WE ARE USING THE MAX TIME IN PCE, REGARDLESS THE TIME IN THE PCE\n\t\t\t\t\t//log.error(\"Esperamos \"+pathCompReq.getMaxTimeInPCE());\n\t\t\t\t\t//FIXME: \t\t\t\t\n\t\t\t\t\tif (rep!=null){\n\t\t\t\t\t\t//log.info(\"rep.getPathList().get(0)\"+rep.getResponse(0).getPathList().get(0));\n\t\t\t\t\t\tComputingResponse repRes=ft.executeReservation();\n\t\t\t\t\t\tif (repRes!=null){\n\t\t\t\t\t\t\trep=repRes;\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttimeEndNanos=System.nanoTime();\n\n\t\t\t\t\t\tdouble compTimeMicroSec=(timeEndNanos-timeIniNanos)/(double)1000;\n\t\t\t\t\t\tdouble toTimeMicroSec=(timeEndNanos-pathCompReq.getTimeStampNs())/(double)1000;\n\t\t\t\t\t\tdouble toTimeMiliSec=(timeEndNanos-pathCompReq.getTimeStampNs())/(double)1000000;\n\t\t\t\t\t\t//In some no path cases, we can retry\n\t\t\t\t\t\t//here it is the right place\n\t\t\t\t\t\tboolean retry=false;\n\t\t\t\t\t\tif ((rep.ResponseList.getFirst().getNoPath()!=null)&&(pathCompReq.getRequestList().getFirst().getRequestParameters().isRetry())){\n\t\t\t\t\t\t\tdouble totalTimeMs=(System.nanoTime()-pathCompReq.getTimeStampNs())/1000000L;\n\t\t\t\t\t\t\tif (pathCompReq.getRequestList().getFirst().getRequestParameters().getMaxRequestTimeTLV()!=null){\n\t\t\t\t\t\t\t\tlong maxReqTimeMs=pathCompReq.getRequestList().getFirst().getRequestParameters().getMaxRequestTimeTLV().getMaxRequestTime();\n\t\t\t\t\t\t\t\tif (totalTimeMs<=maxReqTimeMs){\n\t\t\t\t\t\t\t\t\tif (totalTimeMs<60000){//FIXME: LIMITE DE 1 MINUTO, PARA EVITAR ATAQUE MALINTENCIONADO\n\t\t\t\t\t\t\t\t\t\tlog.info(\"Re-queueing comp req\");\n\t\t\t\t\t\t\t\t\t\tpathComputingRequestRetryQueue.add(pathCompReq);\t\n\t\t\t\t\t\t\t\t\t\tretry=true;\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}\n\t\t\t\t\t\tif (retry==false) {\n\t\t\t\t\t\t\tif (pathCompReq.getPccReqId()!=null){\n\t\t\t\t\t\t\t\trep.getResponse(0).setPccIdreq(pathCompReq.getPccReqId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (pathCompReq.getMonitoring()!=null){\n\t\t\t\t\t\t\t\tlog.info(\"Monitoring Info is requested\");\n\t\t\t\t\t\t\t\tMetricPCE metricPCE=new MetricPCE();\n\t\t\t\t\t\t\t\tPceIdIPv4 pceId=new PceIdIPv4();\n\t\t\t\t\t\t\t\tInet4Address pceIPAddress=null;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tpceIPAddress = (Inet4Address) Inet4Address.getByName(\"0.0.0.0\");\n\t\t\t\t\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpceId.setPceIPAddress(pceIPAddress);\n\t\t\t\t\t\t\t\tmetricPCE.setPceId(pceId);\n\t\t\t\t\t\t\t\tProcTime procTime=new ProcTime();\n\t\t\t\t\t\t\t\tmetricPCE.setProcTime(procTime);\n\t\t\t\t\t\t\t\t//FIXME: Ahora lo pongo en us para unas pruebas\n\t\t\t\t\t\t\t\t//en la RFC esta en ms\n\t\t\t\t\t\t\t\tprocTime.setCurrentProcessingTime((long)toTimeMiliSec);\n\t\t\t\t\t\t\t\t//procTime.setMaxProcessingTime((long)toTimeMiliSec);\n\t\t\t\t\t\t\t\trep.getResponse(0).getMetricPCEList().add(metricPCE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry { \t\t\n\t\t\t\t\t\t\t\tlog.info(rep.toString());\n\t\t\t\t\t\t\t\trep.encode();\n\t\t\t\t\t\t\t} catch (PCEPProtocolViolationException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\tlog.error(\"PROBLEM ENCONDING RESPONSE, CHECK CODE!!\"+e.getMessage());\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\tlog.info(\"Request processeed, about to send response\");\n\t\t\t\t\t\t\t\tpathCompReq.getOut().write(rep.getBytes());\n\t\t\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\tlog.warn(\"Could not send the response \"+e.getMessage());\n\t\t\t\t\t\t\t\tif (rep.getResponse(0).getResConf()!=null){\n\t\t\t\t\t\t\t\t\t//FIXME\n\t\t\t\t\t\t\t\t\tlog.warn(\"If your are using WLANs this is not going to work!!\");\n\t\t\t\t\t\t\t\t\tthis.reservationManager.cancelReservation(rep.getResponse(0).getResConf().getReservationID());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//log.info(\"Response sent number \"+rep.getResponseList().getFirst().getRequestParameters().getRequestID()+\",rep.getPathList().get(0)\"+rep.getResponse(0).getPathList().get(0));\n\n\t\t\t\t\t\t\t/*** STRONGEST: Collaborative PCEs ***/\t\n\t\t\t\t\t\t\t//FIXME: pasarlo al reservation manager\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (collaborationPCESessionManager!=null){\n\t\t\t\t\t\t\t\tif (!(rep.getResponseList().isEmpty())){\n\t\t\t\t\t\t\t\t\tif (!(rep.getResponseList().get(0).getNoPath()!=null)){\n\t\t\t\t\t\t\t\t\t\tPCEPNotification m_not = createNotificationMessage(rep,pathCompReq.getRequestList().get(0).getReservation().getTimer());\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\tcollaborationPCESessionManager.sendNotifyMessage(m_not);\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}\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlog.info(\"COMPUTING TIME execeeded time, sending NOPATH\");\n\t\t\t\t\t\tsendNoPath(pathCompReq);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (analyzeRequestTime){\n\n\t\t\t\tdouble comp=(System.nanoTime()-timeIniNanos)/(double)1000000;\n\t\t\t\tprocTime.analyze(comp);\n\t\t\t\ttimePreNanos=System.nanoTime();\n\t\t\t\tif (comp>maxProcTime){\n\t\t\t\t\tmaxProcTime=comp;\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t}", "public void prefetch() {\n\t}" ]
[ "0.6658683", "0.64603245", "0.63129306", "0.62228703", "0.61833787", "0.6152779", "0.61165905", "0.61124337", "0.610613", "0.60894656", "0.60565245", "0.6042018", "0.60262614", "0.6010486", "0.6010486", "0.59710777", "0.59637713", "0.5953472", "0.5922952", "0.5921765", "0.5914795", "0.5914795", "0.58697283", "0.58527046", "0.5844562", "0.58438134", "0.5830575", "0.58114016", "0.58108324", "0.5798617", "0.5796342", "0.5793393", "0.5793393", "0.57803273", "0.5778796", "0.5773246", "0.57729274", "0.5771063", "0.5768238", "0.57565945", "0.57546985", "0.57466567", "0.57460624", "0.5740285", "0.57389706", "0.57388645", "0.5730879", "0.5730397", "0.57221264", "0.5715746", "0.5713376", "0.57111615", "0.5698893", "0.5696502", "0.5683478", "0.5682338", "0.5681587", "0.56793576", "0.56740546", "0.5661926", "0.5655706", "0.56510323", "0.5649273", "0.5642555", "0.56377256", "0.56377256", "0.5629085", "0.56129247", "0.5612855", "0.5612236", "0.5588638", "0.558552", "0.5578214", "0.5573021", "0.5571573", "0.5568868", "0.5567319", "0.5566983", "0.55667526", "0.5562508", "0.5561967", "0.5561347", "0.55601174", "0.5553213", "0.5538831", "0.5533614", "0.5532837", "0.5531645", "0.55314356", "0.55307305", "0.5529741", "0.55232257", "0.5520497", "0.5519601", "0.5519169", "0.55169576", "0.5514925", "0.55092", "0.55087984", "0.5507432", "0.55051124" ]
0.0
-1
called by thieves to determine whether to try to steal
boolean isEmpty() { return (bottom < top.getReference()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean canPassengerSteer() {\n\t\treturn false;\n\t}", "public boolean poolTransfer() {\n \t\treturn !isTransfering();\n \t}", "boolean isSneaking();", "public boolean canDoStealPlayerResource(Player victim) {\n\t\t if(victim == null || victim.getResourceCardHandSize() <= 0) {\n\t\t\t return false;\n\t\t }\n\t\t return true;\n\t }", "private boolean isGetingOneServerFile(){\n\tRandom ran = new Random();\n\tif((ran.nextInt() % 2) == 0)\n\t\treturn true;\n\telse\n\t\treturn false;\n}", "boolean hasPlainTransferFrom();", "synchronized int attemptSteal(ActivityRecord[] tmp, WorkerContext context,\n StealStrategy s, StealPool pool, ConstellationIdentifier src,\n int size, boolean local) {\n if (src.equals(identifier)) {\n logger.error(\"INTERAL ERROR: attemp steal from self!\",\n new Throwable());\n return 0;\n }\n\n if (!pool.overlap(wrapper.belongsTo())) {\n logger.info(\"attemptSteal: wrong pool!\");\n return 0;\n }\n\n // First steal from the activities that I cannot run myself.\n int offset = wrongContext.steal(context, s, tmp, 0, size);\n if (logger.isDebugEnabled() && !local) {\n logger.debug(\"Stole \" + offset + \" jobs from wrongContext of \"\n + identifier.id + \", size = \" + wrongContext.size());\n }\n\n if (local) {\n\n // Only peers from our own constellation are allowed to steal\n // restricted or stolen jobs.\n if (offset < size) {\n offset += restrictedWrongContext.steal(context, s, tmp, offset,\n size - offset);\n }\n\n if (offset < size) {\n offset += restricted.steal(context, s, tmp, offset,\n size - offset);\n }\n\n if (offset < size) {\n offset += stolen.steal(context, s, tmp, offset, size - offset);\n }\n }\n\n // Anyone may steal a fresh job\n if (offset < size) {\n int n = fresh.steal(context, s, tmp, offset, size - offset);\n offset += n;\n if (logger.isDebugEnabled() && !local) {\n logger.debug(\"Stole \" + n + \" jobs from fresh, size = \"\n + fresh.size());\n }\n\n }\n\n if (offset == 0) {\n // steal failed, no activities stolen\n return 0;\n }\n\n // Success. Trim if necessary\n if (offset != size) {\n tmp = trim(tmp, offset);\n }\n\n // System.out.println(\"ST: \" + identifier + \" returning \" + offset +\n // \" stolen jobs to \" + src);\n\n // Next, remove activities from lookup, and mark and register them as\n // relocated or stolen/exported\n registerLeavingActivities(tmp, offset, src, local);\n\n return offset;\n }", "private boolean shouldPlayerSkipThirst(EntityPlayer player)\n\t{\n\t\treturn player.isSpectator() || player.isCreative();\n\t}", "private boolean preferChunked() {\n return isSecure()\n || isGzip()\n || ctx.pipeline().channel().getClass().getName().startsWith(\"IOUring\");\n }", "private boolean acceptAsExpected()\n {\n return saveExpectedDir_ != null;\n }", "protected boolean continueOnWriteError() {\n/* 348 */ return true;\n/* */ }", "@Override\n\t\tpublic boolean wasRetried()\n\t\t{\n\t\t\treturn false;\n\t\t}", "@Override\n public boolean continueExecuting()\n {\n theEntity.decrementRearingCounter();;\n Boolean continueExecuting = theEntity.getRearingCounter()>0; \n if (!continueExecuting)\n {\n theEntity.setRearing(false);\n theEntity.setAttackTarget(theEntity.getLastAttacker()); // now attack back\n }\n // DEBUG\n if (theEntity.getAITarget() != null)\n {\n System.out.println(\"AIPanic continueExecuting = \"+continueExecuting+\", rearingCounter = \"+theEntity.getRearingCounter()+\", isRearing = \"\n +theEntity.isRearing()+\", Attack Target = \"+theEntity.getAITarget().getClass().getSimpleName()+\", client side = \"+theEntity.worldObj.isRemote);\n }\n else\n {\n System.out.println(\"AIPanic continueExecuting = \"+continueExecuting+\", rearingCounter = \"+theEntity.getRearingCounter()+\", isRearing = \"\n +theEntity.isRearing()+\", Attack Target = null\"+\", client side = \"+theEntity.worldObj.isRemote);\n }\n return (continueExecuting);\n }", "private boolean checkBackend() {\n \ttry{\n \t\tif(sendRequest(generateURL(0,\"1\")) == null ||\n \tsendRequest(generateURL(1,\"1\")) == null)\n \t\treturn true;\n \t} catch (Exception ex) {\n \t\tSystem.out.println(\"Exception is \" + ex);\n\t\t\treturn true;\n \t}\n\n \treturn false;\n \t}", "synchronized boolean ignoreForRecovery() {\n return ignoreForRecovery;\n }", "private boolean sendTryTwice(byte[] head, byte[] chunk) {\n for (int action = 0; action < 2; action++) {\n if (send0(head, chunk)) {\n return true;\n }\n }\n return false;\n }", "public boolean shouldContinueExecuting() {\n return ShulkerEntity.this.getAttackTarget() == null && this.peekTime > 0;\n }", "public abstract boolean isNextBlocked();", "private boolean isBlocked() {\n return block_state <= 1;\n }", "protected boolean canSilkHarvest()\n {\n return true;\n }", "protected boolean canSilkHarvest()\n {\n return true;\n }", "public void stealPlayerResource(Player victim) throws Exception {\n\t\t if(canDoStealPlayerResource(victim) == false) {\n\t\t\t throw new Exception(\"canDoStealPlayerResource() == false\");\n\t\t }\n\t\t resourceCardHand.addCard(victim.giveUpResourceCard());\n\t }", "private boolean checkiforiginal(int copynum) {\n boolean isAvailable = false;\n if (copynum == 0) {\n isAvailable = true;\n }\n return isAvailable;\n }", "public boolean willNotBeResurrected() {\n return state == State.FRESH || state == State.ERROR;\n }", "public boolean isSneaking ( ) {\n\t\treturn extract ( handle -> handle.isSneaking ( ) );\n\t}", "public boolean isBlockingTo(Entity wantsToMoveHere)\n\t{\n\t\treturn false;\n\t}", "@Override\r\n\tboolean isSunk() {\r\n\t\treturn false;\r\n\t}", "private boolean wasTheFileReallyTransferred(SubmittedFile file)\n\t{\n\t\treturn Duration.between(file.getTimeStamp(), Instant.now()).toMillis() >= tailerDelayMillis; \n\t}", "public boolean checkForGourds() {return false;}", "@Override\r\n\tpublic boolean checkIfOnTraineeship() {\n\t\treturn false;\r\n\t}", "protected boolean canSilkHarvest() {\n\t\treturn true;\n\t}", "boolean hasPlainTransfer();", "public boolean isPossibleToTake() {\n if (storage == 0) {\n return false;\n } else {\n return true;\n }\n }", "public boolean isShivering();", "@Override\n\tpublic boolean isRented() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean erTom() {\n\t\treturn (bak == null);\n\t}", "boolean pullingOnce();", "protected boolean processPlayerOfferedTakeback(int gameNum, String playerName, int takebackCount){\n return false;\n }", "public boolean request() {\n\t\tif (inAnySession()) {\n\t\t\tplayer.exchangeSession.reset();\n\t\t\treturn false;\n\t\t}\n\t\t\n if (!PlayerRight.isDeveloper(player) && !PlayerRight.isDeveloper(other)) {\n if (player.playTime < 3000) {\n player.message(\"You cannot trade until you have 30 minutes of playtime. \" + Utility.getTime(3000 - player.playTime) + \" minutes remaining.\");\n return false;\n }\n if (other.playTime < 3000) {\n player.message(other.getName() + \" cannot trade until they have 30 minutes of playtime.\");\n return false;\n }\n }\n\t\t \n\t\tif (getSession(other).isPresent() && getSession(other).get().inAnySession()) {\n\t\t\tplayer.message(\"This player is currently is a \" + type.name + \" with another player.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (Objects.equals(player, other)) {\n\t\t\tplayer.message(\"You cannot \" + type.name + \" with yourself.\");\n\t\t\treturn false;\n\t\t}\n if (PlayerRight.isIronman(player) && !PlayerRight.isDeveloper(other)) {\n player.message(\"You can not \" + type.name + \" as you are an iron man.\");\n return false;\n }\n if (PlayerRight.isIronman(other) && !PlayerRight.isDeveloper(player)) {\n player.message(other.getName() + \" can not be \" + type.name + \"d as they are an iron man.\");\n return false;\n }\n\t\tif (player.exchangeSession.requested_players.contains(other)) {\n\t\t\tplayer.message(\"You have already sent a request to this player.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.locking.locked()) {\n\t\t\tplayer.message(\"You cannot send a \" + type.name + \" request right now.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.locking.locked()) {\n\t\t\tplayer.message(other.getName() + \" is currently busy.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.playerAssistant.busy()) {\n\t\t\tplayer.message(\"Please finish what you are doing before you do that.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.playerAssistant.busy()) {\n\t\t\tplayer.message(other.getName() + \" is currently busy.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.inActivity(ActivityType.DUEL_ARENA)) {\n\t\t\tplayer.message(\"You can not do that whilst in a duel!\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.inActivity(ActivityType.DUEL_ARENA)) {\n\t\t\tother.message(\"You can not do that whilst in a duel!\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!onRequest()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn SESSIONS.add(this);\n\t}", "private boolean canDamoneBlackSaveOtherLeftAhead(Damone damone) {\n return canBlackSaveOtherLeft(damone);\n }", "private void blockedPathNoBeepers() {\n\t\twhile (frontIsBlocked() && noBeepersPresent()) {\n\t\t\tturnLeft();\n\t\t\tturnLeft();\n\t\t} \n\t\tmove();\n\t\tturnRight();\n\t}", "private boolean OK() {\r\n return in == saves[save-1];\r\n }", "@Override\n protected boolean continueOnWriteError() {\n return true;\n }", "public boolean whiteCheck() {\n\t\treturn false;\n\t}", "private void checkInternetConnection() {\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}", "@Override\n\t\tpublic boolean shouldContinueExecuting() {\n\t\t\treturn false;\n\t\t}", "public final boolean giveIfHasnt(Player player) {\n\t\tif (this.hasTool(player))\n\t\t\treturn false;\n\n\t\tthis.give(player);\n\t\treturn true;\n\t}", "public boolean mayPickup(Player debug1) {\n/* 112 */ return true;\n/* */ }", "private boolean isStepBlocked(Step step){\n return step.getOverlays().stream().anyMatch( o -> o instanceof Blockable );\n }", "@Override\n public boolean canContinueWalking() {\n return true;\n }", "protected boolean filterOutObject(PhysicalObject object) {\n return false;\n }", "@Transient\n public boolean isCorrupted(){\n return serverNode == null;\n }", "public abstract boolean isPassable();", "public boolean proceedOnErrors() {\n return false;\n }", "@Override\n public boolean use(CanTakeItem o){\n return false; \n }", "protected boolean isGoedTrio(Speler s1, Speler s2, Speler s3, int ignore) {\r\n if ((s1 != null) && (s2 != null) && (s3 != null)) {\r\n return !s1.isGespeeldTegen(s2, ignore) && !s1.isGespeeldTegen(s3, ignore) && !s2.isGespeeldTegen(s1, ignore)\r\n && !s2.isGespeeldTegen(s3, ignore) && !s3.isGespeeldTegen(s1, ignore)\r\n && !s3.isGespeeldTegen(s2, ignore);\r\n } else {\r\n return false;\r\n }\r\n }", "protected boolean processPlayerWithdrew(int gameNum, String playerName, String offer){\n return false;\n }", "private boolean checkPreviousRefs(String ref) {\n\t\t// Prevent stack overflow, when an unlock happens from inside here:\n\t\tList<String> checked = (List<String>) threadLocalManager.get(TwoFactorAuthenticationImpl.class.getName());\n\t\tif (checked == null) {\n\t\t\tchecked = new ArrayList<String>();\n\t\t\tthreadLocalManager.set(TwoFactorAuthenticationImpl.class.getName(), checked);\n\t\t}\n\t\tif (checked.contains(ref)) {\n\t\t\treturn false; // This allows the required entity to load.\n\t\t}\n\t\ttry {\n\t\t\tchecked.add(ref);\n\t\t\treturn findSiteId(ref);\n\t\t} finally {\n\t\t\tif(!checked.isEmpty()) {\n\t\t\t\tchecked.remove(checked.size()-1);\n\t\t\t}\n\t\t}\n\t}", "public boolean enoughToFilter() {\n/* 468 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "boolean isUsedForReading();", "boolean isUsed();", "boolean isUsed();", "public void isDeceased(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "private boolean canDamoneBlackSaveOtherRightAhead(Damone damone) {\n return canBlackSaveOtherRight(damone);\n }", "private synchronized void trySendToServer() throws SecurityException, KeyPoolException, IdentityException, IOException {\n if (Thread.currentThread().isInterrupted()) return;\n\n // Wait for enough proofs (don't forget we included our proof)\n if (proofs.size() >= HelperConstants.MAX_BYZANTINE_USERS + 1 + 1) {\n // Send records to all known servers\n this.user.trySendLocationReport(new Report(this.myRecord, List.copyOf(proofs)));\n // System.out.printf(\"[epoch %d] Got OK from quorum of servers\\n\", this.myRecord.getEpoch());\n\n // kill all threads\n for(Thread t: ongoingProofRequests) {\n // I will kill myself last\n if (t.isAlive() && Thread.currentThread().getId() != t.getId()) t.interrupt();\n }\n }\n }", "public boolean isCaught() {\n\t\tboolean temp = pokemon.catchCheck();\n\t\tif (temp) {\n\t\t\ttrainer.addPokemon(pokemon);\n\t\t}\n\t\treturn temp;\n\t}", "public boolean needPlayer() {\n\t\treturn false;\n\t}", "public boolean takeControl() {\n\t\tif (!sharedState.isFindingObject()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// returns true if the shared state return in 1\r\n\t\treturn sharedState.getCurrentBehaviour()==1; \r\n\t}", "public boolean istKorrupt() {\n\t\tif (this.korrupt) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean hasPokeStorage();", "public boolean canAttackWithItem() {\n/* 215 */ return false;\n/* */ }", "public boolean whiteCheckmate() {\n\t\treturn false;\n\t}", "private boolean roadCheck(Road road) {\n\t\t\n\t\treturn false;\n\t}", "private boolean isDigestNeeded() {\r\n return !flushProtocolInStack;\r\n }", "public boolean isUforeberegning() {\n\t\treturn false;\n\t}", "protected boolean processTakebackOffered(boolean toUser, int offerIndex, String oppName,\n int takebackCount){\n return false;\n }", "@Override\n\tpublic boolean walkThrough(Direction walkingDirection, unit unit) {\n\t\treturn false;\n\t}", "@Override\n protected boolean preUseCheck(Event event, ItemStack item) {\n return event instanceof EntityShootBowEvent && new Random().nextDouble()<level/20 && ((EntityShootBowEvent)event).getEntity().hasPermission(\"rayken.unsafe\");\n }", "boolean isTransmitting();", "void bypass();", "public void processBlockwiseResponseTransferFailed() {\n //to be overridden by extending classes\n }", "boolean isUsedForWriting();", "public boolean canAttackWithItem() {\n/* 253 */ return false;\n/* */ }", "@Override\r\n\tpublic Boolean SitOn() {\n\t\treturn true;\r\n\t}", "private void canRepair(boolean b) {\n\t\t\n\t}", "private boolean canDamoneBlackSaveItselfLeftAhead(Damone damone) {\n return canBlackSaveItselfLeftAhead(damone);\n }", "public boolean canBeUsed(){\n\t\treturn !(this.isUsed);\n\t}", "protected boolean processPlayerCounteredTakebackOffer(int gameNum, String playerName,\n int takebackCount){\n return false;\n }", "public void run() {\n Set<Philosopher> disabledPhils = new HashSet<Philosopher>();\r\n // True if last philosopher who tried to eat succeed\r\n boolean wasAttemptSuccessful = false;\r\n final long startTime = System.currentTimeMillis();\r\n while (System.currentTimeMillis() - startTime < runningTime) {\r\n if (wasAttemptSuccessful || hungryPhils.isEmpty()) {\r\n hungryPhils.addAll(disabledPhils);\r\n disabledPhils.clear();\r\n }\r\n Philosopher philBeingServed = null;\r\n try {\r\n philBeingServed = hungryPhils.take(); // get phil with the highest priority\r\n disabledPhils.add(philBeingServed);\r\n if (forks.get(philBeingServed.id).attempt(1)) { // Could use tryLock instead\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.println(\"[\" + philBeingServed.id + \"] took left fork\");\r\n }\r\n if (forks.get(philBeingServed.id + 1).attempt(Math.round(Math.random() *\r\n (MAX_ATTEMPT_TIME + 1)))) {\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.println(\"[\" + philBeingServed.id + \"] took right fork\");\r\n }\r\n philBeingServed.giveMeal();\r\n disabledPhils.remove(philBeingServed);\r\n wasAttemptSuccessful = true;\r\n } else {\r\n wasAttemptSuccessful = false;\r\n forks.get(philBeingServed.id).release();\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.println(\"[\" + philBeingServed.id + \"] put left fork\");\r\n }\r\n }\r\n } else {\r\n wasAttemptSuccessful = false;\r\n }\r\n } catch (InterruptedException e) {\r\n if (philBeingServed != null) {\r\n forks.get(philBeingServed.id).release();\r\n forks.get(philBeingServed.id + 1).release();\r\n }\r\n e.printStackTrace();\r\n }\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.printf(\"\\n\\n\"); // Kinda delimiter\r\n FireStarter.isDebugEnabled = false; // Stop producing messages from philosophers\r\n }\r\n }\r\n }", "@Override\r\n\tprotected void processTakeout() throws SGSException {\n\r\n\t}", "public void smell() {\n\t\t\n\t}", "boolean ignoreExternal();", "@Override\n\t public boolean canHarvestBlock(EntityPlayer player, int meta) {\n\t System.out.println(\"CanHarvest\");\n\t return true;\n\t }", "private boolean transmissionFailure(Message[] pumpStates, Message[] pumpControlStates) {\n // Check level readings\n boolean w = false;\n boolean s = false;\n for (int i = 0; i < this.incoming.size(); i++) {\n Message msg = this.incoming.read(i);\n if (msg.getKind().equals(MessageKind.LEVEL_v)) {\n w = true;\n }\n if (msg.getKind().equals(MessageKind.STEAM_v)) {\n s = true;\n }\n }\n\n if (!w || !s) {\n return true;\n }\n\n if (pumpStates.length != this.configuration.getNumberOfPumps()) {\n // Nonsense pump state readings\n return true;\n } else if (pumpControlStates.length != this.configuration.getNumberOfPumps()) {\n // Nonsense pump control state readings\n return true;\n }\n // Done\n return false;\n }", "public boolean passPlayer() {\n if (this.state == 2) {\n if (this.playerBet != this.serverBet && this.money_server != 0 && this.money_player !=0) {\n return false;\n }\n // player moves and is dealer\n if (this.dealer == 1) {\n this.betRound += 1;\n if(this.betRound == 1){\n this.state = 3;\n }\n else{\n this.state = 4;\n }\n return true;\n } else {\n this.state = 1;\n return true;\n }\n } else {\n // server moves and is dealer\n if (this.dealer == 0) {\n this.betRound += 1;\n if(this.betRound == 1){\n this.state = 3;\n }\n else{\n this.state = 4;\n }\n return true;\n } else {\n this.state = 2;\n return true;\n }\n }\n }", "public abstract void isUsedBy(Player player);", "public boolean softAccept(Thing candidate){\n if(thing == null){\n thing = candidate;\n return true;\n }else{\n return false;\n }\n }", "public void tryDeal() {\n if(previousTie){\n previousTie = false;\n emptyHands();\n shuffle();\n }\n if (player.getBet() < 2) {\n errorFlag = true;\n userMessage = \"You must bet a minimum of $2\";\n return;\n } else if (player.getHand().size() > 0) {\n errorFlag = true;\n userMessage = \"You have already been dealt your initial hand\";\n return;\n } else {\n player.setHand(deal(player.getHand(), 2));\n if (player.getHand().get(0).getValue() == player.getHand().get(1).getValue()) {\n //User can split if they want to\n userMessage = \"Hit, Stand or Split\";\n splitDisabled = false;\n }else{\n userMessage = \"Hit or Stand\";\n }\n dealDisabled = true;\n againDisabled = true;\n doubleDisabled = false;\n standDisabled = false;\n hitDisabled = false;\n bettingDisabled = true;\n }\n }", "public abstract boolean teReproduces();", "public boolean areUstilWorking() {\n\t\t\n\t\treturn this.working;\n\t\t\n\t}", "abstract public boolean performNextAttack();" ]
[ "0.6164548", "0.5913162", "0.586361", "0.575072", "0.570324", "0.56490266", "0.56318843", "0.56073713", "0.5596204", "0.55650187", "0.55468994", "0.55248624", "0.5517645", "0.55099916", "0.5494194", "0.54787755", "0.54758704", "0.546735", "0.5463752", "0.54525685", "0.54525685", "0.5437377", "0.54325956", "0.5416042", "0.54024404", "0.53936243", "0.53914994", "0.53864443", "0.5374758", "0.536446", "0.53319144", "0.5320773", "0.5309701", "0.5306365", "0.52844304", "0.5283637", "0.5274939", "0.5268297", "0.5246307", "0.523789", "0.5237805", "0.5230576", "0.5228081", "0.5216545", "0.52021724", "0.5197242", "0.5192463", "0.51775765", "0.51670516", "0.5162537", "0.5155892", "0.5153182", "0.515144", "0.51485443", "0.5146015", "0.5141516", "0.51388496", "0.5135615", "0.5133635", "0.5113114", "0.51126355", "0.51126355", "0.5112544", "0.51110005", "0.5110373", "0.51038814", "0.5095677", "0.5093654", "0.5084527", "0.5079274", "0.50782424", "0.507423", "0.50651443", "0.50599116", "0.50571865", "0.5052856", "0.50514084", "0.5049209", "0.5047769", "0.50407505", "0.50404733", "0.5037273", "0.50361806", "0.5035831", "0.5028282", "0.50250494", "0.50183165", "0.5015091", "0.50139135", "0.5009962", "0.50085324", "0.5003604", "0.50022346", "0.5001131", "0.4999372", "0.4998365", "0.49966836", "0.49929622", "0.49826446", "0.49746415", "0.49716693" ]
0.0
-1
Gets the "asicIdentifier" element
public au.gov.asic.types.DocumentIdentifierType getAsicIdentifier() { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.DocumentIdentifierType target = null; target = (au.gov.asic.types.DocumentIdentifierType)get_store().find_element_user(ASICIDENTIFIER$0, 0); if (target == null) { return null; } return target; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ELEMENTIDENTIFIER getIdentifier();", "java.lang.String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "public String getIdentifier();", "public String getIdentifier();", "ManifestIdentifier getIdentifier();", "I getIdentifier();", "java.lang.String getAoisId();", "public String getIdentifierString();", "public int getIdentifier();", "int getIdentifier();", "public String getIdentifier() {\n/* 222 */ return getValue(\"identifier\");\n/* */ }", "public java.lang.String getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "@XmlElement(name = \"identifier\", namespace = Namespaces.SRV)\n final String getIdentifier() {\n if (LEGACY_XML) {\n final ScopedName name = getScopedName();\n if (name != null) {\n return name.tip().toString();\n }\n }\n return null;\n }", "public final ASN1Identifier getIdentifier()\n {\n return content.getIdentifier();\n }", "public java.util.List<IdentifierDt> getIdentifierElement() { \n\t\tif (myIdentifier == null) {\n\t\t\tmyIdentifier = new java.util.ArrayList<IdentifierDt>();\n\t\t}\n\t\treturn myIdentifier;\n\t}", "@NonNull String identifier();", "public String getIdentifier()\n {\n return identifier;\n }", "public String getControlId() throws PixSourceException {\n\t\t\n\t\tSegment seg = getSegments().getByCodeAndIndex(MSA, 1);\n\t\tint fieldIndex = 1;\n\t\t\n\t\ttry {\n\t\t\treturn seg.forceField(fieldIndex).getAsString();\n\t\t} catch (HL7V2Exception e) {\n\t\t\tthrow new PixSourceException(e);\n\t\t}\n\t}", "org.hl7.fhir.Identifier getIdentifier();", "public String getIdentifier() {\r\n\t\treturn this.identifier;\r\n\t}", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier()\n\t{\n\t\treturn mIdentifier;\n\t}", "public ConstellationIdentifier identifier();", "public String getElementReferenceIdentifier() {\n return this.toString();\n }", "public String getElementId();", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "@Override\n public String getIdentifier() {\n return myIdentity.getIdentifier();\n }", "public Object getIdentifier() {\n return identifier;\n }", "public String getIdentity() { \n\t\treturn getIdentityElement().getValue();\n\t}", "public T getIdentifier();", "public String getIdentifier() {\n\t\treturn identifier;\n\t}", "java.lang.String getSymbolId();", "public org.apache.xmlbeans.XmlAnyURI xgetIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlAnyURI target = null;\n target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(IDENTIFIER$0, 0);\n return target;\n }\n }", "public int getIdentifier()\n {\n return identifier;\n }", "public native String getIdentifier();", "public au.gov.asic.types.DocumentIdentifierType addNewAsicIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.DocumentIdentifierType target = null;\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().add_element_user(ASICIDENTIFIER$0);\n return target;\n }\n }", "@Override\r\n public final Integer getIdentifier() {\r\n return getIdent();\r\n }", "public String getIdentifier(){\n return identifier;\n }", "Identifier getId();", "public int identifier();", "@NotNull\n public String getIdentifier() {\n return this.identifier;\n }", "public byte[] getIdentifier() {\n return identifier;\n }", "public String getIdFromRootElement(final String xml) {\r\n String result = null;\r\n // FIXME PATTERN_OBJID_ATTRIBUTE is static field !\r\n // FIXME this pattern does not work for componentId\r\n Pattern patternObjidAttributeJustForThisMethod = Pattern.compile(\"href=\\\"/ir/[^/]+/([^\\\"]*)\\\"\");\r\n Matcher m1 = patternObjidAttributeJustForThisMethod.matcher(xml);\r\n if (m1.find()) {\r\n result = m1.group(1);\r\n }\r\n\r\n return result;\r\n }", "protected abstract String getIdentifier();", "public String getIdentification ()\n {\n return this.toString();\n }", "public IdentifierNode getIdentifier()throws ClassCastException;", "String getATDocCodeID();", "@Override\n public String identifier() {\n return this.identifier;\n }", "@Nullable\n public String getIdentifier()\n {\n return identifier;\n }", "@Override\n\tpublic String getIdentifier() {\n\t\treturn null;\n\t}", "public String getIdentifier() {\n\t\treturn config.getUIName()+\"[\"+getIndex()+\"]\";\n\t}", "public Number getIrHeaderId() {\n return (Number) getAttributeInternal(IRHEADERID);\n }", "Object getElementID(String elementName) throws Exception;", "public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().find_element_user(IDENTIFIER$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "java.lang.String getRecognitionId();", "public String getElementId() {\n return elementId;\n }", "public java.lang.String getAoisId() {\n java.lang.Object ref = aoisId_;\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 aoisId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public IdentifierDt getAccessionNoElement() { \n\t\tif (myAccessionNo == null) {\n\t\t\tmyAccessionNo = new IdentifierDt();\n\t\t}\n\t\treturn myAccessionNo;\n\t}", "public String getInstanceIdentifier();", "public String getIdentificationPrefix();", "public String identifier(){\n\n if (currentTokenType == TYPE.IDENTIFIER){\n\n return currentToken;\n\n }else {\n throw new IllegalStateException(\"Current token is not an identifier! current type:\" + currentTokenType);\n }\n }", "org.hl7.fhir.String getDeviceIdentifier();", "public org.hl7.fhir.Identifier getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Identifier target = null;\n target = (org.hl7.fhir.Identifier)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public java.lang.String getAoisId() {\n java.lang.Object ref = aoisId_;\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 aoisId_ = s;\n return s;\n }\n }", "com.google.protobuf.ByteString\n getAoisIdBytes();", "public String getIdCard() {\n\t\treturn idCard;\n\t}", "public int getAId() {\n return aId_;\n }", "public String getIdentifier() {\n try {\n return keyAlias + \"-\" + toHexString(\n MessageDigest.getInstance(\"SHA1\").digest(keyStoreManager.getIdentifierKey(keyAlias).getEncoded()));\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public String getIID();", "public String getIDName();", "int getAid();", "public String getIdCard() {\r\n return idCard;\r\n }", "public String getIdcard() {\r\n return idcard;\r\n }", "public String getIdcard() {\r\n return idcard;\r\n }", "public String getIdcard() {\r\n return idcard;\r\n }", "public String getStringIdentifier() { return \"\"; }", "public String getaId() {\n return aId;\n }", "public String getIdCard() {\n return idCard;\n }", "public String getIdcard() {\n return idcard;\n }", "java.lang.String getID();", "public java.lang.String getIdentifier() {\n java.lang.Object ref = identifier_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n identifier_ = s;\n }\n return s;\n }\n }", "public int getAId() {\n return instance.getAId();\n }", "String getMspId();", "public java.lang.String getIdentifierValue() {\r\n return localIdentifierValue;\r\n }", "AlgorithmIdentifier getAlgorithmIdentifier();", "public String getNamedId();" ]
[ "0.74925435", "0.6774767", "0.6598246", "0.6598246", "0.6598246", "0.6598246", "0.6598246", "0.6598246", "0.6598246", "0.6522161", "0.6522161", "0.6437032", "0.6436733", "0.6420916", "0.6419796", "0.63952607", "0.6387311", "0.6376862", "0.636023", "0.63583595", "0.63536024", "0.61896545", "0.6109977", "0.6100466", "0.60796934", "0.60755897", "0.60701436", "0.6068452", "0.6059744", "0.6057138", "0.6045068", "0.60438764", "0.6040787", "0.6040787", "0.6040787", "0.6040787", "0.6040787", "0.6040787", "0.6040787", "0.6040787", "0.60360104", "0.59928274", "0.599237", "0.598855", "0.5986271", "0.5976723", "0.5931264", "0.5925145", "0.5922445", "0.5920972", "0.5916189", "0.58893", "0.58878857", "0.5881516", "0.58759505", "0.58549976", "0.58424693", "0.5838768", "0.5832766", "0.5813173", "0.57760054", "0.5757168", "0.57527393", "0.57497305", "0.57474804", "0.5734956", "0.57121396", "0.57054573", "0.56938463", "0.5691184", "0.569053", "0.5682239", "0.56815416", "0.56587887", "0.565613", "0.56528074", "0.56401557", "0.5639037", "0.561099", "0.5609495", "0.5607646", "0.56075126", "0.5597528", "0.5590442", "0.558779", "0.5583519", "0.55822146", "0.55822146", "0.55822146", "0.55791974", "0.5561761", "0.5554192", "0.5550297", "0.5531034", "0.55301094", "0.55140203", "0.55131394", "0.55117124", "0.55107135", "0.55068237" ]
0.7414263
1
Sets the "asicIdentifier" element
public void setAsicIdentifier(au.gov.asic.types.DocumentIdentifierType asicIdentifier) { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.DocumentIdentifierType target = null; target = (au.gov.asic.types.DocumentIdentifierType)get_store().find_element_user(ASICIDENTIFIER$0, 0); if (target == null) { target = (au.gov.asic.types.DocumentIdentifierType)get_store().add_element_user(ASICIDENTIFIER$0); } target.set(asicIdentifier); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdentifier(String value) {\n/* 214 */ setValue(\"identifier\", value);\n/* */ }", "public native void setIdentifier (String identifier);", "public void setIdentifier(IdentifierNode identifier);", "void setIdentifier(org.hl7.fhir.Identifier identifier);", "public void setIdentifier(java.lang.String identifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(IDENTIFIER$0);\n }\n target.setStringValue(identifier);\n }\n }", "private void setAId(int value) {\n \n aId_ = value;\n }", "public void xsetIdentifier(org.apache.xmlbeans.XmlAnyURI identifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlAnyURI target = null;\n target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_element_user(IDENTIFIER$0);\n }\n target.set(identifier);\n }\n }", "public final void setIdentifier(ASN1Identifier id)\n {\n content.setIdentifier(id);\n return;\n }", "public void setIdentifier( String pIdentifier )\n {\n identifier = pIdentifier;\n }", "public void setIdAuthority(String theString) {\n\t \r\n }", "@Override\n\t\tpublic void setId(final String identifier) {\n\t\t}", "private void setAid(int value) {\n \n aid_ = value;\n }", "void addId(II identifier);", "@Override\n public void setElementId(String arg0)\n {\n \n }", "@Override\r\n\t\tpublic void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public Builder setIdentifier(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n identifier_ = value;\n onChanged();\n return this;\n }", "private void setIdentifier(final String identifier) {\n if (identifier != null) {\n setIdentifiers(Collections.singleton(new DefaultIdentifier(identifier)));\n }\n }", "@Override\r\n\t\tpublic void setIdAttribute(String name, boolean isId) throws DOMException\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void setIdentityIdentifier(final Identifier identifier) {\r\n this.identityIdentifier = identifier;\r\n }", "public void setIdentifier(org.hl7.fhir.Identifier identifier)\n {\n generatedSetterHelperImpl(identifier, IDENTIFIER$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "public void setIrHeaderId(Number value) {\n setAttributeInternal(IRHEADERID, value);\n }", "public void setId(String anId) {\n _theId = anId;\n }", "ELEMENTIDENTIFIER getIdentifier();", "void setIdNumber(String idNumber);", "void setIdentityId(String identityId);", "public void setId(String value) {\n setAttributeInternal(ID, value);\n }", "public void setId(String value) {\n setAttributeInternal(ID, value);\n }", "public void setIdentifier(au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier identifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().find_element_user(IDENTIFIER$2, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().add_element_user(IDENTIFIER$2);\n }\n target.set(identifier);\n }\n }", "public void setIdCard(String idCard) {\n\t\tthis.idCard = idCard;\n\t}", "public au.gov.asic.types.DocumentIdentifierType addNewAsicIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.DocumentIdentifierType target = null;\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().add_element_user(ASICIDENTIFIER$0);\n return target;\n }\n }", "public void setID(beaver.Symbol symbol) {\n if(symbol.value != null && !(symbol.value instanceof String))\n throw new UnsupportedOperationException(\"setID is only valid for String lexemes\");\n tokenString_ID = (String)symbol.value;\n IDstart = symbol.getStart();\n IDend = symbol.getEnd();\n }", "public Builder setAoisId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n aoisId_ = value;\n onChanged();\n return this;\n }", "public void setIdcard(String idcard) {\r\n this.idcard = idcard;\r\n }", "public ImagingStudy setIdentifier(java.util.List<IdentifierDt> theValue) {\n\t\tmyIdentifier = theValue;\n\t\treturn this;\n\t}", "public void setIdcard(String idcard) {\n\t\tthis.idcard = idcard;\n\t}", "public void setID() throws IOException;", "public void setIdAttribute(String idAttribute) {\n this.idAttribute = idAttribute;\n }", "public Mapping setIdentity( String theId) {\n\t\tmyIdentity = new IdDt(theId); \n\t\treturn this; \n\t}", "public ImagingStudy setAccessionNo(IdentifierDt theValue) {\n\t\tmyAccessionNo = theValue;\n\t\treturn this;\n\t}", "void xsetSetupID(com.microsoft.schemas.office.x2006.digsig.STUniqueIdentifierWithBraces setupID);", "public void setID(final char iid) {\n this.id = iid;\n }", "public void setIdentifier(String identifier) {\n this.identifier = identifier;\n }", "public void setIdentifier(String identifier) {\n this.identifier = identifier;\n }", "public void setIdentifier(String identifier) {\n this.identifier = identifier;\n }", "public void setIdentifier(String identifier) {\n this.identifier = identifier;\n }", "public void setID(String id) {\r\n element.setAttributeNS(WSU_NS, WSU_PREFIX + \":Id\", id);\r\n }", "public static void setIccid(Object iccid) {\n\t\t\n\t}", "public void setMusicCDIdentifier(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), MUSICCDIDENTIFIER, value);\r\n\t}", "public void setIdAutenticacao(String idAutenticacao) {\n\t\tthis.idAutenticacao = idAutenticacao;\n\t}", "public void setDotaId(Number value) {\n setAttributeInternal(DOTAID, value);\n }", "public static void setAisId (int zAisId) {\n aisId = zAisId;\n }", "public void setIdentifier(String identifier) {\n\t\tthis.identifier = identifier;\n\t}", "org.hl7.fhir.Identifier addNewIdentifier();", "public void setId(String i) {\n\t\tid = i;\n\t}", "public void setIdentifierArray(org.hl7.fhir.Identifier[] identifierArray)\n {\n check_orphaned();\n arraySetterHelper(identifierArray, IDENTIFIER$0);\n }", "public void setName(Identifier name) throws SourceException;", "void setNilID();", "void setId(String id);", "void setId(String id);", "void setId(String id);", "public final void setIdentity() {\n \t\n this.m00 = 1.0F;\n this.m01 = 0.0F;\n this.m02 = 0.0F;\n this.m10 = 0.0F;\n this.m11 = 1.0F;\n this.m12 = 0.0F;\n this.m20 = 0.0F;\n this.m21 = 0.0F;\n this.m22 = 1.0F;\n }", "void xsetID(org.apache.xmlbeans.XmlString id);", "@Override\r\n\t\tpublic void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void setIdentification(String identification) {\n\n\t}", "public void setIdentifier(TelemetryIdentifier value) {\n if (value != null) {\n this.identifier_ = value;\n this.bitField0_ |= 1;\n return;\n }\n throw new NullPointerException();\n }", "void setId(int val);", "public void markUseIdentifierNameString() {\n useIdentifierNameString = true;\n }", "public abstract void setAcma_id(java.lang.Long newAcma_id);", "public void setHeaderId(Number value) {\n setAttributeInternal(HEADERID, value);\n }", "public void setHeaderId(Number value) {\n setAttributeInternal(HEADERID, value);\n }", "@DISPID(-2147417110)\n @PropPut\n void id(\n java.lang.String rhs);", "public IBusinessObject setAccessIID(IIID access)\n throws ORIOException;", "public void xsetIdTag(ocpp.IdToken idTag)\n {\n synchronized (monitor())\n {\n check_orphaned();\n ocpp.IdToken target = null;\n target = (ocpp.IdToken)get_store().find_element_user(IDTAG$0, 0);\n if (target == null)\n {\n target = (ocpp.IdToken)get_store().add_element_user(IDTAG$0);\n }\n target.set(idTag);\n }\n }", "public void xsetOID(org.apache.xmlbeans.XmlString oid)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(OID$12);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(OID$12);\r\n }\r\n target.set(oid);\r\n }\r\n }", "public ImagingStudy setAccessionNo( String theSystem, String theValue) {\n\t\tmyAccessionNo = new IdentifierDt(theSystem, theValue); \n\t\treturn this; \n\t}", "public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID);", "public void setIdentifierKey(java.lang.String param) {\r\n localIdentifierKeyTracker = true;\r\n\r\n this.localIdentifierKey = param;\r\n\r\n\r\n }", "public au.gov.asic.types.DocumentIdentifierType getAsicIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.DocumentIdentifierType target = null;\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().find_element_user(ASICIDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "@JsProperty(name = \"id\")\n public native void setId(String value);", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public void setId(String id) {\n this.ide = id;\n //System.out.println(\"linkyhandler setid \" + ide);\n }", "private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}", "public Mapping setIdentity(IdDt theValue) {\n\t\tmyIdentity = theValue;\n\t\treturn this;\n\t}", "protected static void setIdentityAsserter(com.tangosol.net.security.IdentityAsserter asserter)\n {\n __s_IdentityAsserter = asserter;\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setOID(java.lang.String oid)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OID$12);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(OID$12);\r\n }\r\n target.setStringValue(oid);\r\n }\r\n }", "public void setIdentifier(String identifier) {\n this.identifier = identifier == null ? null : identifier.trim();\n }", "protected void sequence_AttributeReference_SetAssignment(ISerializationContext context, AttributeReference semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public void setId(String s) {\n\t\tid = s;\n\t}", "public void setIdCardNo(String idCardNo) {\n\t\tthis.idCardNo = idCardNo;\n\t}", "void setId(java.lang.String id);", "public void setIdentifierValue(java.lang.String param) {\r\n localIdentifierValueTracker = true;\r\n\r\n this.localIdentifierValue = param;\r\n\r\n\r\n }", "public void setIdCardNo(String idCardNo) {\n this.idCardNo = idCardNo;\n }", "public final void setIdentity() {\n m00 = 1f;\n m11 = 1f;\n m22 = 1f;\n m33 = 1f;\n\n m01 = 0f;\n m02 = 0f;\n m03 = 0f;\n m10 = 0f;\n m12 = 0f;\n m13 = 0f;\n m20 = 0f;\n m21 = 0f;\n m23 = 0f;\n m30 = 0f;\n m31 = 0f;\n m32 = 0f;\n }", "void xsetServiceId(com.microsoft.schemas._2003._10.serialization.Guid serviceId);", "public void setIdentificationPrefix(String prefix);" ]
[ "0.62265086", "0.61686224", "0.60503334", "0.5983001", "0.59594387", "0.5921621", "0.5917237", "0.5846487", "0.5800852", "0.57791835", "0.56719816", "0.5666698", "0.5664589", "0.56485015", "0.56119806", "0.5540877", "0.5534781", "0.5513515", "0.54933393", "0.5482873", "0.54718304", "0.54530275", "0.54116994", "0.5406102", "0.540125", "0.53906274", "0.53906274", "0.5385814", "0.5360579", "0.5323614", "0.53107303", "0.5307915", "0.530224", "0.5296909", "0.5272068", "0.5258256", "0.5257769", "0.5252651", "0.5247467", "0.5228106", "0.5224636", "0.5223947", "0.5223947", "0.5223947", "0.5223947", "0.52123356", "0.5190446", "0.5160639", "0.5141064", "0.5124573", "0.5120229", "0.51149404", "0.5107887", "0.5103622", "0.50809544", "0.5069086", "0.50629187", "0.50619215", "0.50619215", "0.50619215", "0.5057643", "0.50515217", "0.50407314", "0.5033968", "0.50134605", "0.5009101", "0.50079477", "0.50043905", "0.50008094", "0.50008094", "0.49947947", "0.49895614", "0.49830106", "0.4982148", "0.49762085", "0.49703917", "0.49652317", "0.4957619", "0.4956054", "0.49505183", "0.49505183", "0.49505183", "0.49500266", "0.49485466", "0.49377406", "0.49377024", "0.49343348", "0.49343348", "0.49343348", "0.49285924", "0.49267435", "0.49252075", "0.492219", "0.49144682", "0.49141008", "0.49095798", "0.4909367", "0.4908104", "0.4906723", "0.49055824" ]
0.74489594
0
Appends and returns a new empty "asicIdentifier" element
public au.gov.asic.types.DocumentIdentifierType addNewAsicIdentifier() { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.DocumentIdentifierType target = null; target = (au.gov.asic.types.DocumentIdentifierType)get_store().add_element_user(ASICIDENTIFIER$0); return target; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "org.hl7.fhir.Identifier addNewIdentifier();", "void addId(II identifier);", "private IIdentifierElement createIdentifier() throws RodinDBException {\n\t\tfinal IContextRoot ctx = createContext(\"ctx\");\n\t\treturn ctx.createChild(ICarrierSet.ELEMENT_TYPE, null, null);\n\t}", "public org.hl7.fhir.Identifier addNewIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Identifier target = null;\n target = (org.hl7.fhir.Identifier)get_store().add_element_user(IDENTIFIER$0);\n return target;\n }\n }", "public org.hl7.fhir.Identifier addNewIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Identifier target = null;\n target = (org.hl7.fhir.Identifier)get_store().add_element_user(IDENTIFIER$0);\n return target;\n }\n }", "public IdentifierDt addIdentifier() {\n\t\tIdentifierDt newType = new IdentifierDt();\n\t\tgetIdentifier().add(newType);\n\t\treturn newType; \n\t}", "ELEMENTIDENTIFIER getIdentifier();", "public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier addNewIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().add_element_user(IDENTIFIER$2);\n return target;\n }\n }", "public com.walgreens.rxit.ch.cda.II addNewId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.II target = null;\n target = (com.walgreens.rxit.ch.cda.II)get_store().add_element_user(ID$6);\n return target;\n }\n }", "public Builder clearIdentifier() {\n bitField0_ = (bitField0_ & ~0x00000001);\n identifier_ = getDefaultInstance().getIdentifier();\n onChanged();\n return this;\n }", "IPayerEntry addId(II value);", "IdentifiersType createIdentifiersType();", "public ocpp.IdTagInfo addNewIdTagInfo()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ocpp.IdTagInfo target = null;\n target = (ocpp.IdTagInfo)get_store().add_element_user(IDTAGINFO$0);\n return target;\n }\n }", "void addId(String root);", "void addId(String root, String extension);", "protected void NewIdentity()\n\t{\n\t\tthis.identity=0L;\n\t\tNodeReference nodeRef = getNodeReference();\n\t\tnodeRef.appendSubscript(0L);\n\t\tnodeRef.appendSubscript(\"id\");\n\t\tthis.identity=nodeRef.increment(1);\n\t}", "public void setAsicIdentifier(au.gov.asic.types.DocumentIdentifierType asicIdentifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.DocumentIdentifierType target = null;\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().find_element_user(ASICIDENTIFIER$0, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().add_element_user(ASICIDENTIFIER$0);\n }\n target.set(asicIdentifier);\n }\n }", "public ImagingStudy addIdentifier( String theSystem, String theValue) {\n\t\tif (myIdentifier == null) {\n\t\t\tmyIdentifier = new java.util.ArrayList<IdentifierDt>();\n\t\t}\n\t\tmyIdentifier.add(new IdentifierDt(theSystem, theValue));\n\t\treturn this; \n\t}", "public java.util.List<IdentifierDt> getIdentifierElement() { \n\t\tif (myIdentifier == null) {\n\t\t\tmyIdentifier = new java.util.ArrayList<IdentifierDt>();\n\t\t}\n\t\treturn myIdentifier;\n\t}", "Rule STIdentifier() {\n // Push 1 IdentifierNode onto value stack\n return Sequence(\n Sequence(\n FirstOf(Letter(), \"_\"),\n ZeroOrMore(FirstOf(IndentChar(), \"-\"))),\n actions.pushIdentifierNode(),\n WhiteSpace());\n }", "II addId();", "java.lang.String getIdentifier();", "public au.gov.asic.types.DocumentIdentifierType getAsicIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.DocumentIdentifierType target = null;\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().find_element_user(ASICIDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public StructuredId createSubId()\r\n {\r\n return new StructuredId(this, id + \".\" + numSubIds.incrementAndGet());\r\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "@Override\n\tpublic String getIdentifier() {\n\t\treturn null;\n\t}", "public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier addNewCustomerIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().add_element_user(CUSTOMERIDENTIFIER$2);\n return target;\n }\n }", "@Override\r\n\tpublic void setAddNewObjectIdentifier(String arg0, Long arg1)\r\n\t{\n\r\n\t}", "void addIdentifiersToXPath(StringBuffer out, \n\t\tElement el2, Map<Namespace, String> ns2Prefix) {\n\tAttributeUniqenessAnalyser anal = new AttributeUniqenessAnalyser();\n\tAttDataObj uniqueAttr = anal.getUniqueAttributeForElement(el2);\n\tif(uniqueAttr!=null){\n\t\tout.append(\"[@\");\n\t\tout.append(getAttStrForAtt(uniqueAttr.att)).append(\"='\");\n\t\tString val = el2.getAttribute(uniqueAttr.name, uniqueAttr.ns).getValue();\n\t\tout.append(escape(val)).append(\"']\");\n\t\t\n\t}else {\n\t\tint indx =anal.getIndexForElementAmongstSiblings(el2);\n\t\tif(indx!=-1)\n\t\tout.append(\"[\").append(indx)\n\t\t.append(\"]\");\n\t}\n}", "@Override\r\n protected final void append(final ToStringBuilder builder) {\r\n builder.append(\"Ident\", this.ident);\r\n appendId(builder);\r\n }", "public String getIdentifierString();", "public au.gov.asic.types.SoapSoftwareIdentifierType addNewSoap()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.SoapSoftwareIdentifierType target = null;\n target = (au.gov.asic.types.SoapSoftwareIdentifierType)get_store().add_element_user(SOAP$2);\n return target;\n }\n }", "public gov.ucore.ucore._2_0.StringType addNewSystemIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.StringType target = null;\n target = (gov.ucore.ucore._2_0.StringType)get_store().add_element_user(SYSTEMIDENTIFIER$0);\n return target;\n }\n }", "@Override\n\tpublic String getIdentification() {\n\t\treturn \"\";\n\t}", "public org.hl7.fhir.Identifier insertNewIdentifier(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Identifier target = null;\n target = (org.hl7.fhir.Identifier)get_store().insert_element_user(IDENTIFIER$0, i);\n return target;\n }\n }", "public void clearIdentifier() {\n this.identifier_ = null;\n this.bitField0_ &= -2;\n }", "public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return _ENUMERATIONS[0];\n }", "public void setIdentifier(String value) {\n/* 214 */ setValue(\"identifier\", value);\n/* */ }", "identifierList getIdentifierList();", "java.lang.String getAoisId();", "public String getIdentificationPrefix();", "private void generateID(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (String t : terms.keySet())\n\t\t\tsb.append(t.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, t.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tfor (String s : sources)\n\t\t\tsb.append(s.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, s.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tif (yearFrom > -1) sb.append(\"_\" + yearFrom);\n\t\tif (yearTo > -1) sb.append(\"_\" + yearTo);\n\t\tif (useCompounds) sb.append(\"_COMP\");\n\t\tif (useStopwords) sb.append(\"_STOP\");\n\t\tsb.append(\"_CNT\" + contextSize);\n\t\tsb.append(\"_\" + System.currentTimeMillis());\n\t\tthis.id = sb.toString();\n\t}", "public String getIdentifier();", "public String getIdentifier();", "public void mergeIdentifier(TelemetryIdentifier value) {\n if (value != null) {\n TelemetryIdentifier telemetryIdentifier = this.identifier_;\n if (telemetryIdentifier == null || telemetryIdentifier == TelemetryIdentifier.getDefaultInstance()) {\n this.identifier_ = value;\n } else {\n this.identifier_ = (TelemetryIdentifier) ((TelemetryIdentifier.Builder) TelemetryIdentifier.newBuilder(this.identifier_).mergeFrom((GeneratedMessageLite) value)).buildPartial();\n }\n this.bitField0_ |= 1;\n return;\n }\n throw new NullPointerException();\n }", "public ImagingStudy addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) {\n\t\tif (myIdentifier == null) {\n\t\t\tmyIdentifier = new java.util.ArrayList<IdentifierDt>();\n\t\t}\n\t\tmyIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel));\n\t\treturn this; \n\t}", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "public final ASN1Identifier getIdentifier()\n {\n return content.getIdentifier();\n }", "public Builder setIdentifier(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n identifier_ = value;\n onChanged();\n return this;\n }", "private Widget buildElementWithVSACExpansionIdentifier() {\r\n VerticalPanel mainPanel = new VerticalPanel();\r\n mainPanel.getElement().setId(\"mainPanel_VerticalPanel\");\r\n mainPanel.setWidth(\"95%\");\r\n//\t\tmainPanel.add(buildDefaultExpIdentifierPanel());\r\n mainPanel.add(new SpacerWidget());\r\n mainPanel.add(new SpacerWidget());\r\n return mainPanel;\r\n }", "void xsetSetupID(com.microsoft.schemas.office.x2006.digsig.STUniqueIdentifierWithBraces setupID);", "public Builder clearAoisId() {\n \n aoisId_ = getDefaultInstance().getAoisId();\n onChanged();\n return this;\n }", "private void clearAId() {\n \n aId_ = 0;\n }", "com.microsoft.schemas.office.x2006.digsig.STUniqueIdentifierWithBraces xgetSetupID();", "Rule Identifier() {\n // Push 1 IdentifierNode onto the value stack\n return Sequence(\n Sequence(\n FirstOf(Letter(), \"_\"),\n ZeroOrMore(IndentChar())),\n actions.pushIdentifierNode(),\n WhiteSpace());\n }", "String getEmptyId();", "public Element insertNamespaces(final Element element) throws Exception {\r\n\r\n element.setAttribute(\"xmlns:prefix-container\", Constants.NS_IR_CONTAINER);\r\n //element.setAttribute(\"xmlns:prefix-content-type\", CONTENT_TYPE_NS_URI); TODO: does no longer exist?\r\n element.setAttribute(\"xmlns:prefix-context\", Constants.NS_IR_CONTEXT);\r\n element.setAttribute(\"xmlns:prefix-dc\", Constants.NS_EXTERNAL_DC);\r\n element.setAttribute(\"xmlns:prefix-dcterms\", Constants.NS_EXTERNAL_DC_TERMS);\r\n element.setAttribute(\"xmlns:prefix-grants\", Constants.NS_AA_GRANTS);\r\n //element.setAttribute(\"xmlns:prefix-internal-metadata\", INTERNAL_METADATA_NS_URI); TODO: does no longer exist?\r\n element.setAttribute(\"xmlns:prefix-item\", Constants.NS_IR_ITEM);\r\n //element.setAttribute(\"xmlns:prefix-member-list\", MEMBER_LIST_NS_URI); TODO: does no longer exist?\r\n //element.setAttribute(\"xmlns:prefix-member-ref-list\", MEMBER_REF_LIST_NS_URI); TODO: does no longer exist?\r\n //element.setAttribute(\"xmlns:prefix-metadata\", METADATA_NS_URI); TODO: does no longer exist?\r\n //element.setAttribute(\"xmlns:prefix-metadatarecords\", METADATARECORDS_NS_URI); TODO: does no longer exist?\r\n //element.setAttribute(\"xmlns:escidocMetadataRecords\", METADATARECORDS_NS_URI); TODO: does no longer exist?\r\n element.setAttribute(\"xmlns:escidocComponents\", Constants.NS_IR_COMPONENTS);\r\n element.setAttribute(\"xmlns:prefix-organizational-unit\", Constants.NS_OUM_OU);\r\n //element.setAttribute(\"xmlns:prefix-properties\", PROPERTIES_NS_URI); TODO: does no longer exist?\r\n //element.setAttribute(\"xmlns:prefix-schema\", SCHEMA_NS_URI); TODO: huh???\r\n element.setAttribute(\"xmlns:prefix-staging-file\", Constants.NS_ST_FILE);\r\n element.setAttribute(\"xmlns:prefix-user-account\", Constants.NS_AA_USER_ACCOUNT);\r\n element.setAttribute(\"xmlns:prefix-xacml-context\", Constants.NS_EXTERNAL_XACML_CONTEXT);\r\n element.setAttribute(\"xmlns:prefix-xacml-policy\", Constants.NS_EXTERNAL_XACML_POLICY);\r\n element.setAttribute(\"xmlns:prefix-xlink\", Constants.NS_EXTERNAL_XLINK);\r\n element.setAttribute(\"xmlns:prefix-xsi\", Constants.NS_EXTERNAL_XSI);\r\n return element;\r\n }", "public ConstellationIdentifier identifier();", "public static String makeAnonID() {\n String id = \"__anon\" + nextAnonID;\n nextAnonID++;\n return id;\n }", "@Override\n public String getIdentifier() {\n return myIdentity.getIdentifier();\n }", "public final void setIdentifier(ASN1Identifier id)\n {\n content.setIdentifier(id);\n return;\n }", "I getIdentifier();", "@Override\n public long generateNewContractId() {\n return idCounter++;\n }", "protected abstract String getIdentifier();", "IdentifierType createIdentifierType();", "public static int addIdent(AClass c) {\n\t\treturn addIdent(\"c_\" + getAbsoluteName(c), \"c_\" + c.getName(), c);\n\t}", "public String getIdentifier() {\n/* 222 */ return getValue(\"identifier\");\n/* */ }", "@Override\n public @NonNull Object getIdentifier() {\n return null;\n }", "AttributeDeclarations createAttributeDeclarations();", "int getIdentifier();", "public int getIdentifier();", "IdentifiersFactory getIdentifiersFactory();", "@NonNull String identifier();", "public Builder clearSecIdType() {\n bitField0_ = (bitField0_ & ~0x00100000);\n secIdType_ = 0;\n onChanged();\n return this;\n }", "public String getIdentifier(){\n return identifier;\n }", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }", "public Builder clearAId() {\n copyOnWrite();\n instance.clearAId();\n return this;\n }", "private UniqueIdentifier(){\n\t\t\n\t}", "public byte[] getIdentifier() {\n return identifier;\n }", "protected Identifier parseStyleIdentifier( Element element, String xPathQuery )\n throws XMLParsingException,\n InvalidCapabilitiesException {\n\n Element identifierElement = (Element) XMLTools.getRequiredNode( element, xPathQuery, nsContext );\n\n String value = XMLTools.getStringValue( identifierElement ).trim();\n if ( \"\".equals( value ) ) {\n throw new InvalidCapabilitiesException( Messages.getMessage( \"WPVS_NO_VALID_IDENTIFIER\", \"style\" ) );\n }\n URI codeSpace = XMLTools.getNodeAsURI( identifierElement, \"@codeSpace\", nsContext, null );\n\n Identifier id = new Identifier( value, codeSpace );\n if ( styleIdentifiers.contains( id.toString() ) ) {\n throw new InvalidCapabilitiesException( Messages.getMessage( \"WPVS_NO_UNIQUE_IDENTIFIER\",\n \"styles\",\n id.toString() ) );\n\n }\n styleIdentifiers.add( id.toString() );\n return id;\n }", "public void setIdentificationPrefix(String prefix);", "public String escapeIdentifier(String identifierName);", "public IdentifierDt getIdentifierFirstRep() {\n\t\tif (getIdentifier().isEmpty()) {\n\t\t\treturn addIdentifier();\n\t\t}\n\t\treturn getIdentifier().get(0); \n\t}", "public abstract String getIdPrefix();", "@Override\n public String getToID()\n {\n \tStringBuilder sb = new StringBuilder();\n\n\t\tint prefix = getPrefix();\n \tint ident = getIdent1();\n\n \tswitch( IdentType.fromIdent( ident ) )\n \t{\n \t\tcase IPFIXI:\n \t\t\tsb.append( \"INTER-PREFIX\" );\n \t\t\tbreak;\n \t\tcase ALLI:\n \t\t\tsb.append( \"ALL RADIOS\" );\n \t\t\tbreak;\n \t\tcase PABXI:\n \t\t\tsb.append( \"PABX EXT\" );\n \t\t\tbreak;\n \t\tcase PSTNSI1:\n \t\tcase PSTNSI2:\n \t\tcase PSTNSI3:\n \t\tcase PSTNSI4:\n \t\tcase PSTNSI5:\n \t\tcase PSTNSI6:\n \t\tcase PSTNSI7:\n \t\tcase PSTNSI8:\n \t\tcase PSTNSI9:\n \t\tcase PSTNSI10:\n \t\tcase PSTNSI11:\n \t\tcase PSTNSI12:\n \t\tcase PSTNSI13:\n \t\tcase PSTNSI14:\n \t\tcase PSTNSI15:\n \t\t\tsb.append( \"PRE-DEFINED PSTN\" );\n \t\t\tbreak;\n \t\tcase PSTNGI:\n \t\t\tsb.append( \"PSTN GATEWAY\" );\n \t\t\tbreak;\n \t\tcase TSCI:\n \t\t\tsb.append( \"SYSTEM CONTROLLER\" );\n \t\t\tbreak;\n \t\tcase DIVERTI:\n \t\t\tsb.append( \"CALL DIVERT\" );\n \t\t\tbreak;\n \t\tcase USER:\n\t\t\tdefault:\n\t\t\t\tif( prefix != 0 || ident != 0 )\n\t\t\t\t{\n\t \tsb.append( format( prefix, 3 ) );\n\t \tsb.append( \"-\" );\n\t \tsb.append( format( ident, 4) );\n\t\t\t\t}\n \tbreak;\n \t}\n\n \treturn sb.toString();\n }", "ManifestIdentifier getIdentifier();", "@Override\n public void setElementId(String arg0)\n {\n \n }", "public boolean providesIdentifier() {\n\t\treturn false;\n\t}", "public static II getUUIDAsII() {\n\t\tII ii = new II();\n\t\tii.setValue( MiscUtility.getIDAsString() );\n\t\treturn ii;\n\t}", "public IIID getCreatorIID()\n throws ORIOException;", "org.hl7.fhir.Identifier getIdentifier();" ]
[ "0.65159357", "0.6441017", "0.6239236", "0.5988104", "0.5988104", "0.5941594", "0.58949506", "0.5840526", "0.5759188", "0.5593056", "0.5517943", "0.54305774", "0.5404358", "0.5393065", "0.5362211", "0.53557605", "0.5355695", "0.53346586", "0.5287167", "0.5266715", "0.5196725", "0.5193524", "0.5173738", "0.5161171", "0.51362383", "0.51362383", "0.51362383", "0.51362383", "0.510259", "0.5100017", "0.50917023", "0.5077156", "0.5029686", "0.50242436", "0.50099814", "0.50023174", "0.49650615", "0.4960931", "0.49560127", "0.49422953", "0.4940417", "0.4939558", "0.49298698", "0.49115992", "0.49091375", "0.4891393", "0.4891393", "0.48858064", "0.4882943", "0.48788327", "0.48788327", "0.48788327", "0.48788327", "0.48788327", "0.48788327", "0.48788327", "0.4876411", "0.48662335", "0.48481762", "0.48414016", "0.4822357", "0.48207748", "0.48077998", "0.4801641", "0.47981754", "0.47833085", "0.4783288", "0.47657105", "0.4765001", "0.47589052", "0.47561833", "0.47511536", "0.47444633", "0.47388732", "0.47323328", "0.47320706", "0.4730012", "0.47296163", "0.47268182", "0.4724015", "0.4719086", "0.47188675", "0.4715366", "0.47093415", "0.47089496", "0.47064388", "0.47016925", "0.47012576", "0.46928552", "0.4690452", "0.46875718", "0.4673771", "0.46730664", "0.46711454", "0.46701506", "0.46683255", "0.46609443", "0.46599084", "0.46578237", "0.46576098" ]
0.70441186
0
Gets the "customerIdentifier" element
public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier getCustomerIdentifier() { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null; target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().find_element_user(CUSTOMERIDENTIFIER$2, 0); if (target == null) { return null; } return target; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }", "public final String getCustomerId() {\n\t\treturn customerId;\n\t}", "com.google.protobuf.ByteString\n getCustomerIdBytes();", "com.google.protobuf.ByteString\n getCustomerIdBytes();", "public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}", "String getCustomerID();", "public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}", "public String getCustomerId() {\n\t\treturn customerId;\n\t}", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerid() {\n return customerid;\n }", "public long getCustomerId() {\n\t\treturn customerId;\n\t}", "public long getCustomerId() {\n return customerId;\n }", "public long getCustomerId() {\n return customerId;\n }", "public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().find_element_user(IDENTIFIER$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public Integer getCustomerId()\n {\n return customerId;\n }", "public au.gov.asic.types.AccountIdentifierType getCustomer()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.AccountIdentifierType target = null;\n target = (au.gov.asic.types.AccountIdentifierType)get_store().find_element_user(CUSTOMER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public Integer getCustomerID() {\n return customerID;\n }", "public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}", "public Long getCustomerId() {\n return customerId;\n }", "protected String getCustomerID() {\n\t\treturn this.clientUI.getCustomerID();\n\t}", "public int getCustomerID() {\n\t\treturn customerID;\n\t}", "public int getCustomerId() {\n\t\treturn customerId;\n\t}", "public String getCustId() {\n return custId;\n }", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n return customerId;\n }", "private String getCustomerId(String xmlResponse) {\r\n\t\t\r\n\t\tString customerId = \"\";\r\n\t\tElement root;\r\n\t\t\r\n\t\ttry {\r\n\t\t\troot = DOMUtils.openDocument(new ByteArrayInputStream(xmlResponse.getBytes()));\r\n\t\t\tElement element = DOMUtils.getElement(root, \"data\", true);\r\n\t\t\t\r\n\t\t\telement = DOMUtils.getElement(element, \"customer\", true);\r\n\t\t\t\r\n\t\t\telement = DOMUtils.getElement(element, \"id\", true);\r\n\t\t\t\r\n\t\t\tcustomerId = DOMUtils.getText(element).toString();\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tlog.error(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t\tthrow new ErrorMessageException(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t}\r\n\t\t\r\n\t\treturn customerId;\r\n\t\t\r\n\t}", "public int getCustomerID() {\n return customerID;\n }", "private String getCustomerId(String xmlResponse) {\r\n\t\t\r\n\t\tString customerId = \"\"; \r\n\t\tElement root;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\troot = DOMUtils.openDocument(new ByteArrayInputStream(xmlResponse.getBytes()));\r\n\t\t\tElement data = DOMUtils.getElement(root, \"data\", true);\r\n\t\t\t\r\n\t\t\t//sets the subscriber name\r\n\t\t\tElement customerInfo = DOMUtils.getElement(data, \"customer\", true);\r\n\t\t\tcustomerInfo = DOMUtils.getElement(customerInfo, \"id\", true);\r\n\t\t\r\n\t\t\tcustomerId = DOMUtils.getText(customerInfo).toString();\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tlog.error(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t\tthrow new ErrorMessageException(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t}\t\r\n\t\t\r\n\t\treturn customerId;\r\n\t\t\r\n\t}", "public String getCustID()\n\t{\n\t\treturn custID;\n\t}", "public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}", "public void getCustomerID (){\n\t\t//gets the selected row \n\t\tint selectedRowIndex = listOfAccounts.getSelectedRow();\n\t\t//gets the value of the first element of the row which is the \n\t\t//customerID\n\t\tcustomerID = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 0);\n\t\tcustomerName = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 1);\n\t}", "public int getCustomerID() {\n\t\treturn 0;\n\t}", "public Long getCustId() {\n return custId;\n }", "public String getCust_id() {\r\n\t\treturn cust_id;\r\n\t}", "public Long getExternalCustomerId() {\r\n return externalCustomerId;\r\n }", "public int getCustomerNo() {\n\t\treturn this.customerNo;\r\n\t}", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public int getCustNumber()\n\t{\n\t\treturn customerNumber;\n\t}", "public String getCustomer() {\n return customer;\n }", "public Number getBudgetCustomerId() {\n return (Number) getAttributeInternal(BUDGETCUSTOMERID);\n }", "public Integer getCustomer() {\n return customer;\n }", "public String getCustomerId(int k) {\n\t\treturn prescriptionList.get(k).getCustomerId();\n\t}", "public String getCustomerCode() {\n\t\treturn customerCode;\n\t}", "public String getCustomerCode()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}", "public String getCustomerReference() {\n return customerReference;\n }", "public org.tempuri.Customers getCustomer() {\r\n return customer;\r\n }", "public int getCustomerId() \n {\n return customerId;\n }", "public CustomerNumberElements getCustomerNumberAccess() {\n\t\treturn pCustomerNumber;\n\t}", "public String getAmazonCustomerId(final SessionContext ctx, final Customer item)\n\t{\n\t\treturn (String)item.getProperty( ctx, AmazoncoreConstants.Attributes.Customer.AMAZONCUSTOMERID);\n\t}", "public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier addNewCustomerIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().add_element_user(CUSTOMERIDENTIFIER$2);\n return target;\n }\n }", "String getCustomerNameById(int customerId);", "public String getGlobalCustomerNumberID()\n\t{\n\t\treturn globalCustomerNumberID;\n\t}", "public java.lang.String getCustNo() {\n return custNo;\n }", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "@Override\n public String getCustomer() {\n return this.customerName;\n }", "public String getCustomer(String custId);", "public java.lang.String getOrgCustomer() {\n\treturn orgCustomer;\n}", "@Override\r\n\tpublic Customer getCustomer(int customerID) {\n\t\treturn null;\r\n\t}", "public int getCustId(){\n return this.custId;\r\n }", "public int currentCustomerId() {\n if (this.currentCustomerAuthenticated()) {\n return this.currentCustomer.getId();\n }\n return 0;\n }", "public java.lang.String getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getCustomerName() {\n return customerName;\n }", "public String getCustomerName() {\n return customerName;\n }", "public String getJob_customer_addresses_id() {\n return job_customer_addresses_id;\n }", "public String getCustomerName()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_NAME, LEN_CUSTOMER_NAME) ;\n\t}", "public static String generateCustomerID() {\n\tcustomerID++;\n\treturn String.valueOf(customerID);\n }", "public String getCustomerName() {\n\t\treturn customerName;\n\t}", "public String getCustomerName() {\n\t\treturn customerName;\n\t}", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "public int getCustomerref() {\n\t\treturn custref;\n\t}", "public String getCustomerContactRecordCustomerReference() {\n return customerContactRecordCustomerReference;\n }", "public java.lang.Integer getReqCustid() {\n return req_custid;\n }", "public String getCustomerName()\n {\n return customerName;\n }", "public String getName()\n {\n return customer;\n }", "public String getAmazonCustomerId(final Customer item)\n\t{\n\t\treturn getAmazonCustomerId( getSession().getSessionContext(), item );\n\t}", "public int toInt(){\n\t\treturn CustomerId;\n\t}", "public String getCustomerName() {\n\t\treturn this.customer.getCustomerName();\n\t}", "public static String getCustomerAddress() {\n\t\treturn customerAddress;\n\t}", "public java.lang.String getCustIdNbr() {\n return custIdNbr;\n }", "public String getCustomerContactRecordContactDevice() {\n return customerContactRecordContactDevice;\n }", "public java.lang.Integer getReqCustid() {\n return req_custid;\n }", "public io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer() {\n return customer_ == null ? io.opencannabis.schema.commerce.OrderCustomer.Customer.getDefaultInstance() : customer_;\n }", "@XmlElement(name = \"identifier\", namespace = Namespaces.SRV)\n final String getIdentifier() {\n if (LEGACY_XML) {\n final ScopedName name = getScopedName();\n if (name != null) {\n return name.tip().toString();\n }\n }\n return null;\n }", "public de.htwg_konstanz.ebus.framework.wholesaler.vo.Customer getCustomer () {\r\n\t\treturn customer;\r\n\t}", "public String getCustomerName() {\r\n return name.getName();\r\n }", "@Override\n public int getClientId() {\n return _entityCustomer.getClientId();\n }", "public String getCustCode() {\n return custCode;\n }", "public String getCustCode() {\n return custCode;\n }", "public String getCustomer_Name() {\n return customer_Name;\n }", "public CustomerPath customer() {\n if (_customer == null)\n _customer = new CustomerPath(this, Keys.PAYMENT_P2007_03__PAYMENT_P2007_03_CUSTOMER_ID_FKEY, null);\n\n return _customer;\n }", "public io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer() {\n if (customerBuilder_ == null) {\n return customer_ == null ? io.opencannabis.schema.commerce.OrderCustomer.Customer.getDefaultInstance() : customer_;\n } else {\n return customerBuilder_.getMessage();\n }\n }", "public String getCustomer_Type() {\n return (String) getAttributeInternal(CUSTOMER_TYPE);\n }", "@Override\n public String provideCustomerConnectionId( )\n {\n return _signaleur.getGuid( );\n }", "public String getCustomerName()\n\t{\n\t\treturn name;\n\t}", "public String getCustomerName() \n {\n return customerName;\n }", "public Customer getCustomer() {\r\n\t\treturn this.customer;\r\n\t}" ]
[ "0.79665536", "0.79665536", "0.7720322", "0.75712603", "0.7471685", "0.7471685", "0.7455956", "0.74546707", "0.7450518", "0.7406557", "0.7401897", "0.7401897", "0.7178387", "0.7158159", "0.7143697", "0.7143697", "0.7136919", "0.71333724", "0.713101", "0.71283054", "0.7096155", "0.7078569", "0.70625055", "0.7038979", "0.7029494", "0.6985776", "0.6972855", "0.6972855", "0.69712126", "0.6903845", "0.6890382", "0.6880542", "0.68453413", "0.68097264", "0.6746254", "0.66303056", "0.66227144", "0.6587812", "0.65625584", "0.6555165", "0.6555165", "0.65518343", "0.65233886", "0.6481228", "0.6472483", "0.6411352", "0.64069927", "0.6370431", "0.6359949", "0.6351582", "0.6349514", "0.63191277", "0.62938994", "0.6289277", "0.62851715", "0.6283775", "0.6273958", "0.6264131", "0.62574583", "0.6238908", "0.6193763", "0.617782", "0.6171688", "0.6152617", "0.61505663", "0.61418784", "0.61418784", "0.6116212", "0.6091517", "0.60844964", "0.6071077", "0.6071077", "0.6069494", "0.6058507", "0.60576737", "0.6051068", "0.6049684", "0.6022955", "0.5998321", "0.5996849", "0.5995623", "0.5984067", "0.59755254", "0.5968265", "0.5963639", "0.59588003", "0.59565717", "0.595618", "0.59502506", "0.5947737", "0.59475565", "0.59475565", "0.59407383", "0.5933776", "0.592431", "0.5921085", "0.59147966", "0.59100646", "0.590962", "0.58987916" ]
0.8011796
0
Sets the "customerIdentifier" element
public void setCustomerIdentifier(au.gov.asic.types.MessageIdentifierType.CustomerIdentifier customerIdentifier) { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null; target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().find_element_user(CUSTOMERIDENTIFIER$2, 0); if (target == null) { target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().add_element_user(CUSTOMERIDENTIFIER$2); } target.set(customerIdentifier); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCustomerId(Number value) {\n setAttributeInternal(CUSTOMERID, value);\n }", "public void setCustomer(au.gov.asic.types.AccountIdentifierType customer)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.AccountIdentifierType target = null;\n target = (au.gov.asic.types.AccountIdentifierType)get_store().find_element_user(CUSTOMER$0, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.AccountIdentifierType)get_store().add_element_user(CUSTOMER$0);\n }\n target.set(customer);\n }\n }", "public void setIdentifier(au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier identifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().find_element_user(IDENTIFIER$2, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().add_element_user(IDENTIFIER$2);\n }\n target.set(identifier);\n }\n }", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "public void setAmazonCustomerId(final SessionContext ctx, final Customer item, final String value)\n\t{\n\t\titem.setProperty(ctx, AmazoncoreConstants.Attributes.Customer.AMAZONCUSTOMERID,value);\n\t}", "public void setCustomerId(final Integer customerId)\n {\n this.customerId = customerId;\n }", "public void setCustomerId(long value) {\n this.customerId = value;\n }", "public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }", "public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }", "public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }", "public void setCustomerID(Integer customerID) {\n this.customerID = customerID;\n }", "public void setAmazonCustomerId(final Customer item, final String value)\n\t{\n\t\tsetAmazonCustomerId( getSession().getSessionContext(), item, value );\n\t}", "public void setCustomerId(String customerId) {\n this.customerId = customerId == null ? null : customerId.trim();\n }", "public void setCustID(String custID) {\r\n this.custID = custID;\r\n }", "public void setCustomerId(String customerId)\n\t{\n\t\tthis.customerId = customerId;\n\t}", "public void setCustomerId(Long customerId) {\n this.customerId = customerId;\n }", "public void setCustomer(org.tempuri.Customers customer) {\r\n this.customer = customer;\r\n }", "public void setCustomerId(String customerId) {\n\t\tthis.customerId = customerId == null ? null : customerId.trim();\n\t}", "public void setCustomer(String customer) {\n this.customer = customer;\n }", "public void setCustomer(Integer customer) {\n this.customer = customer;\n }", "public void setCustomerID(String customerID) {\n try {\n if(!(customerID.equals(null)))\n this.customerID = customerID;\n else {\n this.customerID = \"\";\n throw new SupplyOrderException(\"Invalid Customer ID\");\n }\n } catch(SupplyOrderException soe){\n soe.getMessage();\n }\n }", "public void setCustomerId(int customerId) {\n\t\tthis.customerId = customerId;\n\t}", "public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n\t\treturn customerId;\n\t}", "public final String getCustomerId() {\n\t\treturn customerId;\n\t}", "public void setCustomer(\n @Nullable\n final String customer) {\n rememberChangedField(\"Customer\", this.customer);\n this.customer = customer;\n }", "protected void setCustomer(Customer customer) {\n this.customer = customer;\n }", "public void setBudgetCustomerId(Number value) {\n setAttributeInternal(BUDGETCUSTOMERID, value);\n }", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public void setCustomerid(String customerid) {\n this.customerid = customerid == null ? null : customerid.trim();\n }", "public void setCustomer(String Cus){\n\n this.customer = Cus;\n }", "public String getCustomerid() {\n return customerid;\n }", "public long getCustomerId() {\n\t\treturn customerId;\n\t}", "public void setCustomerName(String customerName) \n {\n this.customerName = customerName;\n }", "public void setCustomer(Customer customer) {\r\n \r\n this.customer = customer;\r\n \r\n if (customer != null) {\r\n // Fill the labels with info from the Customer object\r\n custIdTextField.setText(Integer.toString(customer.getCustomerId()));\r\n custFirstNameTextField.setText(customer.getCustFirstName());\r\n custLastNameTextField.setText(customer.getCustLastName());\r\n custAddressTextField.setText(customer.getCustAddress());\r\n custCityTextField.setText(customer.getCustCity());\r\n custProvinceTextField.setText(customer.getCustProv());\r\n custPostalCodeTextField.setText(customer.getCustPostal());\r\n custCountryTextField.setText(customer.getCustCountry());\r\n custHomePhoneTextField.setText(customer.getCustHomePhone());\r\n custBusinessPhoneTextField.setText(customer.getCustBusPhone());\r\n custEmailTextField.setText(customer.getCustEmail());\r\n if (cboAgentId.getItems().contains(customer.getAgentId())){\r\n cboAgentId.setValue(customer.getAgentId());\r\n }\r\n else{\r\n cboAgentId.getSelectionModel().selectFirst();\r\n }\r\n } else {\r\n custIdTextField.setText(\"\");\r\n custFirstNameTextField.setText(\"\");\r\n custLastNameTextField.setText(\"\");\r\n custAddressTextField.setText(\"\");\r\n custCityTextField.setText(\"\");\r\n custProvinceTextField.setText(\"\");\r\n custPostalCodeTextField.setText(\"\");\r\n custCountryTextField.setText(\"\");\r\n custHomePhoneTextField.setText(\"\");\r\n custBusinessPhoneTextField.setText(\"\");\r\n custEmailTextField.setText(\"\");\r\n cboAgentId.getSelectionModel().selectFirst();\r\n } \r\n }", "public int getCustomerId() {\n\t\treturn customerId;\n\t}", "public long getCustomerId() {\n return customerId;\n }", "public long getCustomerId() {\n return customerId;\n }", "public Long getCustomerId() {\n return customerId;\n }", "public void setCustomerAddr(String customerAddr) {\n this.customerAddr = customerAddr;\n }", "public Integer getCustomerId()\n {\n return customerId;\n }", "public int getCustomerID() {\n\t\treturn customerID;\n\t}", "public void setCustomer(final Customer customer) {\n\t\tthis.customer = customer;\n\t}", "public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}", "public void setCustomer(com.huawei.www.bme.cbsinterface.cbs.businessmgr.IndividualCustomer customer) {\r\n this.customer = customer;\r\n }", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}", "public Integer getCustomerID() {\n return customerID;\n }", "public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}", "public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }", "public void setCustId(Long custId) {\n this.custId = custId;\n }", "public void reserve(int customerId){\n\t\treserved = true;\n\t\tthis.customerId = customerId;\n\t}", "public void setCurrentCustomer(Customer customer) {\n this.currentCustomer = customer;\n }", "public void setIdentifier(java.lang.String identifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(IDENTIFIER$0);\n }\n target.setStringValue(identifier);\n }\n }", "public void lookupCustomer(String customerId) {\r\n customer = transaction.getCustomerInfo(customerId);\r\n }", "public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }", "public void setCustomer (de.htwg_konstanz.ebus.framework.wholesaler.vo.Customer customer) {\r\n\t\tthis.customer = customer;\r\n\t}", "public int getCustomerID() {\n return customerID;\n }", "public void setCustNo(java.lang.String custNo) {\n this.custNo = custNo;\n }", "public void setCustomer_Name(String customer_Name) {\n this.customer_Name = customer_Name;\n }", "public void setIdentityIdentifier(final Identifier identifier) {\r\n this.identityIdentifier = identifier;\r\n }", "public String getCustId() {\n return custId;\n }", "public int getCustomerID() {\n\t\treturn 0;\n\t}", "public void setCustomerName(String customerName) {\n this.customerName = customerName;\n }", "public io.confluent.developer.InterceptTest.Builder setReqCustid(int value) {\n validate(fields()[0], value);\n this.req_custid = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "@Override\n public void setClientId(int clientId) {\n _entityCustomer.setClientId(clientId);\n }", "public void setIdentifier(String value) {\n/* 214 */ setValue(\"identifier\", value);\n/* */ }", "public void setCustomer(Customer customer) {\r\n\r\n this.customer = customer;\r\n ObservableList<Order> orders = getAllCustomerOrders(customer.getCustomerId());\r\n ordersTable.setItems(orders);\r\n }", "public void updateCustomer(String id) {\n\t\t\n\t}", "protected String getCustomerID() {\n\t\treturn this.clientUI.getCustomerID();\n\t}", "public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier getCustomerIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().find_element_user(CUSTOMERIDENTIFIER$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public final void setOrder_Customer(com.mendix.systemwideinterfaces.core.IContext context, simpleordermodule.proxies.Customer order_customer)\r\n\t{\r\n\t\tif (order_customer == null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Order_Customer.toString(), null);\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Order_Customer.toString(), order_customer.getMendixObject().getId());\r\n\t}", "public void setCustId(Long custId) {\n\t\tthis.custId = custId;\n\t}", "@Override\n public void setPrimaryKey(int primaryKey) {\n _entityCustomer.setPrimaryKey(primaryKey);\n }", "public void setCustomer(Customer c){\n\t\tthis.c = Optional.of(c);\n\t}", "public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier addNewCustomerIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().add_element_user(CUSTOMERIDENTIFIER$2);\n return target;\n }\n }", "public String getCustID()\n\t{\n\t\treturn custID;\n\t}", "public CustomerBuilder id (String idVal) {\n if (idVal == null) {\n throw new IllegalArgumentException(\"id can not be null\");\n }\n id = idVal;\n return this;\n }", "public void setCustomerName(\n @Nullable\n final String customerName) {\n rememberChangedField(\"CustomerName\", this.customerName);\n this.customerName = customerName;\n }", "public void setAsicIdentifier(au.gov.asic.types.DocumentIdentifierType asicIdentifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.DocumentIdentifierType target = null;\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().find_element_user(ASICIDENTIFIER$0, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().add_element_user(ASICIDENTIFIER$0);\n }\n target.set(asicIdentifier);\n }\n }", "public void setCustomerEmailAddress(String customerEmailAddress) {\n this.customerEmailAddress = customerEmailAddress;\n }", "public void setCustId(Long custId) {\n\t\tsetField(\"custId\", custId);\n\t}", "@Override\n public void updateCustomer(UUID customerId, @RequestBody Customer customer) {\n log.debug(\"Updating a customer to service...\");\n }", "public int getCustNumber()\n\t{\n\t\treturn customerNumber;\n\t}", "void setIdentityId(String identityId);", "String getCustomerID();", "public void setCustomer(Customer customer) {\r\n\t\tthis.customer = customer;\r\n\t\tpassengers.add(customer);\r\n\t}", "void updateCustomerById(Customer customer);", "public String getCust_id() {\r\n\t\treturn cust_id;\r\n\t}", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public Long getCustId() {\n return custId;\n }", "public void setOrgCustomer(java.lang.String newOrgCustomer) {\n\torgCustomer = newOrgCustomer;\n}", "public int getCustomerId() \n {\n return customerId;\n }", "public void getCustomerID (){\n\t\t//gets the selected row \n\t\tint selectedRowIndex = listOfAccounts.getSelectedRow();\n\t\t//gets the value of the first element of the row which is the \n\t\t//customerID\n\t\tcustomerID = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 0);\n\t\tcustomerName = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 1);\n\t}", "public void setIdentifier(TelemetryIdentifier value) {\n if (value != null) {\n this.identifier_ = value;\n this.bitField0_ |= 1;\n return;\n }\n throw new NullPointerException();\n }" ]
[ "0.75196534", "0.74732685", "0.7186412", "0.7124941", "0.70988864", "0.706155", "0.69436526", "0.6942416", "0.69176424", "0.69176424", "0.6911834", "0.6861866", "0.6718026", "0.6709276", "0.6704655", "0.66982156", "0.66468936", "0.6629284", "0.6618768", "0.6615948", "0.66004026", "0.65854806", "0.65468025", "0.6526953", "0.6526953", "0.6523771", "0.6509756", "0.64902997", "0.6480104", "0.6479731", "0.64017195", "0.64017195", "0.6351527", "0.6341771", "0.63357186", "0.6303193", "0.6297331", "0.6285784", "0.62535477", "0.6248704", "0.6248704", "0.6217601", "0.62092733", "0.6195091", "0.6183809", "0.61609286", "0.6153347", "0.6148378", "0.6117095", "0.6117095", "0.60963637", "0.6094451", "0.607894", "0.6066495", "0.6028142", "0.6020987", "0.60191643", "0.6010481", "0.6008741", "0.59980685", "0.5996618", "0.59915245", "0.59894687", "0.5981885", "0.5973027", "0.5878191", "0.58608115", "0.5852561", "0.5836789", "0.5827598", "0.582247", "0.5780572", "0.577378", "0.5768505", "0.57671475", "0.5756798", "0.5754593", "0.5745318", "0.5728601", "0.5718563", "0.5717008", "0.5709933", "0.57074606", "0.568964", "0.568873", "0.5686355", "0.56654435", "0.5653191", "0.56448925", "0.56340116", "0.5632827", "0.5610777", "0.56080896", "0.56049925", "0.56049925", "0.5598095", "0.5597756", "0.5596193", "0.55947447", "0.55871123" ]
0.8058731
0
Appends and returns a new empty "customerIdentifier" element
public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier addNewCustomerIdentifier() { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null; target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().add_element_user(CUSTOMERIDENTIFIER$2); return target; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public au.gov.asic.types.AccountIdentifierType addNewCustomer()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.AccountIdentifierType target = null;\n target = (au.gov.asic.types.AccountIdentifierType)get_store().add_element_user(CUSTOMER$0);\n return target;\n }\n }", "public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier addNewIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().add_element_user(IDENTIFIER$2);\n return target;\n }\n }", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public static String generateCustomerID() {\n\tcustomerID++;\n\treturn String.valueOf(customerID);\n }", "com.google.protobuf.ByteString\n getCustomerIdBytes();", "com.google.protobuf.ByteString\n getCustomerIdBytes();", "@Override\n //Override method to the to-string for the concatenation of the customer name and ID\n public String toString() {\n return customerName + \" [\" + customerId + \"]\";\n }", "public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier getCustomerIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().find_element_user(CUSTOMERIDENTIFIER$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public int getCustomerID() {\n\t\treturn 0;\n\t}", "public final String getCustomerId() {\n\t\treturn customerId;\n\t}", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "public void setCustomerIdentifier(au.gov.asic.types.MessageIdentifierType.CustomerIdentifier customerIdentifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().find_element_user(CUSTOMERIDENTIFIER$2, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().add_element_user(CUSTOMERIDENTIFIER$2);\n }\n target.set(customerIdentifier);\n }\n }", "public String generateCustomer_Id() {\n\t\tString customer_Id = \"C\" + String.valueOf(rand.genRandomDigits(7));\n\t\twhile (registerDao.checkCustomerIdIfExist(customer_Id)) {\n\t\t\tcustomer_Id = \"C\" + String.valueOf(rand.genRandomDigits(7));\n\t\t}\n\t\treturn customer_Id;\n\t}", "public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}", "public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}", "public String getCustId() {\n return custId;\n }", "public String getCustomerId() {\n\t\treturn customerId;\n\t}", "public String getCustomerid() {\n return customerid;\n }", "String getCustomerID();", "public long getCustomerId() {\n return customerId;\n }", "public long getCustomerId() {\n return customerId;\n }", "public void setCustomerId(Number value) {\n setAttributeInternal(CUSTOMERID, value);\n }", "public Integer getCustomerId()\n {\n return customerId;\n }", "public long getCustomerId() {\n\t\treturn customerId;\n\t}", "public String getCustID()\n\t{\n\t\treturn custID;\n\t}", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}", "public Long getCustomerId() {\n return customerId;\n }", "public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }", "public int insertCustomer() {\n\t\treturn 0;\r\n\t}", "public int getCustomerID() {\n return customerID;\n }", "public Integer getCustomerID() {\n return customerID;\n }", "public CustomerResourceIdentifier buildUnchecked() {\n return new CustomerResourceIdentifierImpl(id, key);\n }", "public int getCustomerId() {\n\t\treturn customerId;\n\t}", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "public Long getCustId() {\n return custId;\n }", "public void setIdentifier(au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier identifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().find_element_user(IDENTIFIER$2, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().add_element_user(IDENTIFIER$2);\n }\n target.set(identifier);\n }\n }", "public int getCustomerID() {\n\t\treturn customerID;\n\t}", "public void addCustomer(String c){\n\t\tif(!containsCustomer(c)){\n\t\t\tCustomer e = new Customer(c);\n\t\t\tlist.add(e);\n\t\t}\n\t}", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }", "public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }", "org.hl7.fhir.Identifier addNewIdentifier();", "public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}", "public void reserve(int customerId){\n\t\treserved = true;\n\t\tthis.customerId = customerId;\n\t}", "public String getCust_id() {\r\n\t\treturn cust_id;\r\n\t}", "public int getCustNumber()\n\t{\n\t\treturn customerNumber;\n\t}", "private IIdentifierElement createIdentifier() throws RodinDBException {\n\t\tfinal IContextRoot ctx = createContext(\"ctx\");\n\t\treturn ctx.createChild(ICarrierSet.ELEMENT_TYPE, null, null);\n\t}", "public void prepareAdd() {\r\n\t\tcurrent = new Customer();\r\n\t\tcurrent.setCustomerCode(generateCode.generateCustomerCode());\r\n\t}", "public io.confluent.developer.InterceptTest.Builder clearReqCustid() {\n fieldSetFlags()[0] = false;\n return this;\n }", "public void setCustomerId(long value) {\n this.customerId = value;\n }", "public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }", "public void setCustomer(au.gov.asic.types.AccountIdentifierType customer)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.AccountIdentifierType target = null;\n target = (au.gov.asic.types.AccountIdentifierType)get_store().find_element_user(CUSTOMER$0, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.AccountIdentifierType)get_store().add_element_user(CUSTOMER$0);\n }\n target.set(customer);\n }\n }", "void addId(II identifier);", "public int getCustomerId() \n {\n return customerId;\n }", "public com.walgreens.rxit.ch.cda.II addNewId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.II target = null;\n target = (com.walgreens.rxit.ch.cda.II)get_store().add_element_user(ID$6);\n return target;\n }\n }", "public au.gov.asic.types.DocumentIdentifierType addNewAsicIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.DocumentIdentifierType target = null;\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().add_element_user(ASICIDENTIFIER$0);\n return target;\n }\n }", "public void setCustID(String custID) {\r\n this.custID = custID;\r\n }", "public Long getExternalCustomerId() {\r\n return externalCustomerId;\r\n }", "@Path(\"customer\")\n @Service({\"customer\"})\n public ResponseMessage addCustomer(Customer customer) {\n return csi.addCustomer(customer);\n }", "public void addCustomer(){\n Customer customer = new Customer();\n customer.setId(data.numberOfCustomer());\n customer.setFirstName(GetChoiceFromUser.getStringFromUser(\"Enter First Name: \"));\n customer.setLastName(GetChoiceFromUser.getStringFromUser(\"Enter Last Name: \"));\n data.addCustomer(customer,data.getBranch(data.getBranchEmployee(ID).getBranchID()));\n System.out.println(\"Customer has added Successfully!\");\n }", "public int getCustId(){\n return this.custId;\r\n }", "protected String getCustomerID() {\n\t\treturn this.clientUI.getCustomerID();\n\t}", "public void setCustomerId(String customerId) {\n this.customerId = customerId == null ? null : customerId.trim();\n }", "public void setCustomerId(String customerId)\n\t{\n\t\tthis.customerId = customerId;\n\t}", "public au.gov.asic.types.AccountIdentifierType getCustomer()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.AccountIdentifierType target = null;\n target = (au.gov.asic.types.AccountIdentifierType)get_store().find_element_user(CUSTOMER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public String getUniqueIdentifier(){\n return (streetAddress + aptNumber + zip).toLowerCase().replaceAll(\"\\\\s+\",\"\"); \n }", "public void setCustomerId(final Integer customerId)\n {\n this.customerId = customerId;\n }", "private Customer createCustomerData() {\n int id = -1;\n Timestamp createDate = DateTime.getUTCTimestampNow();\n String createdBy = session.getUsername();\n\n if (action.equals(Constants.UPDATE)) {\n id = existingCustomer.getCustomerID();\n createDate = existingCustomer.getCreateDate();\n createdBy = existingCustomer.getCreatedBy();\n }\n\n String name = nameField.getText();\n String address = addressField.getText() + \", \" + cityField.getText();\n System.out.println(address);\n String postal = postalField.getText();\n String phone = phoneField.getText();\n Timestamp lastUpdate = DateTime.getUTCTimestampNow();\n String lastUpdatedBy = session.getUsername();\n\n FirstLevelDivision division = divisionComboBox.getSelectionModel().getSelectedItem();\n int divisionID = division.getDivisionID();\n\n return new Customer(id, name, address, postal, phone, createDate, createdBy, lastUpdate, lastUpdatedBy, divisionID);\n }", "private String getCustomerId(String xmlResponse) {\r\n\t\t\r\n\t\tString customerId = \"\"; \r\n\t\tElement root;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\troot = DOMUtils.openDocument(new ByteArrayInputStream(xmlResponse.getBytes()));\r\n\t\t\tElement data = DOMUtils.getElement(root, \"data\", true);\r\n\t\t\t\r\n\t\t\t//sets the subscriber name\r\n\t\t\tElement customerInfo = DOMUtils.getElement(data, \"customer\", true);\r\n\t\t\tcustomerInfo = DOMUtils.getElement(customerInfo, \"id\", true);\r\n\t\t\r\n\t\t\tcustomerId = DOMUtils.getText(customerInfo).toString();\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tlog.error(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t\tthrow new ErrorMessageException(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t}\t\r\n\t\t\r\n\t\treturn customerId;\r\n\t\t\r\n\t}", "public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().find_element_user(IDENTIFIER$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public void addCustomer(Customer customer) {\r\n if (hasID(customer.getID())) {\r\n return;\r\n }\r\n\r\n for (int i = 0; i < customers.length; i++) {\r\n if (customers[i] == null) {\r\n customers[i] = customer;\r\n return;\r\n }\r\n }\r\n\r\n System.err.println(\"No more room in database!\");\r\n }", "@Override\n public String provideCustomerConnectionId( )\n {\n return _signaleur.getGuid( );\n }", "public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }", "public void getCustomerID (){\n\t\t//gets the selected row \n\t\tint selectedRowIndex = listOfAccounts.getSelectedRow();\n\t\t//gets the value of the first element of the row which is the \n\t\t//customerID\n\t\tcustomerID = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 0);\n\t\tcustomerName = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 1);\n\t}", "private ArrayList<String> getCustomerId(Hashtable<String, ArrayList<Object>> hashtable) {\n\t\tSet<String> customersId = hashtable.keySet();\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist.addAll(customersId);\n\t\treturn list;\n\t}", "@Override\r\n\tpublic void createAccount(Customer customer) {\n\t\tcustMap.put(customer.getMobileNo(),customer);\r\n\t\t\r\n\t}", "public void setCustomerId(Long customerId) {\n this.customerId = customerId;\n }", "public CustomerBuilder id (String idVal) {\n if (idVal == null) {\n throw new IllegalArgumentException(\"id can not be null\");\n }\n id = idVal;\n return this;\n }", "public org.hl7.fhir.Identifier addNewIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Identifier target = null;\n target = (org.hl7.fhir.Identifier)get_store().add_element_user(IDENTIFIER$0);\n return target;\n }\n }", "public org.hl7.fhir.Identifier addNewIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Identifier target = null;\n target = (org.hl7.fhir.Identifier)get_store().add_element_user(IDENTIFIER$0);\n return target;\n }\n }", "public void setCustomerId(String customerId) {\n\t\tthis.customerId = customerId == null ? null : customerId.trim();\n\t}", "private static void generateDeleteCustomer() {\n long accountNo = getRandAccountD();\n writeToFile(String.format(\"%d\\n\", accountNo));\n }", "public int newCustomer(Map customerMap, Map allData) {\r\n\t\t\r\n\t\treturn 0;\r\n\t}", "public Builder clearIdentifier() {\n bitField0_ = (bitField0_ & ~0x00000001);\n identifier_ = getDefaultInstance().getIdentifier();\n onChanged();\n return this;\n }", "@Override\n\tpublic void add() {\n\t\tSystem.out.println(\"Mobile Customer Add()\");\n\t}", "public int getCustomerNo() {\n\t\treturn this.customerNo;\r\n\t}", "public Customer() {\n\t\tcustref++;\n\t}", "public Customer() {\r\n\t\tthis.name = \"\";\r\n\t\tthis.parcelID = \"\";\r\n\t\tthis.seqNo = 0;\r\n\t}", "public java.lang.String getCustNo() {\n return custNo;\n }", "@Override\n\tpublic String getIdentification() {\n\t\treturn \"\";\n\t}", "public String getCustomer() {\n return customer;\n }", "public String getCustomerId(int k) {\n\t\treturn prescriptionList.get(k).getCustomerId();\n\t}", "private String getCustomerId(String xmlResponse) {\r\n\t\t\r\n\t\tString customerId = \"\";\r\n\t\tElement root;\r\n\t\t\r\n\t\ttry {\r\n\t\t\troot = DOMUtils.openDocument(new ByteArrayInputStream(xmlResponse.getBytes()));\r\n\t\t\tElement element = DOMUtils.getElement(root, \"data\", true);\r\n\t\t\t\r\n\t\t\telement = DOMUtils.getElement(element, \"customer\", true);\r\n\t\t\t\r\n\t\t\telement = DOMUtils.getElement(element, \"id\", true);\r\n\t\t\t\r\n\t\t\tcustomerId = DOMUtils.getText(element).toString();\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tlog.error(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t\tthrow new ErrorMessageException(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t}\r\n\t\t\r\n\t\treturn customerId;\r\n\t\t\r\n\t}", "public void setCustomerID(Integer customerID) {\n this.customerID = customerID;\n }", "public gov.ucore.ucore._2_0.StringType addNewSystemIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.StringType target = null;\n target = (gov.ucore.ucore._2_0.StringType)get_store().add_element_user(SYSTEMIDENTIFIER$0);\n return target;\n }\n }" ]
[ "0.66319245", "0.6415931", "0.6222804", "0.6222804", "0.60353684", "0.6006578", "0.6006578", "0.5964601", "0.58092237", "0.5797888", "0.57850057", "0.57690483", "0.57690483", "0.57689005", "0.57437515", "0.5710422", "0.5704339", "0.5674424", "0.5665967", "0.5648252", "0.5583933", "0.5570744", "0.5570744", "0.5534859", "0.5508851", "0.55035466", "0.5498812", "0.54865557", "0.54865557", "0.5486063", "0.5483314", "0.54650575", "0.54354465", "0.54223895", "0.5413354", "0.5407223", "0.540475", "0.53940135", "0.5384427", "0.536131", "0.5352277", "0.5340021", "0.53317434", "0.53317434", "0.5323945", "0.5323945", "0.5313499", "0.5297458", "0.5285662", "0.52836347", "0.5265461", "0.5260162", "0.5259411", "0.525483", "0.5222338", "0.51981926", "0.5190722", "0.5190042", "0.5183328", "0.517967", "0.51674134", "0.51447433", "0.51441926", "0.5144036", "0.51371574", "0.51341593", "0.5127278", "0.51244295", "0.5116416", "0.51118726", "0.5108438", "0.51004076", "0.50912374", "0.50782895", "0.5074674", "0.5071317", "0.50676244", "0.5061666", "0.5038095", "0.50345", "0.502634", "0.5018083", "0.501759", "0.5016039", "0.5016039", "0.5008516", "0.5007142", "0.5001102", "0.5001033", "0.4993733", "0.4985058", "0.4982545", "0.49819756", "0.4979709", "0.4977943", "0.49757257", "0.4968604", "0.4968473", "0.49639565", "0.4961845" ]
0.7262367
0
Gets the "customer" element
public au.gov.asic.types.AccountIdentifierType getCustomer() { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.AccountIdentifierType target = null; target = (au.gov.asic.types.AccountIdentifierType)get_store().find_element_user(CUSTOMER$0, 0); if (target == null) { return null; } return target; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.tempuri.Customers getCustomer() {\r\n return customer;\r\n }", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "public String getCustomer() {\n return customer;\n }", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "public Customer getCustomer() {\r\n\t\treturn this.customer;\r\n\t}", "public ReturnCustomer getCustomer() {\n return (ReturnCustomer) get(\"customer\");\n }", "public Customer getCustomer() {\r\n\t\treturn customer;\r\n\t}", "public Customer getCustomer() {\r\n\t\treturn customer;\r\n\t}", "@Override\n public String getCustomer() {\n return this.customerName;\n }", "public de.htwg_konstanz.ebus.framework.wholesaler.vo.Customer getCustomer () {\r\n\t\treturn customer;\r\n\t}", "public Customer getCustomer() {\n\t\treturn customer;\n\t}", "public Customer getCustomer() {\n return this.customer;\n }", "Customer getCustomer() {\n\t\treturn customer;\n\t}", "public io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer() {\n return customer_ == null ? io.opencannabis.schema.commerce.OrderCustomer.Customer.getDefaultInstance() : customer_;\n }", "public Integer getCustomer() {\n return customer;\n }", "public String getName()\n {\n return customer;\n }", "public Customer getCustomer() {\r\n return customer;\r\n }", "public io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer() {\n if (customerBuilder_ == null) {\n return customer_ == null ? io.opencannabis.schema.commerce.OrderCustomer.Customer.getDefaultInstance() : customer_;\n } else {\n return customerBuilder_.getMessage();\n }\n }", "public com.commercetools.api.models.customer.CustomerReference getCustomer() {\n return this.customer;\n }", "public com.huawei.www.bme.cbsinterface.cbs.businessmgr.IndividualCustomer getCustomer() {\r\n return customer;\r\n }", "public Customer getCustomer()\n {\n return this.customer;\n }", "public Customer getCustomer() {\n return customer;\n }", "public String getCustomer(String custId);", "public Customer getCustomer()\n {\n return customer;\n }", "public String getCustomerName()\n {\n return customerName;\n }", "Customer getCustomer();", "public io.opencannabis.schema.commerce.OrderCustomer.CustomerOrBuilder getCustomerOrBuilder() {\n if (customerBuilder_ != null) {\n return customerBuilder_.getMessageOrBuilder();\n } else {\n return customer_ == null ?\n io.opencannabis.schema.commerce.OrderCustomer.Customer.getDefaultInstance() : customer_;\n }\n }", "public String getCustomerReference() {\n return customerReference;\n }", "public java.lang.String getOrgCustomer() {\n\treturn orgCustomer;\n}", "public String getCustomerName() \n {\n return customerName;\n }", "public io.opencannabis.schema.commerce.OrderCustomer.CustomerOrBuilder getCustomerOrBuilder() {\n return getCustomer();\n }", "public CustomerPath customer() {\n if (_customer == null)\n _customer = new CustomerPath(this, Keys.PAYMENT_P2007_03__PAYMENT_P2007_03_CUSTOMER_ID_FKEY, null);\n\n return _customer;\n }", "public String getCustomer_Name() {\n return customer_Name;\n }", "public String getCustomerName() {\n return customerName;\n }", "public String getCustomerName() {\n return customerName;\n }", "public CustomerNumberElements getCustomerNumberAccess() {\n\t\treturn pCustomerNumber;\n\t}", "protected Optional<Customer> getCustomer() {\n return customer.getOptional();\n }", "public String getCustomerid() {\n return customerid;\n }", "public Customer getCustomer()\n {\n return customer;\n }", "public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public String getCustomerName() {\r\n return name.getName();\r\n }", "public String getCustomerName()\n\t{\n\t\treturn name;\n\t}", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "public Customer getCustomerByName(String customerName);", "public String getCustomersName()\r\n {\r\n return customersName;\r\n }", "public Map<String, Customer> getCustomer(){\r\n\t\treturn treeData;\r\n\t}", "@Override\r\n\tpublic Customer getCustomer(int customerID) {\n\t\treturn null;\r\n\t}", "public String getCustomerName(){\n return customerName;\n }", "static customer getCustomer(String uid) {\n return null;\n }", "public CustomerEOImpl getCustomerEO() {\r\n return (CustomerEOImpl) getEntity(2);\r\n }", "public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}", "public String getCustomerName() {\n\t\treturn this.customer.getCustomerName();\n\t}", "public Integer getCustomerId()\n {\n return customerId;\n }", "public String getCustomerName() {\n\t\treturn customerName;\n\t}", "public String getCustomerName() {\n\t\treturn customerName;\n\t}", "public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}", "String getName() {\n\t\treturn customer.getName();\n\t}", "public int getCustomerNo() {\n\t\treturn this.customerNo;\r\n\t}", "public int getCustomerID() {\n return customerID;\n }", "public String getCustomerId() {\n\t\treturn customerId;\n\t}", "Customer getCustomerById(int customerId);", "public Integer getCustomerID() {\n return customerID;\n }", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n return customerId;\n }", "String getCustomerID();", "public String getCustomerName()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_NAME, LEN_CUSTOMER_NAME) ;\n\t}", "public final String getCustomerId() {\n\t\treturn customerId;\n\t}", "public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}", "public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier getCustomerIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().find_element_user(CUSTOMERIDENTIFIER$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public Object getCustomerContactRecord() {\n return customerContactRecord;\n }", "@Override\n\tpublic String getName(){\n\t\treturn customer.getName();\n\t}", "public int getCustomerref() {\n\t\treturn custref;\n\t}", "String getCustomerNameById(int customerId);", "public Long getCustomerId() {\n return customerId;\n }", "public int getCustNumber()\n\t{\n\t\treturn customerNumber;\n\t}", "public Customer getCustomer(String customerID, DataPool allData){\r\n\t\t\r\n\t\tif (allData == null || customerID== null) \r\n\t\t\treturn null;\r\n\t\treturn treeData.get(customerID);\r\n\t\t\r\n\t}", "public long getCustomerId() {\n return customerId;\n }", "public long getCustomerId() {\n return customerId;\n }", "public String getCustomerType() \n {\n return customerType;\n }", "io.opencannabis.schema.commerce.OrderCustomer.CustomerOrBuilder getCustomerOrBuilder();", "@Override\n\tpublic String getName() {\n\t\treturn customerName;\n\t}", "public void getCustomerID (){\n\t\t//gets the selected row \n\t\tint selectedRowIndex = listOfAccounts.getSelectedRow();\n\t\t//gets the value of the first element of the row which is the \n\t\t//customerID\n\t\tcustomerID = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 0);\n\t\tcustomerName = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 1);\n\t}", "public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}", "public io.opencannabis.schema.commerce.OrderCustomer.Customer.Builder getCustomerBuilder() {\n \n onChanged();\n return getCustomerFieldBuilder().getBuilder();\n }", "public String getCustomerAddress() {\n return customerAddress;\n }", "com.google.ads.googleads.v6.resources.CustomerOrBuilder getCustomerOrBuilder();", "Customer getCustomerByMobileNumber(String mobileNumber) throws EOTException;", "public String getCustId() {\n return custId;\n }", "public String getCustName() \r\n\t{\r\n\t\t\r\n\t\treturn custName;\r\n\t\t\r\n\t}", "public static String getCustomerAddress() {\n\t\treturn customerAddress;\n\t}", "public Customer getCustomer(int phone)\n\t{\n\t\treturn CustomerContainer.getInstance().getCustomer(phone);\n\t}", "public Customer getCustomers(int customerId) {\n for(Customer customer:customers){\n if(customer.getId() == customerId){\n return customer;\n }\n }\n return null;\n }", "public ArrayList<Customer> getCustomerList() {\n\t\treturn customerList;\n\t}", "Customer getCustomerById(final Long id);", "public ICustomer getCustomer(final Customer customer) {\n ICustomer iCustomer = null;\n if(CustomerType.REGULAR.equals(customer.getCustomerType())) {\n iCustomer = new RegularCustomer();\n }\n return iCustomer;\n }", "public int getCustomerID() {\n\t\treturn customerID;\n\t}", "public String getCustName() {\n\t\treturn custName;\n\t}" ]
[ "0.79189175", "0.7762655", "0.76590014", "0.7461622", "0.7381701", "0.73805004", "0.73364383", "0.73364383", "0.7335258", "0.73228496", "0.7282946", "0.72184837", "0.7216172", "0.71658444", "0.71640486", "0.7152377", "0.711563", "0.71051025", "0.7040222", "0.70387185", "0.6998836", "0.69987386", "0.6936787", "0.6865466", "0.6847833", "0.68405116", "0.6840356", "0.6831062", "0.6826239", "0.6816784", "0.6802761", "0.67852116", "0.6780313", "0.67753386", "0.67753386", "0.67588633", "0.6733956", "0.6725764", "0.67061496", "0.6705366", "0.6663965", "0.6663965", "0.6657016", "0.6649273", "0.6647736", "0.6647736", "0.66403735", "0.6635804", "0.6634701", "0.6623576", "0.66192615", "0.65860826", "0.6550589", "0.65429944", "0.6526115", "0.6522227", "0.6512408", "0.6512408", "0.65040195", "0.6498128", "0.6482935", "0.6468294", "0.6461375", "0.6454659", "0.64450747", "0.64435387", "0.64435387", "0.64391804", "0.64364976", "0.64306957", "0.6429985", "0.6420928", "0.641185", "0.6406714", "0.64008284", "0.6390771", "0.6390667", "0.6379492", "0.6376337", "0.63646364", "0.63646364", "0.6361924", "0.63538694", "0.6345678", "0.634349", "0.6337457", "0.63373417", "0.63315207", "0.6310489", "0.63094485", "0.62926316", "0.6289175", "0.62725765", "0.6272367", "0.6264838", "0.6256135", "0.6252784", "0.6252747", "0.6252403", "0.62427485" ]
0.7222446
11
Sets the "customer" element
public void setCustomer(au.gov.asic.types.AccountIdentifierType customer) { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.AccountIdentifierType target = null; target = (au.gov.asic.types.AccountIdentifierType)get_store().find_element_user(CUSTOMER$0, 0); if (target == null) { target = (au.gov.asic.types.AccountIdentifierType)get_store().add_element_user(CUSTOMER$0); } target.set(customer); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCustomer(org.tempuri.Customers customer) {\r\n this.customer = customer;\r\n }", "public void setCustomer(String Cus){\n\n this.customer = Cus;\n }", "protected void setCustomer(Customer customer) {\n this.customer = customer;\n }", "public void setCustomer(String customer) {\n this.customer = customer;\n }", "public void setCustomer(Integer customer) {\n this.customer = customer;\n }", "public void setCustomer(Customer customer) {\r\n \r\n this.customer = customer;\r\n \r\n if (customer != null) {\r\n // Fill the labels with info from the Customer object\r\n custIdTextField.setText(Integer.toString(customer.getCustomerId()));\r\n custFirstNameTextField.setText(customer.getCustFirstName());\r\n custLastNameTextField.setText(customer.getCustLastName());\r\n custAddressTextField.setText(customer.getCustAddress());\r\n custCityTextField.setText(customer.getCustCity());\r\n custProvinceTextField.setText(customer.getCustProv());\r\n custPostalCodeTextField.setText(customer.getCustPostal());\r\n custCountryTextField.setText(customer.getCustCountry());\r\n custHomePhoneTextField.setText(customer.getCustHomePhone());\r\n custBusinessPhoneTextField.setText(customer.getCustBusPhone());\r\n custEmailTextField.setText(customer.getCustEmail());\r\n if (cboAgentId.getItems().contains(customer.getAgentId())){\r\n cboAgentId.setValue(customer.getAgentId());\r\n }\r\n else{\r\n cboAgentId.getSelectionModel().selectFirst();\r\n }\r\n } else {\r\n custIdTextField.setText(\"\");\r\n custFirstNameTextField.setText(\"\");\r\n custLastNameTextField.setText(\"\");\r\n custAddressTextField.setText(\"\");\r\n custCityTextField.setText(\"\");\r\n custProvinceTextField.setText(\"\");\r\n custPostalCodeTextField.setText(\"\");\r\n custCountryTextField.setText(\"\");\r\n custHomePhoneTextField.setText(\"\");\r\n custBusinessPhoneTextField.setText(\"\");\r\n custEmailTextField.setText(\"\");\r\n cboAgentId.getSelectionModel().selectFirst();\r\n } \r\n }", "public void setCustomer(final Customer customer) {\n\t\tthis.customer = customer;\n\t}", "public void setCurrentCustomer(Customer customer) {\n this.currentCustomer = customer;\n }", "public void setCustomer (de.htwg_konstanz.ebus.framework.wholesaler.vo.Customer customer) {\r\n\t\tthis.customer = customer;\r\n\t}", "public void setCustomer(\n @Nullable\n final String customer) {\n rememberChangedField(\"Customer\", this.customer);\n this.customer = customer;\n }", "public void setCustomer(com.huawei.www.bme.cbsinterface.cbs.businessmgr.IndividualCustomer customer) {\r\n this.customer = customer;\r\n }", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }", "public void setCustomerName(String customerName) \n {\n this.customerName = customerName;\n }", "public void setCustomer(Customer customer) {\r\n\t\tthis.customer = customer;\r\n\t\tpassengers.add(customer);\r\n\t}", "public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }", "public void setCustomer(Customer c){\n\t\tthis.c = Optional.of(c);\n\t}", "public void setCustomer(Customer customer) {\r\n\r\n this.customer = customer;\r\n ObservableList<Order> orders = getAllCustomerOrders(customer.getCustomerId());\r\n ordersTable.setItems(orders);\r\n }", "public void setCustomerId(Number value) {\n setAttributeInternal(CUSTOMERID, value);\n }", "public final void setOrder_Customer(simpleordermodule.proxies.Customer order_customer)\r\n\t{\r\n\t\tsetOrder_Customer(getContext(), order_customer);\r\n\t}", "public void setCustID(String custID) {\r\n this.custID = custID;\r\n }", "public void setCurrentCustomer(Customer currentCustomer) {\n\t\tthis.currentCustomer = currentCustomer;\n\t}", "public final void setOrder_Customer(com.mendix.systemwideinterfaces.core.IContext context, simpleordermodule.proxies.Customer order_customer)\r\n\t{\r\n\t\tif (order_customer == null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Order_Customer.toString(), null);\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Order_Customer.toString(), order_customer.getMendixObject().getId());\r\n\t}", "public static void setCustomerData()\n\t{\n\t\tString sURL = PropertyManager.getInstance().getProperty(\"REST_PATH\") + \"measurements?state=WAIT_FOR_CONFIG\";\n\t\tmCollect = new MeasurementCollection();\n\t\tmCollect.setList(sURL);\n\n\t\tfor (int i = 0; i < mCollect.getList().size(); i++)\n\t\t{\n\t\t\tmObject = mCollect.getList().get(i);\n\t\t\tString mID = mObject.getId();\n\t\t\taData = new AddressData(mID);\n\t\t\tif (mObject.getPriority().equals(\"HIGH\"))\n\t\t\t{\n\t\t\t\tcustomerList.add(\"+ \" + aData.guiAddressData());\n\t\t\t}\n\t\t\telse if (mObject.getPriority().equals(\"MEDIUM\"))\n\t\t\t{\n\t\t\t\tcustomerList.add(\"- \" + aData.guiAddressData());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcustomerList.add(\"o \" + aData.guiAddressData());\n\t\t\t}\n\n\t\t}\n\t\tcustomerText.setText(aData.getCustomerData());\n\t\tmeasureText.setText(mObject.getMeasurementData());\n\n\t}", "public void setCustomer_Name(String customer_Name) {\n this.customer_Name = customer_Name;\n }", "public void updateCustomerInfo(){\n nameLabel.setText(customer.getName());\n productWantedLabel.setText(customer.getWantedItem());\n serviceManager.getTotalPrice().updateNode();\n }", "public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }", "public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }", "public void setCustomerId(long value) {\n this.customerId = value;\n }", "public void setCustomerId(final Integer customerId)\n {\n this.customerId = customerId;\n }", "public void setCustomerID(Integer customerID) {\n this.customerID = customerID;\n }", "public boolean setCustomer(Customer aCustomer)\n {\n boolean wasSet = false;\n if (aCustomer == null)\n {\n return wasSet;\n }\n\n Customer existingCustomer = customer;\n customer = aCustomer;\n if (existingCustomer != null && !existingCustomer.equals(aCustomer))\n {\n existingCustomer.removeBooking(this);\n }\n customer.addBooking(this);\n wasSet = true;\n return wasSet;\n }", "public void setCustomerAddr(String customerAddr) {\n this.customerAddr = customerAddr;\n }", "@Accessor(qualifier = \"Customers\", type = Accessor.Type.SETTER)\n\tpublic void setCustomers(final Collection<B2BCustomerModel> value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(CUSTOMERS, value);\n\t}", "public void setCustomerIdentifier(au.gov.asic.types.MessageIdentifierType.CustomerIdentifier customerIdentifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().find_element_user(CUSTOMERIDENTIFIER$2, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().add_element_user(CUSTOMERIDENTIFIER$2);\n }\n target.set(customerIdentifier);\n }\n }", "public void setCustomerName(String customerName) {\n this.customerName = customerName;\n }", "public void setCustomerPurchase(double purchase) { this.customerPurchase = purchase; }", "public void setBudgetCustomerId(Number value) {\n setAttributeInternal(BUDGETCUSTOMERID, value);\n }", "public void setJob_Customer(CustomerDataObject job_Customer) {\r\n this.job_Customer = job_Customer;\r\n }", "public Builder setCustomer(io.opencannabis.schema.commerce.OrderCustomer.Customer value) {\n if (customerBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n customer_ = value;\n onChanged();\n } else {\n customerBuilder_.setMessage(value);\n }\n\n return this;\n }", "public void setCustNo(java.lang.String custNo) {\n this.custNo = custNo;\n }", "public void setCustomerType(String customerType) \n {\n this.customerType = customerType;\n }", "public void setOrgCustomer(java.lang.String newOrgCustomer) {\n\torgCustomer = newOrgCustomer;\n}", "public void setAmazonCustomerId(final SessionContext ctx, final Customer item, final String value)\n\t{\n\t\titem.setProperty(ctx, AmazoncoreConstants.Attributes.Customer.AMAZONCUSTOMERID,value);\n\t}", "public void setCustomerId(Long customerId) {\n this.customerId = customerId;\n }", "public void setCustomerId(String customerId)\n\t{\n\t\tthis.customerId = customerId;\n\t}", "public String getCustomer() {\n return customer;\n }", "public abstract void setCustomerAddress(Address address);", "public void update(Customer customer) {\n\n\t}", "public void setAmazonCustomerId(final Customer item, final String value)\n\t{\n\t\tsetAmazonCustomerId( getSession().getSessionContext(), item, value );\n\t}", "public void setCustomerName(String name) {\r\n this.name.setText(name);\r\n }", "public void setTotalCustomers(int _totalCustomers){\n this.totalCustomers = _totalCustomers;\n\n }", "public void CampoObligatorioClass(String strCustomerName) {\n\n this.clickNewCustomer();\n this.setCustomerName(strCustomerName);\n this.clickGender();\n }", "public void setCustomerType(int v) \n {\n \n if (this.customerType != v)\n {\n this.customerType = v;\n setModified(true);\n }\n \n \n }", "public void setCustomerId(int customerId) {\n\t\tthis.customerId = customerId;\n\t}", "public void updateCustomer(String id) {\n\t\t\n\t}", "public void setCustomersName(String customersName)\r\n {\r\n this.customersName = customersName;\r\n }", "public void setCustomerID(String customerID) {\n try {\n if(!(customerID.equals(null)))\n this.customerID = customerID;\n else {\n this.customerID = \"\";\n throw new SupplyOrderException(\"Invalid Customer ID\");\n }\n } catch(SupplyOrderException soe){\n soe.getMessage();\n }\n }", "private void seatCustomer(MyCustomer customer) {\n\t//Notice how we print \"customer\" directly. It's toString method will do it.\n\tDo(\"Seating \" + customer.cmr + \" at table \" + (customer.tableNum+1));\n\t//move to customer first.\n\tCustomer guiCustomer = customer.cmr.getGuiCustomer();\n\tguiMoveFromCurrentPostionTo(new Position(guiCustomer.getX()+1,guiCustomer.getY()));\n\twaiter.pickUpCustomer(guiCustomer);\n\tPosition tablePos = new Position(tables[customer.tableNum].getX()-1,\n\t\t\t\t\t tables[customer.tableNum].getY()+1);\n\tguiMoveFromCurrentPostionTo(tablePos);\n\twaiter.seatCustomer(tables[customer.tableNum]);\n\tcustomer.state = CustomerState.NO_ACTION;\n\tcustomer.cmr.msgFollowMeToTable(this, new Menu());\n\tstateChanged();\n }", "public void setCustomerId(String customerId) {\n this.customerId = customerId == null ? null : customerId.trim();\n }", "void assignAuthorisationsToCustomer(CustomerModel customer);", "private void fillExistingCustomer() {\n idField.setText(String.valueOf(existingCustomer.getCustomerID()));\n nameField.setText(existingCustomer.getCustomerName());\n String[] splitAddress = existingCustomer.getAddress().split(\", \");\n addressField.setText(splitAddress[0]);\n if ( splitAddress.length > 1 ) {\n cityField.setText(splitAddress[1]);\n }\n postalField.setText(existingCustomer.getPostalCode());\n phoneField.setText(existingCustomer.getPhone());\n\n FirstLevelDivision division = getDivisionByID(existingCustomer.getDivisionID());\n divisionComboBox.getSelectionModel().select(division);\n countryComboBox.getSelectionModel().select(getCountryByID(division.getCountryID()));\n }", "public void setCustomer_Type(String value) {\n setAttributeInternal(CUSTOMER_TYPE, value);\n }", "public Customer getCustomer() {\r\n\t\treturn customer;\r\n\t}", "public Customer getCustomer() {\r\n\t\treturn customer;\r\n\t}", "@Override\r\n\tpublic void createAccount(Customer customer) {\n\t\tcustMap.put(customer.getMobileNo(),customer);\r\n\t\t\r\n\t}", "@Override\n\tpublic void putCustomers(Customer customer) {\n\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(customer);;\n\n\t}", "public void addCustomer(){\n Customer customer = new Customer();\n customer.setId(data.numberOfCustomer());\n customer.setFirstName(GetChoiceFromUser.getStringFromUser(\"Enter First Name: \"));\n customer.setLastName(GetChoiceFromUser.getStringFromUser(\"Enter Last Name: \"));\n data.addCustomer(customer,data.getBranch(data.getBranchEmployee(ID).getBranchID()));\n System.out.println(\"Customer has added Successfully!\");\n }", "public void setCustId(Long custId) {\n this.custId = custId;\n }", "private void addCustomer() {\n try {\n FixCustomerController fixCustomerController = ServerConnector.getServerConnector().getFixCustomerController();\n\n FixCustomer fixCustomer = new FixCustomer(txtCustomerName.getText(), txtCustomerNIC.getText(), String.valueOf(comJobrole.getSelectedItem()), String.valueOf(comSection.getSelectedItem()), txtCustomerTele.getText());\n\n boolean addFixCustomer = fixCustomerController.addFixCustomer(fixCustomer);\n\n if (addFixCustomer) {\n JOptionPane.showMessageDialog(null, \"Customer Added Success !!\");\n } else {\n JOptionPane.showMessageDialog(null, \"Customer Added Fail !!\");\n }\n\n } catch (NotBoundException | MalformedURLException | RemoteException ex) {\n new ServerNull().setVisible(true);\n } catch (ClassNotFoundException | IOException ex) {\n Logger.getLogger(InputCustomers.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public org.tempuri.Customers getCustomer() {\r\n return customer;\r\n }", "public Customer getCustomer() {\r\n return customer;\r\n }", "void updateCustomerById(Customer customer);", "private Customer storeCustomer(Customer customer){\n customerRestService.createCustomer(customer);\n return customer;\n }", "public void setCustomerId(String customerId) {\n\t\tthis.customerId = customerId == null ? null : customerId.trim();\n\t}", "public void setCustomerName(\n @Nullable\n final String customerName) {\n rememberChangedField(\"CustomerName\", this.customerName);\n this.customerName = customerName;\n }", "public Customer getCustomer() {\n return this.customer;\n }", "public void sendData(Customer customer){\n\n this.countriesList = CountryDAOImpl.getAllCountries();\n\n\n this.idTB.setText(Integer.toString(customer.getId()));\n this.nameTB.setText(customer.getName());\n this.addressTB.setText(customer.getAddress());\n this.postCodeTB.setText(customer.getPostalCode());\n this.phone.setText(customer.getPhoneNumber());\n this.countryCB.setItems(this.countriesList);\n setCountrySelected(customer.getCountry(), customer.getDivision());\n setCustomer(customer);\n }", "public Builder setCustomer(\n io.opencannabis.schema.commerce.OrderCustomer.Customer.Builder builderForValue) {\n if (customerBuilder_ == null) {\n customer_ = builderForValue.build();\n onChanged();\n } else {\n customerBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}", "@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}", "public Customer getCustomer() {\n\t\treturn customer;\n\t}", "@Override\n public void setPhone(java.lang.String phone) {\n _entityCustomer.setPhone(phone);\n }", "public de.htwg_konstanz.ebus.framework.wholesaler.vo.Customer getCustomer () {\r\n\t\treturn customer;\r\n\t}", "public Customer getCustomer() {\r\n\t\treturn this.customer;\r\n\t}", "@Override\n\tpublic void addCustomers(Customer customer) {\n\n\t\tsessionFactory.getCurrentSession().save(customer);\n\t}", "public void editCustomer() {\n int id = this.id;\n PersonInfo personInfo = dbHendler.getCustInfo(id);\n String name = personInfo.getName().toString().trim();\n String no = personInfo.getPhoneNumber().toString().trim();\n float custNo = personInfo.get_rootNo();\n String cUSTnO = String.valueOf(custNo);\n int fees = personInfo.get_fees();\n String fEES = Integer.toString(fees);\n int balance = personInfo.get_balance();\n String bALANCE = Integer.toString(balance);\n String nName = personInfo.get_nName().toString().trim();\n String startdate = personInfo.get_startdate();\n int areaID = personInfo.get_area();\n String area = dbHendler.getAreaName(areaID);\n person_name.setText(name);\n contact_no.setText(no);\n rootNo.setText(cUSTnO);\n monthly_fees.setText(fEES);\n balance_.setText(bALANCE);\n nickName.setText(nName);\n this.startdate.setText(startdate);\n // retrieving the index of element u\n int retval = items.indexOf(area);\n\n spinner.setSelection(retval);\n }", "public void setCustomerMobile(String customerMobile) {\n this.customerMobile = customerMobile;\n }", "public Customer() {\r\n\t\tthis.name = \"\";\r\n\t\tthis.parcelID = \"\";\r\n\t\tthis.seqNo = 0;\r\n\t}", "@Then(\"^user enters customer details$\")\n\tpublic void user_enters_customer_details(DataTable customer) {\n\t\tfor(Map<String, String> data :customer.asMaps())\n\t\t{\n\t\t\t \tdriver.findElement(By.name(\"name\")).sendKeys(data.get(\"customer\"));\n\t\t\t driver.findElement(By.xpath(\"//input[@type='radio'][@value='m']\")).click();\n\t\t\t driver.findElement(By.xpath(\"//input[@type='date']\")).sendKeys(data.get(\"DOB\"));\n//\t\t\t driver.findElement(By.name(\"addr\")).sendKeys(data.get(\"add\"));\n\t\t\t driver.findElement(By.name(\"city\")).sendKeys(data.get(\"city\"));\n\t\t\t driver.findElement(By.name(\"state\")).sendKeys(data.get(\"state\"));\n\t\t\t driver.findElement(By.name(\"pinno\")).sendKeys(data.get(\"pin\"));\n\t\t\t driver.findElement(By.name(\"telephoneno\")).sendKeys(data.get(\"mobile\"));\n\t\t\t driver.findElement(By.name(\"emailid\")).sendKeys(data.get(\"emailid\"));\n\t\t\t driver.findElement(By.name(\"password\")).sendKeys(data.get(\"password\"));\n\t\t\t \n\t\t}\n\t \n\t \n\t}", "@Override\r\n\tpublic void saveCustomer(CRMDto theCustomer) {\n\t\t\r\n\t\tSession session = factory.openSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\tsession.update(theCustomer);\r\n\t\ttx.commit();\r\n\t\t//System.out.println(\"pk update is \" +pk);\r\n\t\t\r\n\t\t\r\n\t}", "public Customer getCustomer() {\n return customer;\n }", "Customer getCustomer() {\n\t\treturn customer;\n\t}", "public void editCustomer(Customer c) {\n\t\tconnector.editCustomer(c);\n\t\t\n\t\t// Edit entries in table \"Nummern\"\n\t\tconnector.editNumbers(c, c.getNumbers());\n\t\t\n\t\tupdateCustomers();\n\t}", "public static void createAccount(Customer customer) {\n\t\tcustomerList.add(customer);\n\t}", "public void setCustomerid(String customerid) {\n this.customerid = customerid == null ? null : customerid.trim();\n }", "@Test\n\tvoid testSetAddress() {\n\t\tassertNull(this.customer.getAddress());\n\t\t\n\t\t//sets address for customer\n\t\tthis.customer.setAddress(\"Brooklyn, NY\");\n\t\t\n\t\t//checks that address was set correctly\n\t\tassertEquals(\"Brooklyn, NY\", this.customer.getAddress());\n\t\t\n\t\t//reset address for customer\n\t\tthis.customer.setAddress(\"Cranston, RI\");\n\t\t\n\t\t//checks that address was reset correctly\n\t\tassertEquals(\"Cranston, RI\", this.customer.getAddress());\n\t}", "public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}", "public Customer putCustomer(final Customer customer) {\n return dbClient.put(customer);\n }", "@SuppressWarnings({ \"unchecked\", \"unused\" })\n\tpublic StockAccount(Customer customer)\n\t{\n\t\t// System.out.println(customer);\n\t\tJSONObject name = new JSONObject();\n\t\tJSONObject jsonObject = Utility.readFromJsonFile1(mCustomerPath);\n\t\tJSONObject jsonObject1 = new JSONObject();\n\n\t\tname.put(\"Money\", customer.getMoney());\n\t\tname.put(\"TotalShare\", customer.getTotal_share());\n\t\tjsonObject.put(customer.getName(), name);\n\t\tUtility.writeJsonObjectToFile2(mCustomerPath, jsonObject);\n\t}" ]
[ "0.80080706", "0.79978585", "0.7804687", "0.7758025", "0.7415264", "0.73959476", "0.73418784", "0.7303237", "0.73002017", "0.7280485", "0.7179825", "0.7143211", "0.71374464", "0.7133433", "0.7075341", "0.7069475", "0.7060893", "0.70277935", "0.70221335", "0.7016082", "0.68638057", "0.6846844", "0.67644453", "0.6751242", "0.6750463", "0.67405045", "0.6709766", "0.6709766", "0.66677606", "0.66673017", "0.66600454", "0.6653778", "0.65962195", "0.6587871", "0.6572798", "0.65549374", "0.6508148", "0.64962053", "0.64908993", "0.6488129", "0.6479575", "0.6459584", "0.64560634", "0.6447744", "0.6446379", "0.6438378", "0.64037484", "0.6381924", "0.63615036", "0.6361478", "0.6356386", "0.63518786", "0.63292027", "0.63148665", "0.6286929", "0.627291", "0.62696415", "0.62629145", "0.62602025", "0.62550056", "0.6242011", "0.62249154", "0.62047076", "0.6198637", "0.6198637", "0.6195986", "0.6181916", "0.6180655", "0.6171206", "0.61495686", "0.61380094", "0.6125054", "0.61218524", "0.61218387", "0.6113851", "0.6110299", "0.61097527", "0.60994333", "0.60943204", "0.6082168", "0.6082168", "0.60652477", "0.606366", "0.6047549", "0.6044671", "0.6041086", "0.6040628", "0.6022562", "0.6020227", "0.6018325", "0.6016161", "0.6013342", "0.5990726", "0.59765524", "0.59705323", "0.5952795", "0.59500295", "0.59486073", "0.5944488", "0.5943025" ]
0.7785836
3
Appends and returns a new empty "customer" element
public au.gov.asic.types.AccountIdentifierType addNewCustomer() { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.AccountIdentifierType target = null; target = (au.gov.asic.types.AccountIdentifierType)get_store().add_element_user(CUSTOMER$0); return target; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addCustomer(String c){\n\t\tif(!containsCustomer(c)){\n\t\t\tCustomer e = new Customer(c);\n\t\t\tlist.add(e);\n\t\t}\n\t}", "public void addCustomer(){\n Customer customer = new Customer();\n customer.setId(data.numberOfCustomer());\n customer.setFirstName(GetChoiceFromUser.getStringFromUser(\"Enter First Name: \"));\n customer.setLastName(GetChoiceFromUser.getStringFromUser(\"Enter Last Name: \"));\n data.addCustomer(customer,data.getBranch(data.getBranchEmployee(ID).getBranchID()));\n System.out.println(\"Customer has added Successfully!\");\n }", "public Builder clearCustomer() {\n if (customerBuilder_ == null) {\n customer_ = null;\n onChanged();\n } else {\n customer_ = null;\n customerBuilder_ = null;\n }\n\n return this;\n }", "public void addNode(CustomerNode<Customer> c){\r\n\t\tCustomerNode<Customer> temp = new CustomerNode<Customer>(new Customer(c.getElement().getArrivalTime(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.getElement().getID(), c.getElement().getOrderTime(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.getElement().getPaid(), c.getElement().getPatience()));\r\n\t\tif(this.isEmpty()){\r\n\t\t\tfirst=last=temp;\r\n\t\t\tsize++;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlast.setNext(temp);\r\n\t\ttemp.setPrev(last);\r\n\t\tlast=temp;\r\n\t\tsize++;\r\n\t}", "public void addCustomer() {\r\n\t\tdo {\r\n\t\t\tString name = getToken(\"Enter the customer's name: \");\r\n\t\t\tString phoneNumber = getToken(\"Enter the phone number: \");\r\n\t\t\tCustomer customer = store.addCustomer(name, phoneNumber);\r\n\t\t\tif (customer == null) {\r\n\t\t\t\tSystem.out.println(\"Could not add customer.\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(customer);\r\n\t\t} while (yesOrNo(\"Would you like to add another Customer?\"));\r\n\t}", "public void addCustomer(Customer customer) {\r\n if (hasID(customer.getID())) {\r\n return;\r\n }\r\n\r\n for (int i = 0; i < customers.length; i++) {\r\n if (customers[i] == null) {\r\n customers[i] = customer;\r\n return;\r\n }\r\n }\r\n\r\n System.err.println(\"No more room in database!\");\r\n }", "public void prepareAdd() {\r\n\t\tcurrent = new Customer();\r\n\t\tcurrent.setCustomerCode(generateCode.generateCustomerCode());\r\n\t}", "public void clearCustomers()\r\n\t{\r\n\t\tfor(int i=0;i<inStore.size();i++)\r\n\t\t{\r\n\t\t\tcustomers.add(inStore.get(i));\r\n\t\t}\r\n\t\tinStore.clear();\r\n\t}", "static void addCustomerOrder() {\n\n Customer newCustomer = new Customer(); // create new customer\n\n Product orderedProduct; // initialise ordered product variable\n\n int quantity; // set quantity to zero\n\n String name = Validate.readString(ASK_CST_NAME); // Asks for name of the customer\n\n newCustomer.setName(name); // stores name of the customer\n\n String address = Validate.readString(ASK_CST_ADDRESS); // Asks for address of the customer\n\n newCustomer.setAddress(address); // stores address of the customer\n\n customerList.add(newCustomer); // add new customer to the customerList\n\n int orderProductID = -2; // initialize orderProductID\n\n while (orderProductID != -1) { // keep looping until user enters -1\n\n orderProductID = Validate.readInt(ASK_ORDER_PRODUCTID); // ask for product ID of product to be ordered\n\n if(orderProductID != -1) { // keep looping until user enters -1\n\n quantity = Validate.readInt(ASK_ORDER_QUANTITY); // ask for the quantity of the order\n\n orderedProduct = ProductDB.returnProduct(orderProductID); // Search product DB for product by product ID number, return and store as orderedProduct\n\n Order newOrder = new Order(); // create new order for customer\n\n newOrder.addOrder(orderedProduct, quantity); // add the new order details and quantity to the new order\n\n newCustomer.addOrder(newOrder); // add new order to customer\n\n System.out.println(\"You ordered \" + orderedProduct.getName() + \", and the quantity ordered is \" + quantity); // print order\n }\n }\n }", "public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier addNewCustomerIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().add_element_user(CUSTOMERIDENTIFIER$2);\n return target;\n }\n }", "private Customer createCustomerData() {\n int id = -1;\n Timestamp createDate = DateTime.getUTCTimestampNow();\n String createdBy = session.getUsername();\n\n if (action.equals(Constants.UPDATE)) {\n id = existingCustomer.getCustomerID();\n createDate = existingCustomer.getCreateDate();\n createdBy = existingCustomer.getCreatedBy();\n }\n\n String name = nameField.getText();\n String address = addressField.getText() + \", \" + cityField.getText();\n System.out.println(address);\n String postal = postalField.getText();\n String phone = phoneField.getText();\n Timestamp lastUpdate = DateTime.getUTCTimestampNow();\n String lastUpdatedBy = session.getUsername();\n\n FirstLevelDivision division = divisionComboBox.getSelectionModel().getSelectedItem();\n int divisionID = division.getDivisionID();\n\n return new Customer(id, name, address, postal, phone, createDate, createdBy, lastUpdate, lastUpdatedBy, divisionID);\n }", "private void addCustomer() {\n try {\n FixCustomerController fixCustomerController = ServerConnector.getServerConnector().getFixCustomerController();\n\n FixCustomer fixCustomer = new FixCustomer(txtCustomerName.getText(), txtCustomerNIC.getText(), String.valueOf(comJobrole.getSelectedItem()), String.valueOf(comSection.getSelectedItem()), txtCustomerTele.getText());\n\n boolean addFixCustomer = fixCustomerController.addFixCustomer(fixCustomer);\n\n if (addFixCustomer) {\n JOptionPane.showMessageDialog(null, \"Customer Added Success !!\");\n } else {\n JOptionPane.showMessageDialog(null, \"Customer Added Fail !!\");\n }\n\n } catch (NotBoundException | MalformedURLException | RemoteException ex) {\n new ServerNull().setVisible(true);\n } catch (ClassNotFoundException | IOException ex) {\n Logger.getLogger(InputCustomers.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public CustomerService() {\n\n Customer c1 = new Customer(\"Brian May\", \"45 Dalcassian\", \"brian@gmail.com\", 123);\n Customer c2 = new Customer(\"Roger Taylor\", \"40 Connaught Street\", \"roger@gmail.com\", 123);\n Customer c3 = new Customer(\"John Deacon\", \"2 Santry Avenue\", \"john@gmail.com\", 123);\n Customer c4 = new Customer(\"Paul McCartney\", \"5 Melville Cove\", \"paul@gmail.com\", 123);\n\n c1.setIdentifier(1);\n c2.setIdentifier(2);\n c3.setIdentifier(3);\n c4.setIdentifier(4);\n customers.add(c1);\n customers.add(c2);\n customers.add(c3);\n customers.add(c4);\n\n c1.addAccount(new Account(101));\n c2.addAccount(new Account(102));\n c2.addAccount(new Account(102));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c4.addAccount(new Account(104));\n\n }", "@Override\n\tpublic void add() {\n\t\tSystem.out.println(\"Mobile Customer Add()\");\n\t}", "@Path(\"customer\")\n @Service({\"customer\"})\n public ResponseMessage addCustomer(Customer customer) {\n return csi.addCustomer(customer);\n }", "public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }", "public Customer createCustomer() {\n return new Customer(nameNested, surNameNested, ageNested, streetNested);\n }", "public void registerNewCustomers(Customer c) {\n if (!newCustomers.contains(c)\n && !modifiedCustomers.contains(c)) {\n newCustomers.add(c);\n }\n }", "public Customer() {\r\n\t\tthis.name = \"\";\r\n\t\tthis.parcelID = \"\";\r\n\t\tthis.seqNo = 0;\r\n\t}", "public static void createAccount(Customer customer) {\n\t\tcustomerList.add(customer);\n\t}", "public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}", "public io.opencannabis.schema.commerce.OrderCustomer.Customer.Builder getCustomerBuilder() {\n \n onChanged();\n return getCustomerFieldBuilder().getBuilder();\n }", "public int insertCustomer() {\n\t\treturn 0;\r\n\t}", "public void newCustomer () {\r\n\t\t//input category id.\r\n\t\t//TODO\r\n boolean ok = false;\r\n do { \r\n my.printCategoies();\r\n try {\r\n System.out.println(\"Category:\");\r\n Scanner scan = new Scanner(System.in);\r\n String cat = scan.next();\r\n \r\n Category c = my.getCategory(cat);\r\n //\r\n if (c!=null ) {\r\n // add the new customer to a category\r\n //input new customer.\r\n Customer theNewCustomer = readCustomer(cat);\r\n if ( theNewCustomer != null ) {\r\n my.add(c, theNewCustomer);\r\n ok = true;\r\n }\r\n \r\n }else{\r\n System.out.println(\"Category not exist\");\r\n }\r\n \r\n } catch (Exception e) {\r\n System.out.println(\"Sorry, try again\");\r\n }\r\n } while (ok == false);\r\n \r\n\t\t\r\n\t}", "public Customer() {\n\t\tcustref++;\n\t}", "@Override\r\n\tpublic void removeCustomer() {\n\t\t\r\n\t}", "public Customer createOrUpdateCustomer(final Customer customer) {\n checkNotNull(customer);\n\n String key = CustomerDbClient.computeKey(customer.getPhone(), customer.getName());\n Customer existing = dbClient.getById(key);\n if (existing == null) {\n return dbClient.putAndUpdateTimestamp(customer.toBuilder().setId(key).build());\n }\n\n List<Address> newAddresses = customer.getAddressesList()\n .stream()\n .filter(t -> !existing.getAddressesList().contains(t))\n .collect(Collectors.toList());\n\n Customer toUpdate = existing.toBuilder()\n .clearAddresses()\n .addAllAddresses(newAddresses) // The new address will be the default one.\n .addAllAddresses(existing.getAddressesList())\n .setDefaultAddressIndex(0)\n .build();\n\n return dbClient.putAndUpdateTimestamp(toUpdate);\n }", "Customer(){}", "public void add(Customer c) {\n customers.add(c);\n\n fireTableDataChanged();\n }", "@Override\n\tpublic boolean createCustomer(Customer customer) {\n\n\t\tif (customer != null) {\n\t\t\tcustomers.add(customer);\n\t\t\tlogger.info(\"Customer added to the list\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\tlogger.info(\"Failed to add customer to the list: createCustomer()\");\n\t\t\treturn false;\n\t\t}\n\t}", "public synchronized Person addNewBuyer(String name) {\n Customer newCustomer = new Customer(UsersSerialGenerator++,name);\n m_CustomersInSystem.put(name,newCustomer);\n return newCustomer;\n }", "public static void createCustomer() throws IOException\r\n\t{\r\n\t\tclearScreen();\r\n\t\t\r\n\t\tSystem.out.println(\"[CUSTOMER CREATOR]\\n\");\r\n\t\tSystem.out.println(\"Enter the name of the customer you would like to create:\");\r\n\t\t\r\n\t\t// create a new customer with a user-defined name\r\n\t\tCustomer c = new Customer(inputString(false));\r\n\t\t// add the customer to the ArrayList\r\n\t\tcustomers.add(c);\r\n\t\t// display the edit screen for the customer\r\n\t\teditCustomer(c);\r\n\t}", "private PersonCtr createCustomer()\n {\n\n // String name, String addres, int phone, int customerID\n PersonCtr c = new PersonCtr();\n String name = jTextField3.getText();\n String address = jTextPane1.getText();\n int phone = Integer.parseInt(jTextField2.getText());\n int customerID = phone;\n Customer cu = new Customer();\n cu = c.addCustomer(name, address, phone, customerID);\n JOptionPane.showMessageDialog(null, cu.getName() + \", \" + cu.getAddress()\n + \", tlf.nr.: \" + cu.getPhone() + \" er oprettet med ID nummer: \" + cu.getCustomerID()\n , \"Kunde opretttet\", JOptionPane.INFORMATION_MESSAGE);\n return c;\n\n\n }", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "public static void setCustomerData()\n\t{\n\t\tString sURL = PropertyManager.getInstance().getProperty(\"REST_PATH\") + \"measurements?state=WAIT_FOR_CONFIG\";\n\t\tmCollect = new MeasurementCollection();\n\t\tmCollect.setList(sURL);\n\n\t\tfor (int i = 0; i < mCollect.getList().size(); i++)\n\t\t{\n\t\t\tmObject = mCollect.getList().get(i);\n\t\t\tString mID = mObject.getId();\n\t\t\taData = new AddressData(mID);\n\t\t\tif (mObject.getPriority().equals(\"HIGH\"))\n\t\t\t{\n\t\t\t\tcustomerList.add(\"+ \" + aData.guiAddressData());\n\t\t\t}\n\t\t\telse if (mObject.getPriority().equals(\"MEDIUM\"))\n\t\t\t{\n\t\t\t\tcustomerList.add(\"- \" + aData.guiAddressData());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcustomerList.add(\"o \" + aData.guiAddressData());\n\t\t\t}\n\n\t\t}\n\t\tcustomerText.setText(aData.getCustomerData());\n\t\tmeasureText.setText(mObject.getMeasurementData());\n\n\t}", "public Customer(String name, double initialAmount) { //constructor for our customer class\r\n this.name = name;\r\n addId++;\r\n this.custId=addId;\r\n this.transactions = new ArrayList<>();\r\n balance=initialAmount;\r\n transactions.add(initialAmount);\r\n }", "public Customer build() {\n return new Customer(this);\n }", "public void spawnCustomers()\r\n\t{\r\n\t\tint x = 0;\r\n\t\tfor(int i=0;i<capacity;i++)\r\n\t\t{\r\n\t\t\tx = (int)(Math.random()*customers.size()-1);\r\n\t\t\tinStore.add(customers.get(x));\r\n\t\t\tcustomers.remove(x);\r\n\t\t}\r\n\t}", "public void addCustomerTest() {\n\t\tassertNotNull(\"Test if there is valid Customer arraylist to add to\", CustomerList);\r\n\t\t\r\n\t\t//Given an empty list, after adding 1 item, the size of the list is 1 - normal\r\n\t\t//The item just added is as same as the first item of the list\r\n\t\tCustomerMain.addCustomer(CustomerList, cust1);\t\t\r\n\t\tassertEquals(\"Test that Customer arraylist size is 1\", 1, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is added\", cust1, CustomerList.get(0));\r\n\t\t\r\n\t\t//Add another item. test The size of the list is 2? - normal\r\n\t\t//The item just added is as same as the second item of the list\r\n\t\tCustomerMain.addCustomer(CustomerList, cust2);\r\n\t\tassertEquals(\"Test that Customer arraylist size is 2\", 2, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is added\", cust2, CustomerList.get(1));\r\n\t\t\r\n\t\t//Add another item. test The size of the list is 3? - normal\r\n\t\t//The item just added is as same as the second item of the list\r\n\t\tCustomerMain.addCustomer(CustomerList, cust3);\r\n\t\tassertEquals(\"Test that Customer arraylist size is 2\", 3, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is added\", cust3, CustomerList.get(2));\r\n\t}", "Customer() \n\t{\n\t}", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "public void addCustomerMoney(Coin c){\n customerMoney.add(c);\n }", "@Override\n public String toString() {\n return \"Customer{\" +\n \"name='\" + name + '\\'' +\n \", surname='\" + surname + '\\'' +\n \", address='\" + address + '\\'' +\n \", email='\" + email + '\\'' +\n \", tel=\" + tel +\n '}';\n }", "static void addCustomer(customer customer) {\n\n }", "public CustomerNew () {\n\t\tsuper();\n\t}", "public Builder mergeCustomer(io.opencannabis.schema.commerce.OrderCustomer.Customer value) {\n if (customerBuilder_ == null) {\n if (customer_ != null) {\n customer_ =\n io.opencannabis.schema.commerce.OrderCustomer.Customer.newBuilder(customer_).mergeFrom(value).buildPartial();\n } else {\n customer_ = value;\n }\n onChanged();\n } else {\n customerBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public boolean addCustomer(CustomerBean customer);", "public Customer() {\n\t\tsuper();\n\t}", "public void setCustomer(String Cus){\n\n this.customer = Cus;\n }", "@Override\n\tpublic void addCustomer(Customer customer, Branch branch) {\n\t\t\n\t}", "@Override\n\tpublic void addCustomers(Customer customer) {\n\n\t\tsessionFactory.getCurrentSession().save(customer);\n\t}", "public Customermodel addCustomer(Customermodel customermodel) {\n\t\t return customerdb.save(customermodel);\n\t }", "public int newCustomer(Map customerMap, Map allData) {\r\n\t\t\r\n\t\treturn 0;\r\n\t}", "@PostMapping(\"/customers\")\r\n\tpublic Customer addCustomer(@RequestBody Customer customer) {\n\t\tcustomer.setId(0);\r\n\t\t\r\n\t\tcustomerService.saveCustomer(customer);\r\n\t\treturn customer;\r\n\t}", "public void addCustomer(CustomerAccount acc){\n accountHM.put(acc.getVehicle().getPlate(),acc);\n }", "public Customer addCustomer(String name, String occupation) {\n\t\tint max = customers.size();\n\t\tCustomer customer = new Customer(max, name, occupation);\n\t\tcustomers.add(customer);\n\t\t\n\t\ttry {\n\t\t\tsaveCustomerToFile();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn customer;\n\t}", "@Override\n //Override method to the to-string for the concatenation of the customer name and ID\n public String toString() {\n return customerName + \" [\" + customerId + \"]\";\n }", "void generate(List<Customer> customers);", "private void fillExistingCustomer() {\n idField.setText(String.valueOf(existingCustomer.getCustomerID()));\n nameField.setText(existingCustomer.getCustomerName());\n String[] splitAddress = existingCustomer.getAddress().split(\", \");\n addressField.setText(splitAddress[0]);\n if ( splitAddress.length > 1 ) {\n cityField.setText(splitAddress[1]);\n }\n postalField.setText(existingCustomer.getPostalCode());\n phoneField.setText(existingCustomer.getPhone());\n\n FirstLevelDivision division = getDivisionByID(existingCustomer.getDivisionID());\n divisionComboBox.getSelectionModel().select(division);\n countryComboBox.getSelectionModel().select(getCountryByID(division.getCountryID()));\n }", "public void setCustomer(String customer) {\n this.customer = customer;\n }", "@Override\r\n\tpublic void createAccount(Customer customer) {\n\t\tcustMap.put(customer.getMobileNo(),customer);\r\n\t\t\r\n\t}", "public void setCustomer(org.tempuri.Customers customer) {\r\n this.customer = customer;\r\n }", "public Customer createCustomer() {\r\n\t\ttry {\r\n\t\t\treturn manager.createCustomer();\t\t\t\r\n\t\t}catch(SQLException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"The manager was unable to create a new customer\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void create(Customer t) {\n\n\t}", "public org.tempuri.Customers getCustomer() {\r\n return customer;\r\n }", "public void addCustomer(ArrayList<String> customers) {\n System.out.println(\"what is your name?\");\n String userName = System.console().readLine();\n // System.out.println(\"your name is = \" + userName);\n customers.add(userName);\n System.out.println(\"you have \" + (customers.size() - 1) + \" ahead of you\");\n\n }", "Customers createCustomers();", "@PostMapping(\"/customers\")\n public Customer addCustomer(@RequestBody Customer theCustomer)\n {\n //also just in case they pass an id in JSON .. set id to o\n //this is to force a save of new item ... instead od update\n theCustomer.setId(0);\n customerService.save(theCustomer);\n return theCustomer;\n }", "@Test\n\tpublic void addCustest() {\n\t\tbc.addCustomer(\"wgl\", myDate, \"Beijing\");\n\t\tint flag = 0;\n\t\tfor(Customer cus : bc.cusList){\n\t\t\tif(cus.getName().equals(\"wgl\")){\n\t\t\t\tflag = 1;\n\t\t\t}\n\t\t}\n\t\tassertEquals(1, flag);\n\t}", "public void addCustomer(CustomerWithGoods customer) {\n\t\tthis.allCustomers.add(customer);\n\t}", "public List<Customer> getCustomerList() {\n return new ArrayList<Customer>(customersList);\n }", "public String getCustomer() {\n return customer;\n }", "@Override\n\tpublic void viewCustomers(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*----*****-------List of Customers-------*****----*\\n\");\n\t\t\t\n\t\t\t//pass these input items to client controller\n\t\t\tviewCustomers=mvc.viewCustomers(session);\n\n\t\t\tSystem.out.println(\"CustomerId\"+\" \"+\"UserName\");\n\t\t\tfor(int i = 0; i < viewCustomers.size(); i++) {\n\t System.out.println(viewCustomers.get(i)+\"\\t\"+\"\\t\");\n\t }\n\t System.out.println(\"<------------------------------------------------>\");\n\t\t\t//System.out.println(viewCustomers);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Customer Exception: \" +e.getMessage());\n\t\t}\n\t}", "public Customer(CustomerTransaction cust) {\n this.name = cust.getName();\n this.mobile = cust.getMobile();\n this.email = cust.getEmail();\n this.history = new ArrayList <CustomerTransaction>();\n history.add(cust);\n }", "@Override\n\tpublic List<Customer> listCustomers() {\n\t\treturn null;\n\t}", "@FXML\n private void addCustomerButton(ActionEvent event)\n {\n bankLogic.addCustomer(textFieldName.getText(),Long.parseLong(textFieldPnr.getText()));\n for (int i = 0; i < bankLogic.getCustomers().size(); i++)\n {\n System.out.println(bankLogic.getCustomers().get(i).toString());\n }\n \n }", "private Customer storeCustomer(Customer customer){\n customerRestService.createCustomer(customer);\n return customer;\n }", "Customer() {\n }", "public AddCustomer() {\n initComponents();\n loadAllToTable();\n\n tblCustomers.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\n\n @Override\n public void valueChanged(ListSelectionEvent e) {\n if (tblCustomers.getSelectedRow() == -1) {\n return;\n }\n\n String cusId = tblCustomers.getValueAt(tblCustomers.getSelectedRow(), 0).toString();\n\n String cusName = tblCustomers.getValueAt(tblCustomers.getSelectedRow(), 1).toString();\n String contact = tblCustomers.getValueAt(tblCustomers.getSelectedRow(), 2).toString();\n String creditLimi = tblCustomers.getValueAt(tblCustomers.getSelectedRow(), 3).toString();\n String credidays = tblCustomers.getValueAt(tblCustomers.getSelectedRow(), 4).toString();\n\n txtCustId.setText(cusId);\n txtCustomerN.setText(cusName);\n\n txtContact.setText(contact);\n txtCreditLimit.setText(creditLimi);\n txtCreditDays.setText(credidays);\n\n }\n });\n }", "public Customer () {\n\t\tsuper();\n\t}", "@Override\r\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\r\n\t}", "public static ArrayList<CustomerInfoBean> getCutomers_notinterested() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status, cs.customer_family_size FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN do_salesman ds ON s.salesman_id=ds.salesman_id join city c on cs.customer_city=c.city_id WHERE cs.status=3 GROUP BY cs.customer_id\\n\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "private CustomerOrder addOrder(Customer customer, ShoppingCart cart) {\n CustomerOrder order = new CustomerOrder();\r\n order.setCustomerID(customer);\r\n order.setCustomerOrderAmount(BigDecimal.valueOf(cart.getTotal()));\r\n\r\n // Get current timestamp\r\n Calendar calendar = Calendar.getInstance();\r\n Timestamp currentTimestamp = new java.sql.Timestamp(calendar.getTime().getTime());\r\n order.setCustomerOrderCreated(currentTimestamp);\r\n\r\n // Create confirmation number\r\n Random random = new Random();\r\n int i = random.nextInt(999999999);\r\n order.setCustomerOrderConfirmationNumber(i);\r\n out.print(i);\r\n\r\n // Save order\r\n em.persist(order);\r\n\r\n return order;\r\n }", "public CustomerTableModel() {\n customers = new ArrayList();\n }", "CreatePaymentDataBuilder withCustomer(Customer c) {\n this.customer = c;\n return this;\n }", "public void setCustomer(Customer c){\n\t\tthis.c = Optional.of(c);\n\t}", "@Override\n\tpublic Customers create(Customers newcust) {\n\t\tif (newcust.getId()!=null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tCustomers savecust = CustRepo.save(newcust);\n\t\treturn savecust;\n\t}", "public Customer generateSingleRandomCustomer() {\n int randomImpression = new Random().nextInt(maxImpression + 1);\n int randomRevenue = new Random().nextInt(maxRevenue + 1);\n return new Customer(new RandomStringGenerator(CUSTOMER_NAME_LENGTH).nextString(), randomImpression, randomRevenue);\n\n }", "public Customer getCustomer() {\r\n return customer;\r\n }", "TypicalCustomer() {\n super();\n }", "public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}", "public CustomerPath customer() {\n if (_customer == null)\n _customer = new CustomerPath(this, Keys.PAYMENT_P2007_03__PAYMENT_P2007_03_CUSTOMER_ID_FKEY, null);\n\n return _customer;\n }", "@Test(alwaysRun=true, priority=15,enabled=true)\n\tpublic void addNewCustomer() throws InterruptedException, IOException {\t\n\t\tadminPage.addNewCustomer(driver);\n\t}", "@Override\r\n\tpublic int insertCustomer(Customer customer) throws BillingServicesDownException {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\n\t}", "private Customer buildCustomer (ResultSet resultSet) throws SQLException{\r\n long id = resultSet.getLong(1);\r\n String firstName =resultSet.getString(2);\r\n String lastName = resultSet.getString(3);\r\n String email = resultSet.getString(4);\r\n String password = resultSet.getString(5);\r\n return new Customer(id,firstName,lastName,email,password);\r\n }", "@Override\r\n\tpublic boolean createAccount(CustomerBean cb) {\n\t\r\n\t\treturn customerList.add(cb);\r\n\t}", "public boolean newCustomer(String customerName, double transactions){\n Customer newCustomer = findCustomer(customerName);\n if(newCustomer == null){\n this.customers.add(new Customer(customerName,transactions));\n return true;\n }\n return false;\n }", "private Customer(CustomerBuilder customerBuilder) {\n id = customerBuilder.id;\n friends = customerBuilder.friends;\n purchases = customerBuilder.purchases;\n }", "@Override\n\tpublic int countCustomers() {\n\t\treturn 0;\n\t}" ]
[ "0.64927197", "0.63325024", "0.6167998", "0.61589706", "0.6092417", "0.60605645", "0.60341287", "0.6000482", "0.59935725", "0.597708", "0.59674126", "0.59085137", "0.59017265", "0.5901165", "0.5866701", "0.5859122", "0.58441234", "0.5828063", "0.5810521", "0.579301", "0.57643324", "0.57601863", "0.5748168", "0.5702903", "0.5688516", "0.5678352", "0.56769526", "0.567592", "0.56721807", "0.56664014", "0.565271", "0.56499434", "0.56291616", "0.5616883", "0.55895376", "0.5572088", "0.557166", "0.55631274", "0.55582", "0.551018", "0.55060136", "0.5498549", "0.54944026", "0.5493293", "0.54904133", "0.547863", "0.54738474", "0.5468159", "0.5463675", "0.545912", "0.54493105", "0.54420286", "0.54294336", "0.5423455", "0.54063356", "0.53977174", "0.5384963", "0.5380999", "0.53799397", "0.53725857", "0.53663397", "0.5365107", "0.53588355", "0.5356686", "0.53556657", "0.53481185", "0.53465927", "0.5346458", "0.5342599", "0.53159535", "0.5306859", "0.53024924", "0.52944213", "0.52895164", "0.5282792", "0.52732754", "0.5257473", "0.5256907", "0.5254781", "0.52538395", "0.52466047", "0.5242768", "0.5238335", "0.5231397", "0.52291405", "0.52270216", "0.5223492", "0.5212201", "0.5201533", "0.52013415", "0.51985747", "0.519569", "0.51935494", "0.51872975", "0.51872504", "0.5186572", "0.5183184", "0.5177741", "0.5177401", "0.51747113" ]
0.6534403
0
Gets the "identifier" element
public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier getIdentifier() { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier target = null; target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().find_element_user(IDENTIFIER$2, 0); if (target == null) { return null; } return target; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ELEMENTIDENTIFIER getIdentifier();", "public String getIdentifier() {\n/* 222 */ return getValue(\"identifier\");\n/* */ }", "@XmlElement(name = \"identifier\", namespace = Namespaces.SRV)\n final String getIdentifier() {\n if (LEGACY_XML) {\n final ScopedName name = getScopedName();\n if (name != null) {\n return name.tip().toString();\n }\n }\n return null;\n }", "java.lang.String getIdentifier();", "public java.lang.String getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "public String getIdentifier() {\r\n\t\treturn this.identifier;\r\n\t}", "public String getIdentifier();", "public String getIdentifier();", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier()\n {\n return identifier;\n }", "@NonNull String identifier();", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n\t\treturn identifier;\n\t}", "public String getIdentifierString();", "I getIdentifier();", "public int getIdentifier();", "@NotNull\n public String getIdentifier() {\n return this.identifier;\n }", "ManifestIdentifier getIdentifier();", "int getIdentifier();", "public java.util.List<IdentifierDt> getIdentifierElement() { \n\t\tif (myIdentifier == null) {\n\t\t\tmyIdentifier = new java.util.ArrayList<IdentifierDt>();\n\t\t}\n\t\treturn myIdentifier;\n\t}", "public int getIdentifier()\n {\n return identifier;\n }", "public String getIdentifier()\n\t{\n\t\treturn mIdentifier;\n\t}", "public IdentifierNode getIdentifier()throws ClassCastException;", "public String getElementId();", "public Object getIdentifier() {\n return identifier;\n }", "public String getIdentifier(){\n return identifier;\n }", "@Override\n public String identifier() {\n return this.identifier;\n }", "@Nullable\n public String getIdentifier()\n {\n return identifier;\n }", "@Override\r\n public final Integer getIdentifier() {\r\n return getIdent();\r\n }", "org.hl7.fhir.Identifier getIdentifier();", "public org.apache.xmlbeans.XmlAnyURI xgetIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlAnyURI target = null;\n target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(IDENTIFIER$0, 0);\n return target;\n }\n }", "protected abstract String getIdentifier();", "public String getElementReferenceIdentifier() {\n return this.toString();\n }", "public java.lang.String getIdentifier() {\n java.lang.Object ref = identifier_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n identifier_ = s;\n }\n return s;\n }\n }", "Identifier getId();", "public java.lang.String getIdentifier() {\n java.lang.Object ref = identifier_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n identifier_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getIdentifier() {\n\t\treturn config.getUIName()+\"[\"+getIndex()+\"]\";\n\t}", "public final ASN1Identifier getIdentifier()\n {\n return content.getIdentifier();\n }", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "public int identifier();", "@Override\n\tpublic String getIdentifier() {\n\t\treturn null;\n\t}", "public String identifier(){\n\n if (currentTokenType == TYPE.IDENTIFIER){\n\n return currentToken;\n\n }else {\n throw new IllegalStateException(\"Current token is not an identifier! current type:\" + currentTokenType);\n }\n }", "public org.hl7.fhir.Identifier getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Identifier target = null;\n target = (org.hl7.fhir.Identifier)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public byte[] getIdentifier() {\n return identifier;\n }", "@Override\n public String getIdentifier() {\n return myIdentity.getIdentifier();\n }", "public com.google.protobuf.ByteString\n getIdentifierBytes() {\n java.lang.Object ref = identifier_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n identifier_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public T getIdentifier();", "public String getElementId() {\n return elementId;\n }", "java.lang.String getID();", "Object getElementID(String elementName) throws Exception;", "public com.google.protobuf.ByteString\n getIdentifierBytes() {\n java.lang.Object ref = identifier_;\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 identifier_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getIdNode() {\r\n String idNode = null;\r\n idNode = this.getParam(ESCOConstantes.ID_NODE);\r\n // Add the root element if not present\r\n if (null != idNode && !idNode.startsWith(ESCOConstantes.STEM_NAME_SEPARATOR)) {\r\n idNode = ESCOConstantes.STEM_NAME_SEPARATOR + idNode;\r\n }\r\n\r\n return idNode;\r\n }", "public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}", "public String getIdentity() { \n\t\treturn getIdentityElement().getValue();\n\t}", "public String getId()\r\n {\r\n return getAttribute(\"id\");\r\n }", "public String getIdentification ()\n {\n return this.toString();\n }", "public final ResourceLocation getIdentifier() {\n return identifier;\n }", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();" ]
[ "0.8394923", "0.78019315", "0.76894236", "0.76889616", "0.74950004", "0.7369659", "0.7369659", "0.7369659", "0.7369659", "0.7369659", "0.7369659", "0.7369659", "0.7265748", "0.72475797", "0.72475797", "0.7225062", "0.72187847", "0.7189371", "0.71707714", "0.71707714", "0.71707714", "0.71707714", "0.71707714", "0.71707714", "0.71707714", "0.71707714", "0.7168804", "0.71648526", "0.71592414", "0.7125801", "0.71139693", "0.7090114", "0.70588046", "0.70507544", "0.70408297", "0.70230526", "0.70084167", "0.699327", "0.69602495", "0.69551575", "0.6947859", "0.6913379", "0.68933046", "0.68520933", "0.68510133", "0.6783709", "0.6773916", "0.6745088", "0.6741108", "0.67312855", "0.66950136", "0.6682685", "0.6660054", "0.6660054", "0.6660054", "0.6660054", "0.6660054", "0.6660054", "0.6660054", "0.6660054", "0.6660054", "0.6660054", "0.6660054", "0.6660054", "0.6660054", "0.6660054", "0.6660054", "0.6660054", "0.6660054", "0.6660054", "0.6660054", "0.6640203", "0.6624761", "0.6621341", "0.6620507", "0.66175187", "0.66082424", "0.6602548", "0.65920335", "0.6586888", "0.6568268", "0.65655017", "0.65446025", "0.6516771", "0.6513926", "0.65019166", "0.64884543", "0.6460174", "0.6444868", "0.6433692", "0.6433692", "0.6433692", "0.6433692", "0.6433692", "0.6433692", "0.6433692", "0.6433692", "0.6433692", "0.6433692", "0.6433692" ]
0.6463394
87
Sets the "identifier" element
public void setIdentifier(au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier identifier) { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier target = null; target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().find_element_user(IDENTIFIER$2, 0); if (target == null) { target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().add_element_user(IDENTIFIER$2); } target.set(identifier); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdentifier(java.lang.String identifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(IDENTIFIER$0);\n }\n target.setStringValue(identifier);\n }\n }", "public void setIdentifier(String value) {\n/* 214 */ setValue(\"identifier\", value);\n/* */ }", "public void setIdentifier(IdentifierNode identifier);", "public void xsetIdentifier(org.apache.xmlbeans.XmlAnyURI identifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlAnyURI target = null;\n target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_element_user(IDENTIFIER$0);\n }\n target.set(identifier);\n }\n }", "@Override\n\t\tpublic void setId(final String identifier) {\n\t\t}", "public void setIdentifier( String pIdentifier )\n {\n identifier = pIdentifier;\n }", "void setIdentifier(org.hl7.fhir.Identifier identifier);", "public Builder setIdentifier(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n identifier_ = value;\n onChanged();\n return this;\n }", "private void setIdentifier(final String identifier) {\n if (identifier != null) {\n setIdentifiers(Collections.singleton(new DefaultIdentifier(identifier)));\n }\n }", "public void setIdentifier(String identifier) {\n this.identifier = identifier;\n }", "public void setIdentifier(String identifier) {\n this.identifier = identifier;\n }", "public void setIdentifier(String identifier) {\n this.identifier = identifier;\n }", "public void setIdentifier(String identifier) {\n this.identifier = identifier;\n }", "public void setIdentifier(org.hl7.fhir.Identifier identifier)\n {\n generatedSetterHelperImpl(identifier, IDENTIFIER$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "public void setIdentifier(String identifier) {\n\t\tthis.identifier = identifier;\n\t}", "public void setIdentifier(String identifier) {\n this.identifier = identifier == null ? null : identifier.trim();\n }", "public native void setIdentifier (String identifier);", "@Override\n public void setElementId(String arg0)\n {\n \n }", "public void setAsicIdentifier(au.gov.asic.types.DocumentIdentifierType asicIdentifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.DocumentIdentifierType target = null;\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().find_element_user(ASICIDENTIFIER$0, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().add_element_user(ASICIDENTIFIER$0);\n }\n target.set(asicIdentifier);\n }\n }", "public void setIdentityIdentifier(final Identifier identifier) {\r\n this.identityIdentifier = identifier;\r\n }", "public void setID(beaver.Symbol symbol) {\n if(symbol.value != null && !(symbol.value instanceof String))\n throw new UnsupportedOperationException(\"setID is only valid for String lexemes\");\n tokenString_ID = (String)symbol.value;\n IDstart = symbol.getStart();\n IDend = symbol.getEnd();\n }", "public void setIdentifierValue(java.lang.String param) {\r\n localIdentifierValueTracker = true;\r\n\r\n this.localIdentifierValue = param;\r\n\r\n\r\n }", "@Override\n\tpublic void setIdentification(String identification) {\n\n\t}", "public final void setIdentifier(ASN1Identifier id)\n {\n content.setIdentifier(id);\n return;\n }", "void setIdNumber(String idNumber);", "void addId(II identifier);", "public void setIdentificacion(String identificacion)\r\n/* 128: */ {\r\n/* 129:233 */ this.identificacion = identificacion;\r\n/* 130: */ }", "ELEMENTIDENTIFIER getIdentifier();", "public void setId(String newValue);", "@NonNull\n public Builder setIdentifier(@NonNull String identifier) {\n require(!TextUtils.isEmpty(identifier), \"identifer must not be null or empty\");\n mProtoBuilder.id = identifier;\n return this;\n }", "public void setIdentifier(TelemetryIdentifier value) {\n if (value != null) {\n this.identifier_ = value;\n this.bitField0_ |= 1;\n return;\n }\n throw new NullPointerException();\n }", "public void setIdentifier(FactIdentifier param) {\r\n localIdentifierTracker = true;\r\n\r\n this.localIdentifier = param;\r\n\r\n\r\n }", "public void setID(String s) {\r\n\t\tthis.idNode = s;\r\n\t}", "public void setId(String value) {\n setAttributeInternal(ID, value);\n }", "public void setId(String value) {\n setAttributeInternal(ID, value);\n }", "public void setId(String i) {\n\t\tid = i;\n\t}", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void xsetIdTag(ocpp.IdToken idTag)\n {\n synchronized (monitor())\n {\n check_orphaned();\n ocpp.IdToken target = null;\n target = (ocpp.IdToken)get_store().find_element_user(IDTAG$0, 0);\n if (target == null)\n {\n target = (ocpp.IdToken)get_store().add_element_user(IDTAG$0);\n }\n target.set(idTag);\n }\n }", "public void setID(String value) {\n tokenString_ID = value;\n }", "void setId(int val);", "public void setIdentifier(TelemetryIdentifier.Builder builderForValue) {\n this.identifier_ = (TelemetryIdentifier) builderForValue.build();\n this.bitField0_ |= 1;\n }", "public void setId(String anId) {\n _theId = anId;\n }", "public void setIdentifierKey(java.lang.String param) {\r\n localIdentifierKeyTracker = true;\r\n\r\n this.localIdentifierKey = param;\r\n\r\n\r\n }", "@Override\r\n\t\tpublic void setIdAttribute(String name, boolean isId) throws DOMException\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void setId(String id) {\n this.ide = id;\n //System.out.println(\"linkyhandler setid \" + ide);\n }", "public void xsetOID(org.apache.xmlbeans.XmlString oid)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(OID$12);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(OID$12);\r\n }\r\n target.set(oid);\r\n }\r\n }", "public void setID(String idIn) {this.id = idIn;}", "public void setID() throws IOException;", "void setId(String id);", "void setId(String id);", "void setId(String id);", "void xsetID(org.apache.xmlbeans.XmlString id);", "public void setId(String id)\r\n/* 19: */ {\r\n/* 20:17 */ this.id = id;\r\n/* 21: */ }", "void setNilID();", "public void setIdAuthority(String theString) {\n\t \r\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public ImagingStudy setIdentifier(java.util.List<IdentifierDt> theValue) {\n\t\tmyIdentifier = theValue;\n\t\treturn this;\n\t}", "public void setId(String s) {\n\t\tid = s;\n\t}", "void setId(java.lang.String id);", "void setID(java.lang.String id);", "public void setID(String id) {\r\n element.setAttributeNS(WSU_NS, WSU_PREFIX + \":Id\", id);\r\n }", "public void setID(String value) {\r\n \t\t_id = value;\r\n \r\n \t}", "org.hl7.fhir.Identifier addNewIdentifier();", "@Override\n public PaMessageHeaderBuilder setIdentifier(final long identifier)\n throws RuleException {\n this.identifier = identifier;\n\n return this;\n }", "public void setId(String value) {\n \tif (value==null)\n \t\tthis.id = \"\";\n \telse\n \t\tthis.id = value;\n }", "public Builder setIdentifierBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n identifier_ = value;\n onChanged();\n return this;\n }", "public void setID(String newID)\r\n {\r\n id=newID;\r\n }", "public void setOID(java.lang.String oid)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OID$12);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(OID$12);\r\n }\r\n target.setStringValue(oid);\r\n }\r\n }", "@Override\n\tpublic void setId(String id)\n\t{\n\t\t\n\t}", "void xsetSetupID(com.microsoft.schemas.office.x2006.digsig.STUniqueIdentifierWithBraces setupID);", "public void setIdentificationPrefix(String prefix);", "public void setID(String id) {\n \t\tthis.name.setID(id);\n \t\t\n \t}", "public void setIdentifierArray(int i, org.hl7.fhir.Identifier identifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Identifier target = null;\n target = (org.hl7.fhir.Identifier)get_store().find_element_user(IDENTIFIER$0, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.set(identifier);\n }\n }", "public void setId(String uid){\n this.uid = uid;\n }", "@Override\r\n\tpublic void setId(String id) {\n\t\t\r\n\t}", "public String getIdentifier() {\n return identifier;\n }", "public void setId (String id);", "public String getIdentifier(){\n return identifier;\n }", "public void markUseIdentifierNameString() {\n useIdentifierNameString = true;\n }", "@Override\r\n\t\tpublic void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void setID(Number numID);", "public void setId(String id) {\n }", "public void setId(String id);", "public void setId(String id);", "java.lang.String getIdentifier();", "@Override\r\n\tpublic void setId(final K id) {\n\t\tsuper.setId(id);\r\n\t}", "public String getIdentifier() {\n\t\treturn identifier;\n\t}", "public void setIdTag(java.lang.String idTag)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDTAG$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(IDTAG$0);\n }\n target.setStringValue(idTag);\n }\n }", "public void setTitleID(String val){\n\t\ttid = val;\n\t}", "public String getIdentifier()\n {\n return identifier;\n }", "public void setId(String idIn) {\n this.id = idIn;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }" ]
[ "0.8096997", "0.80879486", "0.80256796", "0.7681518", "0.7563472", "0.7495325", "0.74720085", "0.72922605", "0.72912717", "0.7161567", "0.7161567", "0.7161567", "0.7161567", "0.7146684", "0.7062076", "0.69900745", "0.68710274", "0.68101853", "0.6721184", "0.67160803", "0.67088217", "0.6624413", "0.6608943", "0.65911824", "0.6590322", "0.6557035", "0.6539712", "0.6523853", "0.6507505", "0.6441119", "0.64266896", "0.6342446", "0.63212764", "0.6318808", "0.6318808", "0.63009495", "0.6296958", "0.6296958", "0.6296958", "0.62891257", "0.6273681", "0.62488234", "0.6239903", "0.6231302", "0.62217474", "0.62130237", "0.62120676", "0.62105376", "0.6198939", "0.6197822", "0.6195148", "0.6195148", "0.6195148", "0.6189858", "0.61821425", "0.6176547", "0.6145487", "0.61308044", "0.61308044", "0.61308044", "0.6128677", "0.6116314", "0.61116356", "0.6097153", "0.60814863", "0.60803586", "0.6066816", "0.60661674", "0.604815", "0.6025934", "0.60226816", "0.6012787", "0.6008857", "0.6006225", "0.60046947", "0.6000655", "0.59993356", "0.5998896", "0.59987617", "0.5998394", "0.5994182", "0.59892726", "0.5978602", "0.59679157", "0.5966655", "0.5965035", "0.59607905", "0.59607905", "0.59554964", "0.5954423", "0.59524316", "0.59441805", "0.59418947", "0.59415936", "0.5937604", "0.5932416", "0.5932416", "0.5932416", "0.5932416", "0.5932416" ]
0.71902776
9
Appends and returns a new empty "identifier" element
public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier addNewIdentifier() { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier target = null; target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().add_element_user(IDENTIFIER$2); return target; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "org.hl7.fhir.Identifier addNewIdentifier();", "void addId(II identifier);", "private IIdentifierElement createIdentifier() throws RodinDBException {\n\t\tfinal IContextRoot ctx = createContext(\"ctx\");\n\t\treturn ctx.createChild(ICarrierSet.ELEMENT_TYPE, null, null);\n\t}", "public org.hl7.fhir.Identifier addNewIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Identifier target = null;\n target = (org.hl7.fhir.Identifier)get_store().add_element_user(IDENTIFIER$0);\n return target;\n }\n }", "public org.hl7.fhir.Identifier addNewIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Identifier target = null;\n target = (org.hl7.fhir.Identifier)get_store().add_element_user(IDENTIFIER$0);\n return target;\n }\n }", "public IdentifierDt addIdentifier() {\n\t\tIdentifierDt newType = new IdentifierDt();\n\t\tgetIdentifier().add(newType);\n\t\treturn newType; \n\t}", "void addId(String root);", "ELEMENTIDENTIFIER getIdentifier();", "public Builder clearIdentifier() {\n bitField0_ = (bitField0_ & ~0x00000001);\n identifier_ = getDefaultInstance().getIdentifier();\n onChanged();\n return this;\n }", "void addId(String root, String extension);", "@Override\r\n protected final void append(final ToStringBuilder builder) {\r\n builder.append(\"Ident\", this.ident);\r\n appendId(builder);\r\n }", "public au.gov.asic.types.DocumentIdentifierType addNewAsicIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.DocumentIdentifierType target = null;\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().add_element_user(ASICIDENTIFIER$0);\n return target;\n }\n }", "public ocpp.IdTagInfo addNewIdTagInfo()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ocpp.IdTagInfo target = null;\n target = (ocpp.IdTagInfo)get_store().add_element_user(IDTAGINFO$0);\n return target;\n }\n }", "public com.walgreens.rxit.ch.cda.II addNewId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.II target = null;\n target = (com.walgreens.rxit.ch.cda.II)get_store().add_element_user(ID$6);\n return target;\n }\n }", "public void setIdentifier(String value) {\n/* 214 */ setValue(\"identifier\", value);\n/* */ }", "@Override\n\tpublic String getIdentifier() {\n\t\treturn null;\n\t}", "void addIdentifiersToXPath(StringBuffer out, \n\t\tElement el2, Map<Namespace, String> ns2Prefix) {\n\tAttributeUniqenessAnalyser anal = new AttributeUniqenessAnalyser();\n\tAttDataObj uniqueAttr = anal.getUniqueAttributeForElement(el2);\n\tif(uniqueAttr!=null){\n\t\tout.append(\"[@\");\n\t\tout.append(getAttStrForAtt(uniqueAttr.att)).append(\"='\");\n\t\tString val = el2.getAttribute(uniqueAttr.name, uniqueAttr.ns).getValue();\n\t\tout.append(escape(val)).append(\"']\");\n\t\t\n\t}else {\n\t\tint indx =anal.getIndexForElementAmongstSiblings(el2);\n\t\tif(indx!=-1)\n\t\tout.append(\"[\").append(indx)\n\t\t.append(\"]\");\n\t}\n}", "public Builder setIdentifier(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n identifier_ = value;\n onChanged();\n return this;\n }", "Rule STIdentifier() {\n // Push 1 IdentifierNode onto value stack\n return Sequence(\n Sequence(\n FirstOf(Letter(), \"_\"),\n ZeroOrMore(FirstOf(IndentChar(), \"-\"))),\n actions.pushIdentifierNode(),\n WhiteSpace());\n }", "java.lang.String getIdentifier();", "public java.util.List<IdentifierDt> getIdentifierElement() { \n\t\tif (myIdentifier == null) {\n\t\t\tmyIdentifier = new java.util.ArrayList<IdentifierDt>();\n\t\t}\n\t\treturn myIdentifier;\n\t}", "protected void NewIdentity()\n\t{\n\t\tthis.identity=0L;\n\t\tNodeReference nodeRef = getNodeReference();\n\t\tnodeRef.appendSubscript(0L);\n\t\tnodeRef.appendSubscript(\"id\");\n\t\tthis.identity=nodeRef.increment(1);\n\t}", "public void mergeIdentifier(TelemetryIdentifier value) {\n if (value != null) {\n TelemetryIdentifier telemetryIdentifier = this.identifier_;\n if (telemetryIdentifier == null || telemetryIdentifier == TelemetryIdentifier.getDefaultInstance()) {\n this.identifier_ = value;\n } else {\n this.identifier_ = (TelemetryIdentifier) ((TelemetryIdentifier.Builder) TelemetryIdentifier.newBuilder(this.identifier_).mergeFrom((GeneratedMessageLite) value)).buildPartial();\n }\n this.bitField0_ |= 1;\n return;\n }\n throw new NullPointerException();\n }", "IdentifiersType createIdentifiersType();", "public StructuredId createSubId()\r\n {\r\n return new StructuredId(this, id + \".\" + numSubIds.incrementAndGet());\r\n }", "public org.hl7.fhir.Identifier insertNewIdentifier(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Identifier target = null;\n target = (org.hl7.fhir.Identifier)get_store().insert_element_user(IDENTIFIER$0, i);\n return target;\n }\n }", "public String getIdentifier() {\n/* 222 */ return getValue(\"identifier\");\n/* */ }", "@Override\n\tpublic String getIdentification() {\n\t\treturn \"\";\n\t}", "public void setIdentifier(IdentifierNode identifier);", "public void xsetIdentifier(org.apache.xmlbeans.XmlAnyURI identifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlAnyURI target = null;\n target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_element_user(IDENTIFIER$0);\n }\n target.set(identifier);\n }\n }", "II addId();", "identifierList getIdentifierList();", "String getEmptyId();", "Rule Identifier() {\n // Push 1 IdentifierNode onto the value stack\n return Sequence(\n Sequence(\n FirstOf(Letter(), \"_\"),\n ZeroOrMore(IndentChar())),\n actions.pushIdentifierNode(),\n WhiteSpace());\n }", "@NonNull String identifier();", "@Override\n\t\tpublic void setId(final String identifier) {\n\t\t}", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public String getIdentifierString();", "public void clearIdentifier() {\n this.identifier_ = null;\n this.bitField0_ &= -2;\n }", "public PersonBuilderName noID()\n {\n edma_value[0] = null;\n return this;\n }", "public void setIdentifier(java.lang.String identifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(IDENTIFIER$0);\n }\n target.setStringValue(identifier);\n }\n }", "@XmlElement(name = \"identifier\", namespace = Namespaces.SRV)\n final String getIdentifier() {\n if (LEGACY_XML) {\n final ScopedName name = getScopedName();\n if (name != null) {\n return name.tip().toString();\n }\n }\n return null;\n }", "void setIdentifier(org.hl7.fhir.Identifier identifier);", "@NonNull\n public Builder setIdentifier(@NonNull String identifier) {\n require(!TextUtils.isEmpty(identifier), \"identifer must not be null or empty\");\n mProtoBuilder.id = identifier;\n return this;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier(){\n return identifier;\n }", "public String getIdentifier()\n {\n return identifier;\n }", "public String getNameIdNode() {\r\n String nameIdNode = null;\r\n nameIdNode = this.getParam(ESCOConstantes.NAMEID_NODE);\r\n // Add the root element if not present\r\n if (null != nameIdNode && !nameIdNode.startsWith(ESCOConstantes.STEM_NAME_SEPARATOR)) {\r\n nameIdNode = ESCOConstantes.STEM_NAME_SEPARATOR + nameIdNode;\r\n }\r\n\r\n return nameIdNode;\r\n }", "private void setIdentifier(final String identifier) {\n if (identifier != null) {\n setIdentifiers(Collections.singleton(new DefaultIdentifier(identifier)));\n }\n }", "public IdentifierNode getIdentifier()throws ClassCastException;", "public static String makeAnonID() {\n String id = \"__anon\" + nextAnonID;\n nextAnonID++;\n return id;\n }", "public String getIdentificationPrefix();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "protected abstract String getIdentifier();", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }", "private void generateID(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (String t : terms.keySet())\n\t\t\tsb.append(t.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, t.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tfor (String s : sources)\n\t\t\tsb.append(s.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, s.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tif (yearFrom > -1) sb.append(\"_\" + yearFrom);\n\t\tif (yearTo > -1) sb.append(\"_\" + yearTo);\n\t\tif (useCompounds) sb.append(\"_COMP\");\n\t\tif (useStopwords) sb.append(\"_STOP\");\n\t\tsb.append(\"_CNT\" + contextSize);\n\t\tsb.append(\"_\" + System.currentTimeMillis());\n\t\tthis.id = sb.toString();\n\t}", "public void addId(String newId) throws Exception {\r\n DOMFace newIdRec = this.createChild(\"idrec\", DOMFace.class);\r\n newIdRec.setAttribute(\"loginid\", newId);\r\n }", "public com.google.protobuf.ByteString\n getIdentifierBytes() {\n java.lang.Object ref = identifier_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n identifier_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String newChildId()\r\n\t{\r\n\t\treturn areas.newChildId();\r\n\t}", "public void unsetIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(IDENTIFIER$0, 0);\n }\n }", "public abstract String getIdPrefix();", "public void createNewId(String id)\n { \n IDNode node=new IDNode(id);\n idReferences.put(id,node);\n }", "public String getIdentifier();", "public String getIdentifier();", "private String addIDsNew(List<Person> list) {\n\t\tString iD = \"\";\n\t\tfor( int i = 0 ; i < list.size(); i++ ){\n\t\t\tif( i == list.size() - 1 ){\n\t\t\t\tiD = iD + list.get( i ).iD;\n\n\t\t\t}\n\t\t\telse{\n\t\t\t\tiD = iD + list.get( i ).iD + DEFAULT_DELIMMTER;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn iD;\n\t}", "public String getIdNode() {\r\n String idNode = null;\r\n idNode = this.getParam(ESCOConstantes.ID_NODE);\r\n // Add the root element if not present\r\n if (null != idNode && !idNode.startsWith(ESCOConstantes.STEM_NAME_SEPARATOR)) {\r\n idNode = ESCOConstantes.STEM_NAME_SEPARATOR + idNode;\r\n }\r\n\r\n return idNode;\r\n }", "public String getIdentifier() {\n\t\treturn identifier;\n\t}", "public IdentifierDt getIdentifierFirstRep() {\n\t\tif (getIdentifier().isEmpty()) {\n\t\t\treturn addIdentifier();\n\t\t}\n\t\treturn getIdentifier().get(0); \n\t}", "@Override\n public @NonNull Object getIdentifier() {\n return null;\n }", "public Builder setIdentifierBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n identifier_ = value;\n onChanged();\n return this;\n }", "public int getIdentifier()\n {\n return identifier;\n }", "public Object getIdentifier() {\n return identifier;\n }", "@Nullable\n public String getIdentifier()\n {\n return identifier;\n }", "protected void appendId(final ToStringBuilder builder) {\r\n // RAS\r\n }", "public com.google.protobuf.ByteString\n getIdentifierBytes() {\n java.lang.Object ref = identifier_;\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 identifier_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getStringIdentifier() { return \"\"; }", "public void setIdentifier(TelemetryIdentifier value) {\n if (value != null) {\n this.identifier_ = value;\n this.bitField0_ |= 1;\n return;\n }\n throw new NullPointerException();\n }", "@Override\n\t\t\t\tpublic void endElement(String uri, String localName,\n\t\t\t\t\t\tString qName) throws SAXException {\n\t\t\t\t\tsuper.endElement(uri, localName, qName);\n\t\t\t\t\tif (localName.equals(\"id\")) {\n\t\t\t\t\t\tt.setId(Integer.parseInt(builder.toString()));\n\t\t\t\t\t} else if (localName.equals(\"name\")) {\n\t\t\t\t\t\tt.setName(builder.toString());\n\t\t\t\t\t} else if (localName.equals(\"age\")) {\n\t\t\t\t\t\tt.setAge(Integer.parseInt(builder.toString()));\n\t\t\t\t\t} else if (localName.equals(\"person\")) {\n\t\t\t\t\t\tlist.add(t);\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\n public String identifier() {\n return this.identifier;\n }", "public String escapeIdentifier(String identifierName);", "public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier addNewCustomerIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().add_element_user(CUSTOMERIDENTIFIER$2);\n return target;\n }\n }", "public java.lang.String getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public byte[] getIdentifier() {\n return identifier;\n }", "IdentifierReferenceQualifier createIdentifierReferenceQualifier();" ]
[ "0.6886522", "0.66834575", "0.6642423", "0.63788307", "0.63788307", "0.6278175", "0.6231199", "0.61596596", "0.6082333", "0.5937031", "0.5928795", "0.591666", "0.5844556", "0.58337677", "0.57493883", "0.57239896", "0.5714109", "0.5696818", "0.56882113", "0.5643739", "0.5631787", "0.55651784", "0.55601555", "0.5524998", "0.5502304", "0.54995227", "0.5479721", "0.5477588", "0.54745716", "0.5455468", "0.54336214", "0.5433346", "0.5422711", "0.5414858", "0.541191", "0.5409827", "0.54093635", "0.54093635", "0.54093635", "0.54093635", "0.5378332", "0.53748584", "0.5371443", "0.5357399", "0.5348548", "0.5290793", "0.5286843", "0.52815723", "0.5278412", "0.5250389", "0.5235828", "0.52303255", "0.52158564", "0.5210939", "0.52011395", "0.51970124", "0.51970124", "0.51970124", "0.51970124", "0.51970124", "0.51970124", "0.51970124", "0.5193384", "0.5193274", "0.5193274", "0.5193274", "0.5193274", "0.5193274", "0.5193274", "0.5193274", "0.5193274", "0.5190238", "0.5183679", "0.51736003", "0.5163992", "0.5158556", "0.51554924", "0.5154511", "0.51530963", "0.51530963", "0.51420164", "0.51340586", "0.51289046", "0.51269263", "0.51259077", "0.5103987", "0.51012236", "0.5088204", "0.5087184", "0.5084243", "0.50791895", "0.50766605", "0.5064467", "0.50616354", "0.50576067", "0.50558877", "0.50459975", "0.50362265", "0.5031567", "0.502878" ]
0.59713566
9
Gets the "browser" element
public au.gov.asic.types.BrowserIdentifierType getBrowser() { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.BrowserIdentifierType target = null; target = (au.gov.asic.types.BrowserIdentifierType)get_store().find_element_user(BROWSER$0, 0); if (target == null) { return null; } return target; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Browser getBrowser() {\n return browser;\n }", "String getBrowser();", "public static String getBrowser(){\n\t\treturn browser;\n\t}", "public String getBrowserName(){\r\n\t\treturn rb.getProperty(\"browser\");\r\n\t}", "public WebElement game() { return driver.findElement(gameLocator); }", "public FxRequest.Browser getBrowser() {\n return FxJsfUtils.getRequest().getBrowser();\n }", "public String getBrowser(){\n\t\tif (prop.getProperty(\"browser\") == null)\n\t\t\treturn \"\";\n\t\treturn prop.getProperty(\"browser\");\n\t}", "public BrowserInfo getBrowserInfo() {\n return browserInfo;\n }", "public String getBrowser() {\n String browser = null;\n\n try\n {\n browser = System.getProperty(\"browser\");\n if(browser !=null)\n return browser;\n else\n return prop.getProperty(BROWSER_KEY);\n\n\n }catch(Exception e)\n {\n return prop.getProperty(BROWSER_KEY);\n }\n\n\n }", "Element getElement();", "protected IBrowserManager getBrowserMgr () {\n return (this.theBrowserMgr);\n }", "public static String getChosenBrowser() {\n return CHOSEN_BROWSER;\n }", "public WebElement getWeb() {\n\t\treturn Utils.waitForElementPresence(driver, By.name(\"uri\"), 10);\n\t}", "public String getBrowserAsString() {\n return String.valueOf(FxJsfUtils.getRequest().getBrowser());\n }", "public static BrowserType getBrowserType() {\n logger.trace(\"Get the BrowserType\");\n return driverThread.get().getBrowserType();\n }", "Object getComponent(WebElement element);", "public Element getElement() {\n return super.getElement();\n }", "public static String getBrowser() {\n if (System.getProperty(\"browser\") == null) {\n return \"chrome\";\n } else {\n return System.getProperty(\"browser\").toLowerCase();\n }\n }", "public WebElement getElement() {\n\t\treturn null;\r\n\t}", "public WebElement headerDiv() {\r\n return driver.findElement(By.id(\"header\"));\r\n }", "public String getBrowserType(){\n\t\treturn browserType;\n\t}", "@Override\n\tpublic final Element getDocumentElement() {\n\t\treturn LocalDom.nodeFor(getDocumentElement0());\n\t}", "private static WebDriver getDriver(browsers browser) {\n\t\t\t\tLOG.log(Level.CONFIG, \"Requested driver: \" + browser);\n\t\t// 1. WebDriver instance is not created yet\n\t\tif (driver == null) {\n\t\t\tLOG.log(Level.CONFIG, \"No previous driver found\");\n\t\t\tdriver = newWebDriver( browser);\n\t\t\treturn driver;\n\t\t}\n\t\ttry {\n\t\t\tdriver.getCurrentUrl();//touch with stick\n\t\t} catch (Throwable t) {\n\t\t\tt.printStackTrace();\n\t\t\tnewWebDriver( browser);\n\t\t\treturn driver;\n\t\t}\n\t\treturn driver;\n\t}", "public <T extends TechnologyModelObject> TechnologyModuleBrowserElement<T> createBrowserElement(T object, ProjectBrowser browser,\n\t\t\tBrowserElement parent);", "public String getElement() { return element; }", "W getRootElement();", "public Element getElement() {\n return element;\n }", "public Element getElement() {\n return element;\n }", "BrowserStack getBrowserStackInst();", "@DISPID(1001)\n @PropGet\n ms.html.IHTMLElement element();", "public Element getElement() {\n if (view != null) {\n return view.getElement();\n }\n return editor.getDocument().getDefaultRootElement();\n }", "public WebDriver getWebDriver() {\n\t\treturn this.driver;\n\t}", "abstract public GameElement getGameElement();", "Element getGadgetChrome(int gadgetId);", "public Object getElement()\r\n\t\t{ return element; }", "String getElement();", "public org.w3c.dom.Element getElement() {\n return element;\n }", "public Element getElement() {\r\n\t\treturn element;\r\n\t}", "public static String getCurrentBrowserName() {\r\n\t\tCapabilities c = ((RemoteWebDriver) driver).getCapabilities();\r\n\t\treturn c.getBrowserName();\r\n\t}", "public java.lang.String getBrowserurl() {\n return browserurl;\n }", "protected WebDriver getDriver() {\n return Web.getDriver(Browser.CHROME, server.getURL() + \"TEST\", By.className(\"AuO\"));\n }", "public Element getElement() {\n/* 78 */ return this.e;\n/* */ }", "public WebElement getMesto() {\n\t\treturn Utils.waitForElementPresence(driver, By.name(\"place\"), 10);\n\t}", "@Override\n\tpublic EmbeddedBrowser get() {\n\t\tLOGGER.debug(\"Setting up a Browser\");\n\t\t// Retrieve the config values used\n\t\tImmutableSortedSet<String> filterAttributes =\n\t\t configuration.getCrawlRules().getPreCrawlConfig().getFilterAttributeNames();\n\t\tlong crawlWaitReload = configuration.getCrawlRules().getWaitAfterReloadUrl();\n\t\tlong crawlWaitEvent = configuration.getCrawlRules().getWaitAfterEvent();\n\n\t\t// Determine the requested browser type\n\t\tEmbeddedBrowser browser = null;\n\t\tEmbeddedBrowser.BrowserType browserType = configuration.getBrowserConfig().getBrowsertype();\n\t\ttry {\n\t\t\tswitch (browserType) {\n\t\t\t\tcase FIREFOX:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t newFireFoxBrowser(filterAttributes, crawlWaitReload, crawlWaitEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tcase INTERNET_EXPLORER:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t WebDriverBackedEmbeddedBrowser.withDriver(\n\t\t\t\t\t new InternetExplorerDriver(),\n\t\t\t\t\t filterAttributes, crawlWaitEvent, crawlWaitReload);\n\t\t\t\t\tbreak;\n\t\t\t\tcase CHROME:\n\t\t\t\t\tbrowser = newChromeBrowser(filterAttributes, crawlWaitReload, crawlWaitEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tcase REMOTE:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t WebDriverBackedEmbeddedBrowser.withRemoteDriver(configuration\n\t\t\t\t\t .getBrowserConfig().getRemoteHubUrl(), filterAttributes,\n\t\t\t\t\t crawlWaitEvent, crawlWaitReload);\n\t\t\t\t\tbreak;\n\t\t\t\tcase PHANTOMJS:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t newPhantomJSDriver(filterAttributes, crawlWaitReload, crawlWaitEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new IllegalStateException(\"Unrecognized browsertype \"\n\t\t\t\t\t + configuration.getBrowserConfig().getBrowsertype());\n\t\t\t}\n\t\t} catch (IllegalStateException e) {\n\t\t\tLOGGER.error(\"Crawling with {} failed: {}\", browserType.toString(), e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t\tplugins.runOnBrowserCreatedPlugins(browser);\n\t\treturn browser;\n\t}", "Elem getElem();", "public SVGElement getUsedFromElement()\n {\n int elementHandle = _getUsedFromElement(\n getNativeSVGProxyHandle(),\n getHandle());\n if (M2GObject.checkHandle(elementHandle))\n {\n return M2GSVGElement.buildElement(elementHandle, iDocument);\n }\n return null;\n }", "public native Element getEl() /*-{\r\n\t\tvar proxy = this.@com.ait.toolkit.core.client.JsObject::getJsObj()();\r\n\t\tvar el = proxy.getEl();\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::instance(Lcom/google/gwt/core/client/JavaScriptObject;)(el);\r\n\t}-*/;", "public Object getElement();", "public Object getElement() {\n return element;\n }", "public static WebDriver getWebDriver() {\n\t\t\treturn webdriver;\n\t\t}", "public WebElement getMyBlackBoard(){ return myBlackBoard; }", "public org.openxmlformats.schemas.presentationml.x2006.main.CTShowInfoBrowse getBrowse()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTShowInfoBrowse target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTShowInfoBrowse)get_store().find_element_user(BROWSE$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public WebDriver getBrowserObject(BrowserType btype) throws Exception {\n\t\ttry {\n\t\t\tswitch(btype){\n\t\t\tcase Chrome:\n\t\t\t\tChromeBrowser chrome = ChromeBrowser.class.newInstance();\n\t\t\t\tChromeOptions chromeOptions = chrome.getChromeOptions();\n\t\t\t\treturn chrome.getChromeDriver(chromeOptions);\n\t\t\tcase FireFox:\n\t\t\t\tFirefoxBrowser ff = FirefoxBrowser.class.newInstance();\n\t\t\t\tFirefoxOptions ffOptions = ff.getFirefoxOptions();\n\t\t\t\treturn ff.getFirefoxDriver(ffOptions);\n\t\t\t\t\n\t\t\tcase Iexplorer:\n\t\t\t\tIExploreBrowser ie = IExploreBrowser.class.newInstance();\n\t\t\t\tInternetExplorerOptions ieoptions = ie.getIExplorerCapabilities();\n\t\t\t\treturn ie.getIExplorerDriver(ieoptions);\n\t\t\t\n\t\t\tdefault:\n\t\t\t\tthrow new Exception(\"Driver not found \"+btype.name());\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tlog.info(e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t}", "public I_Element getElement() {\n\t\treturn element;\n\t}", "public E getElement() { return element; }", "public DomElement getDomElement() {\r\n\t\treturn domElement;\r\n\t}", "public Element getHTMLElement() {\n\t\treturn this.mHTMLElement;\n\t}", "public WebDriver getWebDriver() {\n return webDriver;\n }", "SeleniumComponent parent();", "public WebDriver getwiniumDriver(){\n\t\treturn winiumDriver;\n\t}", "@Override\n\tpublic Element getElement() {\n\t\treturn elem;\n\t}", "public WebElement userLoginDiv() {\r\n return driver.findElement(By.id(\"block-system-main\"));\r\n\r\n}", "public WebDriver getDriver(){\r\n\t\treturn this.driver;\r\n\t\t\t \r\n\t\t }", "public Element getElement()\n {\n return m_Element;\n }", "public static WebDriver getDriver(String browser)\n {\n return createInstance(browser);\n }", "public E getElement() {\r\n return element;\r\n }", "final public Element getElement() {\n return element;\n }", "public WebElement getElementShort(By locator) {\n\t\tWebElement ele = null;\n\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, IMPLICITE_WAIT_S);\n\t\t\twait.until(ExpectedConditions.visibilityOfElementLocated(locator));\n\t\t\tele = driver.findElement(locator);\n\t\t} catch (NoSuchElementException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TimeoutException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\treturn ele;\n\n\t}", "@Override\n\tpublic final Element getViewportElement() {\n\t\treturn isCSS1Compat() ? getDocumentElement() : getBody();\n\t}", "private static BrowserType getBrowserType()\n\t{\n\t\tString browserType = System.getProperty(BROWSER_KEY);\n\t\tif (browserType == null || browserType.isEmpty())\n\t\t{ \n\t\t\treturn BrowserType.Firefox;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint type = Integer.parseInt(browserType);\n\t\t\t\n\t\t\tif (BrowserType.InternetExplorer.getCode() == type)\n\t\t\t{\n\t\t\t\treturn BrowserType.InternetExplorer;\n\t\t\t}\n\t\t\telse if (BrowserType.Chrome.getCode() == type)\n\t\t\t{\n\t\t\t\treturn BrowserType.Chrome;\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn BrowserType.Firefox;\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public WebDriver getDriver() {\n\t\t\treturn this.driver;\r\n\t\t}", "public WebElement getElement(By locator ){\n \tWebElement element=null;\n \ttry{\n \t\t element=driver.findElement(locator);\n \t}catch(Exception e){\n \t\tSystem.out.println(\"some exception occured while creating web element \"+ locator);\n \t} \t\n \treturn element;\n }", "@Property Element getDocumentElement();", "public WebDriver getWebdriver() {\n return driver.get();\n }", "public WebElement getElement(By locator) {\n\t\tWebElement element= driver.findElement(locator);\n\t\treturn element;\n\t}", "public T getElement() {\n\t\treturn element;\n\t}", "public interface WebBrowser {\r\n}", "static String getBrowserPath()\n \t{\n \t\tint os = PropertiesAndDirectories.os();\n \t\tString result = browserPath;\n \t\tif (result == null)\n \t\t{\n \t\t\tswitch (os)\n \t\t\t{\n \t\t\tcase PropertiesAndDirectories.XP:\n \t\t\tcase PropertiesAndDirectories.VISTA_AND_7:\n \t\t\t\tif (!Pref.lookupBoolean(\"navigate_with_ie\"))\n \t\t\t\t\tresult = FIREFOX_PATH_WINDOWS;\n \t\t\t\tif (result != null)\n \t\t\t\t{\n \t\t\t\t\tFile existentialTester = new File(result);\n \t\t\t\t\tif (!existentialTester.exists())\n \t\t\t\t\t{\n \t\t\t\t\t\tresult = FIREFOX_PATH_WINDOWS_64;\n \t\t\t\t\t\texistentialTester = new File(result);\n \t\t\t\t\t\tif (!existentialTester.exists())\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tresult = IE_PATH_WINDOWS;\n \t\t\t\t\t\t\texistentialTester = new File(result);\n \t\t\t\t\t\t\tif (!existentialTester.exists())\n \t\t\t\t\t\t\t\tresult = null;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase PropertiesAndDirectories.MAC:\n \t\t\t\tresult = \"/usr/bin/open\";\n \t\t\t\tbreak;\n \t\t\tdefault:\n \t\t\t\terror(PropertiesAndDirectories.getOsName(), \"go(ParsedURL) not supported\");\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (result != null)\n \t\t\t{\n \t\t\t\tbrowserPath = result;\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}", "private WebElement getCssSelectorElement(String cssSelectorInfo) {\n\t\tWebElement element = null;\n\t\t// WebDriverWait wait = new WebDriverWait(driver, 60);\n\t\telement = SearchTest.wait.until(visibilityOfElementLocated(By.cssSelector(cssSelectorInfo)));\n\t\treturn element;\n\t}", "public static WebDriver selectBrowser(String browser){\r\n\t\tif(browser.equalsIgnoreCase(\"firefox\")){\r\n\t\t\tdriver = new FirefoxDriver();\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\treturn driver;\r\n\t\t}else if(browser.equalsIgnoreCase(\"chrome\")){\r\n\t\t\tSystem.out.println(\"chrome browser\");\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+\"chromedriver.exe\");\r\n\t\t\tdriver = new ChromeDriver();\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\treturn driver;\r\n\t\t} else if(browser.equalsIgnoreCase(\"IE\")){\r\n\t\t\tSystem.out.println(\"Internet Explorer\");\r\n\t\t\tSystem.setProperty(\"webdriver.IE.driver\", System.getProperty(\"user.dir\")+\"iexplore.exe\");\r\n\t\t\tdriver = new InternetExplorerDriver();\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\treturn driver;\r\n\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic ElementView getComponent() {\n\t\treturn jc;\n\t}", "Object element();", "Object element();", "public final OMSVGElement getFarthestViewportElement() {\n return (OMSVGElement)convert(((SVGTextElement)ot).getFarthestViewportElement());\n }", "public void getBrowser(String browser, String url) {\n\n\n if (browser.equalsIgnoreCase(\"chrome\")) {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n } else if (browser.equalsIgnoreCase(\"firefox\")) {\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n }\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.get(url);\n\n }", "public final native Element getDiv() /*-{\n return this.getDiv();\n }-*/;", "public T getElement() {\r\n\t\t\r\n\t\treturn element;\r\n\t\r\n\t}", "public static String getCurrentBrowserVersion() {\r\n\t\tCapabilities c = ((RemoteWebDriver) driver).getCapabilities();\r\n\t\treturn c.getVersion();\r\n\t}", "public WebElement getElement(String locator){\n\t\tWebElement webElement = null;\n\t\twaitForElementVisibility(locator);\n\t\ttry{\n\t\t\tif(locator.startsWith(\"//\")) {\t\n\t\t\t\twebElement = driver.findElement(By.xpath(locator));\t\t\t\t\n\t\t\t}else if( locator.startsWith(\"css=\")) {\n\t\t\t\tlocator=locator.substring(4);\n\t\t\t\twebElement = driver.findElement(By.cssSelector(locator));\n\t\t\t}else if( locator.startsWith(\"class=\")) {\n\t\t\t\tlocator = locator.split(\"\\\\=\")[1];\n\t\t\t\twebElement = driver.findElement(By.className(locator));\n\t\t\t}else if( locator.startsWith(\"name=\")) {\n\t\t\t\tlocator = locator.split(\"\\\\=\")[1];\n\t\t\t\twebElement = driver.findElement(By.name(locator));\n\t\t\t}else if( locator.startsWith(\"link=\")) {\n\t\t\t\tlocator = locator.split(\"\\\\=\")[1];\n\t\t\t\twebElement = driver.findElement(By.linkText(locator));\n\t\t\t}else if( locator.startsWith(\"tag=\")) {\n\t\t\t\tlocator = locator.split(\"\\\\=\")[1];\n\t\t\t\twebElement = driver.findElement(By.tagName(locator));\n\t\t\t} else\n\t\t\t\twebElement = driver.findElement(By.id(locator));\n\t\t\tlog.debug(\"ELEMENT FOUND WITH LOCATOR : \"+locator);\n\t\t}catch (NoSuchElementException ex) {\n\t\t\tlog.debug(\"No such element \"+locator);\n\t\t\treturn webElement;\n\t\t} catch(Exception ex) {\n\t\t\tlog.debug(\"ELEMENT NOT FOUND WITH LOCATOR : \"+locator);\n\t\t ex.printStackTrace();\n\t\t return webElement;\n\t\t}\n\t\treturn webElement;\t\t\n\t}", "public static WebDriver getDriver(){\n if(driver==null){\n //get the driver type from properties file\n\n String browser=ConfigurationReader.getPropery(\"browser\");\n switch(browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver=new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver=new FirefoxDriver();\n }\n }\n\n return driver;\n }", "public synchronized static WebDriver getDriver(String browser) {\n //if webdriver object doesn't exist\n //create it\n if (driverPool.get() == null) {\n //specify browser type in configuration.properties file\n\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().version(\"79\").setup();\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.addArguments(\"--start-maximized\");\n driverPool.set(new ChromeDriver(chromeOptions));\n break;\n case \"chromeheadless\":\n //to run chrome without interface (headless mode)\n WebDriverManager.chromedriver().version(\"79\").setup();\n ChromeOptions options = new ChromeOptions();\n options.setHeadless(true);\n driverPool.set(new ChromeDriver(options));\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driverPool.set(new FirefoxDriver());\n break;\n default:\n throw new RuntimeException(\"Wrong browser name!\");\n }\n }\n return driverPool.get();\n }", "String getElem();", "public T getElement() {\n return element;\n }", "public Element element() {\n\t\treturn _element;\n\t}", "public static WebDriver getDriver() {\n return driver.get();\n }", "public WebDriver getDriver(){\n\t\treturn driver;\n\t}", "public Elemento getElemento() {\n\t\treturn elemento;\n\t}", "public synchronized static WebDriver getDriver() {\n //if webdriver object doesn't exist\n //create it\n if (driverPool.get() == null) {\n //specify browser type in configuration.properties file\n String browser = ConfigurationReader.getProperty(\"browser\").toLowerCase();\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().version(\"79\").setup();\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.addArguments(\"--start-maximized\");\n driverPool.set(new ChromeDriver(chromeOptions));\n break;\n case \"chromeheadless\":\n //to run chrome without interface (headless mode)\n WebDriverManager.chromedriver().version(\"79\").setup();\n ChromeOptions options = new ChromeOptions();\n options.setHeadless(true);\n driverPool.set(new ChromeDriver(options));\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driverPool.set(new FirefoxDriver());\n break;\n default:\n throw new RuntimeException(\"Wrong browser name!\");\n }\n }\n return driverPool.get();\n }", "void browserMethod();", "public static AppiumDriver getDriver(){\n return appiumDriverList.get(0);\n }" ]
[ "0.70871806", "0.68712425", "0.6845584", "0.6687669", "0.665084", "0.6607588", "0.6580791", "0.6407876", "0.63730466", "0.631937", "0.6265182", "0.62231", "0.61682814", "0.6083777", "0.60737896", "0.6052819", "0.6002691", "0.5927305", "0.59028465", "0.58668596", "0.58571965", "0.584328", "0.58131605", "0.5796716", "0.57723236", "0.5762188", "0.57547164", "0.57547164", "0.5752512", "0.57477707", "0.5746792", "0.57387143", "0.57353866", "0.57318014", "0.5719634", "0.5713627", "0.57131255", "0.57113355", "0.5700664", "0.56937164", "0.5684978", "0.5669895", "0.56514436", "0.5648865", "0.56453276", "0.56430197", "0.5635045", "0.5632342", "0.56302744", "0.56259245", "0.5624991", "0.56229925", "0.5620495", "0.5613985", "0.5595469", "0.5579868", "0.5579818", "0.5572415", "0.5567331", "0.5557132", "0.55515367", "0.5550543", "0.55434775", "0.55356836", "0.55290157", "0.55207473", "0.55185306", "0.5517239", "0.5514789", "0.55124915", "0.5508963", "0.5506282", "0.54993147", "0.54928154", "0.54825455", "0.5456338", "0.5448564", "0.5440341", "0.5436951", "0.54335576", "0.5432731", "0.54318744", "0.54318744", "0.5431701", "0.5423928", "0.54196304", "0.541923", "0.5408053", "0.5392014", "0.53919464", "0.5383082", "0.53697336", "0.53664726", "0.53662014", "0.5364441", "0.536358", "0.535803", "0.5349941", "0.5345877", "0.5340719" ]
0.7008544
1
True if has "browser" element
public boolean isSetBrowser() { synchronized (monitor()) { check_orphaned(); return get_store().count_elements(BROWSER$0) != 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetBrowser() {\n return this.browser != null;\n }", "boolean hasElement();", "private boolean isElementPresent(By cssSelector) {\n\treturn false;\n}", "public boolean isDisplayed();", "boolean isDisplayed();", "@Override\n \tpublic boolean hasFirefox()\n \t{\n \t\tgetNavigateArgs();//sets firefoxExists if true\n \t\treturn firefoxExists;\n \t}", "@Test\n public void checkHeaderElement() {\n\t boolean marqueeElement = driver.findElement(By.cssSelector(\"div.c.c-nav\")).isDisplayed();\n\t \tAssert.assertTrue(marqueeElement, \"Is Not Present, this is not expected\");\n\t}", "protected boolean isElementPresent(By element) {\n\t\t \n if (driver.findElements(element).isEmpty()) {\n \treturn false;\n } else {\n \treturn true;\n }\n }", "public static boolean hasElements() {\n return content.size() > 0;\n }", "public boolean isExternalBrowser() {\n return externalBrowserCheckbox.getSelection();\n }", "boolean hasNode();", "boolean hasNode();", "public boolean isSetBrowse()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(BROWSE$2) != 0;\n }\n }", "public boolean isDefaultElement();", "boolean isContentDisplayed();", "public boolean isElementPresent(WebElement element) {\n try{\n return element.isDisplayed();\n }catch (RuntimeException e){\n return false;\n }\n }", "private static boolean isElementPresent(WebDriver driver, By by) {\n\t\tWebElement element;\n\t\ttry {\n\t\t\telement = driver.findElement(by);\n\n\t\t\treturn true;\n\t\t} catch (NoSuchElementException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isElement() {\r\n return element;\r\n }", "public static boolean isDisplayed(final WebElement element) {\n try {\n defaultWait.until(ExpectedConditions.visibilityOf(element));\n return true;\n } catch (Exception exception) {\n Log.info(\"Element not displayed on UI :\" + element.toString() + \" \" + exception.getMessage());\n return false;\n }\n }", "boolean hasRootFrame();", "private boolean elementDisplayed(String xpath){\n try {\n WebElement element = Driver.getDriver().findElement(By.xpath(xpath));\n return element.isDisplayed();\n }catch(Exception e){\n return false;\n }\n }", "boolean hasBuild();", "private static boolean isElementPresentAndDisplay(WebDriver driver, By by) {\n\t\ttry {\n\t\t\treturn driver.findElement(by).isDisplayed();\n\t\t} catch (NoSuchElementException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean Exist(WebElement element)\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn element.isDisplayed();\n\t\t}\n\t\tcatch (NoSuchElementException e)\n\t\t{\n\t\t\treturn false;\n\t\t\t\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isPresent() {\n return platform.isPresent() || application.isPresent();\n }", "public boolean elementIsDisplayed(By locator){\n \twaitForElementPresent(locator);\n \treturn getElement(locator).isDisplayed();\n }", "public boolean hasRegistry() {\n return registryBuilder_ != null || registry_ != null;\n }", "public boolean hasElement(String name) {\n return elements.has(name);\n }", "private static boolean isSuitableElement(Element element) {\n \n \t\tif (element instanceof ElementCSSInlineStyle\n \t\t\t\t&& isAttributeAvailable(element, STYLE_TAG_NAME)) {\n \t\t\treturn true;\n \t\t}\n \n \t\treturn false;\n \t}", "public static boolean isDisplayed(WebElement element) {\n\t\tboolean displayed = element.isDisplayed();\n\t\treturn displayed;\n\n\t}", "public boolean isElementDisplayed(By locator) {\n\t\ttry {\n\t\t\tfindElement(locator);\n\t\t}catch(Exception e)\n\t\t{\n\t\t\tLOGGER.error(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Fail\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean isOpen(){\n boolean statement = isElementPresent(czDppButon); //TODO - zmena na pozdejsi stranku\n if(!statement){ DriverSettings.takeScreenshot(); }\n return statement;\n }", "public boolean isExtensionElement();", "boolean hasChromeVersion();", "public boolean hasFrame() {\n return frameBuilder_ != null || frame_ != null;\n }", "public boolean isElementPresent(WebElement element) {\r\n try {\r\n return element.isDisplayed() && element.isEnabled();\r\n\r\n } catch (Exception e) {\r\n return false;\r\n\r\n }\r\n }", "boolean hasUserAgent();", "public default boolean hasDetector() {\n\t\treturn false;\n\t}", "public static boolean isDisplayed(WebElement element) {\r\n\t\tboolean isElDisplayed = false;\r\n\t\ttry {\r\n\r\n\t\t\tif (element.isDisplayed()) {\r\n\t\t\t\tisElDisplayed = true;\r\n\t\t\t}\r\n\t\t} catch (NoSuchElementException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tAssert.assertTrue(false, \"WebElement not found \" + e);\r\n\t\t}\r\n\r\n\t\treturn isElDisplayed;\r\n\t}", "boolean hasIsNodeOf();", "boolean hasFrame();", "public boolean hasNode() {\n return nodeBuilder_ != null || node_ != null;\n }", "public boolean hasNode() {\n return nodeBuilder_ != null || node_ != null;\n }", "protected boolean isElementDisplayed(By locator){\n \tboolean displayed;\n \ttry {\n \t\tdisplayed = new WebDriverWait(DRIVER, 10)\n \t\t.until(ExpectedConditions.presenceOfElementLocated(locator)).isDisplayed();\n \t}catch (TimeoutException e){\n \t displayed = false;\t\n \t}\n\n \treturn displayed; \n }", "public boolean elementIsVisible(WebElement element) {\n\t\ttry {\n\t\t\tif (element.isDisplayed())\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t} catch (NoSuchElementException e) {\n\t\t\treturn false;\n\t\t}\n\n\t}", "@Override\n\tpublic boolean isPresent()\n\t{\n\t\treturn present;\n\t}", "public static boolean isBrowserIE() {\r\n\t\treturn ConfigProperties.BROWSER.equalsIgnoreCase(INTERNET_EXPLORER);\r\n\t}", "boolean hasDevice();", "public static void isElementDisplayed(WebElement element) {\n \tboolean elementDisplayed= element.isDisplayed();\n \t\n \tif(elementDisplayed) {\n \t\tSystem.out.println(element+\" \"+\"object is Displayed\");\n \t}\n \telse {\n \t\tSystem.out.println(element+\" \"+\"object is not Displayed\");\n \t}\n }", "public Boolean isElementPresent(WebElement element) {\r\n\t\ttry {\r\n\t\t\twaitForElementVisible(element);\r\n\t\t\telement.isDisplayed();\r\n\t\t\treturn true;\r\n\t\t} catch (Exception ex) {\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean hasGui() {\n return hasGui;\n }", "public static boolean displayed(WebElement element){\n waitForVisibility(element);\n return element.isDisplayed();\n }", "public boolean isWebShowing();", "public boolean check_About_wndw_Presence() {\r\n\t\tWebElement About_Wndw = driver.findElementByName(\"About\");\r\n\t\treturn IsElementVisibleStatus(About_Wndw);\r\n\t}", "private static boolean areElementsPresent(WebDriver driver, By by) {\n\t\ttry {\n\t\t\tdriver.findElements(by);\n\t\t\treturn true;\n\t\t} catch (NoSuchElementException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "protected boolean isElementPresent(By by) {\n try {\n driver.findElement(by);\n return true;\n } catch (NoSuchElementException e) {\n if(LOG.isDebugEnabled()){\n LOG.debug(\"Requested element is not present\", e);\n }\n return false;\n }\n }", "public boolean isFormPresent() {\n return waitForElementPresent(searchField);\n }", "private static boolean isExternal( HtmlBrowser.Factory brow ) {\n FileObject fo = FileUtil.getConfigFile (\"Services/Browsers\"); // NOI18N\n\n DataFolder folder = DataFolder.findFolder (fo);\n DataObject [] dobjs = folder.getChildren ();\n for (int i = 0; i < dobjs.length; i++) {\n Object o = null;\n\n try {\n if (Boolean.TRUE.equals (dobjs[i].getPrimaryFile ().getAttribute (\"hidden\")))\n continue;\n if (!Boolean.TRUE.equals (dobjs[i].getPrimaryFile ().getAttribute (\"internal\")) )\n continue;\n InstanceCookie cookie = (InstanceCookie) dobjs[i].getCookie (InstanceCookie.class);\n\n if (cookie == null)\n continue;\n o = cookie.instanceCreate ();\n if (o != null && o.equals (brow)) {\n return false;\n }\n }\n // exceptions are thrown if module is uninstalled\n catch (java.io.IOException ex) {\n Logger.getLogger (IDESettings.class.getName ()).log (Level.WARNING, null, ex);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger (IDESettings.class.getName ()).log (Level.WARNING, null, ex);\n }\n }\n return false;\n }", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "public boolean isElementPresent(WebElement element) {\n wait.until(ExpectedConditions.elementToBeClickable(element));\n// wait.until(ExpectedConditions.visibilityOf(element));\n return element.isDisplayed();\n }", "@java.lang.Override\n public boolean hasNode() {\n return node_ != null;\n }", "@java.lang.Override\n public boolean hasNode() {\n return node_ != null;\n }", "public static boolean useInternalBrowser() {\n\t\treturn (isWindows() || isLinux() || isMac());\n\t}", "protected boolean isElementOnScreen(WebElement element) {\n return (Boolean)getSeleniumHelper().executeJavascript(ELEMENT_ON_SCREEN_JS, element);\n }", "public boolean hasPage() {\n return pageBuilder_ != null || page_ != null;\n }", "public boolean isDisplayed() \n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public boolean hasRegistry() {\n return registry_ != null;\n }", "public void isLiveChatSuperCasinoLogoPresent(){\n\t\t WebElement Frame = d.findElement(By.cssSelector(\"iframe.noFrame\"));\n\t \td.switchTo().frame(Frame);\n\t\t WebElement Logo= d.findElement(By.cssSelector(Constant.LiveChat_SupercasinoLogo));\n\t\t WebDriverWait wait= new WebDriverWait(d, 30);\n\t\t wait.until(ExpectedConditions.visibilityOf(Logo));\n\t\t Logo.isDisplayed();\n\t\t Assert.assertTrue(Logo.isDisplayed());\n\t\t d.navigate().back();\n\t\t \n\t\t \n\t }", "@Override\n\tpublic boolean isPresent() {\n\t\treturn false;\n\t}", "public boolean isElementPresent(By by) {\n try {\n if(driver.findElement(by) != null){\n return true;\n }\n } catch (NoSuchElementException e) {\n log.info(\"Element with identifier \" + by + \" does not exist!\");\n return false;\n } catch (Exception e){\n log.info(\"Element with identifier \" + by + \" does not exist!\");\n return false;\n }\n return false;\n }", "boolean hasPage();", "boolean hasPage();", "public boolean isVisible() {\n\t\treturn element.isDisplayed();\n\t}", "public boolean hasDisplay() {\n return displayBuilder_ != null || display_ != null;\n }", "public static boolean isWebDriver() {\n\t\tif (ZmailSeleniumProperties.getStringProperty(\"seleniumDriver\") != null && ZmailSeleniumProperties.getStringProperty(\"seleniumDriver\").contentEquals(\"WebDriver\"))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public static boolean isBrowserChrome() {\r\n\t\treturn ConfigProperties.BROWSER.equalsIgnoreCase(CHROME);\r\n\t}", "public boolean isSetDriver() {\n\t\treturn this.driver != null;\n\t}", "public boolean hasFrame() {\n return frame_ != null;\n }", "public boolean hasRoboticon(){\r\n\t\treturn roboticon != null;\r\n\t}", "boolean hasIsMainFrame();", "@Override\n\tpublic boolean estaElemento(String elemento) {\n\t\treturn false;\n\t}", "boolean hasGenesis();", "public boolean canBeSeen()\n {\n if (!this.hasParent() || !this.isVisible())\n {\n return false;\n }\n\n GuiElement element = this;\n\n while (true)\n {\n if (!element.isVisible())\n {\n return false;\n }\n\n GuiElement parent = element.getParent();\n\n if (parent instanceof GuiDelegateElement && ((GuiDelegateElement) parent).delegate != element)\n {\n return false;\n }\n\n if (parent == null)\n {\n break;\n }\n\n element = parent;\n }\n\n return element instanceof GuiBase.GuiRootElement;\n }", "public void welComeLink()\r\n\t{\r\n\t\tboolean welcome = welComeLinkElement.isDisplayed();\r\n\t\tAssert.assertTrue(welcome);\r\n\t\t\r\n\t}", "public boolean isDisplayed() {\n return graphConfig.isDisplayed();\n }", "public boolean validateBrokersAndNavigatorsPageisDisplayed() {\n\t\tboolean result = false;\n\n\t\tif (Browser.isDisplayed(\"xpath=.//*[@id='DisplayNavigatorBrokerLandingPage']/div/div/div/div/div/div/div/div/div[5]/a/img\")) {\n\t\t\tresult = true;\n\t\t}\n\n\t\treturn result;\n\t}", "private void checkPage() {\n Assert.assertTrue(\"Electric cars button not displayed.\",electricCars.isDisplayed());\n }", "protected boolean isValidElement(Object element) {\r\n\t\treturn element instanceof IRubyProject || element instanceof ISourceFolderRoot;\r\n\t}", "public boolean hasPlugin() {\n return plugin != null;\n }", "public Boolean getMustSupport() { \n\t\treturn getMustSupportElement().getValue();\n\t}", "boolean hasTheme();", "public boolean hasGadget() {\n return (this.curItem instanceof Gadget);\n }", "public boolean isElementExist(WebElement element) {\n\t\tboolean flag = true;\n\t\ttry {\n\n\t\t\tif (element.isDisplayed()) {\n\t\t\t\tflag = true;\n\t\t\t\tlogger.info(element + \" is Present\");\n\n\t\t\t} else {\n\t\t\t\tflag = false;\n\t\t\t\tlogger.info(element + \" is not present\");\n\n\t\t\t}\n\t\t} catch (NoSuchElementException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn flag;\n\n\t}", "public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }" ]
[ "0.76625836", "0.703735", "0.62866", "0.6271926", "0.6268381", "0.62633586", "0.62584925", "0.622142", "0.6193551", "0.6184247", "0.61702365", "0.61702365", "0.6164341", "0.6156181", "0.6104204", "0.61022705", "0.6083578", "0.60569364", "0.60519034", "0.6040854", "0.60131454", "0.60109144", "0.5997957", "0.5977593", "0.59691113", "0.5968878", "0.59431386", "0.5924175", "0.5918539", "0.5904519", "0.5888757", "0.5878021", "0.58709705", "0.5863663", "0.5861603", "0.5837061", "0.58334935", "0.5830974", "0.5823363", "0.5822593", "0.5819341", "0.5818555", "0.5818555", "0.5814017", "0.58006126", "0.57959557", "0.5786109", "0.57806635", "0.5780208", "0.5777218", "0.5773572", "0.57723194", "0.57711685", "0.5768202", "0.57677275", "0.5767637", "0.5764311", "0.5760994", "0.5751518", "0.5751518", "0.5751518", "0.5751518", "0.5751518", "0.5751518", "0.5751518", "0.5750691", "0.57395476", "0.57395476", "0.57383376", "0.5737622", "0.57343566", "0.57306606", "0.57304555", "0.5718471", "0.57146835", "0.57056487", "0.5703992", "0.5703992", "0.5703867", "0.5703841", "0.57005525", "0.5697499", "0.5695471", "0.56795424", "0.56651187", "0.5660506", "0.56587505", "0.56544626", "0.5645331", "0.5644214", "0.564246", "0.56421477", "0.56370246", "0.5633561", "0.5632811", "0.56286323", "0.56229603", "0.5621855", "0.5616575", "0.5614288" ]
0.7556806
1
Sets the "browser" element
public void setBrowser(au.gov.asic.types.BrowserIdentifierType browser) { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.BrowserIdentifierType target = null; target = (au.gov.asic.types.BrowserIdentifierType)get_store().find_element_user(BROWSER$0, 0); if (target == null) { target = (au.gov.asic.types.BrowserIdentifierType)get_store().add_element_user(BROWSER$0); } target.set(browser); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setBrowser(String browser);", "public static void setBrowser() {\n\t\t browser=\"Chrome\";\n\t }", "@Parameters(\"browser\")\n private void switchBrowser(String browser) {\n if (browser.equals(DRIVER_TYPE.IE.name())) {\n System.setProperty(\"webdriver.ie.driver\", \"src/test/resources/driver/IEDriverServer.exe\");\n driver = new InternetExplorerDriver();\n } else {\n System.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/driver/chromedriver.exe\");\n driver = new ChromeDriver();\n }\n }", "public void browserChanged() { }", "public void setBrowserMgr (IBrowserManager theMgr) {\n this.theBrowserMgr = theMgr;\n }", "@Parameters({\"browser\"})\n\t@BeforeMethod\n\tpublic final void setDriver(String browser) throws Exception{\n\t\tsetBrowser = browser;\n\t\tswitch(browser){\n\t\t\n\t\tcase \"chrome\":\n\t\t\tWebDriverManager.chromedriver().setup();\n\t\t\twebDriver.set(new ChromeDriver());\n\t\tbreak;\n\t\t\n\t\tcase \"firefox\":\n\t\t\tWebDriverManager.firefoxdriver().setup();\n\t\t\twebDriver.set(new FirefoxDriver());\n\t\tbreak;\n\t\t\n\t\tcase \"ie\":\n\t\t\tWebDriverManager.edgedriver().setup();\n\t\t\twebDriver.set(new EdgeDriver());\n\t\tbreak;\n\t\t\n\t\tcase \"edge\":\n\t\t\t/*EdgeOptions options = new EdgeOptions();\n\t\t\t//options.setProxy(proxy)\n*/\t\t\tSystem.setProperty(\"webdriver.edge.driver\", resourcePath+\"Drivers/MicrosoftWebDriver.exe\");\n\t\t\tWebDriver driver = new EdgeDriver();\n\t\t\t//WebDriverManager.edgedriver().setup();\n\t\t\twebDriver.set(driver);\n\t\tbreak;\n\t\t\n\t\tcase \"safari\":\n\t\t\twebDriver.set(new SafariDriver());\n\t\t\n\t\t}\n\t}", "public <T extends TechnologyModelObject> TechnologyModuleBrowserElement<T> createBrowserElement(T object, ProjectBrowser browser,\n\t\t\tBrowserElement parent);", "public void browser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/Driver/chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().window().maximize();// maximize the window\n\t\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\n\n\t}", "public static void openBrowser() {\r\n\t\tString browser = prop.getProperty(\"browserType\").toLowerCase();\r\n\r\n\t\ttry {\r\n\t\t\tif (browser.equals(\"chrome\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"chromeName\"), prop.getProperty(\"chromePath\"));\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\r\n\t\t\t} else if (browser.equals(\"ff\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"FFName\"), prop.getProperty(\"FFPath\"));\r\n\t\t\t\tdriver = new FirefoxDriver();\r\n\r\n\t\t\t} else if (browser.equals(\"ie\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"IEName\"), prop.getProperty(\"IEPath\"));\r\n\t\t\t\tdriver = new InternetExplorerDriver();\r\n\r\n\t\t\t} else {\r\n\t\t\t\tAssert.fail(\"Unable to find browser, Check EnvrionrmentData.properties file\");\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tAssert.fail(\"Unable to find browser, Check EnvrionrmentData.properties file\");\r\n\t\t}\r\n\t}", "public void setElement(WebElement element) {\n\t\t\r\n\t}", "public static void setExternalWWWBrowser (HtmlBrowser.Factory brow) {\n setBrowser( PROP_EXTERNAL_WWWBROWSER, brow );\n }", "public void initiateBrowser(String browser) {\n\t\tString os = System.getProperty(\"os.name\").toLowerCase();\n\t\tString current_dir = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(os);\n\t\tSystem.out.println(current_dir);\n\t\tswitch (browser) {\n\t\tcase \"ie\":\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", current_dir + \"/drivers/IEDriverServer.exe\");\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t\tbreak;\n\t\tcase \"chrome\":\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\tif (os.contains(\"linux\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/linuxdrivers/chromedriver\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\n\t\t\t\toptions.setBinary(\"/usr/bin/google-chrome\");\n\t\t\t\toptions.addArguments(\"--headless\");\n\t\t\t} else if (os.contains(\"windows\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/chromedriver.exe\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\t\t\t}\n\t\t\toptions.addArguments(\"test-type\");\n\t\t\toptions.addArguments(\"disable-popup-blocking\");\n\t\t\tdriver = new ChromeDriver(options);\n\n\t\t\tdriver.manage().window().maximize();\n\t\t\tbreak;\n\t\tcase \"firefox\":\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tbreak;\n\t\t}\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t}", "public Browser getBrowser() {\n return browser;\n }", "public static void setup(String browser) throws Exception{\n if(browser.equalsIgnoreCase(\"firefox\")){\n \tFile pathToBinary = new File(\"C:\\\\Program Files (x86)\\\\Mozilla Firefox 41\\\\firefox.exe\");\n \tFirefoxBinary binary = new FirefoxBinary(pathToBinary);\n \tFirefoxDriver driver = new FirefoxDriver(binary, new FirefoxProfile());\n \t\n \t//System.setProperty(\"webdriver.firefox.driver\",\"C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe\");\n \t/*DesiredCapabilities capabilies = DesiredCapabilities.firefox();\t\t\t\n capabilies.getBrowserName();\n capabilies.getVersion();*/\n \t\t\t\n \t//create Firefox instance\t \n //driver = new FirefoxDriver(); \n System.out.println(\"Browser Used: \"+browser);\n }\t \n //Check if parameter passed is 'Chrome'\n // https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/chrome/ChromeOptions.html\n // http://www.programcreek.com/java-api-examples/index.php?api=org.openqa.selenium.remote.DesiredCapabilities (Singleton)\n else if(browser.equalsIgnoreCase(\"chrome\")){\t \t \n System.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n ChromeOptions opt = new ChromeOptions();\n opt.setBinary(\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n opt.setExperimentalOption(\"Browser\", \"Chrome\");\n opt.getExperimentalOption(\"version\");\n \n// DesiredCapabilities capabilies = DesiredCapabilities.chrome();\n// capabilies.setBrowserName(\"chrome\");\n// capabilies.setPlatform(Platform.WINDOWS);\n// capabilies.setVersion(\"38\");\n// DesiredCapabilities capabilities = new DesiredCapabilities();\n \n //Create Chrome instance\n driver = new ChromeDriver(opt);\t \n }\n \n //Check if parameter passed is 'Safari'\t\n else if(browser.equalsIgnoreCase(\"safari\")){\t \t \n \tSystem.setProperty(\"webdriver.safari.driver\",\"C:/safaridriver.exe\");\n \t\n \t//System.setProperty(\"webdriver.safari.noinstall\", \"true\");\n \tdriver = new SafariDriver();\n \t\n /*\tSafariOptions options = new SafariOptions();\n \tSafariDriver driver = new SafariDriver(options);\n \tDesiredCapabilities capabilities = DesiredCapabilities.safari();\n \tcapabilities.setCapability(SafariOptions.CAPABILITY, options);*/\n }\n \n //Check if parameter passed is 'IE'\t \n else if(browser.equalsIgnoreCase(\"ie\")){\n \t//String IE32 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_32.exe\"; //IE 32 bit\n\t\t\tString IE64 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_64.exe\"; //IE 64 bit\n \tSystem.setProperty(\"webdriver.ie.driver\",IE64);\n \t\n /* \tDesiredCapabilities capabilies = DesiredCapabilities.internetExplorer();\n \tcapabilies.setBrowserName(\"ie\");\n capabilies.getBrowserName();\n capabilies.getPlatform();\n capabilies.getVersion();*/\n \n \t//Create IE instance\n \tdriver = new InternetExplorerDriver();\n }\t \n else{\t \n //If no browser passed throw exception\t \n throw new Exception(\"Browser is not correct\");\t \n }\t \n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\n\t}", "private void setWebDriver() {\n if (Boolean.valueOf(System.getProperty(\"LOCAL_DRIVER\"))) {\n setLocalWebdriver();\n } else if (Boolean.valueOf(System.getProperty(\"REMOTE_DRIVER\"))) {\n setRemoteWebdriver();\n } else if (Boolean.valueOf(System.getProperty(\"SAUCE_DRIVER\"))) {\n setSauceWebdriver();\n } else {\n throw new WebDriverException(\"Type of driver not specified!!!\");\n }\n this.driver.get().manage().timeouts()\n .implicitlyWait(10, TimeUnit.SECONDS);\n if (browser.equalsIgnoreCase(\"internet explorer\")|browser.equalsIgnoreCase(\"firefox\")|browser.equalsIgnoreCase(\"chrome\")|browser.equalsIgnoreCase(\"safari\")) {\n\t\t\t//we only want to maximise the browser window for desktop browser, not devices.\n \tthis.driver.get().manage().window().maximize();\n\t\t}\n }", "public void setDriver(String browserName){\r\n\t \r\n\t\t if(browserName==null){\r\n\t\t\t browserName=\"firefox\";\r\n\t\t\t \r\n\t\t }\r\n\t\t if(browserName.equalsIgnoreCase(\"firefox\")){\r\n\t\t\t \r\n\t\t\t System.setProperty(\"webdriver.gecko.driver\", FIREFOX_DRIVER_PATH);\r\n\t\t\t \r\n\t\t\t driver= new FirefoxDriver();\r\n\t\t\t \r\n\t\t }\r\n\t\t \r\n\t\t if(browserName.equalsIgnoreCase(\"chrome\")){\r\n\t\t\t \r\n\t\t\t System.setProperty(\"webdriver.chrome.driver\",CHROME_DRIVER_PATH);\r\n\t\t\t \r\n\t\t\t driver= new ChromeDriver();\r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t if(browserName.equalsIgnoreCase(\"ie\")){\r\n\t\t\t \r\n\t\t\t System.setProperty(\"webdriver.ie.driver\",IE_DRIVER_PATH);\r\n\t\t\t \r\n\t\t\t driver= new InternetExplorerDriver();\r\n\t\t\t \r\n\t\t }\r\n\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t}", "@Parameters(\"browser\")\n\t@BeforeMethod\n\tpublic void launchBrowser(String browser) throws InterruptedException{\n\t\tif(browser.equalsIgnoreCase(\"firefox\")) {\n\t\t\t \n\t\t\t driver = new FirefoxDriver();\n\t\t \n\t\t // If browser is IE, then do this\t \n\t\t \n\t\t }else if (browser.equalsIgnoreCase(\"ie\")) { \n\t\t \n\t\t\t // Here I am setting up the path for my IEDriver\n\t\t \n\t\t\t System.setProperty(\"webdriver.ie.driver\", \"C://Users//sudt//Downloads//IEDriverServer_x64_2.53.1//IEDriverServer (2).exe\");\n\t\t \n\t\t\t driver = new InternetExplorerDriver();\n\t\t \n\t\t } \n\t\t else if (browser.equalsIgnoreCase(\"chrome\")){\n\t\t\t System.setProperty(\"webdriver.chrome.driver\", \"C://Users//sudt//Downloads//chromedriver_win32//chromedriver.exe\");\n\t\t\t driver = new ChromeDriver();\n\t\t }\n\t\t else {\n throw new IllegalArgumentException(\"The Browser Type is Undefined\");\n }\n\n\t\tdriver.get(\"https://www.xero.com/us/\");\n\t\tdriver.manage().window().maximize();\n\t\n\t\n\t}", "public static String getBrowser(){\n\t\treturn browser;\n\t}", "public static void setWWWBrowser (HtmlBrowser.Factory brow) {\n setBrowser( PROP_WWWBROWSER, brow );\n if( isExternal( brow ) ) {\n setExternalWWWBrowser(brow);\n }\n }", "public void Open_Browser() \r\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\");\r\n\t\t//Brower initiation\r\n\t\tdriver=new ChromeDriver();\r\n\t\t//maximize browser window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\r\n\t}", "public void open() {\n setWebDriver();\n }", "public static void openBrowser() {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n // === Google Chrome Browsers === //\n CHOSEN_BROWSER = CHROME;\n driver.manage().window().maximize();\n }", "protected void setDriver() throws Exception {\n\t\tswitch (browser.split(\"[-]\")[0].toLowerCase()) {\n\t\tcase \"firefox\":\n\t\t\tsetFirefoxDriver();\n\t\t\tbreak;\n\t\tcase \"chrome\":\n\t\t\t// runDocker();\n\t\t\tsetChromeDriver();\n\t\t\tbreak;\n\t\tcase \"ie\":\n\t\t\tsetIEDriver();\n\t\t\tbreak;\n\t\tcase \"edge\":\n\t\t\tsetEdgeDriver();\n\t\t\tbreak;\n\t\tcase \"safari\":\n\t\t\tsetSafariDriver();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tsetChromeDriver();\n\t\t\tbreak;\n\t\t}\n\t\tgetDriver().manage().window().maximize(); // Maximize the browser.\n\t\tgetDriver().manage().timeouts().implicitlyWait(defaultImplicitWaitTime, TimeUnit.SECONDS);\n\t}", "public void openBrowser() {\n ResourceBundle config = ResourceBundle.getBundle(\"config\");\n\n config.getString(\"browser\").equalsIgnoreCase(\"Chrome\");\n System.setProperty(\"webdriver.chrome.driver\", \"src/Drivers/chromedriver_76.0.exe\");\n driver = new ChromeDriver();\n\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n// driver.get(config.getString(\"URL\"));\n driver.manage().window().maximize();\n }", "public void change_browser_font(Font font){\n\t\tbrowser_font = font;\n\t\tgui_globals.change_html_pane_font(this.browser, font);\n\t}", "private void setRemoteWebdriver() {\n\n switch (getBrowserId(browser)) {\n case 0:\n capabilities = DesiredCapabilities.internetExplorer();\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n break;\n case 1:\n\t\tFirefoxProfile profile = new FirefoxProfile();\n \tprofile.setEnableNativeEvents(true);\n capabilities = DesiredCapabilities.firefox();\n\t\tcapabilities.setCapability(FirefoxDriver.PROFILE, profile);\n \tcapabilities.setJavascriptEnabled(true);\n \tcapabilities.setCapability(\"marionette\", false);\n \tcapabilities.setCapability(\"acceptInsecureCerts\", true);\n break;\n case 2:\n capabilities = DesiredCapabilities.safari();\n break;\n case 3:\n capabilities = DesiredCapabilities.chrome();\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n capabilities.setCapability(\"javascriptEnabled\", true);\n capabilities.setCapability(\"platform\", platform);\n capabilities.setCapability(\"version\", version);\n capabilities.merge(extraCapabilities);\n\n try {\n this.driver.set(new RemoteWebDriver(new URL(\"http://\"\n + System.getProperty(\"GRID_HOST\") + \":\"\n + System.getProperty(\"GRID_PORT\") + \"/wd/hub\"),\n capabilities));\n } catch (MalformedURLException e) {\n LOGGER.log(Level.INFO,\n \"MalformedURLException in setRemoteWebdriver() method\", e);\n }\n }", "@Parameters(\"browser\")\n\t@BeforeMethod (groups= {\"smoke\"})\n\tpublic void setUp(@Optional String browser) {//name of the parameter from xml\n\t\tdriver=Driver.getDriver(browser);\n\t\tdriver.get(ConfigurationReader.getProperty(\"url\"));\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t}", "public String getBrowserName(){\r\n\t\treturn rb.getProperty(\"browser\");\r\n\t}", "@BeforeTest\r\n\tpublic void operBrowser(){\n\t\td1=Driver.getBrowser();\r\n\t\tWebDriverCommonLib wlib=new WebDriverCommonLib();\r\n\t\td1.get(Constant.url);\r\n\t\twlib.maximizeBrowse();\r\n\t\twlib.WaitPageToLoad();\r\n\t}", "public static void openBrowser()\n\t{\n\t\tdriver = DriverSetup.getWebDriver(ReadPropertiesFile.getBrowser());\n\t\tdriver.get(ReadPropertiesFile.getURL());\n\t\tlog.info(\"Opening Browser\");\n\t\tlog.info(\"Practo website is launched \");\n\t}", "public BrowserLib(final String browser){\r\n\t\ttry{\r\n\t\t\tthis.setUpDriver(browser);\r\n\t\t}catch(Exception e){\r\n\t\t\tBrowserLib.logger.error(\"Exception throw:\",e);\t\r\n\t\t}\r\n\t}", "protected void setupBrowserActivity() {\n mActivity.setTheme(R.style.BrowserTheme);\n // no more layout zooming when soft keyboard popups\n mActivity.getWindow().setSoftInputMode(LayoutParams.SOFT_INPUT_ADJUST_PAN);\n }", "private void setSauceWebdriver() {\n\n switch (getBrowserId(browser)) {\n case 0:\n capabilities = DesiredCapabilities.internetExplorer();\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n break;\n case 1:\n capabilities = DesiredCapabilities.firefox();\n break;\n case 2:\n capabilities = DesiredCapabilities.safari();\n break;\n case 3:\n capabilities = DesiredCapabilities.chrome();\n break;\n case 4:\n capabilities = DesiredCapabilities.iphone();\n capabilities.setCapability(\"deviceName\",\"iPhone Simulator\");\n capabilities.setCapability(\"device-orientation\", \"portrait\");\n break;\n case 5:\n capabilities = DesiredCapabilities.iphone();\n capabilities.setCapability(\"deviceName\",\"iPad Simulator\");\n capabilities.setCapability(\"device-orientation\", \"portrait\");\n break;\n case 6:\n capabilities = DesiredCapabilities.android();\n capabilities.setCapability(\"deviceName\",\"Android Emulator\");\n capabilities.setCapability(\"device-orientation\", \"portrait\");\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n capabilities.merge(extraCapabilities);\n capabilities.setCapability(\"javascriptEnabled\", true);\n capabilities.setCapability(\"platform\", platform);\n capabilities.setCapability(\"version\", version);\n\n try {\n this.driver.set(new RemoteWebDriver(new URL(System\n .getProperty(\"SAUCE_KEY\")), capabilities));\n } catch (MalformedURLException e) {\n LOGGER.log(Level.INFO,\n \"MalformedURLException in setSauceWebdriver() method\", e);\n }\n }", "private NKE_BrowserWindow() {}", "public static void launchingBrowser() throws Exception {\n\n\t\tString applicationURL = merchEnv.getProtocol() + \"://\"\n\t\t\t\t+ merchEnv.getHost() + \":\" + merchEnv.getPort() + \"/\";\n\t\tselectedBrowser = merchEnv.getBrowser();\n\t\ttry {\n\t\t\tbaseScreen = new BaseScreen(selectedBrowser, applicationURL,\n\t\t\t\t\tmerchEnv.getContext(), merchEnv, merchUserInfo, merchUI);\n\t\t} catch (ScreenException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void setBrowserurl(java.lang.String browserurl) {\n this.browserurl = browserurl;\n }", "public void unsetBrowser()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BROWSER$0, 0);\n }\n }", "void setGui(Gui gui);", "@BeforeTest(alwaysRun=true)\r\n\t@Parameters({\"browser\",\"url\"})\r\n\tpublic void set(String browser,String url)\r\n\t{\r\n\t\ttry\r\n\t\t{selectBrowser(browser);\r\n\t\tgeturl(url);\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"not set up\");\r\n\t\t}\r\n\t}", "public String getBrowser(){\n\t\tif (prop.getProperty(\"browser\") == null)\n\t\t\treturn \"\";\n\t\treturn prop.getProperty(\"browser\");\n\t}", "public static WebDriver selectBrowser(String browser){\r\n\t\tif(browser.equalsIgnoreCase(\"firefox\")){\r\n\t\t\tdriver = new FirefoxDriver();\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\treturn driver;\r\n\t\t}else if(browser.equalsIgnoreCase(\"chrome\")){\r\n\t\t\tSystem.out.println(\"chrome browser\");\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+\"chromedriver.exe\");\r\n\t\t\tdriver = new ChromeDriver();\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\treturn driver;\r\n\t\t} else if(browser.equalsIgnoreCase(\"IE\")){\r\n\t\t\tSystem.out.println(\"Internet Explorer\");\r\n\t\t\tSystem.setProperty(\"webdriver.IE.driver\", System.getProperty(\"user.dir\")+\"iexplore.exe\");\r\n\t\t\tdriver = new InternetExplorerDriver();\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\treturn driver;\r\n\t}\r\n\t\treturn null;\r\n\t}", "void browserMethod();", "public boolean isSetBrowser() {\n return this.browser != null;\n }", "private void init_remoteWebDriver(String browser) {\n\t\tif(browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\tDesiredCapabilities cap = new DesiredCapabilities().chrome();\n\t\t\tcap.setCapability(ChromeOptions.CAPABILITY, optionsManager.getChromeOptions());\n\t\t\t\n\t\t\t//To connect with hub use RemoteWebDriver\n\t\t\ttry {\n\t\t\t\ttlDriver.set(new RemoteWebDriver(new URL(prop.getProperty(\"huburl\")), cap));\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if(browser.equalsIgnoreCase(\"firefox\")){\n\t\t\tDesiredCapabilities cap = new DesiredCapabilities().firefox();\n\t\t\tcap.setCapability(FirefoxOptions.FIREFOX_OPTIONS, optionsManager.getFirefoxOptions());\n\t\t\t\n\t\t\ttry {\n\t\t\t\ttlDriver.set(new RemoteWebDriver(new URL(prop.getProperty(\"huburl\")), cap));\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "private void setLocalWebdriver() {\n\n DesiredCapabilities capabilities = new DesiredCapabilities();\n capabilities.setJavascriptEnabled(true);\n capabilities.setCapability(\"handlesAlerts\", true);\n switch (getBrowserId(browser)) {\n case 0:\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n driver.set(new InternetExplorerDriver(capabilities));\n break;\n case 1:\n driver.set(new FirefoxDriver(capabilities));\n break;\n case 2:\n driver.set(new SafariDriver(capabilities));\n break;\n case 3:\n driver.set(new ChromeDriver(capabilities));\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n }", "public interface WebBrowser {\r\n}", "@SuppressWarnings(\"static-access\")\n\tpublic void setWebDriver(WebDriver driver) {\n\t\tthis.driver = driver;\n\t}", "@Override\n\tpublic EmbeddedBrowser get() {\n\t\tLOGGER.debug(\"Setting up a Browser\");\n\t\t// Retrieve the config values used\n\t\tImmutableSortedSet<String> filterAttributes =\n\t\t configuration.getCrawlRules().getPreCrawlConfig().getFilterAttributeNames();\n\t\tlong crawlWaitReload = configuration.getCrawlRules().getWaitAfterReloadUrl();\n\t\tlong crawlWaitEvent = configuration.getCrawlRules().getWaitAfterEvent();\n\n\t\t// Determine the requested browser type\n\t\tEmbeddedBrowser browser = null;\n\t\tEmbeddedBrowser.BrowserType browserType = configuration.getBrowserConfig().getBrowsertype();\n\t\ttry {\n\t\t\tswitch (browserType) {\n\t\t\t\tcase FIREFOX:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t newFireFoxBrowser(filterAttributes, crawlWaitReload, crawlWaitEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tcase INTERNET_EXPLORER:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t WebDriverBackedEmbeddedBrowser.withDriver(\n\t\t\t\t\t new InternetExplorerDriver(),\n\t\t\t\t\t filterAttributes, crawlWaitEvent, crawlWaitReload);\n\t\t\t\t\tbreak;\n\t\t\t\tcase CHROME:\n\t\t\t\t\tbrowser = newChromeBrowser(filterAttributes, crawlWaitReload, crawlWaitEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tcase REMOTE:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t WebDriverBackedEmbeddedBrowser.withRemoteDriver(configuration\n\t\t\t\t\t .getBrowserConfig().getRemoteHubUrl(), filterAttributes,\n\t\t\t\t\t crawlWaitEvent, crawlWaitReload);\n\t\t\t\t\tbreak;\n\t\t\t\tcase PHANTOMJS:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t newPhantomJSDriver(filterAttributes, crawlWaitReload, crawlWaitEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new IllegalStateException(\"Unrecognized browsertype \"\n\t\t\t\t\t + configuration.getBrowserConfig().getBrowsertype());\n\t\t\t}\n\t\t} catch (IllegalStateException e) {\n\t\t\tLOGGER.error(\"Crawling with {} failed: {}\", browserType.toString(), e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t\tplugins.runOnBrowserCreatedPlugins(browser);\n\t\treturn browser;\n\t}", "public Runner( String browser )\n {\n browser = browser.toUpperCase();\n if (browser.equals(\"FIREFOX\"))\n {\n driver = new FirefoxDriver();\n }\n if(browser.equals(\"CHROME\"))\n {\n driver = new ChromeDriver();\n }\n\n driver.get(\"http://kuku-kube.com\");\n }", "private void $$$setupUI$$$() {\n\t\tpanel_overview = new JPanel();\n\t\tpanel_overview.setLayout(new BorderLayout(0, 0));\n\t\twebView = new WebbrowserPanel();\n\t\tpanel_overview.add(webView, BorderLayout.CENTER);\n\t}", "public void setComponent(ElementView jc) {\n\t\tthis.jc = jc;\n\t}", "private static void initialiseBrowser() {\n\t\tif (System.getProperty(\"proxyname\") != null) {\n\t\t\tFirefoxProfile profile = new FirefoxProfile();\n\t\t\tprofile.setPreference(\"network.proxy.type\", 1);\n\t\t\tprofile.setPreference(\"network.proxy.http\", System.getProperty(\"proxyname\"));\n\t\t\tprofile.setPreference(\"network.proxy.http_port\", 3128);\n\n\t\t\tdriver = new FirefoxDriver(profile);\n\t\t\tsetDriver(driver);\n\t\t}\n\t\telse{\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tsetDriver(driver);\n\t\t}\n\t}", "public void setChromeDriver(){\n System.setProperty(\"webdriver.chrome.driver\", browserDriverPath);\n seleniumDriver = new ChromeDriver();\n }", "public void setUpDriver(final String browser) throws MalformedURLException{\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString gridUrl=System.getProperty(\"gridurl\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//check if parameter passed from TestNg is 'firefox'\r\n\t\t\r\n//\t\tif (BrowserLib.FIREFOX.equalsIgnoreCase(browser)){\r\n//\t\t DesiredCapabilities capabilities =DesiredCapabilities.firefox();\r\n//\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n//\t\t if(StringUtils.isNotEmpty(gridUrl)){\r\n//\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n//\t\t }\r\n//\t\t else{\r\n//\t\t\t driver =new FirefoxDriver(capabilities);\r\n//\t\t }\r\n\t\t \r\n\t\t\r\n\t\tif(BrowserLib.FIREFOX.equalsIgnoreCase(browser)){\r\n\t\t\t\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.firefox();\r\n//\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t \r\n\t\t\t final String firebugpath1=\"src//main//resource//firepath-0.9.7.1-fx.xpi\";\r\n\t\t\t final String firebugpath =\"src//main//resource//firebug-1.12.8.xpi\";\r\n\t\t\t FirefoxProfile profile=new FirefoxProfile();\r\n//\t\t System.setProperty(\"webdriver.firefox.driver\", \"C:\\\\Program Files\\\\MozillaFirefox\\\\firefox.exe\");\r\n\r\n\t\t\t \r\n\t\t\t try{\r\n\t\t\t\t profile.addExtension(new File(firebugpath));\r\n\t\t\t\t profile.addExtension(new File(firebugpath1));\t \r\n\t\t\t }catch (IOException e){\r\n\t\t\t\t logger.error(\"Exception:\",e);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t profile.setPreference(\"extensions.firebug.allpagesActivation\", \"on\");\r\n//\t\t\t capabilities.setCapability(FirefoxDriver.PROFILE,profile);\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t System.setProperty(\"webdriver.firefox.driver\", \"C:\\\\Program Files\\\\MozillaFirefox\\\\firefox.exe\");\r\n\t\t\t //if (StringUtils.isNotEmpty(gridUrl)){\r\n\t\t\t if(gridUrl==null){\r\n\t\t\t\t driver =new FirefoxDriver(capabilities); \r\n \t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t}else if(BrowserLib.CHROME.equalsIgnoreCase(browser)){\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.chrome();\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t if(gridUrl==null){\r\n\t\t\t\t driver =new ChromeDriver();\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t \r\n\t\t}else if(BrowserLib.INTERNET_EXP.equalsIgnoreCase(browser)){\r\n//\t\t\tset path to iedriver.exe you may need to download it from 32 bits\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.setProperty(\"webDriver.ie.driver\", System.getProperty(\"user.dir\")+\"/src/main/resource/\"+ \"IEDriverserver.exe\");\r\n//\t\t\t create ie instance\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.internetExplorer();\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n//\t\t\t if (StringUtils.isNotEmpty(gridUrl)){\r\n// \t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n//\t\t\t }else{\r\n//\t\t\t\t driver =new FirefoxDriver(capabilities); \r\n//\t\t\t }\r\n\t\t\t if(gridUrl.isEmpty()){\r\n\t\t\t\t driver =new InternetExplorerDriver(capabilities); \r\n \t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t}else{\r\n//\t\t\tif no browser passed throw exception\r\n\t\t\tthrow new UnsupportBrowserException();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tthis.driver.manage().deleteAllCookies();\r\n\t\tthis.browserMaximize();\r\n\t\tthis.driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t}", "@BeforeClass(description = \"Before class: start the Chrome browser\")\n public void setUpBrowser()\n {\n reports = new ExtentReports(\"C:\\\\Dev\\\\ToDoMVCTEST\\\\HTML_Report\\\\Report.html\", true);\n HTMLReport htmlReport = new HTMLReport();\n htmlReport.log(\"STARTING BeforeClass\");\n htmlReport.logINFO(\"Initialization of browser's driver\");\n driver = getDriver();\n htmlReport.logINFO(\"Maximize the window of browser\");\n driver.manage().window().maximize();\n htmlReport.logINFO(\"Setting timeouts in seconds\");\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n }", "public void setElement(Object e) {\n element = e;\n }", "public static void openBrowser(String browserType) {\n if(browserType.equalsIgnoreCase(CHROME)) {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n CHOSEN_BROWSER = CHROME;\n }\n else if(browserType.equalsIgnoreCase(EDGE)) {\n WebDriverManager.edgedriver().setup();\n driver = new EdgeDriver();\n CHOSEN_BROWSER = EDGE;\n }\n else if(browserType.equalsIgnoreCase(FIREFOX)) {\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n CHOSEN_BROWSER = FIREFOX;\n }\n }", "public WebDriver browserSetup() throws IOException\r\n\t{ \r\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\r\n\t\tSystem.out.println(\"1.Chrome\\n2.Firefox \\nEnter your choice:\");\r\n\t\tString choice=br.readLine();\r\n\t\t\r\n\t\tswitch(choice)\r\n\t\t{\r\n\t\t//To start Chrome Driver\r\n\t\tcase \"1\":\r\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Test Automation\\\\Software\\\\chrome\\\\New Version\\\\chromedriver.exe\");\r\n\t\t ChromeOptions options=new ChromeOptions();\r\n\t\t options.addArguments(\"--disable-notifications\");\r\n\t\t driver=new ChromeDriver(options);\r\n\t\t break;\r\n\t\t\r\n\t\t//To start Firefox Driver\r\n\t\tcase \"2\":\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\***\\\\drivers\\\\geckodriver.exe\");\r\n\t\t\tdriver=new FirefoxDriver();\r\n\t\t\tbreak;\r\n\t\t} \r\n\t\t\r\n\t\tdriver.get(url);\r\n\t\t\r\n\t\t//To maximize the window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(8, TimeUnit.SECONDS);\r\n\t\t\r\n\t\treturn driver;\r\n\t}", "String getBrowser();", "public boolean setBrowserCapability(String key, String value) {\n if (Boolean.valueOf(System.getProperty(\"LOCAL_DRIVER\"))) {\n return false;\n } else if (Boolean.valueOf(System.getProperty(\"REMOTE_DRIVER\"))) {\n extraCapabilities.setCapability(key, value);\n return true;\n } else if (Boolean.valueOf(System.getProperty(\"SAUCE_DRIVER\"))) {\n extraCapabilities.setCapability(key, value);\n return true;\n } else {\n throw new WebDriverException(\"Type of driver not specified!!!\");\n }\n }", "@Override\n\tpublic void setElement(Element element) {\n\t\t\n\t}", "protected IBrowserManager getBrowserMgr () {\n return (this.theBrowserMgr);\n }", "public void getBrowser(String browser, String url) {\n\n\n if (browser.equalsIgnoreCase(\"chrome\")) {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n } else if (browser.equalsIgnoreCase(\"firefox\")) {\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n }\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.get(url);\n\n }", "@BeforeTest\r\n public void launchBrowser() {\n System.setProperty(\"webdriver.chrome.driver\", ChromePath);\r\n driver= new ChromeDriver();\r\n driver.manage().window().maximize();\r\n driver.get(titulo);\r\n }", "@BeforeTest //special type of testng method which alway run before.\r\n\t\t\tpublic void openBrowser() {\r\n\t\t\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\t\t\t\tdriver.get(\"https://locator.chase.com/\");\r\n\t\t\t}", "public static void configure (Configuration config, String browser) {\n CONFIG = config;\n DRIVER = config.getDriver(browser); \n }", "@BeforeTest\n\tpublic void LaunchBrowser() {\n\t\t driver = init(\"URL_JQuery\");\n\t\t// driver.get(\"https://jqueryui.com/autocomplete/\");\n\t\t driver.switchTo().frame(0);\n\t\t jq = new JQueryAutocompletePage(driver);\n\t\t \n\t}", "public BrowserToolbar(BrowserXmlPanel browserXmlPanel) {\n\t\tthis.browserXmlPanel = browserXmlPanel;\n\t\tinitComponents();\n\t}", "public FirefoxDriver openBrowser(String site){\n System.setProperty(\"webdriver.gecko.driver\", \"c:\\\\Utils\\\\geckodriver.exe\");\n FirefoxDriver browser = new FirefoxDriver();\n browser.get(site);\n return browser;\n }", "@BeforeTest\r\n\t@Parameters(\"browser\")\r\n\tpublic void setup(String browsername) throws Exception{\r\n\t\t//Check if parameter passed from TestNG is 'firefox'\r\n\t\tif(browsername.equalsIgnoreCase(\"firefox\")){\r\n\t\t//create firefox instance\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \".\\\\drivers\\\\geckodriver.exe\");\r\n\t\t\tdriver = new FirefoxDriver();\r\n\t\t}\r\n\t\t//Check if parameter passed as 'chrome'\r\n\t\telse if(browsername.equalsIgnoreCase(\"chrome\")){\r\n\t\t\t//set path to chromedriver.exe\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\".\\\\drivers\\\\chromedriver.exe\");\r\n\t\t\t//create chrome instance\r\n\t\t\tdriver = new ChromeDriver();\r\n\t\t}\r\n\t\t//Check if parameter passed as 'Edge'\r\n\t\t\t\telse if(browsername.equalsIgnoreCase(\"Edge\")){\r\n\t\t\t\t\t//set path to Edge.exe\r\n\t\t\t\t\tSystem.setProperty(\"webdriver.edge.driver\",\".\\\\drivers\\\\MicrosoftWebDriver.exe\");\r\n\t\t\t\t\t//create Edge instance\r\n\t\t\t\t\tdriver = new EdgeDriver();\r\n\t\t\t\t}\r\n\t\telse{\r\n\t\t\t//If no browser passed throw exception\r\n\t\t\tthrow new Exception(\"Browser is not correct\");\r\n\t\t}\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t}", "public Page() {\n driver = WebDriverFactory.getWebDriverAndHandleErrors();\n lastBrowserDimensions = originalBrowserDimensions = driver.manage().window().getSize();\n lastBrowserLocation = originalBrowserLocation = driver.manage().window().getPosition();\n this.setImplicitWait(10); // Set a 10 second wait before erroring out on not finding elements.\n }", "@Test\n\tpublic void testSetRobot() {\n\t\tController control = new Controller();\n\t\tBasicRobot robot = new BasicRobot();\n\t\tExplorer explorer = new Explorer();\n\t\tcontrol.setBuilder(Order.Builder.DFS);\n\t\tcontrol.setRobotAndDriver(robot, explorer);\n\t\trobot.setMaze(control);\n\t\tcontrol.turnOffGraphics();\n\t\tcontrol.switchFromTitleToGenerating(0);\n\t\tcontrol.waitForPlayingState();\n\t\texplorer.setRobot(robot);\n\t\tassertNotNull(explorer.getRobot());\n\t}", "public Browser(Controller master, IMainGUI gui) {\n super(master, gui);\n }", "public Test11__import_configuration_tests(String browser) {\n\t \n\t System.out.println(\"Browser - \" + browser);\n\t this.usedBrowser = browser;\n }", "private static WebDriver newHtmlUnitDiver() {\n\t\tcapabilities = new DesiredCapabilities().htmlUnit();\n\t\tcapabilities.setBrowserName(\"HtmlUnit\");\n\t\tsetCommonCapabilities();\n\n//\t\treturn new HtmlUnitDriver(capabilities);\n\t\treturn new HtmlUnitDriver(true);\n\t}", "public void setElement(Element element) {\n this.element = element;\n }", "@Before\n public void start(){\n DesiredCapabilities caps = new DesiredCapabilities();\n driver = new FirefoxDriver(new FirefoxBinary(new File(\"C:\\\\Program Files (x86)\\\\Nightly\\\\firefox.exe\")), new FirefoxProfile(), caps);\n wait = new WebDriverWait(driver, 10);\n\n //IE\n// DesiredCapabilities caps = new DesiredCapabilities();\n// caps.setCapability(InternetExplorerDriver.REQUIRE_WINDOW_FOCUS, true);\n// WebDriver driver = new InternetExplorerDriver(caps);\n\n\n }", "private void setWebdriver() throws Exception {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\tcurrentDir + fileSeparator + \"lib\" + fileSeparator + \"chromedriver.exe\");\n\t\tcapability = DesiredCapabilities.chrome();\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--disable-extensions\");\n\t\toptions.addArguments(\"disable-infobars\");\n\t\tcapability.setCapability(ChromeOptions.CAPABILITY, options);\n\t\tdriver = new ChromeDriver(capability);\n\t\tdriver.manage().deleteAllCookies();\n\t\t_eventFiringDriver = new EventFiringWebDriver(driver);\n\t\t_eventFiringDriver.get(getUrl());\n\t\t_eventFiringDriver.manage().window().maximize();\n\n\t}", "@Parameters(\"browser\")\n\t@BeforeClass\n\tpublic void setupDriver(String browser) throws MalformedURLException {\n\t\tDesiredCapabilities dc = null;\n\t\t\n\t\tif (browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"/phptravels/src/main/resources/chromedriver.exe\");\n\t\t\tdc = DesiredCapabilities.chrome();\n\t\t\tdc.setBrowserName(\"chrome\");\n\t\t\t\n\t\t} else if (browser.equalsIgnoreCase(\"firefox\")) {\n\t\t\tdc = DesiredCapabilities.firefox();\n\t\t\tdc.setBrowserName(\"firefox\");\n\t\t}\n\t\t\n\t\tdc.setPlatform(Platform.WIN8_1);\n\t\tdriver = new RemoteWebDriver(new URL(\"http://localhost:4444/wd/hub\"), dc);\n\t}", "private void showBrowserPanel() {\n dashboardPanelPlaceholder.setVisible(false);\n calendarPlaceholder.setVisible(false);\n browserPanelPlaceholder.setVisible(true);\n browserPanelPlaceholder.toFront();\n }", "public String getBrowserType(){\n\t\treturn browserType;\n\t}", "@BeforeClass\r\n\tpublic void browser() {\r\n\tdriver = new FirefoxDriver();\r\n\t}", "public void setWindow(GWindow w) {\r\n window = w;\r\n }", "@Parameters(\"browser\")\n\t \n @BeforeTest\n // Passing Browser parameter from TestNG xml\n \n public void beforeTest(String browser){\n\t if(browser.equalsIgnoreCase(\"firefox\")){\n\t driver = new FirefoxDriver();\n\t \n\t }// If browser is IE, then do this\n\t else if (browser.equalsIgnoreCase(\"ie\")){ \n\t // Here I am setting up the path for my IEDriver\n\t System.setProperty(\"webdriver.ie.driver\", \"E:\\\\IEDriverServer.exe\");\n\t driver = new InternetExplorerDriver();\n\t } \n\t // Doesn't the browser type, lauch the Website\n\t browserHelper.setUp(driver);\n\t }", "public void execute() {\n try {\n final DemoManagerWindow window = new DemoManagerWindow();\n window.setResizable(false);\n window.setDemoManager(this);\n window.setDemoProvider(this);\n window.setVisibleAndWait();\n } catch (final Throwable t) {\n throw new BrowserException(\"\", t);\n }\n }", "public void setExternalBrowser(boolean external) {\n externalBrowserCheckbox.setSelection(external);\n }", "public BrowserInfo getBrowserInfo() {\n return browserInfo;\n }", "public static String getChosenBrowser() {\n return CHOSEN_BROWSER;\n }", "@Parameters({\"browserName\"})\n\t@BeforeMethod\n\tpublic void openBrowser(String browserName) {\n\t\tString currentProjectPath = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(\"Current project path is = \" + currentProjectPath);\n\t\t\n\t\tString currentOSname = System.getProperty(\"os.name\");\n\t\tSystem.out.println(\"Current OS name is = \" + currentOSname);\n\t\t\n\t\tif(browserName.equalsIgnoreCase(\"chrome\")) {\n\t\t\t//Open Chrome\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", currentProjectPath + \"\\\\browserDriverEXE\\\\chromedriver.exe\"); \n\t\t\tdriver = new ChromeDriver();\n\t\t}\n\t\t\n\t\telse if(browserName.equalsIgnoreCase(\"firefox\")) {\n\t\t\t//Open FF\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", currentProjectPath + \"\\\\browserDriverEXE\\\\geckodriver.exe\"); \n\t\t\tdriver = new FirefoxDriver();\n\t\t}\n\t\t\n\t\telse {\n\t\t\t//Open IE\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", currentProjectPath + \"\\\\browserDriverEXE\\\\IEDriverServer.exe\"); \n\t\t\tdriver = new InternetExplorerDriver();\n\t\t}\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\t//refresh\n\t\t//driver.navigate().refresh();\n\t\t\n\t\t//driver.navigate().forward();\n\t\t\n\t\t//driver.navigate().back();\n\t\t\n\t\t//driver.manage().deleteAllCookies();\n\t\t\n\t\t//imp wait\n\t\t//driver.manage().timeouts().setScriptTimeout(10, TimeUnit.MINUTES);\n\t\t//driver.manage().timeouts().pageLoadTimeout(5, TimeUnit.SECONDS);\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "@Override\r\n public void run() {\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n String stringToken1 = null; \r\n try {\r\n stringToken1 = (\"<Navigate Home>::\" + getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.consoleTextArea.setText(stringToken1);\r\n //Put the current html address in the addressbar\r\n ax.addressBar.setText(ax.browser.getCurrentLocation());\r\n \r\n }", "@Before\n public synchronized static WebDriver openBrowser() {\n String browser = System.getProperty(\"BROWSER\");\n\n\n if (driver == null) {\n try {\n //Kiem tra BROWSER = null -> gan = chrome\n if (browser == null) {\n browser = System.getenv(\"BROWSER\");\n if (browser == null) {\n browser = \"chrome\";\n }\n }\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n break;\n case \"chrome_headless\":\n WebDriverManager.chromedriver().setup();\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"headless\");\n options.addArguments(\"window-size=1366x768\");\n driver = new ChromeDriver(options);\n break;\n default:\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n }\n } catch (UnreachableBrowserException e) {\n driver = new ChromeDriver();\n } catch (WebDriverException e) {\n driver = new ChromeDriver();\n } finally {\n Runtime.getRuntime().addShutdownHook(new Thread(new BrowserCleanup()));\n }\n driver.get(\"http://demo.guru99.com/v4/\");\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n log.info(\"----------- START BRWOSER -----------\");\n\n }\n return driver;\n }", "private Browser prepBrowser(final Browser prepBr) {\n if (agent.get() == null) {\r\n agent.set(UserAgents.stringUserAgent(BrowserName.Chrome));\r\n }\r\n prepBr.getHeaders().put(\"User-Agent\", agent.get());\r\n prepBr.getHeaders().put(\"Accept-Language\", \"en-AU,en;q=0.8\");\r\n prepBr.getHeaders().put(\"Accept\", \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\");\r\n prepBr.getHeaders().put(\"Accept-Charset\", null);\r\n prepBr.setCookie(MAINPAGE, \"language\", \"en_au\");\r\n prepBr.setReadTimeout(3 * 60 * 1000);\r\n prepBr.setConnectTimeout(3 * 60 * 1000);\r\n return prepBr;\r\n }", "public void setBrowserSize(int width, int height) throws FileSystemException {\n\t\tlogger.info(\"Re set browser size\");\n\t\tWebDriver wd = Connection.getDriver();\n\t\twd.manage().window().setSize(new Dimension(width, height));\n\t}", "private void setDriverPathForBrowser(String browserName) {\n \t\n \tif ( !binariesPath.exists() ) throw new IllegalStateException(\"No path at \" + binariesPath.getAbsolutePath() );\n \t\n switch (browserName.toLowerCase()) {\n case \"firefox\":\n {\n if (isMac())\n {\n System.setProperty(\"webdriver.gecko.driver\", new File(binariesPath,\"/MAC/geckodriver-v0.19.0-macos.tar.gz/geckodriver-v0.19.0-macos.tar\").getAbsolutePath());\n }\n else if (isLinux())\n {\n System.setProperty(\"webdriver.gecko.driver\", new File(binariesPath, \"/Ubuntu/geckodriver\").getAbsolutePath());\n }\n else\n {\n System.setProperty(\"webdriver.gecko.driver\", new File(binariesPath, \"/Windows/geckodriver.exe\").getAbsolutePath());\n }\n break;\n }\n case \"chrome\": {\n if (isMac()) {\n System.setProperty(\"webdriver.chrome.driver\", new File(binariesPath, \"/MAC/chromedriver\").getAbsolutePath());\n } else if (isLinux()) {\n System.setProperty(\"webdriver.chrome.driver\",new File(binariesPath, \"/Ubuntu/chromedriver\").getAbsolutePath());\n } else {\n System.setProperty(\"webdriver.chrome.driver\",new File(binariesPath,\"/Windows/chromedriver.exe\").getAbsolutePath());\n }\n break;\n }\n case \"ie\":\n System.setProperty(\"webdriver.ie.driver\", new File(binariesPath,\"/Windows/IEDriverServer.exe\").getAbsolutePath());\n }\n }", "private void setIEDriver() throws Exception {\n\t\tcapabilities = DesiredCapabilities.internetExplorer();\n\t\t// capabilities.setCapability(\"ignoreProtectedModeSettings\", true);\n\t\t// capabilities.setCapability(\"ignoreZoomSetting\", true);\n\t\t// capabilities.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION,\n\t\t// true);\n\t\tcapabilities.setJavascriptEnabled(true);\n\n\t\tInternetExplorerOptions ieOptions = new InternetExplorerOptions();\n\t\tieOptions.destructivelyEnsureCleanSession();\n\t\tieOptions.ignoreZoomSettings();\n\t\tieOptions.setCapability(\"ignoreProtectedModeSettings\", true);\n\t\tieOptions.merge(capabilities);\n\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", ieDriverLocation);\n\t\t\tmyDriver = new InternetExplorerDriver(ieOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultIEVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultIEVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" IE-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", ieDriverLocation);\n\t\t\tmyDriver = new InternetExplorerDriver(ieOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}", "public void SetHost(GUI host) {\n\t\tm_Host = host;\n\t}", "@Override\n\tpublic void setGui(LiveGui g) {\n\t\t\n\t}", "public static WebDriver startBrowser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver.exe\");\n\t\t\n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\t WebDriver driver = new ChromeDriver();\n\t\t \n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\tdriver.get(\"http://techfios.com/test/107/\");\n\t\treturn driver;\n\t}", "protected void configureBrowserWithSelenIde(String baseUrl, String proxyHost, String proxyPort) \n {\n Configuration.timeout = 10000;\n Configuration.baseUrl = baseUrl;\n Configuration.startMaximized = false;\n Configuration.browser = WEB_DRIVER_PROVIDER;\n Configuration.browserPosition = \"200x20\";\n Configuration.browserSize = \"1440x1024\";\n Configuration.reportsFolder = \"target/reports/\";\n Configuration.reportsUrl = \"file:///root/dhbwtest_selenide/target/reports/\";\n Configuration.proxyEnabled = (proxyHost != null && proxyPort != null);\n if (proxyHost != null && proxyPort != null)\n {\n Configuration.proxyHost = proxyHost;\n Configuration.proxyPort = Integer.parseInt(proxyPort);\n Configuration.fileDownload = FileDownloadMode.PROXY;\n }\n else\n {\n Configuration.fileDownload = FileDownloadMode.FOLDER;\n }\n addListener(new Highlighter());\n }" ]
[ "0.7676691", "0.71792895", "0.634559", "0.62207484", "0.6217566", "0.62086314", "0.6186711", "0.6168857", "0.60795903", "0.5975863", "0.5937617", "0.5923206", "0.5914601", "0.5853902", "0.58375823", "0.5835879", "0.5833385", "0.5806498", "0.58057064", "0.58029544", "0.57722515", "0.5725927", "0.5716003", "0.56541455", "0.56516206", "0.56500554", "0.5642218", "0.5623982", "0.5622545", "0.56171775", "0.56038135", "0.5597096", "0.55893266", "0.5564297", "0.55408937", "0.55280685", "0.5526705", "0.5503993", "0.54963243", "0.5481565", "0.5465456", "0.5449242", "0.54455256", "0.5440057", "0.5407424", "0.5404935", "0.5404333", "0.53825456", "0.5345034", "0.53417", "0.5341457", "0.5329943", "0.5328107", "0.5313723", "0.53059775", "0.53023916", "0.5301556", "0.5297854", "0.52972263", "0.5295225", "0.52948725", "0.5284885", "0.52842116", "0.528159", "0.5280458", "0.52787995", "0.5271586", "0.52600604", "0.520088", "0.5199176", "0.51944214", "0.5192445", "0.51900154", "0.5187248", "0.51818603", "0.51817596", "0.5179309", "0.5166621", "0.5164114", "0.51585567", "0.51512104", "0.51496494", "0.51482266", "0.51414025", "0.5128163", "0.51201534", "0.5117877", "0.51170844", "0.5113851", "0.51098037", "0.5100962", "0.5100844", "0.5098898", "0.50955135", "0.5083935", "0.5079877", "0.5065901", "0.50622463", "0.50599486", "0.50491124" ]
0.7013989
2
Appends and returns a new empty "browser" element
public au.gov.asic.types.BrowserIdentifierType addNewBrowser() { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.BrowserIdentifierType target = null; target = (au.gov.asic.types.BrowserIdentifierType)get_store().add_element_user(BROWSER$0); return target; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "public <T extends TechnologyModelObject> TechnologyModuleBrowserElement<T> createBrowserElement(T object, ProjectBrowser browser,\n\t\t\tBrowserElement parent);", "Element createElement();", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public void newElement() {\r\n }", "XomNode appendElement(Element element) throws XmlBuilderException;", "private static WebDriver newHtmlUnitDiver() {\n\t\tcapabilities = new DesiredCapabilities().htmlUnit();\n\t\tcapabilities.setBrowserName(\"HtmlUnit\");\n\t\tsetCommonCapabilities();\n\n//\t\treturn new HtmlUnitDriver(capabilities);\n\t\treturn new HtmlUnitDriver(true);\n\t}", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "HTMLElement createHTMLElement();", "@Override\n protected Node newNode() {\n return new WebXStyleElementImpl();\n }", "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "E createDefaultElement();", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "private void render(Element element) {\n main.clear();\n Widget content = createElementWidget(element);\n main.add(content);\n }", "protected abstract M createNewElement();", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "private NKE_BrowserWindow() {}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "@Override\n\tpublic EmbeddedBrowser get() {\n\t\tLOGGER.debug(\"Setting up a Browser\");\n\t\t// Retrieve the config values used\n\t\tImmutableSortedSet<String> filterAttributes =\n\t\t configuration.getCrawlRules().getPreCrawlConfig().getFilterAttributeNames();\n\t\tlong crawlWaitReload = configuration.getCrawlRules().getWaitAfterReloadUrl();\n\t\tlong crawlWaitEvent = configuration.getCrawlRules().getWaitAfterEvent();\n\n\t\t// Determine the requested browser type\n\t\tEmbeddedBrowser browser = null;\n\t\tEmbeddedBrowser.BrowserType browserType = configuration.getBrowserConfig().getBrowsertype();\n\t\ttry {\n\t\t\tswitch (browserType) {\n\t\t\t\tcase FIREFOX:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t newFireFoxBrowser(filterAttributes, crawlWaitReload, crawlWaitEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tcase INTERNET_EXPLORER:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t WebDriverBackedEmbeddedBrowser.withDriver(\n\t\t\t\t\t new InternetExplorerDriver(),\n\t\t\t\t\t filterAttributes, crawlWaitEvent, crawlWaitReload);\n\t\t\t\t\tbreak;\n\t\t\t\tcase CHROME:\n\t\t\t\t\tbrowser = newChromeBrowser(filterAttributes, crawlWaitReload, crawlWaitEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tcase REMOTE:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t WebDriverBackedEmbeddedBrowser.withRemoteDriver(configuration\n\t\t\t\t\t .getBrowserConfig().getRemoteHubUrl(), filterAttributes,\n\t\t\t\t\t crawlWaitEvent, crawlWaitReload);\n\t\t\t\t\tbreak;\n\t\t\t\tcase PHANTOMJS:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t newPhantomJSDriver(filterAttributes, crawlWaitReload, crawlWaitEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new IllegalStateException(\"Unrecognized browsertype \"\n\t\t\t\t\t + configuration.getBrowserConfig().getBrowsertype());\n\t\t\t}\n\t\t} catch (IllegalStateException e) {\n\t\t\tLOGGER.error(\"Crawling with {} failed: {}\", browserType.toString(), e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t\tplugins.runOnBrowserCreatedPlugins(browser);\n\t\treturn browser;\n\t}", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public BrowserPresenter create() {\n return new BrowserPresenter(context);\n }", "public void unsetBrowser()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BROWSER$0, 0);\n }\n }", "protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }", "@Override\n\tprotected Node newNode() {\n\t\treturn new SVGOMFETurbulenceElement();\n\t}", "public static native ExtElement append(Element parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public void newElement() {\n Location = null;\n Name = null;\n MyFont = FontList.FONT_LABEL;\n }", "public static HtmlBrowser.Factory getWWWBrowser () {\n return getBrowser( PROP_WWWBROWSER, false );\n }", "public WebElement() {}", "public org.openxmlformats.schemas.presentationml.x2006.main.CTShowInfoBrowse addNewBrowse()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTShowInfoBrowse target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTShowInfoBrowse)get_store().add_element_user(BROWSE$2);\n return target;\n }\n }", "public static HtmlBrowser.Factory getExternalWWWBrowser () {\n return getBrowser( PROP_EXTERNAL_WWWBROWSER, true );\n }", "public org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty addNewPresent()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty)get_store().add_element_user(PRESENT$0);\n return target;\n }\n }", "Form addElement(Element element);", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "Element() {\n\t}", "public static void setBrowser() {\n\t\t browser=\"Chrome\";\n\t }", "public WebDriver createLocalDriver(EBrowser browser) {\n\t\tthis._browser = browser;\n\t\tswitch (browser) {\n\t\t\tcase CHROME:createChromeDriver(); break;\n\t\t\tcase IE:createInternetExplorerDriver(); break;\n\t\t\tcase FIREFOX:createFireFoxDriver(); break;\n\t\t\tcase EDGE:createEdgeDriver(); break;\n\t\t\t// defaults to chrome\n\t\t\tdefault:createChromeDriver(); break;\n\t\t}\n\t\treturn _driver;\n\t}", "private WebDriver startWebDriver(String browser) {\n\t\tString msg = \">>> DRIVER : %s TestCase %s\";\n\t\tif (driver == null) {\n\t\t\t// driver is not started so we start it\n\t\t\tdriver = BrowserFactory.create(BROWSERS.valueOf(browser));\n\n\t\t\tif (driver != null)\n\t\t\t\tSystem.out.println(String.format(msg, driver.getWindowHandle(), this));\n\t\t}\n\t\treturn driver;\n\t}", "public static native ExtElement append(ExtElement parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\trawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "void setBrowser(String browser);", "private void createNewDriverInstance() {\n String browser = props.getProperty(\"browser\");\n if (browser.equals(\"firefox\")) {\n FirefoxProfile profile = new FirefoxProfile();\n profile.setPreference(\"intl.accept_languages\", language);\n driver = new FirefoxDriver();\n } else if (browser.equals(\"chrome\")) {\n ChromeOptions options = new ChromeOptions();\n options.setBinary(new File(chromeBinary));\n options.addArguments(\"--lang=\" + language);\n driver = new ChromeDriver(options);\n } else {\n System.out.println(\"can't read browser type\");\n }\n }", "public ChromeDriver build()\n\t{\n\t\ttry\n\t\t{\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\t\tURL url = ClassLoader.getSystemResource( metadata.getBinary() );\n\t\t\tSystem.setProperty( \"webdriver.chrome.driver\", new File( url.toURI() ).getAbsolutePath() );\n\t\t\tChromeOptions co = new ChromeOptions();\n\t\t\t//Map<String, Object> preferences = Maps.newHashMap();\n\t\t\t//preferences.put( \"browser.startup.homepage\", configuration.baseUrl().toString() );\n\t\t\t//preferences.put( \"browser.startup.page\", START_WITH_HOME_PAGE );\n\t\t\t//capabilities.setCapability( ChromeOptions.CAPABILITY, preferences );\n\t\t\tChromeDriver driver = new ChromeDriver( capabilities );\n\t\t\tdriver.get( configuration.baseUrl().toString() );\n\t\t\treturn driver;\n\t\t}\n\t\tcatch ( Exception e )\n\t\t{\n\t\t\tlogger.error( e.getMessage() );\n\t\t\tthrow new WebDriverException( e );\n\t\t}\n\t}", "protected WebDriver newDriver() {\n SupportedWebDriver supportedDriverType = Configuration.getDriverType();\n return webDriverFactory.newInstanceOf(supportedDriverType);\n }", "IJQueryBrowser createBrowser(Display display, final SwtBrowserCanvas canvas,\n final BrowserPage page) {\n Shell shell = SWT_AWT.new_Shell(display, canvas);\n IJQueryBrowser browser = SWTJQueryBrowser\n .createSWTBrowser(shell, SWT.NONE);\n\n /* Ideally the size of browser and shell gets set via a resize listener.\n * This does not work when the tool window is re-openend as no size\n * change event is fired. The if clause below sets the size for this case */\n if (canvas.getHeight() > 0 && canvas.getWidth() > 0) {\n shell.setSize(canvas.getWidth(), canvas.getHeight());\n browser.setSize(canvas.getWidth(), canvas.getHeight());\n }\n\n final URL url = BrowserUtils.getResourceURL(page.getWebpage());\n \n assert url != null;\n \n browser.open(url.toString(), 5000);\n page.createBrowserFunctions(browser);\n browserManager.setBrowser(page, browser);\n browser.runOnDisposal(new Runnable() {\n @Override\n public void run() {\n browserManager.removeBrowser(page);\n }\n });\n \n return browser;\n }", "void addBrowsing(final BrowserConfiguration browser, boolean after);", "private static org.netbeans.beaninfo.editors.HtmlBrowser.FactoryEditor createHtmlBrowserFactoryEditor() {\n return new org.netbeans.beaninfo.editors.HtmlBrowser.FactoryEditor(){\n public void setValue(Object value) {\n setWWWBrowser((HtmlBrowser.Factory)value);\n }\n\n public Object getValue() {\n return getWWWBrowser();\n }\n };\n }", "BrowserStack getBrowserStackInst();", "public static native Element overwrite(Element oldElem, Element newElem)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newElem);\r\n\t}-*/;", "private Node append(E element) {\n \treturn new Node(sentinel.pred, element);\n }", "public DataAdhocBrowser cloneAsAdhocBrowser(IDataAccessor parent)\n\t{\n\t if (parent == null)\n\t {\n\t parent = getAccessor();\n\t }\n\t else\n\t {\n\t // plausibility check\n\t if (!parent.getApplication().equals(getAccessor().getApplication()))\n\t {\n\t throw new RuntimeException(\"Illegal accessor with different application definition\");\n\t }\n\t }\n\t \n\t IAdhocBrowserDefinition adhocBrowserDef = parent.getApplication().createAdhocBrowserDefinition( this.definition);\n\t DataBrowser adhocBrowser = new DataAdhocBrowser((DataAccessor) parent, adhocBrowserDef);\n\t adhocBrowser.filldirection = this.filldirection;\n\t adhocBrowser.relationSet = this.relationSet;\n\t adhocBrowser.relationGraph = this.relationGraph;\n\t adhocBrowser.lastSearchConstraints = this.lastSearchConstraints;\n\t adhocBrowser.lastSortStrategy = this.lastSortStrategy;\n\t \n\t return (DataAdhocBrowser) adhocBrowser;\n\t}", "public PGraphics push() {\n\t\tPGraphics pg = papplet.createGraphics(papplet.width, papplet.height);\n\t\tpg.clear();\n\t\treturn push(pg);\n\t}", "private void appendDevice(final IDevice device) {\n if (-1 == getDeviceIndex(device)) {\n TestDevice td = new TestDevice(device);\n mDevices.add(td);\n }\n }", "public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return new BasicUpdate();\n }", "private JFrame buildWindow() {\n frame = WindowFactory.mainFrame()\n .title(\"VISNode\")\n .menu(VISNode.get().getActions().buildMenuBar())\n .size(1024, 768)\n .maximized()\n .interceptClose(() -> {\n new UserPreferencesPersistor().persist(model.getUserPreferences());\n int result = JOptionPane.showConfirmDialog(panel, Messages.get().singleMessage(\"app.closing\"), null, JOptionPane.YES_NO_OPTION);\n return result == JOptionPane.YES_OPTION;\n })\n .create((container) -> {\n panel = new MainPanel(model);\n container.add(panel);\n });\n return frame;\n }", "public void addExisting(SelectableGraphElement element)\n {\n elements.add(element);\n }", "void append(E element);", "private Browser prepBrowser(final Browser prepBr) {\n if (agent.get() == null) {\r\n agent.set(UserAgents.stringUserAgent(BrowserName.Chrome));\r\n }\r\n prepBr.getHeaders().put(\"User-Agent\", agent.get());\r\n prepBr.getHeaders().put(\"Accept-Language\", \"en-AU,en;q=0.8\");\r\n prepBr.getHeaders().put(\"Accept\", \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\");\r\n prepBr.getHeaders().put(\"Accept-Charset\", null);\r\n prepBr.setCookie(MAINPAGE, \"language\", \"en_au\");\r\n prepBr.setReadTimeout(3 * 60 * 1000);\r\n prepBr.setConnectTimeout(3 * 60 * 1000);\r\n return prepBr;\r\n }", "public static native Element createDom(DomConfig config) /*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.createDom(configJS);\r\n\t}-*/;", "protected Element createDocument() {\r\n // create the dom tree\r\n DocumentBuilder builder = getDocumentBuilder();\r\n Document doc = builder.newDocument();\r\n Element rootElement = doc.createElement(TESTSUITES);\r\n doc.appendChild(rootElement);\r\n\r\n generatedId = 0;\r\n\r\n // get all files and add them to the document\r\n File[] files = getFiles();\r\n for (int i = 0; i < files.length; i++) {\r\n File file = files[i];\r\n try {\r\n if(file.length()>0) {\r\n Document testsuiteDoc\r\n = builder.parse(\"file:///\" + file.getAbsolutePath());\r\n Element elem = testsuiteDoc.getDocumentElement();\r\n // make sure that this is REALLY a testsuite.\r\n if (TESTSUITE.equals(elem.getNodeName())) {\r\n addTestSuite(rootElement, elem);\r\n generatedId++;\r\n } else {\r\n }\r\n } else {\r\n }\r\n } catch (SAXException e) {\r\n // a testcase might have failed and write a zero-length document,\r\n // It has already failed, but hey.... mm. just put a warning\r\n } catch (IOException e) {\r\n }\r\n }\r\n return rootElement;\r\n }", "void fillInnerParts() {\n browserPanel = new BrowserPanel();\n\t\tTemplateClass.instrum(\"LineNumber: \",\"129\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\", \"VariableName: \",\"browserPanel\", \"VariableName: \",\"BrowserPanel\");\n browserPlaceholder.getChildren().add(browserPanel.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"130\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n\n personListPanel = new PersonListPanel(logic.getFilteredPersonList());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"132\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n personListPanelPlaceholder.getChildren().add(personListPanel.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"133\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n\n ResultDisplay resultDisplay = new ResultDisplay();\n\t\tTemplateClass.instrum(\"LineNumber: \",\"135\", \"Type: \",\"org.eclipse.jdt.core.dom.VariableDeclarationStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\", \"VariableName: \",\"ResultDisplay\", \"VariableName: \",\"resultDisplay\", \"VariableName: \",\"ResultDisplay\");\n resultDisplayPlaceholder.getChildren().add(resultDisplay.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"136\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n\n StatusBarFooter statusBarFooter = new StatusBarFooter(prefs.getAddressBookFilePath());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"138\", \"Type: \",\"org.eclipse.jdt.core.dom.VariableDeclarationStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n statusbarPlaceholder.getChildren().add(statusBarFooter.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"139\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n\n CommandBox commandBox = new CommandBox(logic);\n\t\tTemplateClass.instrum(\"LineNumber: \",\"141\", \"Type: \",\"org.eclipse.jdt.core.dom.VariableDeclarationStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\", \"VariableName: \",\"CommandBox\", \"VariableName: \",\"commandBox\", \"VariableName: \",\"CommandBox\", \"VariableName: \",\"logic\");\n commandBoxPlaceholder.getChildren().add(commandBox.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"142\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n }", "public ElementsBag add(HTMLElement element) {\n iterable.elements.push(element);\n return that();\n }", "public PGraphics push(int w, int h) {\n\t\tPGraphics pg = papplet.createGraphics(w, h);\n\t\tpg.clear();\n\t\treturn push(pg);\n\t}", "private Composite createDeviceControls(final Device device) {\n\t\tif (device == null || device.getDeviceType() == null) {\n\t\t\treturn top;\n\t\t}\n\n\t\ttop.setLayout(new GridLayout());\n\n\t\tComposite mainPartControl = new DevicePanelDecorator(device).getPanel(\n\t\t\t\ttop, SWT.NONE, device);\n\t\tif (mainPartControl == null) {\n\t\t\tmainPartControl = new Composite(top, SWT.NONE);\n\t\t\tViewUtils.createLabelPane(mainPartControl, \"No control defined\");\n\t\t} else {\n\t\t\tfinal GridData centering = new GridData(SWT.FILL, SWT.FILL, true,\n\t\t\t\t\ttrue);\n\t\t\tmainPartControl.setLayoutData(centering);\n\n\t\t\t((DeviceUI) mainPartControl).updateControls(device);\n\t\t\tmainPartControl.getShell().layout(false, true);\n\t\t\t((DeviceUI) mainPartControl).finishLayout();\n\t\t}\n\n\t\treturn mainPartControl;\n\t}", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "private void createTopPanel(){\n computerPaquetView = new ViewDeckVisible(true);\n this.getContentPane().add(computerPaquetView);\n }", "Div createDiv();", "void browserMethod();", "static ComponentBuilder getBuilder(Instance instance, Heap heap) {\n if (DetailsUtils.isSubclassOf(instance, JLabel.class.getName())) {\n return new JLabelBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JPanel.class.getName())) {\n return new JPanelBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JToolBar.class.getName())) {\n return new JToolBarBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, Box.Filler.class.getName())) {\n return new BoxFillerBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, Box.class.getName())) {\n return new BoxBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JScrollBar.class.getName())) {\n return new JScrollBarBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JToolBar.Separator.class.getName())) {\n return new JToolBarSeparatorBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JPopupMenu.Separator.class.getName())) {\n return new JPopupMenuSeparatorBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JSeparator.class.getName())) {\n return new JSeparatorBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JProgressBar.class.getName())) {\n return new JProgressBarBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JSlider.class.getName())) {\n return new JSliderBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JSpinner.class.getName())) {\n return new JSpinnerBuilder(instance, heap);\n } else if (DetailsUtils.isSubclassOf(instance, JPopupMenu.class.getName())) {\n return new JPopupMenuBuilder(instance, heap);\n }\n return null;\n }", "@Override\r\n\tpublic ElectricityElement createElement() {\r\n\t\treturn new DefaultElectricityElement(\r\n\t\t\t\tgetTemplateName(), \r\n\t\t\t\tgetName(), \r\n\t\t\t\tgetOrigin(),\r\n\t\t\t\tgetDestination(),\r\n\t\t\t\tgetLifecycleModel().createLifecycleModel(), \r\n\t\t\t\tgetMaxElectricityProduction(), \r\n\t\t\t\tgetInitialElectricityProduction(), \r\n\t\t\t\tgetPetroleumIntensityOfElectricityProduction(),\r\n\t\t\t\tgetWaterIntensityOfElectricityProduction(), \r\n\t\t\t\tgetVariableOperationsCostOfElectricityProduction(),\r\n\t\t\t\tgetDistributionEfficiency(), \r\n\t\t\t\tgetMaxElectricityInput(), \r\n\t\t\t\tgetInitialElectricityInput(),\r\n\t\t\t\tgetVariableOperationsCostOfElectricityDistribution()\r\n\t\t\t);\r\n\t}", "public HTMLScreenFragment() {}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "public void initiateBrowser(String browser) {\n\t\tString os = System.getProperty(\"os.name\").toLowerCase();\n\t\tString current_dir = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(os);\n\t\tSystem.out.println(current_dir);\n\t\tswitch (browser) {\n\t\tcase \"ie\":\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", current_dir + \"/drivers/IEDriverServer.exe\");\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t\tbreak;\n\t\tcase \"chrome\":\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\tif (os.contains(\"linux\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/linuxdrivers/chromedriver\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\n\t\t\t\toptions.setBinary(\"/usr/bin/google-chrome\");\n\t\t\t\toptions.addArguments(\"--headless\");\n\t\t\t} else if (os.contains(\"windows\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/chromedriver.exe\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\t\t\t}\n\t\t\toptions.addArguments(\"test-type\");\n\t\t\toptions.addArguments(\"disable-popup-blocking\");\n\t\t\tdriver = new ChromeDriver(options);\n\n\t\t\tdriver.manage().window().maximize();\n\t\t\tbreak;\n\t\tcase \"firefox\":\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tbreak;\n\t\t}\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t}", "protected void buildEmptyView() {\n\n\t\t// build panel\n\t\tgContent.removeAll();\n\n\t\t// add helpfile\n\t\tgContent.add(new HelpViewer(\"troop.pages\"));\n\n\t\t// build it\n\t\tgContent.invalidate();\n\t\tgContent.revalidate();\n\t}", "private JPanel createCanvas() {\n return new JPanel() {\n\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n element.drawMe((Graphics2D) g);\n }\n\n };\n }", "private void createDOMTree(){\n\t\t\tElement rootEle = dom.createElement(\"html\");\r\n\t\t\tdom.appendChild(rootEle);\r\n\t\t\t\r\n\t\t\t//\t\t\tcreates <head> and <title> tag\r\n\t\t\tElement headEle = dom.createElement(\"head\");\r\n\t\t\tElement titleEle = dom.createElement(\"title\");\r\n\t\t\t\r\n\t\t\t//\t\t\tset value to <title> tag\r\n\t\t\tText kuerzelText = dom.createTextNode(\"Auswertung\");\r\n\t\t\ttitleEle.appendChild(kuerzelText);\r\n\t\t\theadEle.appendChild(titleEle);\r\n\t\t\t\r\n\t\t\tElement linkEle = dom.createElement(\"link\");\r\n\t\t\tlinkEle.setAttribute(\"rel\", \"stylesheet\");\r\n\t\t\tlinkEle.setAttribute(\"type\", \"text/css\");\r\n\t\t\tlinkEle.setAttribute(\"href\", \"./format.css\");\r\n\t\t\theadEle.appendChild(linkEle);\r\n\t\t\t\r\n\t\t\trootEle.appendChild(headEle);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tElement bodyEle = dom.createElement(\"body\");\r\n\t\t\tElement divEle = dom.createElement(\"div\");\r\n\t\t\tdivEle.setAttribute(\"id\", \"cont\");\r\n\t\t\t\r\n\t\t\tVector<String> tmp = myData.get(0);\r\n\t\t\tElement h2Ele = dom.createElement(\"h2\");\r\n\t\t\tString h1Str = \"\";\r\n\t\t\tfor(Iterator i = tmp.iterator(); i.hasNext(); )\r\n\t\t\t{\r\n\t\t\t\th1Str = h1Str + (String)i.next() + \" \";\r\n\t\t\t}\r\n\t\t\tText aText = dom.createTextNode(h1Str);\r\n\t\t\th2Ele.appendChild(aText);\r\n\t\t\tdivEle.appendChild(h2Ele);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tElement tableEle = dom.createElement(\"table\");\r\n//\t\t\ttableEle.setAttribute(\"border\", \"1\");\r\n\t\t\t\r\n\t\t\ttmp = myData.get(0);\r\n\t\t\tElement trHeadEle = createTrHeadElement(tmp);\r\n\t\t\ttableEle.appendChild(trHeadEle);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tIterator it = myData.iterator();\r\n\t\t\twhile(it.hasNext()) {\r\n\t\t\t\ttmp = (Vector<String>)it.next();\r\n\t\t\t\tElement trEle = createTrElement(tmp);\r\n\t\t\t\ttableEle.appendChild(trEle);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdivEle.appendChild(tableEle);\r\n\t\t\tbodyEle.appendChild(divEle);\r\n\t\t\trootEle.appendChild(bodyEle);\r\n\t\t\t\r\n\t\t}", "public void browser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/Driver/chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().window().maximize();// maximize the window\n\t\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\n\n\t}", "public Element createEmptyElement(EmptyTask task) {\n\t\tElement empty = this.document.createElement(\"empty\");\n\t\t\n//\t\tBPELUtil.setStandardAttributes(empty, task);\n\t\t\n//\t\treturn createScopeForAttachedHandlers(empty, task);\n\t\treturn null;\n\t\t\n\t}", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "public static void addNodeToDOM(WebElement element)\n\t{\n\t\tString sResult = addNodeToDOM(element, sTempUniqueNode);\n\t\tif (!sResult.equals(\"\"))\n\t\t{\n\t\t\tString sError = \"Javascript execution failed with following message: \" + sResult;\n\t\t\tLogs.logError(new JavaScriptException(sError));\n\t\t}\n\t}", "public LibraryElement cloneElement();", "public IPrivateTestCompView.IContextElement createAndAddContextElement() {\r\n return (IPrivateTestCompView.IContextElement)createAndAddElement();\r\n }", "public static WebDriver startBrowser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver.exe\");\n\t\t\n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\t WebDriver driver = new ChromeDriver();\n\t\t \n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\tdriver.get(\"http://techfios.com/test/107/\");\n\t\treturn driver;\n\t}", "public Browser getBrowser() {\n return browser;\n }", "public void addDefaultElements() {\n addAllCustomElements();\n }", "public Element generateElement(Document dom);", "private static MobileElement w(WebElement element) {\n return new MobileElement((RemoteWebElement) element, driver);\n }", "Browser create(ConnectionFactory connectionFactory) {\n return new BrowserImpl(connectionFactory);\n }", "public abstract void newGuiElements(long ms, int n);", "private static WebDriver getDriver(browsers browser) {\n\t\t\t\tLOG.log(Level.CONFIG, \"Requested driver: \" + browser);\n\t\t// 1. WebDriver instance is not created yet\n\t\tif (driver == null) {\n\t\t\tLOG.log(Level.CONFIG, \"No previous driver found\");\n\t\t\tdriver = newWebDriver( browser);\n\t\t\treturn driver;\n\t\t}\n\t\ttry {\n\t\t\tdriver.getCurrentUrl();//touch with stick\n\t\t} catch (Throwable t) {\n\t\t\tt.printStackTrace();\n\t\t\tnewWebDriver( browser);\n\t\t\treturn driver;\n\t\t}\n\t\treturn driver;\n\t}", "protected QueueBrowser getQueueBrowser(String name, String ms)\n throws JMSException {\n Queue q = qSession.createQueue(name);\n if (ms != null)\n return qSession.createBrowser(q, ms);\n else\n return qSession.createBrowser(q);\n }", "public View create(Element elem) {\n return null;\n }", "private Component buildMainPanel() {\r\n \tDPanel mainPanel = new DPanel();\r\n \tJLabel backGroundLabel = new JLabel(ImageUtil.getImageIcon(\"happycow.jpg\"));\r\n \tmainPanel.add(backGroundLabel);\r\n \tsetCurrentContentPane(mainPanel);\r\n \thome = mainPanel;\r\n return home;\r\n }", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "@Override\n public Element createDomImpl(Renderable element) {\n InputElement radioInputElement =\n Document.get().createRadioInputElement(\"xx\");\n radioInputElement.setClassName(CheckConstants.css.radio());\n radioInputElement.setTabIndex(0);\n return radioInputElement;\n }", "private HTMLElement generateHTMLElement() {\n \t\t// this is the outermost element, so it has no indent\n \t\tint indentLevel = 0;\n \t\tHTMLElement html = new FormattedHTMLElement(\n \t\t\t\tIIntroHTMLConstants.ELEMENT_HTML, indentLevel, true);\n \t\tHTMLElement head = generateHeadElement(indentLevel + 1);\n \t\tHTMLElement body = generateBodyElement(indentLevel + 1);\n \t\thtml.addContent(head);\n \t\thtml.addContent(body);\n \t\treturn html;\n \t}", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "public static WebDriver getDriver(String browser)\n {\n return createInstance(browser);\n }", "public ComputerBuilder() {\n this.computer = new Computer();\n }" ]
[ "0.6065335", "0.5744554", "0.5639845", "0.56354195", "0.5581692", "0.5538686", "0.54118335", "0.54099643", "0.54091626", "0.5399628", "0.53834575", "0.5381981", "0.5356825", "0.52648944", "0.5192104", "0.51597005", "0.5149352", "0.5148551", "0.5120857", "0.5119577", "0.5103593", "0.5100782", "0.50940984", "0.50107116", "0.5003762", "0.499581", "0.49883315", "0.49647155", "0.49346066", "0.4917077", "0.49095133", "0.49036396", "0.48825708", "0.48471805", "0.48414505", "0.4810524", "0.480036", "0.479609", "0.47646973", "0.47574404", "0.47491202", "0.47446328", "0.47443992", "0.4743867", "0.47370672", "0.47362125", "0.47356915", "0.47335234", "0.47320083", "0.4722779", "0.47161", "0.47140732", "0.47098443", "0.47063893", "0.46967828", "0.46930104", "0.46873805", "0.46816808", "0.46798494", "0.46784428", "0.46758845", "0.467508", "0.4674389", "0.46714312", "0.46633202", "0.4661062", "0.4659711", "0.46477538", "0.46453238", "0.46442702", "0.46439406", "0.46359405", "0.46308088", "0.4628841", "0.46205252", "0.46203306", "0.46166065", "0.46121114", "0.4610421", "0.4604449", "0.46031767", "0.45988482", "0.45983443", "0.4598242", "0.45928165", "0.45875522", "0.45856422", "0.45851603", "0.45827517", "0.458153", "0.45777026", "0.45760253", "0.45739818", "0.45710683", "0.45693666", "0.4563294", "0.45625177", "0.45491704", "0.4536484", "0.45364782" ]
0.580402
1
Unsets the "browser" element
public void unsetBrowser() { synchronized (monitor()) { check_orphaned(); get_store().remove_element(BROWSER$0, 0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void unsetBrowse()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BROWSE$2, 0);\n }\n }", "public void clear()\n\t{\n\t if (logger.isTraceEnabled())\n\t logger.trace(\"clear() called for browser \" + this);\n\n\t // clear all internal members\n\t clearInternal();\n\t \n\t // and increment change counter\n\t incrementChangeCounter();\n\t}", "public void unsetEmbl()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(EMBL$10, 0);\r\n }\r\n }", "public void resetUI() {\r\n\t\tframe.resetUI();\r\n\t}", "@Override\n public void deselectGolem() {\n }", "public void reset() {\n this.displayHasContent = false;\n this.obscured = false;\n this.syswin = false;\n this.preferredRefreshRate = 0.0f;\n this.preferredModeId = 0;\n }", "public void unsetGi()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GI$22, 0);\r\n }\r\n }", "public void unsetGiim()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GIIM$6, 0);\r\n }\r\n }", "void unsetControlType();", "public void clear()\n {\n for (SelectableGraphElement element : elements) {\n element.setSelected(false);\n }\n elements.clear();\n }", "public void clear() {\r\n\t\tthis.document = null;\r\n\t\tthis.elements.clear();\r\n\t}", "void unsetControlPosition();", "public void unsetKiosk()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(KIOSK$4, 0);\n }\n }", "public void clearBrowsingHistory()\n {\n\t this.browseHistory = null;\n }", "void unsetWheel();", "void unsetTarget();", "@After\n public void closeBrowser(){\n\n browserManager.setcloseBrowser();// calling browser method to close the browser\n }", "public void clear() {\n\t\tdesktops.clear();\n\t}", "public void unsetGenbank()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GENBANK$8, 0);\r\n }\r\n }", "void removeFocus();", "public void deselectFocusedNode(){\r\n \tfocusOut();\r\n }", "public void closeBrowser(){\n\t driver.close();\n\t \t }", "public Builder clearScreenMode() {\n \n screenMode_ = 0;\n onChanged();\n return this;\n }", "public void resetGame() {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tboard[i][j] = 0;\n\t\t\t\tgetChildren().remove(renders[i][j]);\n\t\t\t\trenders[i][j] = null;\n\t\t\t}\n\t\t}\n\t}", "public void supprimerHacker() {\n if (hacker != null) {\n g.getChildren().remove(hacker);\n\n }\n }", "public void clear(WebElement element) {\n\t\telement.clear();\n\t}", "public void clearSelection() {\n getElement().clearSelection();\n }", "public void unsetSwCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(SWCELL$20, 0);\n }\n }", "public void unsetFrame()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(FRAME$24);\n }\n }", "public void unset(){\n\t\tcurrentInst = -1;\n\t}", "void unsetSystem();", "public void unsetPenClr()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(PENCLR$12, 0);\n }\n }", "@Override\n\tpublic void unsetVisible() {\n\t\tviewer.setVisible(false);\n\t\tscrollbar.setVisible(false);\n\t}", "@FXML\n void removeFreeze() {\n generalTextArea.clear();\n clearEverything();\n enableRemove();\n }", "public void deselect();", "public void removeAllInternalFrames() {\n ((JDesktopPane)peer).removeAll(); \n //--ARM-- public void removeAllInternalFrames()\n }", "public void cleanRemove(Element element){\n\t\tfor(Element el : element.getElements()){\n\t\t\tnifty.removeElement(nifty.getScreen(\"hud\"),el);\n\t\t}\n\t\tnifty.removeElement(nifty.getScreen(\"hud\"), element);\n\t\tnifty.executeEndOfFrameElementActions();\n\t}", "public void deselectPanel() {\n\t\tthis.displayNumberBlock.setBackground(dispNormal);\n\t}", "void unsetPowerBox();", "private void resetApp() {\n\t\tthis.panelTags.setVisible(false);\n\t\tthis.panelMenu.setVisible(true);\n\t\tthis.model.clear();\n\t\tthis.btnClearAll.doClick(0);\n\t\t// textDestination jest czyszczony osobno, po JOptionPane\n\t\t// this.textDestination.setText(null);\n\t\tthis.btnDeleteAll.setEnabled(false);\n\t\tthis.btnDelete.setEnabled(false);\n\t}", "public void deActivateButton(){\n\t\tMainActivity.resetXY();\r\n\t}", "public void clearMusicPanel(){\n\t\tmusicContents.removeAll();\n\t}", "Form removeDefaultRendererForElementClass(Class<? extends Element> clazz);", "public void unloadDocument() {\n\t\tfor (int i=0; i<jtp.getTabCount()-1; i++) {\n\t\t\t((XCDisplay)jtp.getComponentAt(i)).unloadDocument();\n\t\t}\n\t\t//jtp.removeChangeListener(jtp.getChangeListeners()[0]);\n\t\t//jtp.removeAll();\n\t}", "public void unsetGibbmt()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GIBBMT$4, 0);\r\n }\r\n }", "public void hideFightSetup() {\r\n\t\tremove(content);\r\n\t\tcontent.revalidate();\r\n\t\tcontent.repaint();\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public void clearScreen();", "public void clearVersionHistoryPanel()\n\t{\n\t\t// Clear text area\n\t\ttextAreaVersions.setText(\"\");\n\t}", "void resetSelectedDevice() {\n selectedDevice = null;\n userSelectedDevice = null;\n }", "public void unsetVersion()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(VERSION$6, 0);\r\n }\r\n }", "public void unsetGeneral()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GENERAL$20, 0);\r\n }\r\n }", "public void closeBrowser(){\n driver.quit();\n }", "public void uncheck () {\n // declaring local variables\n WebElement webElement;\n\n if (isStubbed()) {\n log(\"=== This checkbox's locator is currently stubbed out. ===\");\n } else {\n // getting the web element of the check box with the default timeout\n // and then check its status\n if (this.isChecked()) {\n // need to give a second for the browser to catch up with the web driver\n //sleep(1, TimeUnit.SECONDS);\n\n // Directly get the web element since we know that it exists and is displayed\n webElement = getWebElement ();\n webElement.click();\n\n\n\n }\n }\n }", "public void remElementName(){\n ((MenuDMO) core).remElementName();\n }", "void clear() {\n\t\tdispose();\n\t}", "void unsetState();", "@AfterMethod\n\tpublic void quitBrowser(){\n\t\tbrowser.closeBrowser(driver);\n\t}", "void unsetWagerMinimum();", "public void hide(){\n developmentGroup.setVisible(false);\n }", "@Override\n protected void clear(JFrame frame){\n frame.getContentPane().removeAll();\n }", "public void resetPlugin(){\n\t\tpriorj.getTechniques().clear();\n\t}", "public void resetPanels()\r\n {\n pnlComputerHand.removeAll();\r\n pnlHumanHand.removeAll();\r\n pnlPlayArea.removeAll(); \r\n }", "public void setBrowser(au.gov.asic.types.BrowserIdentifierType browser)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.BrowserIdentifierType target = null;\n target = (au.gov.asic.types.BrowserIdentifierType)get_store().find_element_user(BROWSER$0, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.BrowserIdentifierType)get_store().add_element_user(BROWSER$0);\n }\n target.set(browser);\n }\n }", "private void reset() {\n darkSquare.reset();\n lightSquare.reset();\n background.reset();\n border.reset();\n showCoordinates.setSelected(resetCoordinates);\n pieceFont.reset();\n }", "void unsetValue();", "void unsetValue();", "public static void clearSkin() {\r\n\t\tMain.skinIsIowaState = false;\r\n\t\tMain.skinIsIowa = false;\r\n\t\tMain.skinIsNorthernIowa = false;\r\n\t\t\r\n\t\tGameOptions.iowaState.setState(false);\r\n\t\tGameOptions.iowa.setState(false);\r\n\t\tGameOptions.northernIowa.setState(false);\r\n\t}", "public void clearFilmPanel(){\n\t\tfilmContents.removeAll();\n\t}", "public static void clear() {\n\t\trb = null;\n\t}", "protected void clearElement(final ELEMENT element)\r\n {\r\n //Does nothing by default\r\n }", "void unsetPluginstate();", "void unsetBox();", "@AfterTest\n\tpublic void closeBrowser() {\n\t\tdriver.close();\n\t}", "public static void clear(WebElement element) {\r\n\t\ttry {\r\n\t\t\telement.clear();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"WebElement not found \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void browserClose() {\r\n\t// Make sure we shut everything down to avoid memory leaks\r\n\tdriver.close();\r\n\tdriver.quit();\r\n\tdriver = null;\r\n}", "public void clear()\r\n {\r\n throw new RuntimeException(\"Cannot modify the display data.\");\r\n }", "@Override\n\tpublic void close() {\n\t\tframe = null;\n\t\tclassic = null;\n\t\trace = null;\n\t\tbuild = null;\n\t\tbt_classic = null;\n\t\tbt_race = null;\n\t\tbt_build = null;\n\t\tGameView.VIEW.removeDialog();\n\t}", "public void unsetReset() {\n\t\twasReset=false;\n\t}", "public void clear(int gnum);", "public void clearLeadUI() {\n\t\tfor (JLabel item : leadList) {\n\t\t\testimationGame.getContentPane().remove(item);\n\t\t}\n\t\tleadList.clear();\n\t}", "public void unsetVersion()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(VERSION$4, 0);\n }\n }", "public Builder clearRegistry() {\n if (registryBuilder_ == null) {\n registry_ = null;\n onChanged();\n } else {\n registry_ = null;\n registryBuilder_ = null;\n }\n\n return this;\n }", "public void clear(){\r\n canvas.getGraphicsContext2D().clearRect(canvas.getWidth(),canvas.getHeight(),1,1);\r\n pane.getChildren().clear();\r\n }", "void unsetRef();", "void unsetKeyWheel();", "public static void clearViewPort() {\n\t\tSensor.disposeAllSensors();\n\t\tGUIReferences.setConstructEnabled(true);\n\t\tTurnController.clearAll();\n\t\tGUIReferences.updateStatusBar();\n\t}", "void unsetSites();", "@Override\n\tpublic void clear() {\n\n\t\tDisplay.findDisplay(uiThread).syncExec(new Runnable() {\n\n\t\t\tpublic void run() {\n\t\t\t\tclearInputs();\n\t\t\t\tsetDefaultValues();\n\t\t\t}\n\t\t});\n\n\t}", "void unsetEvent();", "public void quitBrowser(){\n\t\t driver.quit();\n\t }", "public void reset(){\r\n\t\tdialogToDisplay=0;\r\n\t\tqueuedDialog=0;\r\n\t\toptionSelection=null;\r\n\t\tdone=false;\r\n\t}", "public void clearComponentSelection(){\r\n ComponentSelectionTree.clearSelection();\r\n }", "public Builder clearUserAgentVersion() {\n if (userAgentVersionTypeCase_ == 7) {\n userAgentVersionTypeCase_ = 0;\n userAgentVersionType_ = null;\n onChanged();\n }\n return this;\n }", "private static void closeBrowser() {\n System.out.println(\"Browser closed\");}", "public void reset() {\n onoff.reset();\n itiefe.reset();\n itiefe.setEnabled(false);\n }", "public void resetGraphicsWindowHeaderAndMeasurement() {\r\n\t\tif (Thread.currentThread().getId() == DataExplorer.application.getThreadId()) {\r\n\t\t\tthis.histoGraphicsTabItem.clearHeaderAndComment();\r\n\t\t\tthis.histoGraphicsTabItem.getGraphicsComposite().setModeState(HistoGraphicsMode.RESET);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tGDE.display.asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tDataExplorer.this.histoGraphicsTabItem.clearHeaderAndComment();\r\n\t\t\t\t\tDataExplorer.this.histoGraphicsTabItem.getGraphicsComposite().setModeState(HistoGraphicsMode.RESET);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}", "void clearCurrent();", "public void clearSelection() {\n buttonGroup.clearSelection();\n }", "void unsetQuick();", "void unsetBodySite();" ]
[ "0.70583683", "0.6595277", "0.6325062", "0.62126404", "0.61059165", "0.60283613", "0.59311104", "0.5924987", "0.5902227", "0.5875625", "0.58339626", "0.5803439", "0.58015305", "0.5784094", "0.5773937", "0.57647324", "0.57587004", "0.57540464", "0.57483256", "0.57386374", "0.57382375", "0.5733569", "0.572397", "0.5716282", "0.5713558", "0.5687695", "0.5684452", "0.56833565", "0.5681383", "0.5677197", "0.56702906", "0.5665793", "0.5662146", "0.56563854", "0.5620812", "0.56200904", "0.56181175", "0.5618082", "0.5617143", "0.56167644", "0.56157047", "0.56151116", "0.5614575", "0.5601325", "0.5597097", "0.55959225", "0.5591977", "0.5586488", "0.55797374", "0.557486", "0.557072", "0.5567741", "0.5561778", "0.55606645", "0.5557691", "0.5556221", "0.55522996", "0.55522716", "0.5548674", "0.5540638", "0.55391717", "0.5539007", "0.55306613", "0.55194193", "0.55183214", "0.55183214", "0.5517518", "0.5517495", "0.5513659", "0.55008274", "0.5499439", "0.5490671", "0.54761565", "0.5459876", "0.54530096", "0.5451837", "0.54479665", "0.54467005", "0.544456", "0.5442036", "0.5439758", "0.5436059", "0.5433979", "0.5433454", "0.5428836", "0.5426016", "0.54257274", "0.5424668", "0.54227424", "0.54186636", "0.5418022", "0.5414923", "0.54129755", "0.5411637", "0.5408307", "0.54077977", "0.5405915", "0.540153", "0.54014987", "0.540062" ]
0.8207403
0
Gets the "soap" element
public au.gov.asic.types.SoapSoftwareIdentifierType getSoap() { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.SoapSoftwareIdentifierType target = null; target = (au.gov.asic.types.SoapSoftwareIdentifierType)get_store().find_element_user(SOAP$2, 0); if (target == null) { return null; } return target; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract SOAPPart getSOAPPart();", "public abstract SOAPEnvelope getEnvelope() throws SOAPException;", "public String getSoapUrl() {\n return this.soapUrl;\n }", "public abstract Object getProperty(String property) throws SOAPException;", "public abstract SOAPHeader getSOAPHeader() throws SOAPException;", "public SOAPMessage getInternalSOAPMessage() {\n return msg;\n }", "public abstract SOAPBody getSOAPBody() throws SOAPException;", "@Override\n public TypeIdentifier getTypeIdentifier() {\n return SOAP_TYPE_IDENTIFIER;\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleAlarmInfoPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleAlarmInfoPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "protected Element getFaultMessage() {\n return mElement;\n }", "protected SOAPEnvelope getSOAPEnvelope() throws Exception {\n InputStream in = new ByteArrayInputStream(SOAPMSG.getBytes());\n Message msg = new Message(in);\n msg.setMessageContext(msgContext);\n return msg.getSOAPEnvelope();\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetDictionaryPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetDictionaryPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfo param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfo.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleAlarmInfoPageResponse getVehicleAlarmInfoPage(\n\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleAlarmInfoPage getVehicleAlarmInfoPage)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\n _operationClient.getOptions().setAction(\"urn:getVehicleAlarmInfoPage\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getVehicleAlarmInfoPage,\n optimizeContent(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"getVehicleAlarmInfoPage\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleAlarmInfoPageResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleAlarmInfoPageResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "public com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetRoadwayPageResponse getRoadwayPage(\n\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetRoadwayPage getRoadwayPage)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\n _operationClient.getOptions().setAction(\"urn:getRoadwayPage\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getRoadwayPage,\n optimizeContent(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"getRoadwayPage\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetRoadwayPageResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetRoadwayPageResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "protected Element getBodyElement(SoapMessage message) {\n try {\n XMLStreamReader xmlReader = message\n .getContent(XMLStreamReader.class);\n XMLStreamReader filteredReader = new PartialXMLStreamReader(\n xmlReader, message.getVersion().getBody());\n //ensure the whitespace is passed\n StaxUtils.toNextElement((DepthXMLStreamReader) filteredReader);\n Document doc = DOMUtils.createDocument();\n StaxUtils.readDocElements(doc, filteredReader, true);\n return doc.getDocumentElement();\n } catch (XMLStreamException e) {\n throw new Fault(e);\n }\n }", "public void test2() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>listMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:listMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:listMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(\"subsystem\", response.getProducer().getSubsystemCode());\n assertEquals(\"listMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "private Element getRequestElement(String operationName) {\n\t\tDocument doc = documentBuilder.newDocument();\r\n\t\tdoc.setDocumentURI(NAMESPACE_URI);\r\n\t\t// Create the root element\r\n\t\tElement requestElement = doc.createElementNS(NAMESPACE_URI,\r\n\t\t\t\toperationName);\r\n\t\t// Element requestElement = doc.createElement(operationName);\r\n\t\tdoc.appendChild(requestElement);\r\n\t\t// Return it\r\n\t\treturn requestElement;\r\n\t}", "public void test3() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:serviceCode>listMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:listMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:listMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(null, response.getProducer().getSubsystemCode());\n assertEquals(\"listMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "public String getWsdlLocation()\r\n {\r\n return wsdlLocation;\r\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public String Callsoap(SoapObject soapobj,String SOAP_ACTION)\r\n\t{\r\n\t\tString outp=\"\";\r\n\t\t//Declare the version of the SOAP request\r\nSoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);\r\nenvelope.setOutputSoapObject(soapobj);\r\nenvelope.dotNet = true;\r\ntry {\r\nHttpTransportSE androidHttpTransport = new HttpTransportSE(url);\r\nandroidHttpTransport.call(SOAP_ACTION, envelope);\r\n// Get the SoapResult from the envelope body.\r\nSoapObject result = (SoapObject)envelope.bodyIn;\r\noutp =result.getProperty(0).toString();\r\n\r\n } catch (Exception e) {\r\ne.printStackTrace();\r\n }\r\n\t\treturn outp;\r\n\t\t\r\n\t}", "public SoapFaultInfo getFaultInfo()\r\n {\r\n return faultInfo;\r\n }", "public void test11() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"SUBSYSTEM\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode><id:subsystemCode>client</id:subsystemCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>listMethods</id:serviceCode></xrd:service><xrd:securityServer><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode><id:serverCode>server1</id:serverCode></xrd:securityServer><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:listMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service></xrd:listMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(\"client\", response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.SUBSYSTEM, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(\"subsystem\", response.getProducer().getSubsystemCode());\n assertEquals(\"listMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"FI\", response.getSecurityServer().getXRoadInstance());\n assertEquals(\"GOV\", response.getSecurityServer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getSecurityServer().getMemberCode());\n assertEquals(\"server1\", response.getSecurityServer().getServerCode());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleRecordPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleRecordPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderIDForPayment param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderIDForPayment.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private static String printSOAPResponse(SOAPMessage soapResponse) throws Exception {\n \tif(soapResponse==null)\n \t\treturn \"\";\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n Source sourceContent = soapResponse.getSOAPPart().getContent();\n System.out.print(\"\\nResponse SOAP Message = \");\n StreamResult result = new StreamResult(System.out);\n transformer.transform(sourceContent, result);\n \n System.out.println();\n StringWriter writer = new StringWriter();\n transformer.transform(sourceContent, new StreamResult(writer));\n String output = writer.toString();\n int ind = output.indexOf(\"<S\");\n System.out.println(\"NOW IS: \"+output.substring(ind));\n return output;\n }", "String getElementQName(Object element);", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleBookPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleBookPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public void test5() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>allowedMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:allowedMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:allowedMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(\"subsystem\", response.getProducer().getSubsystemCode());\n assertEquals(\"allowedMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "String getSoapProcessorDN();", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetParkPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetParkPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetEntrancePage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetEntrancePage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private SOAPBody createSOAPBodyOdiInvoke() throws Exception {\r\n MessageFactory messageFactory = MessageFactory.newInstance();\r\n soapRequestMessage = messageFactory.createMessage();\r\n SOAPPart soapPart = soapRequestMessage.getSOAPPart();\r\n\r\n // add soap envelope and name space declaration\r\n SOAPEnvelope envelope = soapPart.getEnvelope();\r\n envelope.addNamespaceDeclaration(\"odi\", \"xmlns.oracle.com/odi/OdiInvoke/\");\r\n \r\n // get SOAP body\r\n return envelope.getBody();\r\n }", "public String getService() {\n\t\treturn service.get();\n\t}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.DoControl param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.DoControl.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetDictionaryPageResponse getDictionaryPage(\n\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetDictionaryPage getDictionaryPage)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[6].getName());\n _operationClient.getOptions().setAction(\"urn:getDictionaryPage\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getDictionaryPage,\n optimizeContent(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"getDictionaryPage\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetDictionaryPageResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetDictionaryPageResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "public com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleRecordPageResponse getVehicleRecordPage(\n\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleRecordPage getVehicleRecordPage)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\n _operationClient.getOptions().setAction(\"urn:getVehicleRecordPage\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getVehicleRecordPage,\n optimizeContent(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"getVehicleRecordPage\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleRecordPageResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleRecordPageResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "public LibraryWsFault getFaultInfo() {\n return fault;\n }", "public void test6() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:serviceCode>allowedMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:allowedMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:allowedMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(null, response.getProducer().getSubsystemCode());\n assertEquals(\"allowedMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderID param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderID.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPageResponse getVehicleInfoPage(\n\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPage getVehicleInfoPage)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions().setAction(\"urn:getVehicleInfoPage\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getVehicleInfoPage,\n optimizeContent(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"getVehicleInfoPage\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPageResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPageResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrder param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrder.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.GetDownLoadCard param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.GetDownLoadCard.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "@WebService(name = \"HandSoapWeb\", targetNamespace = \"http://soapmanagement.jpdc.se/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HandSoapWeb {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSoapsNyBrand\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrand\")\n @ResponseWrapper(localName = \"getSoapsNyBrandResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrandResponse\")\n public List<HandSoap> getSoapsNyBrand(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"addNewSoap\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoap\")\n @ResponseWrapper(localName = \"addNewSoapResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoapResponse\")\n public void addNewSoap(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n HandSoap arg0);\n\n /**\n * \n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllSoaps\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoaps\")\n @ResponseWrapper(localName = \"getAllSoapsResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoapsResponse\")\n public List<HandSoap> getAllSoaps();\n\n}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectAreaInfo param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectAreaInfo.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleBookPageResponse getVehicleBookPage(\n\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleBookPage getVehicleBookPage)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[7].getName());\n _operationClient.getOptions().setAction(\"urn:getVehicleBookPage\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getVehicleBookPage,\n optimizeContent(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"getVehicleBookPage\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleBookPageResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleBookPageResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest getEvSORequest();", "public org.xmlsoap.schemas.wsdl.http.OperationType getOperation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.xmlsoap.schemas.wsdl.http.OperationType target = null;\n target = (org.xmlsoap.schemas.wsdl.http.OperationType)get_store().find_element_user(OPERATION$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.GetTerminalCardType param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.GetTerminalCardType.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "@Override\n\tprotected String getWebServiceUri() {\n\t\treturn this.uri;\n\t}", "public String getElement() { return element; }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.DirectQuery param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.DirectQuery.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public String getService(){\n\t\t return service;\n\t}", "public com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetParkPageResponse getParkPage(\n\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetParkPage getParkPage)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[8].getName());\n _operationClient.getOptions().setAction(\"urn:getParkPage\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getParkPage,\n optimizeContent(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"getParkPage\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetParkPageResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetParkPageResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "com.icare.eai.schema.om.evSORequest.ListOfServiceElementsComplexType getListOfServiceElements();", "public String getService() {\n return service;\n }", "public String getService() {\n return service;\n }", "public String getService() {\n return service;\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.QqCharge param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.QqCharge.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "@WebService(name = \"iTmsLogisticsOrderWsService\", targetNamespace = \"http://www.aurora-framework.org/schema\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ITmsLogisticsOrderWsService {\n\n\n /**\n *\n * @param tmsLogisticsOrderRequestPart\n * @return\n * returns org.aurora_framework.schema.SoapResponse\n */\n @WebMethod(action = \"execute\")\n @WebResult(name = \"soapResponse\", targetNamespace = \"http://www.aurora-framework.org/schema\", partName = \"tmsLogisticsOrderResponse_part\")\n public SoapResponse execute(\n @WebParam(name = \"logisticsOrderRequest\", targetNamespace = \"http://www.aurora-framework.org/schema\", partName = \"tmsLogisticsOrderRequest_part\")\n LogisticsOrderRequest tmsLogisticsOrderRequestPart);\n\n}", "public String getRequestInXML() throws Exception;", "public void writeSoapMessage(SOAPMessage message);", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.HelloAuthenticated param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.HelloAuthenticated.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "@WebService(name = \"SendMTPortType\", targetNamespace = \"http://sms.neo\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SendMTPortType {\n\n\n /**\n * \n * @param rtype\n * @param timeend\n * @param password\n * @param receiver\n * @param repeat\n * @param brandname\n * @param timestart\n * @param loaisp\n * @param content\n * @param timesend\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendMessage\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendMessage\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendMessage\")\n @ResponseWrapper(localName = \"sendMessageResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendMessageResponse\")\n public String sendMessage(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"repeat\", targetNamespace = \"http://sms.neo\")\n Integer repeat,\n @WebParam(name = \"rtype\", targetNamespace = \"http://sms.neo\")\n Integer rtype,\n @WebParam(name = \"loaisp\", targetNamespace = \"http://sms.neo\")\n Integer loaisp,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"timestart\", targetNamespace = \"http://sms.neo\")\n String timestart,\n @WebParam(name = \"timeend\", targetNamespace = \"http://sms.neo\")\n String timeend,\n @WebParam(name = \"timesend\", targetNamespace = \"http://sms.neo\")\n String timesend,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param receiver\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendFromServiceNumber\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendFromServiceNumber\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromServiceNumber\")\n @ResponseWrapper(localName = \"sendFromServiceNumberResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromServiceNumberResponse\")\n public String sendFromServiceNumber(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param receiver\n * @param brandname\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendFromBrandname\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendFromBrandname\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromBrandname\")\n @ResponseWrapper(localName = \"sendFromBrandnameResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromBrandnameResponse\")\n public String sendFromBrandname(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param cardSerial\n * @param cardCode\n * @param issure\n * @param username\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:useCard\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"useCard\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.UseCard\")\n @ResponseWrapper(localName = \"useCardResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.UseCardResponse\")\n public String useCard(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"issure\", targetNamespace = \"http://sms.neo\")\n String issure,\n @WebParam(name = \"cardCode\", targetNamespace = \"http://sms.neo\")\n String cardCode,\n @WebParam(name = \"cardSerial\", targetNamespace = \"http://sms.neo\")\n String cardSerial);\n\n /**\n * \n * @param password\n * @param receiver\n * @param brandname\n * @param loaisp\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendSMS\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendSMS\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendSMS\")\n @ResponseWrapper(localName = \"sendSMSResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendSMSResponse\")\n public String sendSMS(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"loaisp\", targetNamespace = \"http://sms.neo\")\n Integer loaisp,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n}", "public boolean isSetSoap()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SOAP$2) != 0;\n }\n }", "public org.apache.axis2.context.xsd.ServiceContext getServiceContext(){\n return localServiceContext;\n }", "public SHPEnvelope getEnvelope() {\n return envelope;\n }", "public String getService() {\n return this.service;\n }", "public String getService() {\n return this.service;\n }", "public String getService() {\n return this.service;\n }", "String getElem();", "public String execute(SOAPMessage message) throws FIFException;", "public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }", "public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }", "public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }", "public ServiceXML getService(String className) {\n return allXMLServices.get(className);\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.DirectCharge param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.DirectCharge.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "@WebService(name = \"ListSubscriptions\", targetNamespace = \"http://soap/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ListSubscriptions {\n\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getList\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetList\")\n @ResponseWrapper(localName = \"getListResponse\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetListResponse\")\n public String getList();\n\n}", "public QName getServiceName() {\n\t\treturn null;\n\t}", "public static String getXMLElementTagName() {\n return \"setTradeRoutes\";\n }", "public org.pahospital.www.radiologyservice.RadiologyServiceStub.OrderStatus getOrderStatus(\n\n org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderID radiologyOrderID6)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\n _operationClient.getOptions().setAction(\"http://www.PAHospital.org/RadiologyService/GetOrderStatus\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n radiologyOrderID6,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\",\n \"getOrderStatus\")), new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\",\n \"getOrderStatus\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n org.pahospital.www.radiologyservice.RadiologyServiceStub.OrderStatus.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (org.pahospital.www.radiologyservice.RadiologyServiceStub.OrderStatus)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"GetOrderStatus\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"GetOrderStatus\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"GetOrderStatus\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlements param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlements.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public static WSDLMessage getMatchingWSDLMessage(QName wsdlMessageQName, WSDLElement element) {\n\t\tif(wsdlMessageQName == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tWSDLDocument document = (WSDLDocument) element.getOwnerDocument();\n\t\t\n\t\tif (document == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tWSDLDefinitions wsdlDefinition = document.getDocumentDefinitions();\n\t\t\t\t\n\t\tif (wsdlDefinition == null) {\n\t\t\treturn null;\n\t\t}\n \n\t\tWSDLMessage wsdlMessage = null;\n\t\t\n\t\twsdlMessage = wsdlDefinition.getMessage(wsdlMessageQName);\n\t\treturn wsdlMessage;\n\t\t\n\t}", "SmilObject get(String elementId) throws SmilException;", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.TerminalReturnCard param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.TerminalReturnCard.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }" ]
[ "0.69987637", "0.61914206", "0.61111146", "0.6044563", "0.5931403", "0.58320564", "0.5747869", "0.5716203", "0.5686081", "0.56535006", "0.5633476", "0.56269944", "0.56228685", "0.56150734", "0.5606387", "0.5592658", "0.55619854", "0.5556512", "0.55564916", "0.5544004", "0.55344385", "0.55344385", "0.55344385", "0.55344385", "0.55344385", "0.55344385", "0.55344385", "0.55344385", "0.55344385", "0.55344385", "0.55344385", "0.5527199", "0.55089545", "0.5506643", "0.549188", "0.5468728", "0.5458026", "0.544424", "0.544159", "0.54385763", "0.5411208", "0.53917456", "0.53846234", "0.5383459", "0.5382269", "0.53722286", "0.5370358", "0.5352222", "0.5350723", "0.534892", "0.53447634", "0.5328614", "0.53219783", "0.5303317", "0.5299088", "0.5299088", "0.5299088", "0.52870053", "0.5269683", "0.526535", "0.5262909", "0.5259529", "0.5256645", "0.52563626", "0.52561575", "0.5249209", "0.5237792", "0.5235228", "0.5229076", "0.51998854", "0.51974094", "0.51974094", "0.51974094", "0.5189034", "0.51889116", "0.51884913", "0.5167764", "0.5162899", "0.51603", "0.51500803", "0.51456624", "0.51421404", "0.5132599", "0.5132599", "0.5132599", "0.51260304", "0.5123008", "0.51219326", "0.51219326", "0.51219326", "0.5108268", "0.5102606", "0.50966144", "0.5085806", "0.5085314", "0.50823927", "0.5081169", "0.5080916", "0.5079366", "0.5072921" ]
0.6258885
1
True if has "soap" element
public boolean isSetSoap() { synchronized (monitor()) { check_orphaned(); return get_store().count_elements(SOAP$2) != 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isFromWSDL(String serviceName);", "boolean hasEndpoint();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean isSetListOfServiceElements();", "public boolean hasService() {\n return serviceBuilder_ != null || service_ != null;\n }", "public boolean hasService() {\n return serviceBuilder_ != null || service_ != null;\n }", "public boolean hasService() {\n return serviceBuilder_ != null || service_ != null;\n }", "public boolean hasService() {\n return service_ != null;\n }", "public boolean hasService() {\n return service_ != null;\n }", "public boolean hasService() {\n return service_ != null;\n }", "public boolean hasNetWS() {\r\n/* 305 */ return this._has_netWS;\r\n/* */ }", "boolean hasElement();", "private boolean getWSInformationFromUDDI(ServiceVO service){\n\t\tWSDLService wsdlService = uddi.getInquiry().getWSDLServiceByKey(service.getUddiWsdl());\n\t\tif(wsdlService != null){\n\t\t\tlogger.debug(\"WSDLService -> \" + wsdlService.getName());\n\t\t\tMap<String, String> wsdlValues = getWSInformationFromWSDL(wsdlService.getWsdl(), service.getPortTypeName(), service.getMethodName());\n\t\t\tsetWsdlValues(wsdlValues, service);\n\t\t\treturn !wsdlValues.isEmpty();\n\t\t}else{\n\t\t\tlogger.debug(\"No se pudo cargar la informaci\\u00F3n del servicio [ {0} ] vía UDDI - WSRR\", service.getDescription());\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasEndpoint() { return true; }", "boolean hasSer();", "boolean hasPayload();", "public boolean hasService() {\n return fieldSetFlags()[1];\n }", "boolean hasServiceList();", "private boolean getWSInformationFromUDDI(ComponentServiceVO service){\n\t\tWSDLService wsdlService = uddi.getInquiry().getWSDLServiceByKey(service.getUddiWsdl());\n\t\tif(wsdlService != null){\n\t\t\tlogger.debug(\"WSDLService -> \" + wsdlService.getName());\n\t\t\tMap<String, String> wsdlValues = getWSInformationFromWSDL(wsdlService.getWsdl(), service.getPortTypeName(), service.getMethodName());\n\t\t\tsetWsdlValues(wsdlValues, service);\n\t\t\treturn !wsdlValues.isEmpty();\n\t\t}else{\n\t\t\tlogger.debug(\"No se pudo cargar la informaci\\u00F3n del servicio [ {0} ] vía UDDI - WSRR\", service.getDescription());\n\t\t}\n\t\treturn false;\n\t}", "boolean hasServiceName();", "boolean hasServiceName();", "public boolean hasResponse() {\n if(responses == null)\n return false;\n for(SapMessage response : responses) {\n if(response != null)\n return true;\n }\n return false;\n }", "public boolean hasEndpoint() {\n return endpointBuilder_ != null || endpoint_ != null;\n }", "boolean hasMerchantData();", "boolean hasMerchantData();", "boolean hasAdvertisingPartner();", "boolean hasResponseAddress();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasReflectionResponse();", "@java.lang.Override\n public boolean hasEndpoint() {\n return endpoint_ != null;\n }", "boolean hasTxnresponse();", "public boolean isASAP()\n {\n return equiv(ASAP);\n }", "public boolean hasAnnotatedBusiness(){\r\n\t\tList bus = this.rootDoc.selectNodes(\"a-business\") ;\r\n\t\t\r\n\t\treturn !bus.isEmpty() ;\r\n\t}", "boolean hasResponseMessage();", "boolean hasBody();", "boolean hasBody();", "boolean hasBody();", "abstract boolean hasXMLProperty(XMLName name);", "public boolean hasPayload() {\n return (mPayload != null);\n }", "boolean hasBuyDescribe();", "public boolean hasEnvelopeId() {\n return fieldSetFlags()[2];\n }", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "int isValid() throws IOException, SoapException;", "public boolean hasRequestType() {\n return result.hasRequestType();\n }", "public boolean isSOTrx();", "boolean hasTxnrequest();", "boolean hasHeader();", "public abstract SOAPPart getSOAPPart();", "public boolean hasServiceName() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasServiceName() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasServiceName() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasServiceName() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasEnvelopeVersion() {\n return fieldSetFlags()[12];\n }", "boolean hasHasAddress();", "public boolean hasResponse() {\n return response_ != null;\n }", "public boolean hasNamespace() {\n return m_namespaces != null && m_namespaces.size() > 0;\n }", "@java.lang.Override\n public boolean hasServiceList() {\n return endpointConfigCase_ == 3;\n }", "public boolean hasResponse() {\n return response_ != null;\n }", "public boolean hasResponse() {\n return response_ != null;\n }", "public boolean hasResponse() {\n return response_ != null;\n }", "boolean hasMessageType();", "public boolean isAddVehiclesHeadingPresent() {\r\n\t\treturn isElementPresent(addVehiclesHeader, SHORTWAIT);\r\n\t}", "public boolean hasPayload() {\n return result.hasPayload();\n }", "boolean hasHasMicroService();", "public boolean hasSock() {\n\t\t\t\treturn sockBuilder_ != null || sock_ != null;\n\t\t\t}", "boolean hasSetAttribute();", "public boolean hasResponse() {\n return responseBuilder_ != null || response_ != null;\n }", "@java.lang.Override\n public boolean hasServiceList() {\n return endpointConfigCase_ == 3;\n }", "boolean hasServiceCmd();", "public boolean hasSig() {\n return sigBuilder_ != null || sig_ != null;\n }", "boolean hasFlightdetails();", "private boolean hasTBody() {\r\n\t\treturn null != this.getTBody();\r\n\t}", "public boolean hasResponse() {\n return responseBuilder_ != null || response_ != null;\n }", "boolean hasResponsePort();", "public boolean hasMoreElements () {\r\n if (same_name_methods_index == 0) {\r\n if (!methods.hasMoreElements ()) return false;\r\n\r\n same_name_methods = (java.util.Vector) methods.nextElement ();\r\n same_name_methods_index = same_name_methods.size ();\r\n }\r\n\r\n return true;\r\n }", "boolean hasSerializedPaymentDetails();", "public boolean hasBody() {\n return result.hasBody();\n }", "public boolean hasBody() {\n return result.hasBody();\n }", "public boolean hasBody() {\n return result.hasBody();\n }" ]
[ "0.68269664", "0.64947206", "0.63926023", "0.63926023", "0.63926023", "0.63926023", "0.63926023", "0.6354041", "0.6329357", "0.6329357", "0.6329357", "0.63232714", "0.63232714", "0.63232714", "0.6316215", "0.62004507", "0.6146002", "0.61000144", "0.60953695", "0.6094882", "0.60912496", "0.60625213", "0.6047907", "0.6035292", "0.6035292", "0.60107476", "0.60107005", "0.59818405", "0.59818405", "0.5967206", "0.5966617", "0.5965678", "0.5965678", "0.5965678", "0.5965678", "0.5965678", "0.5965678", "0.5965678", "0.5965678", "0.5965678", "0.5965678", "0.59308827", "0.592397", "0.5913499", "0.58939457", "0.5824979", "0.5817451", "0.5809557", "0.5809557", "0.5809557", "0.57748204", "0.5763234", "0.5762086", "0.57456", "0.57369506", "0.57369506", "0.57369506", "0.57369506", "0.57369506", "0.57369506", "0.57369506", "0.57369506", "0.57369506", "0.5699417", "0.56937116", "0.56906605", "0.5677455", "0.56771016", "0.56683767", "0.5667809", "0.5667809", "0.56653076", "0.56653076", "0.5662318", "0.56545746", "0.5636923", "0.56321585", "0.5622145", "0.5614909", "0.5614909", "0.5614909", "0.5614208", "0.561372", "0.5612128", "0.5601319", "0.5591846", "0.55876714", "0.55872416", "0.55808043", "0.55698466", "0.5568851", "0.5562771", "0.5561558", "0.55579185", "0.5551759", "0.55397195", "0.5536297", "0.5535904", "0.5535904", "0.5535904" ]
0.79863775
0
Sets the "soap" element
public void setSoap(au.gov.asic.types.SoapSoftwareIdentifierType soap) { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.SoapSoftwareIdentifierType target = null; target = (au.gov.asic.types.SoapSoftwareIdentifierType)get_store().find_element_user(SOAP$2, 0); if (target == null) { target = (au.gov.asic.types.SoapSoftwareIdentifierType)get_store().add_element_user(SOAP$2); } target.set(soap); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeSoapMessage(SOAPMessage message);", "public void setSoapUrl(String url) {\n this.soapUrl = url;\n }", "public abstract void setProperty(String property, Object value)\n throws SOAPException;", "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"SOAPService\" +\n getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[7];\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"updateAnimal\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[0] = __operation;\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"login\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[1] = __operation;\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"updateUser\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[2] = __operation;\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"createUser\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[3] = __operation;\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"deleteAnimal\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[4] = __operation;\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"createAnimal\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[5] = __operation;\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"getAnimal\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[6] = __operation;\n }", "public void setElement(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/element\",v);\n\t\t_Element=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r\n \r\nif (\"webservice_vasmanHttpPort\".equals(portName)) {\r\n setwebservice_vasmanHttpPortEndpointAddress(address);\r\n }\r\n else \r\n{ // Unknown Port Name\r\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\r\n }\r\n }", "public void unsetSoap()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(SOAP$2, 0);\n }\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"msgserviceHttpSoap11Endpoint\".equals(portName)) {\n setmsgserviceHttpSoap11EndpointEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r\n \r\nif (\"PublishAPIServiceSoap\".equals(portName)) {\r\n setPublishAPIServiceSoapEndpointAddress(address);\r\n }\r\n else \r\n{ // Unknown Port Name\r\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\r\n }\r\n }", "public SOAPActivator() {\n super(SOAP_TYPE);\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"CancelIMSHuawei_pt\".equals(portName)) {\n setCancelIMSHuawei_ptEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "void setSolicitarServicio(com.soa.SolicitarServicioDocument.SolicitarServicio solicitarServicio);", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"FeeCreateSOAP\".equals(portName)) {\n setFeeCreateSOAPEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public void sendRequest(Class<?> cl, boolean simple) throws\n IOException,\n XmlPullParserException {\n \t\n \tLog.i(TAG, \"Sending SOAP request to \" + SERVER + \" and method \" + METHOD_NAME);\n \n // Variables for URL splitting\n String delimiter = \"/\";\n String PATH;\n String[] URLArray;\n String URL;\n \n // Split URL\n URLArray = SERVER.split(delimiter, 2);\n URL = URLArray[0];\n if (URLArray.length == 2) {\n PATH = delimiter + URLArray[1];\n } else {\n PATH = \"\";\n }\n \n /**\n * Use of KeepAliveHttpsTransport deals with the problems with the\n * Android ssl libraries having trouble with certificates and\n * certificate authorities somehow messing up connecting/needing\n * reconnects.\n */\n connection = new KeepAliveHttpsTransportSE(URL, 443, PATH, Constants.CONNECTION_TIMEOUT);\n SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(\n SoapEnvelope.VER11);\n System.setProperty(\"http.keepAlive\", \"false\");\n envelope.encodingStyle = SoapEnvelope.ENC;\n envelope.setAddAdornments(false);\n envelope.implicitTypes = true;\n envelope.dotNet = false;\n envelope.setOutputSoapObject(request);\n \n if(cl != null) {\n \tenvelope.addMapping(NAMESPACE, cl.getSimpleName(), cl);\n }\n \n if (isDebuggable) {\n \t connection.debug = true;\n \t try {\n \t \tconnection.call(SOAP_ACTION, envelope);\n \t\t Log.d(TAG, connection.getHost() + \" \" + connection.getPath() + \" \" +\n \t\t connection.getPort());\n \t\t Log.d(TAG, connection.requestDump.toString());\n \t\t Log.d(TAG, connection.responseDump.toString());\n \t } catch (Exception e) {\n \t \tLog.e(TAG, e.getMessage(), e);\n \t\t Log.e(TAG, connection.getHost() + \" \" + connection.getPath() + \" \" +\n \t\t connection.getPort());\n \t\t Log.e(TAG, connection.requestDump.toString());\n\t\t Log.e(TAG, connection.responseDump.toString());\n \t } \t\n } else {\n \tconnection.call(SOAP_ACTION, envelope); \t\n }\n \n if (simple && !(envelope.getResponse() instanceof SoapFault)) {\n result = envelope.bodyIn;\n } else {\n result = envelope.getResponse();\n }\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r\n \r\nif (\"WSEmisionAgricolaPort\".equals(portName)) {\r\n setWSEmisionAgricolaPortEndpointAddress(address);\r\n }\r\n else \r\n{ // Unknown Port Name\r\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\r\n }\r\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r\n \r\nif (\"EmpleadoServiciolmpl\".equals(portName)) {\r\n setEmpleadoServiciolmplEndpointAddress(address);\r\n }\r\n else \r\n{ // Unknown Port Name\r\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\r\n }\r\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.DoControl param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.DoControl.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "@WebService(name = \"RPCLitSWA\", targetNamespace = \"http://org/apache/axis2/jaxws/proxy/rpclitswa\", wsdlLocation = \"RPCLitSWA.wsdl\")\r\n@SOAPBinding(style = Style.RPC)\r\npublic interface RPCLitSWA {\r\n\r\n\r\n /**\r\n * \r\n * @param request\r\n * @param dummyAttachmentINOUT\r\n * @param dummyAttachmentOUT\r\n * @param response\r\n * @param dummyAttachmentIN\r\n */\r\n @WebMethod\r\n public void echo(\r\n @WebParam(name = \"request\", partName = \"request\")\r\n String request,\r\n @WebParam(name = \"dummyAttachmentIN\", partName = \"dummyAttachmentIN\")\r\n String dummyAttachmentIN,\r\n @WebParam(name = \"dummyAttachmentINOUT\", mode = Mode.INOUT, partName = \"dummyAttachmentINOUT\")\r\n Holder<DataHandler> dummyAttachmentINOUT,\r\n @WebParam(name = \"response\", mode = Mode.OUT, partName = \"response\")\r\n Holder<String> response,\r\n @WebParam(name = \"dummyAttachmentOUT\", mode = Mode.OUT, partName = \"dummyAttachmentOUT\")\r\n Holder<String> dummyAttachmentOUT);\r\n\r\n}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderIDForPayment param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderIDForPayment.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"SliderSvcPort\".equals(portName)) {\n setSliderSvcPortEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"HISWebService\" +\r\n getUniqueSuffix());\r\n addAnonymousOperations();\r\n\r\n //creating the operations\r\n org.apache.axis2.description.AxisOperation __operation;\r\n\r\n _operations = new org.apache.axis2.description.AxisOperation[40];\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_XXBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[0] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"createCardPatInfo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[1] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getGhlb\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[2] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_XDTBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[3] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"updateZYYJJ\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[4] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"appNoList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[5] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getItemData\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[6] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"dOCHBList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[7] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"sapInterface\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[8] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_ZQGSZSYBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[9] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"msgInterface\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[10] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_YDBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[11] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getPeopleFeeStatus\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[12] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getDoctorDe\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[13] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getsfzy\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[14] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getDoctorList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[15] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getAdmByCardNo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[16] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"bankAddDeposit\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[17] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"accSearch\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[18] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getChargetariff\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[19] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_DTXYJCBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[20] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getBillDetailByAd\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[21] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_CTBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[22] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"iDCardCheck\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[23] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"dOCKSList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[24] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"patChargeList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[25] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"mainMethod\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[26] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"testDBStatus\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[27] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getBaseCardPrice\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[28] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"netTest\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[29] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_DTXDTBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[30] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"addDeposit\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[31] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"oPRegist\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[32] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"editInfo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[33] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"yPrint\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[34] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getAppNo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[35] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getItemDataPrint\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[36] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getXFList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[37] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getBillInfo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[38] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"autoOPBillCharge\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[39] = __operation;\r\n }", "@WebService(name = \"iTmsLogisticsOrderWsService\", targetNamespace = \"http://www.aurora-framework.org/schema\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ITmsLogisticsOrderWsService {\n\n\n /**\n *\n * @param tmsLogisticsOrderRequestPart\n * @return\n * returns org.aurora_framework.schema.SoapResponse\n */\n @WebMethod(action = \"execute\")\n @WebResult(name = \"soapResponse\", targetNamespace = \"http://www.aurora-framework.org/schema\", partName = \"tmsLogisticsOrderResponse_part\")\n public SoapResponse execute(\n @WebParam(name = \"logisticsOrderRequest\", targetNamespace = \"http://www.aurora-framework.org/schema\", partName = \"tmsLogisticsOrderRequest_part\")\n LogisticsOrderRequest tmsLogisticsOrderRequestPart);\n\n}", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"publicService\".equals(portName)) {\n setpublicServiceEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"WSExtensionService\".equals(portName)) {\n setWSExtensionServiceEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "void setListOfServiceElements(com.icare.eai.schema.om.evSORequest.ListOfServiceElementsComplexType listOfServiceElements);", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderID param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderID.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"OrderProcessingService\".equals(portName)) {\n setOrderProcessingServiceEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public void test3() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:serviceCode>listMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:listMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:listMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(null, response.getProducer().getSubsystemCode());\n assertEquals(\"listMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrder param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrder.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfo param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfo.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"UGSRuntimeServiceXfireImplHttpPort\".equals(portName)) {\n setUGSRuntimeServiceXfireImplHttpPortEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r\n \r\nif (\"WsUserServiceImpl\".equals(portName)) {\r\n setWsUserServiceImplEndpointAddress(address);\r\n }\r\n else \r\n{ // Unknown Port Name\r\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\r\n }\r\n }", "public void makePayment(\n org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderIDForPayment radiologyOrderIDForPayment8\n\n ) throws java.rmi.RemoteException\n \n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n\n \n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\n _operationClient.getOptions().setAction(\"http://www.PAHospital.org/RadiologyService/MakePayment\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n org.apache.axiom.soap.SOAPEnvelope env = null;\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n radiologyOrderIDForPayment8,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\",\n \"makePayment\")),new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\",\n \"makePayment\"));\n \n\n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n _operationClient.execute(true);\n\n \n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n \n return;\n }", "public void test2() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>listMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:listMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:listMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(\"subsystem\", response.getProducer().getSubsystemCode());\n assertEquals(\"listMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "@WebService(name = \"HandSoapWeb\", targetNamespace = \"http://soapmanagement.jpdc.se/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HandSoapWeb {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSoapsNyBrand\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrand\")\n @ResponseWrapper(localName = \"getSoapsNyBrandResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrandResponse\")\n public List<HandSoap> getSoapsNyBrand(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"addNewSoap\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoap\")\n @ResponseWrapper(localName = \"addNewSoapResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoapResponse\")\n public void addNewSoap(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n HandSoap arg0);\n\n /**\n * \n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllSoaps\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoaps\")\n @ResponseWrapper(localName = \"getAllSoapsResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoapsResponse\")\n public List<HandSoap> getAllSoaps();\n\n}", "public void setEnvelope(Envelope envelope) {\n this.envelope = envelope;\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.InitializeHelloWorldWS param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.InitializeHelloWorldWS.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"CenterServerImplPort\".equals(portName)) {\n setCenterServerImplPortEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "protected void setup(Stub stub) throws AxisFault {\n String cookie = login();\n ServiceClient client = stub._getServiceClient();\n Options options = client.getOptions();\n options.setTimeOutInMilliSeconds(15 * 60 * 1000);\n options.setProperty(HTTPConstants.SO_TIMEOUT, 15 * 60 * 1000);\n options.setProperty(HTTPConstants.CONNECTION_TIMEOUT, 15 * 60 * 1000);\n options.setManageSession(true);\n options.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);\n }", "@WebService(targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", name = \"TestJaxWs\")\n@XmlSeeAlso({ObjectFactory.class})\n//@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)\n@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) //28.12.2018 forum advice\npublic interface TestJaxWs {\n\n @WebMethod(operationName = \"jaxWsTest1\", action = \"http://sap.com/xi/WebService/soap1.1\")\n @RequestWrapper(localName = \"jaxWsTest1\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1\")\n @ResponseWrapper(localName = \"jaxWsTest1Response\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1Response\")\n //@WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String jaxWsTest1(\n @WebParam(name = \"information\", targetNamespace = \"\")\n java.lang.String information,\n @WebParam(name = \"count\", targetNamespace = \"\")\n int count\n //@WebParam(name=\"jaxWsTest1\", targetNamespace = \"\")\n //JaxWsTest1 jaxWsTest1\n ) throws UserDefinedException;\n}", "public abstract SOAPPart getSOAPPart();", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.HelloAuthenticated param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.HelloAuthenticated.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public abstract void setServiceName(String serviceName);", "public abstract void setContent(Source source) throws SOAPException;", "@WebService(targetNamespace = \"http://tempuri.org/\", name = \"WebService1Soap\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface WebService1Soap {\r\n\r\n @WebResult(name = \"SendMessageResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"SendMessage\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendMessage\")\r\n @WebMethod(operationName = \"SendMessage\", action = \"http://tempuri.org/SendMessage\")\r\n @ResponseWrapper(localName = \"SendMessageResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendMessageResponse\")\r\n public java.lang.String sendMessage(\r\n @WebParam(name = \"strConnectorName\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strConnectorName,\r\n @WebParam(name = \"strDisServerHost\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strDisServerHost,\r\n @WebParam(name = \"strMessage\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessage,\r\n @WebParam(name = \"strMessageType\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessageType,\r\n @WebParam(name = \"strMessageSchema\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessageSchema,\r\n @WebParam(name = \"strNull\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strNull\r\n );\r\n}", "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"IWsPmsSdkService\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[9];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getRoadwayPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleInfoPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"doControl\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleAlarmInfoPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getEntrancePage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[4]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleRecordPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[5]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getDictionaryPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[6]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleBookPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[7]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getParkPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[8]=__operation;\n \n \n }", "public void test5() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>allowedMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:allowedMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:allowedMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(\"subsystem\", response.getProducer().getSubsystemCode());\n assertEquals(\"allowedMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "@Override\n\tpublic void setElement(Element element) {\n\t\t\n\t}", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public boolean isSetSoap()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SOAP$2) != 0;\n }\n }", "public void setServiceContext(org.apache.axis2.context.xsd.ServiceContext param){\n localServiceContextTracker = true;\n \n this.localServiceContext=param;\n \n\n }", "@WebService(name = \"SendMTPortType\", targetNamespace = \"http://sms.neo\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SendMTPortType {\n\n\n /**\n * \n * @param rtype\n * @param timeend\n * @param password\n * @param receiver\n * @param repeat\n * @param brandname\n * @param timestart\n * @param loaisp\n * @param content\n * @param timesend\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendMessage\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendMessage\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendMessage\")\n @ResponseWrapper(localName = \"sendMessageResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendMessageResponse\")\n public String sendMessage(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"repeat\", targetNamespace = \"http://sms.neo\")\n Integer repeat,\n @WebParam(name = \"rtype\", targetNamespace = \"http://sms.neo\")\n Integer rtype,\n @WebParam(name = \"loaisp\", targetNamespace = \"http://sms.neo\")\n Integer loaisp,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"timestart\", targetNamespace = \"http://sms.neo\")\n String timestart,\n @WebParam(name = \"timeend\", targetNamespace = \"http://sms.neo\")\n String timeend,\n @WebParam(name = \"timesend\", targetNamespace = \"http://sms.neo\")\n String timesend,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param receiver\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendFromServiceNumber\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendFromServiceNumber\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromServiceNumber\")\n @ResponseWrapper(localName = \"sendFromServiceNumberResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromServiceNumberResponse\")\n public String sendFromServiceNumber(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param receiver\n * @param brandname\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendFromBrandname\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendFromBrandname\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromBrandname\")\n @ResponseWrapper(localName = \"sendFromBrandnameResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromBrandnameResponse\")\n public String sendFromBrandname(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param cardSerial\n * @param cardCode\n * @param issure\n * @param username\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:useCard\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"useCard\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.UseCard\")\n @ResponseWrapper(localName = \"useCardResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.UseCardResponse\")\n public String useCard(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"issure\", targetNamespace = \"http://sms.neo\")\n String issure,\n @WebParam(name = \"cardCode\", targetNamespace = \"http://sms.neo\")\n String cardCode,\n @WebParam(name = \"cardSerial\", targetNamespace = \"http://sms.neo\")\n String cardSerial);\n\n /**\n * \n * @param password\n * @param receiver\n * @param brandname\n * @param loaisp\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendSMS\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendSMS\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendSMS\")\n @ResponseWrapper(localName = \"sendSMSResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendSMSResponse\")\n public String sendSMS(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"loaisp\", targetNamespace = \"http://sms.neo\")\n Integer loaisp,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n}", "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"TerminalServiceXmlService\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[11];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"directOrderStateQuery\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getTerminalCardType\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"terminalReturnCard\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"directQuery\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"qqCharge\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[4]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getDirectSrvInfo\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[5]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"terminalDownloadQueryForDay\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[6]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"directCharge\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[7]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getDirectAreaInfo\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[8]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"terminalDownloadQueryForMonth\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[9]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getDownLoadCard\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[10]=__operation;\n \n \n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"GarageSeller\".equals(portName)) {\n setGarageSellerEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"HelloWorldWS\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[6];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.sample/\", \"getServerVersion\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.sample/\", \"helloAuthenticatedWithEntitlementPrecheck\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.sample/\", \"hello\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.sample/\", \"helloAuthenticatedWithEntitlements\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.sample/\", \"helloAuthenticated\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[4]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.sample/\", \"initializeHelloWorldWS\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[5]=__operation;\n \n \n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.QqCharge param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.QqCharge.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.Hello param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.Hello.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleAlarmInfoPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleAlarmInfoPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public WSDL() {\r\n\t\tthis(\"\", \"\");\r\n\t}", "public SOAPServiceStub(java.lang.String targetEndpoint)\n throws org.apache.axis2.AxisFault {\n this(null, targetEndpoint);\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"NFEServices\".equals(portName)) {\n setNFEServicesEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public void test11() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"SUBSYSTEM\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode><id:subsystemCode>client</id:subsystemCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>listMethods</id:serviceCode></xrd:service><xrd:securityServer><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode><id:serverCode>server1</id:serverCode></xrd:securityServer><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:listMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service></xrd:listMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(\"client\", response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.SUBSYSTEM, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(\"subsystem\", response.getProducer().getSubsystemCode());\n assertEquals(\"listMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"FI\", response.getSecurityServer().getXRoadInstance());\n assertEquals(\"GOV\", response.getSecurityServer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getSecurityServer().getMemberCode());\n assertEquals(\"server1\", response.getSecurityServer().getServerCode());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n }", "@WebService(name = \"BillPayServiceAT\", targetNamespace = \"http://jaxws.billpay.wsat.edu.unf.com/\")\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface BillPayServiceAT {\r\n\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n * @throws BillPayException\r\n */\r\n @WebMethod\r\n public void paybillamount(\r\n @WebParam(name = \"arg0\", partName = \"arg0\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", partName = \"arg1\")\r\n long arg1)\r\n throws BillPayException\r\n ;\r\n\r\n}", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"JobSubmission2SOAP11port_http\".equals(portName)) {\n setJobSubmission2SOAP11port_httpEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public MySOAPCallActivity()\n {\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"OutboundServiceSessionEJBBeanServicePort\".equals(portName)) {\n setOutboundServiceSessionEJBBeanServicePortEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"dipp\".equals(portName)) {\n setdippEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public void test6() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:serviceCode>allowedMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:allowedMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:allowedMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(null, response.getProducer().getSubsystemCode());\n assertEquals(\"allowedMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.DirectCharge param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.DirectCharge.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public void setElement(Element element) {\n this.element = element;\n }", "public void setElement(T element) {\n\t\tthis.element = element;\n\t}", "public void setElement(String newElem) { element = newElem;}", "private void setWsdlValues(Map<String, String> wsdlValues, BaseVO<Long> service) throws BusinessException{\n\t\tif(!wsdlValues.isEmpty()){\n\t\t\tif(service instanceof ServiceVO){\n\t\t\t\tServiceVO srv = (ServiceVO)service;\n\t\t\t\t//set name space value\n\t\t\t\tsrv.setNameSpace(wsdlValues.get(ServiceEngineConstants.KEY_SE_WS_NAMESPACE_MAP));\n\t\t\t\t//set port type value\n\t\t\t\tsrv.setPortTypeName(wsdlValues.get(ServiceEngineConstants.KEY_SE_PORT_TYPE_NAME_MAP));\n\t\t\t\t//set end point value\n\t\t\t\tsrv.setEndPoint(wsdlValues.get(ServiceEngineConstants.KEY_SE_END_POINT_MAP));\n\t\t\t\t//set soap http binding type\n\t\t\t\tsrv.setSoapHttpBindingType(wsdlValues.get(ServiceEngineConstants.KEY_SE_SOAP_HTTP_BINDING_MAP));\n\t\t\t\t//set root request header\n\t\t\t\tsrv.setRootRequest(wsdlValues.get(ServiceEngineConstants.KEY_SE_REQUEST_ROOT_NAME_MAP));\n\t\t\t}else if(service instanceof ComponentServiceVO){\n\t\t\t\tComponentServiceVO compSrv = (ComponentServiceVO)service;\n\t\t\t\t//set name space value\n\t\t\t\tcompSrv.setNameSpace(wsdlValues.get(ServiceEngineConstants.KEY_SE_NAMESPACE_MAP));\n\t\t\t\t//set port type value\n\t\t\t\tcompSrv.setPortTypeName(wsdlValues.get(ServiceEngineConstants.KEY_SE_PORT_TYPE_NAME_MAP));\n\t\t\t\t//set end point value\n\t\t\t\tcompSrv.setEndPoint(wsdlValues.get(ServiceEngineConstants.KEY_SE_END_POINT_MAP));\n\t\t\t\t//set soap http binding type\n\t\t\t\tcompSrv.setSoapHttpBindingType(wsdlValues.get(ServiceEngineConstants.KEY_SE_SOAP_HTTP_BINDING_MAP));\n\t\t\t\t//set root request header\n\t\t\t\tcompSrv.setRootRequest(wsdlValues.get(ServiceEngineConstants.KEY_SE_REQUEST_ROOT_NAME_MAP));\n\t\t\t}else{\n\t\t\t\tthrow ServiceEngineGeneralError.UNKOW_ERROR;\n\t\t\t}\n\t\t}else{\n\t\t\tlogger.info(\"El Mapa de valores del WSDL viene vacío, no se asign\\u00F3 ningun valor\");\n\t\t}\n\t}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlements param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlements.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetDictionaryPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetDictionaryPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public Map<String, String> initScenwebServiceRequest(String wsdlURL, String bodyElem, List<String[]> credentials, List<String[]> request, List<String[]> variables, List<String[]> debug) throws Exception {\r\n // create soap body\r\n SOAPElement soapBody = createSOAPBodyOdiInvoke();\r\n SOAPElement soapBodyElem = soapBody.addChildElement(bodyElem, \"odi\");\r\n \r\n SOAPElement creds = soapBodyElem.addChildElement(\"Credentials\");\r\n // loop to add credentials parameters\r\n for (Iterator<String[]> credentialsIt = credentials.iterator(); credentialsIt.hasNext(); ) {\r\n String[] param = credentialsIt.next();\r\n if(param[1]!=\"\") {\r\n SOAPElement childElement = creds.addChildElement(param[0]);\r\n childElement.addTextNode(param[1]);\r\n }\r\n }\r\n \r\n \r\n SOAPElement req = soapBodyElem.addChildElement(\"Request\");\r\n // loop to add request parameters\r\n for (Iterator<String[]> requestIt = request.iterator(); requestIt.hasNext(); ) {\r\n String[] param = requestIt.next();\r\n if(param[1]!=\"\") {\r\n SOAPElement childElement = req.addChildElement(param[0]);\r\n childElement.addTextNode(param[1]);\r\n }\r\n }\r\n /*\r\n // loop to add variables and values\r\n for (Iterator<String[]> variablesIt = variables.iterator(); variablesIt.hasNext(); ) {\r\n String[] param = variablesIt.next();\r\n if(param[2]!=\"\") {\r\n SOAPElement childElement = req.addChildElement(param[0],param[1]);\r\n childElement.addTextNode(param[2]);\r\n }\r\n }\r\n */\r\n \r\n SOAPElement deb = soapBodyElem.addChildElement(\"Debug\");\r\n // loop to add debug params values\r\n for (Iterator<String[]> debugIt = debug.iterator(); debugIt.hasNext(); ) {\r\n String[] param = debugIt.next();\r\n if(param[1]!=\"\") {\r\n SOAPElement childElement = deb.addChildElement(param[0]);\r\n childElement.addTextNode(param[1]);\r\n }\r\n }\r\n \r\n // save the message\r\n soapRequestMessage.saveChanges();\r\n /* Print the request message */\r\n System.out.print(\"Request SOAP Message:\");\r\n soapRequestMessage.writeTo(System.out);\r\n \r\n // send request and get response\r\n SOAPMessage soapResponse = createSOAPRequest(wsdlURL);\r\n \r\n \r\n // store response\r\n SOAPBody responseSoapBody = soapResponse.getSOAPBody();\r\n Iterator nodeIt = responseSoapBody.getChildElements();\r\n \r\n // get the full contents of the SOAP message\r\n return getContents(nodeIt,\" \");\r\n \r\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"UploaderPort\".equals(portName)) {\n setUploaderPortEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetParkPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetParkPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "void xsetServiceId(com.microsoft.schemas._2003._10.serialization.Guid serviceId);", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.DirectQuery param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.DirectQuery.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r\n \r\nif (\"RemoteFacadeCfc\".equals(portName)) {\r\n setRemoteFacadeCfcEndpointAddress(address);\r\n }\r\n else \r\n{ // Unknown Port Name\r\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\r\n }\r\n }", "@Bean\n public HTTPSOAP11Binding soapBinding() {\n return new HTTPSOAP11Binding(parserPool());\n }", "public void startorderRadiologyExamination(\n\n org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrder radiologyOrder4,\n\n final org.pahospital.www.radiologyservice.RadiologyServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions().setAction(\"http://www.PAHospital.org/RadiologyService/OrderRadiologyExamination\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n radiologyOrder4,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\",\n \"orderRadiologyExamination\")), new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\",\n \"orderRadiologyExamination\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderID.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultorderRadiologyExamination(\n (org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderID)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrororderRadiologyExamination(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"OrderRadiologyExamination\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"OrderRadiologyExamination\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"OrderRadiologyExamination\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrororderRadiologyExamination(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrororderRadiologyExamination(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrororderRadiologyExamination(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrororderRadiologyExamination(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrororderRadiologyExamination(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrororderRadiologyExamination(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrororderRadiologyExamination(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrororderRadiologyExamination(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrororderRadiologyExamination(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrororderRadiologyExamination(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrororderRadiologyExamination(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrororderRadiologyExamination(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[1].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[1].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "public void setElement (T element) {\r\n\t\t\r\n\t\tthis.element = element;\r\n\t\r\n\t}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleBookPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleBookPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public String getSoapUrl() {\n return this.soapUrl;\n }", "public void setElement(WebElement element) {\n\t\t\r\n\t}", "@WebService(name = \"CustomerSoapType\", targetNamespace = \"http://test.co.id/ws/customer/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CustomerSoapType {\n\n\n /**\n * Request All Customer\n * \n * @return\n * returns id.co.bca.ws.mbs.soap.customer.ListOfCustomerType\n */\n @WebMethod(operationName = \"GetAllCustomer\")\n @WebResult(name = \"GetAllCustomerResponse\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n public ListOfCustomerType getAllCustomer();\n\n /**\n * Insert Customer\n * \n * @param parameters\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"InsertCustomer\")\n @WebResult(name = \"InsertCustomerResponse\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n public String insertCustomer(\n @WebParam(name = \"InsertCustomer\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n CustomerType parameters);\n\n}" ]
[ "0.62858003", "0.6113843", "0.60980874", "0.6059791", "0.587346", "0.5753474", "0.5693899", "0.56806374", "0.567971", "0.5658697", "0.55581003", "0.5558018", "0.5533239", "0.5517695", "0.5503035", "0.5477355", "0.545593", "0.5442554", "0.54414564", "0.54266405", "0.54061776", "0.5391255", "0.53871", "0.5383125", "0.53812736", "0.5365229", "0.5361095", "0.53544253", "0.5347793", "0.5345296", "0.5331621", "0.5327353", "0.5326603", "0.5322551", "0.5315642", "0.53092366", "0.5297823", "0.5275685", "0.5274048", "0.5266637", "0.52600634", "0.525049", "0.52477425", "0.52471113", "0.5245074", "0.52313167", "0.5224049", "0.5223301", "0.52213734", "0.52213734", "0.52213734", "0.52213734", "0.52213734", "0.52213734", "0.52213734", "0.52213734", "0.52213734", "0.52213734", "0.52213734", "0.52195233", "0.52114064", "0.52057767", "0.5190903", "0.51887983", "0.5187612", "0.51858354", "0.5178266", "0.51761127", "0.51746523", "0.51741195", "0.5171774", "0.5171061", "0.51704085", "0.515036", "0.5145065", "0.51413953", "0.5140596", "0.5135702", "0.5132104", "0.5127613", "0.51263446", "0.51258653", "0.51216763", "0.5119767", "0.51136255", "0.5104442", "0.5091386", "0.50866896", "0.5082202", "0.5076511", "0.5068967", "0.50681317", "0.50606626", "0.5048412", "0.5046391", "0.50435585", "0.5031661", "0.5031544", "0.50299656", "0.5024582" ]
0.6946667
0
Appends and returns a new empty "soap" element
public au.gov.asic.types.SoapSoftwareIdentifierType addNewSoap() { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.SoapSoftwareIdentifierType target = null; target = (au.gov.asic.types.SoapSoftwareIdentifierType)get_store().add_element_user(SOAP$2); return target; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.QqCharge param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.QqCharge.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderIDForPayment param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderIDForPayment.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfo param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfo.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.DirectQuery param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.DirectQuery.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.Hello param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.Hello.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderID param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderID.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrder param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrder.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.InitializeHelloWorldWS param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.InitializeHelloWorldWS.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.DoControl param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.DoControl.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.DirectCharge param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.DirectCharge.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.HelloAuthenticated param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.HelloAuthenticated.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.TerminalReturnCard param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.TerminalReturnCard.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlements param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlements.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.GetDownLoadCard param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.GetDownLoadCard.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.GetTerminalCardType param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.GetTerminalCardType.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleAlarmInfoPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleAlarmInfoPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForDay param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForDay.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetDictionaryPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetDictionaryPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlementPrecheck param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlementPrecheck.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetEntrancePage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetEntrancePage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetParkPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetParkPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectAreaInfo param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectAreaInfo.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, registry.ClientRegistryStub.AddUser param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\r\n throws org.apache.axis2.AxisFault{\r\n\r\n \r\n try{\r\n\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody().addChild(param.getOMElement(registry.ClientRegistryStub.AddUser.MY_QNAME,factory));\r\n return emptyEnvelope;\r\n } catch(org.apache.axis2.databinding.ADBException e){\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n \r\n\r\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleRecordPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleRecordPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleBookPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleBookPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForMonth param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForMonth.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, registry.ClientRegistryStub.AddFilesToUser param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\r\n throws org.apache.axis2.AxisFault{\r\n\r\n \r\n try{\r\n\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody().addChild(param.getOMElement(registry.ClientRegistryStub.AddFilesToUser.MY_QNAME,factory));\r\n return emptyEnvelope;\r\n } catch(org.apache.axis2.databinding.ADBException e){\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n \r\n\r\n }", "private Element generateEmptyOutboundElem(XmlProcessor hqmfXmlProcessor) {\n\t\tElement outboundRelElem = hqmfXmlProcessor.getOriginalDoc().createElement(OUTBOUND_RELATIONSHIP);\n\t\toutboundRelElem.setAttribute(TYPE_CODE, \"COMP\");\n\t\treturn outboundRelElem;\n\t}", "com.icare.eai.schema.om.evSORequest.ListOfServiceElementsComplexType addNewListOfServiceElements();", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, registry.ClientRegistryStub.GetClients param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\r\n throws org.apache.axis2.AxisFault{\r\n\r\n \r\n try{\r\n\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody().addChild(param.getOMElement(registry.ClientRegistryStub.GetClients.MY_QNAME,factory));\r\n return emptyEnvelope;\r\n } catch(org.apache.axis2.databinding.ADBException e){\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n \r\n\r\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, registry.ClientRegistryStub.RemoveUser param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\r\n throws org.apache.axis2.AxisFault{\r\n\r\n \r\n try{\r\n\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody().addChild(param.getOMElement(registry.ClientRegistryStub.RemoveUser.MY_QNAME,factory));\r\n return emptyEnvelope;\r\n } catch(org.apache.axis2.databinding.ADBException e){\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n \r\n\r\n }", "XomNode appendElement(Element element) throws XmlBuilderException;", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.AppNoList param, boolean optimizeContent,\r\n javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.AppNoList.MY_QNAME, factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "public void writeSoapMessage(SOAPMessage message);", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, registry.ClientRegistryStub.RemoveFilesFromUser param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\r\n throws org.apache.axis2.AxisFault{\r\n\r\n \r\n try{\r\n\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody().addChild(param.getOMElement(registry.ClientRegistryStub.RemoveFilesFromUser.MY_QNAME,factory));\r\n return emptyEnvelope;\r\n } catch(org.apache.axis2.databinding.ADBException e){\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n \r\n\r\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.AddDeposit param,\r\n boolean optimizeContent, javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.AddDeposit.MY_QNAME, factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "public void test2() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>listMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:listMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:listMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(\"subsystem\", response.getProducer().getSubsystemCode());\n assertEquals(\"listMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "@WebService(name = \"HandSoapWeb\", targetNamespace = \"http://soapmanagement.jpdc.se/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HandSoapWeb {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSoapsNyBrand\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrand\")\n @ResponseWrapper(localName = \"getSoapsNyBrandResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrandResponse\")\n public List<HandSoap> getSoapsNyBrand(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"addNewSoap\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoap\")\n @ResponseWrapper(localName = \"addNewSoapResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoapResponse\")\n public void addNewSoap(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n HandSoap arg0);\n\n /**\n * \n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllSoaps\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoaps\")\n @ResponseWrapper(localName = \"getAllSoapsResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoapsResponse\")\n public List<HandSoap> getAllSoaps();\n\n}", "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"SOAPService\" +\n getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[7];\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"updateAnimal\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[0] = __operation;\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"login\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[1] = __operation;\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"updateUser\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[2] = __operation;\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"createUser\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[3] = __operation;\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"deleteAnimal\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[4] = __operation;\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"createAnimal\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[5] = __operation;\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"getAnimal\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[6] = __operation;\n }", "public void test3() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:serviceCode>listMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:listMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:listMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(null, response.getProducer().getSubsystemCode());\n assertEquals(\"listMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "public void unsetSoap()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(SOAP$2, 0);\n }\n }", "public void test5() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>allowedMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:allowedMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:allowedMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(\"subsystem\", response.getProducer().getSubsystemCode());\n assertEquals(\"allowedMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.GetAppNo param, boolean optimizeContent,\r\n javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.GetAppNo.MY_QNAME, factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "public void test6() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:serviceCode>allowedMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:allowedMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:allowedMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(null, response.getProducer().getSubsystemCode());\n assertEquals(\"allowedMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.NetTest param, boolean optimizeContent,\r\n javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.NetTest.MY_QNAME, factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.BankAddDeposit param,\r\n boolean optimizeContent, javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.BankAddDeposit.MY_QNAME,\r\n factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"HISWebService\" +\r\n getUniqueSuffix());\r\n addAnonymousOperations();\r\n\r\n //creating the operations\r\n org.apache.axis2.description.AxisOperation __operation;\r\n\r\n _operations = new org.apache.axis2.description.AxisOperation[40];\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_XXBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[0] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"createCardPatInfo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[1] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getGhlb\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[2] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_XDTBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[3] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"updateZYYJJ\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[4] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"appNoList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[5] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getItemData\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[6] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"dOCHBList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[7] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"sapInterface\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[8] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_ZQGSZSYBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[9] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"msgInterface\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[10] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_YDBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[11] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getPeopleFeeStatus\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[12] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getDoctorDe\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[13] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getsfzy\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[14] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getDoctorList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[15] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getAdmByCardNo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[16] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"bankAddDeposit\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[17] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"accSearch\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[18] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getChargetariff\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[19] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_DTXYJCBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[20] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getBillDetailByAd\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[21] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_CTBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[22] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"iDCardCheck\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[23] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"dOCKSList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[24] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"patChargeList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[25] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"mainMethod\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[26] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"testDBStatus\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[27] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getBaseCardPrice\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[28] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"netTest\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[29] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_DTXDTBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[30] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"addDeposit\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[31] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"oPRegist\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[32] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"editInfo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[33] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"yPrint\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[34] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getAppNo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[35] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getItemDataPrint\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[36] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getXFList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[37] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getBillInfo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[38] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"autoOPBillCharge\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[39] = __operation;\r\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.MainMethod param,\r\n boolean optimizeContent, javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.MainMethod.MY_QNAME, factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "private Element getRequestElement(String operationName) {\n\t\tDocument doc = documentBuilder.newDocument();\r\n\t\tdoc.setDocumentURI(NAMESPACE_URI);\r\n\t\t// Create the root element\r\n\t\tElement requestElement = doc.createElementNS(NAMESPACE_URI,\r\n\t\t\t\toperationName);\r\n\t\t// Element requestElement = doc.createElement(operationName);\r\n\t\tdoc.appendChild(requestElement);\r\n\t\t// Return it\r\n\t\treturn requestElement;\r\n\t}", "private Object addElement(XmlElement e, Method method, Object[] args) {\n/* 167 */ Class<?> rt = method.getReturnType();\n/* */ \n/* */ \n/* 170 */ String nsUri = \"##default\";\n/* 171 */ String localName = method.getName();\n/* */ \n/* 173 */ if (e != null) {\n/* */ \n/* 175 */ if (e.value().length() != 0)\n/* 176 */ localName = e.value(); \n/* 177 */ nsUri = e.ns();\n/* */ } \n/* */ \n/* 180 */ if (nsUri.equals(\"##default\")) {\n/* */ \n/* 182 */ Class<?> c = method.getDeclaringClass();\n/* 183 */ XmlElement ce = c.<XmlElement>getAnnotation(XmlElement.class);\n/* 184 */ if (ce != null) {\n/* 185 */ nsUri = ce.ns();\n/* */ }\n/* */ \n/* 188 */ if (nsUri.equals(\"##default\"))\n/* */ {\n/* 190 */ nsUri = getNamespace(c.getPackage());\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 195 */ if (rt == void.class) {\n/* */ \n/* */ \n/* 198 */ boolean isCDATA = (method.getAnnotation(XmlCDATA.class) != null);\n/* */ \n/* 200 */ StartTag st = new StartTag(this.document, nsUri, localName);\n/* 201 */ addChild(st);\n/* 202 */ for (Object arg : args) {\n/* */ Text text;\n/* 204 */ if (isCDATA) { text = new Cdata(this.document, st, arg); }\n/* 205 */ else { text = new Pcdata(this.document, st, arg); }\n/* 206 */ addChild(text);\n/* */ } \n/* 208 */ addChild(new EndTag());\n/* 209 */ return null;\n/* */ } \n/* 211 */ if (TypedXmlWriter.class.isAssignableFrom(rt))\n/* */ {\n/* 213 */ return _element(nsUri, localName, rt);\n/* */ }\n/* */ \n/* 216 */ throw new IllegalSignatureException(\"Illegal return type: \" + rt);\n/* */ }", "public void test11() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"SUBSYSTEM\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode><id:subsystemCode>client</id:subsystemCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>listMethods</id:serviceCode></xrd:service><xrd:securityServer><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode><id:serverCode>server1</id:serverCode></xrd:securityServer><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:listMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service></xrd:listMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(\"client\", response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.SUBSYSTEM, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(\"subsystem\", response.getProducer().getSubsystemCode());\n assertEquals(\"listMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"FI\", response.getSecurityServer().getXRoadInstance());\n assertEquals(\"GOV\", response.getSecurityServer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getSecurityServer().getMemberCode());\n assertEquals(\"server1\", response.getSecurityServer().getServerCode());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.SapInterface param,\r\n boolean optimizeContent, javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.SapInterface.MY_QNAME, factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest addNewEvSORequest();", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.GetXFList param, boolean optimizeContent,\r\n javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.GetXFList.MY_QNAME, factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "@Override\n public abstract void addToXmlElement(Element element);", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.YPrint param, boolean optimizeContent,\r\n javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.YPrint.MY_QNAME, factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.OPRegist param, boolean optimizeContent,\r\n javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.OPRegist.MY_QNAME, factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "@WebService(name = \"RPCLitSWA\", targetNamespace = \"http://org/apache/axis2/jaxws/proxy/rpclitswa\", wsdlLocation = \"RPCLitSWA.wsdl\")\r\n@SOAPBinding(style = Style.RPC)\r\npublic interface RPCLitSWA {\r\n\r\n\r\n /**\r\n * \r\n * @param request\r\n * @param dummyAttachmentINOUT\r\n * @param dummyAttachmentOUT\r\n * @param response\r\n * @param dummyAttachmentIN\r\n */\r\n @WebMethod\r\n public void echo(\r\n @WebParam(name = \"request\", partName = \"request\")\r\n String request,\r\n @WebParam(name = \"dummyAttachmentIN\", partName = \"dummyAttachmentIN\")\r\n String dummyAttachmentIN,\r\n @WebParam(name = \"dummyAttachmentINOUT\", mode = Mode.INOUT, partName = \"dummyAttachmentINOUT\")\r\n Holder<DataHandler> dummyAttachmentINOUT,\r\n @WebParam(name = \"response\", mode = Mode.OUT, partName = \"response\")\r\n Holder<String> response,\r\n @WebParam(name = \"dummyAttachmentOUT\", mode = Mode.OUT, partName = \"dummyAttachmentOUT\")\r\n Holder<String> dummyAttachmentOUT);\r\n\r\n}", "public abstract SOAPPart getSOAPPart();", "com.exacttarget.wsdl.partnerapi.DefinitionResponseMsgDocument.DefinitionResponseMsg addNewDefinitionResponseMsg();", "public Element createEmptyElement(EmptyTask task) {\n\t\tElement empty = this.document.createElement(\"empty\");\n\t\t\n//\t\tBPELUtil.setStandardAttributes(empty, task);\n\t\t\n//\t\treturn createScopeForAttachedHandlers(empty, task);\n\t\treturn null;\n\t\t\n\t}", "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"HelloWorldWS\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[6];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.sample/\", \"getServerVersion\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.sample/\", \"helloAuthenticatedWithEntitlementPrecheck\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.sample/\", \"hello\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.sample/\", \"helloAuthenticatedWithEntitlements\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.sample/\", \"helloAuthenticated\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[4]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.sample/\", \"initializeHelloWorldWS\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[5]=__operation;\n \n \n }", "@WebService(name = \"WSConcat\", targetNamespace = \"http://david.bromberg.fr/service/concat\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface WSConcat {\n\n\n /**\n * \n * @param str1\n * @param str2\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public String concat(\n @WebParam(name = \"str1\", partName = \"str1\")\n String str1,\n @WebParam(name = \"str2\", partName = \"str2\")\n String str2);\n\n}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.UpdateZYYJJ param,\r\n boolean optimizeContent, javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.UpdateZYYJJ.MY_QNAME, factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "@WebService(targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", name = \"MDMTableConditionDataNew\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface MDMTableConditionDataNew {\n\n @WebMethod(action = \"process\")\n @RequestWrapper(localName = \"process\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", className = \"com.microfar.Process\")\n @ResponseWrapper(localName = \"processResponse\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", className = \"com.microfar.ProcessResponse\")\n public void process(\n\n @WebParam(name = \"IN_SYS_NAME\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inSYSNAME,\n @WebParam(name = \"IN_MASTER_TYPE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inMASTERTYPE,\n @WebParam(name = \"IN_TABLE_NAME\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inTABLENAME,\n @WebParam(name = \"IN_FIELDS_VALUE_TABLE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n HAIERMDMFIELDSVALUETABLE inFIELDSVALUETABLE,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RESULT\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRESULT,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RETMSG\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRETMSG,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RETCODE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRETCODE\n );\n}", "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"TerminalServiceXmlService\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[11];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"directOrderStateQuery\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getTerminalCardType\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"terminalReturnCard\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"directQuery\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"qqCharge\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[4]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getDirectSrvInfo\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[5]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"terminalDownloadQueryForDay\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[6]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"directCharge\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[7]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getDirectAreaInfo\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[8]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"terminalDownloadQueryForMonth\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[9]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getDownLoadCard\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[10]=__operation;\n \n \n }", "@WebService(targetNamespace = \"http://tempuri.org/\", name = \"WebService1Soap\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface WebService1Soap {\r\n\r\n @WebResult(name = \"SendMessageResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"SendMessage\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendMessage\")\r\n @WebMethod(operationName = \"SendMessage\", action = \"http://tempuri.org/SendMessage\")\r\n @ResponseWrapper(localName = \"SendMessageResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendMessageResponse\")\r\n public java.lang.String sendMessage(\r\n @WebParam(name = \"strConnectorName\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strConnectorName,\r\n @WebParam(name = \"strDisServerHost\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strDisServerHost,\r\n @WebParam(name = \"strMessage\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessage,\r\n @WebParam(name = \"strMessageType\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessageType,\r\n @WebParam(name = \"strMessageSchema\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessageSchema,\r\n @WebParam(name = \"strNull\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strNull\r\n );\r\n}", "public WSDL() {\r\n\t\tthis(\"\", \"\");\r\n\t}", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "@WebService(targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", name = \"TestJaxWs\")\n@XmlSeeAlso({ObjectFactory.class})\n//@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)\n@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) //28.12.2018 forum advice\npublic interface TestJaxWs {\n\n @WebMethod(operationName = \"jaxWsTest1\", action = \"http://sap.com/xi/WebService/soap1.1\")\n @RequestWrapper(localName = \"jaxWsTest1\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1\")\n @ResponseWrapper(localName = \"jaxWsTest1Response\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1Response\")\n //@WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String jaxWsTest1(\n @WebParam(name = \"information\", targetNamespace = \"\")\n java.lang.String information,\n @WebParam(name = \"count\", targetNamespace = \"\")\n int count\n //@WebParam(name=\"jaxWsTest1\", targetNamespace = \"\")\n //JaxWsTest1 jaxWsTest1\n ) throws UserDefinedException;\n}", "StoreResponse append(CACHE_ELEMENT element);", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.MsgInterface param,\r\n boolean optimizeContent, javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.MsgInterface.MY_QNAME, factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "public abstract SOAPEnvelope getEnvelope() throws SOAPException;", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.EditInfo param, boolean optimizeContent,\r\n javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.EditInfo.MY_QNAME, factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "private static void appendOperation_1_0( Element root, Operation_1_0 operation ) {\n LOG.entering();\n Element op = XMLTools.appendElement( root, OWS, POWS + \"Operation\" );\n\n op.setAttribute( \"Name\", operation.getName() );\n\n DCPType[] dcps = operation.getDCPs();\n for ( DCPType dcp : dcps )\n appendDCP( op, dcp );\n\n OWSDomainType[] parameters = operation.getParameters();\n for ( OWSDomainType parameter : parameters )\n appendParameter( op, parameter, \"Parameter\" );\n\n OWSDomainType[] constraints = operation.getConstraints();\n for ( OWSDomainType constraint : constraints )\n appendParameter( op, constraint, \"Constraint\" );\n\n Object[] metadatas = operation.getMetadata();\n for ( Object metadata : metadatas )\n appendMetadata( op, metadata );\n LOG.exiting();\n }", "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"IWsPmsSdkService\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[9];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getRoadwayPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleInfoPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"doControl\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleAlarmInfoPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getEntrancePage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[4]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleRecordPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[5]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getDictionaryPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[6]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleBookPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[7]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getParkPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[8]=__operation;\n \n \n }", "public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return new BasicUpdate();\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.AccSearch param, boolean optimizeContent,\r\n javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.AccSearch.MY_QNAME, factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "public void sendRequest(Class<?> cl, boolean simple) throws\n IOException,\n XmlPullParserException {\n \t\n \tLog.i(TAG, \"Sending SOAP request to \" + SERVER + \" and method \" + METHOD_NAME);\n \n // Variables for URL splitting\n String delimiter = \"/\";\n String PATH;\n String[] URLArray;\n String URL;\n \n // Split URL\n URLArray = SERVER.split(delimiter, 2);\n URL = URLArray[0];\n if (URLArray.length == 2) {\n PATH = delimiter + URLArray[1];\n } else {\n PATH = \"\";\n }\n \n /**\n * Use of KeepAliveHttpsTransport deals with the problems with the\n * Android ssl libraries having trouble with certificates and\n * certificate authorities somehow messing up connecting/needing\n * reconnects.\n */\n connection = new KeepAliveHttpsTransportSE(URL, 443, PATH, Constants.CONNECTION_TIMEOUT);\n SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(\n SoapEnvelope.VER11);\n System.setProperty(\"http.keepAlive\", \"false\");\n envelope.encodingStyle = SoapEnvelope.ENC;\n envelope.setAddAdornments(false);\n envelope.implicitTypes = true;\n envelope.dotNet = false;\n envelope.setOutputSoapObject(request);\n \n if(cl != null) {\n \tenvelope.addMapping(NAMESPACE, cl.getSimpleName(), cl);\n }\n \n if (isDebuggable) {\n \t connection.debug = true;\n \t try {\n \t \tconnection.call(SOAP_ACTION, envelope);\n \t\t Log.d(TAG, connection.getHost() + \" \" + connection.getPath() + \" \" +\n \t\t connection.getPort());\n \t\t Log.d(TAG, connection.requestDump.toString());\n \t\t Log.d(TAG, connection.responseDump.toString());\n \t } catch (Exception e) {\n \t \tLog.e(TAG, e.getMessage(), e);\n \t\t Log.e(TAG, connection.getHost() + \" \" + connection.getPath() + \" \" +\n \t\t connection.getPort());\n \t\t Log.e(TAG, connection.requestDump.toString());\n\t\t Log.e(TAG, connection.responseDump.toString());\n \t } \t\n } else {\n \tconnection.call(SOAP_ACTION, envelope); \t\n }\n \n if (simple && !(envelope.getResponse() instanceof SoapFault)) {\n result = envelope.bodyIn;\n } else {\n result = envelope.getResponse();\n }\n }", "public Map<String, String> webServiceRequestBasic(String wsdlURL, String bodyElem, String nameSpace, List<String[]> parameters, Map<String, String> nameSpaceList) throws Exception {\r\n \r\n // create soap body\r\n SOAPElement soapBody = createSOAPBody(nameSpaceList);\r\n SOAPElement soapBodyElem = soapBody.addChildElement(bodyElem, nameSpace); \r\n \r\n // loop to add service parameters\r\n for (Iterator<String[]> paramsIt = parameters.iterator(); paramsIt.hasNext(); ) {\r\n String[] param = paramsIt.next();\r\n if(param[2]!=\"\") {\r\n SOAPElement childElement = soapBodyElem.addChildElement(param[0],param[1]);\r\n childElement.addTextNode(param[2]);\r\n }\r\n }\r\n \r\n // save the message\r\n soapRequestMessage.saveChanges();\r\n /* Print the request message */\r\n //System.out.print(\"Request SOAP Message:\");\r\n // soapRequestMessage.writeTo(System.out);\r\n\r\n // send request and get response\r\n SOAPMessage soapResponse = createSOAPRequest(wsdlURL);\r\n \r\n // store response\r\n SOAPBody responseSoapBody = soapResponse.getSOAPBody();\r\n Iterator nodeIt = responseSoapBody.getChildElements();\r\n \r\n // get the full contents of the SOAP message\r\n return getContents(nodeIt,\" \");\r\n \r\n }", "@WebService(name = \"zperson_communic\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ZpersonCommunic {\n\n\n /**\n * \n * @param employeeId\n * @param lastnameM\n * @param fstnameM\n * @param telAts\n * @param orgtxt\n * @param job\n * @param orgUnit\n * @param jobtxt\n * @param checkCommunities\n * @param outTab\n * @return\n * returns test.Bapireturn\n */\n @WebMethod(operationName = \"ZPersonalSearch\")\n @WebResult(name = \"Return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ZPersonalSearch\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\", className = \"test.ZPersonalSearch\")\n @ResponseWrapper(localName = \"ZPersonalSearchResponse\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\", className = \"test.ZPersonalSearchResponse\")\n public Bapireturn zPersonalSearch(\n @WebParam(name = \"CheckCommunities\", targetNamespace = \"\")\n String checkCommunities,\n @WebParam(name = \"EmployeeId\", targetNamespace = \"\")\n String employeeId,\n @WebParam(name = \"FstnameM\", targetNamespace = \"\")\n String fstnameM,\n @WebParam(name = \"Job\", targetNamespace = \"\")\n String job,\n @WebParam(name = \"Jobtxt\", targetNamespace = \"\")\n String jobtxt,\n @WebParam(name = \"LastnameM\", targetNamespace = \"\")\n String lastnameM,\n @WebParam(name = \"OrgUnit\", targetNamespace = \"\")\n String orgUnit,\n @WebParam(name = \"Orgtxt\", targetNamespace = \"\")\n String orgtxt,\n @WebParam(name = \"OutTab\", targetNamespace = \"\", mode = WebParam.Mode.INOUT)\n Holder<TableOfZpernComm> outTab,\n @WebParam(name = \"TelAts\", targetNamespace = \"\")\n String telAts);\n\n}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.Getsfzy param, boolean optimizeContent,\r\n javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.Getsfzy.MY_QNAME, factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "private SOAPBody createSOAPBodyOdiInvoke() throws Exception {\r\n MessageFactory messageFactory = MessageFactory.newInstance();\r\n soapRequestMessage = messageFactory.createMessage();\r\n SOAPPart soapPart = soapRequestMessage.getSOAPPart();\r\n\r\n // add soap envelope and name space declaration\r\n SOAPEnvelope envelope = soapPart.getEnvelope();\r\n envelope.addNamespaceDeclaration(\"odi\", \"xmlns.oracle.com/odi/OdiInvoke/\");\r\n \r\n // get SOAP body\r\n return envelope.getBody();\r\n }", "public org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty addNewPresent()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty)get_store().add_element_user(PRESENT$0);\n return target;\n }\n }", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public void makePayment(\n org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderIDForPayment radiologyOrderIDForPayment8\n\n ) throws java.rmi.RemoteException\n \n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n\n \n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\n _operationClient.getOptions().setAction(\"http://www.PAHospital.org/RadiologyService/MakePayment\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n org.apache.axiom.soap.SOAPEnvelope env = null;\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n radiologyOrderIDForPayment8,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\",\n \"makePayment\")),new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\",\n \"makePayment\"));\n \n\n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n _operationClient.execute(true);\n\n \n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n \n return;\n }", "@Override\n public SoapEvent create(SoapEvent event) {\n throw new UnsupportedOperationException();\n }", "public edu.itq.soa.ResponseDocument.Response addNewResponse()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.itq.soa.ResponseDocument.Response target = null;\n target = (edu.itq.soa.ResponseDocument.Response)get_store().add_element_user(RESPONSE$0);\n return target;\n }\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.PatChargeList param,\r\n boolean optimizeContent, javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.PatChargeList.MY_QNAME,\r\n factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.GetItemDataPrint param,\r\n boolean optimizeContent, javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.GetItemDataPrint.MY_QNAME,\r\n factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "private SOAPMessage buildMessage(Document doc) throws SOAPException {\n MessageFactory mfact = MessageFactory.newInstance();\n SOAPMessage smsg = mfact.createMessage();\n SOAPPart prt = smsg.getSOAPPart();\n SOAPEnvelope env = prt.getEnvelope();\n SOAPBody bdy = env.getBody();\n bdy.addDocument(doc);\n smsg.saveChanges();\n\n return smsg;\n }", "amdocs.iam.pd.webservices.quotation.getquoteinput.GetQuoteInput addNewROOT();", "ch.crif_online.www.webservices.crifsoapservice.v1_00.SchufaResponseData addNewSchufaResponseData();", "com.exacttarget.wsdl.partnerapi.QueryRequestMsgDocument.QueryRequestMsg addNewQueryRequestMsg();", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.GetGhlb param, boolean optimizeContent,\r\n javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.GetGhlb.MY_QNAME, factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "public Map<String, String> initScenwebServiceRequest(String wsdlURL, String bodyElem, List<String[]> credentials, List<String[]> request, List<String[]> variables, List<String[]> debug) throws Exception {\r\n // create soap body\r\n SOAPElement soapBody = createSOAPBodyOdiInvoke();\r\n SOAPElement soapBodyElem = soapBody.addChildElement(bodyElem, \"odi\");\r\n \r\n SOAPElement creds = soapBodyElem.addChildElement(\"Credentials\");\r\n // loop to add credentials parameters\r\n for (Iterator<String[]> credentialsIt = credentials.iterator(); credentialsIt.hasNext(); ) {\r\n String[] param = credentialsIt.next();\r\n if(param[1]!=\"\") {\r\n SOAPElement childElement = creds.addChildElement(param[0]);\r\n childElement.addTextNode(param[1]);\r\n }\r\n }\r\n \r\n \r\n SOAPElement req = soapBodyElem.addChildElement(\"Request\");\r\n // loop to add request parameters\r\n for (Iterator<String[]> requestIt = request.iterator(); requestIt.hasNext(); ) {\r\n String[] param = requestIt.next();\r\n if(param[1]!=\"\") {\r\n SOAPElement childElement = req.addChildElement(param[0]);\r\n childElement.addTextNode(param[1]);\r\n }\r\n }\r\n /*\r\n // loop to add variables and values\r\n for (Iterator<String[]> variablesIt = variables.iterator(); variablesIt.hasNext(); ) {\r\n String[] param = variablesIt.next();\r\n if(param[2]!=\"\") {\r\n SOAPElement childElement = req.addChildElement(param[0],param[1]);\r\n childElement.addTextNode(param[2]);\r\n }\r\n }\r\n */\r\n \r\n SOAPElement deb = soapBodyElem.addChildElement(\"Debug\");\r\n // loop to add debug params values\r\n for (Iterator<String[]> debugIt = debug.iterator(); debugIt.hasNext(); ) {\r\n String[] param = debugIt.next();\r\n if(param[1]!=\"\") {\r\n SOAPElement childElement = deb.addChildElement(param[0]);\r\n childElement.addTextNode(param[1]);\r\n }\r\n }\r\n \r\n // save the message\r\n soapRequestMessage.saveChanges();\r\n /* Print the request message */\r\n System.out.print(\"Request SOAP Message:\");\r\n soapRequestMessage.writeTo(System.out);\r\n \r\n // send request and get response\r\n SOAPMessage soapResponse = createSOAPRequest(wsdlURL);\r\n \r\n \r\n // store response\r\n SOAPBody responseSoapBody = soapResponse.getSOAPBody();\r\n Iterator nodeIt = responseSoapBody.getChildElements();\r\n \r\n // get the full contents of the SOAP message\r\n return getContents(nodeIt,\" \");\r\n \r\n }", "@WebService(targetNamespace = \"http://cxf.poc.ideo.com/\", name = \"OperationService\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface OperationService {\n\n @WebResult(name = \"additionResponse\", targetNamespace = \"http://cxf.poc.ideo.com/\", partName = \"additionResponse\")\n @WebMethod\n public AdditionResponse addition(\n @WebParam(partName = \"additionRequest\", name = \"additionRequest\", targetNamespace = \"http://cxf.poc.ideo.com/\")\n AdditionRequest additionRequest\n );\n}", "@WebService(name = \"BilesikKutukSorgulaKimlikNoServis\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BilesikKutukSorgulaKimlikNoServis {\n\n\n /**\n * \n * @param kriterListesi\n * @return\n * returns services.kps.bilesikkutuk.BilesikKutukBilgileriSonucu\n */\n @WebMethod(operationName = \"Sorgula\", action = \"http://kps.nvi.gov.tr/2017/08/01/BilesikKutukSorgulaKimlikNoServis/Sorgula\")\n @WebResult(name = \"SorgulaResult\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n @RequestWrapper(localName = \"Sorgula\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.Sorgula\")\n @ResponseWrapper(localName = \"SorgulaResponse\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.SorgulaResponse\")\n public BilesikKutukBilgileriSonucu sorgula(\n @WebParam(name = \"kriterListesi\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n ArrayOfBilesikKutukSorgulaKimlikNoSorguKriteri kriterListesi);\n\n}", "public sample.ws.HelloWorldWSStub.InitializeHelloWorldWSResponse initializeHelloWorldWS(\n\n sample.ws.HelloWorldWSStub.InitializeHelloWorldWS initializeHelloWorldWS10)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\n _operationClient.getOptions().setAction(\"initializeCourseWS\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n initializeHelloWorldWS10,\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.sample/\",\n \"initializeHelloWorldWS\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n sample.ws.HelloWorldWSStub.InitializeHelloWorldWSResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (sample.ws.HelloWorldWSStub.InitializeHelloWorldWSResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }" ]
[ "0.6466527", "0.64588964", "0.64550704", "0.6442585", "0.6442344", "0.64423156", "0.643035", "0.6413627", "0.64116323", "0.6399173", "0.6376937", "0.6375919", "0.62843937", "0.6192652", "0.61811596", "0.6147905", "0.61339223", "0.6132903", "0.6132549", "0.61120677", "0.6094197", "0.6090564", "0.6024762", "0.6007883", "0.5999467", "0.5998379", "0.59879833", "0.5928532", "0.59273446", "0.5893209", "0.5763434", "0.5739903", "0.5737744", "0.57165223", "0.5713342", "0.55516213", "0.5511361", "0.5505422", "0.550458", "0.5503587", "0.5484037", "0.5483647", "0.53650045", "0.5347536", "0.53337914", "0.5329974", "0.53297645", "0.53128827", "0.531042", "0.5308876", "0.53067535", "0.5289867", "0.5287851", "0.5286455", "0.52671033", "0.52308214", "0.5209069", "0.5189651", "0.51879555", "0.5166462", "0.51639706", "0.5160517", "0.5160297", "0.51601005", "0.5159381", "0.5154865", "0.51525086", "0.51408786", "0.51287407", "0.5105518", "0.5103717", "0.5096649", "0.5095367", "0.5092867", "0.5091671", "0.50905424", "0.5073832", "0.50598454", "0.5057385", "0.5039917", "0.5036469", "0.5034685", "0.5025963", "0.5017114", "0.50149125", "0.5006187", "0.4992219", "0.49814752", "0.49643758", "0.49597725", "0.49505252", "0.49443614", "0.49359354", "0.49346206", "0.4934458", "0.49289596", "0.49281582", "0.4918267", "0.49138036", "0.49137986" ]
0.5948357
27
Unsets the "soap" element
public void unsetSoap() { synchronized (monitor()) { check_orphaned(); get_store().remove_element(SOAP$2, 0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetListOfServiceElements();", "void unsetServiceId();", "@Override\n public void clearAll() {\n serviceProcessor.process(ClearAllSoapEventInput.builder().build());\n }", "private void reset() {\n // TODO add your handling code here:\n MyObject m = new Mockups().singlePayout();\n\n String body = \"<ns1:SinglePayoutRequest>\\n\"\n + \"\t<ns1:CardPayoutRequest>\\n\"\n + \"\t\t<ns1:Account>\\n\"\n + \"\t\t\t<ns1:PayGateId>\" + m.getProperty(\"payGateID\") + \"</ns1:PayGateId>\\n\"\n + \"\t\t\t<ns1:Password>\" + m.getProperty(\"password\") + \"</ns1:Password>\\n\"\n + \"\t\t</ns1:Account>\\n\"\n + \"\t\t<ns1:Customer>\\n\"\n + \"\t\t\t<ns1:FirstName>\" + m.getProperty(\"firstname\") + \"</ns1:FirstName>\\n\"\n + \"\t\t\t<ns1:LastName>\" + m.getProperty(\"lastname\") + \"</ns1:LastName>\\n\"\n + \"\t\t\t<ns1:Email>\" + m.getProperty(\"email\") + \"</ns1:Email>\\n\"\n + \"\t\t</ns1:Customer>\\n\"\n + \"\t\t<ns1:CardNumber>\" + m.getProperty(\"cardNumber\") + \"</ns1:CardNumber>\\n\"\n + \"\t\t<ns1:CardExpiryDate>\" + m.getProperty(\"cardExpDate\") + \"</ns1:CardExpiryDate>\\n\"\n + \"\t\t<ns1:Order>\\n\"\n + \"\t\t\t<ns1:MerchantOrderId>\" + m.getProperty(\"merchantOrderID\") + \"</ns1:MerchantOrderId>\\n\"\n + \"\t\t\t<ns1:Currency>\" + m.getProperty(\"currency\") + \"</ns1:Currency>\\n\"\n + \"\t\t\t<ns1:Amount>\" + m.getProperty(\"amount\") + \"</ns1:Amount>\\n\"\n + \"\t\t</ns1:Order>\\n\"\n + \"\t</ns1:CardPayoutRequest>\\n\"\n + \"</ns1:SinglePayoutRequest>\\n\";\n payGateIDField.setText((String) m.getProperty(\"payGateID\"));\n passwordField.setText((String) m.getProperty(\"password\"));\n firstnameField.setText((String) m.getProperty(\"firstname\"));\n lastnameField.setText((String) m.getProperty(\"lastname\"));\n emailField.setText((String) m.getProperty(\"email\"));\n cardNumberField.setText((String) m.getProperty(\"cardNumber\"));\n cardExpiryDateField.setText((String) m.getProperty(\"cardExpiryDate\"));\n merchantOrderIDField.setText((String) m.getProperty(\"merchantOrderID\"));\n currencyField.setText((String) m.getProperty(\"currency\"));\n amountField.setText((String) m.getProperty(\"amount\"));\n requestArea.setText(body);\n }", "public void reset() \n throws SignedDocException;", "protected void clearElement(final ELEMENT element)\r\n {\r\n //Does nothing by default\r\n }", "void clearService();", "public void unsetReset() {\n\t\twasReset=false;\n\t}", "public void reset() {\n this.response.reset();\n }", "public void clear()\r\n/* 416: */ {\r\n/* 417:580 */ this.headers.clear();\r\n/* 418: */ }", "void unsetNamespace();", "public void setSoap(au.gov.asic.types.SoapSoftwareIdentifierType soap)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.SoapSoftwareIdentifierType target = null;\n target = (au.gov.asic.types.SoapSoftwareIdentifierType)get_store().find_element_user(SOAP$2, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.SoapSoftwareIdentifierType)get_store().add_element_user(SOAP$2);\n }\n target.set(soap);\n }\n }", "private void clearResponse() { response_ = null;\n \n }", "private void clearResponse() { response_ = null;\n \n }", "void clearSessionTaxDocument();", "void unsetSchufaResponseData();", "private void clearChangeHeadpicRsp() {\n if (rspCase_ == 17) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "private void clearRequest() { request_ = null;\n \n }", "@DeleteMapping(\"ElementWebService/removeAll\")\n\tpublic void removeAll() {\n\t\telementService.removeAll();\n\t}", "void unsetCapitalPayed();", "public void clear() {\n unbindPassive();\n transferControl.clear();\n passiveMode = false;\n remotePort = -1;\n localPort = -1;\n }", "public export.serializers.avro.DeviceInfo.Builder clearService() {\n service = null;\n fieldSetFlags()[1] = false;\n return this;\n }", "void unsetMethod();", "public void unsetProxy() {\n remote.setProxy(null);\n }", "private void clearS2BRelay() {\n if (rspCase_ == 24) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "public void unsetFromAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FROMADDRESS$6, 0);\n }\n }", "void unsetHeader();", "public void unsetAutoForwardTriggeredSend()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(AUTOFORWARDTRIGGEREDSEND$16, 0);\n }\n }", "public void reset() {\n onoff.reset();\n itiefe.reset();\n itiefe.setEnabled(false);\n }", "void clear() throws PapooseException;", "public void unsetProtocol()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(PROTOCOL$0);\n }\n }", "public void off() {\n this.relay.set(Relay.Value.kOff);\n }", "private void clearChangeHeadpicRelay() {\n if (rspCase_ == 21) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "private void clearResponse() { response_ = null;\n bitField0_ = (bitField0_ & ~0x00000002);\n }", "void unsetServiceConfigurationList();", "public void do_clear(WebElement element) \n\t{\n\t\twaitHelper.waitForElement(element, ObjectReader.reader.getExplicitWait());\n\t\telement.clear();\n\t\tlog.info(\"Setting String Value as..... \");\n\t}", "public void reset() {\n\t\tvar.clear();\n\t\tname.clear();\n\t}", "void unsetExchange();", "public void reset() {\n m_nestingDepth = 0;\n m_namespaceDepth = -1;\n m_namespaceStack.clear();\n m_prefixes = new String[m_uris.length];\n m_prefixes[0] = \"\";\n m_prefixes[1] = \"xml\";\n m_extensionUris = null;\n m_extensionPrefixes = null;\n m_translateTable = null;\n m_translateTableStack.clear();\n }", "private void clearResponse() { response_ = null;\n bitField0_ = (bitField0_ & ~0x00000001);\n }", "public void reset() {\n\t\t\t\t\r\n\t\t\t}", "public void unsetServiceValue() throws JNCException {\n delete(\"service\");\n }", "private void clearPayment() { payment_ = null;\n bitField0_ = (bitField0_ & ~0x00000001);\n }", "public void off() {\n\n\t}", "public void clear() throws RemoteException, Error;", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "private void clearAS2Req() {\n if (reqCase_ == 16) {\n reqCase_ = 0;\n req_ = null;\n }\n }", "public void clear() {\n this.responseHeaders.clear();\n this.markupHeaders.clear();\n this.cookies.clear();\n }", "private void clearChangePasswordRsp() {\n if (rspCase_ == 15) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "public void reset() {\n }", "public void reset() {\n }", "public void reset() {\n }", "public void reset() {\n }", "private void clearUnreceivedMsgRes() {\n if (rspCase_ == 14) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "void unbind(Object element);", "public void reset () {}", "protected void reset(ProductosPuntoVenta dto) {\r\n }", "private void clearS2InfoReq() {\n if (reqCase_ == 17) {\n reqCase_ = 0;\n req_ = null;\n }\n }", "public void clear(WebElement element) {\n\t\telement.clear();\n\t}", "public com.autodesk.ws.avro.Call.Builder clearOperation() {\n operation = null;\n fieldSetFlags()[3] = false;\n return this;\n }", "void stopServices() throws IOException, SoapException;", "public void unsetInternal()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(INTERNAL$4, 0);\n }\n }", "public void unsetAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ADDRESS$2);\n }\n }", "public void clearProxyConfig();", "void unsetBox();", "public void reset() {\n\n\t}", "public void reset(){\n }", "public com.example.DNSLog.Builder clearResph() {\n resph = null;\n fieldSetFlags()[3] = false;\n return this;\n }", "public void unsetAutoReply()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(AUTOREPLY$18, 0);\n }\n }", "public void reset() {\n\t}", "public void reset() {\n\t}", "public void reset() {\n\t}", "public void reset() {\n\t}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, registry.ClientRegistryStub.RemoveUser param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\r\n throws org.apache.axis2.AxisFault{\r\n\r\n \r\n try{\r\n\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody().addChild(param.getOMElement(registry.ClientRegistryStub.RemoveUser.MY_QNAME,factory));\r\n return emptyEnvelope;\r\n } catch(org.apache.axis2.databinding.ADBException e){\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n \r\n\r\n }", "private void clearS2Rsp() {\n if (rspCase_ == 23) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "private void clearPort() {\n \n port_ = 0;\n }", "private void clearPort() {\n \n port_ = 0;\n }", "public void deleteNetWS() {\r\n/* 142 */ this._has_netWS = false;\r\n/* */ }", "void unsetRef();", "void unsetType();", "public void clear() {\n context = null;\n nestedElements.clear();\n }", "@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}", "public void remElementName(){\n ((MenuDMO) core).remElementName();\n }", "public void resetTipoBusqueda()\r\n {\r\n this.tipoBusqueda = null;\r\n }", "public void reset() {\n\n }", "void unsetValueAttachment();" ]
[ "0.64215314", "0.60987484", "0.5940472", "0.5874988", "0.5820606", "0.5790649", "0.5777495", "0.57717115", "0.57630354", "0.5742171", "0.5731225", "0.5725654", "0.57189053", "0.57189053", "0.5717604", "0.5700128", "0.56992525", "0.5695506", "0.56862", "0.567344", "0.56717604", "0.5656432", "0.56149596", "0.5612756", "0.5608497", "0.55939704", "0.55931246", "0.55860966", "0.55806154", "0.5562524", "0.55600405", "0.55458766", "0.5527112", "0.5521751", "0.5518759", "0.55143696", "0.5509596", "0.5494342", "0.5489131", "0.54850763", "0.54814464", "0.5462381", "0.5452573", "0.5450165", "0.5449356", "0.5425604", "0.5425604", "0.5425604", "0.5425604", "0.5425604", "0.5425604", "0.5425604", "0.5425604", "0.5425604", "0.5425604", "0.5425604", "0.5425604", "0.5425604", "0.5425604", "0.5425604", "0.5412541", "0.54115903", "0.5408051", "0.5402417", "0.5402417", "0.5402417", "0.5402417", "0.539739", "0.539715", "0.5394561", "0.53925335", "0.53898644", "0.53897786", "0.53889126", "0.53877294", "0.53862065", "0.53860027", "0.53838503", "0.5380621", "0.53776014", "0.5377151", "0.5373151", "0.5370148", "0.5366002", "0.5366002", "0.5366002", "0.5366002", "0.5365105", "0.53624153", "0.53583896", "0.53583896", "0.5354831", "0.5351242", "0.5349772", "0.5346173", "0.5342464", "0.53416544", "0.53398246", "0.53372896", "0.533703" ]
0.84522206
0
Gets the "internal" element
public boolean getInternal() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INTERNAL$4, 0); if (target == null) { return false; } return target.getBooleanValue(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InternalInstructionsElements getInternalInstructionsAccess() {\r\n\t\treturn pInternalInstructions;\r\n\t}", "public RTWElementRef getAsElement(int i);", "String getElem();", "Elem getElem();", "public String getInternalId() {\n\n return this.internalId;\n }", "Tag getInternal();", "public String getElement() { return element; }", "String getElement();", "Element getElement();", "public URI getInternalURL() {\n return internalURL;\n }", "public E getElement() { return element; }", "public I_Element getElement() {\n\t\treturn element;\n\t}", "public RTWElementRef lastAsElement();", "public Object getElement()\r\n\t\t{ return element; }", "public Element getElement() {\n return super.getElement();\n }", "public String getInternalId()\n {\n return internalId;\n }", "public Element getElement()\n {\n return m_Element;\n }", "public Element getElement() {\n/* 78 */ return this.e;\n/* */ }", "Elem getPointedElem();", "public Object getElement();", "Elem getQualifiedElem();", "public au.gov.asic.types.TrueType xgetInternal()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.TrueType target = null;\n target = (au.gov.asic.types.TrueType)get_store().find_element_user(INTERNAL$4, 0);\n return target;\n }\n }", "public Location getElement(){\n\t\t\treturn element;\n\t\t}", "@Override\n\t\tpublic WebElementFacade getUniqueElementInPage() {\n\t\t\treturn null;\n\t\t}", "final public Element getElement() {\n return element;\n }", "public Integer getINTERNAL_ID() {\n return INTERNAL_ID;\n }", "public int getElem()\r\n\t{\r\n\t\treturn elem;\r\n\t}", "public Element get_xml_info() {\n\t\treturn _xml_info;\n\t}", "public org.apache.xmlbeans.XmlString xgetAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCESSION$2, 0);\r\n return target;\r\n }\r\n }", "public SOAPMessage getInternalSOAPMessage() {\n return msg;\n }", "public WAVLNode getExternalNode()\r\n\t {\r\n\t\t return this.externalNode;\r\n\t }", "public T getElement() {\r\n\t\t\r\n\t\treturn element;\r\n\t\r\n\t}", "@Override\n\tpublic final Element getDocumentElement() {\n\t\treturn LocalDom.nodeFor(getDocumentElement0());\n\t}", "@Override\n\tpublic Element getElement() {\n\t\treturn null;\n\t}", "public T getElement() {\n\t\treturn element;\n\t}", "Element getGenericElement();", "public E getElement() {\r\n return element;\r\n }", "public Object getElement() {\n return element;\n }", "@Override\n\tpublic Element getElement() {\n\t\treturn elem;\n\t}", "public org.apache.xmlbeans.XmlString xgetIban()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(IBAN$6, 0);\n return target;\n }\n }", "public Element element() {\n\t\treturn _element;\n\t}", "public Element getElement() {\r\n\t\treturn element;\r\n\t}", "@Override\r\n\tpublic Object getElement(Object elementKey) {\n\t\treturn elements.get(elementKey);\r\n\t}", "public T getElement()\n {\n\n return element;\n }", "public T getElement() {\n return element;\n }", "public Element getElement() {\n return element;\n }", "public Element getElement() {\n return element;\n }", "Object element();", "Object element();", "public String getElementalName() {\n\t\treturn elementalName;\n\t}", "@Override\n\tCollection<T> internalElements() {\n\t\tCollection<T> values = new LinkedList<T>();\n\t\t\n\t\tfor(LinkedList<T> list : internalStorage.get(0).values()) {\n\t\t values.addAll(list);\t\n\t\t}\n\t\treturn values;\n\t}", "public WebElement getElement() {\n\t\treturn null;\r\n\t}", "public SVGElement getUsedFromElement()\n {\n int elementHandle = _getUsedFromElement(\n getNativeSVGProxyHandle(),\n getHandle());\n if (M2GObject.checkHandle(elementHandle))\n {\n return M2GSVGElement.buildElement(elementHandle, iDocument);\n }\n return null;\n }", "@Override\n\t\tpublic E getElement() throws IllegalStateException {\n\t\t\treturn element;\n\t\t}", "public Element getMemberElement() {\n return memberElement;\n }", "public Element getRootElement() {\r\n \r\n assert iRootElement!=null;\r\n \r\n return iRootElement;//here you go\r\n \r\n }", "public Entry<T> getInternal(Symbol internal) {\n\t\treturn getInternalTable().get(internal);\n\t}", "Element getElement() {\n\t\tElement result = element.clone();\n\t\tresult.setName(table.getName());\n\t\treturn result;\n\t}", "public Object getInternalValue()\n {\n return m_internalValue;\n }", "public String getElementId() {\n return elementId;\n }", "public Object element() { return e; }", "Element getElement(Position pos);", "public java.lang.String getAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "E getElement() throws IllegalStateException;", "Element getElement(String id);", "public String elementName() {\n return _element;\n }", "public String elementName() {\n return _element;\n }", "public BinaryNotDependencyElements getBinaryNotDependencyAccess() {\n\t\treturn pBinaryNotDependency;\n\t}", "@Property Element getDocumentElement();", "public String getElementReferenceIdentifier() {\n return this.toString();\n }", "public org.w3c.dom.Element getElement() {\n return element;\n }", "private Element peekElement() {\r\n return ((Element)this.elements.get(this.elements.size() - 1));\r\n }", "SmilObject get(String elementId) throws SmilException;", "public ElementHeader getElementHeader()\n {\n return elementHeader;\n }", "public String getEssentialElement() {\n\t\treturn essentialElement;\n\t}", "public WebElement getUlica() {\n\t\treturn Utils.waitForElementPresence(driver, By.name(\"address\"), 10);\n\t}", "public abstract Element getElement(int id) throws PositionEX;", "public static ENamedElement getElement(IAdaptable hint) {\n\t\tObject type = hint.getAdapter(IElementType.class);\n\t\tif (elements == null) {\n\t\t\telements = new IdentityHashMap<IElementType, ENamedElement>();\n\n\t\t\telements.put(Schema_1000, ESchemaPackage.eINSTANCE.getSchema());\n\n\t\t\telements.put(PersistentTable_2009,\n\t\t\t\t\tETablesPackage.eINSTANCE.getPersistentTable());\n\n\t\t\telements.put(Column_3001, ETablesPackage.eINSTANCE.getColumn());\n\n\t\t\telements.put(UniqueConstraint_3002,\n\t\t\t\t\tEConstraintsPackage.eINSTANCE.getUniqueConstraint());\n\n\t\t\telements.put(ForeignKey_3003,\n\t\t\t\t\tEConstraintsPackage.eINSTANCE.getForeignKey());\n\n\t\t\telements.put(ForeignKey_4001,\n\t\t\t\t\tEConstraintsPackage.eINSTANCE.getForeignKey());\n\n\t\t\telements.put(ForeignKey_4002,\n\t\t\t\t\tEConstraintsPackage.eINSTANCE.getForeignKey());\n\t\t}\n\t\treturn (ENamedElement) elements.get(type);\n\t}", "public String getElementName()\n {\n return ELEMENT_NAME;\n }", "public String getEl() {\r\n\t\treturn el;\r\n\t}", "protected abstract String getTopElementDesc();", "private Element getElement(String elementName) {\n if (getModel() == null) {\n return null;\n }\n return getModel().getActiveRange().getElement(elementName);\n }", "@Override\n\t\tprotected Element getElement(ElementType button) {\n\t\t\treturn null;\n\t\t}", "public Element referenceElement(final String nom) {\n return(cacheDefElement.get(nom));\n }", "public native Element getEl() /*-{\r\n\t\tvar proxy = this.@com.ait.toolkit.core.client.JsObject::getJsObj()();\r\n\t\tvar el = proxy.getEl();\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::instance(Lcom/google/gwt/core/client/JavaScriptObject;)(el);\r\n\t}-*/;", "private AnyType elementAt(BinaryNode<AnyType> t) {\n\t\treturn t == null ? null : t.element;\n\t}", "UmlElement getUmlElement();", "@Override\r\n public Element findElement()\r\n {\n return null;\r\n }", "public boolean isInternal()\n {\n return m_fInternal;\n }", "public E getElement()\n\t{\n\t\treturn this.data;\n\t}", "public final Uri getInternalUri() {\n return this.mInternalUri;\n }", "W getRootElement();", "public Object getElement()\n {return data;}", "ElementInfo getLastCreatedOrReleasedElementInfo();", "public interface IWlanElement {\n\n\t/**\n\t * retrieve element id\n\t * \n\t * @return\n\t */\n\tpublic byte getElementId();\n\t\n\t/**\n\t * data \n\t * @return\n\t */\n\tpublic byte[] getData();\n\t\n}", "public T getElement();", "RelatingBuildingElementType getRelatingBuildingElement();", "public T get() {\n return element;\n }", "public InternalValsElements getInternalValsAccess() {\r\n\t\treturn pInternalVals;\r\n\t}", "public Element getElement(String subExpression) {\n Element result = null;\n String expression = contextNode + \"/\" + subExpression;\n try {\n Node n = (Node)xp.evaluate(expression, source, XPathConstants.NODE);\n if (n.getNodeType() == Node.ELEMENT_NODE) result = (Element) n;\n } catch(Exception e) {\n Util.log(\"XML error: can't read node \" + expression + \".\");\n Util.logException(e);\n }\n return result;\n }" ]
[ "0.6442003", "0.6285699", "0.62844676", "0.627192", "0.61977416", "0.6175281", "0.6108633", "0.60334027", "0.6030262", "0.6019102", "0.60093915", "0.60041237", "0.59913886", "0.59863263", "0.597515", "0.5971399", "0.59632903", "0.5961241", "0.59541", "0.5933205", "0.59271884", "0.59214956", "0.5921157", "0.5852123", "0.585048", "0.5836914", "0.58012015", "0.58008903", "0.57939744", "0.5765951", "0.5761886", "0.5760482", "0.5754282", "0.574652", "0.57410306", "0.5740415", "0.5731552", "0.5726473", "0.57222855", "0.572158", "0.5707335", "0.5706387", "0.5703654", "0.56923056", "0.569098", "0.56782067", "0.56782067", "0.5671672", "0.5671672", "0.56712854", "0.5650924", "0.56471276", "0.5630936", "0.5627029", "0.56172127", "0.5616027", "0.5608661", "0.55806047", "0.5536352", "0.55132896", "0.5511797", "0.5491979", "0.54881996", "0.5487764", "0.548675", "0.5486047", "0.5486047", "0.5485663", "0.54805636", "0.5472694", "0.54709595", "0.5455782", "0.5450973", "0.5443676", "0.5437774", "0.54366136", "0.5435663", "0.5434149", "0.54265255", "0.5422423", "0.54218453", "0.5418442", "0.54178566", "0.5414532", "0.54064375", "0.54060215", "0.5386014", "0.53771347", "0.5373592", "0.53698015", "0.5360943", "0.53602225", "0.5359361", "0.535784", "0.53546786", "0.535106", "0.53423786", "0.5338677", "0.53269064", "0.5324823" ]
0.6306517
1
Gets (as xml) the "internal" element
public au.gov.asic.types.TrueType xgetInternal() { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.TrueType target = null; target = (au.gov.asic.types.TrueType)get_store().find_element_user(INTERNAL$4, 0); return target; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Element get_xml_info() {\n\t\treturn _xml_info;\n\t}", "public String getXML() {\n\t\treturn getXML(false);\n\t}", "Element toXML();", "public java.lang.String getXml();", "public Element toXMLElement() {\n return null;\n }", "abstract protected String getOtherXml();", "public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( VolumeRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}", "public InternalInstructionsElements getInternalInstructionsAccess() {\r\n\t\treturn pInternalInstructions;\r\n\t}", "public String\ttoXML()\t{\n\t\treturn toXML(0);\n\t}", "public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}", "public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}", "public String exportXML() {\n\n\t\tXStream xstream = new XStream();\n\t\txstream.setMode(XStream.NO_REFERENCES);\n\n\t\treturn xstream.toXML(this);\n\t}", "protected abstract Element toXmlEx(Document doc);", "public String getXml() {\n\t\treturn _xml;\n\t}", "public Document getXML() {\n\t\treturn null;\n\t}", "public boolean getInternal()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INTERNAL$4, 0);\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }", "public String getInternalId() {\n\n return this.internalId;\n }", "public String getXml() {\n return xml;\n }", "Tag getInternal();", "@GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }", "@GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }", "@GET\r\n @Produces(\"application/xml\")\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }", "public String toXML() {\n return null;\n }", "org.apache.xmlbeans.XmlString xgetDesc();", "public XML getXML() {\n return _mxo;\n }", "public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( QuotaUserRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}", "public Element getRootElement() {\r\n \r\n assert iRootElement!=null;\r\n \r\n return iRootElement;//here you go\r\n \r\n }", "org.apache.xmlbeans.XmlString xgetTarget();", "public String toXML() {\n return null;\n }", "@GET\n @Produces(MediaType.APPLICATION_XML)\n public String getXml() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }", "private static Element getXML(State state) {\n\t\tElement stateEle = new Element(\"State\");\n\t\tstateEle.setAttribute(\"Name\", state.getName());\n\t\tstateEle.setAttribute(\"x\", String.valueOf(state.getPoint().x));\n\t\tstateEle.setAttribute(\"y\", String.valueOf(state.getPoint().y));\n\t\treturn stateEle;\n\t}", "public java.lang.String getXmlx() {\r\n return localXmlx;\r\n }", "public java.lang.String getRequestXml(){\n return localRequestXml;\n }", "public java.lang.String getRequestXml(){\n return localRequestXml;\n }", "public java.lang.String getRequestXml(){\n return localRequestXml;\n }", "public java.lang.String getRequestXml(){\n return localRequestXml;\n }", "public java.lang.String getRequestXml(){\n return localRequestXml;\n }", "public java.lang.String getRequestXml(){\n return localRequestXml;\n }", "public java.lang.String getRequestXml(){\n return localRequestXml;\n }", "public java.lang.String getRequestXml(){\n return localRequestXml;\n }", "public java.lang.String getRequestXml(){\n return localRequestXml;\n }", "public java.lang.String getResponseXml(){\n return localResponseXml;\n }", "public String getXMLBaseNodeName();", "public abstract String toXML();", "public abstract String toXML();", "public abstract String toXML();", "public org.apache.xmlbeans.XmlString xgetAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCESSION$2, 0);\r\n return target;\r\n }\r\n }", "public URI getInternalURL() {\n return internalURL;\n }", "protected Element toXmlElementInternal(Document doc, String a_strXmlElementName)\n\t{\n\t\tElement listenerInterfaceNode = doc.createElement(a_strXmlElementName);\n\t\t/* Create the child nodes of ListenerInterface (Type, Port, Host) */\n\t\tElement typeNode = doc.createElement(\"Type\");\n\t\tElement hostNode;\n\t\tElement portNode = null;\n\t\tXMLUtil.setValue(typeNode, getProtocolAsString());\n\t\tif (getProtocol() == PROTOCOL_TYPE_RAW_UNIX)\n\t\t{\n\t\t\thostNode = doc.createElement(XML_ELEM_FILE);\n\t\t\tXMLUtil.setValue(hostNode, m_strHostname);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tportNode = doc.createElement(XML_ELEM_PORT);\n\t\t\tXMLUtil.setValue(portNode, m_iInetPort);\n\t\t\thostNode = doc.createElement(XML_ELEM_HOST);\n\t\t\tXMLUtil.setValue(hostNode, m_strHostname);\n\t\t}\n\t\t/*String ipString = null;\n\t\t try\n\t\t {\n\t\t InetAddress interfaceAddress = InetAddress.getByName(m_strHostname);\n\t\t ipString = interfaceAddress.getHostAddress();\n\t\t }\n\t\t catch (Exception e)\n\t\t {\n\t\t // maybe inetHost is a hostname and no IP, but this solution is better than nothing\n\t\t ipString = m_strHostname;\n\t\t }\n\t\t Element ipNode = doc.createElement(\"IP\");\n\t\t ipNode.appendChild(doc.createTextNode(ipString));\n\t\t */\n\t\tif (m_bHidden)\n\t\t{\n\t\t\tXMLUtil.setAttribute(listenerInterfaceNode, XML_ATTR_HIDDEN, m_bHidden);\n\t\t}\n\t\telse if (m_bVirtual)\n\t\t{\n\t\t\tXMLUtil.setAttribute(listenerInterfaceNode, XML_ATTR_VIRTUAL, m_bVirtual);\n\t\t}\n\n\t\tlistenerInterfaceNode.appendChild(typeNode);\n\t\tif (portNode != null)\n\t\t{\n\t\t\tlistenerInterfaceNode.appendChild(portNode);\n\t\t}\n\t\tlistenerInterfaceNode.appendChild(hostNode);\n\t\t//listenerInterfaceNode.appendChild(ipNode);\n\t\treturn listenerInterfaceNode;\n\t}", "public static String getXMLElementTagName() {\n return \"aiMain\";\n }", "org.apache.xmlbeans.XmlString xgetDescription();", "public String getInternalId()\n {\n return internalId;\n }", "public org.apache.xmlbeans.XmlString xgetIban()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(IBAN$6, 0);\n return target;\n }\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }", "public abstract String getXMLName();", "public String getInXml() {\n return inXml;\n }", "public String toString()\n {\n return elementName;\n }", "public String toXml() {\n\t\treturn(toString());\n\t}", "String getElem();", "public SOAPMessage getInternalSOAPMessage() {\n return msg;\n }", "public InputSource getDummyXml() {\n return getDummyXml(0);\n }", "public String getAxis2xml() {\r\n return axis2xml;\r\n }", "@Override\r\n public String toString() {\r\n \r\n assert iRootElement!=null;\r\n \r\n return iRootElement.toString();\r\n \r\n }", "@Override\n\tpublic Element toElement() {\n\t\treturn null;\n\t}", "org.apache.xmlbeans.XmlString xgetPurpose();", "public String toXML() {\n\t StringBuilder builder = new StringBuilder(\"<info \");\n\t builder.append(\"id=\\\"\" + mId + \"\\\"\");\n\t builder.append(\" type=\\\"\" + mType + \"\\\"\");\n\t builder.append(\" bytes=\\\"\" + mBytes + \"\\\"\");\n\n\t if (mHeight > 0)\n\t\tbuilder.append(\" height=\\\"\" + mHeight + \"\\\"\");\n\t if (mWidth > 0)\n\t\tbuilder.append(\" width=\\\"\" + mWidth + \"\\\"\");\n\t if (mUrl != null)\n\t\tbuilder.append(\" url=\\\"\" + mUrl + \"\\\"\");\n\t builder.append(\" />\");\n\t return builder.toString();\n\t}", "public RTWElementRef lastAsElement();", "protected abstract String getEventChildXML();", "@Override\n\tpublic final Element getDocumentElement() {\n\t\treturn LocalDom.nodeFor(getDocumentElement0());\n\t}", "public String toXMLTag() {\n\t\tfinal StringBuffer buffer = new StringBuffer();\n\t\ttoXMLTag(buffer,0);\n\t\treturn buffer.toString();\n\t}", "public org.apache.xmlbeans.XmlString xgetWeatherImage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(WEATHERIMAGE$2, 0);\n return target;\n }\n }", "org.apache.xmlbeans.XmlString xgetDomicilio();", "@Override\n public String getXmlDocument( HttpServletRequest request )\n {\n return XmlUtil.getXmlHeader( ) + getXml( request );\n }", "W getRootElement();", "Elem getQualifiedElem();", "UmlElement getUmlElement();", "public String getElement() { return element; }", "ElementInfo getLastCreatedOrReleasedElementInfo();", "public String getXML() //Perhaps make a version of this where the header DTD can be manually specified\n { //Also allow changing of generated tags to user specified values\n \n String xml = new String();\n xml= \"<?xml version = \\\"1.0\\\"?>\\n\";\n xml = xml + generateXML();\n return xml;\n }", "Element getGenericElement();", "Elem getElem();", "public String getElementalName() {\n\t\treturn elementalName;\n\t}", "public static String showXML(Element root) {\r\n StringBuffer strbuf = new StringBuffer();\r\n try {\r\n strbuf.append(\"<\");\r\n strbuf.append(root.getName());\r\n if (!\"\".equals(root.getNamespaceURI())) {\r\n strbuf.append(\" xmlns=\\\"\");\r\n strbuf.append(root.getNamespaceURI());\r\n strbuf.append(\"\\\"\");\r\n }\r\n accessAdditionalNamespaces(root, strbuf);\r\n accessAttribute(root, strbuf);\r\n strbuf.append(\">\");\r\n accessElement(root, strbuf);\r\n strbuf.append(\"</\");\r\n strbuf.append(root.getName());\r\n strbuf.append(\">\");\r\n return strbuf.toString();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "private XmlHelper() {}", "public String getXMLquery() {\n return localQuerytool.getXML();\n }", "public RTWElementRef getAsElement(int i);", "public String getResponseXml() {\r\n if (null == recentResponse)\r\n return \"\";\r\n else\r\n return recentResponse.toString();\r\n }", "String getElement();", "protected abstract ArrayList<Element> _toXml_();", "public OutEntries getFromSecondXml();" ]
[ "0.660818", "0.62366694", "0.6155149", "0.6147639", "0.61047596", "0.60530806", "0.59518677", "0.5936243", "0.59045464", "0.58682704", "0.58682704", "0.5824992", "0.5788595", "0.57880855", "0.57145834", "0.5712746", "0.5704783", "0.5701926", "0.5697513", "0.5687782", "0.5687782", "0.5687273", "0.56810004", "0.5680214", "0.56801176", "0.56589895", "0.56555927", "0.5634994", "0.5632577", "0.5626324", "0.5617087", "0.56104165", "0.56081176", "0.56081176", "0.56081176", "0.56081176", "0.56081176", "0.56081176", "0.56081176", "0.56081176", "0.56081176", "0.5606713", "0.56066936", "0.5600289", "0.5600289", "0.5600289", "0.5595127", "0.55838764", "0.55700547", "0.55574614", "0.5549054", "0.5538736", "0.5513091", "0.54933804", "0.54933804", "0.54933804", "0.54933804", "0.54933804", "0.54933804", "0.54933804", "0.54933804", "0.54933804", "0.54933804", "0.54933804", "0.5492798", "0.5472872", "0.5472611", "0.5466375", "0.5465548", "0.5462844", "0.5450149", "0.54340094", "0.54259145", "0.5425895", "0.53937656", "0.53935605", "0.5375402", "0.53727657", "0.53662115", "0.53611064", "0.5353628", "0.5346594", "0.53464204", "0.53417724", "0.5340765", "0.5334839", "0.5330477", "0.5324246", "0.53222466", "0.532163", "0.5311214", "0.5304092", "0.53014857", "0.52954644", "0.52926415", "0.52888906", "0.5287687", "0.5279324", "0.52617615", "0.52569586" ]
0.537832
76
True if has "internal" element
public boolean isSetInternal() { synchronized (monitor()) { check_orphaned(); return get_store().count_elements(INTERNAL$4) != 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isInternal();", "public boolean isInternal()\n {\n return m_fInternal;\n }", "boolean internal();", "public boolean getInternal()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INTERNAL$4, 0);\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }", "boolean hasElement();", "public boolean isInternalIndex() {\n return (this == itemIndex || this == withdrawnIndex || this == privateIndex);\n }", "protected boolean isStructureKnown() {\n\t\ttry {\n\t\t\treturn ((OpenableElementInfo) getElementInfo()).isStructureKnown();\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "protected boolean isInternal(BTNode<E> v){\n\t\treturn (v.leftChild() != null || v.rightChild() != null); \n }", "public abstract boolean isInternal(Position<E> p);", "public boolean isInternalThesis() {\n return hasThesis() && getThesis().isFinalAndApprovedThesis();\n }", "boolean hasReference();", "@ApiModelProperty(value = \"This is an internally managed gift certificate associated with the loyalty cash rewards program.\")\n public Boolean isInternal() {\n return internal;\n }", "private boolean hasIndexLink()\r\n \t{\r\n \t\treturn xPathQuery(XPath.INDEX_LINK.query).size() > 0;\r\n \t}", "private boolean isReference()\n {\n return countAttributes(REFERENCE_ATTRS) > 0;\n }", "public boolean isKnown();", "public static boolean hasElements() {\n return content.size() > 0;\n }", "public boolean isExternal()\n {\n return false;\n }", "public boolean hasInfos(){\n return infos != null;\n }", "boolean hasExternalAttributionModel();", "boolean hasRef();", "public boolean isPublic()\n {\n ensureLoaded();\n return m_flags.isPublic();\n }", "protected boolean Exists()\n\t{\n\t\tif (identity<1) return false;\n\t\tNodeReference nodeReference = getNodeReference();\n\t\treturn (nodeReference.exists() || nodeReference.hasSubnodes());\n\t}", "public Boolean getHasInternalDecoy() {\n\t\treturn proteinModeller.getInternalDecoysExist();\n\t}", "public boolean isInternalSensor() {\n return isInternalSensor;\n }", "boolean isInternal(Position<E> p) throws IllegalArgumentException;", "@Override\n\tpublic boolean isMemberOfStructure() {\n\t\treturn false;\n\t}", "boolean hasIsNodeOf();", "public boolean isStructureKnown() {\n return isStructureKnown;\n }", "public boolean hasReferences() {\n\t\treturn this.refCounter > 0;\n\t}", "boolean hasUnknown();", "boolean hasNested();", "public void setInternal(boolean internal)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INTERNAL$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INTERNAL$4);\n }\n target.setBooleanValue(internal);\n }\n }", "public boolean comesFromDiagramElement() {\n return getOriginalElement() != null;\n }", "protected boolean isReferenced() {\r\n return mReferenced || mUsers.size() > 0;\r\n }", "public boolean isEmbedded() throws PDFNetException {\n/* 783 */ return IsEmbedded(this.a);\n/* */ }", "public boolean isSetExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(EXTLST$28) != 0;\n }\n }", "@DISPID(1611006052) //= 0x60060064. The runtime will prefer the VTID if present\n @VTID(128)\n void linkedExternalReferencesOnlyOnPublication(\n boolean oOnlyForPublishedElements);", "public boolean canBeSeen()\n {\n if (!this.hasParent() || !this.isVisible())\n {\n return false;\n }\n\n GuiElement element = this;\n\n while (true)\n {\n if (!element.isVisible())\n {\n return false;\n }\n\n GuiElement parent = element.getParent();\n\n if (parent instanceof GuiDelegateElement && ((GuiDelegateElement) parent).delegate != element)\n {\n return false;\n }\n\n if (parent == null)\n {\n break;\n }\n\n element = parent;\n }\n\n return element instanceof GuiBase.GuiRootElement;\n }", "boolean hasNode();", "boolean hasNode();", "public Boolean external() {\n return this.external;\n }", "public boolean hasElt(int e) {\n\t\treturn false;\n\t}", "public boolean isPublic() {\r\n\t\treturn isPublic;\r\n\t}", "private boolean isInternal(String name) {\n return name.startsWith(\"java.\")\n || name.startsWith(\"javax.\")\n || name.startsWith(\"com.sun.\")\n || name.startsWith(\"javax.\")\n || name.startsWith(\"oracle.\");\n }", "boolean hasHadithReferenceNo();", "public boolean isSetAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(ACCESSION$2) != 0;\r\n }\r\n }", "boolean hasUknown();", "public boolean isSetExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(EXTLST$14) != 0;\n }\n }", "public boolean hasAnnotatedBusiness(){\r\n\t\tList bus = this.rootDoc.selectNodes(\"a-business\") ;\r\n\t\t\r\n\t\treturn !bus.isEmpty() ;\r\n\t}", "public boolean hasLink() {\n return !links.isEmpty();\n }", "public boolean member(D elt) {\n\treturn false;\n }", "boolean hasInfoType();", "@DISPID(1611006052) //= 0x60060064. The runtime will prefer the VTID if present\n @VTID(127)\n boolean linkedExternalReferencesOnlyOnPublication();", "public boolean isPrivate()\n {\n ensureLoaded();\n return m_flags.isPrivate();\n }", "@DISPID(1611006060) //= 0x6006006c. The runtime will prefer the VTID if present\n @VTID(135)\n boolean externalReferencesAsVisible();", "boolean hasPhy();", "boolean hasNestedOuterField();", "protected boolean isExternal(BTNode<E> v){\n\t\treturn (v.leftChild() == null && v.rightChild() == null); \n }", "public boolean hasData() {\r\n\t\treturn page.hasContent();\r\n\t}", "boolean known() {\n\t\t\treturn !varAddress && !varMask;\n\t\t}", "public boolean getIsVisualElementContainer()\n {\n return root.getType().isAssignableTo(standardDefs.INTERFACE_IVISUALELEMENTCONTAINER);\n }", "boolean hasExternalAttributionCredit();", "private boolean m125720o() {\n return isAdded() && !isDetached();\n }", "public boolean hasIntermediary() { return true; }", "@Override\n\tpublic boolean isPublic() {\n\t\treturn false;\n\t}", "public boolean isElement() {\r\n return element;\r\n }", "public boolean hasX() {\n return xBuilder_ != null || x_ != null;\n }", "public boolean hasX() {\n return xBuilder_ != null || x_ != null;\n }", "protected final boolean isLeaf() {\n return (getChildIds().isEmpty());\n }", "boolean hasNestedField();", "public boolean hasUknown() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasData();", "public boolean isNotEmpty(){\n return root != null;\n }", "boolean isPrivate();", "public void xsetInternal(au.gov.asic.types.TrueType internal)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.TrueType target = null;\n target = (au.gov.asic.types.TrueType)get_store().find_element_user(INTERNAL$4, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.TrueType)get_store().add_element_user(INTERNAL$4);\n }\n target.set(internal);\n }\n }", "public boolean hasItem() {\n return null != item;\n }", "public final boolean synpred53_InternalInstances() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred53_InternalInstances_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "boolean hasUnknown2();", "boolean hasUnknown2();", "boolean hasUnknown2();", "@java.lang.Override\n public boolean hasAddress() {\n return address_ != null;\n }", "public boolean isExtensionElement();", "@Override\n\tpublic boolean okToTraverse(Level3Element ele)\n\t{\n\t\treturn !ubiqueIDs.contains(ele.getUri());\n\t}", "public abstract boolean isExternal(Position<E> p);", "boolean hasHasNodeID();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "public boolean hasUknown() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isSetDirectForward()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DIRECTFORWARD$14) != 0;\n }\n }", "public boolean isPublic() {\n\t\treturn Modifier.isPublic(modifier);\n\t}", "public boolean isDefaultElement();", "public boolean isPrivate() {\n return this.priv;\n }", "boolean isPublic()\n {\n return this.visibility.equals(Visibility.PUBLIC);\n //|| this.visibility.equals(Visibility.INHERIT_FROM_SCOPE) && getTokenRef().findToken().getEnclosingScope().isDefaultVisibilityPrivate() == false;\n }", "@java.lang.Override\n public boolean hasNode() {\n return node_ != null;\n }", "@java.lang.Override\n public boolean hasNode() {\n return node_ != null;\n }" ]
[ "0.7746346", "0.71519905", "0.7042142", "0.6845759", "0.6598977", "0.65281653", "0.64517856", "0.6444378", "0.6378604", "0.6327865", "0.621297", "0.61939853", "0.6171264", "0.6159709", "0.6156842", "0.6154166", "0.6142302", "0.6135", "0.60972416", "0.6045406", "0.60355055", "0.601078", "0.60058594", "0.599114", "0.59906584", "0.59789854", "0.5975146", "0.596795", "0.59662527", "0.5964125", "0.5949605", "0.5941824", "0.5916339", "0.5912673", "0.59120333", "0.5912008", "0.5911028", "0.5906795", "0.5906383", "0.5906383", "0.589643", "0.58932066", "0.5892111", "0.58903646", "0.58884764", "0.5884849", "0.5877077", "0.5875167", "0.5870491", "0.5868877", "0.5868172", "0.58652925", "0.58570814", "0.5856087", "0.58556205", "0.58356965", "0.58217114", "0.58187556", "0.5817556", "0.5806989", "0.5796768", "0.57952714", "0.5792207", "0.5778696", "0.5777467", "0.57773966", "0.5770564", "0.5770564", "0.5766185", "0.575671", "0.575483", "0.5747347", "0.5746443", "0.57460433", "0.57450086", "0.57433176", "0.57393587", "0.5735669", "0.5735669", "0.5735669", "0.57343984", "0.573075", "0.5728767", "0.5723931", "0.5723043", "0.57154065", "0.57154065", "0.57154065", "0.57154065", "0.57154065", "0.57154065", "0.57154065", "0.5706305", "0.570145", "0.5700358", "0.5681991", "0.5678639", "0.567763", "0.5676387", "0.5676387" ]
0.72435087
1
Sets the "internal" element
public void setInternal(boolean internal) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INTERNAL$4, 0); if (target == null) { target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INTERNAL$4); } target.setBooleanValue(internal); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void xsetInternal(au.gov.asic.types.TrueType internal)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.TrueType target = null;\n target = (au.gov.asic.types.TrueType)get_store().find_element_user(INTERNAL$4, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.TrueType)get_store().add_element_user(INTERNAL$4);\n }\n target.set(internal);\n }\n }", "public void setInternalId( String internalId )\n {\n this.internalId = internalId;\n }", "public void setInternalId()\n {\n // generate a unique id that will be used for the internal id:\n UUID uuid = UUID.randomUUID();\n this.internalId = uuid.toString();\n }", "public void set(Object internalValue)\n {\n this.m_internalValue = internalValue;\n }", "public void setInternalURL(URI internalURL) {\n this.internalURL = internalURL;\n }", "public void setInternalId(String internalId) {\n\n if (internalId.isEmpty()) {\n\n /**\n * If Owner ID is ever an empty String, a NullPointerException will be thrown when the\n * listings are loaded in from the JSON file. I believe this is because the JSON parser we're\n * using stores empty Strings as \"null\" in the .json file. TODO this fix is fine for now, but\n * I want to make it safer in the future.\n */\n this.internalId = \" \";\n } else {\n\n this.internalId = internalId;\n }\n }", "public void setElement(String newElem) { element = newElem;}", "public void setINTERNAL_ID(Integer INTERNAL_ID) {\n this.INTERNAL_ID = INTERNAL_ID;\n }", "public final void setInternalName(String internalName){\n peripheralInternalName = internalName;\n }", "public void setInternalState(String internalState) {\n this.internalState = internalState;\n }", "public void setInternalAddress(String address);", "@Override\n\tpublic void setElement(Element element) {\n\t\t\n\t}", "public void unsetInternal()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(INTERNAL$4, 0);\n }\n }", "public void setInternalRelay(StanzaRelay internalRelay) {\n this.internalRelay = internalRelay;\n }", "public void setInternalRouter(Router internalRouter) {\r\n this.internalRouter = internalRouter;\r\n }", "public void setElement(Object e) {\n element = e;\n }", "public void setElementNeeded(ExternalElements pElementNeeded){\n\t\telementNeeded = pElementNeeded;\n\t}", "public void setInternalphone(java.lang.String newInternalphone) {\n\tinternalphone = newInternalphone;\n}", "public void setElem(int elem)\r\n\t{\r\n\t\tthis.elem = elem;\r\n\t}", "public ResourceMapping setInternal(boolean fInternal)\n {\n m_fInternal = fInternal;\n\n return this;\n }", "public void setElement(T elem)\n {\n\n element = elem;\n }", "public void setElement(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/element\",v);\n\t\t_Element=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "public void setElement(Element element) {\n this.element = element;\n }", "protected void setElement(int id, Instruction inst) {\n\t\tthis.ID = id;\n\t\tthis.inst = inst;\n\t}", "public void setElement(Location element){\n\t\t\tthis.element = element;\n\t\t}", "public void setElement(E element)\n\t{\n\t\tthis.data = element;\n\t}", "@Override\n public void setElementId(String arg0)\n {\n \n }", "public void setElement(boolean value) {\r\n this.element = value;\r\n }", "public void setElement(Element Element) {\n\t\telement = Element;\n\t}", "public void setInternalName(String name);", "public void setElement(E element) {\n\t\t\tthis.element = element;\n\t\t}", "public void setElement(T newvalue);", "public void setElement(WebElement element) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void updateElement() {\n\r\n\t}", "public void settInn(T element);", "public void setElement (T element) {\r\n\t\t\r\n\t\tthis.element = element;\r\n\t\r\n\t}", "protected void setCurrentElement(TestElement currentElement) throws NextIsNullException {\n }", "void setUnused(){\n assert this.used == true;\n\n //let the parent pointer remain\n this.hf = 0;\n this.used = false;\n\n }", "public abstract void setDataToElementXY();", "public void set (Object element)\n {\n if(!isAfterNext){\n throw new IllegalStateException(); \n }\n position.data = element;\n \n \n }", "protected void createInternalAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/internal\";\t\t\t\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "public static void setInternalState(Object object, String fieldName, Object value) {\n WhiteboxImpl.setInternalState(object, fieldName, value);\n }", "public void setEbeanServer(SpiEbeanServer internalEbean) {\n for (BeanDescriptor<?> desc : immutableDescriptorList) {\n desc.setEbeanServer(internalEbean);\n }\n }", "public void setUseInternalMenu( boolean b ) {\n _use_internal_menu = b;\n }", "public void setElement(T element) {\n\t\tthis.element = element;\n\t}", "public void setInternalGoToPageReference(String id, String pageReference)\n {\n IDNode node=(IDNode)idReferences.get(id);\n node.setInternalLinkGoToPageReference(pageReference);\n }", "public void setElement(MatrixElement pNewElement) {\r\n\t\tmElement = pNewElement;\r\n\t}", "public InternalInstructionsElements getInternalInstructionsAccess() {\r\n\t\treturn pInternalInstructions;\r\n\t}", "public void setValue(T v){\n \telement = v;\n }", "public void setInternalTradeId(java.lang.Long internalTradeId) {\n this.internalTradeId = internalTradeId;\n }", "public void visite(Element element) {\n\t\t\n\t}", "public void setElement(E e){\r\n\t\trotulo = e;\r\n\t}", "public void setPrivate()\n {\n ensureLoaded();\n m_flags.setPrivate();\n setModified(true);\n }", "public void setPublic()\n {\n ensureLoaded();\n m_flags.setPublic();\n setModified(true);\n }", "public static void setInternalState(Object object, String fieldName, Object[] value) {\n WhiteboxImpl.setInternalState(object, fieldName, value);\n }", "public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}", "public void newElement() {\r\n }", "void setData(int node_index, int element) {\n\t\tm_list_nodes.setField(node_index, 0, element);\n\t}", "public void xsetIban(org.apache.xmlbeans.XmlString iban)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(IBAN$6, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(IBAN$6);\n }\n target.set(iban);\n }\n }", "public boolean isInternal()\n {\n return m_fInternal;\n }", "public abstract void setInternal(int head, int ct, int t, int arm, int leg);", "void setAccessible(boolean accessible);", "private void setNextElement(Object entry)\n {\n __m_NextElement = entry;\n }", "public void xsetAccession(org.apache.xmlbeans.XmlString accession)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ACCESSION$2);\r\n }\r\n target.set(accession);\r\n }\r\n }", "public static void setInternalState(Object object, String fieldName, Object value) {\n Field foundField = findFieldInHierarchy(object, fieldName);\n setField(object, value, foundField);\n }", "public static native void SetAt(long lpjFbxArrayVector2, int pIndex, long pElement);", "public void xsetPart(org.apache.xmlbeans.XmlNCName part)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNCName target = null;\n target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(PART$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlNCName)get_store().add_element_user(PART$2);\n }\n target.set(part);\n }\n }", "public String getInternalId() {\n\n return this.internalId;\n }", "public void setExternalAddress(String address);", "public void setElement(String element) {\n this.element = element;\n }", "public void setElementAt(int n, Object ob) {\r\n\t\telements.set(n, ob);\r\n\t}", "public static void setInternalState(Object object, String fieldName, Object value, Class<?> where) {\n WhiteboxImpl.setInternalState(object, fieldName, value, where);\n }", "public void xsetBankDescription(org.apache.xmlbeans.XmlString bankDescription)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(BANKDESCRIPTION$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(BANKDESCRIPTION$2);\n }\n target.set(bankDescription);\n }\n }", "public void set_xml_info(Element _xml_info) {\n\t\tthis._xml_info = _xml_info;\n\t}", "public void setRecord(final ORecordInternal<?> iRecord) {\r\n\t\t// SAVES THE RECORD\r\n\t\tthis.record = iRecord;\r\n\t}", "public void setEndOneElement(ElementStub endOneElement)\n {\n this.endOneElement = endOneElement;\n }", "public void setComponent(ElementView jc) {\n\t\tthis.jc = jc;\n\t}", "void setElementValue(SetElementValue cmd);", "public void elSetReference(Object bean);", "public void xsetReferenceFileIPR(org.apache.xmlbeans.XmlString referenceFileIPR)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REFERENCEFILEIPR$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(REFERENCEFILEIPR$0);\n }\n target.set(referenceFileIPR);\n }\n }", "public void setParseElements(HashMap tmp) {\n this.parseElements = tmp;\n }", "void set(int index, Object element);", "public void setElementalName(String name) {\n\t\telementalName = name;\n \t}", "public void setElementHeader(ElementHeader elementHeader)\n {\n this.elementHeader = elementHeader;\n }", "public void setInformationField(InformationField i) {\n\tinformationField = i;\n }", "public void setElementName(SC elementName) {\n if(elementName instanceof org.hl7.hibernate.ClonableCollection)\n elementName = ((org.hl7.hibernate.ClonableCollection<SC>) elementName).cloneHibernateCollectionIfNecessary();\n _elementName = elementName;\n }", "public String getInternalId()\n {\n return internalId;\n }", "public void setIdentity(XMLFieldDescriptor fieldDesc) {\n if (fieldDesc != null) {\n if ( (! attributeDescriptors.contains(fieldDesc)) &&\n (! elementDescriptors.contains(fieldDesc))) {\n addFieldDescriptor(fieldDesc);\n }\n }\n this._identity = fieldDesc;\n }", "@ZAttr(id=358)\n public void setGalInternalSearchBase(String zimbraGalInternalSearchBase) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalInternalSearchBase, zimbraGalInternalSearchBase);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void changeHasInvisibility()\r\n\t{\r\n\t\thasInvisibility = !hasInvisibility;\r\n\t}", "protected void reference(H outerRef, C childRef) {\n\t\tthis.outerRef = outerRef;\n\t\tthis.THIS = childRef;\n\t}", "public void setValue(T element) {\n\t\t\n\t}", "public void xsetWeatherImage(org.apache.xmlbeans.XmlString weatherImage)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(WEATHERIMAGE$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(WEATHERIMAGE$2);\n }\n target.set(weatherImage);\n }\n }", "public void setPart(java.lang.String part)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PART$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PART$2);\n }\n target.setStringValue(part);\n }\n }", "public void setAdditionalInternalData(byte[] additionalIntData) {\n\t\tthis.additionalIntData=additionalIntData;\n\t}", "private void setPropertyInternal(String name, String value) {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n ph.setProperty(null, name, value, false);\n }", "public URI getInternalURL() {\n return internalURL;\n }", "@Override\n public void setElementHeader(ElementHeader elementHeader)\n {\n this.elementHeader = elementHeader;\n }", "private void setState(Element element, State state)\n\t{\n\t\tif (element != null) {\n\t\t\tif (state == State.FULL || state == null)\n\t\t\t\telement.removeAttribute(STATE_ATTR_NAME);\n\t\t\telse\n\t\t\t\telement.setAttribute(STATE_ATTR_NAME, state.toString());\n\t\t}\n\t}", "@DISPID(1611006052) //= 0x60060064. The runtime will prefer the VTID if present\n @VTID(128)\n void linkedExternalReferencesOnlyOnPublication(\n boolean oOnlyForPublishedElements);" ]
[ "0.77719194", "0.67222196", "0.6581571", "0.65580654", "0.6548127", "0.6223307", "0.6156045", "0.61459124", "0.607006", "0.60548276", "0.60250294", "0.5918828", "0.5856772", "0.5828114", "0.5826048", "0.58081055", "0.5787729", "0.5704201", "0.56199414", "0.5605569", "0.5592373", "0.5582706", "0.55418575", "0.55315185", "0.548517", "0.5436871", "0.5435561", "0.5418155", "0.54018384", "0.53546745", "0.5325017", "0.5313218", "0.5301458", "0.5284988", "0.5283201", "0.5275405", "0.5253556", "0.5246498", "0.5227972", "0.5220013", "0.5196571", "0.5195112", "0.51920575", "0.51874536", "0.5178243", "0.5173805", "0.5165306", "0.51369226", "0.5119958", "0.5090349", "0.5082025", "0.50502944", "0.5046344", "0.5032356", "0.5021581", "0.50028944", "0.4998509", "0.49965975", "0.49950397", "0.49884537", "0.49642348", "0.49625692", "0.49529418", "0.49488923", "0.49488303", "0.49485335", "0.49469158", "0.49353138", "0.49207643", "0.49010342", "0.49003214", "0.48982254", "0.48974958", "0.48928633", "0.4892381", "0.48744446", "0.48709446", "0.48696944", "0.4864394", "0.4860026", "0.4853853", "0.48431167", "0.48343018", "0.48317155", "0.48270994", "0.4823396", "0.48160115", "0.48106602", "0.48076215", "0.48046625", "0.47988078", "0.47945604", "0.47936314", "0.4793608", "0.47875842", "0.47831947", "0.47790948", "0.4778752", "0.47770366", "0.47756547" ]
0.79857016
0
Sets (as xml) the "internal" element
public void xsetInternal(au.gov.asic.types.TrueType internal) { synchronized (monitor()) { check_orphaned(); au.gov.asic.types.TrueType target = null; target = (au.gov.asic.types.TrueType)get_store().find_element_user(INTERNAL$4, 0); if (target == null) { target = (au.gov.asic.types.TrueType)get_store().add_element_user(INTERNAL$4); } target.set(internal); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInternal(boolean internal)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INTERNAL$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INTERNAL$4);\n }\n target.setBooleanValue(internal);\n }\n }", "public void setInternalId()\n {\n // generate a unique id that will be used for the internal id:\n UUID uuid = UUID.randomUUID();\n this.internalId = uuid.toString();\n }", "public void setInternalId( String internalId )\n {\n this.internalId = internalId;\n }", "public void setElement(String newElem) { element = newElem;}", "public void set_xml_info(Element _xml_info) {\n\t\tthis._xml_info = _xml_info;\n\t}", "public void set(Object internalValue)\n {\n this.m_internalValue = internalValue;\n }", "public void setInternalURL(URI internalURL) {\n this.internalURL = internalURL;\n }", "public void setElement(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/element\",v);\n\t\t_Element=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "@Override\n\tpublic void setElement(Element element) {\n\t\t\n\t}", "public void setXml(java.lang.String newXml);", "public void setInternalAddress(String address);", "public void setInternalId(String internalId) {\n\n if (internalId.isEmpty()) {\n\n /**\n * If Owner ID is ever an empty String, a NullPointerException will be thrown when the\n * listings are loaded in from the JSON file. I believe this is because the JSON parser we're\n * using stores empty Strings as \"null\" in the .json file. TODO this fix is fine for now, but\n * I want to make it safer in the future.\n */\n this.internalId = \" \";\n } else {\n\n this.internalId = internalId;\n }\n }", "public final void setInternalName(String internalName){\n peripheralInternalName = internalName;\n }", "@Override\n public void setElementId(String arg0)\n {\n \n }", "public void setResponseXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localResponseXmlTracker = true;\n } else {\n localResponseXmlTracker = true;\n \n }\n \n this.localResponseXml=param;\n \n\n }", "public void setElementNeeded(ExternalElements pElementNeeded){\n\t\telementNeeded = pElementNeeded;\n\t}", "public void setElement(Object e) {\n element = e;\n }", "void xsetDesc(org.apache.xmlbeans.XmlString desc);", "void xsetDomicilio(org.apache.xmlbeans.XmlString domicilio);", "public void setINTERNAL_ID(Integer INTERNAL_ID) {\n this.INTERNAL_ID = INTERNAL_ID;\n }", "public void setElement(Location element){\n\t\t\tthis.element = element;\n\t\t}", "public void exportElementToDoc(Element ge) {\n\t\tge.addAttribute(\"\", \"\");\n\t\tsuper.exportElementToDoc(ge);\n\t}", "public void setElement(Element element) {\n this.element = element;\n }", "public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRequestXmlTracker = true;\n } else {\n localRequestXmlTracker = true;\n \n }\n \n this.localRequestXml=param;\n \n\n }", "public void setInternalState(String internalState) {\n this.internalState = internalState;\n }", "protected void createInternalAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/internal\";\t\t\t\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public void setXmlx(java.lang.String param) {\r\n localXmlxTracker = param != null;\r\n\r\n this.localXmlx = param;\r\n }", "@Override protected void outputLocalXml(IvyXmlWriter xw)\n{\n xw.field(\"KIND\",\"FLOAT\");\n}", "public void setInternalRelay(StanzaRelay internalRelay) {\n this.internalRelay = internalRelay;\n }", "void xsetPurpose(org.apache.xmlbeans.XmlString purpose);", "protected void toXMLImpl(XMLStreamWriter out) throws XMLStreamException {\n // Start element:\n out.writeStartElement(getXMLElementTagName());\n\n out.writeAttribute(\"id\", getId());\n out.writeAttribute(\"accelerator\", getKeyStrokeText(getAccelerator()));\n\n out.writeEndElement();\n }", "Element toXML();", "public void setElement(Element Element) {\n\t\telement = Element;\n\t}", "private Doc(String documentElementName) {\n e = d.createElement(documentElementName);\n d.appendChild(e);\n }", "void setText(String text) throws XmlBuilderException;", "public void setElement(E element)\n\t{\n\t\tthis.data = element;\n\t}", "@Override\r\n\tpublic void updateElement() {\n\r\n\t}", "public void setInternalphone(java.lang.String newInternalphone) {\n\tinternalphone = newInternalphone;\n}", "void xsetSystem(org.apache.xmlbeans.XmlString system);", "public void openBlankXmlFile() {\n\t\t\n\t\t// the root of the xmlElement tree\n\t\trootNode = new XmlNode(this);\n\t\tXmlElement rootField = rootNode.getXmlElement();\n\t\t\n\t\trootField.setName(\"rootElement\", true);\n\t\t\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\trootNode.addChild(newNode);\n\t}", "void xsetID(org.apache.xmlbeans.XmlString id);", "public void xsetBankDescription(org.apache.xmlbeans.XmlString bankDescription)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(BANKDESCRIPTION$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(BANKDESCRIPTION$2);\n }\n target.set(bankDescription);\n }\n }", "public void unsetInternal()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(INTERNAL$4, 0);\n }\n }", "public void setInternalName(String name);", "protected void toXMLImpl(XMLStreamWriter out) throws XMLStreamException {\n super.toXML(out, getXMLElementTagName());\n }", "public abstract void setDataToElementXY();", "void xsetStation(org.landxml.schema.landXML11.Station station);", "public void setElement(T elem)\n {\n\n element = elem;\n }", "public void xsetPart(org.apache.xmlbeans.XmlNCName part)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNCName target = null;\n target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(PART$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlNCName)get_store().add_element_user(PART$2);\n }\n target.set(part);\n }\n }", "void xsetRawOffset(org.apache.xmlbeans.XmlInt rawOffset);", "protected Element toXmlElementInternal(Document doc, String a_strXmlElementName)\n\t{\n\t\tElement listenerInterfaceNode = doc.createElement(a_strXmlElementName);\n\t\t/* Create the child nodes of ListenerInterface (Type, Port, Host) */\n\t\tElement typeNode = doc.createElement(\"Type\");\n\t\tElement hostNode;\n\t\tElement portNode = null;\n\t\tXMLUtil.setValue(typeNode, getProtocolAsString());\n\t\tif (getProtocol() == PROTOCOL_TYPE_RAW_UNIX)\n\t\t{\n\t\t\thostNode = doc.createElement(XML_ELEM_FILE);\n\t\t\tXMLUtil.setValue(hostNode, m_strHostname);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tportNode = doc.createElement(XML_ELEM_PORT);\n\t\t\tXMLUtil.setValue(portNode, m_iInetPort);\n\t\t\thostNode = doc.createElement(XML_ELEM_HOST);\n\t\t\tXMLUtil.setValue(hostNode, m_strHostname);\n\t\t}\n\t\t/*String ipString = null;\n\t\t try\n\t\t {\n\t\t InetAddress interfaceAddress = InetAddress.getByName(m_strHostname);\n\t\t ipString = interfaceAddress.getHostAddress();\n\t\t }\n\t\t catch (Exception e)\n\t\t {\n\t\t // maybe inetHost is a hostname and no IP, but this solution is better than nothing\n\t\t ipString = m_strHostname;\n\t\t }\n\t\t Element ipNode = doc.createElement(\"IP\");\n\t\t ipNode.appendChild(doc.createTextNode(ipString));\n\t\t */\n\t\tif (m_bHidden)\n\t\t{\n\t\t\tXMLUtil.setAttribute(listenerInterfaceNode, XML_ATTR_HIDDEN, m_bHidden);\n\t\t}\n\t\telse if (m_bVirtual)\n\t\t{\n\t\t\tXMLUtil.setAttribute(listenerInterfaceNode, XML_ATTR_VIRTUAL, m_bVirtual);\n\t\t}\n\n\t\tlistenerInterfaceNode.appendChild(typeNode);\n\t\tif (portNode != null)\n\t\t{\n\t\t\tlistenerInterfaceNode.appendChild(portNode);\n\t\t}\n\t\tlistenerInterfaceNode.appendChild(hostNode);\n\t\t//listenerInterfaceNode.appendChild(ipNode);\n\t\treturn listenerInterfaceNode;\n\t}", "protected void setElement(int id, Instruction inst) {\n\t\tthis.ID = id;\n\t\tthis.inst = inst;\n\t}", "public void setElement(boolean value) {\r\n this.element = value;\r\n }", "@Override\n public void setConfigXML(Collection<Element> configXML, boolean visAvailable) {\n }", "public void setElement(E element) {\n\t\t\tthis.element = element;\n\t\t}", "public void setInputXml(java.lang.String param) {\r\n localInputXmlTracker = param != null;\r\n\r\n this.localInputXml = param;\r\n }", "public void setInputXml(java.lang.String param) {\r\n localInputXmlTracker = param != null;\r\n\r\n this.localInputXml = param;\r\n }", "public void xsetAccession(org.apache.xmlbeans.XmlString accession)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ACCESSION$2);\r\n }\r\n target.set(accession);\r\n }\r\n }", "abstract void putXMLProperty(XMLName name, Object value);", "@Override\r\n\tpublic void setInnerText(String arg0) {\n\t\t\r\n\t}", "public XMLElement() {\n this(new Properties(), false, true, true);\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "public void setRequestXml(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localRequestXml=param;\n \n\n }", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "protected abstract Element toXmlEx(Document doc);", "public void setElement(T newvalue);", "void addEntry(IvyXmlWriter xw) \n{\n xw.begin(\"USERFILE\");\n xw.field(\"NAME\",access_name);\n xw.field(\"JARNAME\",context_name);\n xw.field(\"ACCESS\",file_mode);\n xw.end(\"USERFILE\");\n}", "public void xsetDesc(org.apache.xmlbeans.XmlString desc)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESC$10);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DESC$10);\r\n }\r\n target.set(desc);\r\n }\r\n }", "public void setInternalRouter(Router internalRouter) {\r\n this.internalRouter = internalRouter;\r\n }", "void xsetRef(org.apache.xmlbeans.XmlToken ref);", "public void setXmlProducerWrapper(final IWrapper < XmlProducer, String > theXmlProducerWrapper) {\r\n this.xmlProducerWrapper = theXmlProducerWrapper;\r\n }", "@Override\n\tpublic void setInnerText(String arg0) {\n\n\t}", "void xsetPoolNumber(org.apache.xmlbeans.XmlInt poolNumber);", "public void xsetReferenceFileIPR(org.apache.xmlbeans.XmlString referenceFileIPR)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REFERENCEFILEIPR$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(REFERENCEFILEIPR$0);\n }\n target.set(referenceFileIPR);\n }\n }", "@Override\n\tpublic void write() {\n\t\tSystem.out.println(\"使用xml方式存储\");\n\t}", "public void setReference(javax.xml.namespace.QName reference)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFERENCE$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REFERENCE$0);\n }\n target.setQNameValue(reference);\n }\n }", "public Element toXMLElement() {\n return null;\n }", "private XmlHelper() {}", "public Unknown2XML() {\n reflectUtil = new ReflectUtil();\n// mappers = new HashMap<Class<?>, XMLMapper>();\n }", "public ResourceMapping setInternal(boolean fInternal)\n {\n m_fInternal = fInternal;\n\n return this;\n }", "public abstract void setParent (XMLReader parent);", "void xsetCurp(org.apache.xmlbeans.XmlString curp);" ]
[ "0.72323126", "0.6191754", "0.60043675", "0.5987199", "0.59462756", "0.5920011", "0.5904695", "0.5846473", "0.5827439", "0.58058906", "0.57124794", "0.5704199", "0.5670073", "0.5561366", "0.55515057", "0.55499125", "0.54859686", "0.54372334", "0.5411704", "0.5404129", "0.53928185", "0.53873676", "0.5317527", "0.5311641", "0.5311641", "0.5311641", "0.5311641", "0.5311641", "0.5311641", "0.5311641", "0.5311641", "0.5311641", "0.53031635", "0.52977926", "0.5296904", "0.5287255", "0.5282969", "0.52824646", "0.52787495", "0.52630186", "0.5252816", "0.52445745", "0.52110577", "0.5191821", "0.5177512", "0.51746166", "0.51732254", "0.51455945", "0.51442075", "0.51323396", "0.51284987", "0.5126551", "0.51264584", "0.51132315", "0.51089", "0.50985473", "0.509402", "0.50906193", "0.5081198", "0.50808865", "0.5072576", "0.50686574", "0.50662255", "0.5060986", "0.50573987", "0.50573987", "0.50571257", "0.5045175", "0.50450146", "0.5043174", "0.5039472", "0.5039472", "0.5039472", "0.5039472", "0.5039472", "0.5039472", "0.5039472", "0.5039472", "0.5039472", "0.5039472", "0.5039472", "0.50178224", "0.5016676", "0.49957934", "0.49943474", "0.49943128", "0.49925128", "0.49910274", "0.49866903", "0.49847797", "0.49806106", "0.4979718", "0.4976177", "0.49752295", "0.49723577", "0.49716955", "0.4968343", "0.4963537", "0.49558535", "0.49487668" ]
0.71851164
1
Unsets the "internal" element
public void unsetInternal() { synchronized (monitor()) { check_orphaned(); get_store().remove_element(INTERNAL$4, 0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void unsetGeneral()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GENERAL$20, 0);\r\n }\r\n }", "public void unsetRegular()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(REGULAR$2, 0);\n }\n }", "public void unsetEmbl()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(EMBL$10, 0);\r\n }\r\n }", "public void unset(){\n\t\tcurrentInst = -1;\n\t}", "public void xsetInternal(au.gov.asic.types.TrueType internal)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.TrueType target = null;\n target = (au.gov.asic.types.TrueType)get_store().find_element_user(INTERNAL$4, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.TrueType)get_store().add_element_user(INTERNAL$4);\n }\n target.set(internal);\n }\n }", "public void unsetAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(ACCESSION$2, 0);\r\n }\r\n }", "public void unsetIban()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(IBAN$6, 0);\n }\n }", "public void unsetLocal()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(LOCAL$0, 0);\r\n }\r\n }", "public void unsetTpd()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(TPD$34, 0);\r\n }\r\n }", "public void unsetWholeTbl()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(WHOLETBL$2, 0);\n }\n }", "void unsetRef();", "public void setInternal(boolean internal)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INTERNAL$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INTERNAL$4);\n }\n target.setBooleanValue(internal);\n }\n }", "public void unsetGiim()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GIIM$6, 0);\r\n }\r\n }", "public void unsetItalic()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ITALIC$6, 0);\n }\n }", "public void unsetPart()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(PART$2, 0);\n }\n }", "public void unsetSoap()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(SOAP$2, 0);\n }\n }", "public void unsetSwCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(SWCELL$20, 0);\n }\n }", "public void unsetGenbank()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GENBANK$8, 0);\r\n }\r\n }", "public void unsetGi()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GI$22, 0);\r\n }\r\n }", "public void unsetExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(EXTLST$14, 0);\n }\n }", "public void unsetExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(EXTLST$28, 0);\n }\n }", "public void unsetGibbmt()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GIBBMT$4, 0);\r\n }\r\n }", "public void unsetPir()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(PIR$12, 0);\r\n }\r\n }", "public void resetCurrentElement() {\r\n\t\tcurrentNode = firstNode;\r\n\t}", "public void clear()\n\t{\n\t\tbitHolder.setValue(0);\n\t}", "public void unsetOther()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(OTHER$18, 0);\r\n }\r\n }", "public void unsetReset() {\n\t\twasReset=false;\n\t}", "void unsetControlType();", "public void unsetZyhtVO()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ZYHTVO$0, 0);\n }\n }", "public void clear() {\r\n\t\tbitset.clear();\r\n\t\tnumberOfAddedElements = 0;\r\n\t}", "public void clear() {\r\n\t\tthis.document = null;\r\n\t\tthis.elements.clear();\r\n\t}", "void reset() {\n this.pointer = 0;\n }", "void unsetControlPosition();", "public void unsetBank()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BANK$0, 0);\n }\n }", "void unsetDesc();", "public void unsetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(STATE$8, 0);\r\n }\r\n }", "public void reset() {\n aCollection = this.asciiMathLibraryBlock.getOwnedElement().stream().filter(e -> e instanceof NamedElement).collect(Collectors.toList());\n cCollection = this.customFuncBlock.getOwnedElement().stream().filter(e -> e instanceof NamedElement).collect(Collectors.toList());\n }", "public void reset(){\r\n \tif (blank != null){\r\n \t\tblank.clear();\r\n \t}\r\n \tif (blankNode != null){\r\n \t\tblankNode.clear();\r\n \t}\r\n }", "public void clear() {\n context = null;\n nestedElements.clear();\n }", "public void unsetTpe()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(TPE$32, 0);\r\n }\r\n }", "void unsetValue();", "void unsetValue();", "public void unsetId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ID$6, 0);\n }\n }", "void unsetValueAttachment();", "public void unassignBaseBuilder() {\n\t\tbaseBuilder = null;\n\t}", "public void clear() {\n\t members = 0;\n\t dense[0] = -1;\n\t}", "void unsetOffset();", "public void unsetMedication()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(MEDICATION$10, 0);\n }\n }", "protected void clearElement(final ELEMENT element)\r\n {\r\n //Does nothing by default\r\n }", "public void unsetTpg()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(TPG$30, 0);\r\n }\r\n }", "public void unsetText()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TEXT$18, 0);\n }\n }", "public void unsetSeCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(SECELL$18, 0);\n }\n }", "public void unsetNamedAnnotTrack()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(NAMEDANNOTTRACK$38, 0);\r\n }\r\n }", "void unsetCit();", "public void unsetDirectForward()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DIRECTFORWARD$14, 0);\n }\n }", "public void reset() {\n onoff.reset();\n itiefe.reset();\n itiefe.setEnabled(false);\n }", "public void remElementName(){\n ((MenuDMO) core).remElementName();\n }", "void unsetState();", "public void unsetImport()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(IMPORT$0, 0);\n }\n }", "public void unsetBrowse()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BROWSE$2, 0);\n }\n }", "public void unsetNwCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(NWCELL$26, 0);\n }\n }", "public void unsetBankDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BANKDESCRIPTION$2, 0);\n }\n }", "void unset() {\n size = min = pref = max = UNSET;\n }", "public void unsetPrf()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(PRF$26, 0);\r\n }\r\n }", "public void clear() {\n\t\tstate = null;\n\t}", "public void unsetRelease()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(RELEASE$4, 0);\r\n }\r\n }", "public void reset() {\n\t\t\t\t\r\n\t\t\t}", "void unsetRawOffset();", "public void off() {\n\n\t}", "public void unsetThead()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(THEAD$6, 0);\n }\n }", "public void unsetPatient()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(PATIENT$2, 0);\n }\n }", "private void clearX() {\n bitField0_ = (bitField0_ & ~0x00000001);\n x_ = 0L;\n }", "public void unsetMetadata()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(METADATA$0, 0);\n }\n }", "public final void clear() {\r\n\t\t// Let gc do its work\r\n\t\tfor (int i = this.size - 1; i >= 0; --i) {\r\n\t\t\tthis.elementData[i] = null;\r\n\t\t}\r\n\t\tthis.size = 0;\r\n\t}", "public void unsetWeatherImage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(WEATHERIMAGE$2, 0);\n }\n }", "void unsetType();", "@Override\n public void clear() {\n elements.clear();\n indexByElement.clear();\n }", "public native void clearReferent();", "public void unsetFromAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FROMADDRESS$6, 0);\n }\n }", "public void reset() {\n\t\tlocalName = \"\";\n\t\turi = \"\";\n\t\tdata = null;\n\t\tchars = null;\n\t\tcharCount = 0;\n\t\tline = 0;\n\t\tcolumn = 0;\n\t\tleaf = true;\n\t}", "void unbind(Object element);", "public final void clear()\n {\n this.pointer = 0;\n }", "public void unsetDataMsng()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATAMSNG$18, 0);\n }\n }", "public void clearRemovalTag() {\n\t levelOfRemoval = 0;\n\t}", "public void unsetFromNumber()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FROMNUMBER$2, 0);\n }\n }", "void setUnused(){\n assert this.used == true;\n\n //let the parent pointer remain\n this.hf = 0;\n this.used = false;\n\n }", "public void unsetDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DESCRIPTION$2, 0);\n }\n }", "public static void reset() {\n\t\tnodes.clear();\n\t\tid = 0;\n\t}", "public void unsetNeCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(NECELL$24, 0);\n }\n }", "public void unsetTypeId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TYPEID$2, 0);\n }\n }", "public void clear() {\n\t\tn1 = n0 = 0L;\n\t}", "public void reset() {\n this.state = null;\n }", "public void unsetPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(PATENT$16, 0);\r\n }\r\n }", "public void unsetRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(ROADWAYREF$16);\r\n }\r\n }", "public void unsetAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ADDRESS$2);\n }\n }", "public void unAssign(){\n\t\tthis.value = 0;\n\t}", "public void unsetBoldItalic()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BOLDITALIC$8, 0);\n }\n }", "public void reset(){\n active = false;\n done = false;\n state = State.invisible;\n curX = 0;\n }", "void unsetDescription();", "void unsetDescription();" ]
[ "0.6724907", "0.6671418", "0.6482708", "0.6463698", "0.6422401", "0.63991505", "0.63827056", "0.6353578", "0.6332989", "0.6287599", "0.62680703", "0.6256071", "0.6251017", "0.6244327", "0.62284666", "0.6219965", "0.61930513", "0.6189858", "0.6178372", "0.6143889", "0.61425734", "0.6125399", "0.6124283", "0.61214846", "0.6118152", "0.61172295", "0.6114277", "0.6110151", "0.60772264", "0.60688746", "0.60685974", "0.60486674", "0.60459006", "0.60403085", "0.603278", "0.60235083", "0.60210687", "0.6017837", "0.60124415", "0.6012268", "0.6004276", "0.6004276", "0.5986857", "0.59847105", "0.59793067", "0.59786993", "0.59770966", "0.59767854", "0.5967876", "0.59663457", "0.5962073", "0.5957751", "0.5947895", "0.59476703", "0.5942982", "0.5936328", "0.59314966", "0.59203047", "0.591498", "0.5913131", "0.5906119", "0.5884409", "0.587849", "0.58780915", "0.584606", "0.58438796", "0.58432174", "0.58425343", "0.58401215", "0.5836708", "0.5826246", "0.5825237", "0.5824446", "0.582183", "0.58186424", "0.5817742", "0.58168507", "0.58103627", "0.5810046", "0.580722", "0.5801394", "0.579776", "0.57938534", "0.57906365", "0.57860416", "0.57763976", "0.5772077", "0.5769166", "0.5768432", "0.5764206", "0.5757415", "0.5754191", "0.5749045", "0.57478064", "0.5743854", "0.57427484", "0.57408047", "0.5738793", "0.5737516", "0.5737516" ]
0.8113258
0
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPACES);\n }", "private String toIndentedString(Object o)\n/* */ {\n/* 128 */ if (o == null) {\n/* 129 */ return \"null\";\n/* */ }\n/* 131 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }", "private String toIndentedString( Object o )\n {\n if ( o == null )\n {\n return \"null\";\n }\n return o.toString().replace( \"\\n\", \"\\n \" );\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }" ]
[ "0.78847593", "0.75493765", "0.74971926", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168" ]
0.0
-1
Creates a new Weapon
public Weapon(Player player) { this.bullets=new ArrayList<Bullet>(); this.player=player; pause = cooldown; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createWeapons()\n {\n woodSword = new Weapon(\"wood sword\", \" | does 12 damage\", 10, true); \n rustedSword = new Weapon(\"rusted sword\", \" | does 17 damage\", 15, true);\n silverSword = new Weapon(\"silver sword\", \" | does 32 damage\", 30, true);\n goldSword = new Weapon(\"gold sword\", \" | does 22 damage\", 20, true);\n titaniumSword = new Weapon(\"titanium sword\", \" | does 52 damage\", 50, true);\n silverSpear = new Weapon(\"silver spear\", \" | does 25 damage\", 23, true);\n infantryBow = new Weapon(\"infantry bow\", \" | does 30 damage\", 28, true);\n }", "public Weapon(){\n \n name = \"Claw\"; // will be treated as a sword\n type = 'R';\n advType = 'G';\n disType = 'B';\n mt = 4;\n hit = 85;\n crit = 0;\n wt = 1;\n isMagic = true;\n \n }", "public static Weapon spawnWeapon()\r\n\t{\r\n\t\tfinal int numberOfWeapons = 5; //update as weapons are added\r\n\t\t\r\n\t\t//Create weapons in order to access attributes / randomly select a weapon\r\n\t\tSword sword = new Sword();\r\n\t\tStick stick = new Stick();\r\n\t\tBazooka bazooka = new Bazooka();\r\n\t\tAtomicBomb atomicBomb = new AtomicBomb();\r\n\t\tPotatoCannon potatoCannon = new PotatoCannon();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tWeapon[] weapons = new Weapon[] {sword, stick,bazooka,atomicBomb,potatoCannon}; //store weapons in an array to randomly grab one to use in Game\r\n\t\t\r\n\t\tint randomWeapon; //weapon chosen\t\t\r\n\t\tRandom rng = new Random (); //create generator based upon current number of weapons\r\n\t\trandomWeapon = rng.nextInt(numberOfWeapons); //get a weapon object at random from array\r\n\r\n\t\treturn (weapons[randomWeapon]); //we have no need to create separate instance\r\n\t}", "public Weapon() {\n this(Weapon.defaultName, 0, new Level(0), 0, 0);\n }", "public Weapon()\n {\n name = \"None\";\n speed = 2;\n damage = 1;\n range = 1;\n }", "public Weapon ()\r\n\t{\r\n\t\t//no default values for Weapon attributes are set here as the specific weapon type unspecified at super level\r\n\t}", "public Weapon (Player player) {\n\t\tthis.player = player;\n\t}", "public WeaponTest() {\r\n\r\n }", "AbstractWeapon createWeaponController(WeaponCard weaponCard);", "public Weapon (String name) {\n\t\tsuper(name, weight, itemDamage, 0, 0, quantity);\n\t}", "@POST(\"/AddWeapon\")\n\tint addWeapon(@Body Weapon weapon,@Body int id) throws GameNotFoundException;", "public Weapon(Weapon weapon) \n\t{\n\t\tsuper(weapon.getName());\n\t\tweaponDamage = weapon.getWeaponDamage();\n\t}", "@Test\r\n public void test_weapon() {\r\n Weapon weapon1 = new Weapon(\"gun\", \"that a weapon for sure\", 7);\r\n assertEquals(\"gun\", weapon1.getInformation().getName());\r\n assertEquals(\"that a weapon for sure\", weapon1.getInformation().getDescription());\r\n assertEquals(7, weapon1.getDamage());\r\n }", "public WeaponComponent() {\n weaponName = \"none\";\n owned = false;\n damagePower = 1;\n }", "public Weapon(DropType dropType) {\n\t\tthis(WeaponType.getRandom().toString());\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void addSpawnpointWeapon(Weapon w) {\n this.weaponSpawnpoint.addWeapon(w);\n }", "@POST(\"/MakeWeaponList\")\n\tpublic Map<Integer, Weapon> makeWeaponList(@Body int id) throws GameNotFoundException;", "public ShotgunWeapon() {\n description = \" Weapon: Shotgun has\";\n }", "public Weapon(String name, int weaponDamage) \n\t{\n\t\tsuper(name);\n\t\tif(weaponDamage > 0) \n\t\t{\n\t\t\tthis.weaponDamage = weaponDamage;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tthis.weaponDamage = 1;\n\t\t}\n\t}", "public Weapon(WeaponType type, int level) {\n \tthis.effects = new ArrayList<>();\n this.type = type;\n this.level = level;\n this.effects.add(new AttackEffect(getWeaponDamage(), getWeaponSpeed(), getWeaponRange(), Target.SELF));\n }", "private static Weapon randomWeapon() {\r\n Random rand = new Random();\r\n int weaponType = rand.nextInt(7);\r\n switch (weaponType) {\r\n case 0: \r\n return new FryingPan();\r\n case 1:\r\n return new SubmachineGun();\r\n case 2:\r\n return new AssaultRifle();\r\n case 3:\r\n return new Pistol();\r\n case 4:\r\n return new Axe();\r\n case 5:\r\n return new Crowbar();\r\n default:\r\n return new Shotgun();\r\n }\r\n }", "@POST(\"/UpdateWeapon\")\n\tWeapon updateWeapon(@Body Weapon weapon,@Body int id) throws GameNotFoundException;", "public void addWeapon(Weapon x){\n\t\tplayerWeapon=new Weapon(x);\n\t\tHealth+=x.gethealthStat();\n\t\tAttackForce+=x.getafStat();\n\t\tDefense+=x.getdefenseStat();\n\t}", "public void generateTutorialWeapons() {\n this.loot.add(new Weapon(\"Weathered Longsword\", \"A weathered longsword - it'll do.\", 3, 1));\n this.loot.add(new Weapon(\"Weathered Battle Axe\", \"A weathered battle axe - it'll do.\", 2, 2));\n this.loot.add(new Weapon(\"Weathered Bow\", \"A weathered bow - it'll do.\", 3, 2));\n }", "public void pickUpWeapon(CardWeapon weapon, CardWeapon weaponToWaste, List<CardPower> powerUp) throws InsufficientAmmoException, NoCardWeaponSpaceException {\n List <Color> tmp = new ArrayList<>(weapon.getPrice());\n List <CardPower> tmpPU = new ArrayList<>();\n if(this.weapons.size()== 3)\n if(weaponToWaste==null)\n throw new NoCardWeaponSpaceException();\n if(tmp.size() > 1)\n {\n tmp = tmp.subList(1, tmp.size());\n pay(tmp, powerUp);\n }\n if (weapons.size() == 3){\n this.position.getWeapons().add(weaponToWaste);\n this.weapons.remove(weaponToWaste);\n }\n this.weapons.add(weapon);\n weapon.setShooter(this);\n this.position.getWeapons().remove(weapon);\n if(game != null)\n game.notifyGrabWeapon(this,weapon, weaponToWaste);\n\n }", "private Weapon() {\n\t\t\tname = \"\";\n\t\t\tdamage = 0;\n\t\t\tcrippleDamage = 0;\n\t\t\tflavors = new HashMap<>();\n\t\t}", "@Test\r\n public void test_weapon_less() {\r\n Weapon weapon1 = new Weapon(\"gun\", \"that a weapon for sure\", 0);\r\n assertEquals(1, weapon1.getDamage());\r\n }", "public void add(Weapon weapon) {\n\t\tif (weaponList.size() < 2) {\n\t\t\tweaponList.add(weapon);\n\t\t}\n\t}", "public void add(Weapon weapon) {\n\t\tweaponList.add(weapon);\n\t}", "public void giveWeapon(Weapon weapon) throws RuntimeException {\n if (weaponList.size() > 2)\n throw new RuntimeException(\"This player can't receive any more weapons\");\n weaponList.add(weapon);\n }", "public void addWeapon(CardWeapon cw)\n {\n this.weapons.add(cw);\n }", "public ItemWeapon(float x, float y, int width, int height) { \r\n\t\tsuper(x, y, width, height);\r\n\t}", "private void makeBoss()\r\n {\r\n maxHealth = 1000;\r\n health = maxHealth;\r\n \r\n weapon = new Equip(\"Claws of Death\", Equip.WEAPON, 550);\r\n armor = new Equip(\"Inpenetrable skin\", Equip.ARMOR, 200);\r\n }", "public Weapon(String n, int spd, int dmg, int rng)\n {\n name = n;\n speed = spd;\n damage = dmg;\n range = rng;\n }", "public void createItem()\n {\n \n necklace_red = new Item (\"Red Necklace\",\"This is a strange red necklace\");\n poolroom.addItem(necklace_red);\n \n // items in dancing room // \n gramophone = new Item (\"Gramophone\",\"This is a nice gramophone but without disk\");\n candelar = new Item(\"Candelar\",\"This candelar gives light and is really beautiful\");\n dancingroom.addItem(gramophone);\n dancingroom.addItem(candelar);\n \n //items in hall //\n potion2HP = new Potion(\"Potion 2 HP\",\"This potion gives 2 HP to the player\",2);\n hall.addItem(potion2HP);\n \n //items in corridor //\n halberd = new Weapon(\"Halberd\",\"This the statut halberd. It was not a really good idea to take it\",4,60);\n corridor.addItem(halberd);\n \n // items in bathroom //\n potion6HP = new Potion(\"Potion6HP\",\"This potions gives 6 HP to the player\",6);\n bathroom.addItem(potion6HP);\n \n // items in guestbedroom //\n Exit exit_from_corridor_to_bedroom = new Exit(\"south\",corridor,false, null);\n bedroomkey = new Keys(\"Bedroom key\",\"This key opens the master bedroom door\",exit_from_corridor_to_bedroom);\n guestbedroom.addItem(bedroomkey);\n \n // items in kitchen // \n set_of_forks_and_knives = new Weapon(\"Set of forks and knives\",\"This weapon is a set of silver forks and silver knives\",2,40);\n kitchen.addItem(set_of_forks_and_knives);\n \n // items in bedroom //\n Item disk = new Item(\"Disk\",\"This disk can be used with the gramophone\");\n bedroom.addItem(disk);\n \n Potion potion3HP = new Potion (\"Potion3HP\",\"This potions gives 3 HP to the player\",3);\n bedroom.addItem(potion3HP);\n \n Item money = new Item(\"Money\",\"You find 60 pounds\");\n bedroom.addItem(money);\n \n // items in the library //\n Item book = new Item(\"Book\",\"The title book is 'The best human friend : the cat'\");\n library.addItem(book);\n \n // items in laboratory //\n Exit exit_from_corridor_to_attic = new Exit(\"up\",corridor,false, null);\n Keys attickey = new Keys(\"Attic key\",\"This key is a shaped bone from a squeletor\", exit_from_corridor_to_attic); \n laboratory.addItem(attickey);\n \n Item construction_drawing = new Item(\"Construction drawing\",\"You find construction drawings. Mr Taylor planed to dig really deeply to the east of the gardener hut\");\n laboratory.addItem(construction_drawing);\n \n //items in garden //\n Weapon fork = new Weapon(\"Fork\",\"This fork is green and brown\",3,50);\n garden.addItem(fork);\n \n Potion apple = new Potion(\"Apple\",\"This apples gives you 2 HP\",2);\n garden.addItem(apple);\n \n // items in gardenerhut //\n \n Item pliers = new Item(\"Pliers\",\"You can cut a chain with this object\");\n gardenerhut.addItem(pliers);\n \n Item ritual_cape = new Item(\"Ritual cape\",\"You find a black ritual cape. It is very strange !\");\n gardenerhut.addItem(ritual_cape);\n \n Item necklace_black_1 = new Item(\"Necklace\",\"You find a very strange necklace ! It is a black rond necklace with the same symbol than in the ritual cape\");\n gardenerhut.addItem(necklace_black_1);\n \n //items in anteroom //\n \n Potion potion4HP = new Potion(\"Potion4HP\",\"This potion gives 4 HP to the player\",4);\n anteroom.addItem(potion4HP);\n \n Weapon sword = new Weapon(\"Sword\",\"A really sharp sword\",6,70);\n anteroom.addItem(sword);\n // items in ritual room //\n \n Item red_ritual_cape = new Item(\"Red ritual cape\", \"This is a ritual cape such as in the gardener hut but this one is red. There are some blond curly hairs\");\n ritualroom.addItem(red_ritual_cape);\n \n Item black_ritual_cape_1 = new Item(\"Black ritual cape\",\"This is a black ritual cape\");\n ritualroom.addItem(black_ritual_cape_1);\n \n Item black_ritual_cape_2 = new Item (\"Black ritual cape\",\"Another black ritual cape\");\n ritualroom.addItem(black_ritual_cape_2);\n \n }", "@Override\n public Type getItemType() {\n return Type.WEAPON;\n }", "@Override\n\tpublic void addEquipment(Weapon w) {\n\t\tif (nbWeapons() > 0)\n\t\t\tthrow new BreakingRuleException();\n\t\tsuper.addEquipment(w);\n\t}", "public Weapon(HashMap<?, ?> hashMap) {\n\t\t// these attributes must be set\n\t\tsetName((String) hashMap.get(\"name\"));\n\t\tsetType((String) hashMap.get(\"type\"));\n\t\tsetRange(new Range((HashMap<?, ?>) hashMap.get(\"range\")));\n\n\t\t// dmg multiplicator default: 1.0\n\n\t\t// default ist -1\n\t\tsetSpeed(hashMap.containsKey(\"speed\") ? Integer\n\t\t\t\t.parseInt((String) hashMap.get(\"speed\")) : -1);\n\n\t\t// default false - no area damage\n\t\tsetArea(hashMap.containsKey(\"area\") ? Boolean\n\t\t\t\t.parseBoolean((String) hashMap.get(\"area\")) : false);\n\n\t\t// default breakthrough 0\n\t\tsetBreakthrough(hashMap.containsKey(\"breakthrough\") ? Integer\n\t\t\t\t.parseInt((String) hashMap.get(\"breakthrough\")) : 0);\n\n\t\t// only_rare default false\n\t\tsetOnly_rare(hashMap.containsKey(\"only_rare\") ? Boolean\n\t\t\t\t.parseBoolean((String) hashMap.get(\"only_rare\")) : false);\n\n\t\t// boss_drop default false\n\t\tsetBoss_drop(hashMap.containsKey(\"boss_drop\") ? Boolean\n\t\t\t\t.parseBoolean((String) hashMap.get(\"boss_drop\")) : false);\n\n\t\tdmg = (float) (hashMap.containsKey(\"dmg\") ? Float.parseFloat((String) hashMap\n\t\t\t\t.get(\"dmg\")) : 1.0F);\n\t\t\n\t\t//sets random Count at creation\n\t\tRandom randomGenerator = new Random();\n\t\tsetCount(randomGenerator.nextInt(79) + 21);\n\t\tif (type.equals(WeaponType.melee.toString()))\n\t\t\tsetCount(1);\n\t}", "public void equipSelectedWeapon() {\n }", "public PlayerFighter create(GamePlayer player);", "public static Weapon transformToEntity(WeaponDTO weaponDto) {\n if (weaponDto == null) {\n throw new NullPointerException(\"Data transfer object for transformation cannot be null\");\n }\n\n Weapon weapon = new Weapon();\n\n weapon.setId(weaponDto.getId());\n weapon.setName(weaponDto.getName());\n weapon.setAmmunition(weaponDto.getAmmunition());\n weapon.setGunReach(weaponDto.getGunReach());\n return weapon;\n }", "public void add(Weapon weapon){\n\t\tsetCount(getCount() + weapon.getCount());\n\t\tweapon.expire();\n\t}", "public void addToInventory(IWeapon weapon){\n if (weaponsInventory.size() < 12) {\n this.weaponsInventory.add(weapon);\n lenInventory += 1;\n }\n }", "public Weapon(String name, int price, Level minLevel, double damage, int numHands) {\n super(name, price, minLevel);\n\n // Validate input\n Validations.nonNegative(damage, \"damage\");\n Validations.nonNegative(numHands, \"numHands\");\n\n // Weapon specific attributes\n this.damage = damage;\n this.numHands = numHands;\n }", "@Test\r\n public void test_weapon_more() {\r\n Weapon weapon1 = new Weapon(\"gun\", \"that a weapon for sure\", 16);\r\n assertEquals(1, weapon1.getDamage());\r\n }", "public void addWeapon(Weapon weapon) {\n setAttack(getAttack() + weapon.getDamage());\n setWeaponSlots(getWeaponSlots() - 1);\n }", "@POST(\"/DeleteWeapon\")\n\tWeapon deleteWeapon(@Body Weapon weapon,@Body int id) throws GameNotFoundException;", "PlayerBean create(String name);", "public Weapon clone() {\n\t\treturn new Weapon(this);\n\t}", "public Weapon copy() {\r\n\t\treturn new Weapon(this.getName(), this.getDescription(), this.getType(), this.getSize(), this.getPrice(), this.getMultChanged());\r\n\t}", "static void weapon(char item)\r\n {\r\n \tString pClass = MainApp.playerClass;\r\n \tif(MainApp.alreadyEquipped == false)\r\n\t\t{\r\n\t\t\tif(pClass == \"Warrior\")\r\n\t\t\t{\r\n\t \t\tif(item == '0')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Warrior Equipped!\");\r\n\t \t\t}\r\n\t \t\t//System.out.print(\"Post Equip Warrior\");\r\n\t\t\t}\r\n\t\t\tif(pClass == \"Archer\")\r\n\t\t\t{\r\n\t\t\t\tif(item == '&')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Archer Equipped!\");\r\n\t \t\t}\r\n\t\t\t\t//System.out.print(\"Post Equip Archer\");\r\n\t\t\t}\r\n\t\t\tif(pClass == \"Rogue\")\r\n\t\t\t{\r\n\t\t\t\tif(item == '!')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Rogue Equipped!\");\r\n\t \t\t}\r\n\t\t\t\t//System.out.print(\"Post Equip Rogue\");\r\n\t\t\t}\r\n\t }\r\n }", "private void getWeaponItem(double x, double y, String option,\r\n\t\t\tBufferedImage itemimage, SpriteGroup items) {\r\n\t\tint weaponoption = Resources.getInt(option);\r\n\t\tItem newGun = new WeaponItem(player, new Sprite(itemimage),\r\n\t\t\t\tweaponoption, x, y);\r\n\t\titems.add(newGun);\r\n\t\tnewGun.setActive(true);\r\n\t}", "public Weapon(String name, String description, String type, int size, int price, int multChanged) {\r\n\t\tsuper(name, description, type, size, price);\r\n\t\tthis.multChanged = multChanged;\r\n\t}", "@Override\n\tpublic Item create() {\n\t\tLOGGER.info(\"Shoe Name\");\n\t\tString item_name = util.getString();\n\t\tLOGGER.info(\"Shoe Size\");\n\t\tdouble size = util.getDouble();\n\t\tLOGGER.info(\"Set Price\");\n\t\tdouble price = util.getDouble();\n\t\tLOGGER.info(\"Number in Stock\");\n\t\tlong stock = util.getLong();\n\t\tItem newItem = itemDAO.create(new Item(item_name, size, price, stock));\n\t\tLOGGER.info(\"\\n\");\n\t\treturn newItem;\n\t}", "public void allocateWeapons() {\n Collections.shuffle(this.getWeaponPieces());\n List<Room> rooms = this.board.getRooms();\n Collections.shuffle(rooms);\n int roomIndex = 0;\n for (WeaponPiece weapon : this.getWeaponPieces()) {\n Room room = rooms.get(roomIndex);\n if (room.getWeaponPiece() == null) {\n room.setWeaponPiece(weapon);\n roomIndex += 1;\n }\n }\n }", "private Card murderWeapon(UI ui, Player currentPlayer) {\n CardPanel cardPanel = new CardPanel(ui.getBoard(), ui.getCmd(), \"weapons\");\n ui.getLayers().add(cardPanel, Integer.valueOf(6));\n cardPanel.showPanel();\n ui.getInfo().addText(\"Enter the weapon you think \" + murderer.getName() + \" killed Gunther in \" + location.getName() + \". Listed Below\"); // prompt\n\n // display all the characters to the player that they can select\n for (int i = 0; i < WEAPON_NAMES.length; i++) {\n ui.getInfo().addText(WEAPON_NAMES[i].toString().substring(0,1) + WEAPON_NAMES[i].toString().substring(1).toLowerCase());\n }\n\n WeaponTypes murderWeapon = null;\n String weapon;\n\n // check the input from the user whether it is a weapon, help command, notes command or the wrong input\n do {\n weapon = ui.getCmd().getCommand().toLowerCase();\n switch (weapon) {\n case \"rope\":\n murderWeapon = WeaponTypes.ROPE;\n break;\n case \"dagger\":\n murderWeapon = WeaponTypes.DAGGER;\n break;\n case \"wrench\":\n murderWeapon = WeaponTypes.WRENCH;\n break;\n case \"pistol\":\n murderWeapon = WeaponTypes.PISTOL;\n break;\n case \"candlestick\":\n murderWeapon = WeaponTypes.CANDLESTICK;\n break;\n case \"pipe\":\n murderWeapon = WeaponTypes.PIPE;\n break;\n case \"notes\":\n currentPlayer.getPlayerNotes().showNotes(currentPlayer);\n break;\n case \"help\":\n ui.getInfo().addText(\"Select a weapon from the list above for the questioning!\");\n break;\n default:\n ui.getInfo().addText(\"That was an invalid entry, enter a weapon from the list above for the questioning!\");\n break;\n }\n } while (murderWeapon == null); // while the player input was not a weapon\n\n cardPanel.removePanel();\n ui.getLayers().remove(cardPanel);\n return new Card(murderWeapon.toString()); // return a card with the murder weapon selected by the user\n }", "public static void genWeaponList() {\r\n int i;\r\n\r\n auxItemVector.clear();\r\n \r\n if(currentChar == null) return;\r\n\r\n for (i = 0; i < currentChar.getItemsNumber(); i++) {\r\n if(currentChar.getItem(i).getType() == weapon)\r\n auxItemVector.add(currentChar.getItem(i));\r\n }\r\n }", "public Weapon(int id, String name, String ip, String mac) {\n super(id, name);\n this.warnings = new ArrayList<>();\n this.fireMode = FireMode.SAFE;\n this.connectionStatus = ConnectionStatus.NO_CONNECTION;\n this.setIp(ip);\n this.setMac(mac);\n }", "public synchronized void spawnMe()\n\t{\n\t\t_itemInstance = ItemTable.getInstance().createItem(\"Combat\", _itemId, 1, null, null);\n\t\t_itemInstance.dropMe(null, _location.getX(), _location.getY(), _location.getZ());\n\t}", "private void makeMonster(int lvl)\r\n {\r\n maxHealth = lvl*12;\r\n health = maxHealth;\r\n \r\n Equip tempWeapon = null;\r\n Equip tempArmor = null;\r\n if (type == GOLEM)\r\n {\r\n tempWeapon = new Equip(\"roll smash\", Equip.WEAPON, lvl*7);\r\n tempArmor = new Equip(\"rock body\", Equip.ARMOR, lvl);\r\n }\r\n else if (type == GHOST)\r\n {\r\n tempWeapon = new Equip(\"scythe\", Equip.WEAPON, lvl*7);\r\n tempArmor = new Equip(\"magic armor\", Equip.ARMOR, lvl);\r\n }\r\n else if (type == SLIME)\r\n {\r\n tempWeapon = new Equip(\"liquid attack\", Equip.WEAPON, lvl*7);\r\n tempArmor = new Equip(\"shock absorb\", Equip.ARMOR, lvl);\r\n }\r\n else\r\n {\r\n tempWeapon = new Equip(\"teeth\", Equip.WEAPON, lvl*7);\r\n tempArmor = new Equip(\"hardskin\", Equip.ARMOR, lvl);\r\n }\r\n tempWeapon.changeOwner(this);\r\n tempArmor.changeOwner(this);\r\n tempWeapon.equipTo(this);\r\n tempArmor.equipTo(this);\r\n }", "public PickupWeaponBase(Vec2 position, WeaponBase weaponBarrel) {\n super(position, Vec2.ZERO, new Sprite(\"items/weaponBody\"));\n setSize(new Vec2(0.7, 0.7));\n setRenderLayer(RenderLayer.RenderLayerName.HIGH_BLOCKS);\n\n this.cli = weaponBarrel;\n\n collider = new CircleCollider(this, 30);\n collider.setTag(\"Item\");\n collider.addInteractionLayer(\"Walk\");\n\n }", "public Weapon(int id, String name, List<String> warnings, FireMode fireMode, ConnectionStatus connectionStatus, String ip, String mac, int batteryLevel) {\n super(id, name);\n this.warnings = warnings;\n this.fireMode = fireMode;\n this.connectionStatus = connectionStatus;\n this.setIp(ip);\n this.setMac(mac);\n this.setBatteryLevel(batteryLevel);\n }", "public Skill(Player player){\n this.player = player;\n this.name = player.name;\n this.intellect = player.intellect;\n this.defense = player.defense;\n this.attack = player.attack;\n this.weapon = player.weapon;\n this.armor = player.armor;\n this.defense = player.defense;\n\n }", "public String randWeapon() {\n\n\t\t// Generates a random number.\n\t\tRandom rand = new Random();\n\n\t\t// A random number between 0 and 2 is generated, and the value at that index in\n\t\t// the Choice array is then saved to the variable compChoice\n\t\tString compChoice = weapArray[rand.nextInt(3)];\n\n\t\t// Makes the users weapon equal to whichever weapon they inputed\n\t\tswitch (compChoice) {\n\n\t\tcase \"Rock\":\n\t\t\tweapon = new Rock();\n\t\t\tbreak;\n\t\tcase \"Paper\":\n\t\t\tweapon = new Paper();\n\t\t\tbreak;\n\t\tcase \"Scissors\":\n\t\t\tweapon = new Scissors();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn compChoice;\n\t}", "public sword ( )\r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tsuper();\r\n\t\tthis.setDamageBuff (3);\r\n\t\tthis.setDurability (15);\r\n\t\tthis.setWeaponName (\"Sword\");\r\n\t}", "public void addWeapon(Pair<Byte,Short> weapon){\n //Total number of weapons player can carry is 5 (inc. default weapon)\n //If player has <3 weapons, simply add weapon.\n //Otherwise, first remove oldest weapon in inventory then add at that\n //position.\n //oldest weapon tracked by linked list of weapon entries.\n if(this.weapons.size() < 3) {\n this.weapons.add(weapon);\n this.weaponEntryTracker.add((byte) this.weapons.indexOf(weapon));\n }else{\n //Checks for duplicates, if duplicate weapons\n //found, new weapons ammo is just added to the current\n //weapon already in inventory\n for(Pair<Byte,Short> w : this.weapons){\n if(Objects.equals(w.getKey(), weapon.getKey())){\n if(weaponEntryTracker.size() == 1){\n weaponEntryTracker = new LinkedList<>();\n }\n else{\n for(int tracker : weaponEntryTracker){\n if(tracker == this.weapons.indexOf(w)){\n weaponEntryTracker.remove((Integer) tracker);\n }\n }\n }\n Pair<Byte,Short> newWeapon = new Pair<>(weapon.getKey(), (short) (w.getValue()+weapon.getValue()));\n if(this.currentWeapon == w){\n this.setCurrentWeapon(newWeapon);\n }\n this.weapons.set(this.weapons.indexOf(w),newWeapon);\n weaponEntryTracker.add((byte) this.weapons.indexOf(newWeapon));\n return;\n }\n }\n //check for any no weapon entries - indicates\n //player dropped weapon.\n for(Pair<Byte,Short> w : this.weapons){\n if(w.getKey() == NO_WEAPON_ID){\n this.weapons.set(this.weapons.indexOf(w),weapon);\n this.weaponEntryTracker.add((byte) this.weapons.indexOf(weapon));\n return;\n }\n }\n //If no null entries are found, remove oldest weapon\n int oldestWeapon = this.weaponEntryTracker.poll();\n byte oldestWeaponKey = this.weapons.get(oldestWeapon).getKey();\n this.weapons.set(oldestWeapon, weapon);\n this.weaponEntryTracker.add((byte) this.weapons.indexOf(weapon));\n if(oldestWeaponKey == currentWeapon.getKey()){\n setCurrentWeapon(weapon);\n }\n\n }\n }", "public void toSelectingWeapon() {\n }", "CharacterType createCharacterType(CharacterType t, long gameId);", "public Weapon(int id, String name, FireMode fireMode, ConnectionStatus connectionStatus, String ip, String mac, int batteryLevel) {\n super(id, name);\n this.warnings = new ArrayList<>();\n this.fireMode = fireMode;\n this.connectionStatus = connectionStatus;\n this.setIp(ip);\n this.setMac(mac);\n this.setBatteryLevel(batteryLevel);\n }", "public Weapon(String name, List<String> warnings, FireMode fireMode, ConnectionStatus connectionStatus, String ip, String mac) {\n super(name);\n this.warnings = warnings;\n this.fireMode = fireMode;\n this.connectionStatus = connectionStatus;\n this.setIp(ip);\n this.setMac(mac);\n }", "IEquipableItem create(int power, int min, int max);", "public void createCharacters()\n {\n Item item_chambermaid = new Item(\"Broom\",\"The brush that she uses\");\n Item item_bob_taylor = new Item(\"Toys\",\"Bob Taylor toys\");\n Item item_mr_Cunningham = new Item(\"Black hat\",\"The nice hat of Mr Cunningham\");\n Item item_ms_Wellington = new Item(\"Ring\", \"This is the wedding ring\");\n \n // Neutral characters creation //\n mr_Taylor = new Neutral(\"Mr Taylor\",\" \", poolroom, \"..\\\\pictures\\\\Characters\\\\MrTaylor2.png\");\n ms_Taylor = new Neutral(\"Ms Taylor\",\"Oh no ! My poor husband is dead ! What am I going to do now ?!\", poolroom, \"..\\\\pictures\\\\Characters\\\\MsTaylor2.png\");\n ms_Cunningham = new Neutral(\"Ms Cunningham\",\"My husband was the best old friend of Mr Taylor\", poolroom, \"..\\\\pictures\\\\Characters\\\\MsCunningham2.png\");\n \n // Ally characters creation //\n chambermaid = new Ally(\"Chambermaid\",\"I was in the dancing room to serve the guests.I was not with the master\", poolroom, item_chambermaid, \"..\\\\pictures\\\\Characters\\\\Chambermaid.png\");\n bob_Taylor = new Ally(\"Bob Taylor\",\"What happened to my father ? \", poolroom, item_bob_taylor, \"..\\\\pictures\\\\Characters\\\\BobTaylor2.png\");\n mr_Cunningham = new Ally(\"Mr Cunningham\", \"I was in my bedroom when I heard someone screaming. So I went down stairs quickly\", poolroom, item_mr_Cunningham, \"..\\\\pictures\\\\Characters\\\\MrCunningham2.png\");\n ms_Wellington = new Ally(\"Ms Wellington\", \"I was in the dancing room with my husband. The chambermaid served us.\", poolroom, item_ms_Wellington, \"..\\\\pictures\\\\Characters\\\\MsWellington2.png\");\n \n // Enemy characters ceration //\n valet = new Enemy(\"Valet\",\"I was in the kitchen. I checked the wine delivery\", poolroom,4,80,12,\"..\\\\pictures\\\\Characters\\\\Valet2.png\"); // damage =4 accuraccy = 80, HP=12\n caretaker = new Enemy(\"Caretaker\",\"I was in my hut to repair the fork\",poolroom, 2,20,5, \"..\\\\pictures\\\\Characters\\\\Caretaker2.png\"); // damage =2 accuraccy = 20, HP=5\n mr_Wellington = new Enemy(\"Mr Wellington\",\"I was in the dancing room with my wife\", poolroom, 1,10,7, \"..\\\\pictures\\\\Characters\\\\MrWellington2.png\"); // damage =1 accuraccy = 10, HP=7\n nina_Taylor = new Enemy(\"Nina Taylor\", \"I was in the library and I read a good book\", poolroom, 2, 30, 8,\"..\\\\pictures\\\\Characters\\\\NinaTaylor2.png\"); // damage =2 accuraccy = 30, HP=8\n skeleton = new Enemy(\"Oscar the skeleton\",\"A human skeleton\", laboratory, 2, 80, 5,\"..\\\\pictures\\\\Characters\\\\skeleton.png\");\n ghost = new Enemy(\"Casper the Ghost\", \"A little green ghost\", livingroom, 1, 50, 4, \"..\\\\pictures\\\\Characters\\\\ghost.png\");\n \n listOfPNG = new ArrayList();\n listOfPNG.add(ms_Taylor);\n listOfPNG.add(ms_Cunningham);\n listOfPNG.add(chambermaid);\n listOfPNG.add(bob_Taylor);\n listOfPNG.add(mr_Cunningham);\n listOfPNG.add(ms_Wellington);\n //listOfPNG.add(valet);\n //listOfPNG.add(caretaker);\n listOfPNG.add(mr_Wellington);\n listOfPNG.add(nina_Taylor);\n \n \n }", "void createItem (String name, String description, double price);", "void createSportItem (String name, String description, double price, String sportType);", "void createPlayer(Player player);", "public Weapon getWeapon(){\n return this.weaponPos;\n }", "public static Item generate(){\n\n //this method lists a collection of new items. it then uses a random number generator\n //to pick one of the objects, and then returns the object so that the main method\n //can add it to the inventory.\n\n ItemType weapon = ItemType.weapon;\n Item IronSword = new Item(weapon, \"Iron Sword\", 8, 50, 10);\n Item GoldenSword = new Item(weapon, \"Golden Sword\", 10, 75, 15);\n Item AllumSword = new Item(weapon, \"Alluminum Sword\", 6, 35, 8);\n Item BowandQuiver = new Item(weapon, \"Bow & Quiver\", 4, 45, 7);\n Item BattleAxe = new Item(weapon, \"Battle Axe\", 12, 55, 13);\n\n ItemType armor = ItemType.armor;\n Item ChainChest = new Item(armor, \"Chain Mail Chestplate\", 8, 40, 30);\n Item IronChest = new Item(armor, \"Iron Chestplate\", 10, 50, 40);\n Item GoldenChest = new Item(armor, \"Golden Chestplate\", 12, 65, 50);\n Item ChainPants = new Item(armor, \"Chain Mail Pants\", 7, 40, 30);\n Item IronPants = new Item(armor, \"Iron Pants\", 9, 50, 40);\n Item GoldenPants = new Item(armor, \"Golden Pants\", 11, 65, 50);\n Item Helmet = new Item(armor, \"Helmet\", 5, 40, 20);\n\n ItemType other = ItemType.other;\n Item Bandage = new Item(other, \"Bandage\", 1, 2, 0);\n Item Wrench = new Item(other, \"Wrench\", 3, 10, 5);\n Item Bread = new Item(other, \"Bread Loaf\", 2, 4, 0);\n Item Water = new Item(other, \"Water Flask\", 3, 2, 0);\n\n Item Initializer = new Item(other, \"init\", 0, 0, 0);\n\t\tint ItemPick = RandomNum();\n Item chosen = Initializer;\n\n switch (ItemPick){\n case 1:\n chosen = IronSword;\n break;\n case 2:\n chosen = GoldenSword;\n break;\n case 3:\n chosen = AllumSword;\n break;\n case 4:\n chosen = BowandQuiver;\n break;\n case 5:\n chosen = BattleAxe;\n break;\n case 6:\n chosen = ChainChest;\n break;\n case 7:\n chosen = IronChest;\n break;\n case 8:\n chosen = GoldenChest;\n break;\n case 9:\n chosen = ChainPants;\n break;\n\t\t\t case 10:\n chosen = IronPants ;\n break;\n case 11:\n chosen = GoldenPants;\n break;\n case 12:\n chosen = Helmet;\n break;\n case 13:\n chosen = Bandage;\n break;\n case 14:\n chosen = Wrench;\n break;\n case 15:\n chosen = Bread;\n break;\n case 16:\n chosen = Water;\n break;\n }\n\n return chosen;\n }", "public Weapon buildWeapon() {\n\t\tRandom rand = new Random();\n\t\tint chance = rand.nextInt(rangeMax - rangeMin) + rangeMin;\n\t\tfor (Weapon weapon: weapons) {\n\t\t\tif (weapon.isInSpawnRange(chance)) {\n\t\t\t\treturn weapon.clone();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public void setWeapon(int weapon)\n\t{\n\t\tthis.weapon = weapon;\n\t}", "@Override\n public void equip(@NotNull IWeapon weapon) {\n weapon.equipToMage(this);\n }", "public static void makeDwarf(Player player){\n\t\tint playerNumber = getPlayerNumber(player);\n\t\tfor(int i = 0; i < maximumSkillCount; i++){\n\t\t\tplayerSkillsArray[playerNumber][i] = 0;\n\t\t}\n\t\tDwarfCraftPlayerSkills.backupSkills();\n\t\tDwarfCraftPlayerSkills.saveSkills();\n\t\tplayer.sendMessage(\"You're now a Dwarf\");\n\t}", "public Weapon(double fireRatePerSecond,\n\t\t\t\t Projectiles projectileType)\n\t\t{\n\t\tthis.projectileType = projectileType;\n\t\tthis.projectileType.setFixtureDefSensor(true);\n\t\tthis.setupFireRate(fireRatePerSecond);\n\t\t}", "private WeaponFactory() throws IllegalStateException {\n\t\tweapons = new ArrayList<>();\n\t\tFile file = new File(\"config/Battle_Royale_Configs/Battle_Royale_Weapons.txt\");\n\t\treadWeaponsFromFile(file);\n\t}", "public WeaponPanel() {\n initComponents();\n }", "public void createItemInInventory(Item newItem) {\n\t\tinventory.createItem(newItem);\n\t}", "public PowerUp(Sprite sprite, int x, int y) {\n super(x, y);\n newSprite(sprite);\n setNewDimensions();\n name = sprite.name();\n }", "private boolean buildEntity() {\r\n\t\t/****************** Tower Creation ******************/\r\n\t\tif (this.type.contains(\"tower\")) {\r\n\t\t\tif (this.type.equals(\"tower0\")) {\r\n\t\t\t\t// Basic starting tower\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 2;\r\n\t\t\t\tthis.health = 500;\r\n\t\t\t\tthis.attack = 0;\r\n\t\t\t\tthis.price = 110;\r\n\t\t\t\tthis.frames = 1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower1\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.health = 90;\r\n\t\t\t\tthis.attack = 30;\r\n\t\t\t\tthis.price = 50;\r\n\t\t\t\tthis.frames = 5;\r\n\t\t\t\tthis.weaponFrames = 1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower2\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.health = 160;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 210;\r\n\t\t\t\tthis.frames = 6;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.weaponFrames = 8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower3\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.health = 245;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 245;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.frames = 9;\r\n\t\t\t\tthis.weaponFrames =1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower4\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.health = 200;\r\n\t\t\t\tthis.attack = 3000;\r\n\t\t\t\tthis.price = 500;\r\n\t\t\t\tthis.frames = 9;\r\n\t\t\t\tthis.weaponFrames = 8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower5\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.weaponFrames = 3;\r\n\t\t\t\tthis.health = 100;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 90;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.frames = 7;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/****************** Enemy Creation ******************/\r\n\t\tif (this.type.contains(\"zombie\")) {\r\n\t\t\tif (this.type.equals(\"zombie0\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 150;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 75;\r\n\t\t\t\tthis.deathFrames = 9;\r\n\t\t\t\tthis.walkFrames = 9;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie1\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 500;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 50;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 6;\r\n\t\t\t\tthis.attackFrames =8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie2\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 250;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 50;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 6;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie3\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 100;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.speed = 25;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 8;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/****************** Object Creation ******************/\r\n\t\tif (this.type.contains(\"object\")) {\r\n\t\t\tif (this.type.equals(\"object0\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object1\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object2\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object3\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object4\")) {\r\n\t\t\t\t// Jail building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object5\")) {\r\n\t\t\t\t// Inn building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object6\")) {\r\n\t\t\t\t// Bar building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object7\")) {\r\n\t\t\t\t// Watchtower building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object8\")) {\r\n\t\t\t\t// Plus path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object9\")) {\r\n\t\t\t\t// NS Path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object10\")) {\r\n\t\t\t\t// EW Path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object11\")) {\r\n\t\t\t\t// Cobble Ground\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object12\")) {\r\n\t\t\t\t// Tombstone with dirt\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object13\")) {\r\n\t\t\t\t// Tombstone\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object14\")) {\r\n\t\t\t\t// Wood grave marker\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/****************** Out of Creation ******************/\r\n\t\t// Check if a type was created and return results\r\n\t\tif (this.base != null) {\r\n\t\t\t// Successful creation\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\t// Unsuccessful creation\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n\tpublic Item createItem(Player player) throws FileNotFoundException {\n\n\t\tItem item = null;\n\t\tcountItems(player.getEntities());\n\t\tRandom r = new Random();\n\n\t\tif (player.getHealth() <= Player.MAX_HEALTH / 2 && health < 1) {\n\n\t\t\tdouble x = r.nextInt(1180) + 50;\n\t\t\tdouble y = r.nextInt(620) + 50;\n\n\t\t\titem = new Health(healthSprite(), x, y, 40, 40, 25, 20, new NoMovement(), new HealthPerkAttack());\n\n\t\t} else if (player.getHealth() == 100 && player.getArmor() < 100 && armor < 1 && r.nextDouble() > 0.999) {\n\n\t\t\tdouble x = r.nextInt(1180) + 50;\n\t\t\tdouble y = r.nextInt(620) + 50;\n\n\t\t\titem = new Armor(armorSprite(), x, y, 40, 50, 15, 10, new NoMovement(), new ArmorPerkAttack());\n\t\t} else if (player.getHealth() < 100 && health < 1 && r.nextDouble() > 0.999) {\n\n\t\t\tdouble x = r.nextInt(1180) + 50;\n\t\t\tdouble y = r.nextInt(620) + 50;\n\n\t\t\titem = new Health(healthSprite(), x, y, 40, 40, 25, 20, new NoMovement(), new HealthPerkAttack());\n\t\t}\n\n\t\treturn item;\n\t}", "public Fortress(int waterCapacityInitial, Vector2 position) {\r\n\t\tthis.position =position;\r\n\t\tthis.waterCapacity = waterCapacityInitial; \r\n\t\tthis.waterLevel = 0;\r\n\t\tthis.level = 1;\r\n\t\tthis.pumpSpeed = 1; \r\n\t\t//this.weapon = new Weapon();\r\n\t}", "public void AddNewSkill()\n\t{\n\t\t\n\t}", "public WeaponTab(final Project project) {\n\t\tsuper(project);\n\t\ticoncache = new HashMap<String, Image>();\n\n\t\tloadFile(Type.WEAPON);\n\t}", "public Weapon(String name, String description,\n URL link,\n int cost, boolean exclusive,\n int mt, int rng, WeaponClass type, WeaponRefine refine) {\n super(name, description,\n link, new Color(0xDE1336), 'W',\n cost, exclusive, rng);\n this.mt = mt;\n this.type = type;\n int[] statModifiers = StatModifier.parseStatModifiers(description);\n statModifiers[1]+= mt;\n this.statModifiers = statModifiers;\n this.refine = refine;\n }", "public ItemStack createItem(ItemType type, int damage,List<Text> lore);", "private void createEnemy()\n {\n scorpion = new Enemy(\"Giant Scorpion\", 5, 10); \n rusch = new Enemy(\"Mr. Rusch\", 10, 1000);\n skeleton = new Enemy(\"Skeleton\", 10, 50);\n zombie = new Enemy(\"Zombie\", 12, 25);\n ghoul = new Enemy(\"Ghoul\", 15, 45);\n ghost = new Enemy(\"Ghost\", 400, 100);\n cthulu = new Enemy(\"Cthulu\", 10000000, 999999);\n concierge = new Enemy(\"Concierge\", 6, 100);\n wookie = new Enemy(\"Savage Wookie\", 100, 300);\n }", "public WeaponCreatorUi(UiManager manager) {\n this.manager = manager;\n stage = new Stage();\n \n //initialize and load file selector\n weapons = Gdx.files.internal(\"weapon/\").list();\n weaponNames = new String[weapons.length];\n for(int i = 0 ; i < weapons.length; i++){\n weaponNames[i] = weapons[i].name();\n }\n \n \n \n Skin skin = new Skin(Gdx.files.internal(\"comic/skin/comic-ui.json\"));\n \n \n //ui widgets \n TextField nameField = new TextField(\"\", skin);\n SelectBox<String> appearenceSelection=new SelectBox<String>(skin);\n appearenceSelection.setItems(weaponNames);\n TextField attackField = new TextField(\"\", skin);\n TextField explotionField = new TextField(\"\", skin);\n TextField rangeField = new TextField(\"\", skin);\n TextButton saveButton = new TextButton(\"Save\", skin);\n \n //ui labels\n Label nameLabel = new Label(\"Name: \", skin);\n Label imageLabel = new Label(\"Image: \", skin);\n Label attackLabel = new Label(\"Attack: \", skin);\n Label explotionLabel = new Label(\"Explotion: \", skin);\n Label rangeLabel = new Label(\"Range: \", skin);\n \n //assign widget positions\n int widgetXpos = UiUtils.WIDHT/2 + 50;\n nameField.setPosition(widgetXpos, UiUtils.HEIGHT -200);\n appearenceSelection.setPosition(widgetXpos, UiUtils.HEIGHT -280);\n attackField.setPosition(widgetXpos, UiUtils.HEIGHT -360);\n explotionField.setPosition(widgetXpos, UiUtils.HEIGHT -440);\n rangeField.setPosition(widgetXpos, UiUtils.HEIGHT -520);\n saveButton.setPosition(UiUtils.WIDHT/2-50, UiUtils.HEIGHT -720);\n \n //asing label positions\n int labelXpos = UiUtils.WIDHT/2 - 100;\n nameLabel.setPosition(labelXpos, UiUtils.HEIGHT -200);\n imageLabel.setPosition(labelXpos, UiUtils.HEIGHT -280);\n attackLabel.setPosition(labelXpos, UiUtils.HEIGHT -360);\n explotionLabel.setPosition(labelXpos, UiUtils.HEIGHT -440);\n rangeLabel.setPosition(labelXpos, UiUtils.HEIGHT -520);\n \n //set widget sizes\n nameField.setSize(200, 50);\n appearenceSelection.setSize(200, 50);\n attackField.setSize(200, 50);\n explotionField.setSize(200, 50);\n rangeField.setSize(200, 50);\n nameLabel.setSize(200, 50);\n imageLabel.setSize(200, 50);\n attackLabel.setSize(200, 50);\n explotionLabel.setSize(200, 50);\n rangeLabel.setSize(200, 50);\n saveButton.setSize(100, 50);\n \n //add elements to stage\n stage.addActor(nameField);\n stage.addActor(appearenceSelection);\n stage.addActor(attackField);\n stage.addActor(explotionField);\n stage.addActor(rangeField);\n stage.addActor(nameLabel);\n stage.addActor(imageLabel);\n stage.addActor(attackLabel);\n stage.addActor(explotionLabel);\n stage.addActor(rangeLabel);\n stage.addActor(saveButton);\n \n //set default value\n nameField.setText(String.valueOf(name));\n attackField.setText(String.valueOf(attack));\n explotionField.setText(String.valueOf(explotion));\n rangeField.setText(String.valueOf(range));\n \n //event handling\n nameField.setTextFieldListener(new TextField.TextFieldListener() {\n @Override\n public void keyTyped(TextField textField, char key) {\n String currentText = textField.getText();\n WeaponCreatorUi.this.name = currentText; \n } \n });\n attackField.setTextFieldListener(new TextField.TextFieldListener() {\n @Override\n public void keyTyped(TextField textField, char key) {\n String currentText = textField.getText();\n if(UiUtils.isInt(currentText)){\n WeaponCreatorUi.this.attack = Integer.parseInt(currentText);\n }else{\n textField.setText(String.valueOf(WeaponCreatorUi.this.attack));\n }\n } \n });\n explotionField.setTextFieldListener(new TextField.TextFieldListener() {\n @Override\n public void keyTyped(TextField textField, char key) {\n String currentText = textField.getText();\n if(UiUtils.isInt(currentText)){\n WeaponCreatorUi.this.explotion = Integer.parseInt(currentText);\n }else{\n textField.setText(String.valueOf(WeaponCreatorUi.this.explotion));\n }\n } \n });\n rangeField.setTextFieldListener(new TextField.TextFieldListener() {\n @Override\n public void keyTyped(TextField textField, char key) {\n String currentText = textField.getText();\n if(UiUtils.isInt(currentText)){\n WeaponCreatorUi.this.range = Integer.parseInt(currentText);\n }else{\n textField.setText(String.valueOf(WeaponCreatorUi.this.range));\n }\n } \n });\n \n saveButton.addListener(new ChangeListener() {\n @Override\n public void changed(ChangeListener.ChangeEvent event, Actor actor) {\n WeaponCreatorUi.this.saveWeapon();\n WeaponCreatorUi.this.setUi(\"menu\");\n \n }\n });\n \n \n appearenceSelection.addListener(new ChangeListener() {\n @Override\n public void changed(ChangeListener.ChangeEvent event, Actor actor) {\n WeaponCreatorUi.this.appearance = ((SelectBox<String>)actor).getSelectedIndex();\n //System.out.println(\"Button Pressed\");\n }\n });\n \n //add back button\n TextButton backButton = new TextButton(\"Back\", skin);\n backButton.setSize(100, 50);\n backButton.setPosition(0, 0);\n \n \n stage.addActor(backButton);\n backButton.addListener(new ChangeListener() {\n @Override\n public void changed(ChangeListener.ChangeEvent event, Actor actor) {\n //TODO add logic of character saving\n WeaponCreatorUi.this.setUi(\"menu\");\n \n }\n });\n }", "public void setEquippedWeapon(String w)\n\t{\n\t\tstrEquippedWeapon = w;\n\t\t\n\t}", "public void createRoom() {\n int hp = LabyrinthFactory.HP_PLAYER;\n if (hero != null) hp = hero.getHp();\n try {\n labyrinth = labyrinthLoader.createLabyrinth(level, room);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n characterLoader.createCharacter(level, room);\n hero = characterLoader.getPlayer();\n if (room > 1) hero.setHp(hp);\n createMonsters();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public Weapon getWeapon() {\n\t\treturn weapon;\n\t}", "public void pickUp(Item item) {\n this.curItem = item;\n this.curItem.setNonDamagablePlayer(this);\n if (item instanceof PickupableWeaponHolder) {\n this.weapon = ((PickupableWeaponHolder)(item)).getWeapon();\n }\n }", "private void createWarrior(String persoName, String persoImage, int persoLife, int attack) {\n\t\tpersoList.add(new Warrior(persoName, persoImage, persoLife, attack));\n\t}" ]
[ "0.7464205", "0.7080562", "0.7079559", "0.70324314", "0.69149286", "0.6913856", "0.68848395", "0.6843473", "0.6717828", "0.671286", "0.6654764", "0.66408736", "0.6609298", "0.65947604", "0.6575996", "0.6347996", "0.632754", "0.62615734", "0.62480474", "0.61934215", "0.6096227", "0.60803163", "0.6076191", "0.60581696", "0.605383", "0.60299873", "0.59638095", "0.5950156", "0.59299785", "0.5926056", "0.5913856", "0.5904504", "0.58847094", "0.58822125", "0.5871401", "0.58589834", "0.5839009", "0.5816082", "0.58122176", "0.5802735", "0.58004004", "0.57776767", "0.57660896", "0.57533336", "0.5751867", "0.5730055", "0.5722214", "0.5697309", "0.5688188", "0.56776863", "0.56748486", "0.563577", "0.5635352", "0.56338876", "0.5617913", "0.5615042", "0.5605514", "0.5587619", "0.5584366", "0.5560736", "0.5550381", "0.5542841", "0.55306494", "0.55292267", "0.552243", "0.5521783", "0.55141264", "0.5500721", "0.5482474", "0.5476932", "0.54634875", "0.5462793", "0.54619485", "0.5453255", "0.5445629", "0.54443705", "0.54422647", "0.54422486", "0.543716", "0.5425406", "0.540906", "0.5406729", "0.540041", "0.5394945", "0.5393572", "0.5388968", "0.5384292", "0.5382863", "0.53825384", "0.5374733", "0.5368811", "0.5366733", "0.53525573", "0.5341399", "0.5334039", "0.5331108", "0.5329886", "0.5317416", "0.53165317", "0.53134567" ]
0.63292056
16
Shoots the weapon and fires a bullet
public void shoot(float direction) { if(pause != 0) return; bullets.add(new Bullet(player.getPosition(),direction)); pause = cooldown; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void shoot()\n\t{\n\t\t//Speed movement of the bullet\n\t\tint speed = 0;\n\t\t//Damage dealt by the bullet\n\t\tint damage = 0;\n\t\t//Angle used to shoot. Used only by the vulcan weapon\n\t\tdouble angle = 0;\n\t\t\n\t\tif(weapon == PROTON_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 10;\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30, speed, damage, 0);\n\t\t\tSoundManager.getInstance().playSound(\"protonshoot\", false);\n\t\t}\t\n\t\telse if(weapon == VULCAN_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 2;\n\t\t\tangle = 10;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getThreeBullets(getX() +27, getX()+37, getX()+47,\n\t\t\t\t\tgetY()-this.getHeight()+30, speed, damage, (int)angle);\n\t\t\tSoundManager.getInstance().playSound(\"vulcanshoot\", false);\n\t\t}\t\t\n\t\telse\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 15;\n\t\t\tangle = 0;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30,\n\t\t\t\t\t\tspeed, damage, angle);\n\t\t\tSoundManager.getInstance().playSound(\"gammashoot\", false);\n\t\t}\t\n\t}", "public void shoot() {\n\t\tgetWeapon().triggerMain();\n\t\tsetShooting(true);\n\t}", "public void shootBullet( ){\n bulletsFired.add(new Bullet((short)(this.xPos + BOX_HEIGHT), (short)((this.getYPos() + (BOX_HEIGHT+15))), this.xPos, this.id, (byte) 0, (byte) 0, shootingDirection, currentWeapon.getKey()));\n\n byte weaponFired = currentWeapon.getKey();\n switch (weaponFired){\n case PISTOL_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n case MACHINEGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(MACHINEGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(MACHINEGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case SHOTGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SHOTGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SHOTGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.shotgunSound);\n break;\n case SNIPER_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SNIPER_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SNIPER_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case UZI_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(UZI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(UZI_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case AI_WEAPON_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(AI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n System.out.println(\"Bullet sound \" + audioHandler.getSoundEffectVolume());\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n default: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n\n }\n }", "public void fireBullet(){\n\t\tBullet bullet = new Bullet(ship);\n\t\tbullets.add(bullet);\n\t\tsoundMan.playBulletSound();\n\t}", "public void shoot(){\n int bulletPosX = posX;\n int bulletPosY = posY;\n int bulletVelX = 0;\n int bulletVelY = -9;\n //add the new bullets to the array of bullets\n bullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,0,attack));\n }", "public void shoot(){\n // boss bullete attract to player\n int bulletPosX = PApplet.parseInt(posX + (speed * cos(angle)));\n int bulletPosY = (int)(posY + hei / 2);\n float bulletAngle = atan2(Main.player.posY - bulletPosY, Main.player.posX - bulletPosX);\n int bulletVelX = (int)(8 * cos(bulletAngle));\n int bulletVelY = (int)(8 * sin(bulletAngle));\n bossBullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,1,attack));\n }", "void fire() {\r\n // firing a shot takes energy\r\n if (!expendEnergy(BULLET_ENERGY))\r\n return;\r\n\r\n //create a bullet object so it doesn't hit the ship that's firing it\r\n double xV = getXVel() + BULLET_SPEED * (Math.cos(orientation));\r\n double yV = getYVel() + BULLET_SPEED * (Math.sin(orientation));\r\n\r\n // create the actual bullet\r\n new Bullet(\r\n getGame(),\r\n (getXPos() + ((getSize()/2 + 2) * (Math.cos(orientation))) + xV),\r\n (getYPos() + ((getSize()/2 + 2) * (Math.sin(orientation))) + yV),\r\n xV,\r\n yV);\r\n }", "public void shoot(){\r\n \tgame.pending.add(new Bullet(this, bulletlife));\t\r\n }", "void shoot();", "public void onShootPressed(){\n if(player.getRechargeTimer()<=0) {\n playShootingSound();\n Bullet bullet = new Bullet();\n player.setRechargeTimer(shotRechargeTime);\n bullet.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet.setRotation(player.getRotation());\n bullet.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet.getRotation() - 90))));\n if(player.getTripleShotTimer()>0){\n Bullet bullet1 = new Bullet();\n bullet1.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet1.setRotation(player.getRotation()+15);\n bullet1.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet1.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet1.getRotation() - 90))));\n Bullet bullet2 = new Bullet();\n bullet2.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet2.setRotation(player.getRotation()-15);\n bullet2.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet2.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet2.getRotation() - 90))));\n }\n }\n }", "public void shoot(ArrayList<Bullet> alienBullets)\r\n\t{\r\n\t\t//do nothing usually\r\n\t}", "public void avatarShoot()\r\n\t{\r\n\t\tBullet avatarPew = avatar.shoot();\r\n\t\tif (avatarPew!= null)\r\n\t\t{\r\n\t\t\tbullets.add(avatarPew);\r\n\t\t}\r\n\t}", "private void shoot() {\n }", "private void shoot() {\n }", "void fireBullet() {\n\r\n\t\tif (count > 0)\r\n\t\t\treturn;\r\n\t\t// ...and if all the bullets aren't currently in use...\r\n\t\tint slot = getAvailableBullet();\r\n\t\tif (slot < 0)\r\n\t\t\treturn;\r\n\t\t// ...then launch a new bullet\r\n\t\tbullets[slot].setLocation(locX, locY);\r\n\t\tbullets[slot].setDirection(angle);\r\n\t\tbullets[slot].reset();\r\n\t\t// Reset the timer\r\n\t\tcount = RELOAD;\r\n\t}", "@Override\n\t\t\tpublic void shoot() {\n\t\t\t}", "public void shoot()\n {\n\n if(reload<=0)//if the tower has reloaded\n {\n int randomizer=Greenfoot.getRandomNumber(20)-10; \n MinigunBullet bullet = new MinigunBullet(this.getRotation()+randomizer, damage,this);\n getWorld().addObject(bullet, getX(), getY());\n bullet.move(30);\n reload=3;\n }\n else//reload\n {\n reload--;\n }\n\n }", "public void shoot() {\n\n //DOWN\n if (moveDown && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveDown && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n } else if (moveDown && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveDown && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //UP\n else if (moveUp && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveUp && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //LEFT \n else if (moveLeft && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n }\n\n //RIGHT\n else if (moveRight && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveRight && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } //STANDING STILL\n \n \n if (shootDown && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), 5 * this.getBulletSpeedMulti());\n } else if (shootUp && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), -5 * this.getBulletSpeedMulti());\n\n } else if (shootLeft && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n } else if (shootRight && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n }\n }", "public void shoot() {\n _shooterMotor1.set(_targetRPM);\n }", "public M_Bullet shoot() {\n Point leftCorner = this.getLocation();\n // get the center of the character\n int x = leftCorner.x;\n int y = leftCorner.y;\n Point dim = this.getDimensions();\n int h = dim.y;\n int w = dim.x;\n h = h / 2;\n w = w / 2;\n Point center = new Point(x + w, y + h);\n // get the velocity for the bullet\n Point vel = new Point(this.getDirection() * 3, 0);\n // set the enemy's shot cooldown to its shot interval.\n setShotCooldown(getShotInterval());\n // return the new bullet\n return new M_Bullet(center, this.getStrength(), vel, true);\n }", "public void shoot(double x, double y) {\n if (magazineCounter > 0 && !reloading) {\n magazineCounter--;\n new WeaponProjectile(new Point2D(x, y), mouseLocation(), projectileSpeed, testing);\n }\n }", "private void shoot(float angle) {\n\t\tfloat arc = FIRING_ARC;\n\t\tif (weapon instanceof BanditTripleShot)\n\t\t\tarc *= 2;\n\t\t\t\n\t\tif (angle < FIRING_ARC && angle > - FIRING_ARC) {\n\t\t\t//System.out.println(\"BANDIT: shooting\");\n\t\t\tweapon.shoot();\n\t\t}\n\t}", "public void fire() {\n\n\t\t// A player cannot continually fire, there is a delay between each bullet.\n\t\tif (isAbleToFire) {\n\n\t\t\taudio.playMusic(\"Audio/Fire.wav\");\n\n\t\t\tif (multiBulletIsActive) {\n\n\t\t\t\tmultiBulletFire();\n\n\t\t\t} else if (speedBulletIsActive) {\n\n\t\t\t\tspeedBulletFire();\n\n\t\t\t} else if (quickFireBulletIsActive) {\n\n\t\t\t\tquickFireBulletFire();\n\n\t\t\t} else {\n\n\t\t\t\t// Single fire.\n\t\t\t\t// Adjust bullet position to be fired from the center of the player.\n\t\t\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition,\n\t\t\t\t\t\tbulletWidth, bulletHeight, \"Red\"));\n\t\t\t}\n\n\t\t\t// Stop the player from being able to fire for 'ticksBetweemFire' amount.\n\t\t\tticksToNextFire = currentTickCount + ticksBetweenFire;\n\t\t}\n\t}", "private void fire(GameEngine gameEngine) {\n Bullet bullet1 = gameEngine.getBulletEnemy();\n if (bullet1 == null) {\n return;\n }\n bullet1.init(this, positionX + imageWidth/2, positionY, 0);\n gameEngine.addGameObject(bullet1);\n gameEngine.playSound(1);\n }", "public void shoot(Projectile p){\r\n\t\tp.facing = facing;\r\n\t\tp.x = x+(width/2)-(p.width/2);\r\n\t\tp.y = y+(height/2)-(p.height/2);\r\n\t\tp.fired = true;\r\n\t\tinAttackCooldown = true;\r\n\t}", "public void enemyShoot()\r\n\t{\r\n\t\tfor (Enemy enemies : enemy)\r\n\t\t{\r\n\t\t\tif (enemies.getHasFired())\r\n\t\t\t{\r\n\t\t\t\tBullet enemyPew = enemies.shoot();\r\n\t\t\t\tif (enemyPew != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.add(enemyPew);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic Bullet shoot(int hx, int hy) {\n\t\treturn null;\n\t}", "public void fire(Vector2 dir, Vector2 weaponPos, Boolean multiplayer) {\n\t\t\n\t}", "@Override\n\tpublic void shoot() {\n\t\tthis.fired = true;\n\t\tghost.shot=true;\n\t}", "public void fireShot() {\n\t\tVector3 position = player.getPositionVector();\n\t\tVector3 rotation = player.getRotationVector();\n\t\tVector3 scale = player.getScaleVector();\n\t\tAsteroidsLaser laser = new AsteroidsLaser(GameObject.ROOT, this, rotation.z);\n\t\tlaser.translate(position);\n\t\tlaserShots.add(laser);\n\t}", "public void shoot(int bulletLeft) {\n float xValue = canon.getX();\n float yValue = canon.getY();\n bullets.get(bulletLeft).setVisibility(View.VISIBLE);\n shootingMotion(bullets.get(bulletLeft), xValue, yValue);\n\n }", "public void shootGun() {\n\t\tammo--;\n\t}", "public void shoot(Point p, Graphics g, Player player){\r\n if(p.getX() > getXCoord()-20){ //not sure if -20 needed (it is to make cetner by the shoulder of arm)\r\n setFacing(1);\r\n } else{\r\n setFacing(0);\r\n }\r\n this.setAttackSpeedTimer(this.getAttackSpeedTimer() + 1);\r\n if(this.getAttackSpeedTimer() == this.getAttackSpeed()){\r\n\t\t Bullet bullet = new Bullet(this.getXCoord(), \r\n\t\t\t\t\t this.getYCoord(), this.getFacing(), g, findAngle(p), player);\r\n\t\t\t\t\t bullet.setAttack(50);\r\n\t\t bullet.setMouseY(this.getMouseY());\r\n\t\t bullet.setMouseX(this.getMouseX());\r\n\t\t bullet.setMouseAngle(this.getMouseAngle());\r\n\t \t bullet.setPlayerDirection(this.getPlayerDirection());\r\n\t\t this.addProjectile(bullet);\r\n\t\t this.setAttackSpeedTimer(0);\r\n\t\t //System.out.println(findAngle(p)*180/Math.PI);\r\n\t\t this.playSound();\r\n }\r\n }", "protected void handleFiring(double dt)\r\n\t{\r\n\t\t//Fire if the mouse button is pressed.\r\n\t\tif (input.getMouseButton(InputHandler.FIRE) && charge <= 0 && energy >= energyUse)\r\n\t\t{\r\n\t\t\tEntityBullet bullet = (EntityBullet)c.createEntity(w, EI.EntityBullet);\r\n\t\t\tdouble xDir = Math.cos(horizontalDir)*Math.cos(verticalDir),\r\n\t\t\t\t\tyDir = Math.sin(horizontalDir)*Math.cos(verticalDir), zDir = Math.sin(verticalDir);\r\n\t\t\t\r\n\t\t\tdouble xDisp = shotX*Math.cos(verticalDir) - shotZ*Math.sin(verticalDir);\r\n\t\t\tdouble zDisp = shotX*Math.sin(verticalDir) + shotZ*Math.cos(verticalDir);\r\n\t\t\t\r\n\t\t\tdouble yDisp = xDisp*Math.sin(horizontalDir) - shotY*Math.cos(horizontalDir);\r\n\t\t\txDisp = xDisp*Math.cos(horizontalDir) + shotY*Math.sin(horizontalDir);\r\n\t\t\t\r\n\t\t\t//t is to prevent bullets from spawning through walls.\r\n\t\t\t\r\n\t\t\tdouble t = w.getCollision().getBulletCollision(x, y, z, xDisp, yDisp, zDisp);\r\n\t\t\t\r\n\t\t\tif (t == 1)\r\n\t\t\t{\r\n\t\t\t\t//Create the bullet\r\n\t\t\t\tenergy -= energyUse;\r\n\t\t\t\tbullet.setPosition(x+xDisp, y+yDisp, z+zDisp);\r\n\t\t\t\tint vel = 60;\r\n\t\t\t\t\r\n\t\t\t\tbullet.setVelocity(vel*xDir, vel*yDir, vel*zDir);\r\n\t\t\t\tbullet.setDamage(1, 1);//damage, knockback\r\n\t\t\t\tbullet.setColor(0, 1, 0);\r\n\t\t\t\t\r\n\t\t\t\tbullet.setOwner(player);\r\n\t\t\t\t\r\n\t\t\t\tw.create(bullet);\r\n\t\t\t\t\r\n\t\t\t\tcharge = shotDelay;\r\n\t\t\t\t\r\n\t\t\t\t//Laser gun sound\r\n\t\t\t\tc.getSoundHandler().playSound(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Weapon recharging\r\n\t\tcharge -= dt;\r\n\t}", "public void shootAimingBullet(){\n bossBullet = new BossBullet(bossBulletImage,this.getXposition() + 100, this.getYposition() + 100, 8, player, true);\n bulletList.add(bossBullet);\n }", "public void attack()\n {\n getWorld().addObject(new RifleBullet(player.getX(), player.getY(), 1, 6, true), getX(), getY()); \n }", "void doGun() {\r\n\t\tlong time = getTime()\r\n\t\t\t\t+ (int) Math\r\n\t\t\t\t\t\t.round((getRange(getX(), getY(), target.x, target.y) / (20 - (3 * firePower))));\r\n\t\tPoint2D.Double p = target.guessPosition(time);\r\n\r\n\t\t// offsets the gun by the angle to the next shot based on linear\r\n\t\t// targeting provided by the enemy class\r\n\t\tdouble gunOffset = getGunHeadingRadians()\r\n\t\t\t\t- (Math.PI / 2 - Math.atan2(p.y - getY(), p.x - getX()));\r\n\t\tsetTurnGunLeftRadians(normaliseBearing(gunOffset));\r\n\t}", "public void shoot(){\r\n\t\tif(numberOfArrows>0){\r\n\t\t\tnumberOfArrows--;\r\n\t\t\tPosition positionWumpus = b.getWumpus().getPosition();\r\n\t\t\tif (position.checkShoot(positionWumpus))\r\n\t\t\t\tb.getWumpus().kill();\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"There are no more arrows.\");\r\n\t}", "public void stopShooting() {\n\t\tgetWeapon().releaseMain();\n\t\tsetShooting(false);\n\t}", "private void ShootListener() {\n shoot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (presenter.canShoot()) {\n shoot(presenter.getBullet());\n presenter.checkLastBullet();\n }\n\n }\n });\n }", "void fire(WarParticipant target, WarParticipant attacker, int noOfShooters);", "public void fire(double power) {\n if (!shooting) {\n this.power = limit(power);\n shooting = true;\n }\n }", "@Override\n public void fireBullet(ArrayList<ScreenObject> level) {\n level.add(new ShipBullet(position.x, position.y, 8, 8, direction));\n }", "private void tankWillShoot(Graphics2D g2d, GameState state) {\n if (state.isMouseClicked() && tankObject.getNumOfCannonBullet() > 0 && state.getGunType() % 2 == 1) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfCannonBullet(tankObject.getNumOfCannonBullet() - 1);\n if (tankObject.getCannonLevel() == 1) {\n state.getMissiles().add(new Missile(state, 15));\n state.getMissiles().get(state.getMissiles().size() - 1).missileDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/heavygun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (tankObject.getCannonLevel() == 2) {\n state.getMissiles().add(new Missile(state, 30));\n state.getMissiles().get(state.getMissiles().size() - 1).missileDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/heavygun.wav\", 0);\n state.setMouseClicked(false);\n }\n } else if (state.isMouseClicked() && tankObject.getNumOfCannonBullet() == 0 && state.getGunType() % 2 == 1) {\n AudioPlayer emptyGunSFX = new AudioPlayer(\"sound effects/emptyGun.wav\", 0);\n state.setMouseClicked(false);\n }\n for (Missile missile : state.getMissiles()) {\n missile.paint(g2d, state);\n }\n if (state.isMousePressed() && tankObject.getNumOfMachineGunBullet() > 0 && state.getGunType() % 2 == 0) {\n if (numOfRenderBullet1 == 0 && tankObject.getMachineGunLevel() == 1) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfMachineGunBullet(tankObject.getNumOfMachineGunBullet() - 1);\n state.getBullets().add(new Bullet(state, 20));\n state.getBullets().get(state.getBullets().size() - 1).bulletDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/lightgun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (numOfRenderBullet2 == 0 && tankObject.getMachineGunLevel() == 2) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfMachineGunBullet(tankObject.getNumOfMachineGunBullet() - 1);\n state.getBullets().add(new Bullet(state, 30));\n state.getBullets().get(state.getBullets().size() - 1).bulletDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/lightgun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (numOfRenderBullet1 <= 7) {\n numOfRenderBullet1++;\n }\n if (numOfRenderBullet1 == 7) {\n numOfRenderBullet1 = 0;\n }\n if (numOfRenderBullet2 <= 3) {\n numOfRenderBullet2++;\n }\n if (numOfRenderBullet2 == 3) {\n numOfRenderBullet2 = 0;\n }\n }\n else if (state.isMousePressed() && tankObject.getNumOfMachineGunBullet() == 0 && state.getGunType() % 2 == 0) {\n AudioPlayer emptyGunSFX = new AudioPlayer(\"sound effects/emptyGun.wav\", 0);\n }\n for (Bullet bullet : state.getBullets()) {\n bullet.paint(g2d, state);\n }\n }", "private void shoot() {\n\t\tif (playerList.size() > 0) {\n\t\t\tif (!someoneLose) {\n\t\t\t\tPlayer target = null;\n\t\t\t\tint remainingShips = SHIP_COUNT + 1;\n\t\t\t\tfor (Player player : playerList) {\n\t\t\t\t\tif (player.getRemainingShips() < remainingShips) {\n\t\t\t\t\t\ttarget = player;\n\t\t\t\t\t\tremainingShips = player.getRemainingShips();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSector targetSector = target.findFreeSector();\n\t\t\t\tlastTarget = targetSector.getMiddle();\n\t\t\t\tShootingThread st = new ShootingThread(chordImpl, targetSector.getMiddle());\n\t\t\t\tst.start();\n\t\t\t}\n\t\t}\n\t}", "private void handleShooting(SpaceWars game, GameGUI gui) {\r\n\t\tif (gui.isShotPressed()) {\r\n\t\t\tfire(game);\r\n\t\t}\r\n\t}", "public static void shoot(double speed)\n\t{\n\t\trunIntake(0, 0, true, speed, speed, false);\n\t}", "private void shoot(GObject bottom, GObject bottomLeft, GObject topRight, GObject bottomRight, GObject topLeft) {\r\n\t\t//if(bullet == null && bottom != null && bottomLeft == null && topRight == null && bottomRight == null && topLeft == null) {\r\n\t\t\t{bullet = new GRect(BULLET_WIDTH, BULLET_HEIGHT);\r\n\t\t\tbullet.setFilled(true);\r\n\t\t\tbullet.setColor(Color.green);\r\n\t\t\tif(facingEast == true) {\r\n\t\t\t\tbulletVelocity = BULLET_SPEED;\r\n\t\t\t\tadd(bullet, player.getX() + player.getWidth() + 1, player.getY() + player.getHeight() * 3/5.0);\r\n\t\t\t} else {\r\n\t\t\t\tbulletVelocity = -BULLET_SPEED;\r\n\t\t\t\tadd(bullet, player.getX() - BULLET_WIDTH, player.getY() + player.getHeight() * 3/5.0);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void shoot(GraphicsContext graphicsContext) {\n TankBullet bullet = new TankBullet(new FixedCoordinates(getCoordinates().getX() + 17, getCoordinates().getY() + 100), gameEnded, graphicsContext);\n bullet.draw(graphicsContext);\n CoordinatesCache.getInstance().getEnemyBullets().add(bullet);\n }", "public void fire() {\n \tAlienMissile.Slope slps[] = {AlienMissile.Slope.ShallowLeft, \n AlienMissile.Slope.Down,\n AlienMissile.Slope.ShallowRight};\n for (AlienMissile.Slope i : slps) {\n AlienMissile m = new AlienMissile(this, i);\n m.setBounce(true, health/5);\n list.add(m);\n }\n }", "public void manualShoot(double speed) {\n shooter1.set(speed);\n }", "public void shoot(Graphics g) {\r\n\t\tlevelManager.shoot(g);\r\n\t}", "public void shoot() {\r\n\t\twhile (rounds > 1) {\r\n\t\t\trounds--;\r\n\t\t\tSystem.out.println(gunType + \" is shooting now\\n\" + rounds + \" \\nCLACK! CLACK! CLAK! CLAK! CLAK!\");\r\n\t\t\tif (rounds == 1) {\r\n\t\t\t\tSystem.out.println(\"Magazine's Empty!! \\nRELOAD!!\\nRELOAD!!!\\nRELAOD!!!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public void fireBullet(int direction , int posX, int posY ){\n if ( clockBullet.getElapsedTime().asMilliseconds() > 100 ){\n int lowestbulletNo = 10;\n for( int i = 9; i > 0; i-- ){\n if ( bulletSpace.get(i).isEnabled() == false){\n lowestbulletNo = i;//find the first bullet in the gun barrol\n }\n }\n\n if ( lowestbulletNo < 10 ){\n bulletSpace.get(lowestbulletNo).setDirection(direction);\n bulletSpace.get(lowestbulletNo).setDistance(0);\n bulletSpace.get(lowestbulletNo).setPosX(posX - map.getX()) ;\n bulletSpace.get(lowestbulletNo).setPosY(posY - map.getY()) ;\n bulletSpace.get(lowestbulletNo).enabled(true);\n bulletSpace.get(lowestbulletNo).setRotation(direction+1);\n }\n }\n clockBullet.restart();\n }", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tshootBullet(arg0);\r\n\t\t\t}", "public void onHitByBullet(HitByBulletEvent e) {\n\t\t// Paramos tudo o que estamos fazendo.\n\t\tstop();\n\t\tscan(); // Escaneamos para verificar a ocorrência de um inimigo na direção\n\n\t\t// Giramos a arma na direção do disparo\n\t\tdouble turnGunAmt = Utils.normalRelativeAngleDegrees(e.getBearing() + getHeading() - getGunHeading());\n\t\tturnGunRight(turnGunAmt);\n\n\t\tscan(); // Escaneamos para verificar a ocorrência de um inimigo na direção\n\t\tback(400); // Recuamos\n\t}", "@Override\n\tpublic WeaponSelection shoot(List<Weapon> loaded) {\n\t\tJSONObject message = new JSONObject();\n\t\tmessage.put(\"function\", \"select\");\n\t\tmessage.put(\"type\", \"shoot\");\n\t\treturn getWeaponSelection(loaded, message);\n\t}", "@Override\n public void attack(){\n int xBullet=0,yBullet=0;\n switch(direction){\n case 0:\n xBullet=(int)(x+Sprite.python_left.getWidth()/3);\n yBullet=(int)(y+Sprite.python_left.getHeight()*3/4);\n break;\n case 1:\n xBullet=(int)(x+Sprite.python_left.getWidth()*3/4);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n case 2:\n xBullet=(int)(x+Sprite.python_left.getWidth()/3);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n case 3:\n xBullet=(int)(x+Sprite.python_left.getWidth()/4);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n }\n PythonBullet pythonBullet=new PythonBullet(xBullet,yBullet,board,Player.PLAYER_SPEED*1.5);\n pythonBullet.setDirection(direction);\n board.addBullets(pythonBullet);\n\n }", "public void shootIntoRocket(){\n shoot.set(ROCKET_SHOOT);\n }", "public void shootIntoCargoShip(){\n shoot.set(SHIP_SHOOT);\n }", "public Answer shoot(){\n if (this.isOccuped()){\n this.ship.hit();\n if (this.ship.hasBeenSunk()){\n\tthis.hasBeenShot = true;\n return Answer.SUNK;\n }\n else{\n\tthis.hasBeenShot = true;\n return Answer.HIT;\n }\n }\n else{\n this.hasBeenShot = true;\n return Answer.MISSED;\n }\n }", "@Override\n\tpublic void shoot(Plateau p) {\n\t\tif(!noMunition()) {\n\t\t\tuseMunition();\n\t\t\t//complete\n\t\t}\n\t\t\n\t}", "private void speedBulletFire() {\n\n\t\tbulletArrayList.add(\n\t\t\t\tnew Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, \"Yellow\"));\n\n\t\tfor (int i = 0; i < bulletArrayList.size(); i++) {\n\t\t\tbulletArrayList.get(i).setSpeed(5);\n\t\t}\n\t}", "private void multiBulletFire() {\n\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 20, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) - 10, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 50, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t}", "private void quickFireBulletFire() {\n\n\t\tbulletArrayList.add(\n\t\t\t\tnew Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, \"Pink\"));\n\t}", "@Override\r\n\tpublic void onCollisionWithBullet() {\n\t\t\r\n\t}", "public boolean shoot() {\n if (!isReloading && System.currentTimeMillis() - previousShotTime > shootInterval * 1000 && ammoRemaining > 0) {\n\n previousShotTime = System.currentTimeMillis();\n\n ammoRemaining--;\n audioPlayer.setSpatial(holder);\n audioPlayer.playOnce();\n // score -= 50;\n Vec2 angle = Vec2\n .Vector2FromAngleInDegrees(transform.getGlobalRotation().getAngleInDegrees() - 90 + (Math.random() * spread * 2 - spread));\n\n Vec2 spawnPosition = transform.getWorldPosition();\n\n Projectile p = new Projectile(spawnPosition,\n Vec2\n .Vector2FromAngleInDegrees(\n transform.getGlobalRotation().getAngleInDegrees() - 90 + (Math.random() * spread * 2 - spread)),\n new Sprite(projectilePath));\n p.setSpeed(speed);\n p.setSource(holder);\n p.getCollider().addInteractionLayer(\"Block\");\n p.getCollider().addInteractionLayer(\"Hittable\");\n p.getCollider().addInteractionLayer(\"Walk\");\n p.setOnCollisionListener(other -> {\n if (other.getGameObject() instanceof Player && other.getGameObject() != holder) {\n Player player = (Player) other.getGameObject();\n player.hit(alteredDmg);\n if (GameEngine.DEBUG) {\n System.out.println(\"Bullet Hit \" + other.getName());\n }\n p.destroy();\n\n// player.destroy();\n } else if (other.getGameObject() instanceof Enemy) {\n Enemy e = ((Enemy) other.getGameObject());\n e.hit(alteredDmg);\n if (!e.isAlive()) { // CHeck if enemy survived\n ((Player) p.getSource()).killedEnemy();\n }\n p.destroy();\n } else if (other.getTag() == \"Block\") {\n p.destroy();\n }\n\n });\n return true;\n } else if(ammoRemaining <= 0){\n reloadWeapon();\n return false;\n }else\n return false;\n }", "boolean shootArrow(Direction dir, int power) throws\r\n PlayerKillsWumpusException, RecoverableException, PlayerKilledException;", "private void shoot(int mode, EntityManager manager) {\r\n switch (mode) {\r\n case 0:\r\n normal(manager);\r\n break;\r\n case 1:\r\n shotgun(manager);\r\n break;\r\n case 2:\r\n shield(manager);\r\n break;\r\n case 3:\r\n laser(manager);\r\n break;\r\n case 4:\r\n multi(manager);\r\n break;\r\n case 5:\r\n shrapnel(manager);\r\n break;\r\n }\r\n }", "public void attack() {\n if (activeWeapon == null) {\n return;\n }\n attacking = true;\n }", "public void act() \n {\n World w = getWorld();\n int height = w.getHeight();\n \n setLocation(getX(),getY()+1);\n if (getY() <=0 || getY() >= height || getX() <= 0) // off the world\n {\n w.removeObject(this);\n return;\n }\n \n \n SaboWorld thisWorld = (SaboWorld) getWorld();\n Turret turret = thisWorld.getTurret();\n Actor turretActor = getOneIntersectingObject(Turret.class);\n Actor bullet = getOneIntersectingObject(Projectile.class);\n \n if (turretActor!=null && bullet==null) // hit the turret!\n {\n \n turret.bombed(); //Turret loses health\n explode();\n w.removeObject(this);\n } else if (turret==null && bullet!=null) //hit by a bullet!\n {\n explode();\n w.removeObject(this);\n }\n \n }", "public void onHitByBullet() {\r\n\t\t// Move ahead 100 and in the same time turn left papendicular to the bullet\r\n\t\tturnAheadLeft(100, 90 - hitByBulletBearing);\r\n\t}", "public void stopShoot(){\n\t\tshoot.set(0);\n\t}", "public void tick() {\r\n\r\n\t\tif (!targeted) {\r\n\t\t\tTarget = acquireTarget();\r\n\t\t} else if (timeSinceLastShot > firingSpeed) {\r\n\t\t\tangle = calculateAngle();\r\n\t\t\tshoot(Target);\r\n\t\t\ttimeSinceLastShot = 0;\r\n\t\t}\r\n\t\tif (Target == null || Target.isAlive() == false) {\r\n\t\t\ttargeted = false;\r\n\t\t}\r\n\r\n\t\ttimeSinceLastShot += Delta();\r\n\r\n\t\tfor (Dart dart : darts) {\r\n\t\t\tdart.tick();\r\n\t\t}\r\n\r\n\t\tdraw();\r\n\t}", "public void createBullet(String name, double x, double y) {\n Player player = (Player) players.get(name);\r\n if (player != null) {\r\n Bullet bullet = new Bullet(x, y);\r\n bullet.player = name;\r\n playAudio(\"shoot\");\r\n }\r\n }", "public void weaponAbility() {\n \tlogger.info(\"weapon abilities aren't implemented yet. Using slash ability\");\n \t//ability(map.getCurrentTurnHero().getWeaponAbility());\n \tability(new Slash());\n }", "public void damage(Bullet bullet)\n {\n\n\thp -= bullet.getDamage();\n\tcheckHP();\n }", "private void killBullet() {\r\n this.dead = true;\r\n }", "Bullet(int posX,int posY,int velX,int velY,int classOfObejct,int attack){\n this.posX = posX;\n this.posY = posY;\n this.velX = velX;\n this.velY = velY;\n this.classOfObejct = classOfObejct;\n this.attack = attack;\n\n }", "public void gotHit(Bullet bullet) {\n\t\tif (bullet.getOwner() != this) {\n\t\t\tDefaultModeScoring.addHitScore(bullet.getOwner());\n\t\t\tAudioManager.startAudio(bullet.getSoundName());\n\t\t\tif (!isDead())\n\t\t\t\tAudioManager.startAudio(getSoundName());\n\t\t\tsetHp(getHp() - bullet.getDamage());\n\t\t\tif (bullet.getSpeed().x() > 0)\n\t\t\t\tgetPush().setX(getPush().x() + bullet.getPush());\n\t\t\telse\n\t\t\t\tgetPush().setX(getPush().x() - bullet.getPush());\n\t\t\tif (getHp() <= 0 && !isDead())\n\t\t\t\tdie();\n\t\t}\n\t}", "@Override\n\tpublic void performRangedAttack(LivingEntity target, float distanceFactor) {\n\t\tItemStack itemstack = this.getProjectile(this.getItemInHand(ProjectileHelper.getWeaponHoldingHand(this, DeferredRegistryHandler.BLUNDERBUSS.get())));\n\t\tAbstractArrowEntity abstractBulletEntity = this.fireArrow(itemstack, distanceFactor);\n\t\tif (this.getMainHandItem().getItem() instanceof BowItem)\n\t\t\tabstractBulletEntity = ((BowItem) this.getMainHandItem().getItem()).customArrow(abstractBulletEntity);\n\t\tdouble d0 = target.getX() - this.getX();\n\t\tdouble d1 = target.getY(0.12D) - abstractBulletEntity.getY();\n\t\tdouble d2 = target.getZ() - this.getZ();\n\t\tdouble d3 = MathHelper.sqrt(d0 * d0 + d2 * d2);\n\t\tfor (int i = 0; i <= 4; i++) {\n\t\t\tabstractBulletEntity.setKnockback(3);\n\t\t\tabstractBulletEntity.shoot(d0, d1 + d3 * (double) 0.2F, d2, 1.6F, 18 - this.level.getDifficulty().getId() * 4 + GeneralUtilities.getRandomNumber(0.2f, 0.8f));\n\t\t}\n\t\tthis.playSound(DeferredRegistryHandler.BLUNDERBUSS_FIRE.get(), 1.0F, 1.0F / (this.getRandom().nextFloat() * 0.4F + 0.8F));\n\t\tthis.level.addFreshEntity(abstractBulletEntity);\n\t}", "public void onBulletHit(BulletHitEvent event) {\n RobotReference hitRobot;\n hitRobot = robots.get(event.getName());\n\n if (hitRobot.isTeammate()) {\n setTurnRight(90);\n setAhead(400);\n setChargerTarget();\n }\n }", "private void enemiesWillShoot(Graphics2D g2d, GameState state) {\n if (numOfRenderShoot == 75) {\n numOfRenderShoot = 0;\n for (int i = 0; i < state.getEnemyTanks().size(); i++) {\n if (state.getEnemyTanks().get(i).getLocY() < state.getTankLocY() + 500 && state.getEnemyTanks().get(i).getLocY() > state.getTankLocY() - 400 &&\n state.getEnemyTanks().get(i).getLocX() < state.getTankLocX() + 800 && state.getEnemyTanks().get(i).getLocX() > state.getTankLocX() - 500) {\n state.getEnemyMissiles().add(new EnemyMissile(this, state, 10\n , state.getEnemyTanks().get(i)));\n state.getEnemyMissiles().get(state.getEnemyMissiles().size() - 1).missileDirection(state);\n AudioPlayer enemyGunShotSFX = new AudioPlayer(\"sound effects/enemyshot.wav\", 0);\n }\n }\n for (int i = 0; i < state.getEnemyCars().size(); i++) {\n if (state.getEnemyCars().get(i).getLocY() < state.getTankLocY() + 500 && state.getEnemyCars().get(i).getLocY() > state.getTankLocY() - 400 &&\n state.getEnemyCars().get(i).getLocX() < state.getTankLocX() + 800 && state.getEnemyCars().get(i).getLocX() > state.getTankLocX() - 500) {\n state.getEnemyBullets().add(new EnemyBullet(this, state, 20\n , state.getEnemyCars().get(i)));\n state.getEnemyBullets().get(state.getEnemyBullets().size() - 1).bulletDirection(state);\n AudioPlayer enemyGunShotSFX = new AudioPlayer(\"sound effects/enemyshot.wav\", 0);\n }\n }\n for (int i = 0; i < state.getEnemyWallTurrets().size(); i++) {\n if (state.getEnemyWallTurrets().get(i).getLocY() < state.getTankLocY() + 500 && state.getEnemyWallTurrets().get(i).getLocY() > state.getTankLocY() - 400 &&\n state.getEnemyWallTurrets().get(i).getLocX() < state.getTankLocX() + 800 && state.getEnemyWallTurrets().get(i).getLocX() > state.getTankLocX() - 500) {\n state.getEnemyWallTurretMissiles().add(new EnemyWallTurretMissile(this, state, 15\n , state.getEnemyWallTurrets().get(i)));\n state.getEnemyWallTurretMissiles().get(state.getEnemyWallTurretMissiles().size() - 1).missileDirection(state);\n AudioPlayer enemyGunShotSFX = new AudioPlayer(\"sound effects/enemyshot.wav\", 0);\n }\n }\n\n for (int i = 0; i < state.getEnemyTurrets().size(); i++) {\n if (state.getEnemyTurrets().get(i).getLocY() < state.getTankLocY() + 500 && state.getEnemyTurrets().get(i).getLocY() > state.getTankLocY() - 400 &&\n state.getEnemyTurrets().get(i).getLocX() < state.getTankLocX() + 800 && state.getEnemyTurrets().get(i).getLocX() > state.getTankLocX() - 500) {\n state.getEnemyHomingMissiles().add(new EnemyHomingMissile(this, state, 15\n , state.getEnemyTurrets().get(i)));\n state.getEnemyHomingMissiles().get(state.getEnemyHomingMissiles().size() - 1).missileDirection(state);\n AudioPlayer enemyGunShotSFX = new AudioPlayer(\"sound effects/enemyshot.wav\", 0);\n }\n }\n }\n for (EnemyMissile enemyMissile : state.getEnemyMissiles()) {\n enemyMissile.paint(g2d, state);\n }\n for (EnemyBullet enemyBullet : state.getEnemyBullets()) {\n enemyBullet.paint(g2d, state);\n }\n for (EnemyWallTurretMissile enemyWallTurretMissile : state.getEnemyWallTurretMissiles()) {\n enemyWallTurretMissile.paint(g2d, state);\n }\n for (EnemyHomingMissile enemyHomingMissile : state.getEnemyHomingMissiles()) {\n enemyHomingMissile.paint(g2d, state);\n }\n }", "public void placeAlienBullet() {\r\n\t\tif (alien != null) {\r\n\t\t\t// If the alien is large fires a bullet in a random direction\r\n\t\t\tif (alien.getSize() == 1 && ship != null) {\r\n\r\n\t\t\t\t// Create the alien bullet\r\n\t\t\t\tab = new AlienBullet(alien.getX(), alien.getY());\r\n\r\n\t\t\t\t// give the alien bullet a random direction and the bullet speed velocity,\r\n\t\t\t\t// then add as participant\r\n\t\t\t\tdouble r = (2 * Math.PI) * RANDOM.nextDouble();\r\n\t\t\t\tab.setVelocity(BULLET_SPEED, r);\r\n\t\t\t\taddParticipant(ab);\r\n\r\n\t\t\t\t// Sets the alien bullet to expire when it reaches the bullet duration time\r\n\t\t\t\t// limit\r\n\t\t\t\tnew ParticipantCountdownTimer(ab, \"expire\", BULLET_DURATION);\r\n\t\t\t}\r\n\r\n\t\t\t// If the alien is small fires a bullet aimed directly at the ship\r\n\t\t\tif (alien.getSize() == 0 && ship != null) {\r\n\t\t\t\tab = new AlienBullet(alien.getX(), alien.getY());\r\n\t\t\t\tab.setSpeed(BULLET_SPEED);\r\n\r\n\t\t\t\t// Aims the alien bullet directly at the ship\r\n\t\t\t\tdouble A = ship.getY() - alien.getY();\r\n\t\t\t\tdouble B = ship.getX() - alien.getX();\r\n\t\t\t\tdouble angle = Math.atan2(A, B);\r\n\t\t\t\tab.setVelocity(BULLET_SPEED, angle);\r\n\r\n\t\t\t\t// Add the alien bullet as a participant and then set it to expire when it\r\n\t\t\t\t// reaches the bullet duration time limit\r\n\t\t\t\taddParticipant(ab);\r\n\t\t\t\tnew ParticipantCountdownTimer(ab, \"expire\", BULLET_DURATION);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void fireTurret() {\n\t\tif(!getCreator().hasEffect(\"TurretEffect\")) {\n\t\t\treturn;\n\t\t}\n\t\t//Fire based on what is ordained within the hero's current TurretEffect\n\t\tTurretEffect tE = (TurretEffect)getCreator().getEffect(\"TurretEffect\");\n\t\tTurretFireWrapper fW = tE.getFireFunctionWrapper();\n\t\tif(fW == null) {\n\t\t\treturn; //No active mode selected, so we just exit out. Note that this means that turrets will always fire based on the last active effect\n\t\t}\n\t\tfW.fire(getCreator(), getLoc(),range);\n\t\treturn;\n\t}", "private void update() {\n\t\t// checks to see if the w key is down\n\t\tif (wKeyDown) {\n\t\t\tplayer.setY((int) (player.getY() - 8));\n\t\t}\n\t\t// checks to see if the a key is down\n\t\tif (aKeyDown) {\n\t\t\tplayer.setX((int) (player.getX() - 8));\n\t\t}\n\t\t// checks to see if the s key is down\n\t\tif (sKeyDown) {\n\t\t\tplayer.setY((int) (player.getY() + 8));\n\t\t}\n\t\t// checks to see if the d key is down\n\t\tif (dKeyDown) {\n\t\t\tplayer.setX((int) (player.getX() + 8));\n\t\t}\n\t\t\n\t\t// checks to make sure the player is within the bounds\n\t\tcheckBounds();\n\t\t\n\t\t// checks to see if the left mouse button is clicked\n\t\tif (mouseDown) {\n\t\t\t// if doubleshot is activated\n\t\t\tif (doubleShot && bulletDelta > doubleShotShootingSpeed) {\n\t\t\t\t// plays the bullet shooting sound\n\t\t\t\tsound.get(\"shootEffect\").playAsSoundEffect(1.0f, 0.5f, false);\n\t\t\t\t\n\t\t\t\t// adds the first bullet\n\t\t\t\tbullet.add(new Bullet(this, \"bullet\", 0, 0, 100));\n\t\t\t\tBullet lastBullet = bullet.get(bullet.size() - 1);\n\t\t\t\t\n\t\t\t\t// sets the x and y coordinates of the bullet\n\t\t\t\tlastBullet.setX(player.getX() + sprite.get(\"playerSprite\").getWidth()\n\t\t\t\t\t\t- sprite.get(\"bulletSprite\").getWidth() / 2 + BULLET_X_OFFSET);\n\t\t\t\tlastBullet.setY(player.getY() + sprite.get(\"playerSprite\").getHeight()\n\t\t\t\t\t\t- sprite.get(\"bulletSprite\").getHeight() / 2 + BULLET_Y_OFFSET);\n\t\t\t\t\n\t\t\t\t// set the angle of the shot\n\t\t\t\tdouble xChange = Mouse.getX() - lastBullet.getX();\n\t\t\t\tdouble yChange = (displayHeight - Mouse.getY()) - lastBullet.getY();\n\t\t\t\tdouble magnitude = Math.sqrt(xChange * xChange + yChange * yChange);\n\t\t\t\txChange = xChange / magnitude * 20;\n\t\t\t\tyChange = yChange / magnitude * 20;\n\t\t\t\tlastBullet.setXChange((int) xChange);\n\t\t\t\tlastBullet.setYChange((int) yChange);\n\t\t\t\t\n\t\t\t\t// adds the second bullet\n\t\t\t\tbullet.add(new Bullet(this, \"bullet\", 0, 0, 100));\n\t\t\t\tlastBullet = bullet.get(bullet.size() - 1);\n\t\t\t\t\n\t\t\t\tlastBullet.setX(player.getX() + sprite.get(\"playerSprite\").getWidth()\n\t\t\t\t\t\t- sprite.get(\"bulletSprite\").getWidth() / 2 + BULLET2_X_OFFSET);\n\t\t\t\tlastBullet.setY(player.getY() + sprite.get(\"playerSprite\").getHeight()\n\t\t\t\t\t\t- sprite.get(\"bulletSprite\").getHeight() / 2 + BULLET2_Y_OFFSET);\n\t\t\t\t\n\t\t\t\t// set the angle of the shot\n\t\t\t\tdouble doubleshotXChange = Mouse.getX() - lastBullet.getX();\n\t\t\t\tdouble doubleshotYChange = (displayHeight - Mouse.getY()) - lastBullet.getY();\n\t\t\t\tdouble doubleshotMagnitude = Math.sqrt(xChange * xChange + yChange * yChange);\n\t\t\t\tdoubleshotXChange = xChange / doubleshotMagnitude * 20;\n\t\t\t\tdoubleshotYChange = yChange / doubleshotMagnitude * 20;\n\t\t\t\tlastBullet.setXChange((int) doubleshotXChange);\n\t\t\t\tlastBullet.setYChange((int) doubleshotYChange);\n\t\t\t\t\n\t\t\t\tDelta.setLastBullet(Delta.getTime());\n\t\t\t}\n\t\t\t// if a bullet is shot and the time since the last bullet is at least shootingSpeed\n\t\t\telse if (bulletShot && bulletDelta > bulletShootingSpeed) {\n\t\t\t\t// plays the bullet shooting sound\n\t\t\t\tsound.get(\"shootEffect\").playAsSoundEffect(1.0f, 0.5f, false);\n\t\t\t\t\n\t\t\t\t// adds the bullet\n\t\t\t\tbullet.add(new Bullet(this, \"bullet\", 0, 0, 100));\n\t\t\t\tBullet lastBullet = bullet.get(bullet.size() - 1);\n\t\t\t\t\n\t\t\t\t// sets the x and y coordinates of the bullet\n\t\t\t\tlastBullet.setX(player.getX() + sprite.get(\"playerSprite\").getWidth()\n\t\t\t\t\t\t- sprite.get(\"bulletSprite\").getWidth() / 2 + BULLET_X_OFFSET);\n\t\t\t\tlastBullet.setY(player.getY() + sprite.get(\"playerSprite\").getHeight()\n\t\t\t\t\t\t- sprite.get(\"bulletSprite\").getHeight() / 2 + BULLET_Y_OFFSET);\n\t\t\t\t\n\t\t\t\t// set the angle of the shot\n\t\t\t\tdouble xChange = Mouse.getX() - lastBullet.getX();\n\t\t\t\tdouble yChange = (displayHeight - Mouse.getY()) - lastBullet.getY();\n\t\t\t\tdouble magnitude = Math.sqrt(xChange * xChange + yChange * yChange);\n\t\t\t\txChange = xChange / magnitude * 20;\n\t\t\t\tyChange = yChange / magnitude * 20;\n\t\t\t\tlastBullet.setXChange((int) xChange);\n\t\t\t\tlastBullet.setYChange((int) yChange);\n\t\t\t\t\n\t\t\t\tDelta.setLastBullet(Delta.getTime());\n\t\t\t}\n\t\t\t// if a laser is shot\n\t\t\telse if (laserShot) {\n\t\t\t\tif (Delta.getTime() % 6 == 0) {\n\t\t\t\t\t// plays the laser shooting sound\n\t\t\t\t\tsound.get(\"laserEffect\").playAsSoundEffect(1.0f, 0.5f, false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// adds the laser\n\t\t\t\tbullet.add(new Bullet(this, \"laser\", 0, 0, 20));\n\t\t\t\tBullet lastBullet = bullet.get(bullet.size() - 1);\n\t\t\t\t\n\t\t\t\t// sets the x and y coordinates of the laser\n\t\t\t\tlastBullet.setX(player.getX() + sprite.get(\"playerSprite\").getWidth()\n\t\t\t\t\t\t- sprite.get(\"laserSprite\").getWidth() / 2 + BULLET_X_OFFSET);\n\t\t\t\tlastBullet.setY(player.getY() + sprite.get(\"playerSprite\").getHeight()\n\t\t\t\t\t\t- sprite.get(\"laserSprite\").getHeight() + BULLET_Y_OFFSET);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Checks to see if the time since the last enemy is greater than the enemy interval\n\t\tif (!bossSpawned && enemyDelta > generateEnemyInterval()) {\n\t\t\tdouble enemyGenerate = randomGenerator.nextDouble();\n\t\t\tif (enemyGenerate >= 0.3 || Delta.getDelta(\"beginning\") <= 10000)\n\t\t\t\tenemy.add(new Enemy(this, \"green_box\", 0, 0, 300, Delta.getDelta(\"beginning\"), 300));\n\t\t\telse if (enemyGenerate < 0.3)\n\t\t\t\tenemy.add(new Enemy(this, \"red_box\", 0, 0, 400, Delta.getDelta(\"beginning\"), 400));\n\t\t\tEnemy lastEnemy = enemy.get(enemy.size() - 1);\n\t\t\t\n\t\t\tlastEnemy.setX(lastEnemy.generateEnemyX());\n\t\t\tlastEnemy.setY(-lastEnemy.getSprite().getHeight());\n\t\t\tDelta.setLastEnemy(Delta.getTime());\n\t\t}\n\t\t\n\t\tif (bossExplosionNum == 0) {\n\t\t\t// Checks to see if enemy bullets should be generated\n\t\t\tfor (int i = 0; i < enemy.size(); i++) {\n\t\t\t\tif (enemy.get(i).getName().equals(\"red_box\") && enemy.get(i).getTimeSinceLastBullet() >= 700) {\n\t\t\t\t\tenemy_bullet.add(new Bullet(this, \"enemy_bullet\", 0, 0, 100));\n\t\t\t\t\tenemy.get(i).setLastBulletTime(Delta.getDelta(\"beginning\"));\n\t\t\t\t\t\n\t\t\t\t\tBullet lastEnemyBullet = enemy_bullet.get(enemy_bullet.size() - 1);\n\t\t\t\t\tSprite enemySprite = enemy.get(i).getSprite();\n\t\t\t\t\tSprite enemyBulletSprite = lastEnemyBullet.getSprite();\n\t\t\t\t\t\n\t\t\t\t\tlastEnemyBullet.setX(enemy.get(i).getX() + enemySprite.getWidth() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getWidth() / 2);\n\t\t\t\t\tlastEnemyBullet.setY(enemy.get(i).getY() + enemySprite.getHeight() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getHeight() / 2);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (enemy.get(i).getName().equals(\"boss\") && enemy.get(i).getTimeSinceLastBullet() >= 1000) {\n\t\t\t\t\tenemy_bullet.add(new Bullet(this, \"boss_bullet\", 0, 0, 100));\n\t\t\t\t\tenemy.get(i).setLastBulletTime(Delta.getDelta(\"beginning\"));\n\t\t\t\t\t\n\t\t\t\t\tBullet lastEnemyBullet = enemy_bullet.get(enemy_bullet.size() - 1);\n\t\t\t\t\tSprite enemySprite = enemy.get(i).getSprite();\n\t\t\t\t\tSprite enemyBulletSprite = lastEnemyBullet.getSprite();\n\t\t\t\t\t\n\t\t\t\t\tlastEnemyBullet.setX(enemy.get(i).getX() + enemySprite.getWidth() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getWidth() / 2);\n\t\t\t\t\tlastEnemyBullet.setY(enemy.get(i).getY() + enemySprite.getHeight() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getHeight() / 2);\n\t\t\t\t\t\n\t\t\t\t\t// set the angle of the shot\n\t\t\t\t\tdouble xChange = player.getX() - lastEnemyBullet.getX();\n\t\t\t\t\tdouble yChange = player.getY() - lastEnemyBullet.getY();\n\t\t\t\t\tdouble magnitude = Math.sqrt(xChange * xChange + yChange * yChange);\n\t\t\t\t\txChange = xChange / magnitude * 15;\n\t\t\t\t\tyChange = yChange / magnitude * 15;\n\t\t\t\t\tlastEnemyBullet.setXChange((int) xChange);\n\t\t\t\t\tlastEnemyBullet.setYChange((int) yChange);\n\t\t\t\t\t\n\t\t\t\t\tenemy_bullet.add(new Bullet(this, \"boss_bullet\", 0, 0, 100));\n\t\t\t\t\tenemy.get(i).setLastBulletTime(Delta.getDelta(\"beginning\"));\n\t\t\t\t\t\n\t\t\t\t\tlastEnemyBullet = enemy_bullet.get(enemy_bullet.size() - 1);\n\t\t\t\t\tenemySprite = enemy.get(i).getSprite();\n\t\t\t\t\tenemyBulletSprite = lastEnemyBullet.getSprite();\n\t\t\t\t\t\n\t\t\t\t\tlastEnemyBullet.setX(enemy.get(i).getX() + enemySprite.getWidth() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getWidth() / 2);\n\t\t\t\t\tlastEnemyBullet.setY(enemy.get(i).getY() + enemySprite.getHeight() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getHeight() / 2);\n\t\t\t\t\t\n\t\t\t\t\t// set the angle of the shot\n\t\t\t\t\txChange = player.getX() - lastEnemyBullet.getX() - 100;\n\t\t\t\t\tyChange = player.getY() - lastEnemyBullet.getY() - 100;\n\t\t\t\t\tmagnitude = Math.sqrt(xChange * xChange + yChange * yChange);\n\t\t\t\t\txChange = xChange / magnitude * 15;\n\t\t\t\t\tyChange = yChange / magnitude * 15;\n\t\t\t\t\tlastEnemyBullet.setXChange((int) xChange);\n\t\t\t\t\tlastEnemyBullet.setYChange((int) yChange);\n\t\t\t\t\t\n\t\t\t\t\tenemy_bullet.add(new Bullet(this, \"boss_bullet\", 0, 0, 100));\n\t\t\t\t\tenemy.get(i).setLastBulletTime(Delta.getDelta(\"beginning\"));\n\t\t\t\t\t\n\t\t\t\t\tlastEnemyBullet = enemy_bullet.get(enemy_bullet.size() - 1);\n\t\t\t\t\tenemySprite = enemy.get(i).getSprite();\n\t\t\t\t\tenemyBulletSprite = lastEnemyBullet.getSprite();\n\t\t\t\t\t\n\t\t\t\t\tlastEnemyBullet.setX(enemy.get(i).getX() + enemySprite.getWidth() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getWidth() / 2);\n\t\t\t\t\tlastEnemyBullet.setY(enemy.get(i).getY() + enemySprite.getHeight() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getHeight() / 2);\n\t\t\t\t\t\n\t\t\t\t\t// set the angle of the shot\n\t\t\t\t\txChange = player.getX() - lastEnemyBullet.getX() + 100;\n\t\t\t\t\tyChange = player.getY() - lastEnemyBullet.getY() + 100;\n\t\t\t\t\tmagnitude = Math.sqrt(xChange * xChange + yChange * yChange);\n\t\t\t\t\txChange = xChange / magnitude * 15;\n\t\t\t\t\tyChange = yChange / magnitude * 15;\n\t\t\t\t\tlastEnemyBullet.setXChange((int) xChange);\n\t\t\t\t\tlastEnemyBullet.setYChange((int) yChange);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// spawns the boss if 60 seconds has passed\n\t\tif (Delta.getDelta(\"beginning\") >= 60000 && !bossSpawned) {\n\t\t\tbossSpawned = true;\n\t\t\tenemy.add(new Enemy(this, \"boss\", 0, 0, 10000, Delta.getDelta(\"beginning\"), 500));\n\t\t\t\n\t\t\tEnemy boss = enemy.get(enemy.size() - 1);\n\t\t\tboss.setX(displayWidth / 2 - boss.getSprite().getWidth() / 2);\n\t\t\tboss.setY(-boss.getSprite().getHeight());\n\t\t}\n\t\t\n\t\t// checks for collisions\n\t\tif (bossExplosionNum == 0) {\n\t\t\tfor (int i = 0; i < enemy.size(); i++) {\n\t\t\t\tEntity entity1 = enemy.get(i);\n\t\t\t\t\n\t\t\t\t// if a bullet collides with an enemy\n\t\t\t\tfor (int j = 0; j < bullet.size(); j++) {\n\t\t\t\t\tEntity entity2 = bullet.get(j);\n\t\t\t\t\t\n\t\t\t\t\tif (entity1.collidesWith(entity2)) {\n\t\t\t\t\t\tentity1.collidedWith(entity2);\n\t\t\t\t\t\tentity2.collidedWith(entity1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tEntity entity2 = player;\n\t\t\t\t\n\t\t\t\t// if the player collides with an enemy\n\t\t\t\tif (entity1.collidesWith(entity2)) {\n\t\t\t\t\tentity1.collidedWith(entity2);\n\t\t\t\t\tentity2.collidedWith(entity1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tEntity entity1 = player;\n\t\t\t// if an enemy bullet collides with the player\n\t\t\tfor (int i = 0; i < enemy_bullet.size(); i++) {\n\t\t\t\tEntity entity2 = enemy_bullet.get(i);\n\t\t\t\t\n\t\t\t\tif (entity1.collidesWith(entity2)) {\n\t\t\t\t\tentity1.collidedWith(entity2);\n\t\t\t\t\tentity2.collidedWith(entity1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if a powerup collides with the player\n\t\t\tfor (int i = 0; i < powerup.size(); i++) {\n\t\t\t\tEntity entity2 = powerup.get(i);\n\t\t\t\t\n\t\t\t\tif (entity1.collidesWith(entity2)) {\n\t\t\t\t\tentity1.collidedWith(entity2);\n\t\t\t\t\tentity2.collidedWith(entity1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// if the player has defeated the boss\n\t\tif (gameWon && bossSpawned) {\n\t\t\t// draw Congratulations\n\t\t\tString congrats = \"Congratulations! You were able to vanquish\";\n\t\t\tString congrats2 = \"all of your evil thoughts and achieve nirvana!\";\n\t\t\tcongratsFont.drawString(displayWidth / 2 - congratsFont.getWidth(congrats) / 2, displayHeight / 2\n\t\t\t\t\t- congratsFont.getHeight(congrats) / 2 - 50, congrats);\n\t\t\tcongratsFont.drawString(displayWidth / 2 - congratsFont.getWidth(congrats2) / 2, displayHeight\n\t\t\t\t\t/ 2 - congratsFont.getHeight(congrats2) / 2 - 15, congrats2);\n\t\t\t\n\t\t\t// draw the score\n\t\t\tscoreFont.drawString(displayWidth / 2 - scoreFont.getWidth(\"Score: \" + totalCash) / 2, displayHeight\n\t\t\t\t\t/ 2\n\t\t\t\t\t+ scoreFont.getHeight(\"Game Over!\")\n\t\t\t\t\t/ 2\n\t\t\t\t\t+ scoreFont.getHeight(\"Score: \" + totalCash)\n\t\t\t\t\t/ 2 + 10 - 50, \"Score: \" + totalCash);\n\t\t}\n\t}", "private void shootingMotion(final View v, final float x, final float y) {\n setBulletLocation(v, x, y);\n ObjectAnimator animation = ObjectAnimator.ofFloat(v, \"translationY\", -300f);\n animation.setDuration(2000);\n animation.start();\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n checkOnHit(v);\n }\n }, 1300);\n }", "private void attackPlayer()\n\t{\n\t\tif(shootTimer.done())\n\t\t{\n\t\t\tProjectile spiderWeb = new SpiderWeb(x, y);\n\t\t\tGame.objectWaitingRoom.add(spiderWeb);\n\t\t\tspiderWeb.shoot();\n\t\t\tshootTimer.setTime(200);\n\t\t}\n\t}", "public void ballShoot() {\n\n ballRight.setPower(-1);\n ballLeft.setPower(1);\n\n wait(2.0);\n\n flipper.setPosition(0.7);\n\n wait(0.5);\n\n flipper.setPosition(0.9);\n ballLeft.setPower(0);\n ballRight.setPower(0);\n\n\n }", "public boolean shoot(float startX, float startY, float touchX, float touchY, int screenX, int screenY) {\n if(!isActive){\n x = (startX+((screenX/5)/2));\n y = (startY+((screenX/10)/2));\n\n LEFT = false;\n BOTTOM = false;\n\n targetX = touchX;\n targetY = touchY;\n\n slopeX = (x/targetX);\n slopeY = (y/targetY);\n\n\n if(targetX < (screenX/2)) {\n LEFT = true;\n }\n\n if(targetY < (screenY/2)) {\n BOTTOM = true;\n }\n\n slope = slopeY/slopeX;\n\n isActive = true;\n return false;\n }\n\n //Bullet is already Active\n return false;\n }", "public void tick() {\n if (ShulkerEntity.this.world.getDifficulty() != Difficulty.PEACEFUL) {\n --this.attackTime;\n LivingEntity livingentity = ShulkerEntity.this.getAttackTarget();\n ShulkerEntity.this.getLookController().setLookPositionWithEntity(livingentity, 180.0F, 180.0F);\n double d0 = ShulkerEntity.this.getDistanceSq(livingentity);\n if (d0 < 400.0D) {\n if (this.attackTime <= 0) {\n this.attackTime = 20 + ShulkerEntity.this.rand.nextInt(10) * 20 / 2;\n ShulkerEntity.this.world.addEntity(new ShulkerBulletEntity(ShulkerEntity.this.world, ShulkerEntity.this, livingentity, ShulkerEntity.this.getAttachmentFacing().getAxis()));\n ShulkerEntity.this.playSound(SoundEvents.ENTITY_SHULKER_SHOOT, 2.0F, (ShulkerEntity.this.rand.nextFloat() - ShulkerEntity.this.rand.nextFloat()) * 0.2F + 1.0F);\n }\n } else {\n ShulkerEntity.this.setAttackTarget((LivingEntity)null);\n }\n\n super.tick();\n }\n }", "public int shoot()\n {\n if(availableAmmo > 0)\n {\n System.out.println(\"Pew Pew\");\n availableAmmo--; \n damageCaused = randomDamageGenerator.nextInt(450);\n return damageCaused;\n }\n else return -1;\n }", "@Override\r\n\tpublic void shoot(Robot robot) throws UnsupportedOperationException\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(robot.canShoot())\r\n\t\t\t{\r\n\t\t\t\trobot.shoot();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(IllegalStateException exc)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"A terminated robot cannot shoot.\");\r\n\t\t}\r\n\t}", "private void shoot(boolean canShoot, java.util.List<Enemy> enemiesInVicinity) {\n if (canShoot) {\n shotEnemy = null;\n if (!enemiesInVicinity.isEmpty()){\n boolean shotEnamies = shootAt(enemyWithLowestHealth(enemiesInVicinity));\n if (shotEnamies) resetCooldown();\n }\n }\n }", "public void fireProjectile(String direction){\r\n\t\tif(name.equals(\"Robot\"))AdventureManager.currentRoom.enemyProjectiles.add(new Projectile(x,y, direction, 5, \"laser\"));\r\n\t\telse AdventureManager.currentRoom.enemyProjectiles.add(new Projectile(x,y, direction, 3, \"fireball\"));\r\n\t}", "public void attack(RobotReference target) {\n if (target != null) {\n turnToVector(target.getLocation());\n pointGunToVector(target.getLocation());\n setAhead(60);\n fire(3);\n\n\n }\n }", "public void procectileShoot(ItemStack it, Projectile a) {\r\n\t\tif(it==null) return;\r\n\t\t\r\n\t\tAttributeStorage storage = AttributeStorage.newTarget(it, SpellItems.itemUUID);\r\n\t\tif(!storage.getData(\"\").startsWith(\"si_customenchant_\")) return;\r\n\t\tString enchants = storage.getData(\"\").replace(\"si_customenchant_\", \"\");\r\n\t\t\r\n\t\tint pos = 0;\r\n\t\tfor(String st : enchants.split(\"|\")) {\r\n\t\t\tString[] info = st.split(\":\");\r\n\t\t\tCustomEnchant ce = getEnchantmentByName(info[0]);\r\n\t\t\tif(ce!=null) {\r\n\t\t\t\ta.setMetadata(\"spellitems_enchant_\"+pos, new FixedMetadataValue(SpellItems.instance, ce.getInternalName()));\r\n\t\t\t\tpos++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void defensive_act()\r\n\t{\r\n\t\tBullet closestBullet = IMAGINARY_BULLET;\r\n\t//\tBullet secondClosestBullet = IMAGINARY_BULLET;\r\n\t\t\r\n\t\tActor machines;\r\n\t\tEnumeration<Actor> opponent = ((MachineInfo)data.get(TankFrame.PLAYER_1)).getHashtable().elements();\r\n\t\twhile(opponent.hasMoreElements())\r\n\t\t{\r\n\t\t\tmachines = (Actor) opponent.nextElement();\r\n\t\t\tif(machines instanceof Bullet)\r\n\t\t\t{\r\n\t\t\t\tif(machines.getPoint().distance(getPoint()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t{\r\n\t\t\t\t\tclosestBullet = (Bullet)machines;\r\n\t\t\t\t\tLine2D aim = new Line2D.Double(getCenterX(), getCenterY(), closestBullet.getPosX(), closestBullet.getPosY() );\r\n\t\t\t\t\tSystem.out.println(aim.getP1().distance(aim.getP2()));\r\n\t\t\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t\t\taimAndShoot(aim);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t/*\tif(machines.getPoint().distance(getPoint()) > secondClosestBullet.getPoint().distance(getPoint()) \r\n\t\t\t\t\t&& machines.getPoint().distance(getPoint()) < closestBullet.getPoint().distance(getPoint()))\r\n\t\t\t\t\tsecondClosestBullet = (Bullet)machines;*/\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Find the line\r\n\t\t */\r\n\t\t/*if(!closestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), closestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(getCenterX(), getCenterY(), (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\t/*bulletPath = new Line2D(getRightPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\tbulletPath = new Line2D(getPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);*/\r\n\t\t\t\r\n\t\t//}\r\n\t/*\tif(!secondClosestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), secondClosestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t}*/\r\n\r\n\t}", "void playerHandler() {\n player.turnToPoint(mouseX, mouseY);\n if (firing && sTimer < 1) {\n\n Sprite smb = new Sprite(smbulletbase);\n smb.moveToSprite(player);\n if(usingCoil){\n clickEffect = new KTSound(this, coilshotURL);\n ktAudio.add(clickEffect);\n clickEffect.play();\n clickEffect = new KTSound(this, gunshotURL);\n ktAudio.add(clickEffect);\n }\n smBullets.add(smb);\n clickEffect.play();\n if(weapon == \"minigun\"){\n smb.turnToPoint(mouseX+(int)random(-90,90), mouseY+(int)random(-90,90));\n }\n else{\n smb.turnToPoint(mouseX, mouseY);\n }\n\n sTimer = firingSpeed;\n }\n sTimer -= 1;\n \n prevX = player.getX();\n prevY = player.getY();\n\n if (up) {\n player.moveY( - 5);\n // pAngle -= 1;\n }\n if (down) {\n player.moveY(5);\n // pAngle += 1;\n }\n if (left) {\n player.moveX( - 5);\n // pAngle -= 1;\n }\n if (right) {\n player.moveX(5);\n }\n if (player.getY() < player.getH() / 2) {\n player.setY(player.getH() / 2);\n }\n if (player.getY() > 2048 - player.getH() / 2) {\n player.setY(2048 - player.getH() / 2);\n }\n if (player.getX() < player.getH() / 2) {\n player.setX(player.getH() / 2);\n }\n if (player.getX() > 2048 - player.getH() / 2) {\n player.setX(2048 - player.getH() / 2);\n }\n \n \n\n // player.turnToDir(pAngle);\n player.display();\n // player.displayHitbox();\n}", "public void attack(ItemWeapon w, Monster target) {\n\t\ttarget.takeDamage(w.getDamage()+level*20);\n\t}" ]
[ "0.86478144", "0.831216", "0.8123065", "0.79446924", "0.7923171", "0.78919965", "0.7737296", "0.76091856", "0.7577883", "0.7413092", "0.7389919", "0.73835224", "0.7380243", "0.7380243", "0.73660046", "0.7334139", "0.7228242", "0.72205967", "0.72170675", "0.72063416", "0.7176395", "0.7174987", "0.7169163", "0.71583855", "0.7144738", "0.71421325", "0.71375436", "0.7076216", "0.70516574", "0.7045346", "0.70398384", "0.7027467", "0.7013127", "0.69867355", "0.698112", "0.69344467", "0.6862781", "0.68468446", "0.68309665", "0.680524", "0.6771146", "0.67607254", "0.6695979", "0.6690925", "0.6673251", "0.6667643", "0.6649494", "0.6605978", "0.65937096", "0.65810716", "0.6568883", "0.65681386", "0.65618426", "0.6556267", "0.6550271", "0.65465844", "0.649482", "0.64936924", "0.64740187", "0.64646196", "0.6432033", "0.6412711", "0.64088744", "0.6396097", "0.63776976", "0.6363696", "0.6336399", "0.6332419", "0.63305575", "0.63287586", "0.6319563", "0.63137686", "0.6301437", "0.6285948", "0.62843764", "0.6280161", "0.62680054", "0.6267411", "0.6266453", "0.6260064", "0.6251029", "0.62162405", "0.62019044", "0.619877", "0.6190695", "0.6187341", "0.6169028", "0.61653286", "0.6164815", "0.6128853", "0.61260283", "0.61252445", "0.6120528", "0.6102676", "0.61013055", "0.60915", "0.6084512", "0.60811263", "0.6077734", "0.605871" ]
0.7255779
16
Updates the Weapon and its bullets
public void update(int delta) { pause = Math.max(0, pause - 1); for(int i = 0; i < bullets.size(); i++) { boolean shoot = bullets.get(i).updateBullet(delta); if(shoot) { //bullets.get(i).killInstance(); bullets.remove(i); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shootBullet( ){\n bulletsFired.add(new Bullet((short)(this.xPos + BOX_HEIGHT), (short)((this.getYPos() + (BOX_HEIGHT+15))), this.xPos, this.id, (byte) 0, (byte) 0, shootingDirection, currentWeapon.getKey()));\n\n byte weaponFired = currentWeapon.getKey();\n switch (weaponFired){\n case PISTOL_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n case MACHINEGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(MACHINEGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(MACHINEGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case SHOTGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SHOTGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SHOTGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.shotgunSound);\n break;\n case SNIPER_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SNIPER_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SNIPER_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case UZI_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(UZI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(UZI_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case AI_WEAPON_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(AI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n System.out.println(\"Bullet sound \" + audioHandler.getSoundEffectVolume());\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n default: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n\n }\n }", "private void UpdateBullets()\n\t {\n\t for(int i = 0; i < BulletList.size(); i++)\n\t {\n\t Bullet bullet = BulletList.get(i);\n\t \n\t // Move the bullet.\n\t bullet.Update();\n\t \n\t // checks if the bullet has it left the screen\n\t if(bullet.HasLeftScreen()){\n\t BulletList.remove(i);\n\t \n\t continue;\n\t }\n\t \n\t // checks if the bullet hit the enemy\n\t Rectangle BulletRectangle = new Rectangle((int)bullet.xCoord, (int)bullet.yCoord, bullet.BulletImage.getWidth(), bullet.BulletImage.getHeight());\n\t // Go trough all enemies.\n\t for(int j = 0; j < EnemyList.size(); j++)\n\t {\n\t Enemy eh = EnemyList.get(j);\n\n\t \n\t Rectangle EnemyRectangel = new Rectangle(eh.xCoord, eh.yCoord, eh.EnemyHelicopterImage.getWidth(), eh.EnemyHelicopterImage.getHeight());\n\n\t // Checks whether the the bullet has hit the enemy\n\t if(BulletRectangle.intersects(EnemyRectangel))\n\t {\n\t // Bullet hit the enemy so we reduce his health.\n\t eh.Health -= Bullet.DamagePower;\n\t \n\t // Bullet was also destroyed so we remove it.\n\t BulletList.remove(i);\n\t \n\t \n\t }\n\t }\n\t }\n\t }", "private void update() {\n\t\t// checks to see if the w key is down\n\t\tif (wKeyDown) {\n\t\t\tplayer.setY((int) (player.getY() - 8));\n\t\t}\n\t\t// checks to see if the a key is down\n\t\tif (aKeyDown) {\n\t\t\tplayer.setX((int) (player.getX() - 8));\n\t\t}\n\t\t// checks to see if the s key is down\n\t\tif (sKeyDown) {\n\t\t\tplayer.setY((int) (player.getY() + 8));\n\t\t}\n\t\t// checks to see if the d key is down\n\t\tif (dKeyDown) {\n\t\t\tplayer.setX((int) (player.getX() + 8));\n\t\t}\n\t\t\n\t\t// checks to make sure the player is within the bounds\n\t\tcheckBounds();\n\t\t\n\t\t// checks to see if the left mouse button is clicked\n\t\tif (mouseDown) {\n\t\t\t// if doubleshot is activated\n\t\t\tif (doubleShot && bulletDelta > doubleShotShootingSpeed) {\n\t\t\t\t// plays the bullet shooting sound\n\t\t\t\tsound.get(\"shootEffect\").playAsSoundEffect(1.0f, 0.5f, false);\n\t\t\t\t\n\t\t\t\t// adds the first bullet\n\t\t\t\tbullet.add(new Bullet(this, \"bullet\", 0, 0, 100));\n\t\t\t\tBullet lastBullet = bullet.get(bullet.size() - 1);\n\t\t\t\t\n\t\t\t\t// sets the x and y coordinates of the bullet\n\t\t\t\tlastBullet.setX(player.getX() + sprite.get(\"playerSprite\").getWidth()\n\t\t\t\t\t\t- sprite.get(\"bulletSprite\").getWidth() / 2 + BULLET_X_OFFSET);\n\t\t\t\tlastBullet.setY(player.getY() + sprite.get(\"playerSprite\").getHeight()\n\t\t\t\t\t\t- sprite.get(\"bulletSprite\").getHeight() / 2 + BULLET_Y_OFFSET);\n\t\t\t\t\n\t\t\t\t// set the angle of the shot\n\t\t\t\tdouble xChange = Mouse.getX() - lastBullet.getX();\n\t\t\t\tdouble yChange = (displayHeight - Mouse.getY()) - lastBullet.getY();\n\t\t\t\tdouble magnitude = Math.sqrt(xChange * xChange + yChange * yChange);\n\t\t\t\txChange = xChange / magnitude * 20;\n\t\t\t\tyChange = yChange / magnitude * 20;\n\t\t\t\tlastBullet.setXChange((int) xChange);\n\t\t\t\tlastBullet.setYChange((int) yChange);\n\t\t\t\t\n\t\t\t\t// adds the second bullet\n\t\t\t\tbullet.add(new Bullet(this, \"bullet\", 0, 0, 100));\n\t\t\t\tlastBullet = bullet.get(bullet.size() - 1);\n\t\t\t\t\n\t\t\t\tlastBullet.setX(player.getX() + sprite.get(\"playerSprite\").getWidth()\n\t\t\t\t\t\t- sprite.get(\"bulletSprite\").getWidth() / 2 + BULLET2_X_OFFSET);\n\t\t\t\tlastBullet.setY(player.getY() + sprite.get(\"playerSprite\").getHeight()\n\t\t\t\t\t\t- sprite.get(\"bulletSprite\").getHeight() / 2 + BULLET2_Y_OFFSET);\n\t\t\t\t\n\t\t\t\t// set the angle of the shot\n\t\t\t\tdouble doubleshotXChange = Mouse.getX() - lastBullet.getX();\n\t\t\t\tdouble doubleshotYChange = (displayHeight - Mouse.getY()) - lastBullet.getY();\n\t\t\t\tdouble doubleshotMagnitude = Math.sqrt(xChange * xChange + yChange * yChange);\n\t\t\t\tdoubleshotXChange = xChange / doubleshotMagnitude * 20;\n\t\t\t\tdoubleshotYChange = yChange / doubleshotMagnitude * 20;\n\t\t\t\tlastBullet.setXChange((int) doubleshotXChange);\n\t\t\t\tlastBullet.setYChange((int) doubleshotYChange);\n\t\t\t\t\n\t\t\t\tDelta.setLastBullet(Delta.getTime());\n\t\t\t}\n\t\t\t// if a bullet is shot and the time since the last bullet is at least shootingSpeed\n\t\t\telse if (bulletShot && bulletDelta > bulletShootingSpeed) {\n\t\t\t\t// plays the bullet shooting sound\n\t\t\t\tsound.get(\"shootEffect\").playAsSoundEffect(1.0f, 0.5f, false);\n\t\t\t\t\n\t\t\t\t// adds the bullet\n\t\t\t\tbullet.add(new Bullet(this, \"bullet\", 0, 0, 100));\n\t\t\t\tBullet lastBullet = bullet.get(bullet.size() - 1);\n\t\t\t\t\n\t\t\t\t// sets the x and y coordinates of the bullet\n\t\t\t\tlastBullet.setX(player.getX() + sprite.get(\"playerSprite\").getWidth()\n\t\t\t\t\t\t- sprite.get(\"bulletSprite\").getWidth() / 2 + BULLET_X_OFFSET);\n\t\t\t\tlastBullet.setY(player.getY() + sprite.get(\"playerSprite\").getHeight()\n\t\t\t\t\t\t- sprite.get(\"bulletSprite\").getHeight() / 2 + BULLET_Y_OFFSET);\n\t\t\t\t\n\t\t\t\t// set the angle of the shot\n\t\t\t\tdouble xChange = Mouse.getX() - lastBullet.getX();\n\t\t\t\tdouble yChange = (displayHeight - Mouse.getY()) - lastBullet.getY();\n\t\t\t\tdouble magnitude = Math.sqrt(xChange * xChange + yChange * yChange);\n\t\t\t\txChange = xChange / magnitude * 20;\n\t\t\t\tyChange = yChange / magnitude * 20;\n\t\t\t\tlastBullet.setXChange((int) xChange);\n\t\t\t\tlastBullet.setYChange((int) yChange);\n\t\t\t\t\n\t\t\t\tDelta.setLastBullet(Delta.getTime());\n\t\t\t}\n\t\t\t// if a laser is shot\n\t\t\telse if (laserShot) {\n\t\t\t\tif (Delta.getTime() % 6 == 0) {\n\t\t\t\t\t// plays the laser shooting sound\n\t\t\t\t\tsound.get(\"laserEffect\").playAsSoundEffect(1.0f, 0.5f, false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// adds the laser\n\t\t\t\tbullet.add(new Bullet(this, \"laser\", 0, 0, 20));\n\t\t\t\tBullet lastBullet = bullet.get(bullet.size() - 1);\n\t\t\t\t\n\t\t\t\t// sets the x and y coordinates of the laser\n\t\t\t\tlastBullet.setX(player.getX() + sprite.get(\"playerSprite\").getWidth()\n\t\t\t\t\t\t- sprite.get(\"laserSprite\").getWidth() / 2 + BULLET_X_OFFSET);\n\t\t\t\tlastBullet.setY(player.getY() + sprite.get(\"playerSprite\").getHeight()\n\t\t\t\t\t\t- sprite.get(\"laserSprite\").getHeight() + BULLET_Y_OFFSET);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Checks to see if the time since the last enemy is greater than the enemy interval\n\t\tif (!bossSpawned && enemyDelta > generateEnemyInterval()) {\n\t\t\tdouble enemyGenerate = randomGenerator.nextDouble();\n\t\t\tif (enemyGenerate >= 0.3 || Delta.getDelta(\"beginning\") <= 10000)\n\t\t\t\tenemy.add(new Enemy(this, \"green_box\", 0, 0, 300, Delta.getDelta(\"beginning\"), 300));\n\t\t\telse if (enemyGenerate < 0.3)\n\t\t\t\tenemy.add(new Enemy(this, \"red_box\", 0, 0, 400, Delta.getDelta(\"beginning\"), 400));\n\t\t\tEnemy lastEnemy = enemy.get(enemy.size() - 1);\n\t\t\t\n\t\t\tlastEnemy.setX(lastEnemy.generateEnemyX());\n\t\t\tlastEnemy.setY(-lastEnemy.getSprite().getHeight());\n\t\t\tDelta.setLastEnemy(Delta.getTime());\n\t\t}\n\t\t\n\t\tif (bossExplosionNum == 0) {\n\t\t\t// Checks to see if enemy bullets should be generated\n\t\t\tfor (int i = 0; i < enemy.size(); i++) {\n\t\t\t\tif (enemy.get(i).getName().equals(\"red_box\") && enemy.get(i).getTimeSinceLastBullet() >= 700) {\n\t\t\t\t\tenemy_bullet.add(new Bullet(this, \"enemy_bullet\", 0, 0, 100));\n\t\t\t\t\tenemy.get(i).setLastBulletTime(Delta.getDelta(\"beginning\"));\n\t\t\t\t\t\n\t\t\t\t\tBullet lastEnemyBullet = enemy_bullet.get(enemy_bullet.size() - 1);\n\t\t\t\t\tSprite enemySprite = enemy.get(i).getSprite();\n\t\t\t\t\tSprite enemyBulletSprite = lastEnemyBullet.getSprite();\n\t\t\t\t\t\n\t\t\t\t\tlastEnemyBullet.setX(enemy.get(i).getX() + enemySprite.getWidth() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getWidth() / 2);\n\t\t\t\t\tlastEnemyBullet.setY(enemy.get(i).getY() + enemySprite.getHeight() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getHeight() / 2);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (enemy.get(i).getName().equals(\"boss\") && enemy.get(i).getTimeSinceLastBullet() >= 1000) {\n\t\t\t\t\tenemy_bullet.add(new Bullet(this, \"boss_bullet\", 0, 0, 100));\n\t\t\t\t\tenemy.get(i).setLastBulletTime(Delta.getDelta(\"beginning\"));\n\t\t\t\t\t\n\t\t\t\t\tBullet lastEnemyBullet = enemy_bullet.get(enemy_bullet.size() - 1);\n\t\t\t\t\tSprite enemySprite = enemy.get(i).getSprite();\n\t\t\t\t\tSprite enemyBulletSprite = lastEnemyBullet.getSprite();\n\t\t\t\t\t\n\t\t\t\t\tlastEnemyBullet.setX(enemy.get(i).getX() + enemySprite.getWidth() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getWidth() / 2);\n\t\t\t\t\tlastEnemyBullet.setY(enemy.get(i).getY() + enemySprite.getHeight() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getHeight() / 2);\n\t\t\t\t\t\n\t\t\t\t\t// set the angle of the shot\n\t\t\t\t\tdouble xChange = player.getX() - lastEnemyBullet.getX();\n\t\t\t\t\tdouble yChange = player.getY() - lastEnemyBullet.getY();\n\t\t\t\t\tdouble magnitude = Math.sqrt(xChange * xChange + yChange * yChange);\n\t\t\t\t\txChange = xChange / magnitude * 15;\n\t\t\t\t\tyChange = yChange / magnitude * 15;\n\t\t\t\t\tlastEnemyBullet.setXChange((int) xChange);\n\t\t\t\t\tlastEnemyBullet.setYChange((int) yChange);\n\t\t\t\t\t\n\t\t\t\t\tenemy_bullet.add(new Bullet(this, \"boss_bullet\", 0, 0, 100));\n\t\t\t\t\tenemy.get(i).setLastBulletTime(Delta.getDelta(\"beginning\"));\n\t\t\t\t\t\n\t\t\t\t\tlastEnemyBullet = enemy_bullet.get(enemy_bullet.size() - 1);\n\t\t\t\t\tenemySprite = enemy.get(i).getSprite();\n\t\t\t\t\tenemyBulletSprite = lastEnemyBullet.getSprite();\n\t\t\t\t\t\n\t\t\t\t\tlastEnemyBullet.setX(enemy.get(i).getX() + enemySprite.getWidth() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getWidth() / 2);\n\t\t\t\t\tlastEnemyBullet.setY(enemy.get(i).getY() + enemySprite.getHeight() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getHeight() / 2);\n\t\t\t\t\t\n\t\t\t\t\t// set the angle of the shot\n\t\t\t\t\txChange = player.getX() - lastEnemyBullet.getX() - 100;\n\t\t\t\t\tyChange = player.getY() - lastEnemyBullet.getY() - 100;\n\t\t\t\t\tmagnitude = Math.sqrt(xChange * xChange + yChange * yChange);\n\t\t\t\t\txChange = xChange / magnitude * 15;\n\t\t\t\t\tyChange = yChange / magnitude * 15;\n\t\t\t\t\tlastEnemyBullet.setXChange((int) xChange);\n\t\t\t\t\tlastEnemyBullet.setYChange((int) yChange);\n\t\t\t\t\t\n\t\t\t\t\tenemy_bullet.add(new Bullet(this, \"boss_bullet\", 0, 0, 100));\n\t\t\t\t\tenemy.get(i).setLastBulletTime(Delta.getDelta(\"beginning\"));\n\t\t\t\t\t\n\t\t\t\t\tlastEnemyBullet = enemy_bullet.get(enemy_bullet.size() - 1);\n\t\t\t\t\tenemySprite = enemy.get(i).getSprite();\n\t\t\t\t\tenemyBulletSprite = lastEnemyBullet.getSprite();\n\t\t\t\t\t\n\t\t\t\t\tlastEnemyBullet.setX(enemy.get(i).getX() + enemySprite.getWidth() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getWidth() / 2);\n\t\t\t\t\tlastEnemyBullet.setY(enemy.get(i).getY() + enemySprite.getHeight() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getHeight() / 2);\n\t\t\t\t\t\n\t\t\t\t\t// set the angle of the shot\n\t\t\t\t\txChange = player.getX() - lastEnemyBullet.getX() + 100;\n\t\t\t\t\tyChange = player.getY() - lastEnemyBullet.getY() + 100;\n\t\t\t\t\tmagnitude = Math.sqrt(xChange * xChange + yChange * yChange);\n\t\t\t\t\txChange = xChange / magnitude * 15;\n\t\t\t\t\tyChange = yChange / magnitude * 15;\n\t\t\t\t\tlastEnemyBullet.setXChange((int) xChange);\n\t\t\t\t\tlastEnemyBullet.setYChange((int) yChange);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// spawns the boss if 60 seconds has passed\n\t\tif (Delta.getDelta(\"beginning\") >= 60000 && !bossSpawned) {\n\t\t\tbossSpawned = true;\n\t\t\tenemy.add(new Enemy(this, \"boss\", 0, 0, 10000, Delta.getDelta(\"beginning\"), 500));\n\t\t\t\n\t\t\tEnemy boss = enemy.get(enemy.size() - 1);\n\t\t\tboss.setX(displayWidth / 2 - boss.getSprite().getWidth() / 2);\n\t\t\tboss.setY(-boss.getSprite().getHeight());\n\t\t}\n\t\t\n\t\t// checks for collisions\n\t\tif (bossExplosionNum == 0) {\n\t\t\tfor (int i = 0; i < enemy.size(); i++) {\n\t\t\t\tEntity entity1 = enemy.get(i);\n\t\t\t\t\n\t\t\t\t// if a bullet collides with an enemy\n\t\t\t\tfor (int j = 0; j < bullet.size(); j++) {\n\t\t\t\t\tEntity entity2 = bullet.get(j);\n\t\t\t\t\t\n\t\t\t\t\tif (entity1.collidesWith(entity2)) {\n\t\t\t\t\t\tentity1.collidedWith(entity2);\n\t\t\t\t\t\tentity2.collidedWith(entity1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tEntity entity2 = player;\n\t\t\t\t\n\t\t\t\t// if the player collides with an enemy\n\t\t\t\tif (entity1.collidesWith(entity2)) {\n\t\t\t\t\tentity1.collidedWith(entity2);\n\t\t\t\t\tentity2.collidedWith(entity1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tEntity entity1 = player;\n\t\t\t// if an enemy bullet collides with the player\n\t\t\tfor (int i = 0; i < enemy_bullet.size(); i++) {\n\t\t\t\tEntity entity2 = enemy_bullet.get(i);\n\t\t\t\t\n\t\t\t\tif (entity1.collidesWith(entity2)) {\n\t\t\t\t\tentity1.collidedWith(entity2);\n\t\t\t\t\tentity2.collidedWith(entity1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if a powerup collides with the player\n\t\t\tfor (int i = 0; i < powerup.size(); i++) {\n\t\t\t\tEntity entity2 = powerup.get(i);\n\t\t\t\t\n\t\t\t\tif (entity1.collidesWith(entity2)) {\n\t\t\t\t\tentity1.collidedWith(entity2);\n\t\t\t\t\tentity2.collidedWith(entity1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// if the player has defeated the boss\n\t\tif (gameWon && bossSpawned) {\n\t\t\t// draw Congratulations\n\t\t\tString congrats = \"Congratulations! You were able to vanquish\";\n\t\t\tString congrats2 = \"all of your evil thoughts and achieve nirvana!\";\n\t\t\tcongratsFont.drawString(displayWidth / 2 - congratsFont.getWidth(congrats) / 2, displayHeight / 2\n\t\t\t\t\t- congratsFont.getHeight(congrats) / 2 - 50, congrats);\n\t\t\tcongratsFont.drawString(displayWidth / 2 - congratsFont.getWidth(congrats2) / 2, displayHeight\n\t\t\t\t\t/ 2 - congratsFont.getHeight(congrats2) / 2 - 15, congrats2);\n\t\t\t\n\t\t\t// draw the score\n\t\t\tscoreFont.drawString(displayWidth / 2 - scoreFont.getWidth(\"Score: \" + totalCash) / 2, displayHeight\n\t\t\t\t\t/ 2\n\t\t\t\t\t+ scoreFont.getHeight(\"Game Over!\")\n\t\t\t\t\t/ 2\n\t\t\t\t\t+ scoreFont.getHeight(\"Score: \" + totalCash)\n\t\t\t\t\t/ 2 + 10 - 50, \"Score: \" + totalCash);\n\t\t}\n\t}", "public void updateWeapon(int currentWeaponId) {\r\n\t\tcollectionManager.updateWeapon(currentWeaponId);\r\n\t}", "private void shoot()\n\t{\n\t\t//Speed movement of the bullet\n\t\tint speed = 0;\n\t\t//Damage dealt by the bullet\n\t\tint damage = 0;\n\t\t//Angle used to shoot. Used only by the vulcan weapon\n\t\tdouble angle = 0;\n\t\t\n\t\tif(weapon == PROTON_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 10;\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30, speed, damage, 0);\n\t\t\tSoundManager.getInstance().playSound(\"protonshoot\", false);\n\t\t}\t\n\t\telse if(weapon == VULCAN_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 2;\n\t\t\tangle = 10;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getThreeBullets(getX() +27, getX()+37, getX()+47,\n\t\t\t\t\tgetY()-this.getHeight()+30, speed, damage, (int)angle);\n\t\t\tSoundManager.getInstance().playSound(\"vulcanshoot\", false);\n\t\t}\t\t\n\t\telse\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 15;\n\t\t\tangle = 0;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30,\n\t\t\t\t\t\tspeed, damage, angle);\n\t\t\tSoundManager.getInstance().playSound(\"gammashoot\", false);\n\t\t}\t\n\t}", "public void drawBullets(){\n if(!world.getPlayer().getWeapon().getBullets().isEmpty()) {\n for (Bullet b : world.getPlayer().getWeapon().getBullets()) {\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y * ppuY,\n b.SIZE * ppuX, b.SIZE * ppuY);\n }\n }\n if(!world.getEnemies().isEmpty()) {\n for(Enemy e: world.getEnemies()){\n if(!e.getWeapon().getBullets().isEmpty()){\n for (Bullet b : e.getWeapon().getBullets()) {\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y\n * ppuY, b.SIZE * ppuX, b.SIZE * ppuY, 0, 0, bulletTexture.getWidth(),\n bulletTexture.getHeight(), false, true);\n }\n }\n }\n }\n if(!world.getBullets().isEmpty()) {\n for(Bullet b : world.getBullets()){\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y\n * ppuY, b.SIZE * ppuX, b.SIZE * ppuY, 0, 0, bulletTexture.getWidth(),\n bulletTexture.getHeight(), false, true);\n }\n }\n }", "void fireBullet() {\n\r\n\t\tif (count > 0)\r\n\t\t\treturn;\r\n\t\t// ...and if all the bullets aren't currently in use...\r\n\t\tint slot = getAvailableBullet();\r\n\t\tif (slot < 0)\r\n\t\t\treturn;\r\n\t\t// ...then launch a new bullet\r\n\t\tbullets[slot].setLocation(locX, locY);\r\n\t\tbullets[slot].setDirection(angle);\r\n\t\tbullets[slot].reset();\r\n\t\t// Reset the timer\r\n\t\tcount = RELOAD;\r\n\t}", "void update() {\n for (int i = 0; i < bullets.size(); i++) {//if any bullets expires remove it\n if (bullets.get(i).off) {\n bullets.remove(i);\n i--;\n }\n }\n move();//move everything\n checkPositions();//check if anything has been shot or hit\n }", "public void update() {\r\n super.update();\r\n life -= 1;\r\n if(life <= 0) {\r\n killBullet();\r\n }\r\n }", "@Override\n public void update() {\n updateHealth();\n updateActiveWeapon();\n updateAmmunition();\n updateWaveCounter();\n updateReloading();\n }", "@Override\n public void update(float dt) {\n //bulletUpdate(dt,b2body);\n stateTime += dt;\n bulletUpdate(b2body,bulletSprite1);\n bulletUpdate(b2body2,bulletSprite2);\n bulletUpdate(b2body3,bulletSprite3);\n\n\n\n }", "public void update(){\n\n // advance player and entity loader\n player.advance();\n entityloader.advance();\n\n // if the player is shooting\n if (player.isShooting){\n player.nextBullet--;\n if (player.nextBullet < 0){\n audioloader.play(\"plshoot\"); // play audio\n for (int i = -1; i <= 1; ++i){\n playerBullets.add(new Projectile<RectangleHitbox>(player.getCenterX(), player.getCenterY(), 500, 0, 270 + 2.5 * i, 0, 0, false, 1.5, true, 0,\n player.bulletSprite.getRectangleHitbox(player.bulletSize), player.bulletSprite.img.getScaledInstance(player.bulletSize, player.bulletSize, 1), 0, 0, this));\n } \n player.nextBullet = (int)(FPS / player.bulletsPerSecond);\n }\n }\n\n // Player bullets\n for (Projectile<RectangleHitbox> bullet : playerBullets){\n if (bullet.advance()){\n nextPlayerBullets.add(bullet);\n }\n }\n playerBullets.clear();\n for (Projectile<RectangleHitbox> bullet : nextPlayerBullets){\n playerBullets.add(bullet);\n }\n nextPlayerBullets.clear();\n\n // Circle Enemies\n for (Projectile<CircleHitbox> enemy : circleEnemies){\n if (player.invulnerableTime <= 0 && enemy.getHitbox().intersects(player.getHitbox())){\n loseLife();\n }\n if (!enemy.isBullet){ // if enemy is not a bullet, check if it is being hit by player bullets\n boolean hit = false; // each enemy can only be hit once each frame\n for (Projectile<RectangleHitbox> bullet : playerBullets){\n hit |= bullet.getHitbox().intersects(enemy.getHitbox());\n if (hit)\n break;\n }\n if (hit){\n enemy.damageTaken += enemy.originalLifetime * enemy.percentDamage;\n }\n }\n if (enemy.advance()){ // if enemy lifetime is not up\n nextCircleEnemies.add(enemy); // add to next frame\n } else if (enemy.id != 0) { // if lifetime is up\n // tell entity loader enemy with that id is removed\n entityloader.setUnactive(enemy.id);\n }\n }\n circleEnemies.clear();\n for (Projectile<CircleHitbox> enemy : nextCircleEnemies){ // swap nextCircleEnemies with circleEnemies\n circleEnemies.add(enemy);\n }\n nextCircleEnemies.clear();\n\n // Rectangle Enemies\n for (Projectile<RectangleHitbox> enemy : rectangleEnemies){\n if (player.invulnerableTime <= 0 && enemy.getHitbox().intersects(player.getHitbox())){\n loseLife();\n }\n if (enemy.advance()){ // if enemy lifetime is not up\n nextRectangleEnemies.add(enemy); // add to next frame\n } else if (enemy.id != 0) { // if lifetime is up\n // tell entity loader enemy with that id is removed\n entityloader.setUnactive(enemy.id);\n }\n }\n rectangleEnemies.clear();\n for (Projectile<RectangleHitbox> enemy : nextRectangleEnemies){ // swap nextRectangleEnemies with rectangleEnemies\n rectangleEnemies.add(enemy);\n }\n nextRectangleEnemies.clear();\n\n }", "public void shoot(){\n int bulletPosX = posX;\n int bulletPosY = posY;\n int bulletVelX = 0;\n int bulletVelY = -9;\n //add the new bullets to the array of bullets\n bullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,0,attack));\n }", "@Override\n public void update() {\n for (Integer i : arrAttack) {\n //System.out.println(scene.entityManager.getEntityByID(i).getName());\n\n //if the weapon has not a -1\n if (scene.entityManager.getEntityComponentInstance(i, Tool.class).currentActive != - 1) {\n\n ArrayList<AttackCollider> arrColliders = scene.entityManager.getEntityComponentInstance(i, attackComponent.getClass()).arrColliders;\n\n //Check if it collides with a collidable entity\n for (Integer j : arrCollidable) {\n //if they are not the same and i is not a weapon of j, and if j is alive\n if (!Objects.equals(i, j) && !isWeaponOf(i, j) && scene.entityManager.getEntityComponentInstance(j, Playable.class).isAlive) {\n\n //for each collider that collides with the entity\n for (AttackCollider k : checkAttack(i, j)) {\n //Do something to the collidable entity\n executeAttack(i, j);\n }\n }\n }\n }\n }\n initializeEntities();\n }", "public void fireBullet(){\n\t\tBullet bullet = new Bullet(ship);\n\t\tbullets.add(bullet);\n\t\tsoundMan.playBulletSound();\n\t}", "@Override\n public void update(GameContainer gc, StateBasedGame stateBasedGame, int delta) throws SlickException {\n timeSinceStart += delta;\n rtimeSinceStart += delta;\n Input input = gc.getInput();\n int mouseX = input.getMouseX();\n int mouseY = input.getMouseY();\n\n\n basicbulletSheet.rotate(90f);\n basicbulletSheet.setCenterOfRotation(16, 16);\n\n // Move this bullet\n for (int i = 0; i < bulletList.size(); i++) {\n bullet = bulletList.get(i);\n bullet.move();\n }\n\n //Add this tower to the this towerList\n if (Tower.isBasicPlaced()) {\n basicTowers.add(new BasicTower());\n System.out.println(basicTowers);\n Tower.setBasicPlaced(false);\n }\n\n //Add this tower to the this towerList\n if (Tower.isBomberPlaced()) {\n bomberTowers.add(new BomberTower());\n System.out.println(bomberTowers);\n Tower.setBomberPlaced(false);\n }\n\n //Add this tower to the this towerList\n if (Tower.isSniperPlaced()) {\n sniperTowers.add(new SniperTower());\n System.out.println(sniperTowers);\n Tower.setSniperPlaced(false);\n }\n\n //Add this tower to the this towerList\n if (Tower.isQuickPlaced()) {\n quickTowers.add(new QuickTower());\n System.out.println(quickTowers);\n Tower.setQuickPlaced(false);\n }\n\n //For this tower, calculate how often this tower will shoot bullets\n for (BasicTower basicTower1 : basicTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n if (rtimeSinceStart > basicTower1.rcoolDown + basicTower1.rlastShot) {\n if (enemy.Playrect.intersects(basicTower1.Radius)) {\n basicTower1.basicClicked.setRotation((float) getTargetAngle(basicTower1.towerX,\n basicTower1.towerY, enemy.getStartPosX(), enemy.getStartPosY()));\n basicTower1.basicClicked.setCenterOfRotation(32, 32);\n basicTower1.rlastShot = rtimeSinceStart;\n }\n }\n if (timeSinceStart > basicTower1.coolDown + basicTower1.lastShot) {\n if (enemy.Playrect.intersects(basicTower1.Radius)) {\n addNewBullet2(basicTower1.towerX, basicTower1.towerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 10);\n basicTower1.lastShot = timeSinceStart;\n }\n\n }\n }\n }\n\n //For this tower, calculate how often this tower will shoot bullets\n for (BomberTower bomberTower1 : bomberTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n if (rtimeSinceStart > bomberTower1.rcoolDown + bomberTower1.rlastShot) {\n if (enemy.Playrect.intersects(bomberTower1.Radius)) {\n bomberTower1.bomberClicked.setRotation((float) getTargetAngle(bomberTower1.bombertowerX,\n bomberTower1.bombertowerY, enemy.getStartPosX(), enemy.getStartPosY()));\n bomberTower1.bomberClicked.setCenterOfRotation(32, 32);\n bomberTower1.rlastShot = rtimeSinceStart;\n }\n }\n if (timeSinceStart > bomberTower1.coolDown + bomberTower1.lastShot) {\n if (enemy.Playrect.intersects(bomberTower1.Radius)) {\n addNewBullet2(bomberTower1.bombertowerX, bomberTower1.bombertowerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 10);\n bomberTower1.lastShot = timeSinceStart;\n }\n }\n }\n }\n //For this tower, calculate how often this tower will shoot bullets\n for (SniperTower sniperTower1 : sniperTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n\n if (rtimeSinceStart > sniperTower1.rcoolDown + sniperTower1.rlastShot) {\n if (enemy.Playrect.intersects(sniperTower1.Radius)) {\n sniperTower1.sniperClicked.setRotation((float) getTargetAngle(sniperTower1.towerX,\n sniperTower1.towerY, enemy.getStartPosX(), enemy.getStartPosY()));\n sniperTower1.sniperClicked.setCenterOfRotation(32, 32);\n sniperTower1.rlastShot = rtimeSinceStart;\n }\n }\n\n if (timeSinceStart > sniperTower1.coolDown + sniperTower1.lastShot) {\n if (enemy.Playrect.intersects(sniperTower1.Radius)) {\n addNewBullet2(sniperTower1.towerX, sniperTower1.towerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 50);\n sniperTower1.lastShot = timeSinceStart;\n }\n\n }\n }\n }\n //For this tower, calculate how often this tower will shoot bullets\n for (QuickTower quickTower1 : quickTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n\n if (rtimeSinceStart > quickTower1.rcoolDown + quickTower1.rlastShot) {\n if (enemy.Playrect.intersects(quickTower1.Radius)) {\n quickTower1.quickClicked.setRotation((float) getTargetAngle(quickTower1.towerX,\n quickTower1.towerY, enemy.getStartPosX(), enemy.getStartPosY()));\n quickTower1.quickClicked.setCenterOfRotation(32, 32);\n quickTower1.rlastShot = rtimeSinceStart;\n }\n }\n\n\n if (timeSinceStart > quickTower1.coolDown + quickTower1.lastShot) {\n if (enemy.Playrect.intersects(quickTower1.Radius)) {\n radiusVisited = true;\n addNewBullet2(quickTower1.towerX, quickTower1.towerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 5);\n quickTower1.lastShot = timeSinceStart;\n }\n }\n\n }\n }\n\n //A spawn is in progress\n if (spawninProgress) {\n timePassedEnemy += delta;\n if (timePassedEnemy > 800) {\n enemies.add(new Enemy());\n enemySpawns++;\n timePassedEnemy = 0;\n }\n }\n //When enough enemies has spawned, stop the spawninProgress\n if (enemySpawns == enemyCounter) {\n spawninProgress = false;\n //hasbeenDead = false;\n enemySpawns = 0;\n enemyCounter++;\n }\n\n //When no more enemies on maps\n if (enemies.size() == 0) {\n waveinProgress = false;\n startWaveCount = 0;\n }\n\n //Start a new level when there's no more enemies on the map\n if (loadMap.MAP[mouseY / w][mouseX / w] == 16) {\n if (input.isMousePressed(0) && startWaveCount == 0 && !waveinProgress) {\n startWaveCount++;\n if (startWaveCount == 1 && enemies.size() == 0 && !waveinProgress) {\n waveinProgress = true;\n gc.resume();\n spawninProgress = true;\n currentLevel++;\n }\n }\n }\n\n //For each new level, increase the HP of each enemy\n if (currentLevel < currentLevel + 1 && !waveinProgress) {\n for (Enemy enemyHP : enemies) {\n if (enemyHP.getStartPosX() <= 0 && enemyHP.getHP() < enemyHP.startHP + currentLevel) {\n enemyHP.setHP(enemyHP.getHP() + currentLevel);\n }\n }\n }\n\n\n //For each enemies, if enemies has finished their way, decrease player HP\n //and set them inactive\n for (Enemy enemyList : enemies) {\n if (enemyList.counter >= enemyList.path.getLength() - 1) {\n player.decreaseLife();\n bulletCount = 0;\n enemyList.isActive = false;\n }\n\n //If enemies' hp is zero, set them inactive and remove from the list\n if (enemyList.getHP() <= 0) {\n enemyList.isActive = false;\n bulletCount = 0;\n player.addCredits(20);\n }\n enemyList.update(gc, stateBasedGame, delta);\n }\n for (int i = 0; i < enemies.size(); i++) {\n if (!enemies.get(i).isActive) {\n enemies.remove(enemies.get(i));\n }\n }\n\n //For all objects, update\n for (GameObject obj : objects)\n try {\n obj.update(gc, stateBasedGame, delta);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n //Go to Menu\n if (gc.getInput().isKeyPressed(Input.KEY_ESCAPE)) {\n gc.getInput().clearKeyPressedRecord();\n stateBasedGame.enterState(2);\n }\n\n\n }", "private void updateDelta() {\n\t\tbulletDelta = Delta.getDelta(\"bullet\");\n\t\tenemyDelta = Delta.getDelta(\"enemy\");\n\t}", "@Override\r\n\tpublic void update() {\n\t\tAlly.update();\r\n\t\tEnemy.update();\r\n\t\tfor(int i = 0 ; i < GroundList.size();i++){\r\n\t\t\tif(GroundList.get(i).kill) {\r\n\t\t\t\tGroundList.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < BarelList.size(); i++) {\r\n\t\t\tif(BarelList.get(i).kill) {\r\n\t\t\t\tBarelList.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < WoodList.size(); i++) {\r\n\t\t\tif(WoodList.get(i).kill) {\r\n\t\t\t\tWoodList.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < FireBallList.size(); i++) {\r\n\t\t\tif(FireBallList.get(i).kill) {\r\n\t\t\t\tFireBallList.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < BulletList.size(); i++) {\r\n\t\t\tif(BulletList.get(i).kill) {\r\n\t\t\t\tBulletList.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0 ; i < GroundList.size();i++){\r\n\t\t\tGroundList.get(i).update();\r\n\t\t}\r\n\t\tfor(int i = 0 ; i < BarelList.size(); i++) {\r\n\t\t\tBarelList.get(i).update();\r\n\t\t}\r\n\t\tfor(int i = 0; i < BulletList.size(); i++) {\r\n\t\t\tBulletList.get(i).update();\r\n\t\t}\r\n\t\tfor(int i = 0; i < FireBallList.size(); i++) {\r\n\t\t\tFireBallList.get(i).update();\r\n\t\t}\r\n\t\tfor(int i = 0; i < WoodList.size(); i++) {\r\n\t\t\tWoodList.get(i).update();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif(GamePanel.updateTimes%60 == 0) {\r\n\t\t\tEnemy.PushEntity(2, new Vector2f(width*1/2, height/4),enemy);\r\n\t\t}\r\n\t\tfor(int i = 0; i < AllyDeadList.size(); i++) {\r\n\t\t\tAlly.entityList.remove(AllyDeadList.get(i)-i);\r\n\t\t}\r\n\t\tfor(int i = 0; i < EnemyDeadList.size(); i++) {\r\n\t\t\tEnemy.entityList.remove(EnemyDeadList.get(i)-i);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tAllyDeadList.clear();\r\n\t\tEnemyDeadList.clear();\r\n\t\tfor(int i = 0; i < Ally.entityList.size(); i++) {\r\n\t\t\tif(Ally.entityList.get(i).returnHealth() <= 0) {\r\n\t\t\t\tAllyDeadList.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < Enemy.entityList.size(); i++) {\r\n\t\t\tif(Enemy.entityList.get(i).returnHealth() <= 0) {\r\n\t\t\t\tEnemyDeadList.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void update(ArrayList<String> pressedKeys) {\n\n\n super.update(pressedKeys);\n// if(!backgroundMusic.play && x==0){\n// x=1;\n// backgroundMusic.playMusic(\"resources/oceanOperator.mp3\");\n// }\n\n if (state == STATE.MENU) {\n\n }\n\n //moveGameY(1);\n\n else if (state == STATE.GAME) {\n if (player != null && !player.isDead) {\n player.update(pressedKeys);\n }\n if (player.getLifeCount() <= 0) {\n complete = true;\n player.isDead = true;\n }\n\n\n if (transitionYCurrent < transitionY) {\n moveGameY(transitionYSpeed);\n transitionYCurrent += transitionYSpeed;\n }\n\n if(complete && !player.isDead){\n System.out.println(\"you won!\");\n state = STATE.COMPLETE;\n\n\n }\n\n if (player != null && !player.isDead) {\n// for (int i = 0; i < enemies.size(); i++) {\n// if (player.playerCollidesWith(enemies.get(i)) && enemies.get(i).dead == false && player.canGetHurt()) {\n// damageThePlayer();\n// }\n// }\n\n for (int i = 0; i < currentRoom.getSpikeList().size(); i++) {\n SpikeTile spikes = currentRoom.getSpikeList().get(i);\n if (player.feetCollideWith(spikes) && spikes.getStateName() == \"idle up\" && player.canGetHurt()) {\n damageThePlayer();\n }\n }\n\n\n if (player.playerCollidesWith(coin)) {\n coin.handleEvent(collidedEvent);\n myQuestManager.handleEvent(PickedUpEvent);\n }\n player.update();\n checkCollisions(player);\n\n\n for (int i = 0; i < player.playerBullets.size(); i++) {\n Bullet bul = player.playerBullets.get(i);\n bul.update(pressedKeys);\n if (bul.getShotTimer() >= bul.getShotCap()) {\n\n player.playerBullets.remove(i);\n }\n }\n\n TweenJuggler.getInstance().nextFrame();\n\n boolean pickpocketTrigger = false;\n for (int i = 0; i < enemies.size(); i++) {\n\n Enemy enemy = enemies.get(i);\n if (player.getHitBox().intersects(enemy.getPickpocketRect())) {\n pickpocketTrigger = true;\n pickpocketEnemy = enemy;\n }\n\n }\n pickpocket = pickpocketTrigger;\n if (!pickpocket)\n pickpocketEnemy = null;\n }\n if (pressedKeys.contains(KeyEvent.getKeyText(KeyEvent.VK_W))) {\n for (int i = 0; i < currentRoom.getDoors().size(); i++) {\n if (player.getHitBox().intersects(currentRoom.getDoors().get(i).getDoorCollider()) && currentRoom.getDoors().get(i).stateName == \"door_open\" && transitionPhase == false) {\n transitionPhase = true;\n currentRoom.fadeOut();\n queuedRoom = currentRoom.getDoors().get(i).getNextRoom();\n queuedRoom.fadeIn();\n transitionYCurrent = 0;\n enemies = new ArrayList<>();\n pressedKeys.remove(KeyEvent.getKeyText(KeyEvent.VK_W));\n }\n }\n\n }\n\n if (pressedKeys.contains(KeyEvent.getKeyText(KeyEvent.VK_E))) {\n if (pickpocket == true && pickpocketEnemy != null) {\n keyCount += pickpocketEnemy.pickpocketKeys();\n int knives = pickpocketEnemy.pickpocketKnives();\n knifeCount += knives;\n System.out.println(knives);\n// int n = rand.nextInt(3) + 1;\n// if (n == 1) {\n//\n// itemString = \"You found a knife!\";\n// } else if (n == 2) {\n// keyCount++;\n// itemString = \"You found a key!\";\n//\n// } else if (n == 3) {\n// itemString = \"No items found.\";\n// }\n }\n\n\n for (int i = 0; i < currentRoom.getDoors().size(); i++) {\n\n if (player.getHitBox().intersects(currentRoom.getDoors().get(i).getDoorCollider()) && currentRoom.getDoors().get(i).stateName == \"door_closed\") {\n if (keyCount > 0) {\n soundEffects.playSoundEffect(\"resources/chains.wav\",0);\n currentRoom.getDoors().get(i).setAnimationState(\"door_opening\", \"door_open\");\n itemString = \"Door unlocked\";\n keyCount--;\n } else {\n soundEffects.playMusic(\"resources/door_locked.wav\");\n }\n } else if (player.getHitBox().intersects(currentRoom.getDoors().get(i).getDoorCollider()) && currentRoom.getDoors().get(i).stateName == \"door_open\" && transitionPhase == false) {\n transitionPhase = true;\n currentRoom.fadeOut();\n queuedRoom = currentRoom.getDoors().get(i).getNextRoom();\n queuedRoom.fadeIn();\n transitionYCurrent = 0;\n enemies = new ArrayList<>();\n }\n }\n\n for (int i = 0; i < currentRoom.getChests().size(); i++) {\n TreasureChest chest = currentRoom.getChests().get(i);\n if (player.feetCollideWith(chest) && chest.getStateName() == \"closed\") {\n chest.setAnimationState(\"open\", \"\");\n if (chest.getItem().equals(\"key\")) {\n keyCount++;\n } else if (chest.getItem().equals(\"knife\")) {\n knifeCount++;\n }\n }\n }\n\n\n pressedKeys.remove(KeyEvent.getKeyText(KeyEvent.VK_E));\n }\n\n if (pressedKeys.contains(KeyEvent.getKeyText(KeyEvent.VK_P))) {\n if (complete == true) {\n removeAll();\n complete = false;\n currentLevel = 0;\n\n\n tutorial = new TutorialLevel1(\"Tutorial\");\n tutorial.run();\n addChild(tutorial);\n\n\n myLevel = new Level0(\"Room1\");\n myLevel.run();\n addChild(myLevel);\n\n\n myLevel1 = new Level1(\"Room2\");\n myLevel1.run();\n myLevel1.hide();\n addChild(myLevel1);\n\n myLevel2 = new ahmedslevel(\"Room3\", player);\n myLevel2.run();\n myLevel2.hide();\n addChild(myLevel2);\n\n myLevel3 = new BrighamLevel(\"Room4\");\n myLevel3.run();\n myLevel3.hide();\n addChild(myLevel3);\n\n level4 = new AlternatingSpikesLevel(\"Room6\");\n level4.run();\n level4.hide();\n addChild(level4);\n\n\n bossLevel = new BossLevel(\"Room5\", player);\n bossLevel.run();\n bossLevel.hide();\n addChild(bossLevel);\n\n\n tutorial.mapDoorToRoom(0,myLevel);\n myLevel.mapDoorToRoom(0, myLevel1);\n myLevel1.mapDoorToRoom(0, myLevel2);\n myLevel2.mapDoorToRoom(0, myLevel3);\n myLevel3.mapDoorToRoom(0, level4);\n level4.mapDoorToRoom(0, bossLevel);\n currentRoom = tutorial;\n\n enemies = currentRoom.enemies;\n\n player.isDead = false;\n player.setLifeCount(3);\n player.setPositionX(550);\n player.setPositionY(700);\n knifeCount = 4;\n keyCount = 0;\n backgroundMusic.stop();\n backgroundMusic.playSoundEffect(\"resources/oceanOperator.wav\", 100);\n } else {\n state = STATE.PAUSE;\n\n }\n }\n for (int i = 0; i < enemies.size(); i++) {\n Enemy currentEnemy = enemies.get(i);\n currentEnemy.update();\n if (!currentEnemy.dead) {\n if (currentEnemy.enemyBullet != null) {\n currentEnemy.enemyBullet.update(pressedKeys);\n if (currentEnemy.enemyBullet.getShotTimer() >= currentEnemy.enemyBullet.getShotCap()) {\n currentEnemy.enemyBullet = null;\n }\n }\n if (currentEnemy.isInView(player, currentRoom.coverList)) {\n// System.out.println(currentRoom.coverList.get(0));\n if (complete == false) {\n if (currentEnemy.enemyBullet == null) {\n currentEnemy.enemyBullet = new Bullet(\"bullet\", \"knife.png\", 0.4);\n currentEnemy.enemyBullet.setStart(currentEnemy.getPositionX() + currentEnemy.getUnscaledWidth() / 2, currentEnemy.getPositionY() + currentEnemy.getUnscaledHeight() / 2);\n currentEnemy.enemyBullet.setEnd(player.getPositionX(), player.getPositionY());\n TweenTransitions enemyBulletPath = new TweenTransitions(\"linearTransition\");\n Tween enemyBulletmovement = new Tween(currentEnemy.enemyBullet, enemyBulletPath);\n enemyBulletmovement.animate(TweenableParams.X, currentEnemy.enemyBullet.startValX, currentEnemy.enemyBullet.endValX, 0.4);\n enemyBulletmovement.animate(TweenableParams.Y, currentEnemy.enemyBullet.startValY, currentEnemy.enemyBullet.endValY, 0.4);\n TweenJuggler.getInstance().add(enemyBulletmovement);\n currentEnemy.handleEvent(throwKnife);\n }\n }\n if (currentEnemy.enemyBullet != null) {\n// System.out.println(currentEnemy.enemyBullet.getShotTimer());\n if (currentEnemy.enemyBullet.collidesWith(player) && player.canGetHurt()) {\n damageThePlayer();\n currentEnemy.enemyBullet = null;\n break;\n }\n for (int j = 0; j < currentRoom.collisionArray.size(); j++) {\n if (currentEnemy.enemyBullet.collidesWith(currentRoom.collisionArray.get(j))) {\n currentEnemy.enemyBullet = null;\n break;\n }\n }\n\n }\n }\n\n\n for (int j = 0; j < player.playerBullets.size(); j++) {\n Bullet bul = player.playerBullets.get(j);\n// for (int k = 0; k < currentRoom.collisionArray.size(); k++) {\n// if (bul.collidesWith(currentRoom.collisionArray.get(k))) {\n// player.playerBullets.remove(j);\n// break;\n// }\n// }\n if (bul != null) {\n if (bul.collidesWith(enemies.get(i))) {\n enemies.get(i).dead = true;\n enemies.get(i).enemyBullet = null;\n if (enemies.get(i).getStateName().contains(\"right\")) {\n enemies.get(i).setDelay(90);\n enemies.get(i).setAnimationState(\"dying right\", \"dead right\");\n } else {\n enemies.get(i).setDelay(90);\n enemies.get(i).setAnimationState(\"dying left\", \"dead left\");\n }\n if (player.playerBullets.size() > j)\n player.playerBullets.remove(j);\n }\n\n }\n }\n }\n }\n\n for (int j = 0; j < player.playerBullets.size(); j++) {\n Bullet bul = player.playerBullets.get(j);\n for (int k = 0; k < currentRoom.collisionArray.size(); k++) {\n if (bul.collidesWith(currentRoom.collisionArray.get(k))) {\n player.playerBullets.remove(j);\n break;\n }\n }\n }\n\n currentRoom.update();\n\n if (queuedRoom != null) {\n queuedRoom.update();\n\n if (queuedRoom.getDoneFading() && currentRoom.getDoneFading()) {\n\n queuedRoom.setDoneFading(false);\n currentRoom.setDoneFading(false);\n if(queuedRoom == bossLevel){\n backgroundMusic.stop();\n bossLevel.intro();\n }\n currentRoom = queuedRoom;\n enemies = currentRoom.enemies;\n queuedRoom = null;\n transitionPhase = false;\n currentQuestObjective = 0;\n }\n }\n }\n if (keyCount > 0){\n currentQuestObjective = 1;\n }\n else if(currentRoom == bossLevel){\n currentQuestObjective = 2;\n }\n\n if(bossLevel != null) {\n if (bossLevel.endgame == true) {\n state = STATE.COMPLETE;\n System.out.println(\"you won!\");\n quitButton.setPositionX(300);\n\n }\n }\n }", "public void shoot(){\r\n \tgame.pending.add(new Bullet(this, bulletlife));\t\r\n }", "private void setWeapons()\n {\n sewers.setWeapon(woodSword);\n promenade.setWeapon(woodSword);\n depths.setWeapon(rustedSword);\n forest.setWeapon(goldSword);\n bridge.setWeapon(silverSpear);\n ramparts.setWeapon(infantryBow);\n }", "public void update(float dt) {\n\t\tIterator<Bullet> iter = bullets.iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\tBullet b = iter.next();\n\t\t\t\n\t\t\tb.update(dt);\n\t\t\tif(b.getY() > 480 - bullet_size_h) iter.remove();\n\t\t}\n\t}", "public void shoot() {\n\n //DOWN\n if (moveDown && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveDown && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n } else if (moveDown && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveDown && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //UP\n else if (moveUp && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveUp && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //LEFT \n else if (moveLeft && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n }\n\n //RIGHT\n else if (moveRight && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveRight && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } //STANDING STILL\n \n \n if (shootDown && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), 5 * this.getBulletSpeedMulti());\n } else if (shootUp && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), -5 * this.getBulletSpeedMulti());\n\n } else if (shootLeft && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n } else if (shootRight && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n }\n }", "private void updatePhysics()\n {\n HashMap<Integer, Spaceship> ships = this.game.getPlayers();\n Collection<Bullet> bullets = this.game.getBullets();\n Collection<Asteroid> asteroids = this.game.getAsteroids();\n\n asteroids.forEach(GameObject::nextStep);\n bullets.forEach(GameObject::nextStep);\n for (Spaceship ship : ships.values()) {\n if (ship.isDestroyed()) continue;\n ship.nextStep();\n\n if (ship.canFireWeapon()) {\n double direction = ship.getDirection();\n bullets.add(\n new Bullet(\n ship.getLocation().getX(),\n ship.getLocation().getY(),\n ship.getVelocity().x + Math.sin(direction) * 15,\n ship.getVelocity().y - Math.cos (direction) * 15\n )\n );\n ship.setFired();\n }\n }\n\n\n this.checkCollisions();\n this.removeDestroyedObjects();\n\n // Every 200 game ticks, try and spawn a new asteroid.\n if (this.updateCounter % 200 == 0 && asteroids.size() < this.asteroidsLimit) {\n this.addRandomAsteroid();\n }\n this.updateCounter++;\n }", "public void changeWeapon(Graphics graphics) {\r\n\t\tlevelManager.changeWeapon(graphics);\r\n\t}", "public void addWeapon(Weapon x){\n\t\tplayerWeapon=new Weapon(x);\n\t\tHealth+=x.gethealthStat();\n\t\tAttackForce+=x.getafStat();\n\t\tDefense+=x.getdefenseStat();\n\t}", "public void attack()\n {\n getWorld().addObject(new RifleBullet(player.getX(), player.getY(), 1, 6, true), getX(), getY()); \n }", "public void shoot(){\n // boss bullete attract to player\n int bulletPosX = PApplet.parseInt(posX + (speed * cos(angle)));\n int bulletPosY = (int)(posY + hei / 2);\n float bulletAngle = atan2(Main.player.posY - bulletPosY, Main.player.posX - bulletPosX);\n int bulletVelX = (int)(8 * cos(bulletAngle));\n int bulletVelY = (int)(8 * sin(bulletAngle));\n bossBullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,1,attack));\n }", "@POST(\"/UpdateWeapon\")\n\tWeapon updateWeapon(@Body Weapon weapon,@Body int id) throws GameNotFoundException;", "public void update()\n {\n done = false;\n if(data.size()==0)\n {\n data.add('0');\n data.add('0');\n data.add('0');\n data.add('0');\n data.add('0');\n }\n\n boolean isPressed = shot;\n\n keyUP = data.get(0) == '1';\n keyDOWN = data.get(1) == '1';\n keyLEFT = data.get(2) == '1';\n keyRIGHT = data.get(3) == '1';\n shot = data.get(4) == '1';\n\n if(!shot && isPressed)\n {\n if (canShot)\n {\n status.setShot(true);\n if (getBulletType ().equals (\"Laser\"))\n {\n bullets.add (new LaserBulletMulti (getCanonStartX (), getCanonStartY (),\n getDegree (), System.currentTimeMillis (), walls, tanks,canonPower,this.code,kills));\n setBulletType (\"Normal\");\n } else\n {\n bullets.add (new BulletMulti (getCanonStartX (), getCanonStartY (),\n getDegree (), System.currentTimeMillis (), walls, tanks,canonPower,this.code,kills));\n }\n\n canShot = false;\n shot = true;\n new Thread (new Runnable () {\n @Override\n public void run () {\n try {\n Thread.sleep (100);\n shot = false;\n } catch (InterruptedException e) {\n e.printStackTrace ();\n }\n }\n }).start ();\n new Thread (new Runnable () {\n @Override\n public void run () {\n try {\n Thread.sleep (500);\n canShot = true;\n } catch (InterruptedException e) {\n e.printStackTrace ();\n }\n }\n }).start ();\n }\n }\n\n int forX = (int) (6 * Math.cos (Math.toRadians (this.getDegree ())));\n int forY = (int) (6 * Math.sin (Math.toRadians (this.getDegree ())));\n\n if(keyUP && canMove(forX , forY) && isEmpty(forX,forY,1))\n {\n this.addLocX(forX);\n this.addLocY(forY);\n }\n if(keyDOWN && canMove(-1*forX , -1*forY) && isEmpty(forX,forY,-1))\n {\n this.addLocX(-1*forX);\n this.addLocY(-1*forY);\n }\n\n checkPrize();\n\n if(keyRIGHT && !keyLEFT)\n this.increaseDegree();\n\n if(!keyRIGHT && keyLEFT)\n this.decreaseDegree();\n\n\n this.setLocX(Math.max(this.getLocX(), 0));\n this.setLocX(Math.min(this.getLocX(), GameFrameMulti.GAME_WIDTH - 30));\n this.setLocY(Math.max(this.getLocY(), 0));\n this.setLocY(Math.min(this.getLocY(), GameFrameMulti.GAME_HEIGHT - 30));\n done = true;\n }", "private void update(){\n boolean bumped = false;\n\n // Has the player lost\n boolean lost = false;\n\n // Move the player's ship\n defender.update(fps);\n\n // Update the invaders if visible\n for(int i = 0; i < numInvaders; i++){\n\n if(invaders[i].getVisibility()) {\n // Move the next invader\n invaders[i].update(fps);\n\n // Does he want to take a shot?\n if(invaders[i].takeAim(defender.getX(),\n defender.getLength())){\n\n // If so try and spawn a bullet\n if(invadersBullets[nextBullet].shoot(invaders[i].getX() + invaders[i].getLength() / 2, invaders[i].getY(), bullet.DOWN)) {\n soundPool.play(invaderShootID, 1, 1, 0, 0, 1);\n\n // Shot fired\n // Prepare for the next shot\n nextBullet++;\n\n // Loop back to the first one if we have reached the last\n if (nextBullet == maxInvaderBullets) {\n // This stops the firing of another bullet until one completes its journey\n // Because if bullet 0 is still active shoot returns false.\n nextBullet = 0;\n }\n }\n }\n // If that move caused them to bump the screen change bumped to true\n if (invaders[i].getX() > screenX - ExcessX - invaders[i].getLength()\n || invaders[i].getX() < ExcessX){\n\n bumped = true;\n }\n }\n }\n\n // Update all the invaders bullets if active\n for(int i = 0; i < invadersBullets.length; i++){\n if(invadersBullets[i].getStatus()) {\n invadersBullets[i].update(fps);\n }\n }\n\n // Did an invader bump into the edge of the screen\n if(bumped){\n\n // Move all the invaders down and change direction\n for(int i = 0; i < numInvaders; i++){\n invaders[i].dropDownAndReverse();\n // Have the invaders landed\n if(invaders[i].getY() > screenY - screenY / 10){\n lost = true;\n }\n }\n\n // Increase the menace level\n // By making the sounds more frequent\n menaceInterval = menaceInterval - 80;\n }\n\n if(lost){\n prepareLevel();\n }\n\n // Update the players bullet\n if(bullet.getStatus()){\n bullet.update(fps);\n }\n\n // Has the player's bullet hit the top of the screen\n if(bullet.getImpactPointY() < 0){\n bullet.setInactive();\n }\n\n // Has an invaders bullet hit the bottom of the screen\n for(int i = 0; i < invadersBullets.length; i++){\n if(invadersBullets[i].getImpactPointY() > screenY){\n invadersBullets[i].setInactive();\n }\n }\n\n // Has the player's bullet hit an invader\n if(bullet.getStatus()) {\n for (int i = 0; i < numInvaders; i++) {\n if (invaders[i].getVisibility()) {\n if (RectF.intersects(bullet.getRect(), invaders[i].getRect())) {\n invaders[i].setInvisible();\n explosionAnimation = true;\n explosionX = invaders[i].getX() - invaders[i].getLength()/2;\n explosionY = invaders[i].getY() - invaders[i].getHeight()/2;\n soundPool.play(invaderExplodeID, 1, 1, 0, 0, 1);\n bullet.setInactive();\n score = (10 * level) * multiplier;\n totalScore = totalScore + score;\n cash = cash + 10;\n invadersLeft = invadersLeft - 1;\n\n // Has the player won\n if(invadersLeft == 0){\n shields = shields + 1;\n cash = cash + (10 * multiplier);\n totalScore = totalScore + ((100 * level) * multiplier);\n level = level + 1;\n noHitStreak = noHitStreak + 1;\n if (noHitStreak > 0) {\n multiplier = noHitStreak * 2;\n if (multiplier > 16) {\n multiplier = 16;\n }\n } else {\n multiplier = 1;\n }\n noHitStreak = noHitStreak + 1;\n openUpgradesMenu = true;\n prepareLevel();\n }\n }\n }\n }\n }\n\n // Has an invader bullet hit the player ship\n for(int i = 0; i < invadersBullets.length; i++){\n if(invadersBullets[i].getStatus()){\n if(RectF.intersects(defender.getRect(), invadersBullets[i].getRect())){\n invadersBullets[i].setInactive();\n damageAnimation = true;\n if (shields == 0) {\n alive = false;\n } else if (shields == 1) {\n soundPool.play(severeDamageID, 1, 1, 0, 0, 1);\n shields = shields - 1;\n } else {\n shields = shields - 1;\n }\n soundPool.play(shieldImpactID, 1, 1, 0, 0, 1);\n noHitStreak = 0;\n multiplier = 1;\n\n // Is it game over?\n if(!alive){\n soundPool.play(playerExplodeID, 1, 1, 0, 0, 1);\n wavesSurvived = level-1;\n finalScore = totalScore;\n shields = 3;\n alive = true;\n cash = 0;\n multiplier = 1;\n totalScore = 0;\n level = 1;\n invadersColumn = 5 ;\n invadersRow = 3;\n openGameOverMenu = true;\n prepareLevel();\n }\n }\n }\n }\n }", "public static void genWeaponList() {\r\n int i;\r\n\r\n auxItemVector.clear();\r\n \r\n if(currentChar == null) return;\r\n\r\n for (i = 0; i < currentChar.getItemsNumber(); i++) {\r\n if(currentChar.getItem(i).getType() == weapon)\r\n auxItemVector.add(currentChar.getItem(i));\r\n }\r\n }", "public void updateActiveWeapon() {\n activeWeaponText.setText(\"Weapon: \" + game.getPlayerComponent().getActiveWeapon().getWeaponType().getName());\n }", "public void draw() {\n if (you.health() > 0 | lives >= 0) {\n if (aliens.isEmpty()) {\n win();\n }\n if (you.health() <= 0 & lives >= 0) {\n die();\n }\n \n you.act();\n \n if (fire & you.getWeapon() == Weapon.WEAPON_GOD) {\n for (Dot d : you.fire()) {\n this.moreBullets(d);\n }\n }\n for (Dot d : lazers){d.update(); d.draw(page);}\n for (Dot d : bullets) {d.update(); d.draw(page);}\n for (Alien loop : aliens) {\n loop.act();\n if (Math.random() > .993) {\n for (Dot d : loop.fire())\n lazers.add(d);\n }\n loop.draw(page);\n }\n \n if (collisionCheck() | fl) {\n flash();\n fl = !fl;\n }\n \n int index1 = 0, index2 = 0, size1 = bullets.size(), size2 = aliens.size();\n for (Alien al : aliens) {\n index2 = 0;\n while (index2 < size1) {\n if (al.collide(bullets.get(index2))) {\n bullets.remove(index2);\n size1--;\n score += 10;\n }\n index2++;\n }\n }\n\n index1 = 0; size1 = aliens.size();\n while (index1 < size1) {\n if (aliens.get(index1).health() <= 0) {\n aliens.remove(index1);\n index1--;\n size1--;\n score += 25;\n }\n index1++;\n }\n \n for (Dot d : lazers) {\n if (d.getX() < 0 | d.getX() > 512 | d.getY() < 0 | d.getY() > 496) {\n d.deactivate();\n }\n }\n index1 = 0; size1 = lazers.size();\n while (index1 < size1) {\n if (!lazers.get(index1).isActive()) {\n lazers.remove(index1);\n size1--;\n index1--;\n }\n index1++;\n }\n \n for (Dot d : bullets) {\n if (d.getX() < 0 | d.getX() > 512 | d.getY() < 0 | d.getY() > 512) {\n d.deactivate();\n }\n }\n index1 = 0; size1 = bullets.size();\n while (index1 < size1) {\n if (!bullets.get(index1).isActive()) {\n bullets.remove(index1);\n size1--;\n index1--;\n }\n index1++;\n }\n \n for (int i = 0; i < lives; i++) {\n page.drawImage(you.getImage(), i*20, 496, 16, 16, null);\n }\n page.setColor(Color.white);\n page.drawString(\"\" + you.health(), 420, 509);\n page.drawString(\"\" + score, 450, 509);\n you.draw(page);\n }\n else {\n lose();\n }\n }", "@Override\n\tpublic void update() {\n\t\tif(isMove) {\n\t\t\tspriteMoveToPoint(player, (int) mouseX, (int) mouseY);\n\t\t}\n\t\t\n\t\t//bullet\n\t\tfor(int i = 0; i < bulletList.size(); i++) {\n\t\t\tMoveSprite bullet = bulletList.get(i);\n\t\t\tspriteMoveToPoint(bullet, bullet.getX(), bullet.getY() - bullet.getVelocity());\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < bulletList.size(); i++) {\n\t\t\tMoveSprite bullet = bulletList.get(i);\n\t\t\t\tif(bullet.getY() < 10) {\n\t\t\t\t\tremoveBullet(bullet);\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t//enemy\n\t\tfor(int i = 0; i < enemyList.size(); i++) {\n\t\t\tMoveSprite enemy = enemyList.get(i);\n\t\t\tspriteMoveToPoint(enemy, enemy.getX(), enemy.getY() + enemy.getVelocity());\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < enemyList.size(); i++) {\n\t\t\tMoveSprite enemy = enemyList.get(i);\n\t\t\tif(enemy.getY() > layerheight) {\n\t\t\t\tremoveEnemy(enemy);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < enemyList.size(); i++) {\n\t\t\tEnemy enemy = enemyList.get(i);\n\t\t\tfor(int j = 0; j < bulletList.size(); j++) {\n\t\t\t\tBullet bullet = bulletList.get(j);\n\t\t\t\tcollisionCheckForBulletAndEnemy(enemy, bullet);\n\t\t\t}\n\t\t}\n\t}", "public void onShootPressed(){\n if(player.getRechargeTimer()<=0) {\n playShootingSound();\n Bullet bullet = new Bullet();\n player.setRechargeTimer(shotRechargeTime);\n bullet.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet.setRotation(player.getRotation());\n bullet.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet.getRotation() - 90))));\n if(player.getTripleShotTimer()>0){\n Bullet bullet1 = new Bullet();\n bullet1.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet1.setRotation(player.getRotation()+15);\n bullet1.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet1.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet1.getRotation() - 90))));\n Bullet bullet2 = new Bullet();\n bullet2.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet2.setRotation(player.getRotation()-15);\n bullet2.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet2.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet2.getRotation() - 90))));\n }\n }\n }", "public void trackBullets(){\n for (int i = 0; i < bullets.size(); i++){\n Bullet tempBullet = bullets.get(i);\n //update the position of the bullets\n tempBullet.update();\n tempBullet.drawBullet();\n //check if the bullet hit the boundary, remove the bullet from the list of the bullet\n if(tempBullet.detectBound()){\n bullets.remove(i);\n continue;\n }\n //detect if the bullet hit the boss and cause the damage if yes\n if(tempBullet.hitObject(Main.boss) && Main.boss.alive){\n Main.boss.decreaseHealth(attack);\n tempBullet.drawHit();\n bullets.remove(i);\n if(Main.boss.health <= 0){\n Main.boss.alive = false;\n Main.boss.deadTime = millis();\n Main.score += 100;\n }\n }\n //detect if the bullet hit the enemy and cause the damage if yes\n for(int j = 0; j < Main.enemies.size(); j++){\n Enemy tempEnemy = Main.enemies.get(j);\n if(tempBullet.hitObject(tempEnemy) && tempEnemy.alive){\n tempBullet.drawHit();\n tempEnemy.decreaseHealth(attack);\n // if enemy is totally hitted, wait one 1s, and then removed\n if(tempEnemy.health <= 0){\n tempEnemy.alive = false;\n tempEnemy.deadTime = millis();\n }\n bullets.remove(i);\n break;\n }\n }\n }\n }", "public void update() {\n super.update();\n // Code specific to the ship gameObject\n action = ctrl.action();\n direction.rotate(action.turn * STEER_RATE * Constants.DT);\n velocity.addScaled(direction, (MAG_ACC * Constants.DT * action.thrust));\n position.addScaled(velocity, DRAG * Constants.DT);\n position.wrap(Constants.FRAME_WIDTH, Constants.FRAME_HEIGHT);\n\n // Checks if the user is pressing forwards\n if(action.thrust == 1){\n thrusting = true;\n } else{\n thrusting = false;\n }\n time -= 1;\n if(action.shoot && time <= 0){\n mkBullet();\n time = 30;\n }\n\n if(invincible)\n color = Color.blue;\n else\n color = Color.cyan;\n }", "private void updateShop(List<ItemType> items, int level) {\n\t\tfor (ItemType item : items) {\n\t\t\tString text = item.getTextureString();\n\t\t\ttext = item instanceof SpecialType ? text\n\t\t\t\t\t: text.substring(0, text.length() - 1)\n\t\t\t\t\t\t\t+ Integer.toString(level);\n\t\t\tTexture texture = textureManager.getTexture(text);\n\t\t\tImageButton button = generateItemButton(texture);\n\n\t\t\tbutton.addListener(new ClickListener() {\n\t\t\t\tpublic void clicked(InputEvent event, float x, float y) {\n\t\t\t\t\tstatus.setText(item.getName());\n\t\t\t\t\tif (selectedHero == null) {\n\t\t\t\t\t\tstatus.setText(\"Unsuccessful shopping, No hero exist.\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (selectedHero.getHealth() <= 0) {\n\t\t\t\t\t\tstatus.setText(\n\t\t\t\t\t\t\t\t\"Your Commander is dead. Can't buy anything.\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tboolean enoughResources = checkCost(selectedHero.getOwner(),\n\t\t\t\t\t\t\titem);\n\t\t\t\t\tif (enoughResources) {\n\t\t\t\t\t\tif (item instanceof WeaponType) {\n\t\t\t\t\t\t\tWeapon weapon = new Weapon((WeaponType) item,\n\t\t\t\t\t\t\t\t\tlevel);\n\t\t\t\t\t\t\tselectedHero.addItemToInventory(weapon);\n\t\t\t\t\t\t\tstatus.setText(boughtString + weapon.getName()\n\t\t\t\t\t\t\t\t\t+ \"(Weapon) for \"\n\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t} else if (item instanceof ArmourType) {\n\t\t\t\t\t\t\tArmour armour = new Armour((ArmourType) item,\n\t\t\t\t\t\t\t\t\tlevel);\n\t\t\t\t\t\t\tselectedHero.addItemToInventory(armour);\n\t\t\t\t\t\t\tstatus.setText(boughtString + armour.getName()\n\t\t\t\t\t\t\t\t\t+ \"(Armour) for \"\n\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tboolean transactSuccess;\n\t\t\t\t\t\t\tSpecial special = new Special((SpecialType) item);\n\t\t\t\t\t\t\ttransactSuccess = selectedHero\n\t\t\t\t\t\t\t\t\t.addItemToInventory(special);\n\t\t\t\t\t\t\tif (transactSuccess) {\n\t\t\t\t\t\t\t\tstatus.setText(boughtString + special.getName()\n\t\t\t\t\t\t\t\t\t\t+ \"(Special) for \"\n\t\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tstatus.setText(\n\t\t\t\t\t\t\t\t\t\t\"Unsuccessful Shopping, can only hold 4 specials\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tselectedHero.setStatsChange(true);\n\t\t\t\t\t\ttransact(selectedHero.getOwner(), item);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tString mes = \"Not enough resources.\";\n\t\t\t\t\t\tstatus.setText(mes);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tprivate boolean checkCost(int owner, ItemType item) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t\tscrollTable.add(button).width(iconSize).height(iconSize).top();\n\t\t\tString stats = getItemStats(item, level);\n\t\t\tString cost = getItemCost(item, level);\n\t\t\tscrollTable.add(new Label(stats, skin)).width(iconSize).top()\n\t\t\t\t\t.left();\n\t\t\tscrollTable.add(new Label(cost, skin)).width(iconSize).top().left();\n\t\t\tscrollTable.row();\n\t\t}\n\t}", "private void multiBulletFire() {\n\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 20, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) - 10, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 50, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t}", "public void update(float delta) {\n rangeTimer++;//update bullet distance\n //delete bullet if hit collison or met ranged\n if (rangeTimer == RANGE) {\n bullet.setShoot(false);\n rangeTimer = 0;\n } else {\n //update bullet timings\n bullet.updateTimer(delta);\n //make bullet go to p x y - follows player to increase difficulty\n if (this.bullet.x < playerX + 1.5) {\n this.bullet.x += Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n if (this.bullet.x >playerX + 1.5) {\n this.bullet.x -= Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n if (this.bullet.y < playerY + 0.5) {\n this.bullet.y += Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n if (this.bullet.y > playerY + 1.5) {\n this.bullet.y -= Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n }\n }", "public Weapon(Player player)\n\t{\n\t\tthis.bullets=new ArrayList<Bullet>();\n\t\tthis.player=player;\n\t\tpause = cooldown;\n\t}", "public Weapon getWeapon(){\n return this.weaponPos;\n }", "public void drawUserWeapons(Graphics g) {\r\n\t\tlevelManager.drawUserWeapons(g);\r\n\t}", "public void trackBullets(){\n // bossbullet control, if it hit the bound, remove the bullet\n for(int i = 0; i < bossBullets.size(); i++){\n Bullet tempBullet = bossBullets.get(i);\n tempBullet.update();\n tempBullet.drawBullet();\n // print (tempBullet.posX, tempBullet.posY,'\\n');\n if(tempBullet.detectBound()){\n bossBullets.remove(i);\n continue;\n }\n\n if(tempBullet.hitObject(Main.player) && !Main.player.invincible){\n Main.player.decreaseHealth(1);\n Main.player.posX = width / 2;\n Main.player.posY = height * 9 / 10;\n Main.player.invincible = true;\n Main.player.invincibleTime = millis();\n }\n\n }\n }", "public Weapon(){\n \n name = \"Claw\"; // will be treated as a sword\n type = 'R';\n advType = 'G';\n disType = 'B';\n mt = 4;\n hit = 85;\n crit = 0;\n wt = 1;\n isMagic = true;\n \n }", "private void createWeapons()\n {\n woodSword = new Weapon(\"wood sword\", \" | does 12 damage\", 10, true); \n rustedSword = new Weapon(\"rusted sword\", \" | does 17 damage\", 15, true);\n silverSword = new Weapon(\"silver sword\", \" | does 32 damage\", 30, true);\n goldSword = new Weapon(\"gold sword\", \" | does 22 damage\", 20, true);\n titaniumSword = new Weapon(\"titanium sword\", \" | does 52 damage\", 50, true);\n silverSpear = new Weapon(\"silver spear\", \" | does 25 damage\", 23, true);\n infantryBow = new Weapon(\"infantry bow\", \" | does 30 damage\", 28, true);\n }", "public void reloadWeapon() {\r\n Timer timer = new Timer();\r\n Colt.playReloadSound();\r\n timer.schedule(new FinishReload(), 2000);\r\n }", "void fire() {\r\n // firing a shot takes energy\r\n if (!expendEnergy(BULLET_ENERGY))\r\n return;\r\n\r\n //create a bullet object so it doesn't hit the ship that's firing it\r\n double xV = getXVel() + BULLET_SPEED * (Math.cos(orientation));\r\n double yV = getYVel() + BULLET_SPEED * (Math.sin(orientation));\r\n\r\n // create the actual bullet\r\n new Bullet(\r\n getGame(),\r\n (getXPos() + ((getSize()/2 + 2) * (Math.cos(orientation))) + xV),\r\n (getYPos() + ((getSize()/2 + 2) * (Math.sin(orientation))) + yV),\r\n xV,\r\n yV);\r\n }", "@Override\n\tpublic void update() {\n\t\tgetInput();\n\t\t\n\t\t//swap 2 guns\n\t\tif(handler.getKeyManager().q) {\n\t\t\tswap(next);\n\t\t\thandler.getKeyManager().q = false;\n\t\t}\n\t\t\n\t\tif(isMoving) {\n\t\t\tSoundEffect.playStep();\n\t\t\t\n\t\t\tanim_run_left.update();\n\t\t\tanim_run_right.update();\n\t\t\t\n\t\t\tif(!penetrating) move();\n\t\t\telse {\n\t\t\t\tx += xMove;\n\t\t\t\ty += yMove;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tanim_run_left.reset();\n\t\t\tanim_run_right.reset();\n\t\t\tSoundEffect.stopStep();\n\t\t}\n\t\t\n\t\t//check direction\n\t\theadingRight = (mouseX >= x - handler.getCamera().getxOffset() + getWidth() / 2);\n\t\t\n\t\trotateHands((double) (mouseX - (x - handler.getCamera().getxOffset() + getWidth() / 2)), \n\t\t\t\t (double) ((y - handler.getCamera().getyOffset() + getHeight() / 2) - mouseY));\n\t\t\n\t\t//atk speed\n\t\tif(timer < curr.getDelay()) {\n\t\t\ttimer += System.currentTimeMillis() - lastTime;\n\t\t}\n\t\telse {\n\t\t\ttimer = curr.getDelay();\n\t\t}\n\t\t\n\t\t//if there is no ammo left ==> force reload\n\t\tif (!curr.isShootable()) isReloading = true;\n\t\t\n\t\t//if reloading\n\t\tif(isReloading) {\n\t\t\t//if really need to reload\n\t\t\tif(curr.getCurrAmmo() < curr.getMaxAmmo()) {\n\t\t\t\tif(loading == 0) curr.playReloadSound();\n\t\t\t\t\n\t\t\t\tloading += System.currentTimeMillis() - lastTime;\n\t\t\t\tif(loading >= curr.getReloadTime()) {\n\t\t\t\t\treload();\n\t\t\t\t\tloading = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if full of ammo already ==> cancel reload\n\t\t\telse isReloading = handler.getKeyManager().r = false;\n\t\t}\n\t\t//if not reloading\n\t\telse {\n\t\t\t//if is shooting and able to shoot\n\t\t\tif(isShooting && timer == curr.getDelay()) {\n\t\t\t\tshoot();\n\t\t\t\ttimer = 0;\n\t\t\t}\n\t\t}\n\n\t\tlastTime = System.currentTimeMillis();\n\t\t\n\t\t//set focus\n\t\thandler.getCamera().focusOnEntity(this);\n\t}", "@Override\n public void attack(){\n int xBullet=0,yBullet=0;\n switch(direction){\n case 0:\n xBullet=(int)(x+Sprite.python_left.getWidth()/3);\n yBullet=(int)(y+Sprite.python_left.getHeight()*3/4);\n break;\n case 1:\n xBullet=(int)(x+Sprite.python_left.getWidth()*3/4);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n case 2:\n xBullet=(int)(x+Sprite.python_left.getWidth()/3);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n case 3:\n xBullet=(int)(x+Sprite.python_left.getWidth()/4);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n }\n PythonBullet pythonBullet=new PythonBullet(xBullet,yBullet,board,Player.PLAYER_SPEED*1.5);\n pythonBullet.setDirection(direction);\n board.addBullets(pythonBullet);\n\n }", "public void update() {\n\t\tfor(String key : actives.keys()) {\n\t\t\tActiveSound snd = actives.get(key);\n\t\t\tsnd.lifespan++;\n\t\t\tif (snd.lifespan > timeLimit) {\n\t\t\t\tcollection.add(key);\n\t\t\t\tsnd.sound.setLooping(snd.id,false); // Will eventually garbage collect\n\t\t\t\tsnd.sound.setVolume(snd.id, 0.0f); \n\t\t\t}\n\t\t}\n\t\tfor(String key : collection) {\n\t\t\tactives.remove(key);\n\t\t}\n\t\tcollection.clear();\n\t\tcurrent = 0;\n\t}", "public void update(){\n if(clearing) {\n attacks.clear();\n attacksToAdd.clear();\n attacksToDelete.clear();\n playerAttackCount = 0;\n clearing = false;\n } else {\n for (AttackObject attack : attacks) {\n attack.update();\n checkAttackCollisionsFor(attack);\n checkAttackReachedEnd(attack);\n if (attack.wasDestroyed()) {\n onAttackDestroyed(attack);\n }\n }\n deleteAttacks();\n addAttacks();\n }\n }", "@Override\n public void update() {\n if (Screen.checkState(GameState.RUNNING)) {\n healthToDraw = getPlayer().getHealth();\n maxHealthToDraw = getPlayer().getMaxHealth();\n minesToDraw = getPlayer().getCurrentMines();\n maxMinesToDraw = getPlayer().getMaxMines();\n currentLevelToDraw = Screen.getRoomHandler().getCurrentLevel();\n defenseToDraw = getPlayer().getDefense();\n speedToDraw = getPlayer().getSpeed();\n rangeToDraw = getPlayer().getSmallPlayerRange();\n damageToDraw = getPlayer().getPlayerDamage();\n playerRings = getPlayer().getRings();\n skillsToDraw = new Skill[4];\n for (int i = 0; i < getPlayer().getSkills().size(); i++) {\n if ( i < 4) {\n skillsToDraw[i] = getPlayer().getSkills().get(i);\n }\n }\n }\n }", "public void shoot(ArrayList<Bullet> alienBullets)\r\n\t{\r\n\t\t//do nothing usually\r\n\t}", "private void fire(GameEngine gameEngine) {\n Bullet bullet1 = gameEngine.getBulletEnemy();\n if (bullet1 == null) {\n return;\n }\n bullet1.init(this, positionX + imageWidth/2, positionY, 0);\n gameEngine.addGameObject(bullet1);\n gameEngine.playSound(1);\n }", "private void updateList() {\r\n\t\tthis.dlm.removeAllElements();\r\n\t\tfor (Enumeration<String> e = this.tableWeapon.getKey(); e\r\n\t\t\t\t.hasMoreElements();) {\r\n\t\t\tString nameWeapon = e.nextElement();\r\n\t\t\tWeapon weapon = this.tableWeapon.getWeapon(nameWeapon);\r\n\t\t\tif (weapon.getDamagesMinimum() >= this.getSpinnerDamageMinimumMin()\r\n\t\t\t\t\t&& weapon.getDamagesMinimum() <= this\r\n\t\t\t\t\t\t\t.getSpinnerDamageMinimumMax()\r\n\t\t\t\t\t&& weapon.getType() == this.getValueType()\r\n\t\t\t\t\t&& weapon.getDamagesMaximum() >= this\r\n\t\t\t\t\t\t\t.getSpinnerDamageMaximumMin()\r\n\t\t\t\t\t&& weapon.getDamagesMaximum() <= this\r\n\t\t\t\t\t\t\t.getSpinnerDamageMaximumMax()\r\n\t\t\t\t\t&& weapon.getPrice() >= this.getSpinnerPriceMin()\r\n\t\t\t\t\t&& weapon.getPrice() <= this.getSpinnerPriceMax())\r\n\t\t\t\tthis.dlm.addElement(nameWeapon);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void onCollisionWithBullet() {\n\t\t\r\n\t}", "public void update(ArrayList<Bullet> projectileList, ArrayList<ZOrderableSprite> zOrderableSpriteList) {\n\n // Increment AI timer\n aiTimer += Gdx.graphics.getDeltaTime();\n aiTimer2 += Gdx.graphics.getDeltaTime();\n // Increment attack timer\n attackTimer += Gdx.graphics.getDeltaTime();\n // 0: Random Walking AI: the enemie will either stay idle or walk around randomly\n if(aiType == 0) {\n // hostile: false\n randomWalkingAI(false, null, null);\n }\n /*\n 1: Hostile random Walking AI: the enemie will attack the player is close enough,\n else the enemie will either stay idle or walk around randomly\n */\n else if(aiType == 1) {\n // Hostile\n randomWalkingAI(true, projectileList, zOrderableSpriteList);\n }\n\n // Update animations\n animation.update();\n\n // Update particles\n updateParticles();\n\n // Update enemie position\n updatePosition();\n\n // Update hp bar\n hpBar.update(currentHp, maximumHp, currentShield, maximumShield);\n hpBar.updatePosition(hitbox.getX(), hitbox.getY() - 7);\n\n // Enemie will shine red light when damaged\n\t\tif(colorValue < 1) {\n\t\t\tcolorValue += Gdx.graphics.getDeltaTime() * 2;\n\t\t}\n }", "void update(List<IProjectile> projectilesList, float newAgle, boolean hasTarget);", "private void speedBulletFire() {\n\n\t\tbulletArrayList.add(\n\t\t\t\tnew Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, \"Yellow\"));\n\n\t\tfor (int i = 0; i < bulletArrayList.size(); i++) {\n\t\t\tbulletArrayList.get(i).setSpeed(5);\n\t\t}\n\t}", "public void shoot() {\n\t\tgetWeapon().triggerMain();\n\t\tsetShooting(true);\n\t}", "public void shoot()\n {\n\n if(reload<=0)//if the tower has reloaded\n {\n int randomizer=Greenfoot.getRandomNumber(20)-10; \n MinigunBullet bullet = new MinigunBullet(this.getRotation()+randomizer, damage,this);\n getWorld().addObject(bullet, getX(), getY());\n bullet.move(30);\n reload=3;\n }\n else//reload\n {\n reload--;\n }\n\n }", "void updateSkill(Skill skill);", "@Override\n public void fireBullet(ArrayList<ScreenObject> level) {\n level.add(new ShipBullet(position.x, position.y, 8, 8, direction));\n }", "protected void handleFiring(double dt)\r\n\t{\r\n\t\t//Fire if the mouse button is pressed.\r\n\t\tif (input.getMouseButton(InputHandler.FIRE) && charge <= 0 && energy >= energyUse)\r\n\t\t{\r\n\t\t\tEntityBullet bullet = (EntityBullet)c.createEntity(w, EI.EntityBullet);\r\n\t\t\tdouble xDir = Math.cos(horizontalDir)*Math.cos(verticalDir),\r\n\t\t\t\t\tyDir = Math.sin(horizontalDir)*Math.cos(verticalDir), zDir = Math.sin(verticalDir);\r\n\t\t\t\r\n\t\t\tdouble xDisp = shotX*Math.cos(verticalDir) - shotZ*Math.sin(verticalDir);\r\n\t\t\tdouble zDisp = shotX*Math.sin(verticalDir) + shotZ*Math.cos(verticalDir);\r\n\t\t\t\r\n\t\t\tdouble yDisp = xDisp*Math.sin(horizontalDir) - shotY*Math.cos(horizontalDir);\r\n\t\t\txDisp = xDisp*Math.cos(horizontalDir) + shotY*Math.sin(horizontalDir);\r\n\t\t\t\r\n\t\t\t//t is to prevent bullets from spawning through walls.\r\n\t\t\t\r\n\t\t\tdouble t = w.getCollision().getBulletCollision(x, y, z, xDisp, yDisp, zDisp);\r\n\t\t\t\r\n\t\t\tif (t == 1)\r\n\t\t\t{\r\n\t\t\t\t//Create the bullet\r\n\t\t\t\tenergy -= energyUse;\r\n\t\t\t\tbullet.setPosition(x+xDisp, y+yDisp, z+zDisp);\r\n\t\t\t\tint vel = 60;\r\n\t\t\t\t\r\n\t\t\t\tbullet.setVelocity(vel*xDir, vel*yDir, vel*zDir);\r\n\t\t\t\tbullet.setDamage(1, 1);//damage, knockback\r\n\t\t\t\tbullet.setColor(0, 1, 0);\r\n\t\t\t\t\r\n\t\t\t\tbullet.setOwner(player);\r\n\t\t\t\t\r\n\t\t\t\tw.create(bullet);\r\n\t\t\t\t\r\n\t\t\t\tcharge = shotDelay;\r\n\t\t\t\t\r\n\t\t\t\t//Laser gun sound\r\n\t\t\t\tc.getSoundHandler().playSound(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Weapon recharging\r\n\t\tcharge -= dt;\r\n\t}", "public void setWeapons(ArrayList<WeaponClient> weapons) {\n this.weapons = weapons;\n }", "public void update() {\n if (player.getPlaying()) { //if player alive\n bg.update(); //update background\n player.update(); //update player\n //player collision detection, if player hits any baddies or their bullets is playing sets to false\n for (int i = 0; i < gargants.size(); i++) {\n if (collision(gargants.get(i), player)) {\n //gargants.remove(i);\n player.setPlaying(false);\n\n }\n for (int j = 0; j < demons.size(); j++) {\n if (collision(demons.get(j), player)) {\n //demons.remove(j);\n player.setPlaying(false);\n\n }\n for (int k = 0; k < dragons.size(); k++) {\n if (collision(dragons.get(k), player)) {\n //dragons.remove(k);\n player.setPlaying(false);\n\n }\n for (int l = 0; l < demonShots.size(); l++) {\n if (collision(demonShots.get(l), player)) {\n //demonShots.remove(l);\n player.setPlaying(false);\n\n }\n\n }\n }\n }\n }\n\n for (int i = 0; i < bullets.size(); i++) { //for each bullet\n bullets.get(i).update(); //update them\n if (bullets.get(i).getX() > WIDTH + 10) {\n bullets.remove(i); //if off screen delete\n }\n }\n\n for (int i = 0; i < demonShots.size(); i++) { // for each demon bullet\n demonShots.get(i).update(); //update them\n if (demonShots.get(i).getX() < -100) {\n demonShots.remove(i); //if off screen delete\n }\n }\n\n long gargantElapseTime = (System.nanoTime() - gargantStartTime) / 1000000;\n if (gargantElapseTime > (1200 - player.getScore() / 3)) { //as score increases, more will spawn\n gargants.add(new Gargant(BitmapFactory.decodeResource(getResources(), R.drawable.gargant), WIDTH + 10, (int) (rand.nextDouble() * (HEIGHT)), 64, 64, 8));\n if (gargants.size() >= 13) { //limit amount of this enemy to 13\n gargants.remove(gargants.size() - 1);\n }\n gargantStartTime = System.nanoTime();\n }\n for (int i = 0; i < gargants.size(); i++) { // for each gargant\n gargants.get(i).update(); //update them\n for (int j = 0; j < bullets.size(); j++) {\n if (collision(gargants.get(i), bullets.get(j))) {\n //when shot remove enemy and bullet\n gargants.remove(i);\n bullets.remove(j);\n player.addScore(10); //10 score for these guys\n break;\n }\n }\n if (gargants.get(i).getX() < -100) {\n gargants.remove(i); //if off screen remove\n }\n }\n\n if (level >= 3) { //only spawn demon above level 3\n long demonElapseTime = (System.nanoTime() - demonStartTime) / 1000000;\n if (demonElapseTime > (12000 - player.getScore() / 3)) { //as score increases, more will spawn\n demons.add(new Demon(BitmapFactory.decodeResource(getResources(), R.drawable.demon), WIDTH + 10, (int) (rand.nextDouble() * (HEIGHT)), 64, 64, 8));\n if (demons.size() >= 10) { //limit amount of this enemy to 10\n demons.remove(demons.size() - 1);\n }\n demonStartTime = System.nanoTime();\n }\n for (int i = 0; i < demons.size(); i++) { //for each demon\n demons.get(i).update(); //update them\n int n = rand.nextInt(1001); //random int between 1 and 1000\n if (n > 980) { //if random int > 980 shoot demon bullet\n demonShots.add(new HellFire(BitmapFactory.decodeResource(getResources(), R.drawable.hellfire_0), demons.get(i).getX(), demons.get(i).getY(), 64, 64));\n }\n for (int j = 0; j < bullets.size(); j++) {\n if (collision(demons.get(i), bullets.get(j))) {\n demonHitCount++; //each hit with bullet increases hitcount\n bullets.remove(j);\n if (demonHitCount >= 10) { //when hit more than 10 times it dies\n demonHitCount = 0;\n demons.remove(i);\n bullets.remove(j);\n player.addScore(100); //100 score for these big bois\n }\n }\n }\n if (demons.get(i).getX() < -100) {\n demons.remove(i); //if off screen delete\n }\n }\n }\n\n\n if (level >= 2) { //only spawn dragon above level 3\n long dragonElapseTime = (System.nanoTime() - dragonStartTime) / 1000000;\n if (dragonElapseTime > (6000 - player.getScore() / 3)) { //as score increases, more will spawn\n dragons.add(new Dragon(BitmapFactory.decodeResource(getResources(), R.drawable.dragon), WIDTH + 10, (int) (rand.nextDouble() * (HEIGHT)), 128, 128, 8));\n if (dragons.size() >= 5) { //dragons limitted to only 5\n dragons.remove(dragons.size() - 1);\n }\n dragonStartTime = System.nanoTime();\n }\n for (int i = 0; i < dragons.size(); i++) {\n dragons.get(i).update();\n for (int j = 0; j < bullets.size(); j++) {\n if (collision(dragons.get(i), bullets.get(j))) {\n dragonHitCount++; //if hit increase hitcount\n bullets.remove(j);\n if (dragonHitCount >= 4) { //when hit 4 times it dies\n dragonHitCount = 0;\n dragons.remove(i);\n bullets.remove(j);\n player.addScore(25); //25 score for dragons\n }\n break;\n }\n }\n if (dragons.get(i).getX() < -100) {\n dragons.remove(i); //when off screen remove\n }\n }\n }\n }\n }", "public void fire(Vector2 dir, Vector2 weaponPos, Boolean multiplayer) {\n\t\t\n\t}", "public void fire() {\n\n\t\t// A player cannot continually fire, there is a delay between each bullet.\n\t\tif (isAbleToFire) {\n\n\t\t\taudio.playMusic(\"Audio/Fire.wav\");\n\n\t\t\tif (multiBulletIsActive) {\n\n\t\t\t\tmultiBulletFire();\n\n\t\t\t} else if (speedBulletIsActive) {\n\n\t\t\t\tspeedBulletFire();\n\n\t\t\t} else if (quickFireBulletIsActive) {\n\n\t\t\t\tquickFireBulletFire();\n\n\t\t\t} else {\n\n\t\t\t\t// Single fire.\n\t\t\t\t// Adjust bullet position to be fired from the center of the player.\n\t\t\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition,\n\t\t\t\t\t\tbulletWidth, bulletHeight, \"Red\"));\n\t\t\t}\n\n\t\t\t// Stop the player from being able to fire for 'ticksBetweemFire' amount.\n\t\t\tticksToNextFire = currentTickCount + ticksBetweenFire;\n\t\t}\n\t}", "public void giveWeapon(Weapon weapon) throws RuntimeException {\n if (weaponList.size() > 2)\n throw new RuntimeException(\"This player can't receive any more weapons\");\n weaponList.add(weapon);\n }", "public void update(float delta) {\n\t\tfor(DefenseTower tower : world.getDefenseTowers()) {\n\t\t for(Enemy enemy : world.getEnemies()) {\n\t\t\t if(tower.isPowered() == true && tower.inRange(enemy)) {\n\t\t\t\t\ttower.fireBullets(enemy, delta);\n\t\t\t\t\t//enemy.takeHit(tower.POWER*delta);\n\t\t\t\t\tif(!enemy.isAlive()) {\n\t\t\t\t\t world.getEnemies().removeValue(enemy, false);\n\t\t\t\t\t}\n\t\t\t } \n\t\t\t}\n\t\t}\n\t\n\t\t// Towncentre actions goes here. It shoots enemies here.\n\t\tTownCentre tCentre = world.getTownCentre();\n\t for(Enemy enemy : world.getEnemies()) {\n\t\t if(tCentre.inRange(enemy)) {\n\t\t\t\ttCentre.fireBullets(enemy, delta);\n\t\t\t\t//enemy.takeHit(tCentre.POWER*delta);\n\t\t\t\tif(!enemy.isAlive()) {\n\t\t\t\t world.getEnemies().removeValue(enemy, false);\n\t\t\t\t}\n\t\t } \n\t\t}\n\t \n\t // Soldiers attack enemies here.\n\t for(Soldier s: InstanceManager.getInstance().getSoldiers()) {\n\t \t//s.attackEveryEnemy(delta, InstanceManager.getInstance().getDefenseTowers());\n\t }\n\t\n\t /*for(Enemy enemy : world.getEnemies()) {\n\t\t\tfor(Tower tower : world.getTowers()) {\n\t\t\t if(enemy.inRange(tower)) {\n\t\t\t\t tower.takeHit(enemy.STRENGTH*delta);\n\t\t\t\t //System.out.println(\"tower \" + tower.UID + \"strength is \" + tower.STRENGTH);\n\t\t\t\t if(!tower.isAlive) {\n\t\t\t\t\t \tif(world.getTowers().indexOf(tower, false) !=-1)\n\t\t\t\t\t \t\tactiveTower=-1;\n\t\t\t\t\t world.getTowers().removeValue(tower, false);\n\t\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t\t// This makes townCentre take the hit.\n\t\t\tif(enemy.inRange(tCentre) && tCentre.isAlive) {\n\t\t\t\ttCentre.takeHit(enemy.STRENGTH*delta);\n\t\t\t\t //System.out.println(\"TownCenter \" + tCentre.UID + \"strength is \" + tCentre.STRENGTH);\n\t\t\t}\n\t }*/\n\t\t\n\t // Steams attackers attack towers and links here\n\t sAttackers.AttackTowersAndLinks(delta);\n\t\t\n\t\tfor(Tower tower : world.getTowers()) {\n\t\t tower.update(delta);\n\t\t}\n\t\t\n\t\tfor(Enemy enemy : world.getEnemies()) {\n\t\t enemy.update(delta);\n\t\t if(enemy.getPosition().x > 21 && enemy.getPosition().y > 14)\n\t\t \tworld.getEnemies().removeValue(enemy, false);\n\t\t}\n\t\t\n\t\tfor(Person p: InstanceManager.getInstance().getPeople()) {\n\t\t\tp.update(delta);\n\t\t}\n\t\t\n\t\tfor(Soldier s : InstanceManager.getInstance().getSoldiers()) {\n\t\t\ts.update(delta);\n\t\t}\n\t\t\n\t\t// A lot happens here.\n\t\tInstanceManager.getInstance().update(delta);\n\t\t\n\t\tfor(DefenseTower tower : world.getDefenseTowers()) {\n\t\t\ttower.update(delta);\n\t\t}\n\t\t// If game slows down you can limit updation timing here.\n\t\ttCentre.update(delta);\n\t\tgManager.update(delta);\n\t\tworld.update(delta);\n\t\tsController.update();\n\t\t\n }", "static void weapon(char item)\r\n {\r\n \tString pClass = MainApp.playerClass;\r\n \tif(MainApp.alreadyEquipped == false)\r\n\t\t{\r\n\t\t\tif(pClass == \"Warrior\")\r\n\t\t\t{\r\n\t \t\tif(item == '0')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Warrior Equipped!\");\r\n\t \t\t}\r\n\t \t\t//System.out.print(\"Post Equip Warrior\");\r\n\t\t\t}\r\n\t\t\tif(pClass == \"Archer\")\r\n\t\t\t{\r\n\t\t\t\tif(item == '&')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Archer Equipped!\");\r\n\t \t\t}\r\n\t\t\t\t//System.out.print(\"Post Equip Archer\");\r\n\t\t\t}\r\n\t\t\tif(pClass == \"Rogue\")\r\n\t\t\t{\r\n\t\t\t\tif(item == '!')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Rogue Equipped!\");\r\n\t \t\t}\r\n\t\t\t\t//System.out.print(\"Post Equip Rogue\");\r\n\t\t\t}\r\n\t }\r\n }", "public void shootAimingBullet(){\n bossBullet = new BossBullet(bossBulletImage,this.getXposition() + 100, this.getYposition() + 100, 8, player, true);\n bulletList.add(bossBullet);\n }", "@Override\r\n public void paintWeapon(Graphics g, Player p, ArrayList <Enemies> e) {\r\n\r\n paintProjectile(e, g, p);\r\n deleteProjectiles();\r\n }", "public void setWeaponCardsAndPieces() {\n List<WeaponCard> weaponCards = new ArrayList<>(); // empty list for the new weapon cards\n List<WeaponPiece> weaponPieces = new ArrayList<>(); // empty list for the new weapon pieces\n\n Data data = new Data(\"data.json\"); // read data from data.json\n JSONObject weaponData = (JSONObject) data.getJsonData().get(\"Weapons\"); // get the weapon data from the data\n for (int i = 0; i < 6; i++) { // for loop 0 to 5\n String weaponName = String.valueOf(weaponData.get(String.valueOf(i))); // get the weapon name\n //Make and add weaponCard and WeaponPiece to their specified lists.\n weaponCards.add(new WeaponCard(weaponName));\n weaponPieces.add(new WeaponPiece(weaponName));\n }\n //Assign the lists into their class variables\n this.weaponCards = weaponCards;\n this.weaponPieces = weaponPieces;\n }", "public void addWeapon(Pair<Byte,Short> weapon){\n //Total number of weapons player can carry is 5 (inc. default weapon)\n //If player has <3 weapons, simply add weapon.\n //Otherwise, first remove oldest weapon in inventory then add at that\n //position.\n //oldest weapon tracked by linked list of weapon entries.\n if(this.weapons.size() < 3) {\n this.weapons.add(weapon);\n this.weaponEntryTracker.add((byte) this.weapons.indexOf(weapon));\n }else{\n //Checks for duplicates, if duplicate weapons\n //found, new weapons ammo is just added to the current\n //weapon already in inventory\n for(Pair<Byte,Short> w : this.weapons){\n if(Objects.equals(w.getKey(), weapon.getKey())){\n if(weaponEntryTracker.size() == 1){\n weaponEntryTracker = new LinkedList<>();\n }\n else{\n for(int tracker : weaponEntryTracker){\n if(tracker == this.weapons.indexOf(w)){\n weaponEntryTracker.remove((Integer) tracker);\n }\n }\n }\n Pair<Byte,Short> newWeapon = new Pair<>(weapon.getKey(), (short) (w.getValue()+weapon.getValue()));\n if(this.currentWeapon == w){\n this.setCurrentWeapon(newWeapon);\n }\n this.weapons.set(this.weapons.indexOf(w),newWeapon);\n weaponEntryTracker.add((byte) this.weapons.indexOf(newWeapon));\n return;\n }\n }\n //check for any no weapon entries - indicates\n //player dropped weapon.\n for(Pair<Byte,Short> w : this.weapons){\n if(w.getKey() == NO_WEAPON_ID){\n this.weapons.set(this.weapons.indexOf(w),weapon);\n this.weaponEntryTracker.add((byte) this.weapons.indexOf(weapon));\n return;\n }\n }\n //If no null entries are found, remove oldest weapon\n int oldestWeapon = this.weaponEntryTracker.poll();\n byte oldestWeaponKey = this.weapons.get(oldestWeapon).getKey();\n this.weapons.set(oldestWeapon, weapon);\n this.weaponEntryTracker.add((byte) this.weapons.indexOf(weapon));\n if(oldestWeaponKey == currentWeapon.getKey()){\n setCurrentWeapon(weapon);\n }\n\n }\n }", "public void attack() {\n if (activeWeapon == null) {\n return;\n }\n attacking = true;\n }", "public void tick() {\n boolean shouldHaltAfterTick = false;\n\n List<Pair<Movement, Bullet>> movements = new ArrayList<>();\n\n //Bullets on nodes\n Map<Coordinate, Bullet> capturedBullets = new HashMap<>(bullets);\n capturedBullets.keySet().retainAll(nodes.keySet());\n\n //Bullets not on nodes\n Map<Coordinate, Bullet> freeBullets = new HashMap<>(bullets);\n freeBullets.keySet().removeAll(capturedBullets.keySet());\n\n //Generate movements for free bullets\n for (Map.Entry<Coordinate, Bullet> entry : freeBullets.entrySet()) {\n Bullet bullet = entry.getValue();\n Coordinate coord = entry.getKey();\n Coordinate newCoord = entry.getKey().plus(bullet.getDirection()).wrap(width, height);\n movements.add(new Pair<>(new Movement(coord, newCoord), bullet));\n }\n\n //Update captured bullets\n for (Map.Entry<Coordinate, Bullet> entry : capturedBullets.entrySet()) {\n Coordinate coordinate = entry.getKey();\n INode node = nodes.get(coordinate);\n\n // special case\n if (node instanceof NodeHalt)\n shouldHaltAfterTick = true;\n\n //TODO this brings great shame onto my family\n Direction bulletDirection = entry.getValue().getDirection();\n Direction dir = Direction.UP;\n while (dir != node.getRotation()) {\n dir = dir.clockwise();\n bulletDirection = bulletDirection.antiClockwise();\n }\n Bullet bullet = new Bullet(bulletDirection, entry.getValue().getValue());\n\n Map<Direction, BigInteger> bulletParams = node.run(bullet);\n\n for (Map.Entry<Direction, BigInteger> newBulletEntry : bulletParams.entrySet()) {\n //TODO this too\n bulletDirection = newBulletEntry.getKey();\n dir = Direction.UP;\n while (dir != node.getRotation()) {\n dir = dir.clockwise();\n bulletDirection = bulletDirection.clockwise();\n }\n\n Bullet newBullet = new Bullet(bulletDirection, newBulletEntry.getValue());\n Coordinate newCoordinate = coordinate.plus(newBullet.getDirection()).wrap(width, height);\n Movement movement = new Movement(coordinate, newCoordinate);\n movements.add(new Pair<>(movement, newBullet));\n }\n }\n\n //Remove swapping bullets\n List<Movement> read = new ArrayList<>();\n Set<Coordinate> toDelete = new HashSet<>();\n for (Pair<Movement, Bullet> pair : movements) {\n Movement movement = pair.getKey();\n Coordinate from = movement.getFrom();\n Coordinate to = movement.getTo();\n boolean foundSwaps = read.stream().anyMatch(other -> from.equals(other.getTo()) && to.equals(other.getFrom()));\n if (foundSwaps) {\n toDelete.add(from);\n toDelete.add(to);\n }\n read.add(movement);\n }\n movements.removeIf(pair -> toDelete.contains(pair.getKey().getFrom()) || toDelete.contains(pair.getKey().getTo()));\n\n //Remove bullets that end in the same place\n read.clear();\n toDelete.clear();\n for (Pair<Movement, Bullet> pair : movements) {\n Movement movement = pair.getKey();\n Coordinate to = movement.getTo();\n boolean foundSameFinal = read.stream().anyMatch(other -> to.equals(other.getTo()));\n if (foundSameFinal) {\n toDelete.add(to);\n }\n read.add(movement);\n }\n movements.removeIf(pair -> toDelete.contains(pair.getKey().getTo()));\n\n //Move bullets\n Map<Coordinate, Bullet> newBullets = new HashMap<>();\n for (Pair<Movement, Bullet> pair : movements) {\n Movement movement = pair.getKey();\n Bullet bullet = pair.getValue();\n newBullets.put(movement.getTo(), bullet);\n }\n\n bullets.clear();\n bullets.putAll(newBullets);\n\n if (shouldHaltAfterTick)\n halt();\n }", "public void changeWeapon(String weaponName)\r\n\t{\r\n\t\tm_weapon.changeAttack(weaponName);\r\n\t}", "public void updateFrame() {\n if (level != null) {\n for (GameEntity entity : entities) entity.update(this);\n pacman.update(this);\n checkCollisions();\n }\n }", "public void update(Rectangle floor, ArrayList<Enemy> enemies, Player player) {\n\t\tfor(int i = 0; i < pBullets.size(); ++i) {\t\t\t\n\t\t\tBullet b = pBullets.get(i);\n\t\t\t\n\t\t\tb.update();\n\t\t\t\n\t\t\t\n\t\t\t/* elimina/rimuove il proiettile se avviene un collisione \n\t\t\t * con le mura o con un nemico, nel secondo caso decrementa anche \n\t\t\t * la vita del nemico*/\n\t\t\tif(!floor.contains(b))\n\t\t\t\tpBullets.remove(i);\n\t\t\telse {\n\t\t\t\t/* scorro i nemici*/\n\t\t\t\tfor(Enemy e: enemies) {\n\t\t\t\t\tif( e.contains(b) ){\n\t\t\t\t\t\te.damage(b.getDamage());\n\t\t\t\t\t\tpBullets.remove(i);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* controllo collisioni proiettili Enemy */\n\t\tfor(int i = 0; i < eBullets.size(); ++i) {\n\t\t\tBullet b = eBullets.get(i);\n\t\t\tb.update();\n\t\t\t\n\t\t\tif(!floor.contains(b))\n\t\t\t\teBullets.remove(i);\n\t\t\t\n\t\t\telse if(player.contains(b)) {\n\t\t\t\tplayer.damage(b.getDamage());\n\t\t\t\teBullets.remove(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void addEquipment(Weapon w) {\n\t\tif (nbWeapons() > 0)\n\t\t\tthrow new BreakingRuleException();\n\t\tsuper.addEquipment(w);\n\t}", "public void equipSelectedWeapon() {\n }", "public Vector<EntityWeapon> getWeaponList();", "public void damage(Bullet bullet)\n {\n\n\thp -= bullet.getDamage();\n\tcheckHP();\n }", "public void shoot(float direction) {\n\t\tif(pause != 0) return;\n\t\tbullets.add(new Bullet(player.getPosition(),direction));\n\t\tpause = cooldown;\n\t}", "public void weaponAbility() {\n \tlogger.info(\"weapon abilities aren't implemented yet. Using slash ability\");\n \t//ability(map.getCurrentTurnHero().getWeaponAbility());\n \tability(new Slash());\n }", "public void setWeapon(int weapon)\n\t{\n\t\tthis.weapon = weapon;\n\t}", "public void update()\n\t{\n\t\t// if the wave spawner is ON and not all waves have been spawned\n\t\tif(this.active && !waveList.isEmpty())\n\t\t{\n\t\t\t// if the cooldown between waves has elapsed\n\t\t\tif(waveTimer.isReady() && currentWave != null)\n\t\t\t{\t\t\n\t\t\t\t// the first instant that the waveTimer is finished is when\n\t\t\t\t// the total time until the next wave needs to start counting down\n\t\t\t\tif(timeUntilNextWaveTimer.isReady())\n\t\t\t\t{\n\t\t\t\t\tthis.currentWaveNumber++;\n\t\t\t\t\ttimeUntilNextWaveTimer.start(currentWave.getTotalDuration());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// if we haven't spawned all the piggies in this wave\n\t\t\t\tif(currentWave.getNumberOfWalkers() > 0)\n\t\t\t\t{\n\t\t\t\t\t// if the appropriate amount of time has passed between spawns\n\t\t\t\t\tif(spawnTimer.isReady())\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.doSpawnProcess();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void update() {\n\n\t\ttimer++;\n\t\tupdatePlayer();\n\t\tupdateScreen();\n\t\tupdateLives();\n\n\t}", "public void fireBullet(int direction , int posX, int posY ){\n if ( clockBullet.getElapsedTime().asMilliseconds() > 100 ){\n int lowestbulletNo = 10;\n for( int i = 9; i > 0; i-- ){\n if ( bulletSpace.get(i).isEnabled() == false){\n lowestbulletNo = i;//find the first bullet in the gun barrol\n }\n }\n\n if ( lowestbulletNo < 10 ){\n bulletSpace.get(lowestbulletNo).setDirection(direction);\n bulletSpace.get(lowestbulletNo).setDistance(0);\n bulletSpace.get(lowestbulletNo).setPosX(posX - map.getX()) ;\n bulletSpace.get(lowestbulletNo).setPosY(posY - map.getY()) ;\n bulletSpace.get(lowestbulletNo).enabled(true);\n bulletSpace.get(lowestbulletNo).setRotation(direction+1);\n }\n }\n clockBullet.restart();\n }", "public void addWeapon(Weapon weapon) {\n setAttack(getAttack() + weapon.getDamage());\n setWeaponSlots(getWeaponSlots() - 1);\n }", "void smallgunHandler() {\n for (Sprite smb: smBullets) {\n \n smb.display();\n if(usingCoil){\n smb.forward(120);\n }else{\n smb.forward(40);\n }\n\n }\n}", "public void updateStep() {\n if (level != null) {\n // erst bewegung beenden, dann aktivitaet\n pacman.endMove();\n pacman.update(this);\n checkCollisions();\n // beendet die bewegungen von entities sofort, sonst keine aktivitaet\n GameEntity e;\n for (GameEntity entity : entities) {\n e = entity;\n // erst aktivitaet, dann bewegung beenden\n e.update(this);\n if (e instanceof MovingEntity)\n ((MovingEntity) e).endMove();\n }\n checkCollisions();\n }\n }", "@Test\n public void testGivenCharacterAndWeaponWhenUnequippingWeaponThenVerifyEntitiesUpdated() throws InvalidActionException {\n Clan clan = new Clan();\n clan.setId(1);\n clan.setName(\"Dragons\");\n\n Character character = new Character();\n character.setId(2);\n character.setName(\"Rusty Nick\");\n character.setState(CharacterState.READY);\n character.setClan(clan);\n\n ItemDetails weaponDetails = new ItemDetails();\n weaponDetails.setItemType(ItemType.WEAPON);\n\n Item weapon = new Item();\n weapon.setId(3);\n weapon.setDetails(weaponDetails);\n weapon.setClan(null);\n weapon.setCharacter(character);\n character.getItems().add(weapon);\n\n Set<Item> weapons = new HashSet<>();\n clan.setItems(weapons);\n\n // when unequipping weapon\n Mockito.when(characterRepository.getOne(2)).thenReturn(character);\n Mockito.when(itemRepository.getOne(3)).thenReturn(weapon);\n\n itemService.unequipItem(3,2, 1);\n\n // then verify entities updated\n assertNull(weapon.getCharacter());\n assertEquals(clan, weapon.getClan());\n assertNull(character.getWeapon());\n assertEquals(weapon, clan.getItems().iterator().next());\n }", "public void Update(int i, String s){\n\t\tint j;\n\t\tint arrX,arrY,arrJ;\n\t\t\n\t\tScanner sc = new Scanner(s).useDelimiter(\",\");\n\t\t// update Players\n\t\tplayers[i][0] = sc.nextInt();\n\t\tplayers[i][1] = sc.nextInt();\n\t\tplayers[i][2] = sc.nextInt();\n\t\t//update Arrows\n\t\tarrow_num[i] = sc.nextInt();\n\t\tfor(j=0;j<arrow_num[i];j++){\n\t\t\tarrJ = sc.nextInt();\n\t\t\tarrX = sc.nextInt();\n\t\t\tarrY = sc.nextInt();\n\t\t\tif(checkCollisions(arrX,arrY)){\n\t\t\t\tSystem.out.println(\"Collision Detected\");\n\t\t\t\tarrow_num[i] -= 1;\n\t\t\t} else {\n\t\t\t\tarrows[i][j][0] = arrX;\n\t\t\t\tarrows[i][j][1] = arrY;\n\t\t\t\tarrows[i][j][2] = arrJ;\n\t\t\t}\n\t\t\tif(enemy_num == 0){\n\t\t\t\tRandom r_gen1 = new Random();\n\t\t\t\taddEnemy(r_gen1.nextInt(10));\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// Receive Special Weapons\n\t\tif(sc.nextInt() != 0){\n\t\t\tarrX = sc.nextInt();\n\t\t\tarrY = sc.nextInt();\n\t\t\tif(checkCollisions(arrX, arrY)){\n\t\t\t\tSystem.out.println(\"Collision Detected\");\n\t\t\t} else{\n\t\t\t\tspecWep[i][0] = arrX;\n\t\t\t\tspecWep[i][1] = arrY;\n\t\t\t}\n\t\t} else {\n\t\t\tspecWep[i][0] = 0;\n\t\t\tspecWep[i][1] = 0;\n\t\t}\n\t\t\n\t\tmoveEnemies();\n\t\t// Add Arrows\n\t\tif(shoot_timer > 30){\n\t\t\tRandom r_gen = new Random();\n\t\t\tfor(j=0;j<enemy_num;j++){\n\t\t\t\tif((r_gen.nextInt(1000)%3) != 0) {\n\t\t\t\t\tAddEnemyArrow(j);\n\t\t\t\t\tshoot_timer = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tshoot_timer ++;\n\t\t\tSystem.out.println(\"Incrementing Shoot Timer\");\n\t\t}\n\t\tmoveEnemyArrows();\n\t\tcheckPlayerCollisions(players[i][1], players [i][2]);\n\t}", "private void updateSprites() {\n\t\tpaddle1.setX(paddle1X);\r\n\t\tpaddle1.setY(paddle1Y);\r\n\r\n\t\tpaddle2.setX(paddle2X);\r\n\t\tpaddle2.setY(paddle2Y);\r\n\r\n\t\tball.setX(ballX);\r\n\t\tball.setY(ballY);\r\n\r\n\t\tscore.setVisible(paused);\r\n\t}", "public void generateTutorialWeapons() {\n this.loot.add(new Weapon(\"Weathered Longsword\", \"A weathered longsword - it'll do.\", 3, 1));\n this.loot.add(new Weapon(\"Weathered Battle Axe\", \"A weathered battle axe - it'll do.\", 2, 2));\n this.loot.add(new Weapon(\"Weathered Bow\", \"A weathered bow - it'll do.\", 3, 2));\n }", "public void shoot(double x, double y) {\n if (magazineCounter > 0 && !reloading) {\n magazineCounter--;\n new WeaponProjectile(new Point2D(x, y), mouseLocation(), projectileSpeed, testing);\n }\n }" ]
[ "0.7222405", "0.7006495", "0.6640137", "0.662332", "0.6585595", "0.65415454", "0.650772", "0.64451367", "0.64393127", "0.6417788", "0.6365561", "0.63588685", "0.63467586", "0.63439983", "0.6340393", "0.630186", "0.62157124", "0.6198342", "0.6187817", "0.6156027", "0.6155302", "0.61458653", "0.61346036", "0.61217743", "0.6109129", "0.61078006", "0.606471", "0.6027394", "0.6026725", "0.6023889", "0.5991084", "0.5990951", "0.5963792", "0.5963526", "0.5921256", "0.5902292", "0.5894321", "0.5893537", "0.58860147", "0.58767843", "0.5868808", "0.58454025", "0.58427286", "0.5836371", "0.5834376", "0.5821981", "0.58105606", "0.5808547", "0.58044267", "0.58037245", "0.5799875", "0.57849026", "0.5776977", "0.57599056", "0.5754799", "0.5747979", "0.5745599", "0.57453215", "0.5738295", "0.5736419", "0.5727009", "0.57269156", "0.57177657", "0.5717396", "0.57101953", "0.57045734", "0.5703387", "0.570018", "0.5697091", "0.56912374", "0.56839913", "0.5670024", "0.56652886", "0.5662029", "0.5658358", "0.5647639", "0.56451714", "0.56350714", "0.5611623", "0.55853444", "0.5578185", "0.5568417", "0.55638087", "0.5563626", "0.5559071", "0.555864", "0.55564046", "0.55535537", "0.55522317", "0.5540801", "0.5539132", "0.55083674", "0.5504846", "0.54870343", "0.54838026", "0.5483742", "0.5482534", "0.5474948", "0.5472249", "0.5458447" ]
0.6192873
18
Returns all moving bullets in game
public Bullet[] getBullets() { return Arrays.copyOf(bullets.toArray(), bullets.size(), Bullet[].class); //return (Bullet[])bullets.toArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<AProjectile> getBullets() {\n return bullets;\n }", "public ArrayList<Bullet> getNewBullets()\r\n\t{\r\n\t\tArrayList<Bullet> fire = new ArrayList<Bullet>();\r\n\t\tfor (Bullet bullet : bullets)\r\n\t\t{\r\n\t\t\tif (bullet instanceof AvatarBullet)\r\n\t\t\t{\r\n\t\t\t\tfire.add(new AvatarBullet((AvatarBullet) bullet));\r\n\t\t\t}\r\n\t\t\telse if (bullet instanceof EnemyBullet)\r\n\t\t\t{\r\n\t\t\t\tfire.add(new EnemyBullet((EnemyBullet) bullet));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn fire;\r\n\t}", "public void drawBullets(){\n if(!world.getPlayer().getWeapon().getBullets().isEmpty()) {\n for (Bullet b : world.getPlayer().getWeapon().getBullets()) {\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y * ppuY,\n b.SIZE * ppuX, b.SIZE * ppuY);\n }\n }\n if(!world.getEnemies().isEmpty()) {\n for(Enemy e: world.getEnemies()){\n if(!e.getWeapon().getBullets().isEmpty()){\n for (Bullet b : e.getWeapon().getBullets()) {\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y\n * ppuY, b.SIZE * ppuX, b.SIZE * ppuY, 0, 0, bulletTexture.getWidth(),\n bulletTexture.getHeight(), false, true);\n }\n }\n }\n }\n if(!world.getBullets().isEmpty()) {\n for(Bullet b : world.getBullets()){\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y\n * ppuY, b.SIZE * ppuX, b.SIZE * ppuY, 0, 0, bulletTexture.getWidth(),\n bulletTexture.getHeight(), false, true);\n }\n }\n }", "public void trackBullets(){\n for (int i = 0; i < bullets.size(); i++){\n Bullet tempBullet = bullets.get(i);\n //update the position of the bullets\n tempBullet.update();\n tempBullet.drawBullet();\n //check if the bullet hit the boundary, remove the bullet from the list of the bullet\n if(tempBullet.detectBound()){\n bullets.remove(i);\n continue;\n }\n //detect if the bullet hit the boss and cause the damage if yes\n if(tempBullet.hitObject(Main.boss) && Main.boss.alive){\n Main.boss.decreaseHealth(attack);\n tempBullet.drawHit();\n bullets.remove(i);\n if(Main.boss.health <= 0){\n Main.boss.alive = false;\n Main.boss.deadTime = millis();\n Main.score += 100;\n }\n }\n //detect if the bullet hit the enemy and cause the damage if yes\n for(int j = 0; j < Main.enemies.size(); j++){\n Enemy tempEnemy = Main.enemies.get(j);\n if(tempBullet.hitObject(tempEnemy) && tempEnemy.alive){\n tempBullet.drawHit();\n tempEnemy.decreaseHealth(attack);\n // if enemy is totally hitted, wait one 1s, and then removed\n if(tempEnemy.health <= 0){\n tempEnemy.alive = false;\n tempEnemy.deadTime = millis();\n }\n bullets.remove(i);\n break;\n }\n }\n }\n }", "private void UpdateBullets()\n\t {\n\t for(int i = 0; i < BulletList.size(); i++)\n\t {\n\t Bullet bullet = BulletList.get(i);\n\t \n\t // Move the bullet.\n\t bullet.Update();\n\t \n\t // checks if the bullet has it left the screen\n\t if(bullet.HasLeftScreen()){\n\t BulletList.remove(i);\n\t \n\t continue;\n\t }\n\t \n\t // checks if the bullet hit the enemy\n\t Rectangle BulletRectangle = new Rectangle((int)bullet.xCoord, (int)bullet.yCoord, bullet.BulletImage.getWidth(), bullet.BulletImage.getHeight());\n\t // Go trough all enemies.\n\t for(int j = 0; j < EnemyList.size(); j++)\n\t {\n\t Enemy eh = EnemyList.get(j);\n\n\t \n\t Rectangle EnemyRectangel = new Rectangle(eh.xCoord, eh.yCoord, eh.EnemyHelicopterImage.getWidth(), eh.EnemyHelicopterImage.getHeight());\n\n\t // Checks whether the the bullet has hit the enemy\n\t if(BulletRectangle.intersects(EnemyRectangel))\n\t {\n\t // Bullet hit the enemy so we reduce his health.\n\t eh.Health -= Bullet.DamagePower;\n\t \n\t // Bullet was also destroyed so we remove it.\n\t BulletList.remove(i);\n\t \n\t \n\t }\n\t }\n\t }\n\t }", "void update() {\n for (int i = 0; i < bullets.size(); i++) {//if any bullets expires remove it\n if (bullets.get(i).off) {\n bullets.remove(i);\n i--;\n }\n }\n move();//move everything\n checkPositions();//check if anything has been shot or hit\n }", "public void move()\r\n\t{\r\n\t\tfor (int a = 0; a < bullets.size(); a++)\r\n\t\t{\r\n\t\t\tBullet bullet = bullets.get(a);\r\n\t\t\tif (!bullet.move())\r\n\t\t\t{\r\n\t\t\t\tbullets.remove(a);\r\n\t\t\t\ta--;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public ArrayList<Bullet> getBulletsFired(){\n return this.bulletsFired;\n }", "protected ArrayList<Bullet> getBullets()\r\n\t{\r\n\t\treturn bullets;\r\n\t}", "public void shoot(){\n int bulletPosX = posX;\n int bulletPosY = posY;\n int bulletVelX = 0;\n int bulletVelY = -9;\n //add the new bullets to the array of bullets\n bullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,0,attack));\n }", "void smallgunHandler() {\n for (Sprite smb: smBullets) {\n \n smb.display();\n if(usingCoil){\n smb.forward(120);\n }else{\n smb.forward(40);\n }\n\n }\n}", "@Override\n public void update(GameContainer gc, StateBasedGame stateBasedGame, int delta) throws SlickException {\n timeSinceStart += delta;\n rtimeSinceStart += delta;\n Input input = gc.getInput();\n int mouseX = input.getMouseX();\n int mouseY = input.getMouseY();\n\n\n basicbulletSheet.rotate(90f);\n basicbulletSheet.setCenterOfRotation(16, 16);\n\n // Move this bullet\n for (int i = 0; i < bulletList.size(); i++) {\n bullet = bulletList.get(i);\n bullet.move();\n }\n\n //Add this tower to the this towerList\n if (Tower.isBasicPlaced()) {\n basicTowers.add(new BasicTower());\n System.out.println(basicTowers);\n Tower.setBasicPlaced(false);\n }\n\n //Add this tower to the this towerList\n if (Tower.isBomberPlaced()) {\n bomberTowers.add(new BomberTower());\n System.out.println(bomberTowers);\n Tower.setBomberPlaced(false);\n }\n\n //Add this tower to the this towerList\n if (Tower.isSniperPlaced()) {\n sniperTowers.add(new SniperTower());\n System.out.println(sniperTowers);\n Tower.setSniperPlaced(false);\n }\n\n //Add this tower to the this towerList\n if (Tower.isQuickPlaced()) {\n quickTowers.add(new QuickTower());\n System.out.println(quickTowers);\n Tower.setQuickPlaced(false);\n }\n\n //For this tower, calculate how often this tower will shoot bullets\n for (BasicTower basicTower1 : basicTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n if (rtimeSinceStart > basicTower1.rcoolDown + basicTower1.rlastShot) {\n if (enemy.Playrect.intersects(basicTower1.Radius)) {\n basicTower1.basicClicked.setRotation((float) getTargetAngle(basicTower1.towerX,\n basicTower1.towerY, enemy.getStartPosX(), enemy.getStartPosY()));\n basicTower1.basicClicked.setCenterOfRotation(32, 32);\n basicTower1.rlastShot = rtimeSinceStart;\n }\n }\n if (timeSinceStart > basicTower1.coolDown + basicTower1.lastShot) {\n if (enemy.Playrect.intersects(basicTower1.Radius)) {\n addNewBullet2(basicTower1.towerX, basicTower1.towerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 10);\n basicTower1.lastShot = timeSinceStart;\n }\n\n }\n }\n }\n\n //For this tower, calculate how often this tower will shoot bullets\n for (BomberTower bomberTower1 : bomberTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n if (rtimeSinceStart > bomberTower1.rcoolDown + bomberTower1.rlastShot) {\n if (enemy.Playrect.intersects(bomberTower1.Radius)) {\n bomberTower1.bomberClicked.setRotation((float) getTargetAngle(bomberTower1.bombertowerX,\n bomberTower1.bombertowerY, enemy.getStartPosX(), enemy.getStartPosY()));\n bomberTower1.bomberClicked.setCenterOfRotation(32, 32);\n bomberTower1.rlastShot = rtimeSinceStart;\n }\n }\n if (timeSinceStart > bomberTower1.coolDown + bomberTower1.lastShot) {\n if (enemy.Playrect.intersects(bomberTower1.Radius)) {\n addNewBullet2(bomberTower1.bombertowerX, bomberTower1.bombertowerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 10);\n bomberTower1.lastShot = timeSinceStart;\n }\n }\n }\n }\n //For this tower, calculate how often this tower will shoot bullets\n for (SniperTower sniperTower1 : sniperTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n\n if (rtimeSinceStart > sniperTower1.rcoolDown + sniperTower1.rlastShot) {\n if (enemy.Playrect.intersects(sniperTower1.Radius)) {\n sniperTower1.sniperClicked.setRotation((float) getTargetAngle(sniperTower1.towerX,\n sniperTower1.towerY, enemy.getStartPosX(), enemy.getStartPosY()));\n sniperTower1.sniperClicked.setCenterOfRotation(32, 32);\n sniperTower1.rlastShot = rtimeSinceStart;\n }\n }\n\n if (timeSinceStart > sniperTower1.coolDown + sniperTower1.lastShot) {\n if (enemy.Playrect.intersects(sniperTower1.Radius)) {\n addNewBullet2(sniperTower1.towerX, sniperTower1.towerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 50);\n sniperTower1.lastShot = timeSinceStart;\n }\n\n }\n }\n }\n //For this tower, calculate how often this tower will shoot bullets\n for (QuickTower quickTower1 : quickTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n\n if (rtimeSinceStart > quickTower1.rcoolDown + quickTower1.rlastShot) {\n if (enemy.Playrect.intersects(quickTower1.Radius)) {\n quickTower1.quickClicked.setRotation((float) getTargetAngle(quickTower1.towerX,\n quickTower1.towerY, enemy.getStartPosX(), enemy.getStartPosY()));\n quickTower1.quickClicked.setCenterOfRotation(32, 32);\n quickTower1.rlastShot = rtimeSinceStart;\n }\n }\n\n\n if (timeSinceStart > quickTower1.coolDown + quickTower1.lastShot) {\n if (enemy.Playrect.intersects(quickTower1.Radius)) {\n radiusVisited = true;\n addNewBullet2(quickTower1.towerX, quickTower1.towerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 5);\n quickTower1.lastShot = timeSinceStart;\n }\n }\n\n }\n }\n\n //A spawn is in progress\n if (spawninProgress) {\n timePassedEnemy += delta;\n if (timePassedEnemy > 800) {\n enemies.add(new Enemy());\n enemySpawns++;\n timePassedEnemy = 0;\n }\n }\n //When enough enemies has spawned, stop the spawninProgress\n if (enemySpawns == enemyCounter) {\n spawninProgress = false;\n //hasbeenDead = false;\n enemySpawns = 0;\n enemyCounter++;\n }\n\n //When no more enemies on maps\n if (enemies.size() == 0) {\n waveinProgress = false;\n startWaveCount = 0;\n }\n\n //Start a new level when there's no more enemies on the map\n if (loadMap.MAP[mouseY / w][mouseX / w] == 16) {\n if (input.isMousePressed(0) && startWaveCount == 0 && !waveinProgress) {\n startWaveCount++;\n if (startWaveCount == 1 && enemies.size() == 0 && !waveinProgress) {\n waveinProgress = true;\n gc.resume();\n spawninProgress = true;\n currentLevel++;\n }\n }\n }\n\n //For each new level, increase the HP of each enemy\n if (currentLevel < currentLevel + 1 && !waveinProgress) {\n for (Enemy enemyHP : enemies) {\n if (enemyHP.getStartPosX() <= 0 && enemyHP.getHP() < enemyHP.startHP + currentLevel) {\n enemyHP.setHP(enemyHP.getHP() + currentLevel);\n }\n }\n }\n\n\n //For each enemies, if enemies has finished their way, decrease player HP\n //and set them inactive\n for (Enemy enemyList : enemies) {\n if (enemyList.counter >= enemyList.path.getLength() - 1) {\n player.decreaseLife();\n bulletCount = 0;\n enemyList.isActive = false;\n }\n\n //If enemies' hp is zero, set them inactive and remove from the list\n if (enemyList.getHP() <= 0) {\n enemyList.isActive = false;\n bulletCount = 0;\n player.addCredits(20);\n }\n enemyList.update(gc, stateBasedGame, delta);\n }\n for (int i = 0; i < enemies.size(); i++) {\n if (!enemies.get(i).isActive) {\n enemies.remove(enemies.get(i));\n }\n }\n\n //For all objects, update\n for (GameObject obj : objects)\n try {\n obj.update(gc, stateBasedGame, delta);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n //Go to Menu\n if (gc.getInput().isKeyPressed(Input.KEY_ESCAPE)) {\n gc.getInput().clearKeyPressedRecord();\n stateBasedGame.enterState(2);\n }\n\n\n }", "public void shootBullet( ){\n bulletsFired.add(new Bullet((short)(this.xPos + BOX_HEIGHT), (short)((this.getYPos() + (BOX_HEIGHT+15))), this.xPos, this.id, (byte) 0, (byte) 0, shootingDirection, currentWeapon.getKey()));\n\n byte weaponFired = currentWeapon.getKey();\n switch (weaponFired){\n case PISTOL_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n case MACHINEGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(MACHINEGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(MACHINEGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case SHOTGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SHOTGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SHOTGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.shotgunSound);\n break;\n case SNIPER_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SNIPER_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SNIPER_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case UZI_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(UZI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(UZI_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case AI_WEAPON_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(AI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n System.out.println(\"Bullet sound \" + audioHandler.getSoundEffectVolume());\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n default: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n\n }\n }", "public void trackBullets(){\n // bossbullet control, if it hit the bound, remove the bullet\n for(int i = 0; i < bossBullets.size(); i++){\n Bullet tempBullet = bossBullets.get(i);\n tempBullet.update();\n tempBullet.drawBullet();\n // print (tempBullet.posX, tempBullet.posY,'\\n');\n if(tempBullet.detectBound()){\n bossBullets.remove(i);\n continue;\n }\n\n if(tempBullet.hitObject(Main.player) && !Main.player.invincible){\n Main.player.decreaseHealth(1);\n Main.player.posX = width / 2;\n Main.player.posY = height * 9 / 10;\n Main.player.invincible = true;\n Main.player.invincibleTime = millis();\n }\n\n }\n }", "private void clearBullet()\n {\n if(playerBullets.size() > 0)\n {\n for(int i = 0; i < playerBullets.size(); ++i)\n {\n int x = playerBullets.get(i).getRectangle().centerX(), y = playerBullets.get(i).getRectangle().centerY();\n if (y <= 0 || y >= Constants.SCREEN_HEIGHT || x <= 0 || x >= Constants.SCREEN_WIDTH)\n {\n playerBullets.remove(i);\n --i;\n SFX_Manager.impact();\n }\n }\n }\n if(enemyBullets.size() > 0)\n {\n for(int i = 0; i < enemyBullets.size(); ++i)\n {\n int x = enemyBullets.get(i).getRectangle().centerX(), y = enemyBullets.get(i).getRectangle().centerY();\n if (y <= 0 || y >= Constants.SCREEN_HEIGHT || x <= 0 || x >= Constants.SCREEN_WIDTH)\n {\n enemyBullets.remove(i);\n --i;\n SFX_Manager.impact();\n }\n }\n }\n }", "public List<Projectile> getFiredProjectiles()\n {\n return new ArrayList<Projectile>(firedArrows);\n }", "@Override\n\tpublic void update() {\n\t\tif(isMove) {\n\t\t\tspriteMoveToPoint(player, (int) mouseX, (int) mouseY);\n\t\t}\n\t\t\n\t\t//bullet\n\t\tfor(int i = 0; i < bulletList.size(); i++) {\n\t\t\tMoveSprite bullet = bulletList.get(i);\n\t\t\tspriteMoveToPoint(bullet, bullet.getX(), bullet.getY() - bullet.getVelocity());\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < bulletList.size(); i++) {\n\t\t\tMoveSprite bullet = bulletList.get(i);\n\t\t\t\tif(bullet.getY() < 10) {\n\t\t\t\t\tremoveBullet(bullet);\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t//enemy\n\t\tfor(int i = 0; i < enemyList.size(); i++) {\n\t\t\tMoveSprite enemy = enemyList.get(i);\n\t\t\tspriteMoveToPoint(enemy, enemy.getX(), enemy.getY() + enemy.getVelocity());\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < enemyList.size(); i++) {\n\t\t\tMoveSprite enemy = enemyList.get(i);\n\t\t\tif(enemy.getY() > layerheight) {\n\t\t\t\tremoveEnemy(enemy);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < enemyList.size(); i++) {\n\t\t\tEnemy enemy = enemyList.get(i);\n\t\t\tfor(int j = 0; j < bulletList.size(); j++) {\n\t\t\t\tBullet bullet = bulletList.get(j);\n\t\t\t\tcollisionCheckForBulletAndEnemy(enemy, bullet);\n\t\t\t}\n\t\t}\n\t}", "public void detectCollisionPerBullet() {\n//\t\tfor (Bullet bullet : bulletList) {\n\t\tfor (int i=0; i<bulletList.size(); i++) {\n\t\t\tBullet bullet = bulletList.get(i);\n\t\t\tif (bullet != null && !bullet.isDead()) {\n\t\t\t\tdetectCollision(bullet);\n\t\t\t}\n\t\t}\n\t}", "public void tick() {\n boolean shouldHaltAfterTick = false;\n\n List<Pair<Movement, Bullet>> movements = new ArrayList<>();\n\n //Bullets on nodes\n Map<Coordinate, Bullet> capturedBullets = new HashMap<>(bullets);\n capturedBullets.keySet().retainAll(nodes.keySet());\n\n //Bullets not on nodes\n Map<Coordinate, Bullet> freeBullets = new HashMap<>(bullets);\n freeBullets.keySet().removeAll(capturedBullets.keySet());\n\n //Generate movements for free bullets\n for (Map.Entry<Coordinate, Bullet> entry : freeBullets.entrySet()) {\n Bullet bullet = entry.getValue();\n Coordinate coord = entry.getKey();\n Coordinate newCoord = entry.getKey().plus(bullet.getDirection()).wrap(width, height);\n movements.add(new Pair<>(new Movement(coord, newCoord), bullet));\n }\n\n //Update captured bullets\n for (Map.Entry<Coordinate, Bullet> entry : capturedBullets.entrySet()) {\n Coordinate coordinate = entry.getKey();\n INode node = nodes.get(coordinate);\n\n // special case\n if (node instanceof NodeHalt)\n shouldHaltAfterTick = true;\n\n //TODO this brings great shame onto my family\n Direction bulletDirection = entry.getValue().getDirection();\n Direction dir = Direction.UP;\n while (dir != node.getRotation()) {\n dir = dir.clockwise();\n bulletDirection = bulletDirection.antiClockwise();\n }\n Bullet bullet = new Bullet(bulletDirection, entry.getValue().getValue());\n\n Map<Direction, BigInteger> bulletParams = node.run(bullet);\n\n for (Map.Entry<Direction, BigInteger> newBulletEntry : bulletParams.entrySet()) {\n //TODO this too\n bulletDirection = newBulletEntry.getKey();\n dir = Direction.UP;\n while (dir != node.getRotation()) {\n dir = dir.clockwise();\n bulletDirection = bulletDirection.clockwise();\n }\n\n Bullet newBullet = new Bullet(bulletDirection, newBulletEntry.getValue());\n Coordinate newCoordinate = coordinate.plus(newBullet.getDirection()).wrap(width, height);\n Movement movement = new Movement(coordinate, newCoordinate);\n movements.add(new Pair<>(movement, newBullet));\n }\n }\n\n //Remove swapping bullets\n List<Movement> read = new ArrayList<>();\n Set<Coordinate> toDelete = new HashSet<>();\n for (Pair<Movement, Bullet> pair : movements) {\n Movement movement = pair.getKey();\n Coordinate from = movement.getFrom();\n Coordinate to = movement.getTo();\n boolean foundSwaps = read.stream().anyMatch(other -> from.equals(other.getTo()) && to.equals(other.getFrom()));\n if (foundSwaps) {\n toDelete.add(from);\n toDelete.add(to);\n }\n read.add(movement);\n }\n movements.removeIf(pair -> toDelete.contains(pair.getKey().getFrom()) || toDelete.contains(pair.getKey().getTo()));\n\n //Remove bullets that end in the same place\n read.clear();\n toDelete.clear();\n for (Pair<Movement, Bullet> pair : movements) {\n Movement movement = pair.getKey();\n Coordinate to = movement.getTo();\n boolean foundSameFinal = read.stream().anyMatch(other -> to.equals(other.getTo()));\n if (foundSameFinal) {\n toDelete.add(to);\n }\n read.add(movement);\n }\n movements.removeIf(pair -> toDelete.contains(pair.getKey().getTo()));\n\n //Move bullets\n Map<Coordinate, Bullet> newBullets = new HashMap<>();\n for (Pair<Movement, Bullet> pair : movements) {\n Movement movement = pair.getKey();\n Bullet bullet = pair.getValue();\n newBullets.put(movement.getTo(), bullet);\n }\n\n bullets.clear();\n bullets.putAll(newBullets);\n\n if (shouldHaltAfterTick)\n halt();\n }", "public void shoot(){\r\n \tgame.pending.add(new Bullet(this, bulletlife));\t\r\n }", "public void shoot() {\n\n //DOWN\n if (moveDown && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveDown && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n } else if (moveDown && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveDown && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //UP\n else if (moveUp && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveUp && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //LEFT \n else if (moveLeft && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n }\n\n //RIGHT\n else if (moveRight && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveRight && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } //STANDING STILL\n \n \n if (shootDown && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), 5 * this.getBulletSpeedMulti());\n } else if (shootUp && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), -5 * this.getBulletSpeedMulti());\n\n } else if (shootLeft && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n } else if (shootRight && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n }\n }", "public Image getBulletImg(){ \n return SpriteSheet.playerProjectileSprites[this.frameNumber]; \n }", "public void shoot(ArrayList<Bullet> alienBullets)\r\n\t{\r\n\t\t//do nothing usually\r\n\t}", "public abstract ArrayList<GameObject> fight();", "private void checkBulletWallCollision() {\n\t\tArrayList<Missile> heroMissiles = hero.getMissiles();\n\t\tArrayList<Missile> hero2Missile = computer.getMissiles();\n\n\t\tdouble x1Wall, y1Wall, x2Wall, y2Wall, x1Bullet, y1Bullet, x2Bullet, y2Bullet;\n\t\tboolean left, right, top, bottom;\n\n\t\t// tank 1 bullets and wall collision\n\t\tfor (int i = 0; i < heroMissiles.size(); i++) {\n\t\t\tMissile m1 = heroMissiles.get(i);\n\t\t\tif (m1 == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tRectangle r2b = m1.getBounds();\n\t\t\tfor (int j = 0; j < wallArray.size(); j++) {\n\t\t\t\tWall w1 = wallArray.get(j);\n\t\t\t\tRectangle r2w = w1.getBounds();\n\n\t\t\t\tx1Wall = r2w.getMinX();\n\t\t\t\ty1Wall = r2w.getMinY();\n\t\t\t\tx2Wall = r2w.getMaxX();\n\t\t\t\ty2Wall = r2w.getMaxY();\n\n\t\t\t\tx1Bullet = r2b.getMinX();\n\t\t\t\ty1Bullet = r2b.getMinY();\n\t\t\t\tx2Bullet = r2b.getMaxX();\n\t\t\t\ty2Bullet = r2b.getMaxY();\n\n\t\t\t\tleft = (x2Bullet < x1Wall);\n\t\t\t\tright = (x2Wall < x1Bullet);\n\t\t\t\ttop = (y2Bullet < y1Wall);\n\t\t\t\tbottom = (y2Wall < y1Bullet);\n\n\t\t\t\tif ((left && !right && top && !bottom) || (!left && right && top && !bottom)\n\t\t\t\t\t\t|| (left && !right && !top && bottom) || (!left && right && !top && bottom)) {\n\t\t\t\t} else if (left && !right && !top && !bottom) {\n\t\t\t\t\tdouble leftDist = x1Wall - x2Bullet;\n\t\t\t\t\tif (leftDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && right && !top && !bottom) {\n\t\t\t\t\tdouble rightDist = x1Bullet - x2Wall;\n\t\t\t\t\tif (rightDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && top && !bottom) {\n\t\t\t\t\tdouble topDist = y1Wall - y2Bullet;\n\t\t\t\t\tif (topDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && !top && bottom) {\n\t\t\t\t\tdouble bottomDist = y1Bullet - y2Wall;\n\t\t\t\t\tif (bottomDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// tank 2 bullets and wall collision\n\t\tfor (int i = 0; i < hero2Missile.size(); i++) {\n\t\t\tMissile m1 = hero2Missile.get(i);\n\t\t\tif (m1 == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tRectangle r2b = m1.getBounds();\n\t\t\tfor (int j = 0; j < wallArray.size(); j++) {\n\t\t\t\tWall w1 = wallArray.get(j);\n\t\t\t\tRectangle r2w = w1.getBounds();\n\n\t\t\t\tx1Wall = r2w.getMinX();\n\t\t\t\ty1Wall = r2w.getMinY();\n\t\t\t\tx2Wall = r2w.getMaxX();\n\t\t\t\ty2Wall = r2w.getMaxY();\n\n\t\t\t\tx1Bullet = r2b.getMinX();\n\t\t\t\ty1Bullet = r2b.getMinY();\n\t\t\t\tx2Bullet = r2b.getMaxX();\n\t\t\t\ty2Bullet = r2b.getMaxY();\n\n\t\t\t\tleft = (x2Bullet < x1Wall);\n\t\t\t\tright = (x2Wall < x1Bullet);\n\t\t\t\ttop = (y2Bullet < y1Wall);\n\t\t\t\tbottom = (y2Wall < y1Bullet);\n\n\t\t\t\tif ((left && !right && top && !bottom) || (!left && right && top && !bottom)\n\t\t\t\t\t\t|| (left && !right && !top && bottom) || (!left && right && !top && bottom)) {\n\t\t\t\t} else if (left && !right && !top && !bottom) {\n\t\t\t\t\tdouble leftDist = x1Wall - x2Bullet;\n\t\t\t\t\tif (leftDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && right && !top && !bottom) {\n\t\t\t\t\tdouble rightDist = x1Bullet - x2Wall;\n\t\t\t\t\tif (rightDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && top && !bottom) {\n\t\t\t\t\tdouble topDist = y1Wall - y2Bullet;\n\t\t\t\t\tif (topDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && !top && bottom) {\n\t\t\t\t\tdouble bottomDist = y1Bullet - y2Wall;\n\t\t\t\t\tif (bottomDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void shoot()\n\t{\n\t\t//Speed movement of the bullet\n\t\tint speed = 0;\n\t\t//Damage dealt by the bullet\n\t\tint damage = 0;\n\t\t//Angle used to shoot. Used only by the vulcan weapon\n\t\tdouble angle = 0;\n\t\t\n\t\tif(weapon == PROTON_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 10;\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30, speed, damage, 0);\n\t\t\tSoundManager.getInstance().playSound(\"protonshoot\", false);\n\t\t}\t\n\t\telse if(weapon == VULCAN_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 2;\n\t\t\tangle = 10;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getThreeBullets(getX() +27, getX()+37, getX()+47,\n\t\t\t\t\tgetY()-this.getHeight()+30, speed, damage, (int)angle);\n\t\t\tSoundManager.getInstance().playSound(\"vulcanshoot\", false);\n\t\t}\t\t\n\t\telse\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 15;\n\t\t\tangle = 0;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30,\n\t\t\t\t\t\tspeed, damage, angle);\n\t\t\tSoundManager.getInstance().playSound(\"gammashoot\", false);\n\t\t}\t\n\t}", "void fireBullet() {\n\r\n\t\tif (count > 0)\r\n\t\t\treturn;\r\n\t\t// ...and if all the bullets aren't currently in use...\r\n\t\tint slot = getAvailableBullet();\r\n\t\tif (slot < 0)\r\n\t\t\treturn;\r\n\t\t// ...then launch a new bullet\r\n\t\tbullets[slot].setLocation(locX, locY);\r\n\t\tbullets[slot].setDirection(angle);\r\n\t\tbullets[slot].reset();\r\n\t\t// Reset the timer\r\n\t\tcount = RELOAD;\r\n\t}", "private void shootMove() {\n for (int i = 0; i < fires.size(); i++) {\n //子弹往上移动\n fires.get(i).move();\n //注意这里remove需要放在下面\n if (fires.get(i).y < -1000) {\n fires.remove(fires.get(i));\n }\n }\n\n }", "public void update(){\n\n // advance player and entity loader\n player.advance();\n entityloader.advance();\n\n // if the player is shooting\n if (player.isShooting){\n player.nextBullet--;\n if (player.nextBullet < 0){\n audioloader.play(\"plshoot\"); // play audio\n for (int i = -1; i <= 1; ++i){\n playerBullets.add(new Projectile<RectangleHitbox>(player.getCenterX(), player.getCenterY(), 500, 0, 270 + 2.5 * i, 0, 0, false, 1.5, true, 0,\n player.bulletSprite.getRectangleHitbox(player.bulletSize), player.bulletSprite.img.getScaledInstance(player.bulletSize, player.bulletSize, 1), 0, 0, this));\n } \n player.nextBullet = (int)(FPS / player.bulletsPerSecond);\n }\n }\n\n // Player bullets\n for (Projectile<RectangleHitbox> bullet : playerBullets){\n if (bullet.advance()){\n nextPlayerBullets.add(bullet);\n }\n }\n playerBullets.clear();\n for (Projectile<RectangleHitbox> bullet : nextPlayerBullets){\n playerBullets.add(bullet);\n }\n nextPlayerBullets.clear();\n\n // Circle Enemies\n for (Projectile<CircleHitbox> enemy : circleEnemies){\n if (player.invulnerableTime <= 0 && enemy.getHitbox().intersects(player.getHitbox())){\n loseLife();\n }\n if (!enemy.isBullet){ // if enemy is not a bullet, check if it is being hit by player bullets\n boolean hit = false; // each enemy can only be hit once each frame\n for (Projectile<RectangleHitbox> bullet : playerBullets){\n hit |= bullet.getHitbox().intersects(enemy.getHitbox());\n if (hit)\n break;\n }\n if (hit){\n enemy.damageTaken += enemy.originalLifetime * enemy.percentDamage;\n }\n }\n if (enemy.advance()){ // if enemy lifetime is not up\n nextCircleEnemies.add(enemy); // add to next frame\n } else if (enemy.id != 0) { // if lifetime is up\n // tell entity loader enemy with that id is removed\n entityloader.setUnactive(enemy.id);\n }\n }\n circleEnemies.clear();\n for (Projectile<CircleHitbox> enemy : nextCircleEnemies){ // swap nextCircleEnemies with circleEnemies\n circleEnemies.add(enemy);\n }\n nextCircleEnemies.clear();\n\n // Rectangle Enemies\n for (Projectile<RectangleHitbox> enemy : rectangleEnemies){\n if (player.invulnerableTime <= 0 && enemy.getHitbox().intersects(player.getHitbox())){\n loseLife();\n }\n if (enemy.advance()){ // if enemy lifetime is not up\n nextRectangleEnemies.add(enemy); // add to next frame\n } else if (enemy.id != 0) { // if lifetime is up\n // tell entity loader enemy with that id is removed\n entityloader.setUnactive(enemy.id);\n }\n }\n rectangleEnemies.clear();\n for (Projectile<RectangleHitbox> enemy : nextRectangleEnemies){ // swap nextRectangleEnemies with rectangleEnemies\n rectangleEnemies.add(enemy);\n }\n nextRectangleEnemies.clear();\n\n }", "public void update() {\n if (player.getPlaying()) { //if player alive\n bg.update(); //update background\n player.update(); //update player\n //player collision detection, if player hits any baddies or their bullets is playing sets to false\n for (int i = 0; i < gargants.size(); i++) {\n if (collision(gargants.get(i), player)) {\n //gargants.remove(i);\n player.setPlaying(false);\n\n }\n for (int j = 0; j < demons.size(); j++) {\n if (collision(demons.get(j), player)) {\n //demons.remove(j);\n player.setPlaying(false);\n\n }\n for (int k = 0; k < dragons.size(); k++) {\n if (collision(dragons.get(k), player)) {\n //dragons.remove(k);\n player.setPlaying(false);\n\n }\n for (int l = 0; l < demonShots.size(); l++) {\n if (collision(demonShots.get(l), player)) {\n //demonShots.remove(l);\n player.setPlaying(false);\n\n }\n\n }\n }\n }\n }\n\n for (int i = 0; i < bullets.size(); i++) { //for each bullet\n bullets.get(i).update(); //update them\n if (bullets.get(i).getX() > WIDTH + 10) {\n bullets.remove(i); //if off screen delete\n }\n }\n\n for (int i = 0; i < demonShots.size(); i++) { // for each demon bullet\n demonShots.get(i).update(); //update them\n if (demonShots.get(i).getX() < -100) {\n demonShots.remove(i); //if off screen delete\n }\n }\n\n long gargantElapseTime = (System.nanoTime() - gargantStartTime) / 1000000;\n if (gargantElapseTime > (1200 - player.getScore() / 3)) { //as score increases, more will spawn\n gargants.add(new Gargant(BitmapFactory.decodeResource(getResources(), R.drawable.gargant), WIDTH + 10, (int) (rand.nextDouble() * (HEIGHT)), 64, 64, 8));\n if (gargants.size() >= 13) { //limit amount of this enemy to 13\n gargants.remove(gargants.size() - 1);\n }\n gargantStartTime = System.nanoTime();\n }\n for (int i = 0; i < gargants.size(); i++) { // for each gargant\n gargants.get(i).update(); //update them\n for (int j = 0; j < bullets.size(); j++) {\n if (collision(gargants.get(i), bullets.get(j))) {\n //when shot remove enemy and bullet\n gargants.remove(i);\n bullets.remove(j);\n player.addScore(10); //10 score for these guys\n break;\n }\n }\n if (gargants.get(i).getX() < -100) {\n gargants.remove(i); //if off screen remove\n }\n }\n\n if (level >= 3) { //only spawn demon above level 3\n long demonElapseTime = (System.nanoTime() - demonStartTime) / 1000000;\n if (demonElapseTime > (12000 - player.getScore() / 3)) { //as score increases, more will spawn\n demons.add(new Demon(BitmapFactory.decodeResource(getResources(), R.drawable.demon), WIDTH + 10, (int) (rand.nextDouble() * (HEIGHT)), 64, 64, 8));\n if (demons.size() >= 10) { //limit amount of this enemy to 10\n demons.remove(demons.size() - 1);\n }\n demonStartTime = System.nanoTime();\n }\n for (int i = 0; i < demons.size(); i++) { //for each demon\n demons.get(i).update(); //update them\n int n = rand.nextInt(1001); //random int between 1 and 1000\n if (n > 980) { //if random int > 980 shoot demon bullet\n demonShots.add(new HellFire(BitmapFactory.decodeResource(getResources(), R.drawable.hellfire_0), demons.get(i).getX(), demons.get(i).getY(), 64, 64));\n }\n for (int j = 0; j < bullets.size(); j++) {\n if (collision(demons.get(i), bullets.get(j))) {\n demonHitCount++; //each hit with bullet increases hitcount\n bullets.remove(j);\n if (demonHitCount >= 10) { //when hit more than 10 times it dies\n demonHitCount = 0;\n demons.remove(i);\n bullets.remove(j);\n player.addScore(100); //100 score for these big bois\n }\n }\n }\n if (demons.get(i).getX() < -100) {\n demons.remove(i); //if off screen delete\n }\n }\n }\n\n\n if (level >= 2) { //only spawn dragon above level 3\n long dragonElapseTime = (System.nanoTime() - dragonStartTime) / 1000000;\n if (dragonElapseTime > (6000 - player.getScore() / 3)) { //as score increases, more will spawn\n dragons.add(new Dragon(BitmapFactory.decodeResource(getResources(), R.drawable.dragon), WIDTH + 10, (int) (rand.nextDouble() * (HEIGHT)), 128, 128, 8));\n if (dragons.size() >= 5) { //dragons limitted to only 5\n dragons.remove(dragons.size() - 1);\n }\n dragonStartTime = System.nanoTime();\n }\n for (int i = 0; i < dragons.size(); i++) {\n dragons.get(i).update();\n for (int j = 0; j < bullets.size(); j++) {\n if (collision(dragons.get(i), bullets.get(j))) {\n dragonHitCount++; //if hit increase hitcount\n bullets.remove(j);\n if (dragonHitCount >= 4) { //when hit 4 times it dies\n dragonHitCount = 0;\n dragons.remove(i);\n bullets.remove(j);\n player.addScore(25); //25 score for dragons\n }\n break;\n }\n }\n if (dragons.get(i).getX() < -100) {\n dragons.remove(i); //when off screen remove\n }\n }\n }\n }\n }", "public void onShootPressed(){\n if(player.getRechargeTimer()<=0) {\n playShootingSound();\n Bullet bullet = new Bullet();\n player.setRechargeTimer(shotRechargeTime);\n bullet.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet.setRotation(player.getRotation());\n bullet.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet.getRotation() - 90))));\n if(player.getTripleShotTimer()>0){\n Bullet bullet1 = new Bullet();\n bullet1.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet1.setRotation(player.getRotation()+15);\n bullet1.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet1.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet1.getRotation() - 90))));\n Bullet bullet2 = new Bullet();\n bullet2.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet2.setRotation(player.getRotation()-15);\n bullet2.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet2.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet2.getRotation() - 90))));\n }\n }\n }", "private void checkForBulletCollisions() {\r\n\t\tbulletMoveOffScreen();\r\n\t\tbulletCollisionWithObject();\r\n\t}", "public M_Bullet shoot() {\n Point leftCorner = this.getLocation();\n // get the center of the character\n int x = leftCorner.x;\n int y = leftCorner.y;\n Point dim = this.getDimensions();\n int h = dim.y;\n int w = dim.x;\n h = h / 2;\n w = w / 2;\n Point center = new Point(x + w, y + h);\n // get the velocity for the bullet\n Point vel = new Point(this.getDirection() * 3, 0);\n // set the enemy's shot cooldown to its shot interval.\n setShotCooldown(getShotInterval());\n // return the new bullet\n return new M_Bullet(center, this.getStrength(), vel, true);\n }", "protected void cleanBullets() {\n Set<Bullet> recyclable = new HashSet<Bullet>();\n for (Bullet bullet : this.bullets) {\n bullet.update();\n if (bullet.getPositionY() < SEPARATION_LINE_HEIGHT\n || bullet.getPositionY() > this.height)\n recyclable.add(bullet);\n }\n this.bullets.removeAll(recyclable);\n //BulletPool.recycle(recyclable);\n }", "public void update(float dt) {\n\t\tIterator<Bullet> iter = bullets.iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\tBullet b = iter.next();\n\t\t\t\n\t\t\tb.update(dt);\n\t\t\tif(b.getY() > 480 - bullet_size_h) iter.remove();\n\t\t}\n\t}", "public void enemyShoot()\r\n\t{\r\n\t\tfor (Enemy enemies : enemy)\r\n\t\t{\r\n\t\t\tif (enemies.getHasFired())\r\n\t\t\t{\r\n\t\t\t\tBullet enemyPew = enemies.shoot();\r\n\t\t\t\tif (enemyPew != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.add(enemyPew);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void moveBullet() {\r\n\t\tif(bullet != null) {\r\n\t\t\tbullet.move(bulletVelocity, 0);\r\n\t\t}\r\n\t}", "private void multiBulletFire() {\n\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 20, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) - 10, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 50, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t// Bullet //\r\n\t\t////////////\r\n\t\tArrayList msDOWN = GameCraft.getBulletDOWN();\r\n\t\tfor (int i = 0; i < msDOWN.size(); i++) {\r\n\t\t\tBulletDOWN m = (BulletDOWN) msDOWN.get(i);\r\n\t\t\tif (m.isVisible()) \r\n\t\t\t\tm.moveDOWN();\r\n\t\t\telse msDOWN.remove(i);\r\n\t\t}\r\n\r\n\t\tArrayList msUP = GameCraft.getBulletUP();\r\n\t\tfor (int i = 0; i < msUP.size(); i++) {\r\n\t\t\tBulletUP m = (BulletUP) msUP.get(i);\r\n\t\t\tif (m.isVisible()) \r\n\t\t\t\tm.moveUP();\r\n\t\t\telse msUP.remove(i);\r\n\t\t}\r\n\r\n\t\tArrayList msLEFT = GameCraft.getBulletLEFT();\r\n\t\tfor (int i = 0; i < msLEFT.size(); i++) {\r\n\t\t\tBulletLEFT m = (BulletLEFT) msLEFT.get(i);\r\n\t\t\tif (m.isVisible()) \r\n\t\t\t\tm.moveLEFT();\r\n\t\t\telse msLEFT.remove(i);\r\n\t\t}\r\n\r\n\t\tArrayList msRIGHT = GameCraft.getBulletRIGHT();\r\n\t\tfor (int i = 0; i < msRIGHT.size(); i++) {\r\n\t\t\tBulletRIGHT m = (BulletRIGHT) msRIGHT.get(i);\r\n\t\t\tif (m.isVisible()) \r\n\t\t\t\tm.moveRIGHT();\r\n\t\t\telse msRIGHT.remove(i);\r\n\t\t}\r\n\t\t\r\n\t\tArrayList msEnemys = GameCraft.getEnemys();\r\n\t\tif(moveamount >= 150){\r\n\t\t\tfor (int i = 0; i < msEnemys.size(); i++) {\r\n\t\t\t\tEnemys m = (Enemys) msEnemys.get(i);\r\n\t\t\t\tif (m.isVisible()){\r\n\t\t\t\t\tm.moveMe();\r\n\t\t\t\t}else{ \r\n\t\t\t\t\tmsEnemys.remove(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmoveamount = 0;\r\n\t\t}\r\n\t\tmoveamount++;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfor(int a = 0; a < msDOWN.size(); a++){\r\n\t\t\tfor(int b = 0; b < msEnemys.size(); b++){\r\n\t\t\t\tBulletDOWN bdown = (BulletDOWN) msDOWN.get(a);\r\n\t\t\t\tEnemys enemy = (Enemys) msEnemys.get(b);\r\n\t\t\t\tint xbul = bdown.getX();\r\n\t\t\t\tint ybul = bdown.getY();\r\n\t\t\t\tint xenemy = enemy.getX();\r\n\t\t\t\tint yenemy = enemy.getY();\r\n\t\t\t\t\r\n\t\t\t\tif((xbul - xenemy < 20 && xbul - xenemy > -20) && ( ybul - yenemy < 20 && xbul - yenemy > -20)){\r\n\t\t\t\t\tenemy.visible = false;\r\n\t\t\t\t\tscoreamount++;\r\n\t\t\t\t\t//GameCraft.SpawnEnemys();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int a = 0; a < msRIGHT.size(); a++){\r\n\t\t\tfor(int b = 0; b < msEnemys.size(); b++){\r\n\t\t\t\tBulletRIGHT bright = (BulletRIGHT) msRIGHT.get(a);\r\n\t\t\t\tEnemys enemy = (Enemys) msEnemys.get(b);\r\n\t\t\t\tint xbul = bright.getX();\r\n\t\t\t\tint ybul = bright.getY();\r\n\t\t\t\tint xenemy = enemy.getX();\r\n\t\t\t\tint yenemy = enemy.getY();\r\n\t\t\t\t\r\n\t\t\t\tif((xbul - xenemy < 20 && xbul - xenemy > -20) && ( ybul - yenemy < 20 && xbul - yenemy > -20)){\r\n\t\t\t\t\tenemy.visible = false;\r\n\t\t\t\t\tscoreamount++;\r\n\t\t\t\t\t//GameCraft.SpawnEnemys();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int a = 0; a < msLEFT.size(); a++){\r\n\t\t\tfor(int b = 0; b < msEnemys.size(); b++){\r\n\t\t\t\tBulletLEFT bleft = (BulletLEFT) msLEFT.get(a);\r\n\t\t\t\tEnemys enemy = (Enemys) msEnemys.get(b);\r\n\t\t\t\tint xbul = bleft.getX();\r\n\t\t\t\tint ybul = bleft.getY();\r\n\t\t\t\tint xenemy = enemy.getX();\r\n\t\t\t\tint yenemy = enemy.getY();\r\n\t\t\t\t\r\n\t\t\t\tif((xbul - xenemy < 20 && xbul - xenemy > -20) && ( ybul - yenemy < 20 && xbul - yenemy > -20)){\r\n\t\t\t\t\tenemy.visible = false;\r\n\t\t\t\t\tscoreamount++;\r\n\t\t\t\t\t//GameCraft.SpawnEnemys();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor(int a = 0; a < msUP.size(); a++){\r\n\t\t\tfor(int b = 0; b < msEnemys.size(); b++){\r\n\t\t\t\tBulletUP bup = (BulletUP) msUP.get(a);\r\n\t\t\t\tEnemys enemy = (Enemys) msEnemys.get(b);\r\n\t\t\t\tint xbul = bup.getX();\r\n\t\t\t\tint ybul = bup.getY();\r\n\t\t\t\tint xenemy = enemy.getX();\r\n\t\t\t\tint yenemy = enemy.getY();\r\n\t\t\t\t\r\n\t\t\t\tif((xbul - xenemy < 20 && xbul - xenemy > -20) && ( ybul - yenemy < 20 && xbul - yenemy > -20)){\r\n\t\t\t\t\tenemy.visible = false;\r\n\t\t\t\t\tscoreamount++;\r\n\t\t\t\t\t//GameCraft.SpawnEnemys();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tEnemy 500 500\r\n\t\tBullet 510 510\r\n\t\t510 < 500 && 480 < 500 || 500 > 510 && 500 > 480\r\n\t\t500 > 320 && 500 > 380\r\n\t\t\r\n\t\t*/\r\n\t\t\r\n\t\t////////////\r\n\t\t// Bullet //\r\n\t\t////////////\r\n\t\tGameCraft.move();\r\n\t\trepaint(); \r\n\t}", "public void moveBullets() {\n bController.increment();\n }", "public void shoot(int bulletLeft) {\n float xValue = canon.getX();\n float yValue = canon.getY();\n bullets.get(bulletLeft).setVisibility(View.VISIBLE);\n shootingMotion(bullets.get(bulletLeft), xValue, yValue);\n\n }", "public void draw() {\n if (you.health() > 0 | lives >= 0) {\n if (aliens.isEmpty()) {\n win();\n }\n if (you.health() <= 0 & lives >= 0) {\n die();\n }\n \n you.act();\n \n if (fire & you.getWeapon() == Weapon.WEAPON_GOD) {\n for (Dot d : you.fire()) {\n this.moreBullets(d);\n }\n }\n for (Dot d : lazers){d.update(); d.draw(page);}\n for (Dot d : bullets) {d.update(); d.draw(page);}\n for (Alien loop : aliens) {\n loop.act();\n if (Math.random() > .993) {\n for (Dot d : loop.fire())\n lazers.add(d);\n }\n loop.draw(page);\n }\n \n if (collisionCheck() | fl) {\n flash();\n fl = !fl;\n }\n \n int index1 = 0, index2 = 0, size1 = bullets.size(), size2 = aliens.size();\n for (Alien al : aliens) {\n index2 = 0;\n while (index2 < size1) {\n if (al.collide(bullets.get(index2))) {\n bullets.remove(index2);\n size1--;\n score += 10;\n }\n index2++;\n }\n }\n\n index1 = 0; size1 = aliens.size();\n while (index1 < size1) {\n if (aliens.get(index1).health() <= 0) {\n aliens.remove(index1);\n index1--;\n size1--;\n score += 25;\n }\n index1++;\n }\n \n for (Dot d : lazers) {\n if (d.getX() < 0 | d.getX() > 512 | d.getY() < 0 | d.getY() > 496) {\n d.deactivate();\n }\n }\n index1 = 0; size1 = lazers.size();\n while (index1 < size1) {\n if (!lazers.get(index1).isActive()) {\n lazers.remove(index1);\n size1--;\n index1--;\n }\n index1++;\n }\n \n for (Dot d : bullets) {\n if (d.getX() < 0 | d.getX() > 512 | d.getY() < 0 | d.getY() > 512) {\n d.deactivate();\n }\n }\n index1 = 0; size1 = bullets.size();\n while (index1 < size1) {\n if (!bullets.get(index1).isActive()) {\n bullets.remove(index1);\n size1--;\n index1--;\n }\n index1++;\n }\n \n for (int i = 0; i < lives; i++) {\n page.drawImage(you.getImage(), i*20, 496, 16, 16, null);\n }\n page.setColor(Color.white);\n page.drawString(\"\" + you.health(), 420, 509);\n page.drawString(\"\" + score, 450, 509);\n you.draw(page);\n }\n else {\n lose();\n }\n }", "public void emptyBullets() {\n for(int i = 0; i < bossBullets.size(); i++){\n Bullet tempBullet = bossBullets.get(i);\n bossBullets.remove(i);\n }\n }", "@Override\r\n\tpublic void update() {\n\t\tAlly.update();\r\n\t\tEnemy.update();\r\n\t\tfor(int i = 0 ; i < GroundList.size();i++){\r\n\t\t\tif(GroundList.get(i).kill) {\r\n\t\t\t\tGroundList.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < BarelList.size(); i++) {\r\n\t\t\tif(BarelList.get(i).kill) {\r\n\t\t\t\tBarelList.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < WoodList.size(); i++) {\r\n\t\t\tif(WoodList.get(i).kill) {\r\n\t\t\t\tWoodList.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < FireBallList.size(); i++) {\r\n\t\t\tif(FireBallList.get(i).kill) {\r\n\t\t\t\tFireBallList.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < BulletList.size(); i++) {\r\n\t\t\tif(BulletList.get(i).kill) {\r\n\t\t\t\tBulletList.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0 ; i < GroundList.size();i++){\r\n\t\t\tGroundList.get(i).update();\r\n\t\t}\r\n\t\tfor(int i = 0 ; i < BarelList.size(); i++) {\r\n\t\t\tBarelList.get(i).update();\r\n\t\t}\r\n\t\tfor(int i = 0; i < BulletList.size(); i++) {\r\n\t\t\tBulletList.get(i).update();\r\n\t\t}\r\n\t\tfor(int i = 0; i < FireBallList.size(); i++) {\r\n\t\t\tFireBallList.get(i).update();\r\n\t\t}\r\n\t\tfor(int i = 0; i < WoodList.size(); i++) {\r\n\t\t\tWoodList.get(i).update();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif(GamePanel.updateTimes%60 == 0) {\r\n\t\t\tEnemy.PushEntity(2, new Vector2f(width*1/2, height/4),enemy);\r\n\t\t}\r\n\t\tfor(int i = 0; i < AllyDeadList.size(); i++) {\r\n\t\t\tAlly.entityList.remove(AllyDeadList.get(i)-i);\r\n\t\t}\r\n\t\tfor(int i = 0; i < EnemyDeadList.size(); i++) {\r\n\t\t\tEnemy.entityList.remove(EnemyDeadList.get(i)-i);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tAllyDeadList.clear();\r\n\t\tEnemyDeadList.clear();\r\n\t\tfor(int i = 0; i < Ally.entityList.size(); i++) {\r\n\t\t\tif(Ally.entityList.get(i).returnHealth() <= 0) {\r\n\t\t\t\tAllyDeadList.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < Enemy.entityList.size(); i++) {\r\n\t\t\tif(Enemy.entityList.get(i).returnHealth() <= 0) {\r\n\t\t\t\tEnemyDeadList.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void speedBulletFire() {\n\n\t\tbulletArrayList.add(\n\t\t\t\tnew Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, \"Yellow\"));\n\n\t\tfor (int i = 0; i < bulletArrayList.size(); i++) {\n\t\t\tbulletArrayList.get(i).setSpeed(5);\n\t\t}\n\t}", "public Bullet getBullet() {\n\t\treturn bullet;\n\t}", "public void fireBullet(int direction , int posX, int posY ){\n if ( clockBullet.getElapsedTime().asMilliseconds() > 100 ){\n int lowestbulletNo = 10;\n for( int i = 9; i > 0; i-- ){\n if ( bulletSpace.get(i).isEnabled() == false){\n lowestbulletNo = i;//find the first bullet in the gun barrol\n }\n }\n\n if ( lowestbulletNo < 10 ){\n bulletSpace.get(lowestbulletNo).setDirection(direction);\n bulletSpace.get(lowestbulletNo).setDistance(0);\n bulletSpace.get(lowestbulletNo).setPosX(posX - map.getX()) ;\n bulletSpace.get(lowestbulletNo).setPosY(posY - map.getY()) ;\n bulletSpace.get(lowestbulletNo).enabled(true);\n bulletSpace.get(lowestbulletNo).setRotation(direction+1);\n }\n }\n clockBullet.restart();\n }", "public void fireBullet(){\n\t\tBullet bullet = new Bullet(ship);\n\t\tbullets.add(bullet);\n\t\tsoundMan.playBulletSound();\n\t}", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tprivate void drawListEntity(ArrayList list) {\n\t\tArrayList listRemove = new ArrayList();\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tEntity ent = (Entity) list.get(i);\n\t\t\t\n\t\t\tdrawEntity(ent);\n\t\t\t\n\t\t\t// if the entity is still in the screen, update its position\n\t\t\tif (ent.continueDrawing()) {\n\t\t\t\tif (ent instanceof Bullet) {\n\t\t\t\t\tif (((Bullet) ent).getName().equals(\"bullet\")) {\n\t\t\t\t\t\tent.setX(ent.getX() + ((Bullet) ent).getXChange());\n\t\t\t\t\t\tent.setY(ent.getY() + ((Bullet) ent).getYChange());\n\t\t\t\t\t}\n\t\t\t\t\tif (((Bullet) ent).getName().equals(\"enemy_bullet\")) {\n\t\t\t\t\t\tent.setY(ent.getY() + 8);\n\t\t\t\t\t}\n\t\t\t\t\tif (((Bullet) ent).getName().equals(\"laser\")) {\n\t\t\t\t\t\tlistRemove.add(list.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tif (((Bullet) ent).getName().equals(\"boss_bullet\")) {\n\t\t\t\t\t\tent.setX(ent.getX() + ((Bullet) ent).getXChange());\n\t\t\t\t\t\tent.setY(ent.getY() + ((Bullet) ent).getYChange());\n\t\t\t\t\t}\n\t\t\t\t} else if (ent instanceof Enemy) {\n\t\t\t\t\tif (((Enemy) ent).getName().equals(\"green_box\")) {\n\t\t\t\t\t\tent.setY(ent.getY() + 5);\n\t\t\t\t\t}\n\t\t\t\t\tif (((Enemy) ent).getName().equals(\"red_box\")) {\n\t\t\t\t\t\tent.setY(ent.getY() + 3);\n\t\t\t\t\t}\n\t\t\t\t\tif (((Enemy) ent).getName().equals(\"boss\") && bossExplosionNum == 0) {\n\t\t\t\t\t\tif (ent.getX() <= 0)\n\t\t\t\t\t\t\tbossMovement = 3;\n\t\t\t\t\t\tif (ent.getX() >= displayWidth - ((Enemy) ent).getSprite().getWidth())\n\t\t\t\t\t\t\tbossMovement = -3;\n\t\t\t\t\t\tif (ent.getY() <= 30)\n\t\t\t\t\t\t\tent.setY(ent.getY() + 1);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tent.setX(ent.getX() + bossMovement);\n\t\t\t\t\t}\n\t\t\t\t} else if (ent instanceof Explosion) {\n\t\t\t\t\tif (((Explosion) ent).getName().equals(\"player_hit\")) {\n\t\t\t\t\t\tent.setX(((Explosion) ent).getEntity().getX());\n\t\t\t\t\t\tent.setY(((Explosion) ent).getEntity().getY());\n\t\t\t\t\t} else if (((Explosion) ent).getName().equals(\"enemy_hit\")) {\n\t\t\t\t\t\tent.setX(((Explosion) ent).getEntity().getX() - 5);\n\t\t\t\t\t\tent.setY(((Explosion) ent).getEntity().getY() - 5);\n\t\t\t\t\t}\n\t\t\t\t} else if (ent instanceof Powerup) {\n\t\t\t\t\tent.setY(ent.getY() + 4);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// else if the entity is outside of the screen, remove it\n\t\t\telse {\n\t\t\t\tlistRemove.add(list.get(i));\n\t\t\t\t\n\t\t\t\t// handles the boss explosions\n\t\t\t\thandleBossExplosions(list, listRemove, i);\n\t\t\t}\n\t\t\t\n\t\t\t// if the player is dead, notify the player of death\n\t\t\tif (stopDrawingPlayer || gameWon) {\n\t\t\t\tnotifyGameOver();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < listRemove.size(); i++) {\n\t\t\tlist.remove(listRemove.get(i));\n\t\t}\n\t\tlistRemove.clear();\n\t}", "public void setBulletsFired(ArrayList<Bullet> bullets) {\n if(!bulletsFired.isEmpty()) {\n //System.out.println(bullets.get(0).getxPos() != bulletsFired.get(0).getxPos());\n this.bulletsFired = bullets;\n }\n }", "public void update() {\n double newAngle = angle - 90;\n Coordinate nextCenterPointCoordinate = new Coordinate(\n this.centerPointCoordinate.getXCoordinate() - (Constants.BULLET_SPEED * Math.cos(Math.toRadians(newAngle))),\n this.centerPointCoordinate.getYCoordinate() + (Constants.BULLET_SPEED * Math.sin(Math.toRadians(newAngle)))\n );\n\n\n ArrayList<Wall> walls = new ArrayList<>();\n walls.addAll(TankTroubleMap.getDestructibleWalls());\n walls.addAll(TankTroubleMap.getIndestructibleWalls());\n ArrayList<Coordinate> nextCoordinatesArrayList = makeCoordinatesFromCenterCoordinate(nextCenterPointCoordinate);\n Wall wallToCheck = null;\n for (Wall wall : walls) {\n if (TankTroubleMap.checkOverLap(wall.getPointsArray(), nextCoordinatesArrayList)) {\n wallToCheck = wall;\n }\n }\n\n if (wallToCheck != null) {\n if (horizontalCrash(wallToCheck)) { //if the bullet would only go over horizontal side of any walL\n nextCenterPointCoordinate = flipH();\n } else if (verticalCrash(wallToCheck)) { // if the bullet would only go over vertical side any wall\n nextCenterPointCoordinate = flipV();\n } else {// if the bullet would only go over corner of any wall\n int cornerCrashState = cornerCrash(wallToCheck);\n nextCenterPointCoordinate = flipCorner(cornerCrashState);\n }\n\n if (wallToCheck.isDestroyable()) {//crashing destructible\n //System.out.println(\"bullet damage:\"+ damage);\n //System.out.println(\"wall health:\"+ ((DestructibleWall) wallToCheck).getHealth());\n ((DestructibleWall) wallToCheck).receiveDamage(damage);\n if (((DestructibleWall) wallToCheck).getHealth() <= 0) {\n TankTroubleMap.getDestructibleWalls().remove(wallToCheck);\n }\n bulletsBlasted = true;\n tankTroubleMap.getBullets().remove(this);\n }\n }\n this.centerPointCoordinate = nextCenterPointCoordinate;\n updateArrayListCoordinates();\n\n // Tanks / users\n if (!bulletsBlasted) {\n for (int i = 0; i < tankTroubleMap.getUsers().size(); i++) {\n if (TankTroubleMap.checkOverLap(coordinates, tankTroubleMap.getUsers().get(i).getUserTank().getTankCoordinates())) {\n bulletsBlasted = true;\n for (Bullet bullet : tankTroubleMap.getBullets()) {\n if (bullet.bulletsBlasted) tankTroubleMap.getBullets().remove(bullet);\n break;\n }\n tankTroubleMap.getUsers().get(i).getUserTank().receiveDamage(damage);\n //System.out.println(\"health: \" + tankTroubleMap.getUsers().get(i).getUserTank().getHealth());\n if (tankTroubleMap.getUsers().get(i).getUserTank().getHealth() <= 0) {\n int finalI = i;\n Thread thread = new Thread(() -> {\n try {\n SoundsOfGame soundsOfGame = new SoundsOfGame(\"explosion\", false);\n soundsOfGame.playSound();\n tankTroubleMap.getUsers().get(finalI).getUserTank().setTankImage(ImageIO.read(new File(\"kit/explosion/Explosion_A.png\")));\n Thread.sleep(150);\n tankTroubleMap.getUsers().get(finalI).getUserTank().setTankImage(ImageIO.read(new File(\"kit/explosion/Explosion_B.png\")));\n Thread.sleep(150);\n tankTroubleMap.getUsers().get(finalI).getUserTank().setTankImage(ImageIO.read(new File(\"kit/explosion/Explosion_C.png\")));\n Thread.sleep(150);\n tankTroubleMap.getUsers().get(finalI).getUserTank().setTankImage(ImageIO.read(new File(\"kit/explosion/Explosion_D.png\")));\n Thread.sleep(150);\n tankTroubleMap.getUsers().get(finalI).getUserTank().setTankImage(ImageIO.read(new File(\"kit/explosion/Explosion_E.png\")));\n Thread.sleep(150);\n tankTroubleMap.getUsers().get(finalI).getUserTank().setTankImage(ImageIO.read(new File(\"kit/explosion/Explosion_F.png\")));\n Thread.sleep(150);\n tankTroubleMap.getUsers().get(finalI).getUserTank().setTankImage(ImageIO.read(new File(\"kit/explosion/Explosion_G.png\")));\n Thread.sleep(150);\n tankTroubleMap.getUsers().get(finalI).getUserTank().setTankImage(ImageIO.read(new File(\"kit/explosion/Explosion_H.png\")));\n Thread.sleep(150);\n tankTroubleMap.getUsers().remove(finalI);\n gameOverCheck();\n if (isUserTank) {\n tankTroubleMap.getUsers().get(tankIndex).getUserTank().setNumberOfDestroyedTank(tankTroubleMap.getUsers().get(tankIndex).getUserTank().getNumberOfDestroyedTank() + 1);\n }\n tankTroubleMap.getAudience().add(tankTroubleMap.getUsers().get(finalI));\n } catch (InterruptedException | IOException e) {\n e.printStackTrace();\n }\n });\n thread.start();\n }\n break;\n }\n }\n }\n\n // Tanks / bots\n if (!bulletsBlasted) {\n for (int i = 0; i < tankTroubleMap.getBots().size(); i++) {\n if (TankTroubleMap.checkOverLap(coordinates, tankTroubleMap.getBots().get(i).getAiTank().getTankCoordinates())) {\n bulletsBlasted = true;\n for (Bullet bullet : tankTroubleMap.getBullets()) {\n if (bullet.bulletsBlasted) tankTroubleMap.getBullets().remove(bullet);\n break;\n }\n tankTroubleMap.getBots().get(i).getAiTank().receiveDamage(damage);\n //System.out.println(\"health: \" + tankTroubleMap.getBots().get(i).getAiTank().getHealth());\n if (tankTroubleMap.getBots().get(i).getAiTank().getHealth() <= 0) {\n // System.out.println(\"Blasted Tank.......\");\n int finalI = i;\n Thread thread = new Thread(() -> {\n try {\n SoundsOfGame soundsOfGame = new SoundsOfGame(\"explosion\", false);\n soundsOfGame.playSound();\n tankTroubleMap.getBots().get(finalI).getAiTank().setTankImage(ImageIO.read(new File(\"kit/explosion/Explosion_A.png\")));\n Thread.sleep(150);\n tankTroubleMap.getBots().get(finalI).getAiTank().setTankImage(ImageIO.read(new File(\"kit/explosion/Explosion_B.png\")));\n Thread.sleep(150);\n tankTroubleMap.getBots().get(finalI).getAiTank().setTankImage(ImageIO.read(new File(\"kit/explosion/Explosion_C.png\")));\n Thread.sleep(150);\n tankTroubleMap.getBots().get(finalI).getAiTank().setTankImage(ImageIO.read(new File(\"kit/explosion/Explosion_D.png\")));\n Thread.sleep(150);\n tankTroubleMap.getBots().get(finalI).getAiTank().setTankImage(ImageIO.read(new File(\"kit/explosion/Explosion_E.png\")));\n Thread.sleep(150);\n tankTroubleMap.getBots().get(finalI).getAiTank().setTankImage(ImageIO.read(new File(\"kit/explosion/Explosion_F.png\")));\n Thread.sleep(150);\n tankTroubleMap.getBots().get(finalI).getAiTank().setTankImage(ImageIO.read(new File(\"kit/explosion/Explosion_G.png\")));\n Thread.sleep(150);\n tankTroubleMap.getBots().get(finalI).getAiTank().setTankImage(ImageIO.read(new File(\"kit/explosion/Explosion_H.png\")));\n Thread.sleep(150);\n tankTroubleMap.getBots().remove(finalI);\n gameOverCheck();\n } catch (InterruptedException | IOException e) {\n e.printStackTrace();\n }\n });\n thread.start();\n }\n break;\n }\n }\n }\n }", "public void defensive_act()\r\n\t{\r\n\t\tBullet closestBullet = IMAGINARY_BULLET;\r\n\t//\tBullet secondClosestBullet = IMAGINARY_BULLET;\r\n\t\t\r\n\t\tActor machines;\r\n\t\tEnumeration<Actor> opponent = ((MachineInfo)data.get(TankFrame.PLAYER_1)).getHashtable().elements();\r\n\t\twhile(opponent.hasMoreElements())\r\n\t\t{\r\n\t\t\tmachines = (Actor) opponent.nextElement();\r\n\t\t\tif(machines instanceof Bullet)\r\n\t\t\t{\r\n\t\t\t\tif(machines.getPoint().distance(getPoint()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t{\r\n\t\t\t\t\tclosestBullet = (Bullet)machines;\r\n\t\t\t\t\tLine2D aim = new Line2D.Double(getCenterX(), getCenterY(), closestBullet.getPosX(), closestBullet.getPosY() );\r\n\t\t\t\t\tSystem.out.println(aim.getP1().distance(aim.getP2()));\r\n\t\t\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t\t\taimAndShoot(aim);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t/*\tif(machines.getPoint().distance(getPoint()) > secondClosestBullet.getPoint().distance(getPoint()) \r\n\t\t\t\t\t&& machines.getPoint().distance(getPoint()) < closestBullet.getPoint().distance(getPoint()))\r\n\t\t\t\t\tsecondClosestBullet = (Bullet)machines;*/\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Find the line\r\n\t\t */\r\n\t\t/*if(!closestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), closestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(getCenterX(), getCenterY(), (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\t/*bulletPath = new Line2D(getRightPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\tbulletPath = new Line2D(getPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);*/\r\n\t\t\t\r\n\t\t//}\r\n\t/*\tif(!secondClosestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), secondClosestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t}*/\r\n\r\n\t}", "@Override\n public Bullet getBullet(Ship theShip) {\n Point speed = new Point(6, 0);\n Point location = theShip.getLocationPoint();\n Bullet b = new Bullet(location, speed, strength, new AngledMotion(), theShip, getImage());\n b.setHeading(theShip.getHeading());\n return b;\n }", "public void attack()\n {\n getWorld().addObject(new RifleBullet(player.getX(), player.getY(), 1, 6, true), getX(), getY()); \n }", "public ArrayList<Movable> getProjectiles(){\n\t\tArrayList<Movable> moving = new ArrayList<Movable>(temp);\n\t\ttemp = new ArrayList<Movable>();\n\t\treturn moving;\n\t}", "@Override\n public void update(float dt) {\n //bulletUpdate(dt,b2body);\n stateTime += dt;\n bulletUpdate(b2body,bulletSprite1);\n bulletUpdate(b2body2,bulletSprite2);\n bulletUpdate(b2body3,bulletSprite3);\n\n\n\n }", "public void tick()\n\t{\n\t\tgameTime++;\n\t\tif(gameTime == 1)\n\t\t\taddPlayerShip();\n\t\tIIterator iter = gameObj.getIterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tGameObject current = (GameObject)iter.getNext();\n\t\t\tif (current instanceof Imovable)\n\t\t\t\t((MovableObject)current).move(fps);\n\t\t\tif (current instanceof SpaceStation)\n\t\t\t\t((SpaceStation)current).checkBlink(gameTime);\n\t\t\tif(current instanceof Missile)\n\t\t\t\tif(((Missile) current).getFuel() <= 0)\n\t\t\t\t\titer.remove();\n\t\t}\n\t\t\n\t\t//Identify collision\n\t\titer = gameObj.getIterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tICollider curObj = (ICollider)iter.getNext();\n\t\t\t\n\t\t\tIIterator iter2 = gameObj.getIterator();\n\t\t\twhile(iter2.hasNext())\n\t\t\t{\n\t\t\t\tICollider otherObj = (ICollider)iter2.getNext();\n\t\t\t\tif(otherObj != curObj)\n\t\t\t\t\tif(curObj.collidesWith(otherObj))\n\t\t\t\t\t\tif (curObj instanceof PlayerShip)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcollisionVectorPS.add(curObj);\n\t\t\t\t\t\t\tcollisionVectorPS.add(otherObj);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(curObj instanceof NonPlayerShip)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcollisionVectorNPS.add(curObj);\n\t\t\t\t\t\t\tcollisionVectorNPS.add(otherObj);\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(curObj instanceof Asteroid)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(collisionVectorAsteroid.isEmpty())\n\t\t\t\t\t\t\t\tcollisionVectorAsteroid.add(curObj);\n\t\t\t\t\t\t\tcollisionVectorAsteroid.add(otherObj);\t\t\t\n\t\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Handle Collisions for playership\n\t\tif(!collisionVectorPS.isEmpty())\n\t\t{\n\t\t\t//return iterator for collion vector\n\t\t\tIterator<ICollider> psIterator = collisionVectorPS.iterator();\n\t\t\tICollider ship = collisionVectorPS.elementAt(0);\n\t\t\twhile(psIterator.hasNext())\n\t\t\t{\n\t\t\t\tICollider curObj = psIterator.next();\n\t\t\t\tif(curObj != ship)\n\t\t\t\t\tship.handleCollision(curObj);\n\t\t\t\t\n\t\t\t\t//if an asteroid is detected\n\t\t\t\tif(curObj instanceof Asteroid)\n\t\t\t\t\tcrashAsteroidPS(psIterator,curObj,ship);\n\t\t\t\t\n\t\t\t\t//if an enemy missile is detected\n\t\t\t\telse if(curObj instanceof Missile && ((Missile)curObj).isEnemy())\n\t\t\t\t\tPSShot(psIterator,curObj,ship);\n\t\t\t\t\n\t\t\t\t//if a non player ship is detected\n\t\t\t\telse if(curObj instanceof NonPlayerShip)\n\t\t\t\t\tthis.crashNPS(psIterator,curObj,ship);\n\t\t\t\t\n\t\t\t\telse if(curObj instanceof SpaceStation)\n\t\t\t\t\tthis.refillMissiles(psIterator,curObj,ship);\n\t\t\t}\n\t\t\t//clear the collision vector and spawn a new ship\n\t\t\tcollisionVectorPS.clear();\n\t\t\t\n\t\t}\n\t\tif(!collisionVectorNPS.isEmpty())\n\t\t{\n\t\t\t//return iterator for collion vector\n\t\t\tIterator<ICollider> npsIterator = collisionVectorNPS.iterator();\n\t\t\tICollider nps = collisionVectorNPS.elementAt(0);\n\t\t\twhile(npsIterator.hasNext())\n\t\t\t{\n\t\t\t\tICollider curObj = npsIterator.next();\n\t\t\t\tif(curObj != nps)\n\t\t\t\t\tnps.handleCollision(curObj);\n\t\t\t\tif(curObj instanceof Missile && !((Missile)curObj).isEnemy())\n\t\t\t\t\tthis.NPSShot(npsIterator,curObj,nps);\n\t\t\t\telse if(curObj instanceof Asteroid)\n\t\t\t\t\tthis.crashAsteroidNPS(npsIterator,curObj,nps);\n\t\t\t\telse if(curObj instanceof SpaceStation)\n\t\t\t\t\tthis.refillMissiles(npsIterator,curObj,nps);\n\t\t\t}\n\t\t\tcollisionVectorNPS.clear();\n\t\t}\n\t\tif(!collisionVectorAsteroid.isEmpty())\n\t\t{\n\t\t\tIterator<ICollider> astIterator = collisionVectorAsteroid.iterator();\n\t\t\tICollider ast = collisionVectorAsteroid.elementAt(0);\n\t\t\twhile(astIterator.hasNext())\n\t\t\t{\n\t\t\t\tICollider curObj = astIterator.next();\n\t\t\t\tif(curObj != ast)\n\t\t\t\t\tast.handleCollision(curObj);\n\t\t\t\tif(curObj instanceof Missile && !((Missile)curObj).isEnemy())\n\t\t\t\t\tthis.asteroidShot(astIterator,curObj,ast);\n\t\t\t\telse if(curObj instanceof Asteroid && curObj != ast)\n\t\t\t\t\tthis.asteroidCol(astIterator,curObj,ast);\n\t\t\t}\n\t\t\tcollisionVectorAsteroid.clear();\n\t\t}\n\t\t//delete collided objects\n\t\tIterator<ICollider> trashIterator = trash.iterator();\n\t\twhile (trashIterator.hasNext())\n\t\t{\n\t\t\tICollider curObj = trashIterator.next();\n\t\t\tremove(curObj);\n\t\t}\n\t\tnotifyObservers();\n\t}", "public void cleanUpBullets() {\n for (int i = 0; i < this.bullets.size(); i++) {\n if (!this.bullets.get(i).visible) {\n this.bullets.remove(i);\n }\n }\n }", "public Bullet getBullet() {\r\n\t\treturn this.bullet;\r\n\t}", "public void onHitByBullet() {\r\n\t\t// Move ahead 100 and in the same time turn left papendicular to the bullet\r\n\t\tturnAheadLeft(100, 90 - hitByBulletBearing);\r\n\t}", "boolean testMoveBullet(Tester t) {\n return t.checkExpect(bullet1.move(),\n new Bullet(2, Color.PINK, new MyPosn(250, 292), new MyPosn(0, -8), 1))\n && t.checkExpect(bullet2.move(),\n new Bullet(2, Color.PINK, new MyPosn(650, 650), new MyPosn(50, 50), 1));\n }", "@Override\n public void attack(){\n int xBullet=0,yBullet=0;\n switch(direction){\n case 0:\n xBullet=(int)(x+Sprite.python_left.getWidth()/3);\n yBullet=(int)(y+Sprite.python_left.getHeight()*3/4);\n break;\n case 1:\n xBullet=(int)(x+Sprite.python_left.getWidth()*3/4);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n case 2:\n xBullet=(int)(x+Sprite.python_left.getWidth()/3);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n case 3:\n xBullet=(int)(x+Sprite.python_left.getWidth()/4);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n }\n PythonBullet pythonBullet=new PythonBullet(xBullet,yBullet,board,Player.PLAYER_SPEED*1.5);\n pythonBullet.setDirection(direction);\n board.addBullets(pythonBullet);\n\n }", "public void shoot(){\n // boss bullete attract to player\n int bulletPosX = PApplet.parseInt(posX + (speed * cos(angle)));\n int bulletPosY = (int)(posY + hei / 2);\n float bulletAngle = atan2(Main.player.posY - bulletPosY, Main.player.posX - bulletPosX);\n int bulletVelX = (int)(8 * cos(bulletAngle));\n int bulletVelY = (int)(8 * sin(bulletAngle));\n bossBullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,1,attack));\n }", "private ArrayList<Coordinates> getThreats() {\n\t\tArrayList<Coordinates> result = new ArrayList<>();\n\t\tArrayList<Coordinates> adversary = chessboard.getEnemyPieces();\n\t\tCoordinates king = null;\n\t\tking = chessboard.getTurnKing();\n\t\t\t\t\n\t\tfor (Coordinates c : adversary ){\n\t\t\tif ( checkMove(c, king) ){\n\t\t\t\tresult.add(c);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public Bullet getHitBullet() {\n\t\treturn hitBullet;\n\t}", "public Image getBulletsImage() {\n return bulletsImage;\n }", "@Override\n public List<Bullet> tick(List<Creep> creeps, boolean levelInProgress) {\n timeToNextShot--;\n List<Bullet> fired = null;\n if(imageRotates || timeToNextShot <= 0) {\n // The creeps are sorted by the default creep comparator in Clock, so that they don't\n // have to be resorted for any tower left on the default (which is often most of them)\n if(!creepComparator.getClass().equals(DEFAULT_CREEP_COMPARATOR.getClass())) {\n // Make a copy so it can be sorted\n creeps = new ArrayList<Creep>(creeps);\n Collections.sort(creeps, creepComparator);\n }\n // If the image rotates, this needs to be done to find out the direction to rotate to\n fired = fireBullets(creeps);\n }\n if (timeToNextShot <= 0 && fired != null && fired.size() > 0) {\n timeToNextShot = fireRate;\n // Use bulletsToAdd as some towers launch bullets between ticks\n bulletsToAdd.addAll(fired);\n }\n List<Bullet> bulletsToReturn = bulletsToAdd;\n bulletsToAdd = new ArrayList<Bullet>();\n return bulletsToReturn;\n }", "@Override\r\n\tpublic void onCollisionWithBullet() {\n\t\t\r\n\t}", "public ParticleMesh getMissileTrail() {\r\n for (int x = 0, tSize = missileTrails.size(); x < tSize; x++) {\r\n ParticleMesh e = missileTrails.get(x);\r\n if (!e.isActive()) {\r\n e.getParticleController().setRepeatType(Controller.RT_WRAP);\r\n e.forceRespawn();\r\n return e;\r\n }\r\n }\r\n return createMissileTrail();\r\n }", "public void pullPlayerTiles() {\r\n\t\tRandom r = new Random();\r\n\t\tfor (int i=0; i < 7; i++) {\r\n\t\t\tint random = r.nextInt(Launch.getBoneyard().size());\r\n\t\t\t//System.out.println(\"[debug] random = \"+random);\r\n\t\t\t//System.out.println(\"[debug] index\"+random+\" in BONEYARD = \"+Arrays.toString(Launch.BONEYARD.get(random).getDots()));\r\n\t\t\tif (Utils.isSet(Launch.getBoneyard(), random)) {\r\n\t\t\t\tPLAYER_DOMINOS.add(Launch.getBoneyard().get(random));\r\n\t\t\t\tLaunch.getBoneyard().remove(random);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean IsBullet()\r\n {\r\n return this.isBullet;\r\n }", "public void update(float delta) {\n rangeTimer++;//update bullet distance\n //delete bullet if hit collison or met ranged\n if (rangeTimer == RANGE) {\n bullet.setShoot(false);\n rangeTimer = 0;\n } else {\n //update bullet timings\n bullet.updateTimer(delta);\n //make bullet go to p x y - follows player to increase difficulty\n if (this.bullet.x < playerX + 1.5) {\n this.bullet.x += Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n if (this.bullet.x >playerX + 1.5) {\n this.bullet.x -= Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n if (this.bullet.y < playerY + 0.5) {\n this.bullet.y += Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n if (this.bullet.y > playerY + 1.5) {\n this.bullet.y -= Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n }\n }", "public List<BossBullet> getBossBullets() {\n\t\treturn bossBullet;\n\t}", "@Override\n public Bullet getBullet() {\n return new EnemyGunBullet1();\n }", "public List<Sprite> getEnnemies() {\r\n return ennemies.stream()\r\n .filter(c -> !SpriteStatusEnum.DEAD.equals(c.getStatus()))\r\n .collect(Collectors.toList());\r\n }", "public Iterator<MahjongSolitaireTile> getMovingTiles()\n {\n return movingTiles.iterator();\n }", "@Override\n\tpublic void collideWith(Bullet bullet) {\n\t\tbulletMoveForward(bullet);\n\t}", "@Override\n\tpublic Bullet shoot(int hx, int hy) {\n\t\treturn null;\n\t}", "private void update() {\n\t\t// checks to see if the w key is down\n\t\tif (wKeyDown) {\n\t\t\tplayer.setY((int) (player.getY() - 8));\n\t\t}\n\t\t// checks to see if the a key is down\n\t\tif (aKeyDown) {\n\t\t\tplayer.setX((int) (player.getX() - 8));\n\t\t}\n\t\t// checks to see if the s key is down\n\t\tif (sKeyDown) {\n\t\t\tplayer.setY((int) (player.getY() + 8));\n\t\t}\n\t\t// checks to see if the d key is down\n\t\tif (dKeyDown) {\n\t\t\tplayer.setX((int) (player.getX() + 8));\n\t\t}\n\t\t\n\t\t// checks to make sure the player is within the bounds\n\t\tcheckBounds();\n\t\t\n\t\t// checks to see if the left mouse button is clicked\n\t\tif (mouseDown) {\n\t\t\t// if doubleshot is activated\n\t\t\tif (doubleShot && bulletDelta > doubleShotShootingSpeed) {\n\t\t\t\t// plays the bullet shooting sound\n\t\t\t\tsound.get(\"shootEffect\").playAsSoundEffect(1.0f, 0.5f, false);\n\t\t\t\t\n\t\t\t\t// adds the first bullet\n\t\t\t\tbullet.add(new Bullet(this, \"bullet\", 0, 0, 100));\n\t\t\t\tBullet lastBullet = bullet.get(bullet.size() - 1);\n\t\t\t\t\n\t\t\t\t// sets the x and y coordinates of the bullet\n\t\t\t\tlastBullet.setX(player.getX() + sprite.get(\"playerSprite\").getWidth()\n\t\t\t\t\t\t- sprite.get(\"bulletSprite\").getWidth() / 2 + BULLET_X_OFFSET);\n\t\t\t\tlastBullet.setY(player.getY() + sprite.get(\"playerSprite\").getHeight()\n\t\t\t\t\t\t- sprite.get(\"bulletSprite\").getHeight() / 2 + BULLET_Y_OFFSET);\n\t\t\t\t\n\t\t\t\t// set the angle of the shot\n\t\t\t\tdouble xChange = Mouse.getX() - lastBullet.getX();\n\t\t\t\tdouble yChange = (displayHeight - Mouse.getY()) - lastBullet.getY();\n\t\t\t\tdouble magnitude = Math.sqrt(xChange * xChange + yChange * yChange);\n\t\t\t\txChange = xChange / magnitude * 20;\n\t\t\t\tyChange = yChange / magnitude * 20;\n\t\t\t\tlastBullet.setXChange((int) xChange);\n\t\t\t\tlastBullet.setYChange((int) yChange);\n\t\t\t\t\n\t\t\t\t// adds the second bullet\n\t\t\t\tbullet.add(new Bullet(this, \"bullet\", 0, 0, 100));\n\t\t\t\tlastBullet = bullet.get(bullet.size() - 1);\n\t\t\t\t\n\t\t\t\tlastBullet.setX(player.getX() + sprite.get(\"playerSprite\").getWidth()\n\t\t\t\t\t\t- sprite.get(\"bulletSprite\").getWidth() / 2 + BULLET2_X_OFFSET);\n\t\t\t\tlastBullet.setY(player.getY() + sprite.get(\"playerSprite\").getHeight()\n\t\t\t\t\t\t- sprite.get(\"bulletSprite\").getHeight() / 2 + BULLET2_Y_OFFSET);\n\t\t\t\t\n\t\t\t\t// set the angle of the shot\n\t\t\t\tdouble doubleshotXChange = Mouse.getX() - lastBullet.getX();\n\t\t\t\tdouble doubleshotYChange = (displayHeight - Mouse.getY()) - lastBullet.getY();\n\t\t\t\tdouble doubleshotMagnitude = Math.sqrt(xChange * xChange + yChange * yChange);\n\t\t\t\tdoubleshotXChange = xChange / doubleshotMagnitude * 20;\n\t\t\t\tdoubleshotYChange = yChange / doubleshotMagnitude * 20;\n\t\t\t\tlastBullet.setXChange((int) doubleshotXChange);\n\t\t\t\tlastBullet.setYChange((int) doubleshotYChange);\n\t\t\t\t\n\t\t\t\tDelta.setLastBullet(Delta.getTime());\n\t\t\t}\n\t\t\t// if a bullet is shot and the time since the last bullet is at least shootingSpeed\n\t\t\telse if (bulletShot && bulletDelta > bulletShootingSpeed) {\n\t\t\t\t// plays the bullet shooting sound\n\t\t\t\tsound.get(\"shootEffect\").playAsSoundEffect(1.0f, 0.5f, false);\n\t\t\t\t\n\t\t\t\t// adds the bullet\n\t\t\t\tbullet.add(new Bullet(this, \"bullet\", 0, 0, 100));\n\t\t\t\tBullet lastBullet = bullet.get(bullet.size() - 1);\n\t\t\t\t\n\t\t\t\t// sets the x and y coordinates of the bullet\n\t\t\t\tlastBullet.setX(player.getX() + sprite.get(\"playerSprite\").getWidth()\n\t\t\t\t\t\t- sprite.get(\"bulletSprite\").getWidth() / 2 + BULLET_X_OFFSET);\n\t\t\t\tlastBullet.setY(player.getY() + sprite.get(\"playerSprite\").getHeight()\n\t\t\t\t\t\t- sprite.get(\"bulletSprite\").getHeight() / 2 + BULLET_Y_OFFSET);\n\t\t\t\t\n\t\t\t\t// set the angle of the shot\n\t\t\t\tdouble xChange = Mouse.getX() - lastBullet.getX();\n\t\t\t\tdouble yChange = (displayHeight - Mouse.getY()) - lastBullet.getY();\n\t\t\t\tdouble magnitude = Math.sqrt(xChange * xChange + yChange * yChange);\n\t\t\t\txChange = xChange / magnitude * 20;\n\t\t\t\tyChange = yChange / magnitude * 20;\n\t\t\t\tlastBullet.setXChange((int) xChange);\n\t\t\t\tlastBullet.setYChange((int) yChange);\n\t\t\t\t\n\t\t\t\tDelta.setLastBullet(Delta.getTime());\n\t\t\t}\n\t\t\t// if a laser is shot\n\t\t\telse if (laserShot) {\n\t\t\t\tif (Delta.getTime() % 6 == 0) {\n\t\t\t\t\t// plays the laser shooting sound\n\t\t\t\t\tsound.get(\"laserEffect\").playAsSoundEffect(1.0f, 0.5f, false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// adds the laser\n\t\t\t\tbullet.add(new Bullet(this, \"laser\", 0, 0, 20));\n\t\t\t\tBullet lastBullet = bullet.get(bullet.size() - 1);\n\t\t\t\t\n\t\t\t\t// sets the x and y coordinates of the laser\n\t\t\t\tlastBullet.setX(player.getX() + sprite.get(\"playerSprite\").getWidth()\n\t\t\t\t\t\t- sprite.get(\"laserSprite\").getWidth() / 2 + BULLET_X_OFFSET);\n\t\t\t\tlastBullet.setY(player.getY() + sprite.get(\"playerSprite\").getHeight()\n\t\t\t\t\t\t- sprite.get(\"laserSprite\").getHeight() + BULLET_Y_OFFSET);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Checks to see if the time since the last enemy is greater than the enemy interval\n\t\tif (!bossSpawned && enemyDelta > generateEnemyInterval()) {\n\t\t\tdouble enemyGenerate = randomGenerator.nextDouble();\n\t\t\tif (enemyGenerate >= 0.3 || Delta.getDelta(\"beginning\") <= 10000)\n\t\t\t\tenemy.add(new Enemy(this, \"green_box\", 0, 0, 300, Delta.getDelta(\"beginning\"), 300));\n\t\t\telse if (enemyGenerate < 0.3)\n\t\t\t\tenemy.add(new Enemy(this, \"red_box\", 0, 0, 400, Delta.getDelta(\"beginning\"), 400));\n\t\t\tEnemy lastEnemy = enemy.get(enemy.size() - 1);\n\t\t\t\n\t\t\tlastEnemy.setX(lastEnemy.generateEnemyX());\n\t\t\tlastEnemy.setY(-lastEnemy.getSprite().getHeight());\n\t\t\tDelta.setLastEnemy(Delta.getTime());\n\t\t}\n\t\t\n\t\tif (bossExplosionNum == 0) {\n\t\t\t// Checks to see if enemy bullets should be generated\n\t\t\tfor (int i = 0; i < enemy.size(); i++) {\n\t\t\t\tif (enemy.get(i).getName().equals(\"red_box\") && enemy.get(i).getTimeSinceLastBullet() >= 700) {\n\t\t\t\t\tenemy_bullet.add(new Bullet(this, \"enemy_bullet\", 0, 0, 100));\n\t\t\t\t\tenemy.get(i).setLastBulletTime(Delta.getDelta(\"beginning\"));\n\t\t\t\t\t\n\t\t\t\t\tBullet lastEnemyBullet = enemy_bullet.get(enemy_bullet.size() - 1);\n\t\t\t\t\tSprite enemySprite = enemy.get(i).getSprite();\n\t\t\t\t\tSprite enemyBulletSprite = lastEnemyBullet.getSprite();\n\t\t\t\t\t\n\t\t\t\t\tlastEnemyBullet.setX(enemy.get(i).getX() + enemySprite.getWidth() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getWidth() / 2);\n\t\t\t\t\tlastEnemyBullet.setY(enemy.get(i).getY() + enemySprite.getHeight() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getHeight() / 2);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (enemy.get(i).getName().equals(\"boss\") && enemy.get(i).getTimeSinceLastBullet() >= 1000) {\n\t\t\t\t\tenemy_bullet.add(new Bullet(this, \"boss_bullet\", 0, 0, 100));\n\t\t\t\t\tenemy.get(i).setLastBulletTime(Delta.getDelta(\"beginning\"));\n\t\t\t\t\t\n\t\t\t\t\tBullet lastEnemyBullet = enemy_bullet.get(enemy_bullet.size() - 1);\n\t\t\t\t\tSprite enemySprite = enemy.get(i).getSprite();\n\t\t\t\t\tSprite enemyBulletSprite = lastEnemyBullet.getSprite();\n\t\t\t\t\t\n\t\t\t\t\tlastEnemyBullet.setX(enemy.get(i).getX() + enemySprite.getWidth() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getWidth() / 2);\n\t\t\t\t\tlastEnemyBullet.setY(enemy.get(i).getY() + enemySprite.getHeight() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getHeight() / 2);\n\t\t\t\t\t\n\t\t\t\t\t// set the angle of the shot\n\t\t\t\t\tdouble xChange = player.getX() - lastEnemyBullet.getX();\n\t\t\t\t\tdouble yChange = player.getY() - lastEnemyBullet.getY();\n\t\t\t\t\tdouble magnitude = Math.sqrt(xChange * xChange + yChange * yChange);\n\t\t\t\t\txChange = xChange / magnitude * 15;\n\t\t\t\t\tyChange = yChange / magnitude * 15;\n\t\t\t\t\tlastEnemyBullet.setXChange((int) xChange);\n\t\t\t\t\tlastEnemyBullet.setYChange((int) yChange);\n\t\t\t\t\t\n\t\t\t\t\tenemy_bullet.add(new Bullet(this, \"boss_bullet\", 0, 0, 100));\n\t\t\t\t\tenemy.get(i).setLastBulletTime(Delta.getDelta(\"beginning\"));\n\t\t\t\t\t\n\t\t\t\t\tlastEnemyBullet = enemy_bullet.get(enemy_bullet.size() - 1);\n\t\t\t\t\tenemySprite = enemy.get(i).getSprite();\n\t\t\t\t\tenemyBulletSprite = lastEnemyBullet.getSprite();\n\t\t\t\t\t\n\t\t\t\t\tlastEnemyBullet.setX(enemy.get(i).getX() + enemySprite.getWidth() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getWidth() / 2);\n\t\t\t\t\tlastEnemyBullet.setY(enemy.get(i).getY() + enemySprite.getHeight() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getHeight() / 2);\n\t\t\t\t\t\n\t\t\t\t\t// set the angle of the shot\n\t\t\t\t\txChange = player.getX() - lastEnemyBullet.getX() - 100;\n\t\t\t\t\tyChange = player.getY() - lastEnemyBullet.getY() - 100;\n\t\t\t\t\tmagnitude = Math.sqrt(xChange * xChange + yChange * yChange);\n\t\t\t\t\txChange = xChange / magnitude * 15;\n\t\t\t\t\tyChange = yChange / magnitude * 15;\n\t\t\t\t\tlastEnemyBullet.setXChange((int) xChange);\n\t\t\t\t\tlastEnemyBullet.setYChange((int) yChange);\n\t\t\t\t\t\n\t\t\t\t\tenemy_bullet.add(new Bullet(this, \"boss_bullet\", 0, 0, 100));\n\t\t\t\t\tenemy.get(i).setLastBulletTime(Delta.getDelta(\"beginning\"));\n\t\t\t\t\t\n\t\t\t\t\tlastEnemyBullet = enemy_bullet.get(enemy_bullet.size() - 1);\n\t\t\t\t\tenemySprite = enemy.get(i).getSprite();\n\t\t\t\t\tenemyBulletSprite = lastEnemyBullet.getSprite();\n\t\t\t\t\t\n\t\t\t\t\tlastEnemyBullet.setX(enemy.get(i).getX() + enemySprite.getWidth() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getWidth() / 2);\n\t\t\t\t\tlastEnemyBullet.setY(enemy.get(i).getY() + enemySprite.getHeight() / 2\n\t\t\t\t\t\t\t- enemyBulletSprite.getHeight() / 2);\n\t\t\t\t\t\n\t\t\t\t\t// set the angle of the shot\n\t\t\t\t\txChange = player.getX() - lastEnemyBullet.getX() + 100;\n\t\t\t\t\tyChange = player.getY() - lastEnemyBullet.getY() + 100;\n\t\t\t\t\tmagnitude = Math.sqrt(xChange * xChange + yChange * yChange);\n\t\t\t\t\txChange = xChange / magnitude * 15;\n\t\t\t\t\tyChange = yChange / magnitude * 15;\n\t\t\t\t\tlastEnemyBullet.setXChange((int) xChange);\n\t\t\t\t\tlastEnemyBullet.setYChange((int) yChange);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// spawns the boss if 60 seconds has passed\n\t\tif (Delta.getDelta(\"beginning\") >= 60000 && !bossSpawned) {\n\t\t\tbossSpawned = true;\n\t\t\tenemy.add(new Enemy(this, \"boss\", 0, 0, 10000, Delta.getDelta(\"beginning\"), 500));\n\t\t\t\n\t\t\tEnemy boss = enemy.get(enemy.size() - 1);\n\t\t\tboss.setX(displayWidth / 2 - boss.getSprite().getWidth() / 2);\n\t\t\tboss.setY(-boss.getSprite().getHeight());\n\t\t}\n\t\t\n\t\t// checks for collisions\n\t\tif (bossExplosionNum == 0) {\n\t\t\tfor (int i = 0; i < enemy.size(); i++) {\n\t\t\t\tEntity entity1 = enemy.get(i);\n\t\t\t\t\n\t\t\t\t// if a bullet collides with an enemy\n\t\t\t\tfor (int j = 0; j < bullet.size(); j++) {\n\t\t\t\t\tEntity entity2 = bullet.get(j);\n\t\t\t\t\t\n\t\t\t\t\tif (entity1.collidesWith(entity2)) {\n\t\t\t\t\t\tentity1.collidedWith(entity2);\n\t\t\t\t\t\tentity2.collidedWith(entity1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tEntity entity2 = player;\n\t\t\t\t\n\t\t\t\t// if the player collides with an enemy\n\t\t\t\tif (entity1.collidesWith(entity2)) {\n\t\t\t\t\tentity1.collidedWith(entity2);\n\t\t\t\t\tentity2.collidedWith(entity1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tEntity entity1 = player;\n\t\t\t// if an enemy bullet collides with the player\n\t\t\tfor (int i = 0; i < enemy_bullet.size(); i++) {\n\t\t\t\tEntity entity2 = enemy_bullet.get(i);\n\t\t\t\t\n\t\t\t\tif (entity1.collidesWith(entity2)) {\n\t\t\t\t\tentity1.collidedWith(entity2);\n\t\t\t\t\tentity2.collidedWith(entity1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if a powerup collides with the player\n\t\t\tfor (int i = 0; i < powerup.size(); i++) {\n\t\t\t\tEntity entity2 = powerup.get(i);\n\t\t\t\t\n\t\t\t\tif (entity1.collidesWith(entity2)) {\n\t\t\t\t\tentity1.collidedWith(entity2);\n\t\t\t\t\tentity2.collidedWith(entity1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// if the player has defeated the boss\n\t\tif (gameWon && bossSpawned) {\n\t\t\t// draw Congratulations\n\t\t\tString congrats = \"Congratulations! You were able to vanquish\";\n\t\t\tString congrats2 = \"all of your evil thoughts and achieve nirvana!\";\n\t\t\tcongratsFont.drawString(displayWidth / 2 - congratsFont.getWidth(congrats) / 2, displayHeight / 2\n\t\t\t\t\t- congratsFont.getHeight(congrats) / 2 - 50, congrats);\n\t\t\tcongratsFont.drawString(displayWidth / 2 - congratsFont.getWidth(congrats2) / 2, displayHeight\n\t\t\t\t\t/ 2 - congratsFont.getHeight(congrats2) / 2 - 15, congrats2);\n\t\t\t\n\t\t\t// draw the score\n\t\t\tscoreFont.drawString(displayWidth / 2 - scoreFont.getWidth(\"Score: \" + totalCash) / 2, displayHeight\n\t\t\t\t\t/ 2\n\t\t\t\t\t+ scoreFont.getHeight(\"Game Over!\")\n\t\t\t\t\t/ 2\n\t\t\t\t\t+ scoreFont.getHeight(\"Score: \" + totalCash)\n\t\t\t\t\t/ 2 + 10 - 50, \"Score: \" + totalCash);\n\t\t}\n\t}", "List<Move> getLegalMoves(Player player);", "public List<ScoredMove> allAttackMoves(GameState gm) {\n\t\tList<ScoredMove> attackMoves = new ArrayList<ScoredMove>();\n\t\t\n\t\t// check for attacking battles\n\t\tif (gm.getBattleList().size() > 0) {\n\t\t\tfor (Battle b: gm.getBattleList()) {\n\t\t\t\tif (!b.isBattleUsingTrumps()) {\n\t\t\t\t\tfor (Card c: getHand().getCards()){\n\t\t\t\t\t\tif (c instanceof PirateShip) {\n\t\t\t\t\t\t\tif (canPirateShipCardAttack(b, (PirateShip)c)){\n\t\t\t\t\t\t\t\tattackMoves.add(new ScoredMove(ACTION.PLAY_ATTACK, c, b));\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\tfor (Card c: getHand().getCards()) {\n\t\t\t\t\tif (c instanceof Trump) {\n\t\t\t\t\t\tif (canTrumpCardAttack(b, (Trump)c)) {\n\t\t\t\t\t\t\tattackMoves.add(new ScoredMove(ACTION.PLAY_ATTACK, c, b));\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 attackMoves;\n\t}", "public void checkCollision(){\n\r\n for(int i = 0; i < enemies.size(); i++){\r\n \r\n // Player and Enemy collision\r\n \r\n if(collide(this.player, enemies.get(i)) && this.player.isVisible() && enemies.get(i).isVisible()){\r\n System.out.println(\"Collide\");\r\n this.player.setHealth(this.player.getHealth() - 100);\r\n }\r\n\r\n // Player and Enemy bullet collision\r\n \r\n for(int j =0; j < enemies.get(i).getBullets().size(); j++){\r\n\r\n if(collide(this.player, enemies.get(i).getBullets().get(j)) && this.player.isVisible() && enemies.get(i).getBullets().get(j).isVisible()){\r\n\r\n enemies.get(i).getBullets().get(j).setVisible(false);\r\n this.player.setHealth(this.player.getHealth() - enemies.get(i).getBullets().get(j).getDamage());\r\n\r\n }\r\n }\r\n\r\n }\r\n //time = DEFAULT_TIME_DELAY;\r\n// }\r\n\r\n\r\n\r\n for(int i = 0; i < player.getBullets().size(); i++){\r\n\r\n\r\n // Player bullet and enemy collision\r\n\r\n for(int j = 0; j < enemies.size(); j++) {\r\n if (collide(enemies.get(j), player.getBullets().get(i)) && enemies.get(j).isVisible() && player.getBullets().get(i).isVisible()) {\r\n\r\n if (enemies.get(j).getHealth() < 0) {\r\n enemies.get(j).setVisible(false);\r\n score.addScore(100);\r\n }\r\n\r\n enemies.get(j).setHealth(enemies.get(j).getHealth() - player.getBullets().get(i).getDamage());\r\n // enemies.get(j).setColor(Color.RED);\r\n player.getBullets().get(i).setVisible(false);\r\n\r\n\r\n }\r\n }\r\n\r\n\r\n // Boss collision & player bullet collision\r\n\r\n if(collide(player.getBullets().get(i), this.boss1) && player.getBullets().get(i).isVisible() && boss1.isVisible()){\r\n\r\n if(boss1.getHealth() < 0){\r\n boss1.setVisible(false);\r\n score.addScore(1000);\r\n state = STATE.WIN;\r\n }\r\n this.boss1.setHealth(this.boss1.getHealth() - player.getBullets().get(i).getDamage());\r\n // this.boss1.setHealth(0);\r\n player.getBullets().get(i).setVisible(false);\r\n\r\n }\r\n\r\n }\r\n\r\n // Bullet vs Bullet Collision\r\n\r\n for(int k = 0 ; k < player.getBullets().size(); k++){\r\n\r\n if(player.getBullets().get(k).isVisible()) {\r\n for (int i = 0; i < enemies.size(); i++) {\r\n\r\n if(enemies.get(i).isVisible()) {\r\n for (int j = 0; j < enemies.get(i).getBullets().size(); j++) {\r\n\r\n if (collide(player.getBullets().get(k), enemies.get(i).getBullets().get(j)) && enemies.get(i).getBullets().get(j ).isVisible()) {\r\n\r\n\r\n System.out.println(\"bullets colliding\");\r\n\r\n player.getBullets().get(k).setVisible(false);\r\n enemies.get(i).getBullets().get(j).setColor(Color.yellow);\r\n enemies.get(i).getBullets().get(j).deflect(this.player.getX() + this.player.getW()/2, this.player.getY() + this.player.getH()/2);\r\n\r\n player.getBullets().add(enemies.get(i).getBullets().get(j));\r\n\r\n enemies.get(i).getBullets().remove(enemies.get(i).getBullets().get(j)); //removes bullet\r\n\r\n\r\n k++;\r\n j--;\r\n //enemies.get(i).getBullets().get(j).setVisible(false);\r\n }\r\n }\r\n }\r\n }\r\n\r\n\r\n for(int i = 0; i < boss1.getBullets().size(); i++) {\r\n\r\n\r\n if (collide(player.getBullets().get(k), boss1.getBullets().get(i)) && boss1.getBullets().get(i).isVisible()) {\r\n\r\n System.out.println(\"boss bullets colliding\");\r\n player.getBullets().get(k).setVisible(false);\r\n boss1.getBullets().get(i).setColor(Color.yellow);\r\n boss1.getBullets().get(i).deflect(this.player.getX() + this.player.getW()/2, this.player.getY() + this.player.getH()/2);\r\n player.getBullets().add(boss1.getBullets().get(i));\r\n boss1.getBullets().remove(boss1.getBullets().get(i));\r\n k++;\r\n i--;\r\n\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Boss bullet and player collision\r\n\r\n for(Bullet b : boss1.getBullets() ){\r\n\r\n\r\n if(collide(player, b) && player.isVisible() && b.isVisible()){\r\n b.setVisible(false);\r\n player.setHealth(player.getHealth() - b.getDamage());\r\n }\r\n }\r\n\r\n\r\n // Power up collision\r\n\r\n for(PowerUp p : powerUps){\r\n\r\n if(collide(player, p) && p.isVisible()){\r\n\r\n p.executeEffect(this.player);\r\n p.setVisible(false);\r\n }\r\n }\r\n\r\n\r\n\r\n // Deleting out of bound bullets\r\n for(int i = 0; i < player.getBullets().size(); i++){\r\n if(player.getBullets().get(i).getY() < 0 || player.getBullets().get(i).getY() > GameWorld.SCREEN_H ||\r\n player.getBullets().get(i).getX()< 0 || player.getBullets().get(i).getX() > GameWorld.SCREEN_W) {\r\n\r\n player.getBullets().remove(player.getBullets().get(i));\r\n }\r\n }\r\n\r\n }", "void checkCol() {\n Player player = gm.getP();\n int widthPlayer = (int) player.getImg().getWidth();\n int heightPlayer = (int) player.getImg().getHeight();\n Bullet dummyBuullet = new Bullet();\n int widthBullet = (int) dummyBuullet.getImg().getWidth();\n int heightBullet = (int) dummyBuullet.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n // the bullet must be an enemy bullet\n if (bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the bullet location is inside the rectangle of player\n if ( Math.abs( bullet.getX() - player.getX() ) < widthPlayer / 2\n && Math.abs( bullet.getY() - player.getY() ) < heightPlayer / 2 ) {\n // 1) destroy the bullet\n // 2) decrease the life of a player\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n bullet.setActive(false);\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n break;\n }\n }\n }\n // 2'nd case\n // the enemy is hit with player bullet\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n if (!bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the player bullet location is inside the rectangle of enemy\n if (Math.abs(enemy.getX() - bullet.getX()) < (widthBullet / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - bullet.getY()) < (heightBullet / 2 + heightEnemy / 2)) {\n // 1) destroy the player bullet\n // 2) destroy the enemy\n if (destroyedEnemy % 3 == 0 && destroyedEnemy != 0) onlyOnce = 0;\n destroyedEnemy++;\n gm.increaseScore();\n enemy.setActive(false);\n\n\n if(enemy.hTitanium()) {\n gm.getTitaniumList()[gm.getTitaniumIndex()].setX(enemy.getX());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setY(enemy.getY());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setActive(true);\n gm.increaseTitaniumIndex();\n }\n\n if(enemy.hBonus()) {\n \tgm.getBonusList()[gm.getBonusIndex()].setX(enemy.getX());\n \tgm.getBonusList()[gm.getBonusIndex()].setY(enemy.getY());\n \tgm.getBonusList()[gm.getBonusIndex()].setActive(true);\n \tgm.increaseBonusIndex();\n }\n bullet.setActive(false);\n break;\n }\n }\n }\n }\n }\n\n // 3'rd case\n // the player collided with enemy ship\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n // the condition when the enemy rectangle is inside the rectangle of player\n if (Math.abs(enemy.getX() - player.getX()) < (widthPlayer / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - player.getY()) < (heightPlayer / 2 + heightEnemy / 2)) {\n // 1) destroy the enemy\n // 2) decrease the player's life\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n enemy.setActive(false);\n\n break;\n }\n }\n }\n\n for (Bonus bonus : gm.getBonusList()) {\n if (bonus.isActive()) {\n int widthBonus = (int) bonus.getImg().getWidth();\n int heightBonus = (int) bonus.getImg().getHeight();\n if (Math.abs(bonus.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(bonus.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n bonus.setActive(false);\n if (bonus.getType() == 1) {\n if (player.getLives() < player.getMaxLives()) {\n player.setLives(player.getLives() + 1);\n }\n }\n else{\n superAttack = 1;\n }\n }\n }\n }\n\n for (Titanium titanium : gm.getTitaniumList()) {\n if (titanium.isActive()) {\n int widthBonus = (int) titanium.getImg().getWidth();\n int heightBonus = (int) titanium.getImg().getHeight();\n if (Math.abs(titanium.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(titanium.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n titanium.setActive(false);\n gm.getP().increaseTitanium();\n }\n }\n }\n\n }", "private void killBullet() {\r\n this.dead = true;\r\n }", "private void bulletMoveOffScreen() {\r\n\t\tif(bullet != null && (bullet.getX() > getWidth() || bullet.getX() < 0)){\r\n\t\t\tremove(bullet);\r\n\t\t\tbullet = null;\r\n\t\t}\r\n\t}", "public void avatarShoot()\r\n\t{\r\n\t\tBullet avatarPew = avatar.shoot();\r\n\t\tif (avatarPew!= null)\r\n\t\t{\r\n\t\t\tbullets.add(avatarPew);\r\n\t\t}\r\n\t}", "private void shootLaser() {\n\t\tfor(int i = 0; i<lasers.size(); i++) {\n\t\t\tif(lasers.get(i).getLayoutY() > -lasers.get(i).getBoundsInParent().getHeight() ) { //-37 wenn unterhalb des windows \n\t\t\t\tlasers.get(i).relocate(lasers.get(i).getLayoutX(), lasers.get(i).getLayoutY() - 3); //um 3 pixel nach oben bewegen\n\t\t\t}\n\t\t\telse { //wenn oberhalb des windows \n\t\t\t\t\n\t\t\t\tgamePane.getChildren().remove(lasers.get(i));\n\t\t\t\tlasers.remove(i);\n\t\t\t\tSystem.out.println(lasers.size());\n\t\t\t}\n\t\t}\n\t}", "boolean testBulletExplode(Tester t) {\n return t.checkExpect(\n new Bullet(2, Color.PINK, new MyPosn(50, 50), new MyPosn(0, -8), 1).explode(),\n new ConsLoGamePiece(new Bullet(4, Color.PINK, new MyPosn(50, 50), new MyPosn(8, 0), 2),\n new ConsLoGamePiece(new Bullet(4, Color.PINK, new MyPosn(50, 50), new MyPosn(-8, 0), 2),\n this.mt)))\n && t.checkExpect(\n new Bullet(4, Color.PINK, new MyPosn(100, 100), new MyPosn(0, 4), 2).explode(),\n new ConsLoGamePiece(\n new Bullet(6, Color.PINK, new MyPosn(100, 100), new MyPosn(4, 0), 3),\n new ConsLoGamePiece(\n new Bullet(6, Color.PINK, new MyPosn(100, 100), new MyPosn(-2, 3), 3),\n new ConsLoGamePiece(\n new Bullet(6, Color.PINK, new MyPosn(100, 100), new MyPosn(-2, -3), 3),\n this.mt))))\n && t.checkExpect(\n new Bullet(2, Color.PINK, new MyPosn(50, 50), new MyPosn(0, -8), -1).explode(),\n new MtLoGamePiece());\n }", "public void shootAimingBullet(){\n bossBullet = new BossBullet(bossBulletImage,this.getXposition() + 100, this.getYposition() + 100, 8, player, true);\n bulletList.add(bossBullet);\n }", "public Map<Pair<ID, ID>, List<Image>> getBulletImages() {\n return bulletImages;\n }", "@Override\n\tpublic List<Unit> getUnits() {\n\t\tList<Unit> units = new LinkedList<Unit>();\n\t\tfor (GameCoordinate gameCoordinate : unitPositions) {\n\t\t\tUnit unit = getUnit(gameCoordinate);\n\t\t\tif (!unit.isDead()) {\n\t\t\t\tunits.add(getUnit(gameCoordinate));\n\t\t\t}\n\t\t}\n\t\treturn units;\n\t}", "List<Velocity> initialBallVelocities();", "@Override\n\tpublic List<ESFInstructsShootingDirector> findAll()\n\t\tthrows SystemException {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "java.util.List<com.rpg.framework.database.Protocol.Monster> \n getMonstersList();", "java.util.List<com.rpg.framework.database.Protocol.Monster> \n getMonstersList();", "public void update(int delta)\n\t{\n\t\tpause = Math.max(0, pause - 1);\n\t\tfor(int i = 0; i < bullets.size(); i++)\n\t\t{\n\t\t\tboolean shoot = bullets.get(i).updateBullet(delta);\n\t\t\tif(shoot)\n\t\t\t{\n\t\t\t\t//bullets.get(i).killInstance();\n\t\t\t\tbullets.remove(i);\n\t\t\t}\n\t\t}\n\t}", "private void bulletCollisionWithObject() {\r\n\t\tif(bullet != null) {\r\n\t\t\tGObject collider = getElementAt(bullet.getX() -1 , bullet.getY() + 1);\r\n\t\t\tif (dragon1 != null && collider == dragon1) {\r\n\t\t\t\thit(dragon1);\r\n\t\t\t}\r\n\t\t\tif(dragon2 != null && collider == dragon2) {\r\n\t\t\t\thit(dragon2);\r\n\t\t\t}\r\n\t\t\tif(mehran != null && collider == mehran && bullet.getY() > mehran.getY() + mehran.getHeight() / 2.0) {\r\n\t\t\t\thit(mehran);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "ArrayList<Sprite> getSpriteArray();", "public void update()\n\t{\n\t\tgameTime++;\n\t\tfor(int i = 0; i<gameObj.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < gameObj[i].size(); j++)\n\t\t\t{\n\t\t\t\t/*If the object implements movable\n\t\t\t\t * call the move method in each object\n\t\t\t\t */\n\t\t\t\tif(gameObj[i].get(j) instanceof Imovable)\n\t\t\t\t\t((MovableObject)gameObj[i].get(j)).move();\n\t\t\t\t/*call CheckBlink() method in SpaceStation\n\t\t\t\t * if the time % blinkRate == 0\n\t\t\t\t * the visibility with be switched\n\t\t\t\t */\n\t\t\t\tif(gameObj[i].get(j) instanceof SpaceStation)\n\t\t\t\t\t((SpaceStation)gameObj[i].get(j)).checkBlink(gameTime);\n\t\t\t\t/*check if missiles are out of fuel\n\t\t\t\tand remove if fuel = 0\n\t\t\t\t*/\n\t\t\t\tif(gameObj[i].get(j) instanceof Missile)\n\t\t\t\t\tif(((Missile)gameObj[i].get(j)).getFuel() <= 0)\n\t\t\t\t\t\tgameObj[i].remove(j);\n\t\t\t}\n\t\t}\t\t\n\t\tSystem.out.println(\"World updated\");\n\t}", "@Override\r\n public void init(GameContainer gc) throws SlickException {\r\n\r\n \tbulletsToRemove = new ArrayList<Body>();\r\n \tbulletsToAdd = new ArrayList<Float[]>();\r\n \tbulletList = new ArrayList<Bullet>();\r\n \t\r\n \t//Set camera coordinates and size.\r\n viewport = new Rectangle(0, 0, 1024, 600);\r\n \r\n //Load our map. (Made in a program called TILED)\r\n map1 = new TiledMap(\"data/2.tmx\");\r\n \r\n \r\n //Create our World, enter a gravity (100 default, bullets have a gravity variable of this*0.05)\r\n Vec2 gravity = new Vec2(0, 100);\r\n world = new World(gravity);\r\n \r\n //Create 2 players.\r\n //Player 1\r\n player1 = new Player(5, 180, 4, 12, 11, 40, 40, \"data/temp2.png\", 50);\r\n player1.getAnimation(Player.IDLE_LEFT).start();\r\n \r\n //Player 2\r\n player2 = new Player(15, 180, 4, 12, 11, 40, 40, \"data/temp2.png\", 50);\r\n player2.getAnimation(Player.IDLE_LEFT).start();\r\n \r\n hpbar = new Image(\"data/healthbar.png\");\r\n \r\n //If we want multiplayer, connect to the server.\r\n if(multiplayer) {\r\n \t//Connecting to someone\r\n \tisHosting = false;\r\n \tmyPlayer = player2;\r\n \thisPlayer = player1;\r\n \tthisClient = new BFClient(myPlayer, hisPlayer, host, port);\r\n \tstatus = \"Connected to server\";\r\n }\r\n else {\r\n \t//Connecting to ourselfs\r\n \tisHosting = true;\r\n \tmyPlayer = player1;\r\n \thisPlayer = player2;\r\n \tnew BFServer(true);\r\n \tthisClient = new BFClient(myPlayer, hisPlayer, host, port);\r\n \tstatus = \"Local server online\";\r\n }\r\n \r\n //Set player2's friction to only about half of ours, this will reduce \"lag\" and simulate running better.\r\n FixtureDef fd = hisPlayer.getFixture();\r\n fd.friction = 2;\r\n hisPlayer.getBody().createFixture(fd);\r\n \r\n //Get collision layer from map\r\n int collisionLayerIndex = map1.getLayerIndex(\"collision\");\r\n\r\n //Create our collision blocks in the physics engine.\r\n for(int row=0; row<map1.getWidth(); row++) {\r\n \tfor(int col=0; col<map1.getHeight(); col++) {\r\n \t\tif(map1.getTileId(row, col, collisionLayerIndex)==1) {\r\n \t\t\tBodyDef groundBodyDef = new BodyDef();\r\n \t\t\tgroundBodyDef.position.set(row*2, col*2);\r\n \t\t\tBody groundBody = world.createBody(groundBodyDef);\r\n \t\t\tPolygonShape groundBox = new PolygonShape();\r\n \t\t\tgroundBox.setAsBox(1, 1, new Vec2(1, 1), 0);\r\n \t\t\tgroundBody.createFixture(groundBox, 0);\r\n \t\t}\r\n \t}\r\n }\r\n \r\n\r\n //Setup physics world\r\n timeStep = 1.0f/60.0f;\r\n velocityIterations = 6;\r\n positionIterations = 2;\r\n \r\n //Add a new collision listener to our world.\r\n world.setContactListener(new BFContactListener());\r\n \r\n //Add Keylistener to our GameContainer.\r\n gc.getInput().addKeyListener(keylistener);\r\n \r\n //Physics debug draw. (DEPRECATED. I'm using JBox2d-2.3.0 SNAPSHOT, this debugdraw hasn't been updated for it yet)\r\n \r\n //Slick2dDebugDraw sDD = new Slick2dDebugDraw(gc.getGraphics(), gc);\r\n //sDD.setFlags(0x0001); //Setting the debug draw flags, draw polygons, no joints.\r\n //world.setDebugDraw(sDD);\r\n }" ]
[ "0.70579994", "0.6763896", "0.6715682", "0.665502", "0.66469204", "0.6559085", "0.6447752", "0.64438236", "0.6415278", "0.63409775", "0.63139606", "0.6283662", "0.6233119", "0.6216834", "0.6208461", "0.61205584", "0.60456085", "0.5956045", "0.59281874", "0.58920693", "0.5878634", "0.58770365", "0.5843612", "0.5840866", "0.5838636", "0.58063626", "0.57884616", "0.5765919", "0.57625866", "0.5737188", "0.571943", "0.5706306", "0.56922954", "0.5690292", "0.5684481", "0.5676622", "0.56634384", "0.56536114", "0.5634021", "0.5630713", "0.56174386", "0.5612497", "0.56069577", "0.56068516", "0.560568", "0.5571517", "0.55652153", "0.555441", "0.5554402", "0.5544353", "0.5543894", "0.55277896", "0.55226964", "0.55197996", "0.55178714", "0.55174714", "0.55169505", "0.5516074", "0.5508844", "0.5482614", "0.5476922", "0.54705024", "0.5467853", "0.54662406", "0.54534626", "0.54522467", "0.5437371", "0.5430851", "0.5426924", "0.5421793", "0.5421672", "0.5416467", "0.541248", "0.5406163", "0.539833", "0.53925186", "0.53760743", "0.5371911", "0.53185195", "0.5305646", "0.5273592", "0.52620256", "0.52563816", "0.5253015", "0.5228096", "0.5227873", "0.5208375", "0.5207376", "0.5206732", "0.5195496", "0.5193432", "0.51525086", "0.5148067", "0.514729", "0.5147243", "0.5146265", "0.51364243", "0.51354903", "0.51323885", "0.51298356" ]
0.60706836
16
TODO Autogenerated method stub
@Override public String getPath() { return "./gfx/weapon.png"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int getZ() { return 1000; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public Position getPosition() { return player.getPosition(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public float getRotation() { return player.getRotation(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public float getCenterOfRotationX() { return 0.25f; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public float getCenterOfRotationY() { return 0.5f; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean isCameraRelated() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
/Catalog catalog = LibApp.getInstance().getCurrentCatalog(); String locationName = catalog.getResourcedValue(catName, catalog.getLocationNamesMapping(), locationId);
public String getShowLocationName() { return showLocationName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native final String location() /*-{\n\t\treturn this[\"location\"];\n\t}-*/;", "java.lang.String getLocation();", "String getLocation();", "String getLocation();", "String getLocation();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "public String getLocationCategory(){\r\n return this.locationCategory;\r\n }", "public abstract String getLocation();", "public String getLocationName(){\n return myLoc;\n }", "@DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:58:12.107 -0500\", hash_original_method = \"958E0B7EB30F5353747022B831D2FD74\", hash_generated_method = \"ADF84B7CD584A3086AA314B699B00CEF\")\n \npublic String getLocation() {\n return location;\n }", "public String getLocation() { return location; }", "public String getLocation() { return location; }", "public String getLocation(){\n return this.location;\n }", "String getIPGeolocationCityEmbeddedResource();", "String getLocationLabel();", "public java.lang.String getLocation() {\n return location;\n }", "public String getLocation(){\r\n return location;\r\n }", "public String getLocation(){\n return location;\n }", "public String getLocation(){\r\n return Location;\r\n }", "public java.lang.String getLocation() {\n return location;\n }", "String getCatalogName();", "com.google.ads.googleads.v14.common.LocationInfo getLocation();", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:location\")\n public String getLocation() {\n return getProperty(LOCATION);\n }", "private static native String getLocation(Element elem)\n /*-{\n return elem.getAttribute(\"location\");\n }-*/;", "@Override\n public String getLocation() {\n return location;\n }", "public String getLocation() throws ServiceLocalException {\n\t\treturn (String) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.Location);\n\t}", "public String getLocation() {\r\n return location;\r\n }", "public String getLocation() {\n return location;\n }", "public String getLocation()\n {\n return location;\n }", "protected String getLocation(){\r\n return this.location;\r\n }", "@Override\n\tpublic String getLocation() {\n\t\treturn location;\n\t}", "public String getLocation() {\r\n\t\treturn location; \r\n\t}", "String getIPGeolocationCountryEmbeddedResource();", "public int getLocation()\r\n {\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\r\n return location;\r\n }", "@Override\n\tpublic String getLocation() {\n\t\treturn this.location;\n\t}", "public String getLocationName() {\n return locationName;\n }", "public abstract String getDisplayLocation();", "public java.lang.String getLocationtype() throws java.rmi.RemoteException;", "com.google.ads.googleads.v6.resources.LocationView getLocationView();", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\r\n\t\treturn location;\r\n\t}", "public String catalog() {\n return catalogName;\n }", "public String catalog() {\n return catalogName;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n\t\treturn location;\n\t}", "@AutoEscape\n\tpublic String getLocation();", "public String location() {\n return this.location;\n }", "public String location() {\n return this.location;\n }", "public String getStore_location()\n {\n \treturn store_location;\n }", "public L getDocumentLocation();", "public String getLocationName(Context context){\n // just return the location name if it has already been set, either auto-generated or custom-set\n if (!locationName.equals(\"\") || isCustomLocationName) {\n return locationName;\n }\n\n Geocoder geocoder = new Geocoder(context);\n try {\n // extract the location name using the Address created from the latitude and longitude coordinates\n List<Address> addressName = geocoder.getFromLocation(getLatitude(), getLongitude(), 1);\n locationName = buildLocationName(addressName.listIterator().next());\n }\n catch (Exception e) {\n // set location name to null if there was an error\n locationName = \"\";\n }\n return locationName;\n }", "public Catalog getCatalog();", "public String getLocationName() {\n\n\t\treturn this.locationName;\n\n\t}", "public String getLocation() {\n return location;\n }", "public String getLocationCode() {\n\t\treturn locationCode.get(this.unitID.substring(0, 2));\n\t}", "protected String getLocationInfo() {\n\t\tString locInfo = \"\";\n\t\tif (currParseLocation != null) {\n\t\t\tlocInfo = StreamsResources.getStringFormatted(StreamsResources.RESOURCE_BUNDLE_NAME,\n\t\t\t\t\t\"ConfigParserHandler.at.line\", currParseLocation.getLineNumber());\n\t\t}\n\t\treturn locInfo;\n\t}", "public int getLocation()\r\n {\r\n return location;\r\n }", "Catalog getCatalog();", "Catalog getCatalog();", "public final String getLocation() {\n return location;\n }", "public java.lang.String getLOC() {\r\n return LOC;\r\n }", "public String getLocationCd() {\n return _locationCd;\n }", "public java.lang.String getStrCatalog()\n\t{\n\t\treturn strCatalog;\n\t}", "public String getLocationCode() {\n return normalizedBic.substring(LOCATION_CODE_INDEX, LOCATION_CODE_INDEX + LOCATION_CODE_LENGTH);\n }", "public String getLocation() {\n\t\t\treturn location;\n\t\t}", "public String getLBR_ProductSource();", "String getLocation(boolean detail);", "Report.LocationOuterClass.Location.LocationType getLocationtype();", "public List<LocVo> selectLoc(String catname) {\n\t\treturn sqlSession.selectList(\"product.selectLoc\", catname);\n\t}", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"us/las\", value = \"Location of that image/snapshot. \")\n\n public String getLocation() {\n return location;\n }", "public String getLocationPath();", "@Override\r\n\tpublic String toString() {\r\n\t\treturn getLocation();\r\n\t}", "public URI getLocation()\r\n/* 293: */ {\r\n/* 294:441 */ String value = getFirst(\"Location\");\r\n/* 295:442 */ return value != null ? URI.create(value) : null;\r\n/* 296: */ }", "@Override\n\tpublic String getLocation() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLocation() {\n\t\treturn null;\n\t}", "Location getLocation();", "Location getLocation();" ]
[ "0.66332626", "0.6621894", "0.6433458", "0.6433458", "0.6433458", "0.6330677", "0.6330677", "0.6330677", "0.6330677", "0.6330677", "0.6330677", "0.6330677", "0.6330677", "0.6314807", "0.6244882", "0.6235153", "0.6228648", "0.61992615", "0.61992615", "0.6184785", "0.61806446", "0.6178", "0.61553663", "0.61512625", "0.6135423", "0.60966337", "0.604605", "0.6044371", "0.6024818", "0.60131353", "0.59905", "0.59872276", "0.598722", "0.59835047", "0.59800404", "0.5945303", "0.5944465", "0.5883893", "0.58562523", "0.58479595", "0.58453625", "0.5844003", "0.5844003", "0.5844003", "0.5844003", "0.5844003", "0.58428556", "0.5835698", "0.5826489", "0.58192414", "0.5800138", "0.5798034", "0.5787122", "0.5787122", "0.5787122", "0.5787122", "0.5787122", "0.5787122", "0.5787122", "0.5787122", "0.5787122", "0.5787122", "0.5787122", "0.5787122", "0.57758343", "0.5763939", "0.5763939", "0.57631695", "0.5757231", "0.57532126", "0.57279295", "0.57279295", "0.572616", "0.5716987", "0.5710839", "0.5705205", "0.5701993", "0.5681768", "0.56760937", "0.56755996", "0.56600976", "0.56585866", "0.56585866", "0.5636364", "0.5633004", "0.562458", "0.56029934", "0.5593492", "0.55877966", "0.5587248", "0.55762875", "0.5563139", "0.5562121", "0.55591375", "0.5556023", "0.5555656", "0.55528647", "0.5534749", "0.5534749", "0.5525841", "0.5525841" ]
0.0
-1
/validateName(name); LocalDateTime now = LocalDateTime.now(); Account account = new Account(5000.0, now); entityManager.persist(account); Set set = new HashSet(); Customer customer = new Customer(name, account,set); dao.add(customer); return customer;
@Transactional @Override public Customer createCustomer(String name) { validateName(name); LocalDateTime now = LocalDateTime.now(); Account account = new Account(5000.0, now); accountRepository.save(account); Set<Item> set = new HashSet<>(); Customer customer = new Customer(name, account,set); custRepository.save(customer); return customer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PostMapping(\"/account\")\n public ResponseEntity addAccount(@RequestParam String name, @RequestParam Instant timestamp) {\n try {\n Account account = Account.create(name, timestamp);\n account = repository.save(account);\n return ResponseEntity.ok().body(account);\n } catch (JpaSystemException e) {\n return ResponseEntity.badRequest().body(e.getMessage());\n } catch (Exception e) {\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage());\n }\n }", "Customer createCustomer();", "Customer createCustomer();", "Customer createCustomer();", "Customer createCustomer();", "AccountModel addByCustomer(AccountModel account,String customerId) throws AccountException, CustomerException;", "Customer saveCustomer(Customer customer) throws CustomerExistsException;", "Account create();", "public Customer saveCustomerDetails(Customer customer);", "void createACustomer() {\r\n\t\tSystem.out.println(\"\\nCreating a customer:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}", "Account save(Account account);", "Customers createCustomers();", "public Customer save(final Customer customer) {\n\t\tAssert.notNull(customer);\r\n\t\tBoolean isCreating = null;\r\n\r\n\t\tAssert.isTrue(!(customer.getEmail().endsWith(\"@\") || customer.getEmail().endsWith(\"@>\")));\r\n\r\n\t\tif (customer.getId() == 0) {\r\n\t\t\tisCreating = true;\r\n\t\t\tcustomer.setSuspicious(false);\r\n\r\n\t\t\t//comprobamos que ningún actor resté autenticado (ya que ningun actor puede crear los customers)\r\n\t\t\t//this.serviceUtils.checkNoActor();\r\n\r\n\t\t} else {\r\n\t\t\tisCreating = false;\r\n\t\t\t//comprobamos que su id no sea negativa por motivos de seguridad\r\n\t\t\tthis.serviceUtils.checkIdSave(customer);\r\n\r\n\t\t\t//este customer será el que está en la base de datos para usarlo si estamos ante un customer que ya existe\r\n\t\t\tCustomer customerBD;\r\n\t\t\tAssert.isTrue(customer.getId() > 0);\r\n\r\n\t\t\t//cogemos el customer de la base de datos\r\n\t\t\tcustomerBD = this.customerRepository.findOne(customer.getId());\r\n\r\n\t\t\t//Si el customer que estamos guardando es nuevo (no está en la base de datos) le ponemos todos sus atributos vacíos\r\n\r\n\t\t\t//\t\t\tcustomer.setUserAccount(new UserAccount());\r\n\t\t\t//\t\t\tfinal Authority authority = new Authority();\r\n\t\t\t//\t\t\tauthority.setAuthority(Authority.CUSTOMER);\r\n\t\t\t//\t\t\tcustomer.getUserAccount().addAuthority(authority);\r\n\t\t\t//los atributos que no pueden estar vacíos\r\n\r\n\t\t\tcustomer.setSuspicious(customerBD.getSuspicious());\r\n\t\t\tcustomer.setUserAccount(customerBD.getUserAccount());\r\n\r\n\t\t\t//Comprobamos que el actor sea un Customer\r\n\t\t\tthis.serviceUtils.checkAuthority(\"CUSTOMER\");\r\n\t\t\t//esto es para ver si el actor que está logueado es el mismo que se está editando\r\n\t\t\tthis.serviceUtils.checkActor(customer);\r\n\r\n\t\t}\r\n\t\tif ((!customer.getPhone().startsWith(\"+\")) && StringUtils.isNumeric(customer.getPhone()) && customer.getPhone().length() > 3) {\r\n\t\t\tfinal Settings settings = this.settingsService.findSettings();\r\n\t\t\tcustomer.setPhone(settings.getCountryCode() + customer.getPhone());\r\n\t\t}\r\n\t\tCustomer res;\r\n\t\t//le meto al resultado final el customer que he ido modificando anteriormente\r\n\t\tres = this.customerRepository.save(customer);\r\n\t\tthis.flush();\r\n\t\tif (isCreating)\r\n\t\t\tthis.folderService.createSystemFolders(res);\r\n\t\treturn res;\r\n\t}", "void createAndManageCustomer() {\r\n\t\tSystem.out.println(\"\\nCreating and managing a customer:\");\r\n\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c = new Customer2(\"Sami\", \"Cemil\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c);\r\n\t\ttx.commit();\r\n\t\tSystem.out.println(c);\r\n\t\t\r\n\t\ttx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tc.setLastName(\"Kamil\");\r\n\t\ttx.commit();\r\n\t\tSystem.out.println(c);\r\n\t\tem.close();\r\n\t}", "private Customer storeCustomer(Customer customer){\n customerRestService.createCustomer(customer);\n return customer;\n }", "int createAccount(Account account);", "public ResponseEntity<?> createCustomer(customer.controller.Customer customer);", "public void create(Customer customer) {\r\n this.entityManager.persist(customer);\r\n }", "CustomerOrder save(CustomerOrder customerOrder);", "public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}", "void save(Account account);", "public interface BookCustomerService {\n public List<BookCustomerInfoQuery> query(BookCustomer customer);\n\n public BookCustomer queryOne(BookCustomer customer);\n\n public void insert(BookCustomer customer) throws Exception;\n\n\n public void deleteById(BookCustomer bookCustomer);\n\n @Transactional\n public BaseResult insertOrder(String areaId,String price,String payType,String phone,String date,String person,String startTime,String endTime) throws Exception;\n ;\n}", "@Override\r\n\tpublic Customer addCustomer(Customer customer) {\r\n\r\n\t\tif (!inputValidator.nameValidator(customer.getName()))\r\n\t\t\tthrow new EntityCreationException(\"Enter a Valid Customer Name.\");\r\n\t\tif (!inputValidator.userIdValidator(customer.getUserId()))\r\n\t\t\tthrow new EntityCreationException(\"Enter a Valid UserId.\");\r\n\t\tif (!inputValidator.contactValidator(customer.getContactNo()))\r\n\t\t\tthrow new EntityCreationException(\"Enter a valid Contact Number.\");\r\n\t\tif (!inputValidator.emailValidator(customer.getEmail()))\r\n\t\t\tthrow new EntityCreationException(\"Enter a valid Email.\");\r\n\t\tCustomer customer2 = customerRepository.save(customer);\r\n\t\treturn customer2;\r\n\r\n\t}", "private void createCustomer(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n String customerName = request.getParameter(\"CustomerName\");\n System.out.println(\"them mới id\"+ customerName);\n String customerBir = request.getParameter(\"CustomerBir\");\n String gender = request.getParameter(\"Gender\");\n int cusIdNum =Integer.parseInt(request.getParameter(\"CusIdNum\"));\n int cusTelNum = Integer.parseInt(request.getParameter(\"CusTelNum\"));\n String cusEmail = request.getParameter(\"CusEmail\");\n String address = request.getParameter(\"Address\");\n String customerTypeId = request.getParameter(\"CustomerTypeId\");\n System.out.println(\"them mới id\"+ customerName);\n Customer customer = new Customer(customerName,customerBir,gender,cusIdNum,cusTelNum,cusEmail,address, new CustomerType(customerTypeId));\n customerService.save(customer);\n showCustomerList(request,response);\n System.out.println(\"them mới\"+ customer);\n }", "Set<AccountModel> findAllByCustomerId(String customerId) throws CustomerException;", "AccountModel save(AccountModel account) throws AccountException;", "boolean save(Account account);", "private Customer addCustomer(String title, String firstName, String lastName, String phone, String email, String addressLine1, String addressLine2, String city, String state, String postCode, String country) {\r\n out.print(title);\r\n out.print(firstName);\r\n out.print(lastName);\r\n out.print(phone);\r\n out.print(email);\r\n out.print(addressLine1);\r\n out.print(addressLine2);\r\n out.print(city);\r\n out.print(state);\r\n out.print(postCode);\r\n out.print(country);\r\n\r\n Customer customer = new Customer();\r\n customer.setCustomerTitle(title);\r\n customer.setCustomerFirstName(firstName);\r\n customer.setCustomerLastName(lastName);\r\n customer.setCustomerPhone(phone);\r\n customer.setCustomerEmail(email);\r\n customer.setCustomerAddressLine1(addressLine1);\r\n customer.setCustomerAddressLine2(addressLine2);\r\n customer.setCustomerCity(city);\r\n customer.setCustomerState(state);\r\n customer.setCustomerPostCode(postCode);\r\n customer.setCustomerCountry(country);\r\n\r\n em.persist(customer);\r\n return customer;\r\n }", "void addBankAccountDetails(BankAccountDTO bankAccountDTO,String name)throws EOTException;", "public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic boolean createAccount(Account account) {\n\t\treturn dao.createAccount(account);\r\n\t}", "public void saveAccount() {\n\n }", "@Override\r\n\tpublic Account findByName(String name) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic void createAccount(Customer customer) {\n\t\tcustMap.put(customer.getMobileNo(),customer);\r\n\t\t\r\n\t}", "public Customer(String name) {\n this.name=name;\n }", "public boolean addCustomer(Customer customer) throws DatabaseOperationException;", "AccountModel add(AccountModel account) throws AccountException;", "void insert(Customer customer);", "@Override\n\tpublic void create(Customer t) {\n\n\t}", "@Override\n\tpublic void saveCustomer(Customer theCustomer){\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n//\t\tcurrentSession.createQuery(\"from Customer c where c.firstName=\"+ theCustomer.getFirstName()).executeUpdate();\n\n\t\tQuery<Customer> query =\n\t\t\t\tcurrentSession.createQuery(\"select c from Customer c \"+\n\t\t\t\t\t\t\t\t\"where c.firstName =:theCustomerFirstName and \" +\n\t\t\t\t\t\t\t\t\"c.lastName =:theCustomerLastName and \" +\n\t\t\t\t\t\t\t\t\"c.email=:theCustomerEmail\",\n\t\t\t\t\t\t Customer.class);\n\n\t\t// set parameter on query\n\t\tquery.setParameter(\"theCustomerFirstName\", theCustomer.getFirstName());\n\t\tquery.setParameter(\"theCustomerLastName\", theCustomer.getLastName());\n\t\tquery.setParameter(\"theCustomerEmail\", theCustomer.getEmail());\n\n\t\ttry {\n\t\t\t// execute query and get instructor\n\t\t\tCustomer temp = query.getSingleResult();\n\t\t}\n\t\tcatch (Exception exe){\n\t\t\tlogger.log(Level.INFO,\"Already exists!!\");\n\t\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t\t}\n\t}", "public boolean makeNewAccount(String name, BigDecimal balance, int type)\n throws SQLException, ConnectionFailedException, DatabaseInsertException {\n if (currentCustomerAuthenticated && currentUserAuthenticated) {\n int id = DatabaseInsertHelper.insertAccount(name, balance, type);\n EnumMapRolesAndAccounts map = new EnumMapRolesAndAccounts();\n map.createEnumMap();\n // find out what account type the account is and create and add that account to the customer\n if (type == map.accountTypes.get(AccountTypes.CHEQUING)) {\n ChequingAccount chequing = new ChequingAccountImpl(id, name, balance);\n currentCustomer.addAccount(chequing);\n DatabaseInsertHelper.insertUserAccount(currentCustomer.getId(), id);\n System.out.println(\"Account ID - \" + id);\n return true;\n } else if (type == map.accountTypes.get(AccountTypes.SAVINGS)) {\n SavingsAccount savings = new SavingsAccountImpl(id, name, balance);\n currentCustomer.addAccount(savings);\n DatabaseInsertHelper.insertUserAccount(currentCustomer.getId(), id);\n System.out.println(\"Account ID - \" + id);\n return true;\n } else if (type == map.accountTypes.get(AccountTypes.TFSA)) {\n TFSA tfsa = new TFSAImpl(id, name, balance);\n currentCustomer.addAccount(tfsa);\n DatabaseInsertHelper.insertUserAccount(currentCustomer.getId(), id);\n System.out.println(\"Account ID - \" + id);\n return true;\n } else if (type == map.accountTypes.get(AccountTypes.RESTRICTEDSAVING)) {\n RestrictedSavingsAccount rsavings = new RestrictedSavingsAccountImpl(id, name, balance);\n currentCustomer.addAccount(rsavings);\n DatabaseInsertHelper.insertUserAccount(currentCustomer.getId(), id);\n System.out.println(\"Account ID - \" + id);\n return true;\n }\n return false;\n }\n System.out.println(\"reached here\");\n throw new ConnectionFailedException();\n }", "@Override\n public void insertAccount() throws Exception {\n\n }", "int insert(Account record);", "int insert(Account record);", "private String createAccount(String name, double amount) {\n\t\tString accountNumber = \"\";\n\t\tAccount account = new Account();\n\t\taccount.setName(name);\n\t\taccount.setAmount(amount);\n\t\t\n\t\tString requestBody = gson.toJson(account);\n\n\t\tRequestSpecification request = RestAssured.given();\n\t\trequest.body(requestBody);\n\t\tResponse response = request.post(\"/account\");\n\t\tif (response.asString() != null && response.asString().contains(\":\")) {\n\t\t\tString responseArr[] = response.asString().split(\":\");\n\t\t\taccountNumber = responseArr[1].trim();\n\t\t}\n\t\treturn accountNumber;\n\t}", "@Test\n public void whenAddingCustomerItShouldReturnTheSavedCustomer() {\n given(repository.saveAndFlush(CUSTOMER1)).willReturn(CUSTOMER2);\n // When adding a CUSTOMER1\n assertThat(controller.addCustomer(CUSTOMER1))\n // Then it should return the CUSTOMER2\n .isSameAs(CUSTOMER2);\n }", "public void addCustomer(CustomerSignup p)\n {\n Session session = this.sessionFactory.getCurrentSession();\n \n session.persist(p);\n \n CustomerLogin cl=new CustomerLogin();\n cl.setUsername(p.getUsername());\n cl.setPassword(p.getPassword());\n cl.setId(p.getId());\n session.persist(cl);\n \n Authorities a = new Authorities();\n a.setUsername(p.getUsername());\n a.setAuthority(\"ROLE_USER\");\n a.setId(p.getId());\n session.saveOrUpdate(a);\n\n session.flush();\n \n logger.info(\"Customer saved successfully, Customer Details=\"+p);\n }", "public Account create(CheckingAccDto checkingAccDto) {\n CheckingAcc checkingAcc;\n Optional<AccountHolder> accountHolder = accountHolderRepository.findById(checkingAccDto.getPrimaryOwnerId());\n if (accountHolder.isPresent()){\n if(Utils.calculateYears(accountHolder.get().getDateOfBirth())<24){\n StudentCheckingAcc studentCheckingAcc = new StudentCheckingAcc(\n accountHolder.get(),\n new Money(checkingAccDto.getBalance()),\n checkingAccDto.getSecretKey());\n if (checkingAccDto.getSecondaryOwnerId() != null){\n Optional<AccountHolder> secondaryOwner = accountHolderRepository.findById(checkingAccDto.getSecondaryOwnerId());\n if (secondaryOwner.isPresent()){\n studentCheckingAcc.setSecondaryOwner(secondaryOwner.get());\n }\n }\n return studentCheckingAccRepository.save(studentCheckingAcc);\n } else {\n checkingAcc = new CheckingAcc (accountHolder.get(),\n new Money(checkingAccDto.getBalance()),\n checkingAccDto.getSecretKey());\n if (checkingAccDto.getSecondaryOwnerId() != null){\n Optional<AccountHolder> secondaryOwner = accountHolderRepository.findById(checkingAccDto.getSecondaryOwnerId());\n if (secondaryOwner.isPresent()){\n checkingAcc.setSecondaryOwner(secondaryOwner.get());\n }\n }\n return checkingAccRepository.save(checkingAcc);\n }\n } else {\n throw new ResponseStatusException(HttpStatus.NOT_FOUND, \"Primary owner not found\");\n }\n }", "UserAccount createUserAccount(User user, double amount);", "public void testGetServiceByName() {\n System.out.println(\"getServiceByName\");\n EntityManager em = emf.createEntityManager();\n ServiceDaoImpl sdao = new ServiceDaoImpl(em);\n Service s = getService(\"low-cost-one\", new Long(99),\n // 1 day\n new Duration(24 * 60 * 60 * 1000));\n\n em.getTransaction().begin();\n em.persist(s);\n em.getTransaction().commit();\n\n assertNotNull(sdao.getServiceByName(\"low-cost-one\").get(0));\n assertEquals(s, sdao.getServiceByName(\"low-cost-one\").get(0));\n }", "@Test\n public void whenValidName_thenEmployeeShouldBeFound() {\n String name = \"alex\";\n Employee found = employeeService.getEmployeeByName(name);\n\n assertThat(found.getName())\n .isEqualTo(name);\n }", "int insert(FinanceAccount record);", "public void createUserAccount(UserAccount account);", "public abstract CustomerOrder save(CustomerOrder entity);", "@Override\n public void run(String... strings) throws Exception {\n Employee employee = new Employee(\"Stamat\",\"Dobrev\", BigDecimal.valueOf(1125.25),new Date());\n serviceEmployee.persist(employee);\n }", "public interface CustomerService {\n\n\t/**\n\t * Find customer by given id.\n\t * \n\t * @param id the given id.\n\t * @return the customer.\n\t * @throws IllegalStateException if no customer is available by the given id.\n\t */\n\tCustomerDto findById(Long id);\n\t\n\t/**\n\t * Find customer by given emailAddress.\n\t * \n\t * @param customerEmailDto the given emailAddress.\n\t * @return the customer.\n\t * @throws IllegalStateException if no customer is available by the given\n\t * emailAddress.\n\t */\n\tCustomerDto findByEmailAddress(CustomerEmailDto customerEmailDto);\n\t\n\t/**\n\t * Create a new customer in db.\n\t * \n\t * @param customerEntity the given customer to persist.\n\t * @return the created customerEntity with new technical id.\n\t */\n\tCustomerDto createCustomer(CustomerEntity customerEntity);\n\t\n\t/**\n\t * Delete customer by given id.\n\t * \n\t * @param id the given user id.\n\t */\n\tvoid deleteCustomerById(Long id);\n\n\t/**\n\t * Updates the given entity. Use the returned instance for further operations as\n\t * the save operation might have changed the entity instance completely.\n\t * \n\t * @param customerDto the edited entity.\n\t * @return the edited dto.\n\t */\n\tCustomerDto updateCustomer(CustomerDto customerDto);\n\t\n\t/**\n\t * Return a list with all customers.\n\t * \n\t * @return a list with all customers.\n\t */\n\tList<CustomerDto> findAll();\n\n}", "@Override\r\n\tpublic int insertNewCustomer(Customer cust) throws CustException {\n\t\tmanager.persist(cust);\r\n\t\treturn 1;\r\n\t}", "public String execute() throws Exception\r\n {\r\n String forwardString = RETURN_ERROR;\r\n\r\n HttpSession session = request.getSession(false);\r\n if (session == null)\r\n {\r\n request.getSession().removeAttribute(USER_STATUS);\r\n forwardString = RETURN_LOGIN_ERROR;\r\n return forwardString;\r\n }\r\n\r\n CustomerServiceImpl customerServiceObject = new CustomerServiceImpl();\r\n\r\n boolean isRecordInserted = false;\r\n\r\n selectedMonth = getCorrspondingMonthNumber();\r\n\r\n customerDob = selectedYear + \"-\" + selectedMonth + \"-\" + selectedDay;\r\n\r\n if (!isLegalDate())\r\n {\r\n request.getSession().setAttribute(\"errors\", getText(\"errors.invalidBirthDate\"));\r\n request.getSession().setAttribute(\"customerID\", customerID);\r\n forwardString = RETURN_ERROR;\r\n return forwardString;\r\n }\r\n\r\n SimpleDateFormat formatter = new SimpleDateFormat(FY);\r\n String financialYear = formatter.format(Calendar.getInstance().getTime());\r\n int currentYear = Integer.parseInt(financialYear);\r\n int underAgeLimitYear = currentYear - 18;\r\n\r\n if (Integer.parseInt(selectedYear) > underAgeLimitYear)\r\n {\r\n request.getSession().setAttribute(\"errors\", getText(\"errors.birthDateLessThanLimit\"));\r\n request.getSession().setAttribute(\"customerID\", customerID);\r\n forwardString = RETURN_ERROR;\r\n return forwardString;\r\n }\r\n \r\n if(!(currentCustomerFirstName.equalsIgnoreCase(customerFirstName) && currentCustomerLastName.equalsIgnoreCase(customerLastName)))\r\n {\r\n String newCustomerName = customerFirstName + \" \" + customerLastName;\r\n \r\n String dbCustomerID = customerServiceObject.getCustomerIDFromName(newCustomerName);\r\n if(dbCustomerID != null)\r\n {\r\n request.getSession().setAttribute(\"errors\", getText(\"errors.customerAlreadyPresent\"));\r\n request.getSession().setAttribute(\"customerID\", customerID);\r\n forwardString = RETURN_ERROR;\r\n return forwardString;\r\n }\r\n }\r\n\r\n isRecordInserted = customerServiceObject.updateCustomerInformation(customerID, customerFirstName,\r\n customerLastName, customerDob, customerContactNumber);\r\n\r\n if (isRecordInserted)\r\n {\r\n forwardString = RETURN_SUCCESS;\r\n }\r\n\r\n return forwardString;\r\n }", "@Override\n\tpublic void saveCustomer(AMOUNT theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// save the customer ... \n\t\tcurrentSession.save(theCustomer);\n\t}", "@Test\n\tpublic void createAccTest() {\n\t\tCustomer cus = new Customer(\"wgl\", myDate, \"Beijing\");\n\t\tbc.createAccount(cus, 1);\n\t\tassertEquals(1, cus.getAccList().size());\n\t}", "public void insertAccount(Account account){\n\t\tSession s=sf.openSession();\n\t\tTransaction tx=s.beginTransaction();\n\t\ts.save(account);\n\t\ttx.commit();\n\t\ts.close();\n\t\t}", "public int createEmployee(Employee emp) {\n\tStudentDAO studentDAO=new StudentDAO();\n\treturn studentDAO. createEmployee(emp);\n}", "@Override\n\tpublic void registerAccount(AccountVO account) {\n\tsession.insert(\"account.registerAccount\",account);\n\t\t\n\t}", "public void save(Customer customer) {\n\t\t//get current session\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t//create account\n\t\tcurrentSession.save(customer);\n\t}", "void createCustomerAccount(String mobileNumber) throws Exception;", "@Test\n public void testAddCustomer() {\n EntityManager em = emf.createEntityManager();\n try {\n facade.addCustomer(new Customer(\"Helle\", \"Andersen\"));\n long count = em.createQuery(\"select c from Customer c\").getResultList().size();\n Assert.assertEquals(4, count);\n } finally {\n em.close();\n }\n }", "AirlineEntity findByName(String name);", "public Customer(String name) {\n this.name = name;\n }", "CustomerDTO getUserForProof(String name,CustomerDTO customerDTO) throws EOTException;", "public interface AccountService {\n\n /**\n * 登录\n * @param mobile\n * @param password\n * @return\n */\n Account login(String mobile, String password);\n\n /**\n * 添加新部门\n * @param deptName\n */\n void saveDept (String deptName) throws ServiceException;\n\n List<Dept> findAllDept();\n\n /**\n * 根据参数查找分页后的list\n * @param map\n * @return\n */\n List<Account> pageByParam(Map<String, Object> map);\n\n /**\n * 根据deptId查找account的总数\n * @param deptId\n * @return\n */\n Long countByDeptId(Integer deptId);\n\n /**\n * 添加新员工\n * @param userName\n * @param mobile\n * @param password\n * @param deptIdArray 部门可以多选\n */\n void saveEmployee(String userName, String mobile, String password, Integer[] deptIdArray);\n\n /**\n * 根据id删除员工\n * @param id\n */\n void delEmployeeById(Integer id);\n\n /**\n * 查找所有user\n * @return\n */\n List<Account> findAllAccount();\n}", "@PostMapping(\"/customers\")\n\tpublic Customer savecustomer(@RequestBody Customer thecustomer) {\n\t\t\n\t\tthecustomer.setId(0); //here 0 is not id, we are telling saveorupdate() DAO method to insert the customer object coz it inserts if id is empty(so give 0 or null)\n\t\tthecustomerService.saveCustomer(thecustomer);\n\t\treturn thecustomer;\n\t}", "public void addCustomer(){\n Customer customer = new Customer();\n customer.setId(data.numberOfCustomer());\n customer.setFirstName(GetChoiceFromUser.getStringFromUser(\"Enter First Name: \"));\n customer.setLastName(GetChoiceFromUser.getStringFromUser(\"Enter Last Name: \"));\n data.addCustomer(customer,data.getBranch(data.getBranchEmployee(ID).getBranchID()));\n System.out.println(\"Customer has added Successfully!\");\n }", "@ResponseBody\n\t@PostMapping(value=\"/create\",produces=MediaType.APPLICATION_JSON_VALUE,consumes=MediaType.APPLICATION_JSON_VALUE)\n\t\t\t\n\tpublic ResponseEntity<String> saveaccount(@RequestBody Account acc){\n\t\taccountServiceJpa.save(acc);\n\t\treturn new ResponseEntity<String>(HttpStatus.OK);\n\t}", "CustomerDto createCustomer(CustomerEntity customerEntity);", "private void createCustomer(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n Customer checkCustomer = CustomerDao.getCustomer(id);\n if (checkCustomer == null) {\n String name = request.getParameter(\"name\");\n String phone = request.getParameter(\"phone\");\n String email = request.getParameter(\"email\");\n Customer newCustomer = new Customer(id, name, phone, email);\n CustomerDao.addCustomer(newCustomer);\n response.sendRedirect(\"/\");\n }\n else {\n String message = \"This ID already exist\";\n String name = request.getParameter(\"name\");\n String phone = request.getParameter(\"phone\");\n String email = request.getParameter(\"email\");\n Customer ExitCustomer = new Customer(id, name, phone, email);\n request.setAttribute(\"message\", message);\n request.setAttribute(\"customer\", ExitCustomer);\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"customer/newCustomer.jsp\");\n dispatcher.forward(request, response);\n }\n }", "@Transactional\n\tpublic String addTransaction(int toAccNo, int fromAccNo, Transaction tran) {\n\t\t\tEntityManager entityManager = getEntityManager();\n\t\t\tAccountdetail acc = (Accountdetail) entityManager.createQuery(\"select a from Accountdetail a where a.accountnumber =: toaccNo\").setParameter(\"toaccNo\", toAccNo ).getSingleResult();\n\t\t\tAccountdetail acc1 = (Accountdetail) entityManager.createQuery(\"select ac from Accountdetail ac where ac.accountnumber =: fromAccNo\").setParameter(\"fromAccNo\", fromAccNo ).getSingleResult();\n\t\t\t\n\t\t\t//Validation -----> The Balance amount should be greater than the Amount Transfered \n\t\t\tif(acc1.getCurrentbalance()>=tran.getAmounttransferred()) {\n\t\t\t\t\ttran.setAccountto(acc);\n\t\t\t\t\ttran.setAccountfrom(acc1);\n\t\t\t\t\tentityManager.merge(tran);\n\t\t\t\t\t\n\t\t\t\t\t//Taking the amount transfered\n\t\t\t\t\tint amt = tran.getAmounttransferred();\n\t\t\t\t\tSystem.out.println(toAccNo);\n\t\t\t\t\t\n\t\t\t\t\t//Also crediting and debiting the amount from the accounts \n\t\t\t\t\tacc.setCurrentbalance(acc.getCurrentbalance()+amt);\n\t\t\t\t\tacc1.setCurrentbalance(acc1.getCurrentbalance()-amt);\n\t\t\t\t\t\n\t\t\t\t\t//Mailing the details of the transaction to the Respective Account Numbers\n\t\t\t\t\tString info_deb = \"Amount debited from your account.\\nAmount -->\"+amt+\"\\nTo Account -->\"+acc.getAccountnumber();\n String info_rec = \"Amount credited to your account.\\nAmount -->\"+amt+\"\\nFrom Account -->\"+acc1.getAccountnumber();\n mailService.sendMail(info_deb, acc1.getCustomerdetail().getEmail());\n mailService.sendMail(info_rec, acc.getCustomerdetail().getEmail());\n \n\t\t\t\t\treturn \"Transaction Inserted\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//If Balance is less than the Amount Transfered \n\t\t\t\telse if(acc1.getCurrentbalance()<tran.getAmounttransferred()) {\n\t\t\t\t\treturn \"insufficient funds\";\n\t\t\t\t}\n\t\t\t\n\t\t\t\t//If the Details is wrong\n\t\t\t\telse {\n\t\t\t\t\treturn \"Wrong details. Please try again\";\n\t\t\t\t}\n\t }", "public void crudOperationStudent(){\n //Retrieve Student\n Student student=entityManager.find(Student.class,2L);\n // persistence Context have Student\n //Retrieve Passport\n Passport passport=student.getPassport();\n // persistence Context have Student,passport\n //Update passport number for student\n passport.setPassportNo(\"ZX132322\");\n // persistence Context have Student, updated-passport\n //update Student details\n student.setAge(25);\n // persistence Context have updated-Student, updated-passport\n entityManager.persist(student);\n\n }", "User createUser();", "public Customer(String name, double initialAmount) { //constructor for our customer class\r\n this.name = name;\r\n addId++;\r\n this.custId=addId;\r\n this.transactions = new ArrayList<>();\r\n balance=initialAmount;\r\n transactions.add(initialAmount);\r\n }", "@Test\r\n public void testRegister1() throws Exception {\r\n String employee_account = System.currentTimeMillis() + \"\";\r\n String employee_name = \"XiaoBo\";\r\n int department_id = 1;\r\n int position_id = 1;\r\n String password = \"admin\";\r\n int status = 1;\r\n String date = \"\";\r\n EmployeeDAOImpl instance = new EmployeeDAOImpl();\r\n int expResult = 1;\r\n Employee result = instance.register(employee_account, employee_name, department_id, position_id, password, status, date);\r\n assertTrue(expResult <= result.getEmployee_id());\r\n }", "public interface AccountService {\n\n List<AccountDO> findAllAccount();\n\n AccountDO findAccountByUserId(long userId);\n\n /**\n * 使用Hmily 事务\n * @param accountDO\n * @return\n */\n @Hmily\n boolean updateAccount(AccountDO accountDO);\n\n}", "@Transactional\n public Employee insert(Employee employee) {\n logger.debug(\"Testing create employee :\");\n return employeeDao.insert(employee);\n }", "@Test\n public void saveAccount(){\n ApplicationContext ac = new AnnotationConfigApplicationContext(SpringConfiguration.class);\n\n AccountService as = ac.getBean(\"accountService\", AccountService.class);\n Account account = new Account();\n account.setName(\"zlsg\");\n account.setMoney(10000.00f);\n as.saveAccount(account);\n }", "@Test\n\n public void create() {\n User user = new User();\n user.setAccount(\"TestUser03\");\n user.setEmail(\"TestUser03@gmail.com\");\n user.setPhoneNumber(\"010-1111-3333\");\n user.setCreatedAt(LocalDateTime.now());\n user.setCreatedBy(\"TestUser3\");\n\n User newUser = userRepository.save(user);\n System.out.println(\"newUser : \" + newUser);\n }", "void openAccount(String name, String address, String cnic, int contact_no, int age, String email_address,\r\n int noOfAccounts, String incomeSource, String AccountType, String securityquestion) {\n\r\n if (bankPolicy.isEligibilityCriteriaFulfilled(age)) {// is customer eligible\r\n System.out.println(\"Criteria fulfilled\");\r\n\r\n boolean newCustomer = isItANewCustomer(cnic);\r\n\r\n if (newCustomer) {// is customer new\r\n Customer C = new Customer(Integer.toString(customers.size() + 1), cnic, name, address, contact_no,\r\n email_address, incomeSource, securityquestion);\r\n // Print and ASK FOR SECURITY QUESTION\r\n System.out.println(\"Its a new Customer\");\r\n System.out.println(\"Password: \" + C.credentials.password);\r\n // add customer to arraylist\r\n customers.add(C);\r\n // save new customer to database\r\n record.SaveCustomer(C);\r\n // save customer credentials to database\r\n record.SaveCredentials(C.credentials, C.customerID);\r\n\r\n }\r\n int index = -1;\r\n for (int i = 0; i < customers.size(); i++) {\r\n if (customers.get(i).CNIC.equals(cnic))\r\n index = i;\r\n }\r\n\r\n Account A = new Account(String.valueOf(accounts.size() + 1), getDateFormat(), AccountType,\r\n \"Pending\", customers.get(index).customerID);\r\n // add account to customer\r\n accounts.add(A);\r\n customers.get(index).customerAccount.add(A);\r\n // save account to database\r\n record.SaveAccount(A);\r\n }\r\n\r\n }", "public void create(Employee employee, Company company, IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "@Override\n\tpublic void save(Customer customer) throws Exception {\n\t\tthis.getHibernateTemplate().save(customer);\n\t}", "public boolean createCustomer() throws ClassNotFoundException, SQLException {\n\t\tString name = KeyboardUtil.getString(\"Enter your name\");\n\t\tString password = KeyboardUtil.getString(\"Enter your password\");\n\t\tString city = KeyboardUtil.getString(\"Enter your city\");\n\t\tString state = KeyboardUtil.getString(\"Enter your state\");\n\t\tint zip = KeyboardUtil.getInt(\"Enter ZIP\");\n\t\tString country = KeyboardUtil.getString(\"Enter your country\");\n\t\t\n\t\tCustomer newCust = new Customer(password, city, state, zip, country);\n\t\ttry {\n\t\t\tConnection con = DAO.getConnection();\n\t\t\tnewCust.setCustomerName(name);\n\t\t\tString insertQuery = \"insert into Customer(Customer_Name, Password, City, State, Zip, Country) values(?, ?, ?, ?, ?, ?)\";\n\t\t\tPreparedStatement stmt = con.prepareStatement(insertQuery);\n\t\t\tstmt.setString(1, newCust.getCusomerName());\n\t\t\tstmt.setString(2, newCust.getPassword());\n\t\t\tstmt.setString(3, newCust.getCity());\n\t\t\tstmt.setString(4, newCust.getState());\n\t\t\tstmt.setInt(5, newCust.getZip());\n\t\t\tstmt.setString(6, newCust.getCountry());\n\t\t\tstmt.executeUpdate();\n\t\t\treturn true;\n\t\t}\n\t\tcatch(InvalidNameException e) {\n\t\t\tSystem.out.println(\"Name should not contain numbers or special characters and should be atleast 6 characters long!\");\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\n\t\treturn false;\n\t}", "public Customer getCustomerByName(String customerName);", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Insert SB Customer 04 and SB Order 01\")\n public void testHibernateSaveCustomer04AndOrder01()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n SBAddressVal01 addressVal01 = SBAddressVal01.of(\n \"Kusumarama Road\",\n \"Seenigama\",\n \"Hikkaduwa\",\n \"Sri Lanka\",\n \"292000\"\n );\n\n SBCustomerOrder order01 = SBCustomerOrder.of(\n \"IN0000001\",\n new Timestamp(new java.util.Date().getTime()),\n 2024.50\n );\n\n SBCustomerOrder order02 = SBCustomerOrder.of(\n \"IN0000002\",\n new Timestamp(new java.util.Date().getTime()),\n 1024.50\n );\n\n SBCustomerOrder order03 = SBCustomerOrder.of(\n \"IN0000003\",\n new Timestamp(new java.util.Date().getTime()),\n 3024.50\n );\n\n SBCustomerOrder order04 = SBCustomerOrder.of(\n \"IN0000004\",\n new Timestamp(new java.util.Date().getTime()),\n 5024.50\n );\n\n SBCustomer04 sbCustomer04 = new SBCustomer04();\n\n sbCustomer04.getCustomer04Orders().add(order01);\n sbCustomer04.getCustomer04Orders().add(order02);\n sbCustomer04.getCustomer04Orders().add(order03);\n sbCustomer04.getCustomer04Orders().add(order04);\n\n sbCustomer04.setCustomer04Email(\"umesh@slmora.com\");\n sbCustomer04.setCustomer04Sex(\"Male\");\n sbCustomer04.setCustomer04FirstName(\"Umesh\");\n sbCustomer04.setCustomer04LastName(\"Gunasekara\");\n sbCustomer04.setCustomer04Nic(\"901521344V\");\n sbCustomer04.setCustomer04Mobile(\"0711233000\");\n try {\n sbCustomer04.setCustomer04Birthday(new SimpleDateFormat(\"dd/MM/yyyy\").parse(\"31/05/1990\"));\n } catch (ParseException e) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n sbCustomer04.setCustomer04Address(addressVal01);\n sbCustomer04.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n sbCustomer04.setRawLastUpdateLogId(1);\n sbCustomer04.setUpdateUserAccountId(1);\n sbCustomer04.setRawActiveStatus(1);\n sbCustomer04.setRawDeleteStatus(1);\n sbCustomer04.setRawShowStatus(1);\n sbCustomer04.setRawUpdateStatus(1);\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n session.save(sbCustomer04);\n transaction.commit();\n System.out.println(\"Added Customer 03: \" + sbCustomer04.getCustomer04FirstName());\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "int insert(MVoucherDTO record);", "@Override\r\n\tpublic boolean createAccount(Account account) throws Exception {\n\t\tboolean flag = false;\r\n\t\ttry {\r\n\t\t\tflag = this.dao.createAccount(account);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow e;\r\n\t\t}finally {\r\n\t\t\tthis.dbc.close();\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "public interface IAccountRepository {\n boolean createAccount(Account account);\n Account getAccount(int customer_id);\n List<Account> getAllAccounts();\n}", "@Test\n public void testGiveAccount() {\n System.out.println(\"giveAccount\");\n String name = \"Gert Hansen\";\n String address = \"Grønnegade 12\";\n String phone = \"98352010\";\n CustomerCtr instance = new CustomerCtr();\n int customerID = instance.createCustomer(name, address, phone);\n String type = \"Visa\";\n int regNo = 39292492;\n int cardNo = 457153253;\n instance.giveAccount(customerID, type, regNo, cardNo);\n Account result = instance.getCustomer(customerID).getAccount();\n assertNotNull(result);\n assertEquals(\"Visa\", result.getType());\n assertEquals(39292492, result.getRegNr());\n assertEquals(457153253, result.getCardNr());\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }", "@Override\n\tpublic Customers create(Customers newcust) {\n\t\tif (newcust.getId()!=null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tCustomers savecust = CustRepo.save(newcust);\n\t\treturn savecust;\n\t}", "@PostMapping(\"createAccount\")\n public String createAccount(@RequestParam int depositAmount, String accountName){\n CheckingAccount account = new CheckingAccount(depositAmount, accountName);\n accounts.add(account);\n currentAccount = account;\n //model.addAttribute(\"accountNumber\", account.getAccountNumber());\n return \"AccountOptions\";\n }", "public Account createAccount(Account account){\n\t\t\n\t\taccount.createdDate = new Date();\n\t\taccount.isActive = true;\n\t\t\n\t\t\n\t\taccount.person = personService.createPerson(account.person);\n\t\taccount.person.personSettings = personalSettingsService.createSettings(account.person.personSettings);\n\t\t\n\t\t\n\t\treturn account;\n\t}", "Customer getCustomerById(int customerId);", "public Customer save(final Customer customer) {\n\t\tAssert.notNull(customer);\n\n\t\t//comprobamos que su id no sea negativa por motivos de seguridad\n\t\tthis.serviceUtils.checkIdSave(customer);\n\n\t\t//este customer será el que está en la base de datos para usarlo si estamos ante un customer que ya existe\n\t\tCustomer customerBD;\n\t\tAssert.isTrue(customer.getId() > 0);\n\n\t\t//cogemos el customer de la base de datos\n\t\tcustomerBD = this.customerRepository.findOne(customer.getId());\n\n\t\t//Si el customer que estamos guardando es nuevo (no está en la base de datos) le ponemos todos sus atributos vacíos\n\t\tif (customer.getId() == 0) {\n\t\t\tcustomer.setBanned(false);\n\t\t\tcustomer.setFixupTasks(new ArrayList<FixupTask>());\n\t\t\tcustomer.setFolders(this.folderService.createSystemFolders(customer));\n\t\t\tcustomer.setReceivedMessages(new ArrayList<Message>());\n\t\t\tcustomer.setSendedMessages(new ArrayList<Message>());\n\t\t\tcustomer.setSocialProfiles(new ArrayList<SocialProfile>());\n\t\t\tcustomer.setSuspicious(false);\n\n\t\t\t//comprobamos que ningún actor resté autenticado (ya que ningun actor puede crear los customers)\n\t\t\tthis.serviceUtils.checkNoActor();\n\n\t\t} else {\n\t\t\tcustomer.setBanned(customerBD.getBanned());\n\t\t\tcustomer.setFixupTasks(customerBD.getFixupTasks());\n\t\t\tcustomer.setFolders(customerBD.getFolders());\n\t\t\tcustomer.setReceivedMessages(customerBD.getReceivedMessages());\n\t\t\tcustomer.setSendedMessages(customerBD.getSendedMessages());\n\t\t\tcustomer.setSocialProfiles(customerBD.getSocialProfiles());\n\t\t\tcustomer.setSuspicious(customerBD.getSuspicious());\n\t\t\tcustomer.setUserAccount(customerBD.getUserAccount());\n\n\t\t\t//Comprobamos que el actor sea un Customer\n\t\t\tthis.serviceUtils.checkAuthority(\"CUSTOMER\");\n\t\t\t//esto es para ver si el actor que está logueado es el mismo que se está editando\n\t\t\tthis.serviceUtils.checkActor(customer);\n\n\t\t}\n\t\tCustomer res;\n\t\t//le meto al resultado final el customer que he ido modificando anteriormente\n\t\tres = this.customerRepository.save(customer);\n\t\treturn res;\n\t}", "public void create(UserValidator account) {\n Account validated = new Account();\n validated.setUsername(account.getUsername());\n validated.setPassword(passwordEncoder.encode(account.getPassword()));\n validated.setFirstName(account.getFirstName());\n validated.setLastName(account.getLastName());\n validated.getAuthorities().add(\"USER\");\n\n this.accountRepository.save(validated);\n }" ]
[ "0.6532466", "0.6477385", "0.6477385", "0.6477385", "0.6477385", "0.6404432", "0.6276533", "0.6156741", "0.61184084", "0.60430723", "0.60343206", "0.59624225", "0.59366894", "0.5911161", "0.5873297", "0.5825317", "0.58189225", "0.5804165", "0.57821095", "0.57671255", "0.57455534", "0.5741184", "0.57094824", "0.57009375", "0.5697618", "0.56973135", "0.5691587", "0.568127", "0.566699", "0.5664731", "0.56555235", "0.5650418", "0.56449664", "0.56418043", "0.5641449", "0.56364053", "0.5636396", "0.5633138", "0.56286913", "0.5622041", "0.5614678", "0.5612276", "0.56114656", "0.56114656", "0.5596104", "0.5592361", "0.557671", "0.5571266", "0.5568118", "0.5564081", "0.55534893", "0.55529296", "0.55374664", "0.5531632", "0.5529141", "0.55282223", "0.5528036", "0.5518513", "0.55123293", "0.5510146", "0.5495232", "0.5493028", "0.5492367", "0.5489842", "0.54897314", "0.54798865", "0.54763955", "0.5475145", "0.54544795", "0.54530525", "0.5443286", "0.54430777", "0.5431306", "0.5431054", "0.5430325", "0.54297376", "0.54283553", "0.54257846", "0.5424771", "0.5417232", "0.54125243", "0.5410449", "0.54077876", "0.54077065", "0.54059356", "0.53970826", "0.5396691", "0.5389219", "0.53842384", "0.5380997", "0.5378576", "0.5378558", "0.53784806", "0.5376874", "0.5370894", "0.53693014", "0.5367085", "0.5366343", "0.5363413", "0.53622466" ]
0.73580134
0
/validateCustomerId(customerId); Customer customer = dao.findById(customerId); return customer;
@Override public Customer findById(Long customerId) { Optional<Customer> optional = custRepository.findById(customerId); if(!optional.isPresent()) { throw new CustomerNotFoundException("Customer with id "+customerId+" not found"); } return optional.get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Customer getCustomerById(int customerId);", "public Customer findCustomerById(long id) throws DatabaseOperationException;", "@RequestMapping(value = \"/customer/{id}\",method=RequestMethod.GET)\n @ResponseStatus(HttpStatus.OK)\n public CustomerViewModel findCustomerById(@PathVariable(\"id\") int id){\n //create a customer View Model using the find method from the service layer\n CustomerViewModel customerViewModel = service.findCustomer(id);\n\n //if it does not exist, through an illegal argument exception\n if(customerViewModel == null){\n //throw new\n }\n\n //return the requested customer View Model\n return customerViewModel;\n }", "public ResponseEntity<customer.controller.Customer> getCustomerById(Long id);", "@GetMapping(\"/customer/{id}\")\r\n public Customer getCustomerById(@PathVariable Long id) {\r\n // orElseThrow means it will attempt to unwrap the optional\r\n // if there's nothing there, it will throw an exception\r\n return customerRepository.findById(id).orElseThrow();\r\n }", "Customer findById(Long id);", "CustomerDto findById(Long id);", "@GetMapping(\"/{id}\")\n public Customer getCustomer(@PathVariable long id){\n return customerRepository.findById(id);\n }", "static Customer getCustomerWithId(int id){ return new Customer();}", "@GetMapping(\"/customer/{id}\")\r\n\tpublic Customer viewCustomerbyId(@PathVariable(\"id\") int customerId){\r\n\t\tif(custService.viewCustomerbyId(customerId)==null) {\r\n\t\t\tthrow new CustomerNotFoundException(\"Customer not found with this id\" +customerId);\r\n\t\t}\r\n\t\treturn custService.viewCustomerbyId(customerId);\r\n\t\t\r\n\t}", "public void findById() {\n String answer = view.input(message_get_id);\n if (answer != null){\n try{\n long id = Long.parseLong(answer);\n Customer c = model.findById(id);\n if(c!=null)\n view.showCustomerForm(c);\n else\n view.showMessage(not_found_error);\n }catch(NumberFormatException nfe){\n view.showMessage(\"ID must be number\");\n }\n }\n }", "@Test\n\tpublic void existing_customer_should_be_found() {\n\t\tfinal String customerId = \"123e4567-e89b-42d3-a456-556642440000\";\n\n\t\t// When\n\t\tfinal Customer customer = customerRepository.findById(customerId);\n\n\t\t// Then\n\t\tassertThat(customer).isNotNull();\n\t\tassertThat(customer.getId()).isEqualTo(customerId);\n\t\tassertThat(customer.getName()).isEqualTo(\"NAME1\");\n\t}", "@Override\n public Customer getCustomerById(Long id) {\n log.debug(\"Inside getCustomerById method\");\n return customerRepository.findById(id).orElseThrow(\n () -> new ResourceNotFoundException(\"No customer present with the id : \" + id));\n }", "public String getCustomer(String custId);", "public Employee getEmployeeById(Long custId)throws EmployeeException;", "@Test\n\tpublic void readCustomerById() {\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tlong id = customer.getId();\n\t\tname = \"Mark\";\n\t\taddress = \"Auckland\";\n\t\ttelephoneNumber = \"0211616447\";\n\t\tcustomerController.create(name, address, telephoneNumber);\n\n\t\t// When\n\t\tICustomer cus = customerController.read(id);\n\n\t\t// Then\n\t\tAssert.assertEquals(customer, cus);\n\t}", "@Override\r\n\tpublic Customer getCustomer(String custId) {\r\n\t\tOptional<Customer> optionalCustomer = null;\r\n\t\tCustomer customer = null;\r\n\t\toptionalCustomer = customerRepository.findById(custId);\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer = optionalCustomer.get();\r\n\t\t\treturn customer;\r\n\t\t} else {\r\n\t\t\tthrow new EntityNotFoundException(\"Customer With Id \" + custId + \" does Not Exist.\");\r\n\t\t}\r\n\r\n\t}", "Customer getCustomerById(final Long id);", "@GetMapping(\"/customers/{customer_id}\")\n\tpublic Customer getcustomer(@PathVariable(\"customer_id\") int customerid) {\n\t\tCustomer thecustomer=thecustomerService.getCustomer(customerid);\n\t\tif(thecustomer==null) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id : \"+customerid+\" not found\");\n\t\t}\n\t\t\n\t\treturn thecustomer;\n\t}", "@GetMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Customer> getCustomerById(@PathVariable Long id) {\n\t\tCustomer customer = customerRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Customer not exist with id :\" + id));\n\t\treturn ResponseEntity.ok(customer);\n\t}", "public ResponseEntity<?> createCustomer(customer.controller.Customer customer);", "@Test\n\t// @Disabled\n\tvoid testViewCustomerbyId() {\n\t\tCustomer customer = new Customer(1, \"jen\", \"cru\", \"951771122\", \"tom@gmail.com\");\n\t\tMockito.when(custRep.findById(1)).thenReturn(Optional.of(customer));\n\t\tCustomer persistedCust = custService.viewCustomerbyId(1);\n\t\tassertEquals(\"jen\", persistedCust.getFirstName());\n\t}", "public int getCustomerId() \n {\n return customerId;\n }", "@Override\n public Personn findById(Integer idCustomer) {\n return manager.find(Personn.class,idCustomer );\n //return findByCriteria(criteria);\n }", "@Override\n\tpublic Customer viewCustomer(int customerId) {\n\t\t// TODO Auto-generated method stub\n\t\tCustomer cust = repository.findById(customerId)\n\t\t\t\t.orElseThrow(() -> new EntityNotFoundException(\"Currently No Customer is available with this id\"));\n\t\treturn cust;\n\t}", "@Override\n\tpublic CustomerData getCustomer(Long custId) {\n\t \n\t\tOptional<CustomerData> optionalCust = customerRepository.findById(custId);\n\t\t//Optional object use for check if a customer id is existing or not\n if(optionalCust.isPresent()) {\n return optionalCust.get(); //if customer id is exist then return a value\n }\n\t\treturn null;\n\t\t\n\t}", "@Override\n @Transactional\n public Customer getCustomer(int customerId) {\n Optional<Customer> queryResult = customerRepository.findById(customerId);\n // if null return new Customer(), otherwise return the Customer\n return queryResult.orElseGet(Customer::new);\n }", "public abstract CustomerOrder findOne(Long id);", "@PostMapping(\"/checkCustomerID\")\n public ModelAndView checkCustomerID(@ModelAttribute(\"customerCheck\") Customer customer,\n Model model){\n ModelAndView modelAndView = new ModelAndView();\n\n int customer_id = customer.getCustomerID();\n if (customerServiceImpl.getCustomer(customer_id)!=null){\n model.addAttribute(\"customerInfo\", customerServiceImpl.getCustomer(customer_id));\n modelAndView.setViewName(\"/content/openNewCurrentAccount\");\n return modelAndView;\n }\n model.addAttribute(\"invalid_user_error\", true);\n modelAndView.setViewName(\"/content/checkCustomer\");\n return modelAndView;\n }", "@Override\n\tpublic Customer findCustomer(int customerId) {\n\t\treturn null;\n\t}", "CustomerDTO getCustomerDetails(Long customerId,String userName) throws EOTException;", "public CustomerModel findById(int id) throws Exception {\n String sql = \"SELECT * FROM customer WHERE ID = ?\";\n CustomerModel customer = null;\n \n try {\n \n log.info(\"Loading MySql driver\");\n Class.forName(\"com.mysql.jdbc.Driver\");\n\n log.info(\"Setting up connection with db\");\n connect= DriverManager.getConnection(\"jdbc:mysql://localhost:3306/apidft\",\"root\",\"cisco\");\n\n PreparedStatement stmt = connect.prepareStatement(sql);\n stmt.setInt(1, id);\n ResultSet rs = stmt.executeQuery();\n if (rs.next()) {\n customer = processRow(rs);\n }\n \n } catch (Exception e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n} finally {\nconnect.close();\n}\n return customer;\n }", "@Override\n\tpublic Customer getCustomer(int customerId) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\ttry {\n\t\t\t\n\t\t\tCustomer customer =session.get(Customer.class, customerId);\n\t\t return customer;\t\t\t\n\t\t}\n\t\tcatch(HibernateException exception){\n\t\t\texception.printStackTrace();\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "@Then(\"^Validate customer id is created$\")\r\n\tpublic void validate_customer_id_is_created() throws Throwable {\n\t\tAssert.assertTrue(response.jsonPath().get(\"id\").equals(new PropertFileReader().getTempData(\"custId\")));\r\n\t\t\r\n\t}", "public Customer saveCustomerDetails(Customer customer);", "Optional<String> findCustomerNameById(@Param(\"id\") Integer id);", "FetchRequest<Customer> byId(String id);", "public Customer getCustomerById(Integer id) throws DataNotFoundException {\n Optional<Customer> optionalCustomer = customerRepository.findById(id);\n if(optionalCustomer.isPresent())\n return optionalCustomer.get();\n else\n throw new DataNotFoundException(\"Customer with id: \" + id + \" not found\");\n }", "@Override\n\tpublic Customer findById(Long cust_id) throws Exception {\n\t\tList<Customer> lists = (List<Customer>) this.getHibernateTemplate().find(\"from Customer where cust_id = ?\",\n\t\t\t\tcust_id);\n\t\tgetHibernateTemplate().get(Customer.class, cust_id);\n\t\tif (lists.size() > 0) {\n\n\t\t\treturn lists.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public interface CustomerService {\n\n\t/**\n\t * Find customer by given id.\n\t * \n\t * @param id the given id.\n\t * @return the customer.\n\t * @throws IllegalStateException if no customer is available by the given id.\n\t */\n\tCustomerDto findById(Long id);\n\t\n\t/**\n\t * Find customer by given emailAddress.\n\t * \n\t * @param customerEmailDto the given emailAddress.\n\t * @return the customer.\n\t * @throws IllegalStateException if no customer is available by the given\n\t * emailAddress.\n\t */\n\tCustomerDto findByEmailAddress(CustomerEmailDto customerEmailDto);\n\t\n\t/**\n\t * Create a new customer in db.\n\t * \n\t * @param customerEntity the given customer to persist.\n\t * @return the created customerEntity with new technical id.\n\t */\n\tCustomerDto createCustomer(CustomerEntity customerEntity);\n\t\n\t/**\n\t * Delete customer by given id.\n\t * \n\t * @param id the given user id.\n\t */\n\tvoid deleteCustomerById(Long id);\n\n\t/**\n\t * Updates the given entity. Use the returned instance for further operations as\n\t * the save operation might have changed the entity instance completely.\n\t * \n\t * @param customerDto the edited entity.\n\t * @return the edited dto.\n\t */\n\tCustomerDto updateCustomer(CustomerDto customerDto);\n\t\n\t/**\n\t * Return a list with all customers.\n\t * \n\t * @return a list with all customers.\n\t */\n\tList<CustomerDto> findAll();\n\n}", "String getCustomerID();", "@PostMapping(\"/customers\")\n\tpublic Customer savecustomer(@RequestBody Customer thecustomer) {\n\t\t\n\t\tthecustomer.setId(0); //here 0 is not id, we are telling saveorupdate() DAO method to insert the customer object coz it inserts if id is empty(so give 0 or null)\n\t\tthecustomerService.saveCustomer(thecustomer);\n\t\treturn thecustomer;\n\t}", "@GetMapping(\"/customers/{id}\")\n\tpublic ResponseEntity<Customer> getCustomerById(@PathVariable(value = \"id\") Long customerId)\n\t\tthrows ResourceNotFoundException {\n\t\tCustomer customer = customerRepository.findById(customerId)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Custumer not found for this id :: \" + customerId));\n\t\t\t\treturn ResponseEntity.ok().body(customer);\n\t}", "Customer createCustomer();", "Customer createCustomer();", "Customer createCustomer();", "Customer createCustomer();", "public Customer findById(Integer id) {\n\t\treturn customerDao.findById(id);\r\n\t}", "Set<AccountModel> findAllByCustomerId(String customerId) throws CustomerException;", "public ResponseEntity<?> updateCustomerById(Long id, customer.controller.Customer customer);", "public static Customer getCustomer(int id_cust) {\n Connection c = connection();\n PreparedStatement stmt;\n int id = 0;\n String name = null;\n String email = null;\n String password = null;\n Customer customer = null;\n try {\n String sql = \"SELECT * FROM customer WHERE id=?;\";\n stmt = c.prepareStatement(sql);\n stmt.setInt(1, id_cust);\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n id = rs.getInt(\"id\");\n name = rs.getString(\"name\");\n email = rs.getString(\"email\");\n password = rs.getString(\"password\");\n }\n stmt.close();\n c.close();\n customer = new Customer(id, name, email, password);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return customer;\n }", "@RequestMapping(value = \"/ws/customers/{id}\", method = RequestMethod.GET)\n public @ResponseBody\n CustomerDto getCustomer(@PathVariable(\"id\") Long customerId) {\n logger.info(\"Tries to find customer by id={}\", customerId);\n\n return customerAssembler.assembly(getCustomerById(customerId));\n }", "public interface CustomerRepository {\n Customer find(IDCardNum idcardNum);\n void store(Customer customer);\n}", "@Override\n public Customer getCustomer(Long userId) {\n Optional<Customer> customer = customerDao.getCustomer(userId);\n if (!customer.isPresent()) {\n logger.error(\"Customer with this id {} doesn't exist\", userId);\n }\n return customer.orElseThrow(ResourceNotFoundException::new);\n }", "@Test\n public void overviewAccountsControllerShouldReturnOnlyCustomerId() throws Exception {\n Integer customerId = 12212;\n request = registerSession(new MockHttpServletRequest(), customerId);\n\n final ModelAndView mav = processGetRequest(request, new MockHttpServletResponse());\n Integer actualCustomerId = (Integer) getModelValue(mav, \"customerId\");\n\n assertEquals(customerId, actualCustomerId);\n }", "private Customer findCustomerById(String id) throws IllegalStateException\r\n\t{\r\n\t\treturn findCustomerById(id, false);\r\n\t}", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "public Customer retrieveCustomerByEmail(String email) throws CustomerNotFoundException;", "public Customer getCustomerByName(String customerName);", "Optional<Customer> findByPhoneNumber(Long number);", "AccountModel findById(String accountNumber) throws AccountException;", "public interface CustomerService {\n\n List<Customer> getAllCustomer();\n\n //根据条件获得客户信息列表\n List<Customer> getCustomer(Customer customer);\n\n Customer getCustomerById(Integer id);\n\n int insertCustomer(Customer customer);\n\n int insertSelectiveCustomer(Customer customer);\n\n int deleteCustomer(Integer id );\n\n int updateCustomer(Customer customer );\n}", "public static Customer getCustomer(int _customerID) throws SQLException{\n ResultSet rs = ConnectionManager.selectAllColumns(\"Tbl_Customer_GroupNo\", \"CustomerID= \"+_customerID);\n if(rs.next()){\n Customer cus = new Customer(rs.getInt(\"CustomerId\"), rs.getString(\"FirstName\"), rs.getString(\"LastName\"), rs.getString(\"Address\"), rs.getString(\"Email\"), rs.getString(\"Phone\"));\n return cus;\n }else{\n return null;\n }\n }", "@ApiOperation(value = \"Get a customer by id\", notes = \"\")\n @GetMapping(value = {\"/{customerId}\"}, produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.OK)\n public CustomerDTO getCustomerById(@PathVariable Long customerId) {\n\n return customerService.getCustomerById(customerId);\n }", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public CustomerPurchase getById(Integer id) throws SQLException;", "@Override\n\tpublic Uni<Customer> findCustomerById(Long cid) {\n\t\treturn repo.findById(cid);\n\t}", "CompletableFuture<BonusCustomer> findById(int customerNumber);", "@RequestMapping(method = RequestMethod.GET, value = \"/{id}\")\n\t public ResponseEntity<Customer> getCustomerWithId(@PathVariable Long id) {\n\t return service.getCustomerWithId(id);\n\t }", "@Override\n\tpublic Customer getCustomer(Integer id) {\n\t\treturn customerDao.findById(id);\n\t}", "@Override\n\tpublic Customer getCustomerById(long customerId) {\n\t\treturn null;\n\t}", "public abstract Optional<Object> getByID(@PathVariable(\"id\") int id);", "@Override\n public Customer findById(long id) throws EntityNotFoundException\n {\n return custrepos.findById(id)\n .orElseThrow(() -> new EntityNotFoundException(Long.toString(id)));\n }", "@PreAuthorize(\"#oauth2.hasAnyScope('read','write','read-write')\")\n\t@RequestMapping(method = GET, value = \"/{id}\")\n\tpublic Mono<ResponseEntity<Customer>> oneCustomer(@PathVariable @NotNull ObjectId id) {\n\n\t\treturn repo.findById(id)\n\t\t\t.map(customer -> ok().contentType(APPLICATION_JSON_UTF8).body(customer))\n\t\t\t.defaultIfEmpty(notFound().build());\n\t}", "public Customer loadCustomerFromId(int customerId) {\n ResultSet rs = database.getCustomer(customerId);\n Customer newCustomer = null;\n try {\n if (rs.next()) {\n newCustomer = new Customer(rs.getString(\"name\"), rs.getString(\"address\"), rs.getString(\"email\"), \"toBeLoaded\", rs.getDate(\"birthday\"), rs.getInt(\"phonenumber\"));\n newCustomer.setPassword(Customer.fromBase64(rs.getString(\"password\")));\n newCustomer.setSalt(Customer.fromBase64(rs.getString(\"passwordsalt\")));\n // newCustomer.setCurrentOrder(loadOrderFromId(rs.getInt(\"currentorderid\")));\n newCustomer.setCustomerID(customerId);\n } else {\n throw new NoSuchCustomerException(customerId);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n if (newCustomer == null) {\n throw new NoSuchCustomerException(customerId);\n }\n return newCustomer;\n }", "public ArrayList<Customer> findValidCustomers(Integer UserId);", "public User findUserById(int id);", "T getInstance(@Valid @NotNull @NotBlank I id) throws EntityNotFoundException;", "String getCustomerNameById(int customerId);", "public Customer getCustomerBy_id(ObjectId _id) {\n\t\treturn custRepo.findBy_id(_id);\n\t}", "@Test\n public void getCustomer() {\n Customer customer = new Customer();\n customer.setFirstName(\"Dominick\");\n customer.setLastName(\"DeChristofaro\");\n customer.setEmail(\"dominick.dechristofaro@gmail.com\");\n customer.setCompany(\"Omni\");\n customer.setPhone(\"999-999-9999\");\n customer = service.saveCustomer(customer);\n\n // Copy the customer added to the mock database using the CustomerAPI\n Customer customerCopy = service.findCustomer(customer.getCustomerId());\n\n // Test getCustomer() API method\n verify(customerDao, times(1)).getCustomer(customer.getCustomerId());\n TestCase.assertEquals(customerCopy, customer);\n }", "Customer getCustomer();", "@PutMapping(\"/customers\")\n\tpublic Customer updatecustomer(@RequestBody Customer thecustomer) {\n\t\t\n\t\tthecustomerService.saveCustomer(thecustomer); //as received JSON object already has id,the saveorupdate() DAO method will update details of existing customer who has this id\n\t\treturn thecustomer;\n\t}", "Customer getCustomerByCustomerName(String code) throws CustomerCodeNotExistsException;", "public int getCustId(){\n return this.custId;\r\n }", "public interface CustomerService {\n\n CustomerDTO findByFirstName(String firstName);\n\n List<CustomerDTO> findAllCustomers();\n\n CustomerDTO createNewCustomer(CustomerDTO customerDTO);\n\n CustomerDTO saveCustomerByDTO(Long id, CustomerDTO customerDTO);\n\n CustomerDTO patchCustomer(Long id, CustomerDTO customerDTO);\n\n void deleteById(Long id);\n}", "public Integer getCustomerId()\n {\n return customerId;\n }", "void deleteCustomerById(int customerId);", "public interface CustomerService {\n\n /**\n * Find all list.\n *\n * @return the list\n */\n List<Customer> findAll();\n\n /**\n * Find all with fetch address.\n * used hQL\n *\n * @return the list of customers\n */\n List<Customer> findAllWithFetch();\n\n /**\n * Find customer by address street list.\n *\n * @param name the name\n * @return the list\n */\n List<Customer> findByAddressStreet(String name);\n\n\n /**\n * Find customer by phone number optional.\n *\n * @param number the number\n * @return the optional\n */\n Optional<Customer> findByPhoneNumber(Long number);\n\n /**\n * Find customer by name or surname list.\n *\n * @param name the name\n * @param surname the surname\n * @return the list\n */\n List<Customer> findByNameOrSurname(String name, String surname);\n\n /**\n * Find customer by id optional.\n *\n * @param id the id\n * @return the optional\n */\n Customer findById(Long id);\n\n /**\n * Delete customer by id.\n *\n * @param id the id\n */\n void deleteById(Long id);\n\n /**\n * Save customer.\n *\n * @param customer the customer\n * @return the customer\n */\n Customer save(Customer customer);\n\n /**\n * Update customer.\n *\n * @param customer the customer\n * @return the customer\n */\n Customer update(Customer customer);\n\n /**\n * Delete.\n *\n * @param customer the customer\n */\n void delete(Customer customer);\n\n}", "public Customer getSpecificCustomerById(String customerId){\n Customer specificCustomer = null;\n\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"SELECT CustomerId, FirstName, LastName, Country, PostalCode, Phone, Email FROM Customer WHERE CustomerId=?\");\n preparedStatement.setString(1, customerId);\n // execute query\n ResultSet set = preparedStatement.executeQuery();\n\n while(set.next()){\n specificCustomer = new Customer(\n set.getString(\"CustomerId\"),\n set.getString(\"FirstName\"),\n set.getString(\"LastName\"),\n set.getString(\"Country\"),\n set.getString(\"PostalCode\"),\n set.getString(\"Phone\"),\n set.getString(\"Email\")\n );\n }\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return specificCustomer;\n }", "public Customer updateCustomer(@RequestBody Customer theCustomer)\n {\n customerService.save(theCustomer);\n return theCustomer;\n }", "public Contact getContactById(int contactId);", "public Customer getById(String cid) throws CustomerNotFoundException {\r\n try {\r\n return (Customer) this.entityManager.createQuery(\"select customer from Customer as customer where customer.cid=:cid\")\r\n .setParameter(\"cid\", cid)\r\n .getSingleResult();\r\n } catch (Exception e) {\r\n throw new CustomerNotFoundException();\r\n }\r\n }", "Customer getCustomerByMobileNumber(String mobileNumber) throws EOTException;", "public Service findById(int theId);", "@GetMapping(\"/api/customer/{id}\")\n\tpublic ResponseEntity<CustomerDetails> getCustomerDetailsByID(@PathVariable(\"id\") long id) {\n\t\tCustomerDetails customerDetails = customerService.getCustomerDetailsByID(id);\n\t\treturn ResponseEntity.ok().body(customerDetails);\n\n\t}", "Customer saveCustomer(Customer customer) throws CustomerExistsException;", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n return customerId;\n }" ]
[ "0.7682477", "0.75319767", "0.7414278", "0.73518866", "0.7154048", "0.7117283", "0.696073", "0.6942424", "0.68855613", "0.6868176", "0.68378735", "0.6821499", "0.67772275", "0.6762474", "0.67374814", "0.6641269", "0.6638454", "0.66060495", "0.65975434", "0.6589301", "0.65811384", "0.65755", "0.65652466", "0.65337825", "0.65320915", "0.65244895", "0.6488589", "0.6474039", "0.64721245", "0.6426841", "0.64096874", "0.6392359", "0.63921225", "0.63675445", "0.6361928", "0.63501203", "0.6332712", "0.6306821", "0.6266362", "0.62612545", "0.62597203", "0.6250769", "0.6250157", "0.62237823", "0.62237823", "0.62237823", "0.62237823", "0.621991", "0.6210202", "0.6178833", "0.61740834", "0.6154309", "0.615045", "0.6144731", "0.6144354", "0.6125163", "0.61246186", "0.61193544", "0.6111469", "0.6090652", "0.6076663", "0.6072593", "0.60578835", "0.6057336", "0.60471845", "0.60471845", "0.6042383", "0.6040849", "0.60349894", "0.6034791", "0.6033295", "0.602402", "0.60174054", "0.60170245", "0.6002903", "0.5999032", "0.5993987", "0.59929746", "0.5972936", "0.596861", "0.59683937", "0.596525", "0.5964541", "0.5952679", "0.5950076", "0.59463537", "0.59454495", "0.5940213", "0.59389013", "0.59362805", "0.59335667", "0.59329236", "0.5925536", "0.5924723", "0.59172153", "0.59106547", "0.5909775", "0.59096074", "0.5908301", "0.5908301" ]
0.69350123
8
/validateCustomerId(customerId); Customer customer = dao.findById(customerId); Account account=customer.getAccount(); account.setBalance(account.getBalance() + amount); entityManager.persist(account); customer.getAccount().setBalance(amount); customer = dao.update(customer); return customer;
@Transactional @Override public Customer addAmount(Long customerId, double amount) { validateCustomerId(customerId); Customer customer = findById(customerId); Account account=customer.getAccount(); account.setBalance(account.getBalance() + amount); accountRepository.save(account); customer.getAccount().setBalance(amount); customer =custRepository.save(customer); return customer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "AccountModel addByCustomer(AccountModel account,String customerId) throws AccountException, CustomerException;", "CustomerDto updateCustomer(CustomerDto customerDto);", "CustomerOrder update(CustomerOrder customerOrder);", "void updateCustomerById(Customer customer);", "@Override\r\n\tpublic Customer updateCustomer(Customer customer) {\r\n\t\tOptional<Customer> optionalCustomer = null;\r\n\t\tCustomer customer2 = null;\r\n\t\toptionalCustomer = customerRepository.findById(customer.getUserId());\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer2 = customerRepository.save(customer);\r\n\t\t\treturn customer2;\r\n\t\t} else {\r\n\t\t\tthrow new EntityUpdationException(\"Customer With Id \" + customer.getUserId() + \" does Not Exist.\");\r\n\t\t}\r\n\r\n\t}", "public void crudOperationStudent(){\n //Retrieve Student\n Student student=entityManager.find(Student.class,2L);\n // persistence Context have Student\n //Retrieve Passport\n Passport passport=student.getPassport();\n // persistence Context have Student,passport\n //Update passport number for student\n passport.setPassportNo(\"ZX132322\");\n // persistence Context have Student, updated-passport\n //update Student details\n student.setAge(25);\n // persistence Context have updated-Student, updated-passport\n entityManager.persist(student);\n\n }", "@Override\n\tpublic void saveCustomer(AMOUNT theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// save the customer ... \n\t\tcurrentSession.save(theCustomer);\n\t}", "@Override\n public boolean withdrawAmount(TransactionDTO transaction) {\n CustomerDetails customerDetails=this.viewAccount(transaction.getUserName()); \n if(customerDetails.getAccountBalance()>=transaction.getAmount()){\n customerDetails.setAccountBalance(customerDetails.getAccountBalance()-transaction.getAmount());\n customerRepository.save(customerDetails);\n return true;\n }\n else{\n return false;\n }\n }", "public Customer updateCustomer(@RequestBody Customer theCustomer)\n {\n customerService.save(theCustomer);\n return theCustomer;\n }", "Customer saveCustomer(Customer customer) throws CustomerExistsException;", "public Customer save(final Customer customer) {\n\t\tAssert.notNull(customer);\r\n\t\tBoolean isCreating = null;\r\n\r\n\t\tAssert.isTrue(!(customer.getEmail().endsWith(\"@\") || customer.getEmail().endsWith(\"@>\")));\r\n\r\n\t\tif (customer.getId() == 0) {\r\n\t\t\tisCreating = true;\r\n\t\t\tcustomer.setSuspicious(false);\r\n\r\n\t\t\t//comprobamos que ningún actor resté autenticado (ya que ningun actor puede crear los customers)\r\n\t\t\t//this.serviceUtils.checkNoActor();\r\n\r\n\t\t} else {\r\n\t\t\tisCreating = false;\r\n\t\t\t//comprobamos que su id no sea negativa por motivos de seguridad\r\n\t\t\tthis.serviceUtils.checkIdSave(customer);\r\n\r\n\t\t\t//este customer será el que está en la base de datos para usarlo si estamos ante un customer que ya existe\r\n\t\t\tCustomer customerBD;\r\n\t\t\tAssert.isTrue(customer.getId() > 0);\r\n\r\n\t\t\t//cogemos el customer de la base de datos\r\n\t\t\tcustomerBD = this.customerRepository.findOne(customer.getId());\r\n\r\n\t\t\t//Si el customer que estamos guardando es nuevo (no está en la base de datos) le ponemos todos sus atributos vacíos\r\n\r\n\t\t\t//\t\t\tcustomer.setUserAccount(new UserAccount());\r\n\t\t\t//\t\t\tfinal Authority authority = new Authority();\r\n\t\t\t//\t\t\tauthority.setAuthority(Authority.CUSTOMER);\r\n\t\t\t//\t\t\tcustomer.getUserAccount().addAuthority(authority);\r\n\t\t\t//los atributos que no pueden estar vacíos\r\n\r\n\t\t\tcustomer.setSuspicious(customerBD.getSuspicious());\r\n\t\t\tcustomer.setUserAccount(customerBD.getUserAccount());\r\n\r\n\t\t\t//Comprobamos que el actor sea un Customer\r\n\t\t\tthis.serviceUtils.checkAuthority(\"CUSTOMER\");\r\n\t\t\t//esto es para ver si el actor que está logueado es el mismo que se está editando\r\n\t\t\tthis.serviceUtils.checkActor(customer);\r\n\r\n\t\t}\r\n\t\tif ((!customer.getPhone().startsWith(\"+\")) && StringUtils.isNumeric(customer.getPhone()) && customer.getPhone().length() > 3) {\r\n\t\t\tfinal Settings settings = this.settingsService.findSettings();\r\n\t\t\tcustomer.setPhone(settings.getCountryCode() + customer.getPhone());\r\n\t\t}\r\n\t\tCustomer res;\r\n\t\t//le meto al resultado final el customer que he ido modificando anteriormente\r\n\t\tres = this.customerRepository.save(customer);\r\n\t\tthis.flush();\r\n\t\tif (isCreating)\r\n\t\t\tthis.folderService.createSystemFolders(res);\r\n\t\treturn res;\r\n\t}", "@Override\r\n\tpublic void saveCustomer(CRMDto theCustomer) {\n\t\t\r\n\t\tSession session = factory.openSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\tsession.update(theCustomer);\r\n\t\ttx.commit();\r\n\t\t//System.out.println(\"pk update is \" +pk);\r\n\t\t\r\n\t\t\r\n\t}", "public Customer saveCustomerDetails(Customer customer);", "public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }", "public void save(Customer customer) {\n\t\t//get current session\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t//create account\n\t\tcurrentSession.save(customer);\n\t}", "@Transactional\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t// save the customer ... finally LOL\n\t\tcurrentSession.save(theCustomer);\t\t\n\t}", "public void Deposit(Integer accountNo,float depositMoney){\n\tSessionFactory sessionFactory = new Configuration().configure(\"hibernate.cfg.xml\").buildSessionFactory();\n\tSession session = sessionFactory.openSession();\n\tTransaction trans = null;\n\ttry{\n\t\ttrans = session.beginTransaction();\n\t\tQuery query=session.createQuery(\"UPDATE Account set balance+=:balance where accountNo=:accountNo\"); \n\t\tquery.setParameter(\"balance\",depositMoney); \n\t\tquery.setParameter(\"accountNo\",accountNo); \n\t}catch(HibernateException hibernateException){\n\t\tif(trans != null){\n\t\t\ttrans.rollback();\n\t\t}\n\t\thibernateException.printStackTrace();\n\t}\n\t}", "public Account update(Account user);", "@PostMapping(\"/customers\")\n\tpublic Customer savecustomer(@RequestBody Customer thecustomer) {\n\t\t\n\t\tthecustomer.setId(0); //here 0 is not id, we are telling saveorupdate() DAO method to insert the customer object coz it inserts if id is empty(so give 0 or null)\n\t\tthecustomerService.saveCustomer(thecustomer);\n\t\treturn thecustomer;\n\t}", "Account save(Account account);", "CustomerOrder save(CustomerOrder customerOrder);", "public int updateCustomer(Customer customer) {\n return model.updateCustomer(customer); \n }", "@Override\n\t@Transactional\n\tpublic void updateCustomer(Customer customer) {\n\n\t\thibernateTemplate.update(customer);\n\t\tSystem.out.println(\"customer is updated \" + customer);\n\n\t}", "@Test\n public void whenUpdatingCustomerItShouldReturnTheSavedCustomer() {\n given(repository.getOne(CUSTOMER1_ID)).willReturn(CUSTOMER1);\n // Given that a CUSTOMER1 is saved and flushed, a CUSTOMER1 is returned\n given(repository.saveAndFlush(CUSTOMER1)).willReturn(CUSTOMER1);\n // When updating a CUSTOMER1\n assertThat(controller.updateCustomer(CUSTOMER1, CUSTOMER1_ID))\n // Then it should return the CUSTOMER1\n .isSameAs(CUSTOMER1);\n }", "@Override\n\tpublic boolean updateCustomer(Customer customer) {\n\t\tSession session =sessionFactory.getCurrentSession();\n\t\tsession.update(customer);\n\t\treturn true;\n\t}", "public Customer save(final Customer customer) {\n\t\tAssert.notNull(customer);\n\n\t\t//comprobamos que su id no sea negativa por motivos de seguridad\n\t\tthis.serviceUtils.checkIdSave(customer);\n\n\t\t//este customer será el que está en la base de datos para usarlo si estamos ante un customer que ya existe\n\t\tCustomer customerBD;\n\t\tAssert.isTrue(customer.getId() > 0);\n\n\t\t//cogemos el customer de la base de datos\n\t\tcustomerBD = this.customerRepository.findOne(customer.getId());\n\n\t\t//Si el customer que estamos guardando es nuevo (no está en la base de datos) le ponemos todos sus atributos vacíos\n\t\tif (customer.getId() == 0) {\n\t\t\tcustomer.setBanned(false);\n\t\t\tcustomer.setFixupTasks(new ArrayList<FixupTask>());\n\t\t\tcustomer.setFolders(this.folderService.createSystemFolders(customer));\n\t\t\tcustomer.setReceivedMessages(new ArrayList<Message>());\n\t\t\tcustomer.setSendedMessages(new ArrayList<Message>());\n\t\t\tcustomer.setSocialProfiles(new ArrayList<SocialProfile>());\n\t\t\tcustomer.setSuspicious(false);\n\n\t\t\t//comprobamos que ningún actor resté autenticado (ya que ningun actor puede crear los customers)\n\t\t\tthis.serviceUtils.checkNoActor();\n\n\t\t} else {\n\t\t\tcustomer.setBanned(customerBD.getBanned());\n\t\t\tcustomer.setFixupTasks(customerBD.getFixupTasks());\n\t\t\tcustomer.setFolders(customerBD.getFolders());\n\t\t\tcustomer.setReceivedMessages(customerBD.getReceivedMessages());\n\t\t\tcustomer.setSendedMessages(customerBD.getSendedMessages());\n\t\t\tcustomer.setSocialProfiles(customerBD.getSocialProfiles());\n\t\t\tcustomer.setSuspicious(customerBD.getSuspicious());\n\t\t\tcustomer.setUserAccount(customerBD.getUserAccount());\n\n\t\t\t//Comprobamos que el actor sea un Customer\n\t\t\tthis.serviceUtils.checkAuthority(\"CUSTOMER\");\n\t\t\t//esto es para ver si el actor que está logueado es el mismo que se está editando\n\t\t\tthis.serviceUtils.checkActor(customer);\n\n\t\t}\n\t\tCustomer res;\n\t\t//le meto al resultado final el customer que he ido modificando anteriormente\n\t\tres = this.customerRepository.save(customer);\n\t\treturn res;\n\t}", "public interface AccountService {\n\n List<AccountDO> findAllAccount();\n\n AccountDO findAccountByUserId(long userId);\n\n /**\n * 使用Hmily 事务\n * @param accountDO\n * @return\n */\n @Hmily\n boolean updateAccount(AccountDO accountDO);\n\n}", "@Override\n public boolean depositAmount(TransactionDTO transaction) {\n if(transaction.getAmount()>0){\n CustomerDetails customerDetails=this.viewAccount(transaction.getUserName()); \n customerDetails.setAccountBalance(customerDetails.getAccountBalance()+transaction.getAmount());\n customerRepository.save(customerDetails);\n return true;\n }else{\n return false;\n }\n }", "@Override\n\tpublic void updateCustomer(Customer customer) throws Exception {\n\t\tgetHibernateTemplate().update(customer);\n\t}", "public interface AccountService\n{\n /**\n * Retrieves current balance or zero if addAmount() method was not called before for specified id\n *\n * @param id balance identifier\n */\n Long getAmount(Integer id) throws Exception;\n /**\n * Increases balance or set if addAmount() method was called first time\n * @param id balance identifier\n * @param value positive or negative value, which must be added to current balance\n */\n Long addAmount(Integer id, Long value) throws Exception;\n}", "@Override\npublic void update(Account account) {\n\taccountdao.update(account);\n}", "@Test\n\t// @Disabled\n\tvoid testUpdateCustomer() {\n\t\tCustomer customer1 = new Customer(1, \"tommy\", \"cruise\", \"951771122\", \"tom@gmail.com\");\n\t\tMockito.when(custRep.findById(1)).thenReturn(Optional.of(customer1));\n\t\tMockito.when(custRep.save(customer1)).thenReturn(customer1);\n\t\tCustomer persistedCust = custService.updateCustomer(1, customer1);\n\t\tassertEquals(1, persistedCust.getCustomerId());\n\t}", "@Override\n\tpublic Customer update(long customerId, Customer customer) {\n\t\treturn null;\n\t}", "@PostMapping(\"/customers\")\n public void addCustomer(@RequestBody CustomerHibernate theCustomerHibernate) {\n //this is to force a save for a new item .... instead of update\n\n theCustomerHibernate.setId(0);\n\n customerService.save(theCustomerHibernate);\n }", "public void update(Customer customer) {\n\n\t}", "@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}", "@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}", "AccountModel save(AccountModel account) throws AccountException;", "@PutMapping(\"/customers\")\n\tpublic Customer updatecustomer(@RequestBody Customer thecustomer) {\n\t\t\n\t\tthecustomerService.saveCustomer(thecustomer); //as received JSON object already has id,the saveorupdate() DAO method will update details of existing customer who has this id\n\t\treturn thecustomer;\n\t}", "@Test\n public void updateCustomer() {\n Customer customer = new Customer();\n customer.setFirstName(\"Dominick\");\n customer.setLastName(\"DeChristofaro\");\n customer.setEmail(\"dominick.dechristofaro@gmail.com\");\n customer.setCompany(\"Omni\");\n customer.setPhone(\"999-999-9999\");\n customer = service.saveCustomer(customer);\n\n // Update the Customer in the database\n customer.setFirstName(\"Michael\");\n customer.setLastName(\"Stuckey\");\n customer.setEmail(\"michaelallenstuckey@gmail.com\");\n customer.setCompany(\"NuclearFuelServices\");\n customer.setPhone(\"222-222-2222\");\n service.updateCustomer(customer);\n\n // Test the updateCustomer() method\n verify(customerDao, times(1)).updateCustomer(customerArgumentCaptor.getValue());\n assertEquals(customer, customerArgumentCaptor.getValue());\n }", "public ResponseEntity<?> updateCustomerById(Long id, customer.controller.Customer customer);", "void createAndManageCustomer() {\r\n\t\tSystem.out.println(\"\\nCreating and managing a customer:\");\r\n\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c = new Customer2(\"Sami\", \"Cemil\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c);\r\n\t\ttx.commit();\r\n\t\tSystem.out.println(c);\r\n\t\t\r\n\t\ttx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tc.setLastName(\"Kamil\");\r\n\t\ttx.commit();\r\n\t\tSystem.out.println(c);\r\n\t\tem.close();\r\n\t}", "void updateAccount(Account account);", "int updateByPrimaryKey(CusBankAccount record);", "@Override\n\t@Transactional\n\tpublic void save(Customer customer) {\n\t\tcustomerDAO.save(customer);\n\t}", "public void testUpdateAccount(){\n\t\tint id = 10 ;\n\t\tAccount acc = this.bean.findAccountById(id ) ;\n\t\tacc.setDatetime(CommUtil.getNowDate()) ;\n\t\tint r = this.bean.updateAccount(acc) ;\n\t\tAssert.assertEquals(r, 1) ;\n\t}", "private Customer storeCustomer(Customer customer){\n customerRestService.createCustomer(customer);\n return customer;\n }", "@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// save/upate the customer ... finally LOL\n\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t\t\n\t}", "@Override\n\t@Transactional\n\tpublic void addCustomer(Customer customer) {\n\n\t\tSystem.out.println(\"here is our customer\" + customer);\n\n\t\thibernateTemplate.saveOrUpdate(customer);\n\n\t}", "Boolean updateOrInsert(Customer customer);", "@Override\n\tpublic void putCustomers(Customer customer) {\n\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(customer);;\n\n\t}", "Set<AccountModel> findAllByCustomerId(String customerId) throws CustomerException;", "@Test\n public void updateAccount(){\n ApplicationContext ac = new AnnotationConfigApplicationContext(SpringConfiguration.class);\n\n AccountService as = ac.getBean(\"accountService\", AccountService.class);\n Account account = as.findAccountById(2);\n account.setMoney(123456f);\n as.updateAccount(account);\n\n }", "int updateByPrimaryKey(AccountPaymentMethodEntity record);", "public void update(Customer myCust){\n }", "Account.Update update();", "@Override\n\tpublic boolean addCustomer(Customer customer) {\n\t\tint result=0;\n\t\tConnection connection;\n\t\ttry {\n\t\t\tconnection = DBConnection.makeConnection();\n\t\t\tPreparedStatement Statement = connection.prepareStatement(INSERT_CUSTOMER_QUERY);\n\t\t\tStatement.setInt(1, customer.getCustomerId());\n\t\t\tStatement.setString(2, customer.getCustomerName());\n\t\t\tStatement.setString(3, customer.getCustomerAddress());\n\t\t\t\tStatement.setInt(4, customer.getBillAmount());\n\t\t\t\tresult=Statement.executeUpdate();\n\n\t\t} \n\t\tcatch(SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\n\t\tif(result==0)\n\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n\t@Transactional\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tcustomerDAO.saveCustomer(theCustomer);\n\t\t\n\t}", "public void InitializeBalance(BigDecimal valor){\n \r\n ChekingAccount chekAc=pRepository.GetChekingAccount();\r\n chekAc.setSaldoInicial(valor);\r\n pRepository.SaveChekingAccount(chekAc);\r\n \r\n }", "@Override\n\tpublic void save(Customer customer) throws Exception {\n\t\tthis.getHibernateTemplate().save(customer);\n\t}", "public boolean updatecustomer(long id , Customermodel customermodel) {\n\t\t Optional<Customermodel> customerd = customerdb.findById(id);\n\n\t\t\t\t\tif (customerd.isPresent()) {\n\t\t\t\t\t\tCustomermodel customer = customerd.get();\n\t\t\t\t\t\t\n\t\t\t\t\t\tcustomer.setDob(customermodel.getDob());\n\t\t\t\t\t\tcustomer.setName(customermodel.getName());\n\t\t\t\t\t\tcustomerdb.save(customer);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t} \n\t\t \n\t }", "@Transactional(isolation = Isolation.SERIALIZABLE)\n public void updateAccountBalance(Long accountId, Double newBalance) {\n Account account =accountRepository.findById(accountId)\n .orElseThrow(() -> new AccountNotFoundException(\"Account not found\"));\n account.setBalance(newBalance);\n accountRepository.save(account);\n }", "public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }", "public Customer addCustomer(Customer customer) {\n customer.setMemberSince(LocalDate.now());\n customer.setStatus(MembershipStatus.ACTIVE);\n return customerRepository.save(customer);\n }", "@Test\n public void whenUpdatingCustomerItShouldUseTheGivenID() {\n given(repository.getOne(CUSTOMER1_ID)).willReturn(CUSTOMER1);\n // Given that a CUSTOMER1 with CUSTOMER1_ID is updated\n controller.updateCustomer(CUSTOMER1, CUSTOMER1_ID);\n // Verify that when the customer is saved\n verify(repository).saveAndFlush(anyCustomer.capture());\n // It should have the given CUSTOMER1\n assertThat(anyCustomer.getValue().getId()).isEqualTo(CUSTOMER1_ID);\n }", "int updateByPrimaryKey(ResPartnerBankEntity record);", "public interface AccountDao {\n\n /**\n * Retrieve a specific bank account by id\n *\n * @param id the account id to retrieve\n * @return Account object representing the bank account\n */\n Account getAccount(int id);\n\n /**\n * Retrieve all accounts for a given customer\n *\n * @param customerId the customer id to lookup\n * @return list of accounts belonging to the given customer\n */\n List<Account> getAccountsForCustomerId(int customerId);\n\n /**\n * Add a new account to the data source\n *\n * Note that the account id will be automatically generated\n *\n * @param account the account information to store\n * @return generated account id\n */\n int createAccount(Account account);\n\n /**\n * Update stored information for a given account\n *\n * @param account the account to update\n */\n void updateAccount(Account account);\n}", "private void updateMoney() {\n balance = mysql.getMoney(customerNumber);\n balanceConverted = (float) balance / 100.00;\n }", "@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// save the customer\n\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t\t//currentSession.save(theCustomer);\n\t}", "@Transactional\n @Modifying\n @Query(\"UPDATE Day SET stripes = stripes + ?1 WHERE date = ?2 AND user_id = ?3\")\n void updateStripes(Integer amountOfStripes, LocalDate date, Integer id);", "public boolean addCustomer(Customer customer) throws DatabaseOperationException;", "@Override\n public void addCustomer(Customer customer) {\n log.info(\"Inside addCustomer method\");\n customerRepository.save(customer);\n }", "public abstract CustomerOrder save(CustomerOrder entity);", "@Test\n public void whenAddingCustomerItShouldReturnTheSavedCustomer() {\n given(repository.saveAndFlush(CUSTOMER1)).willReturn(CUSTOMER2);\n // When adding a CUSTOMER1\n assertThat(controller.addCustomer(CUSTOMER1))\n // Then it should return the CUSTOMER2\n .isSameAs(CUSTOMER2);\n }", "int updateByPrimaryKey(FinanceAccount record);", "@Override\n\tpublic int accountUpdate(String id, String balance) {\n\t\tSession session=sessionFactory.openSession();\n\t\tTransaction tr = session.beginTransaction();\n\t\tint executeUpdate = 0;\n\t\tString sqlString=\"update user set balance = '\"+balance+\"' where id ='\"+id+\"'\";\n\t\ttry {\n\t\t\tQuery query=session.createSQLQuery(sqlString);\n\t\t\texecuteUpdate = query.executeUpdate();\n\t\t\tSystem.out.println(\"executeUpdate:\"+executeUpdate);\n\t\t} catch (HibernateException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttr.commit();\n\t\t session.close();\n\t\t}\n\t\treturn executeUpdate;\t\n\t}", "@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// currentSession.save(theCustomer);\n\n\t\t// save/upate the customer\n\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t}", "public void update(Customer customer) throws CustomerNotFoundException {\r\n this.entityManager.merge(customer);\r\n }", "public JavaaccountModel postaccount(JavaaccountModel oJavaaccountModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Insert the new account to database*/\n int accountId = (Integer) hibernateSession.save(oJavaaccountModel);\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n\n /* Return the JavaaccountModel with updated accountId*/\n oJavaaccountModel.setaccountId(accountId);\n return oJavaaccountModel;\n }", "public interface BookCustomerService {\n public List<BookCustomerInfoQuery> query(BookCustomer customer);\n\n public BookCustomer queryOne(BookCustomer customer);\n\n public void insert(BookCustomer customer) throws Exception;\n\n\n public void deleteById(BookCustomer bookCustomer);\n\n @Transactional\n public BaseResult insertOrder(String areaId,String price,String payType,String phone,String date,String person,String startTime,String endTime) throws Exception;\n ;\n}", "public void create(Customer customer) {\r\n this.entityManager.persist(customer);\r\n }", "private void updateCustomerCredit(BusinessPartner businessPartner, BigDecimal amount, boolean add) {\n OBDal.getInstance().refresh(businessPartner);\n BigDecimal creditUsed = businessPartner.getCreditUsed();\n if (add) {\n creditUsed = creditUsed.add(amount);\n } else {\n creditUsed = creditUsed.subtract(amount);\n }\n businessPartner.setCreditUsed(creditUsed);\n OBDal.getInstance().save(businessPartner);\n OBDal.getInstance().flush();\n }", "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}", "public InwardEntity updateInvoice(InwardEntity entity , String companyId, String customerId) throws EntityException\n\t\t\t{\n\n\t\t\t\tDatastore ds = null;\n\t\t\t\tCompany cmp = null;\n\t\t\t\tBusinessPlayers customer = null;\n\t\t\t\tProducts prod = null;\n\t\t\t\tTax tax = null;\n\t\t\t\tKey<InwardEntity> key = null;\n\t\t\t\tObjectId oid = null;\n\t\t\t\tObjectId customerOid = null;\n\t\t\t\tObjectId prodOid = null;\n\t\t\t\tObjectId taxOid = null;\n\t\t\t\tInwardEntity invoice = null;\n\t\t\t\tboolean customerChange = false;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tds = Morphiacxn.getInstance().getMORPHIADB(\"test\");\n\t\t\t\t\toid = new ObjectId(companyId);\n\t\t\t\t\tQuery<Company> query = ds.createQuery(Company.class).field(\"id\").equal(oid);\n\t\t\t\t\tcmp = query.get();\n\t\t\t\t\tif(cmp == null)\n\t\t\t\t\t\tthrow new EntityException(404, \"cmp not found\", null, null);\n\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t//check if invoice exists with object id for update , fetch invoice, make changes to it\n\t\t\t\t\n\t\t\t\t\tQuery<InwardEntity> iQuery = ds.find(InwardEntity.class).filter(\"company\",cmp).filter(\"isInvoice\", true).\n\t\t\t\t\t\t\tfilter(\"id\",entity.getId());\n\n\t\t\t\t\tinvoice = iQuery.get();\n\t\t\t\t\tif(invoice == null)\n\t\t\t\t\t\tthrow new EntityException(512, \"invoice not found\", null, null); //cant update\n\n\n\t\t\t\t\t/*check if vendor changed in update, if so then check if new vendor exists\n\t\t\t\t\t * if vendor hasnt changed bt was deleted - let it be\n\t\t\t\t\t */\n\n\t\t\t\t\tif(!(customerId.equals(invoice.getCustomer().getId().toString())))\n\t\t\t\t\t{\n\t\t\t\t\t\tcustomerChange = true;\n\t\t\t\t\t\tcustomerOid = new ObjectId(customerId);\n\t\t\t\t\t\tQuery<BusinessPlayers> bpquery = ds.createQuery(BusinessPlayers.class).field(\"company\").equal(cmp).field(\"isCustomer\").equal(true).field(\"id\").equal(customerOid).field(\"isDeleted\").equal(false);\n\t\t\t\t\t\tcustomer = bpquery.get();\n\t\t\t\t\t\tif(customer == null)\n\t\t\t\t\t\t\tthrow new EntityException(512, \"customer not found\", null, null);\n\n\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/*if bill number is editable, do check if there is new /old vendor + new/old bill number combo unique\n\t\t\t\t\t * if vendor hasnt changed and bill number hasnt chngd - no prob\n\t\t\t\t\t * if vendor/bill number has chngd do check\n\t\t\t\t\t */\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t// front end list cant be null\n\t\t\t\t\tList<OrderDetails> invoiceDetails = entity.getInvoiceDetails();\n\n\t\t\t\t\tfor(OrderDetails details : invoiceDetails)\n\t\t\t\t\t{\n\n\t\t\t\t\t\t//check tax exists, if not deleted\n\t\t\t\t\t\tif(details.getTax().getId() != null && details.getTax().isDeleted() == false)\n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\ttaxOid = new ObjectId(details.getTax().getId().toString());\n\t\t\t\t\t\t\tQuery<Tax> taxquery = ds.createQuery(Tax.class).field(\"company\").equal(cmp).field(\"id\").equal(taxOid).field(\"isDeleted\").equal(false);\n\t\t\t\t\t\t\ttax = taxquery.get();\n\t\t\t\t\t\t\tif(tax == null)\n\t\t\t\t\t\t\t\tthrow new EntityException(513, \"tax not found\", null, null); //has been deleted in due course\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//check tax exists, if deleted\n\t\t\t\t\t\tif(details.getTax().getId() != null && details.getTax().isDeleted() == true)\n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\ttaxOid = new ObjectId(details.getTax().getId().toString());\n\t\t\t\t\t\t\tQuery<Tax> taxquery = ds.createQuery(Tax.class).field(\"company\").equal(cmp).field(\"id\").equal(taxOid).field(\"isDeleted\").equal(true);\n\t\t\t\t\t\t\ttax = taxquery.get();\n\t\t\t\t\t\t\tif(tax == null)\n\t\t\t\t\t\t\t\tthrow new EntityException(513, \"tax not found\", null, null); //tax doesn't exists / may not be deleted\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(details.getProduct().isDeleted() == false)\n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\tprodOid = new ObjectId(details.getProduct().getId().toString());\n\t\t\t\t\t\t\tQuery<Products> prodquery = ds.createQuery(Products.class).field(\"company\").equal(cmp).field(\"id\").equal(prodOid).field(\"isDeleted\").equal(false);\n\t\t\t\t\t\t\tprod = prodquery.get();\n\t\t\t\t\t\t\tif(prod == null)\n\t\t\t\t\t\t\t\tthrow new EntityException(514, \"product not found\", null, null); //has been deleted in due course\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(details.getProduct().isDeleted() == true)\n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\tprodOid = new ObjectId(details.getProduct().getId().toString());\n\t\t\t\t\t\t\tQuery<Products> prodquery = ds.createQuery(Products.class).field(\"company\").equal(cmp).field(\"id\").equal(prodOid).field(\"isDeleted\").equal(true);\n\t\t\t\t\t\t\tprod = prodquery.get();\n\t\t\t\t\t\t\tif(prod == null)\n\t\t\t\t\t\t\t\tthrow new EntityException(514, \"product not found\", null, null); //product doesn't exists / may not be deleted\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\tdetails.setId(new ObjectId());\n\t\t\t\t\t\tdetails.setTax(tax);\n\t\t\t\t\t\tdetails.setProduct(prod);\n\n\t\t\t\t\t\ttax = null;\n\t\t\t\t\t\ttaxOid = null;\n\t\t\t\t\t\tprod = null;\n\t\t\t\t\t\tprodOid = null;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(\"protax\");\n\t\t\t\t\t\n\t\t\t\t\tinvoice.setInvoiceDetails(invoiceDetails);\n\t\t\t\t\tinvoice.setCompany(cmp);\n\t\t\t\t\tif(customerChange == true)\n\t\t\t\t\t\tinvoice.setCustomer(customer); //set only if vendor has changed\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tinvoice.setInvoiceDate(entity.getInvoiceDate());\n\t\t\t\t\tinvoice.setInvoiceDate(entity.getInvoiceDate());\n\t\t\t\t\tinvoice.setInvoiceDuedate(entity.getInvoiceDuedate());\n\t\t\t\t\t\n\t\t\t\t\tinvoice.setInvoiceGrandtotal(entity.getInvoiceGrandtotal());\n\t\t\t\t\tinvoice.setInvoiceSubtotal(entity.getInvoiceSubtotal());\n\t\t\t\t\tinvoice.setInvoiceTaxtotal(entity.getInvoiceTaxtotal());\n\t\t\t\t\tjava.math.BigDecimal balance = invoice.getInvoiceGrandtotal().subtract(invoice.getInvoiceAdvancetotal()); //grand total is just set, read prev advance\n\t\t\t\t\tinvoice.setInvoiceBalance(balance);\n\n\t\t\t\t\tkey = ds.merge(invoice);\n\t\t\t\t\tif(key == null)\n\t\t\t\t\t\tthrow new EntityException(515, \"could not update\", null, null);\n\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(EntityException e)\n\t\t\t\t{\n\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tthrow new EntityException(500, null , e.getMessage(), null);\n\t\t\t\t}\n\n\t\t\t\treturn invoice;\n\t\t\t}", "public interface AccountDao {\n int insert(Account account);\n\n Account queryAccountById(Long id);\n\n Account findAccount(Account account);\n\n Account queryAccountByMobile(Long mobile);\n\n Account queryAccountByEmail(String email);\n\n void update(Account account);\n\n void resetPassword(Account account);\n}", "public void commit(Customer customer) {\r\n EntityManagerHelper.beginTransaction();\r\n CUSTOMERDAO.update(customer);\r\n EntityManagerHelper.commit();\r\n renderManager.getOnDemandRenderer(customer.getCustomernumber().toString()).requestRender();\r\n }", "public interface AccountDao {\n\n /**\n * Get one account with accountNumber\n *\n * @param accountNumber unique number for account\n * @return Account or null\n */\n Account getAccount(Integer accountNumber);\n\n /**\n * Get one account with accountNumber\n *\n * @param accountNumber unique number for account\n * @param configuration {@link Configuration} for executing in DB-transaction\n * @return Account or null\n */\n Account getAccount(Integer accountNumber, Configuration configuration);\n\n /**\n * Get all accounts for user with login\n *\n * @param login unique String key for user\n * @return List of Account or empty List\n */\n List<Account> getAccounts(String login);\n\n /**\n * Update account\n *\n * @param account new data to Account\n * @param configuration {@link Configuration} for executing in DB-transaction\n * @return new updated Account\n */\n Account updateAccount(Account account, Configuration configuration);\n\n}", "public interface CustomerService {\n\n\t/**\n\t * Find customer by given id.\n\t * \n\t * @param id the given id.\n\t * @return the customer.\n\t * @throws IllegalStateException if no customer is available by the given id.\n\t */\n\tCustomerDto findById(Long id);\n\t\n\t/**\n\t * Find customer by given emailAddress.\n\t * \n\t * @param customerEmailDto the given emailAddress.\n\t * @return the customer.\n\t * @throws IllegalStateException if no customer is available by the given\n\t * emailAddress.\n\t */\n\tCustomerDto findByEmailAddress(CustomerEmailDto customerEmailDto);\n\t\n\t/**\n\t * Create a new customer in db.\n\t * \n\t * @param customerEntity the given customer to persist.\n\t * @return the created customerEntity with new technical id.\n\t */\n\tCustomerDto createCustomer(CustomerEntity customerEntity);\n\t\n\t/**\n\t * Delete customer by given id.\n\t * \n\t * @param id the given user id.\n\t */\n\tvoid deleteCustomerById(Long id);\n\n\t/**\n\t * Updates the given entity. Use the returned instance for further operations as\n\t * the save operation might have changed the entity instance completely.\n\t * \n\t * @param customerDto the edited entity.\n\t * @return the edited dto.\n\t */\n\tCustomerDto updateCustomer(CustomerDto customerDto);\n\t\n\t/**\n\t * Return a list with all customers.\n\t * \n\t * @return a list with all customers.\n\t */\n\tList<CustomerDto> findAll();\n\n}", "public interface FundRepository extends JpaRepository<Fund,String> ,JpaSpecificationExecutor<Fund> {\n Fund findByCustomerId(Integer customerId);\n \n @Modifying\n @Query(\"update t_fund set BALANCE = :balance where CUSTOMER_ID = :customerId\")\n\tvoid updateFund(@Param(\"balance\")BigDecimal balance,@Param(\"customerId\")Integer customerId);\n\n @Modifying\n @Query(\"update t_fund set BALANCE = :balance,COMMISSION = :commission where CUSTOMER_ID = :customerId\")\n\tvoid updateCommission(@Param(\"balance\")BigDecimal balance,@Param(\"commission\")BigDecimal commission,@Param(\"customerId\")Integer customerId);\n}", "void updateAccount();", "public Customer saveCustomer(Customer customer) {\n\t\treturn null;\n\t}", "public void transferMoney(int customerAccountId, int accountId) throws SQLException {\n // check if the customer has this account\n boolean customerOwnsAccount = false;\n for (int i = 0; i < this.currentCustomer.getAccounts().size(); i++) {\n if (customerAccountId == this.currentCustomer.getAccounts().get(i).getId()) {\n customerOwnsAccount = true;\n break;\n }\n }\n // it is safe to proceed since the customer accounts have been authenticated\n if (customerOwnsAccount) {\n Account customerAccount = DatabaseSelectHelper.getAccountDetails(customerAccountId);\n // try and catch for valid input (int) expected\n try {\n System.out.println(\"Enter amount you wish to transfer:\");\n // take user input as a big decimal\n BigDecimal bigAmount = new BigDecimal(br.readLine());\n if (bigAmount.compareTo(customerAccount.getBalance()) <= 0) {\n // try to update accounts\n try {\n // update the account which received money in database\n DatabaseUpdateHelper.updateAccountBalance(\n bigAmount.add(DatabaseSelectHelper.getBalance(accountId)), accountId);\n // update account which transfered money in database\n DatabaseUpdateHelper.updateAccountBalance(\n customerAccount.getBalance().subtract(bigAmount), customerAccountId);\n // update the customer object for printing reasons for other options\n this.currentCustomer.updateAccounts();\n // Explicitly tell user money is transfered\n System.out.println(\"you have successfully transfered money to account \" + accountId);\n \n } catch (Exception e) {\n System.out.println(\"The account ID you wish to transfer money to does not exist\");\n }\n // error printing\n } else {\n System.out.println(\"This account does not have enough money to send this amount\");\n }\n \n } catch (Exception e) {\n System.out.println(\"Invalid amount\");\n }\n // error printing\n } else {\n System.out.println(\"You do not have access to this account\");\n }\n \n }", "@Transactional(propagation = Propagation.REQUIRED)\n public CustomerEntity saveCustomer(CustomerEntity customerEntity) throws SignUpRestrictedException {\n CustomerEntity existingCustomerEntity = customerDao.getCustomerByContactNumber(customerEntity.getContactNumber());\n\n //Check if the Customer Data is Valid\n if (existingCustomerEntity != null) {\n throw new SignUpRestrictedException(\"SGR-001\", \"This contact number is already registered! Try other contact number\");\n }\n if (!utilityProvider.checkIfEmailIsValid(customerEntity.getEmail())) {\n throw new SignUpRestrictedException(\"SGR-002\", \"Invalid email-id format!\");\n }\n if (!utilityProvider.checkIfContactNumberIsValid(customerEntity.getContactNumber())) {\n throw new SignUpRestrictedException(\"SGR-003\", \"Invalid contact number!\");\n }\n if (utilityProvider.checkIfPasswordIsWeak(customerEntity.getPassword())) {\n throw new SignUpRestrictedException(\"SGR-004\", \"Weak password!\");\n }\n if (!utilityProvider.checkIfSignupRequestIsValid(customerEntity)) {\n throw new SignUpRestrictedException(\"SGR-005\", \"Except last name all fields should be filled\");\n }\n\n // Add encoded password and salt and persist it in CustomerEntity\n String[] encryptedPassword = passwordCryptographyProvider.encrypt(customerEntity.getPassword());\n customerEntity.setSalt(encryptedPassword[0]);\n customerEntity.setPassword(encryptedPassword[1]);\n\n return customerDao.createCustomer(customerEntity);\n }", "public String execute() throws Exception\r\n {\r\n String forwardString = RETURN_ERROR;\r\n\r\n HttpSession session = request.getSession(false);\r\n if (session == null)\r\n {\r\n request.getSession().removeAttribute(USER_STATUS);\r\n forwardString = RETURN_LOGIN_ERROR;\r\n return forwardString;\r\n }\r\n\r\n CustomerServiceImpl customerServiceObject = new CustomerServiceImpl();\r\n\r\n boolean isRecordInserted = false;\r\n\r\n selectedMonth = getCorrspondingMonthNumber();\r\n\r\n customerDob = selectedYear + \"-\" + selectedMonth + \"-\" + selectedDay;\r\n\r\n if (!isLegalDate())\r\n {\r\n request.getSession().setAttribute(\"errors\", getText(\"errors.invalidBirthDate\"));\r\n request.getSession().setAttribute(\"customerID\", customerID);\r\n forwardString = RETURN_ERROR;\r\n return forwardString;\r\n }\r\n\r\n SimpleDateFormat formatter = new SimpleDateFormat(FY);\r\n String financialYear = formatter.format(Calendar.getInstance().getTime());\r\n int currentYear = Integer.parseInt(financialYear);\r\n int underAgeLimitYear = currentYear - 18;\r\n\r\n if (Integer.parseInt(selectedYear) > underAgeLimitYear)\r\n {\r\n request.getSession().setAttribute(\"errors\", getText(\"errors.birthDateLessThanLimit\"));\r\n request.getSession().setAttribute(\"customerID\", customerID);\r\n forwardString = RETURN_ERROR;\r\n return forwardString;\r\n }\r\n \r\n if(!(currentCustomerFirstName.equalsIgnoreCase(customerFirstName) && currentCustomerLastName.equalsIgnoreCase(customerLastName)))\r\n {\r\n String newCustomerName = customerFirstName + \" \" + customerLastName;\r\n \r\n String dbCustomerID = customerServiceObject.getCustomerIDFromName(newCustomerName);\r\n if(dbCustomerID != null)\r\n {\r\n request.getSession().setAttribute(\"errors\", getText(\"errors.customerAlreadyPresent\"));\r\n request.getSession().setAttribute(\"customerID\", customerID);\r\n forwardString = RETURN_ERROR;\r\n return forwardString;\r\n }\r\n }\r\n\r\n isRecordInserted = customerServiceObject.updateCustomerInformation(customerID, customerFirstName,\r\n customerLastName, customerDob, customerContactNumber);\r\n\r\n if (isRecordInserted)\r\n {\r\n forwardString = RETURN_SUCCESS;\r\n }\r\n\r\n return forwardString;\r\n }", "public void updateBalance(String mobileNo,int balance)\n\t{\n\t\tContext ctx;\n\t\ttry {\n\t\t\tctx = new InitialContext();\n\t\t\n\t\t\n\t\t DataSource ds=(DataSource)ctx.lookup(\"java:OracleDS\");\n\t\t\tConnection con=ds.getConnection();\n\t\t\tStatement stmt=con.createStatement();\n\t\t\t\n\t\t\tstmt.executeUpdate(\"update mobile set balance=\"+balance+\" where mobileno=\"+mobileNo);\n\t\t\tcon.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in connection with Database :\"+e.getMessage());\n\t\t\t\n\t\t}\n\t\t\n\t}", "private void updateCustomer(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n String name = request.getParameter(\"name\");\n String phone = request.getParameter(\"phone\");\n String email = request.getParameter(\"email\");\n Customer updateCustomer = new Customer(id, name, phone, email);\n CustomerDao.addCustomer(updateCustomer);\n response.sendRedirect(\"list\");\n\n }", "@Override\r\n\tpublic void operateAmount(String AccountID, BigDecimal amount) {\n\r\n\t}", "public void createAccount(String acctId, String pass, String cardNo, String email) {\n accountId = acctId;\n password = pass;\n cardNumber = cardNo;\n customerEmail = email;\n \n try {\n //conect to database\n Class.forName(\"com.mysql.jdbc.Driver\");\n con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/make_order_request\", \"root\", \"admin\");\n Statement mystmt = con.createStatement();\n\n //write SQL query to update code in database\n String query = \"INSERT INTO customer_account(account_id, password, card_no, customer_email) VALUES (?,?,?,?)\";\n PreparedStatement ps = con.prepareStatement(query);\n ps.setString(1, accountId);\n ps.setString(2, password);\n ps.setInt(3, Integer.parseInt(cardNumber));\n ps.setString(4, customerEmail);\n\n ps.executeUpdate();\n\n return;\n\n } catch (Exception e) {\n e.printStackTrace();\n \n }\n\n }", "int updateByPrimaryKey(Account record);", "int updateByPrimaryKey(Account record);" ]
[ "0.6748372", "0.66649127", "0.6638251", "0.6613099", "0.6524392", "0.6510147", "0.6483944", "0.6442071", "0.6441105", "0.63675874", "0.63626397", "0.6357284", "0.6321374", "0.62473804", "0.62401104", "0.623188", "0.62209946", "0.6219446", "0.62061167", "0.62055504", "0.61887205", "0.61791104", "0.6174482", "0.61661464", "0.6162659", "0.6156679", "0.61564595", "0.61560214", "0.61546916", "0.615334", "0.61443853", "0.61438745", "0.6135072", "0.6131256", "0.612233", "0.6110673", "0.6110673", "0.6099737", "0.6093311", "0.6091446", "0.6090546", "0.6083123", "0.6078093", "0.6070069", "0.60667276", "0.60659873", "0.60624725", "0.6061971", "0.6060257", "0.6053406", "0.60456973", "0.6041843", "0.6029228", "0.60052675", "0.6003762", "0.59894603", "0.5986237", "0.5983953", "0.5981752", "0.5976952", "0.5971549", "0.59670603", "0.59584916", "0.5949526", "0.5939575", "0.5939025", "0.59378004", "0.59353536", "0.59339744", "0.5928084", "0.5922547", "0.5917715", "0.59168684", "0.59145284", "0.59126145", "0.59100753", "0.59076476", "0.59061736", "0.58927786", "0.5888077", "0.58827627", "0.5874302", "0.587318", "0.58714336", "0.58692086", "0.58661866", "0.5864596", "0.586396", "0.58528024", "0.58493525", "0.58472586", "0.584687", "0.58438003", "0.58428544", "0.58426934", "0.58426744", "0.5829819", "0.58282655", "0.58273125", "0.58273125" ]
0.6854561
0
/validateCustomerId(customerId); Customer customer = dao.findById(customerId); return customer.getBoughtItems();
@Transactional @Override public Set<Item> itemsBoughtByCustomer(Long customerId) { validateCustomerId(customerId); Optional<Customer> optional = custRepository.findById(customerId); if(!optional.isPresent()) { throw new CustomerNotFoundException("Customer with id "+customerId+" not found"); } Customer customer = optional.get(); Set<Item> itemSet = customer.getBoughtItems(); return itemSet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Customer getCustomerById(int customerId);", "public ResponseEntity<customer.controller.Customer> getCustomerById(Long id);", "@RequestMapping(value = \"/customer/{id}\",method=RequestMethod.GET)\n @ResponseStatus(HttpStatus.OK)\n public CustomerViewModel findCustomerById(@PathVariable(\"id\") int id){\n //create a customer View Model using the find method from the service layer\n CustomerViewModel customerViewModel = service.findCustomer(id);\n\n //if it does not exist, through an illegal argument exception\n if(customerViewModel == null){\n //throw new\n }\n\n //return the requested customer View Model\n return customerViewModel;\n }", "public List<CartItem> findCartItemsByCartItemIdCustomerCustomerId(int customerId);", "public Customer findCustomerById(long id) throws DatabaseOperationException;", "public ArrayList<Customer> findValidCustomers(Integer UserId);", "@Override\n\n\t\tpublic List<Bill> viewBillsByCustomerId(String custId) {\n\t\t\tList<Bill> bills = billDao.findBillByCustomerId(custId);\n\t\t\tif(bills.size()==0) {\n\t\t\t\tthrow new BillNotFoundException(\"No bills with given customer id\");\n\t\t\t}\n\t\t\treturn bills;\n\t\t}", "public String getCustomer(String custId);", "public CartItem findCartItemByCartItemIdItemItemIdAndCartItemIdCustomerCustomerId(int itemId, int customerId);", "List<Purchase> retrieveForCustomerID(Long customerID) throws SQLException, DAOException;", "@GetMapping(\"/customer/{id}\")\r\n\tpublic Customer viewCustomerbyId(@PathVariable(\"id\") int customerId){\r\n\t\tif(custService.viewCustomerbyId(customerId)==null) {\r\n\t\t\tthrow new CustomerNotFoundException(\"Customer not found with this id\" +customerId);\r\n\t\t}\r\n\t\treturn custService.viewCustomerbyId(customerId);\r\n\t\t\r\n\t}", "public int getCustomerId() \n {\n return customerId;\n }", "Set<AccountModel> findAllByCustomerId(String customerId) throws CustomerException;", "@GetMapping(\"/customer/{id}\")\r\n public Customer getCustomerById(@PathVariable Long id) {\r\n // orElseThrow means it will attempt to unwrap the optional\r\n // if there's nothing there, it will throw an exception\r\n return customerRepository.findById(id).orElseThrow();\r\n }", "@GetMapping(\"/{id}\")\n public Customer getCustomer(@PathVariable long id){\n return customerRepository.findById(id);\n }", "Customer findById(Long id);", "static Customer getCustomerWithId(int id){ return new Customer();}", "@Override\n\tpublic Customer viewCustomer(int customerId) {\n\t\t// TODO Auto-generated method stub\n\t\tCustomer cust = repository.findById(customerId)\n\t\t\t\t.orElseThrow(() -> new EntityNotFoundException(\"Currently No Customer is available with this id\"));\n\t\treturn cust;\n\t}", "@Test\n public void overviewAccountsControllerShouldReturnOnlyCustomerId() throws Exception {\n Integer customerId = 12212;\n request = registerSession(new MockHttpServletRequest(), customerId);\n\n final ModelAndView mav = processGetRequest(request, new MockHttpServletResponse());\n Integer actualCustomerId = (Integer) getModelValue(mav, \"customerId\");\n\n assertEquals(customerId, actualCustomerId);\n }", "List<Account> getAccountsForCustomerId(int customerId);", "public CustomerPurchase getById(Integer id) throws SQLException;", "@Test\n public void getInvoiceByCustomer() {\n Customer customer = new Customer();\n customer.setFirstName(\"Dominick\");\n customer.setLastName(\"DeChristofaro\");\n customer.setEmail(\"dominick.dechristofaro@gmail.com\");\n customer.setCompany(\"Omni\");\n customer.setPhone(\"999-999-9999\");\n customer = service.saveCustomer(customer);\n\n // Verify it was added to the database\n Customer customerCopy = service.findCustomer(customer.getCustomerId());\n TestCase.assertEquals(customerCopy, customer);\n\n // Add an Item to the database\n Item item = new Item();\n item.setName(\"Drill\");\n item.setDescription(\"Power Tool\");\n item.setDaily_rate(new BigDecimal(\"24.99\"));\n item = service.saveItem(item);\n\n // Verify it was added\n Item itemCopy = service.findItem(item.getItem_id());\n TestCase.assertEquals(itemCopy, item);\n\n // Add an InvoiceItem to the database\n Invoice_Item invoiceItem = new Invoice_Item();\n invoiceItem.setItem_id(item.getItem_id());\n invoiceItem.setQuantity(42);\n invoiceItem.setUnit_rate(new BigDecimal(\"4.99\"));\n invoiceItem.setDiscount(new BigDecimal(\"0.99\"));\n\n // Collect all the InvoiceItems into a list\n List<Invoice_Item> invoiceItemList = new ArrayList<>();\n invoiceItemList.add(invoiceItem);\n\n // Create an InvoiceViewModel\n InvoiceViewModel invoiceViewModel = new InvoiceViewModel();\n invoiceViewModel.setCustomer_id(customer.getCustomerId());\n invoiceViewModel.setOrder_date(LocalDate.of(2000,1,1));\n invoiceViewModel.setPickup_date(LocalDate.of(2000,2,2));\n invoiceViewModel.setReturn_date(LocalDate.of(2000,3,3));\n invoiceViewModel.setLate_fee(new BigDecimal(\"4.99\"));\n invoiceViewModel.setInvoice_items(invoiceItemList);\n invoiceViewModel = service.createInvoiceViewModel(invoiceViewModel);\n\n // Get Invoice By Customer\n service.getInvoiceByCustomer(customer.getCustomerId());\n }", "public List<CustomerModel> getCustomers();", "public List<Customer> getCustomerByID() {\n Query query = em.createNamedQuery(\"Customer.findByCustomerId\")\r\n .setParameter(\"customerId\", custID);\r\n // return query result\r\n return query.getResultList();\r\n }", "@GetMapping(\"/{customerid}\")\n public ResponseEntity<List<Order>> byCustomer(@PathVariable(value = \"customerid\") Long customerId) {\n return new ResponseEntity<>(orderService.getAllByCustomerId(customerId), HttpStatus.OK);\n }", "@Override\n public List<Item> viewOwnedItems(Customer customer) {\n return itemRepo.findItemsByID(customer);\n }", "@GetMapping(\"/customers/{customer_id}\")\n\tpublic Customer getcustomer(@PathVariable(\"customer_id\") int customerid) {\n\t\tCustomer thecustomer=thecustomerService.getCustomer(customerid);\n\t\tif(thecustomer==null) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id : \"+customerid+\" not found\");\n\t\t}\n\t\t\n\t\treturn thecustomer;\n\t}", "public Customer displayCustomer(int cid);", "public BankThing retrieve(String id);", "List<OrderDTO> findAll(String customerId);", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "@Override\n\tpublic CustomerData getCustomer(Long custId) {\n\t \n\t\tOptional<CustomerData> optionalCust = customerRepository.findById(custId);\n\t\t//Optional object use for check if a customer id is existing or not\n if(optionalCust.isPresent()) {\n return optionalCust.get(); //if customer id is exist then return a value\n }\n\t\treturn null;\n\t\t\n\t}", "public void findById() {\n String answer = view.input(message_get_id);\n if (answer != null){\n try{\n long id = Long.parseLong(answer);\n Customer c = model.findById(id);\n if(c!=null)\n view.showCustomerForm(c);\n else\n view.showMessage(not_found_error);\n }catch(NumberFormatException nfe){\n view.showMessage(\"ID must be number\");\n }\n }\n }", "@Query(\"select acc from Account acc where acc.customer.customerId = :customerId\")\n\tAccount findAccountByCustomer(@Param(\"customerId\") Long customerId);", "@Override\r\n\tpublic Customer getCustomer(String custId) {\r\n\t\tOptional<Customer> optionalCustomer = null;\r\n\t\tCustomer customer = null;\r\n\t\toptionalCustomer = customerRepository.findById(custId);\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer = optionalCustomer.get();\r\n\t\t\treturn customer;\r\n\t\t} else {\r\n\t\t\tthrow new EntityNotFoundException(\"Customer With Id \" + custId + \" does Not Exist.\");\r\n\t\t}\r\n\r\n\t}", "ShoppingItem getShoppingItemByGuid(String itemGuid);", "FetchRequest<Customer> byId(String id);", "@Override\n\tpublic Customer findById(Long customerId) {\n\t\tOptional<Customer> optional = custRepository.findById(customerId);\n\t\tif(!optional.isPresent()) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id \"+customerId+\" not found\");\n\t\t}\n\t\treturn optional.get();\n\t\t\n\t}", "CustomerDto findById(Long id);", "@Override\n public Customer getCustomerById(Long id) {\n log.debug(\"Inside getCustomerById method\");\n return customerRepository.findById(id).orElseThrow(\n () -> new ResourceNotFoundException(\"No customer present with the id : \" + id));\n }", "@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer = QCustomer.customer;\r\n List<Customer> customers = (List<Customer>) query.from(qcustomer).fetch();\r\n // Employee oneEmp = employees.get(0);\r\n\t\treturn customers;\r\n }", "public ResponseEntity<?> createCustomer(customer.controller.Customer customer);", "@GetMapping(\"/items/{item_id}\")\n\tpublic ResponseEntity<Item> getItemById(@PathVariable(value=\"item_id\") Long item_id){ \n\t\tItem item = itemDAO.findOne(item_id);\n\t\t\n\t\tif(item == null) {\n\t\t\treturn ResponseEntity.notFound().build();\n\t\t}\n\t\treturn ResponseEntity.ok().body(item);\n\t}", "public abstract CustomerOrder findOne(Long id);", "@Query(\"from OfferPrice o where o.customer.id = :customerId\")\n\tList<OfferPrice> findWithCustomerId(@Param(\"customerId\")Long customerId);", "@Test\n\tpublic void readCustomerById() {\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tlong id = customer.getId();\n\t\tname = \"Mark\";\n\t\taddress = \"Auckland\";\n\t\ttelephoneNumber = \"0211616447\";\n\t\tcustomerController.create(name, address, telephoneNumber);\n\n\t\t// When\n\t\tICustomer cus = customerController.read(id);\n\n\t\t// Then\n\t\tAssert.assertEquals(customer, cus);\n\t}", "List<CustomerOrderBroadbandASID> selectCustomerOrderBroadbandASID(CustomerOrderBroadbandASID cobasid);", "@Test\n\tpublic void testFindCustomerByGuidWithOneReturn() {\n\t\tfinal List<Customer> customers = new ArrayList<Customer>();\n\t\tCustomer customer = new CustomerImpl();\n\t\tcustomers.add(customer);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(getMockPersistenceEngine()).retrieveByNamedQuery(with(any(String.class)), with(any(Object[].class)));\n\t\t\t\twill(returnValue(customers));\n\t\t\t}\n\t\t});\n\t\tassertSame(customer, importGuidHelper.findCustomerByGuid(SOME_GUID));\n\t}", "@GetMapping(\"/savedItems/{customerId}\")\n List<Cart> getAllSavedProducts(@PathVariable(\"customerId\") int customerId) {\n\n Customer customer = cartService.getAllCartItems(customerId);\n List<Cart> savedItems = new ArrayList<>();\n\n Set<Cart> cart = customer.getCartItems();\n\n for (Cart savedItem : cart) {\n \n if(savedItem.isSavedForLater()){\n Double price = cartService.getNewPrice(savedItem);\n savedItem.setPrice(price);\n savedItems.add(savedItem);\n }\n \n }\n \n return savedItems;\n\n }", "public Customer getCustomers(int customerId) {\n for(Customer customer:customers){\n if(customer.getId() == customerId){\n return customer;\n }\n }\n return null;\n }", "@RequestMapping(value = \"/ws/customers/{id}\", method = RequestMethod.GET)\n public @ResponseBody\n CustomerDto getCustomer(@PathVariable(\"id\") Long customerId) {\n logger.info(\"Tries to find customer by id={}\", customerId);\n\n return customerAssembler.assembly(getCustomerById(customerId));\n }", "Item findById(String id);", "@Override\n @Transactional\n public Customer getCustomer(int customerId) {\n Optional<Customer> queryResult = customerRepository.findById(customerId);\n // if null return new Customer(), otherwise return the Customer\n return queryResult.orElseGet(Customer::new);\n }", "@Test\n public void findByCustomerTest() {\n Set<Reservation> expected = new HashSet<>();\n expected.add(reservation1);\n expected.add(reservation2);\n Mockito.when(reservationDao.findByCustomerId(Mockito.anyLong())).thenReturn(expected);\n Collection<Reservation> result = reservationService.findByCustomer(10L);\n Assert.assertEquals(result.size(), 2);\n Assert.assertTrue(result.contains(reservation1));\n Assert.assertTrue(result.contains(reservation2));\n }", "public int getCustId(){\n return this.custId;\r\n }", "public Customer getCustomerByName(String customerName);", "@PostMapping(\"/checkCustomerID\")\n public ModelAndView checkCustomerID(@ModelAttribute(\"customerCheck\") Customer customer,\n Model model){\n ModelAndView modelAndView = new ModelAndView();\n\n int customer_id = customer.getCustomerID();\n if (customerServiceImpl.getCustomer(customer_id)!=null){\n model.addAttribute(\"customerInfo\", customerServiceImpl.getCustomer(customer_id));\n modelAndView.setViewName(\"/content/openNewCurrentAccount\");\n return modelAndView;\n }\n model.addAttribute(\"invalid_user_error\", true);\n modelAndView.setViewName(\"/content/checkCustomer\");\n return modelAndView;\n }", "public interface CustomerService {\n\n List<Customer> getAllCustomer();\n\n //根据条件获得客户信息列表\n List<Customer> getCustomer(Customer customer);\n\n Customer getCustomerById(Integer id);\n\n int insertCustomer(Customer customer);\n\n int insertSelectiveCustomer(Customer customer);\n\n int deleteCustomer(Integer id );\n\n int updateCustomer(Customer customer );\n}", "Customer getCustomerById(final Long id);", "public Collection<Payment> getPayments(CustomerItem customerItem);", "@Test\n public void getCustomer() {\n Customer customer = new Customer();\n customer.setFirstName(\"Dominick\");\n customer.setLastName(\"DeChristofaro\");\n customer.setEmail(\"dominick.dechristofaro@gmail.com\");\n customer.setCompany(\"Omni\");\n customer.setPhone(\"999-999-9999\");\n customer = service.saveCustomer(customer);\n\n // Copy the customer added to the mock database using the CustomerAPI\n Customer customerCopy = service.findCustomer(customer.getCustomerId());\n\n // Test getCustomer() API method\n verify(customerDao, times(1)).getCustomer(customer.getCustomerId());\n TestCase.assertEquals(customerCopy, customer);\n }", "List<Appointment> getAppointmentByCustomerNumber(long customerNumber);", "@Test\n\tpublic void testFindCustomerByGuidWithMoreThanOneReturn() {\n\t\tfinal List<Customer> customers = new ArrayList<Customer>();\n\t\tCustomer customer = new CustomerImpl();\n\t\tcustomers.add(customer);\n\t\tcustomers.add(customer);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(getMockPersistenceEngine()).retrieveByNamedQuery(with(any(String.class)), with(any(Object[].class)));\n\t\t\t\twill(returnValue(customers));\n\t\t\t}\n\t\t});\n\t\ttry {\n\t\t\timportGuidHelper.findCustomerByGuid(SOME_GUID);\n\t\t\tfail(EP_SERVICE_EXCEPTION_EXPECTED);\n\t\t} catch (EpServiceException e) {\n\t\t\tassertNotNull(e);\n\t\t}\n\t}", "@Override\n\tpublic Customer getCustomer(int customerId) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\ttry {\n\t\t\t\n\t\t\tCustomer customer =session.get(Customer.class, customerId);\n\t\t return customer;\t\t\t\n\t\t}\n\t\tcatch(HibernateException exception){\n\t\t\texception.printStackTrace();\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "@Test\n void whenOrderIdIsValid_thenReturnDelivery_findByOrderId(){\n Delivery delivery = deliveryService.getDeliveryByOrderId(1L);\n assertThat(delivery.getOrder_id()).isEqualTo(1L);\n }", "@GetMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Customer> getCustomerById(@PathVariable Long id) {\n\t\tCustomer customer = customerRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Customer not exist with id :\" + id));\n\t\treturn ResponseEntity.ok(customer);\n\t}", "List<Customer> getCustomers();", "@Override\n\tpublic Customer findCustomer(int customerId) {\n\t\treturn null;\n\t}", "List<Customer> loadAllCustomer();", "List<Customer> getCustomerList();", "@GetMapping(\"/points/{customerId}\")\n @ResponseStatus(HttpStatus.OK)\n public int retrievePointsByCustomerId(@PathVariable(\"customerId\") int customerId) {\n\n return serviceLayer.getPoints(customerId);\n }", "public interface CustomerRepository {\n Customer find(IDCardNum idcardNum);\n void store(Customer customer);\n}", "List<CatalogItem> getAllCatalogItemsByBrand(Long brand_id);", "public interface CustomerService {\n\n\t/**\n\t * Find customer by given id.\n\t * \n\t * @param id the given id.\n\t * @return the customer.\n\t * @throws IllegalStateException if no customer is available by the given id.\n\t */\n\tCustomerDto findById(Long id);\n\t\n\t/**\n\t * Find customer by given emailAddress.\n\t * \n\t * @param customerEmailDto the given emailAddress.\n\t * @return the customer.\n\t * @throws IllegalStateException if no customer is available by the given\n\t * emailAddress.\n\t */\n\tCustomerDto findByEmailAddress(CustomerEmailDto customerEmailDto);\n\t\n\t/**\n\t * Create a new customer in db.\n\t * \n\t * @param customerEntity the given customer to persist.\n\t * @return the created customerEntity with new technical id.\n\t */\n\tCustomerDto createCustomer(CustomerEntity customerEntity);\n\t\n\t/**\n\t * Delete customer by given id.\n\t * \n\t * @param id the given user id.\n\t */\n\tvoid deleteCustomerById(Long id);\n\n\t/**\n\t * Updates the given entity. Use the returned instance for further operations as\n\t * the save operation might have changed the entity instance completely.\n\t * \n\t * @param customerDto the edited entity.\n\t * @return the edited dto.\n\t */\n\tCustomerDto updateCustomer(CustomerDto customerDto);\n\t\n\t/**\n\t * Return a list with all customers.\n\t * \n\t * @return a list with all customers.\n\t */\n\tList<CustomerDto> findAll();\n\n}", "Customer getCustomer();", "@GetMapping(value = \"/api/customer/brand/{brand_id}\")\n public ResponseEntity<List<CustomerDTO>> getCustomerByBrandId(@PathVariable Long brand_id) throws NoSuchBrandException, NoSuchCustomerException, NoSuchTestdriveException {\n Set<Customer> customers= customerService.getCustomerByBrandId(brand_id);\n\n Link link = linkTo(methodOn(CustomerController.class).getAllCustomers()).withSelfRel();\n\n List<CustomerDTO> customerDTOS = new ArrayList<>();\n for (Customer entity : customers) {\n Link selfLink = new Link(link.getHref() + \"/\" + entity.getId()).withSelfRel();\n CustomerDTO dto = new CustomerDTO(entity, selfLink);\n customerDTOS.add(dto);\n }\n\n return new ResponseEntity<>(customerDTOS, HttpStatus.OK);\n }", "@Override\n\tpublic Customer getCustomers(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// retrieve object from database using the ID\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\t\t\n\t\t// return the results\n\t\treturn theCustomer;\n\t}", "public interface ItemObjectService {\r\n ItemObject findByItemId(Long itemId);\r\n}", "@Test\n\t// @Disabled\n\tvoid testViewCustomerbyId() {\n\t\tCustomer customer = new Customer(1, \"jen\", \"cru\", \"951771122\", \"tom@gmail.com\");\n\t\tMockito.when(custRep.findById(1)).thenReturn(Optional.of(customer));\n\t\tCustomer persistedCust = custService.viewCustomerbyId(1);\n\t\tassertEquals(\"jen\", persistedCust.getFirstName());\n\t}", "@GetMapping(\"/customers\")\n public List<CustomerHibernate> listCustomers() {\n return customerService.findAll();\n }", "public Customer getCustomerBy_id(ObjectId _id) {\n\t\treturn custRepo.findBy_id(_id);\n\t}", "public void customerQuery(){\n }", "public interface CustomerManager {\n void createCustomer(Customer customer);\n\n Customer getCustomerById(Long id);\n\n List<Customer> findAllCustomers();\n\n List<Customer> findCustomerByName(String name);\n\n void updateCustomer(Customer customer);\n\n void deleteCustomer(Customer customer);\n}", "List<Bill> findBillsForReservation(long reservationId);", "CustomerDTO getCustomerDetails(Long customerId,String userName) throws EOTException;", "public Contact getContactById(int contactId);", "CompletableFuture<BonusCustomer> findById(int customerNumber);", "@Test\n public void getAllCustomer() {\n Customer customer1 = new Customer();\n customer1.setFirstName(\"Dominick\");\n customer1.setLastName(\"DeChristofaro\");\n customer1.setEmail(\"dominick.dechristofaro@gmail.com\");\n customer1.setCompany(\"Omni\");\n customer1.setPhone(\"999-999-9999\");\n customer1 = service.saveCustomer(customer1);\n\n // Add a second Customer to the mock database (customer2)\n Customer customer2 = new Customer();\n customer2.setFirstName(\"Michael\");\n customer2.setLastName(\"Stuckey\");\n customer2.setEmail(\"michaelallenstuckey@gmail.com\");\n customer2.setCompany(\"NuclearFuelServices\");\n customer2.setPhone(\"222-222-2222\");\n customer2 = service.saveCustomer(customer2);\n\n // Collect all the customers into a list using the Customer API\n List<Customer> customerList = service.findAllCustomers();\n\n // Test the getAllCustomer() API method\n TestCase.assertEquals(2,customerList.size());\n TestCase.assertEquals(customer1, customerList.get(0));\n TestCase.assertEquals(customer2, customerList.get(1));\n }", "private ObservableList<Order> getAllCustomerOrders(int customerId){\r\n ObservableList<Order> customerOrders = null;\r\n try {\r\n OrderDB odb = new OrderDB();\r\n customerOrders = odb.getAllOrders(customerId);\r\n } catch (Exception e){\r\n System.err.println(e.getMessage());\r\n }\r\n return customerOrders;\r\n }", "@GetMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Object> getCustomerDetailed(@PathVariable(\"id\") Integer id, HttpServletRequest request){\n\t\tif(service.findByEmail(SessionManager.getInstance().getSessionEmail(request.getSession())) == null) {\n\t\t\tSessionManager.getInstance().delete(request.getSession());\n\t\t\treturn new ResponseEntity<>(HttpStatus.UNAUTHORIZED); \n\t\t}else {\n\t\t\tCustomer cus = cService.findById(id);\n\t\t\tif(cus == null) return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t\tMappingJacksonValue mappedCustomer = new MappingJacksonValue(cus);\n\t\t\tmappedCustomer.setFilters(new SimpleFilterProvider().addFilter(Customer.FILTER, SimpleBeanPropertyFilter.serializeAll()));\n\t\t\treturn new ResponseEntity<>(mappedCustomer, HttpStatus.OK);\n\t\t}\n\t}", "@GetMapping(\"/cartItems/{customerId}\")\n List<Cart> getAllCartProducts(@PathVariable(\"customerId\") int customerId) {\n\n Customer customer = cartService.getAllCartItems(customerId);\n List<Cart> cartItems = new ArrayList<>();\n\n Set<Cart> cart = customer.getCartItems();\n\n for (Cart cartItem : cart) {\n \n if(!(cartItem.isSavedForLater())){\n Double price = cartService.getNewPrice(cartItem);\n cartItem.setPrice(price);\n cartItems.add(cartItem);\n }\n \n }\n\n return cartItems;\n\n }", "public Employee getEmployeeById(Long custId)throws EmployeeException;", "@Override\n public Personn findById(Integer idCustomer) {\n return manager.find(Personn.class,idCustomer );\n //return findByCriteria(criteria);\n }", "public Invoice findById(long id);", "public Customer getCustomer()\n {\n return customer;\n }", "@GetMapping(\"/customer/{customerId}\")\n @ResponseStatus(HttpStatus.OK)\n public LevelUpViewModel getLevelUpAccountByCustomerId(@PathVariable(\"customerId\") int customerId) {\n\n return serviceLayer.getLevelUpByCustomerId(customerId);\n }", "public Customer getCustomer()\n {\n return customer;\n }", "@Override\n\tpublic Uni<Customer> findCustomerById(Long cid) {\n\t\treturn repo.findById(cid);\n\t}", "@Test\n\tpublic void existing_customer_should_be_found() {\n\t\tfinal String customerId = \"123e4567-e89b-42d3-a456-556642440000\";\n\n\t\t// When\n\t\tfinal Customer customer = customerRepository.findById(customerId);\n\n\t\t// Then\n\t\tassertThat(customer).isNotNull();\n\t\tassertThat(customer.getId()).isEqualTo(customerId);\n\t\tassertThat(customer.getName()).isEqualTo(\"NAME1\");\n\t}", "@Override\n\tpublic Customer findById(Long cust_id) throws Exception {\n\t\tList<Customer> lists = (List<Customer>) this.getHibernateTemplate().find(\"from Customer where cust_id = ?\",\n\t\t\t\tcust_id);\n\t\tgetHibernateTemplate().get(Customer.class, cust_id);\n\t\tif (lists.size() > 0) {\n\n\t\t\treturn lists.get(0);\n\t\t}\n\n\t\treturn null;\n\t}" ]
[ "0.6848436", "0.660069", "0.6597413", "0.6565243", "0.63766116", "0.6354703", "0.63203526", "0.6297859", "0.62682503", "0.6186749", "0.6155789", "0.613269", "0.60867685", "0.60337055", "0.6028327", "0.5993979", "0.5982107", "0.5964447", "0.59619164", "0.5951819", "0.5934628", "0.5920631", "0.5879511", "0.58772653", "0.58696413", "0.5868902", "0.5835581", "0.5824208", "0.58035356", "0.5794824", "0.5793688", "0.57812834", "0.5777972", "0.577232", "0.5768627", "0.57496774", "0.5745629", "0.5739546", "0.5722405", "0.5715982", "0.5706413", "0.5704117", "0.56984985", "0.5697382", "0.5695461", "0.56932837", "0.56845033", "0.5675547", "0.567088", "0.56676733", "0.56675184", "0.5658007", "0.5655887", "0.5650028", "0.56487405", "0.5641171", "0.5639643", "0.5637653", "0.5632376", "0.5629091", "0.5627954", "0.5626377", "0.56224084", "0.56112057", "0.5602098", "0.5590975", "0.55864275", "0.55851716", "0.55847454", "0.55834734", "0.5579823", "0.5575526", "0.5571372", "0.55426407", "0.55408216", "0.5533743", "0.55269563", "0.5526375", "0.55248165", "0.5523182", "0.5523106", "0.552208", "0.5516779", "0.5515903", "0.55129576", "0.55078113", "0.55022186", "0.5488207", "0.54858845", "0.5480964", "0.5479952", "0.54794145", "0.5477841", "0.5475251", "0.5467941", "0.5466156", "0.54608846", "0.5454781", "0.5454192", "0.54505765" ]
0.6847837
1
Creates a dataset, consisting of two series of data.
private static XYDataset createDataset(Double[] x, Double[] y) { logger.info("Creating Dataset"); XYSeries s1 = new XYSeries(Double.valueOf(1)); if (x.length != y.length) { logger.error("Error in createDataset of ScatterDialog. " + "Could not create a dataset for the scatter plot -- missing data"); return null; } for (int i = 0; i < x.length; i++) { if (y[i] != null) { s1.add(x[i], y[i]); } } XYSeriesCollection dataset = new XYSeriesCollection(); dataset.addSeries(s1); return dataset; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private XYMultipleSeriesDataset getdemodataset() {\n\t\t\tdataset1 = new XYMultipleSeriesDataset();// xy轴数据源\n\t\t\tseries = new XYSeries(\"温度 \");// 这个事是显示多条用的,显不显示在上面render设置\n\t\t\t// 这里相当于初始化,初始化中无需添加数据,因为如果这里添加第一个数据的话,\n\t\t\t// 很容易使第一个数据和定时器中更新的第二个数据的时间间隔不为两秒,所以下面语句屏蔽\n\t\t\t// 这里可以一次更新五个数据,这样的话相当于开始的时候就把五个数据全部加进去了,但是数据的时间是不准确或者间隔不为二的\n\t\t\t// for(int i=0;i<5;i++)\n\t\t\t// series.add(1, Math.random()*10);//横坐标date数据类型,纵坐标随即数等待更新\n\n\t\t\tdataset1.addSeries(series);\n\t\t\treturn dataset1;\n\t\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "private XYDataset createDataset() {\n\t\tfinal XYSeriesCollection dataset = new XYSeriesCollection( ); \n\t\tdataset.addSeries(trainErrors); \n\t\tdataset.addSeries(testErrors);\n\t\treturn dataset;\n\t}", "private XYDataset createDataset() {\n\t \tXYSeriesCollection dataset = new XYSeriesCollection();\n\t \t\n\t \t//Definir cada Estacao\n\t\t XYSeries aes1 = new XYSeries(\"Estação1\");\n\t\t XYSeries aes2 = new XYSeries(\"Estação2\");\n\t\t XYSeries aes3 = new XYSeries(\"Estação3\");\n\t\t XYSeries aes4 = new XYSeries(\"Estação4\");\n\t\t XYSeries aes5 = new XYSeries(\"Estação5\");\n\t\t XYSeries aes6 = new XYSeries(\"Estação6\");\n\t\t XYSeries aes7 = new XYSeries(\"Estação7\");\n\t\t XYSeries aes8 = new XYSeries(\"Estação8\");\n\t\t XYSeries aes9 = new XYSeries(\"Estação9\");\n\t\t XYSeries aes10 = new XYSeries(\"Estação10\");\n\t\t XYSeries aes11 = new XYSeries(\"Estação11\");\n\t\t XYSeries aes12 = new XYSeries(\"Estação12\");\n\t\t XYSeries aes13 = new XYSeries(\"Estação13\");\n\t\t XYSeries aes14 = new XYSeries(\"Estação14\");\n\t\t XYSeries aes15 = new XYSeries(\"Estação15\");\n\t\t XYSeries aes16 = new XYSeries(\"Estação16\");\n\t\t \n\t\t //Definir numero de utilizadores em simultaneo para aparece na Interface\n\t\t XYSeries au1 = new XYSeries(\"AU1\");\n\t\t XYSeries au2 = new XYSeries(\"AU2\");\n\t\t XYSeries au3 = new XYSeries(\"AU3\");\n\t\t XYSeries au4 = new XYSeries(\"AU4\");\n\t\t XYSeries au5 = new XYSeries(\"AU5\");\n\t\t XYSeries au6 = new XYSeries(\"AU6\");\n\t\t XYSeries au7 = new XYSeries(\"AU7\");\n\t\t XYSeries au8 = new XYSeries(\"AU8\");\n\t\t XYSeries au9 = new XYSeries(\"AU9\");\n\t\t XYSeries au10 = new XYSeries(\"AU10\");\n\t\t \n\t\t //Colocar estacoes no gráfico\n\t\t aes1.add(12,12);\n\t\t aes2.add(12,37);\n\t\t aes3.add(12,62);\n\t\t aes4.add(12,87);\n\t\t \n\t\t aes5.add(37,12);\n\t\t aes6.add(37,37);\n\t\t aes7.add(37,62);\n\t\t aes8.add(37,87);\n\t\t \n\t\t aes9.add(62,12); \n\t\t aes10.add(62,37);\n\t\t aes11.add(62,62);\n\t\t aes12.add(62,87);\n\t\t \n\t\t aes13.add(87,12);\n\t\t aes14.add(87,37);\n\t\t aes15.add(87,62);\n\t\t aes16.add(87,87);\n\t\t \n\t\t//Para a bicicleta 1\n\t\t \t\n\t\t\t for(Entry<String, String> entry : position1.entrySet()) {\n\t\t\t\t String key = entry.getKey();\n\t\t\t\t \n\t\t\t\t String[] part= key.split(\",\");\n\t\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t\t \n\t\t\t\t au1.add(keyX,keyY);\n\t\t\t }\n\t\t \n\t\t\t //Para a bicicleta 2\n\t\t for(Entry<String, String> entry : position2.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au2.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Para a bicicleta 3\n\t\t for(Entry<String, String> entry : position3.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au3.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position4.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au4.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position5.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au5.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position6.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au6.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position7.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au7.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position8.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au8.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position9.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au9.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position10.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au10.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Add series to dataset\n\t\t dataset.addSeries(au1);\n\t\t dataset.addSeries(au2);\n\t\t dataset.addSeries(au3);\n\t\t dataset.addSeries(au4);\n\t\t dataset.addSeries(au5);\n\t\t dataset.addSeries(au6);\n\t\t dataset.addSeries(au7);\n\t\t dataset.addSeries(au8);\n\t\t dataset.addSeries(au9);\n\t\t dataset.addSeries(au10);\n\t\t \n\t\t \n\t\t dataset.addSeries(aes1);\n\t\t dataset.addSeries(aes2);\n\t\t dataset.addSeries(aes3);\n\t\t dataset.addSeries(aes4);\n\t\t dataset.addSeries(aes5);\n\t\t dataset.addSeries(aes6);\n\t\t dataset.addSeries(aes7);\n\t\t dataset.addSeries(aes8);\n\t\t dataset.addSeries(aes9);\n\t\t dataset.addSeries(aes10);\n\t\t dataset.addSeries(aes11);\n\t\t dataset.addSeries(aes12);\n\t\t dataset.addSeries(aes13);\n\t\t dataset.addSeries(aes14);\n\t\t dataset.addSeries(aes15);\n\t\t dataset.addSeries(aes16);\n\t\t \n\t\t return dataset;\n\t }", "private Dataset createDataset1() {\n final RDF factory1 = createFactory();\n\n final IRI name = factory1.createIRI(\"http://xmlns.com/foaf/0.1/name\");\n final Dataset g1 = factory1.createDataset();\n final BlankNode b1 = createOwnBlankNode(\"b1\", \"0240eaaa-d33e-4fc0-a4f1-169d6ced3680\");\n g1.add(b1, b1, name, factory1.createLiteral(\"Alice\"));\n\n final BlankNode b2 = createOwnBlankNode(\"b2\", \"9de7db45-0ce7-4b0f-a1ce-c9680ffcfd9f\");\n g1.add(b2, b2, name, factory1.createLiteral(\"Bob\"));\n\n final IRI hasChild = factory1.createIRI(\"http://example.com/hasChild\");\n g1.add(null, b1, hasChild, b2);\n\n return g1;\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "private JFreeChart createChart ( final XYDataset dataset1, final XYDataset dataset2 ) {\n final JFreeChart result = ChartFactory.createTimeSeriesChart( null, \"\", \"\", dataset1, true, true, false );\n final XYPlot plot = result.getXYPlot();\n final XYItemRenderer renderer1 = new XYLineAndShapeRenderer( true, false );\n final XYItemRenderer renderer2 = new XYLineAndShapeRenderer( true, false );\n plot.setDomainPannable( true );\n plot.setRangePannable( true );\n plot.setDataset( SPEED_SERIES_DATASET, dataset2 );\n plot.mapDatasetToRangeAxis( SPEED_SERIES_DATASET, SPEED_SERIES_DATASET );\n plot.setRenderer( SPEED_SERIES_DATASET, renderer1 );\n plot.setDataset( POSITION_SERIES_DATASET, dataset1 );\n plot.mapDatasetToRangeAxis( POSITION_SERIES_DATASET, POSITION_SERIES_DATASET );\n plot.setRenderer( POSITION_SERIES_DATASET, renderer2 );\n plot.setBackgroundPaint( StartUI.MAIN_BACKGROUND_COLOR );\n plot.setDomainGridlinePaint( Color.decode(\"0x3b4246\") );\n plot.setRangeGridlinePaint( Color.decode(\"0x3b4246\") );\n plot.setRangeGridlineStroke( new BasicStroke( 0.8f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL ) );\n plot.setDomainGridlineStroke( new BasicStroke( 0.8f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL ) );\n renderer1.setSeriesPaint( 0, Color.decode( \"#AAFF44\" ) );\n renderer2.setSeriesPaint( 0, Color.decode( \"#EEDD00\" ) );\n result.setBackgroundPaint( null );\n result.removeLegend();\n return result;\n }", "public Data(Integer first, Integer second) {\n this.setFirst(first);\n this.setSecond(second);\n }", "Series<double[]> makeSeries(int dimension);", "private static List<Point> createLinearDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 100);\r\n add(data, 5, 200);\r\n add(data, 10, 300);\r\n add(data, 15, 400);\r\n return data;\r\n }", "private static List<Point> createConvergingDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 400);\r\n add(data, 5, 700);\r\n add(data, 10, 900);\r\n add(data, 15, 1000);\r\n add(data, 20, 1050);\r\n add(data, 25, 1060);\r\n add(data, 30, 1062);\r\n return data;\r\n }", "private XYDataset createDataset(int a, List<ExtractedMZ> extracteddata, List<ExtractedMZ> extracteddata2) {\r\n final XYSeriesCollection dataset = new XYSeriesCollection();\r\n \r\n \r\n for (int i = 0; i<extracteddata.size(); i++) {\r\n \r\n final XYSeries series = new XYSeries(extracteddata.get(i).getName());\r\n float max = 0;\r\n \r\n for (int j = 0; j< extracteddata.get(i).retentionTimeList.get(a).size(); j++) {\r\n max = extracteddata.get(i).intensityList.get(a).get(j);\r\n while (j<extracteddata.get(i).retentionTimeList.get(a).size()-1 && Math.abs(extracteddata.get(i).retentionTimeList.get(a).get(j) - extracteddata.get(i).retentionTimeList.get(a).get(j+1)) < 0.01) {\r\n if (extracteddata.get(i).intensityList.get(a).get(j) > max) {\r\n max = extracteddata.get(i).intensityList.get(a).get(j+1);\r\n }\r\n j++;\r\n \r\n }\r\n \r\n series.add(extracteddata.get(i).retentionTimeList.get(a).get(j)/60,max);\r\n }\r\n dataset.addSeries(series);\r\n }\r\n \r\n for (int i = 0; i<extracteddata2.size(); i++) {\r\n \r\n final XYSeries series = new XYSeries(extracteddata2.get(i).getName());\r\n float max = 0;\r\n \r\n for (int j = 0; j< extracteddata2.get(i).retentionTimeList.get(a).size(); j++) {\r\n max = extracteddata2.get(i).intensityList.get(a).get(j);\r\n while (j<extracteddata2.get(i).retentionTimeList.get(a).size()-1 && Math.abs(extracteddata2.get(i).retentionTimeList.get(a).get(j) - extracteddata2.get(i).retentionTimeList.get(a).get(j+1)) < 0.01) {\r\n if (extracteddata2.get(i).intensityList.get(a).get(j) > max) {\r\n max = extracteddata2.get(i).intensityList.get(a).get(j+1);\r\n }\r\n j++;\r\n \r\n }\r\n \r\n series.add(extracteddata2.get(i).retentionTimeList.get(a).get(j)/60,max);\r\n }\r\n dataset.addSeries(series);\r\n }\r\n\r\n \r\n \r\n \r\n \r\n return dataset;\r\n \r\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "public static CategoryDataset createDataset() {\r\n DefaultCategoryDataset dataset = new DefaultCategoryDataset();\r\n dataset.addValue(1.0, \"First\", \"C1\");\r\n dataset.addValue(4.0, \"First\", \"C2\");\r\n dataset.addValue(3.0, \"First\", \"C3\");\r\n dataset.addValue(5.0, \"First\", \"C4\");\r\n dataset.addValue(5.0, \"First\", \"C5\");\r\n dataset.addValue(7.0, \"First\", \"C6\");\r\n dataset.addValue(7.0, \"First\", \"C7\");\r\n dataset.addValue(8.0, \"First\", \"C8\");\r\n dataset.addValue(5.0, \"Second\", \"C1\");\r\n dataset.addValue(7.0, \"Second\", \"C2\");\r\n dataset.addValue(6.0, \"Second\", \"C3\");\r\n dataset.addValue(8.0, \"Second\", \"C4\");\r\n dataset.addValue(4.0, \"Second\", \"C5\");\r\n dataset.addValue(4.0, \"Second\", \"C6\");\r\n dataset.addValue(2.0, \"Second\", \"C7\");\r\n dataset.addValue(1.0, \"Second\", \"C8\");\r\n dataset.addValue(4.0, \"Third\", \"C1\");\r\n dataset.addValue(3.0, \"Third\", \"C2\");\r\n dataset.addValue(2.0, \"Third\", \"C3\");\r\n dataset.addValue(3.0, \"Third\", \"C4\");\r\n dataset.addValue(6.0, \"Third\", \"C5\");\r\n dataset.addValue(3.0, \"Third\", \"C6\");\r\n dataset.addValue(4.0, \"Third\", \"C7\");\r\n dataset.addValue(3.0, \"Third\", \"C8\");\r\n return dataset;\r\n }", "private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\t\tresult.setValue(\"Linux\", 29);\n\t\tresult.setValue(\"Mac\", 20);\n\t\tresult.setValue(\"Windows\", 51);\n\t\treturn result;\n\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public void addSeries(DataSeries aSeries) { _dataSet.addSeries(aSeries); }", "public XYMultipleSeriesDataset getDataset() {\n\t\tEnvironmentTrackerOpenHelper openhelper = new EnvironmentTrackerOpenHelper(ResultsContent.context);\n\t\tSQLiteDatabase database = openhelper.getReadableDatabase();\n\t\tString[] columns = new String[2];\n\t\tcolumns[0] = \"MOOD\";\n\t\tcolumns[1] = \"HUE_CATEGORY\";\n\t\tCursor results = database.query(true, \"Observation\", columns, null, null, null, null, null, null);\n\t\t\n\t\t// Make sure the cursor is at the start.\n\t\tresults.moveToFirst();\n\t\t\n\t\tint[] meanMoodCategoryHue = new int[4];\n\t\tint[] nrMoodCategoryHue = new int[4];\n\t\t\n\t\t// Overloop de verschillende observaties.\n\t\twhile (!results.isAfterLast()) {\n\t\t\tint mood = results.getInt(0);\n\t\t\tint hue = results.getInt(1);\n\t\t\t\n\t\t\t// Tel de mood erbij en verhoog het aantal met 1 in de juiste categorie.\n\t\t\tmeanMoodCategoryHue[hue-1] = meanMoodCategoryHue[hue-1] + mood;\n\t\t\tnrMoodCategoryHue[hue-1]++;\n\t\t\tresults.moveToNext();\n\t\t}\n\t\t\n\t\t// Bereken voor elke hue categorie de gemiddelde mood.\n\t\tfor (int i=1;i<=4;i++) {\n\t\t\tif (nrMoodCategoryHue[i-1] == 0) {\n\t\t\t\tmeanMoodCategoryHue[i-1] = 0;\n\t\t\t} else {\n\t\t\t\tmeanMoodCategoryHue[i-1] = meanMoodCategoryHue[i-1]/nrMoodCategoryHue[i-1];\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Plaats de gegevens samen in een dataset voor de grafiek.\n\t\tXYMultipleSeriesDataset myData = new XYMultipleSeriesDataset();\n\t XYSeries dataSeries = new XYSeries(\"data\");\n\t dataSeries.add(1,meanMoodCategoryHue[0]);\n\t dataSeries.add(2,meanMoodCategoryHue[1]);\n\t dataSeries.add(3,meanMoodCategoryHue[2]);\n\t dataSeries.add(4,meanMoodCategoryHue[3]);\n\t myData.addSeries(dataSeries);\n\t return myData;\n\t}", "public CategoryDataset createDataset() {\n\t\tfinal DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\t\tProjectManagement projectManagement = new ProjectManagement();\n\t\tif (this.chartName == \"Earned Value\") {\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getEarnedValue(date), \"Earned Value\", date);\n\t\t\t}\n\t\t} else if (this.chartName == \"Schedule Variance\") {\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getScheduleVariance(date), \"Schedule Variance\", date);\n\t\t\t}\n\n\t\t} else {// Cost Variance\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getCostVariance(date), \"Cost Variance\", date);\n\t\t\t}\n\t\t}\n\t\treturn dataset;\n\t}", "private Object createDataset(final ChartConfiguration config) {\n final CategoryChart chart = (CategoryChart) config.chart;\n for (final Fields key: config.fields) {\n chart.addSeries(key.getLocalizedName(), new double[1], new double[1]);\n }\n populateDataset(config);\n return null;\n }", "public JFreeChart MakeChart() {\n\t\t\n\t\tDefaultCategoryDataset areaDataset = new DefaultCategoryDataset();\n\t\t\n\t\tObject[] column1Data = super.getDataset().GetColumnData(\n\t\t\tsuper.getAttribute1());\n\t\tObject[] column2Data = super.getDataset().GetColumnData(\n\t\t\tsuper.getAttribute2());\n\t\t\n\t\tString column2Header = super.getDataset().GetAttributeName(\n\t\t\tsuper.getAttribute2());\n\t\t\n\t\tboolean addDataset = true;\n\t\tString errors = \"\";\n\t\tint errorCounter = 0;\n\t\t\n\t\tfor (int i=0; i<super.getDataset().GetNoOfEntrys();i++) {\t\n \n\t\t\tComparable<Object> nextValue1;\n\t\t\t//First value can have be any comparable object.\n \n nextValue1 = (Comparable<Object>) column1Data[i]; \n\t\t\tDouble nextValue2 = null;\n\t\t\tboolean addThis = true;\n\t\t\t//Second value can only be integer, double or boolean.\n\t\t\t\n\t\t\ttry {\n\t\t\t\tint intNextValue2 = Integer.parseInt(column2Data[i].toString());\n\t\t\t\tnextValue2 = (Double) ((double) intNextValue2);\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\ttry {\n\t\t\t\t\tdouble doubleNextValue2 = Double.parseDouble(\n\t\t\t\t\t\t\tcolumn2Data[i].toString());\n\t\t\t\t\tnextValue2 = (Double) doubleNextValue2;\n\t\t\t\t} catch (NumberFormatException nfe2) {\n\t\t\t\t\tString strNextValue2 = column2Data[i].toString();\n\t\t\t\t\tif (strNextValue2.equalsIgnoreCase(\"True\")) {\n\t\t\t\t\t\tnextValue2 = TRUE;\n\t\t\t\t\t} else if (strNextValue2.equalsIgnoreCase(\"False\")) {\n\t\t\t\t\t\tnextValue2 = FALSE;\n\t\t\t\t\t} else {\n\t\t\t\t\t\taddThis = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\taddThis = false;\n\t\t\t}\n\t\t\t\n\t\t\tif (addThis == true) {\n\t\t\t\tareaDataset.addValue( nextValue2, column2Header, nextValue1 );\n\t\t\t} else {\n\t\t\t\taddDataset = false;\n\t\t\t\tif (errorCounter < MAX_ERROR_LENGTH) {\n\t\t\t\t\terrors = errors + \"\\n\"\n\t\t\t\t\t\t+ column2Data[i].toString();\n\t\t\t\t\t\terrorCounter++;\n\t\t\t\t}\n\t\t\t}\n }\n\t\t\n\t\tif (addDataset == false) {\n\t\t\tareaDataset = new DefaultCategoryDataset(); //Reset\n\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\"Your selected y-axis has data in the wrong format\" + \"\\n\" +\n\t\t\t\t\"The following data needs to be a number in order to be\" + \n\t\t\t\t\" represented.\"\n\t\t\t\t\t+ errors);\n\t\t}\n\t\t\n\t\tJFreeChart chart = ChartFactory.createAreaChart( \n super.getHeader(),\n\t\t\t\t\t\tsuper.getxAxis(),\n\t\t\t\t\t\tsuper.getyAxis(),\n\t\t\t\t\t\tareaDataset,\n\t\t\t\t\t\tPlotOrientation.VERTICAL,\n true, //include legend\n true,\n false );\n return chart;\n\t}", "private PieDataset createDataset() {\n JOptionPane.showMessageDialog(null, \"teste\"+dados.getEntrada());\r\n \r\n DefaultPieDataset result = new DefaultPieDataset();\r\n result.setValue(\"Entrada\", dados.getEntrada());\r\n result.setValue(\"Saida\", dados.getSaida());\r\n result.setValue(\"Saldo do Periodo\", dados.getSaldo());\r\n return result;\r\n\r\n }", "public static Dataset createDataset(RepositoryConnection connection)\n {\n DatasetGraph dsg = new JenaSesameDatasetGraph(connection) ;\n return DatasetFactory.wrap(dsg) ;\n }", "private XYDataset createSampleDataset(GradientDescent gd) {\n XYSeries predictedY = new XYSeries(\"Predicted Y\");\n XYSeries actualY = new XYSeries(\"Actual Y\");\n List<BigDecimal> xValues = gd.getInitialXValues();\n List<BigDecimal> yPred = gd.getPredictedY(xValues);\n List<BigDecimal> yActual = gd.getInitialYValues();\n for (int cont = 0; cont < xValues.size(); cont++){\n \tpredictedY.add(xValues.get(cont), yPred.get(cont));\n \tSystem.out.println(\"pred: \" + xValues.get(cont) + \", \" + yPred.get(cont));\n \tactualY.add(xValues.get(cont), yActual.get(cont));\n \tSystem.out.println(\"actual: \" + xValues.get(cont) + \", \" + yActual.get(cont));\n\t\t}\n XYSeriesCollection dataset = new XYSeriesCollection();\n dataset.addSeries(predictedY);\n dataset.addSeries(actualY);\n return dataset;\n }", "private void setData() {\n LineDataSet set1 = new LineDataSet(valuesTemperature, \"Temperature\");\n\n set1.setColor(Color.RED);\n set1.setLineWidth(1.0f);\n set1.setDrawValues(false);\n set1.setDrawCircles(false);\n set1.setMode(LineDataSet.Mode.LINEAR);\n set1.setDrawFilled(false);\n\n // create a data object with the data sets\n LineData data = new LineData(set1);\n\n // set data\n chartTemperature.setData(data);\n\n // get the legend (only possible after setting data)\n Legend l = chartTemperature.getLegend();\n l.setEnabled(true);\n\n\n // create a dataset and give it a type\n set1 = new LineDataSet(valuesPressure, \"Pressure\");\n\n set1.setColor(Color.GREEN);\n set1.setLineWidth(1.0f);\n set1.setDrawValues(false);\n set1.setDrawCircles(false);\n set1.setMode(LineDataSet.Mode.LINEAR);\n set1.setDrawFilled(false);\n\n // create a data object with the data sets\n data = new LineData(set1);\n\n // set data\n chartPressure.setData(data);\n\n // get the legend (only possible after setting data)\n l = chartPressure.getLegend();\n l.setEnabled(true);\n\n\n\n // create a dataset and give it a type\n set1 = new LineDataSet(valuesAltitude, \"Altitude\");\n\n set1.setColor(Color.BLUE);\n set1.setLineWidth(1.0f);\n set1.setDrawValues(false);\n set1.setDrawCircles(false);\n set1.setMode(LineDataSet.Mode.LINEAR);\n set1.setDrawFilled(false);\n\n // create a data object with the data sets\n data = new LineData(set1);\n\n // set data\n chartAltitude.setData(data);\n\n // get the legend (only possible after setting data)\n l = chartAltitude.getLegend();\n l.setEnabled(true);\n }", "private CategoryDataset createDataset( )\n\t {\n\t final DefaultCategoryDataset dataset = \n\t new DefaultCategoryDataset( ); \n\t \n\t dataset.addValue(23756.0, \"余杭\", \"闲林\");\n\t dataset.addValue(29513.5, \"余杭\", \"良渚\");\n\t dataset.addValue(25722.2, \"余杭\", \"瓶窑\");\n\t dataset.addValue(19650.9, \"余杭\", \"星桥\");\n\t dataset.addValue(19661.6, \"余杭\", \"崇贤\");\n\t dataset.addValue(13353.9, \"余杭\", \"塘栖\");\n\t dataset.addValue(25768.9, \"余杭\", \"勾庄\");\n\t dataset.addValue(12682.8, \"余杭\", \"仁和\");\n\t dataset.addValue(22963.1, \"余杭\", \"乔司\");\n\t dataset.addValue(19695.6, \"余杭\", \"临平\");\n\t \n\t return dataset; \n\t }", "private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\n\t\tif (_controler != null) {\n\t\t\tfor (Object cat : _controler.getCategorieData()) {\n\n\t\t\t\tresult.setValue((String) cat, _controler.getTotal((String) cat));\n\n\t\t\t}\n\t\t}\n\t\treturn result;\n\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "private Dataset createDataSet(RecordingObject recordingObject, Group parentObject, String name) throws Exception\n\t{\n\t\t// dimension of dataset, length of array and 1 column\n\t\tlong[] dims2D = { recordingObject.getYValuesLength(), recordingObject.getXValuesLength() };\n\n\t\t// H5Datatype type = new H5Dataype(CLASS_FLOAT, 8, NATIVE, -1);\n\t\tDatatype dataType = recordingsH5File.createDatatype(recordingObject.getDataType(), recordingObject.getDataBytes(), Datatype.NATIVE, -1);\n\t\t// create 1D 32-bit float dataset\n\t\tDataset dataset = recordingsH5File.createScalarDS(name, parentObject, dataType, dims2D, null, null, 0, recordingObject.getValues());\n\n\t\t// add attributes for unit and metatype\n\t\tcreateAttributes(recordingObject.getMetaType().toString(), recordingObject.getUnit(), dataset);\n\n\t\treturn dataset;\n\t}", "protected CategorySeries buildCategoryDataset(String title, List<Evenement> values) {\n CategorySeries series = new CategorySeries(title);\n int k = 0;\n for (Evenement value : values) {\n series.add(value.getDescription(), value.getNb_participants());\n }\n\n return series;\n }", "public static CategoryDataset createSampleDataset() {\n \t\n \t// row keys...\n final String series1 = \"Expected\";\n final String series2 = \"Have\";\n final String series3 = \"Goal\";\n\n // column keys...\n final String type1 = \"Type 1\";\n final String type2 = \"Type 2\";\n final String type3 = \"Type 3\";\n final String type4 = \"Type 4\";\n final String type5 = \"Type 5\";\n final String type6 = \"Type 6\";\n final String type7 = \"Type 7\";\n final String type8 = \"Type 8\";\n\n // create the dataset...\n final DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\n dataset.addValue(1.0, series1, type1);\n dataset.addValue(4.0, series1, type2);\n dataset.addValue(3.0, series1, type3);\n dataset.addValue(5.0, series1, type4);\n dataset.addValue(5.0, series1, type5);\n dataset.addValue(7.0, series1, type6);\n dataset.addValue(7.0, series1, type7);\n dataset.addValue(8.0, series1, type8);\n\n dataset.addValue(5.0, series2, type1);\n dataset.addValue(7.0, series2, type2);\n dataset.addValue(6.0, series2, type3);\n dataset.addValue(8.0, series2, type4);\n dataset.addValue(4.0, series2, type5);\n dataset.addValue(4.0, series2, type6);\n dataset.addValue(2.0, series2, type7);\n dataset.addValue(1.0, series2, type8);\n\n dataset.addValue(4.0, series3, type1);\n dataset.addValue(3.0, series3, type2);\n dataset.addValue(2.0, series3, type3);\n dataset.addValue(3.0, series3, type4);\n dataset.addValue(6.0, series3, type5);\n dataset.addValue(3.0, series3, type6);\n dataset.addValue(4.0, series3, type7);\n dataset.addValue(3.0, series3, type8);\n\n return dataset;\n \n }", "private void initData2() {\n generateValues(); //设置四条线的值数据\n generateData(); //设置数据\n\n // Disable viewport recalculations, see toggleCubic() method for more info.\n chart2.setViewportCalculationEnabled(false);\n\n chart2.setZoomType(ZoomType.HORIZONTAL);//设置线条可以水平方向收缩\n resetViewport(); //设置折线图的显示大小\n }", "public void setData(final List<Double> second) {\n this.data = second;\n }", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private XYDataset createDataset(String WellID, String lang) {\n final TimeSeries eur = createEURTimeSeries(WellID, lang);\n final TimeSeriesCollection dataset = new TimeSeriesCollection();\n dataset.addSeries(eur);\n return dataset;\n }", "@Override\n\tpublic void addSeries(final String title, final double[] xs,\n\t\t\tfinal double[] ys) {\n\t\tXYSeries series = new XYSeries(title, false, true);\n\t\tfor (int i = 0, n = Math.min(xs.length, ys.length); i < n; i++) {\n\t\t\tseries.add(xs[i], ys[i]);\n\t\t}\n\t\tthis.dataset.addSeries(series);\n\t}", "public XYDataset getDataset() {\n\n // Initialize some variables\n XYSeriesCollection dataset = new XYSeriesCollection();\n XYSeries series[][][] = new XYSeries[rois.length][images.length][stats.length];\n String seriesname[][][] = new String[rois.length][images.length][stats.length];\n int currentSlice = ui.getOpenMassImages()[0].getCurrentSlice();\n ArrayList<String> seriesNames = new ArrayList<String>();\n String tempName = \"\";\n double stat;\n\n // Image loop\n for (int j = 0; j < images.length; j++) {\n MimsPlus image;\n if (images[j].getMimsType() == MimsPlus.HSI_IMAGE || images[j].getMimsType() == MimsPlus.RATIO_IMAGE) {\n image = images[j].internalRatio;\n } else {\n image = images[j];\n }\n\n // Plane loop\n for (int ii = 0; ii < planes.size(); ii++) {\n int plane = (Integer) planes.get(ii);\n if (image.getMimsType() == MimsPlus.MASS_IMAGE) {\n ui.getOpenMassImages()[0].setSlice(plane, false);\n } else if (image.getMimsType() == MimsPlus.RATIO_IMAGE) {\n ui.getOpenMassImages()[0].setSlice(plane, image);\n }\n\n // Roi loop\n for (int i = 0; i < rois.length; i++) {\n\n // Set the Roi to the image.\n Integer[] xy = ui.getRoiManager().getRoiLocation(rois[i].getName(), plane);\n rois[i].setLocation(xy[0], xy[1]);\n image.setRoi(rois[i]);\n\n // Stat loop\n for (int k = 0; k < stats.length; k++) {\n\n // Generate a name for the dataset.\n String prefix = \"\";\n if (image.getType() == MimsPlus.MASS_IMAGE || image.getType() == MimsPlus.RATIO_IMAGE) {\n prefix = \"_m\";\n }\n if (seriesname[i][j][k] == null) {\n tempName = stats[k] + prefix + image.getRoundedTitle(true) + \"_r\" + rois[i].getName();\n int dup = 1;\n while (seriesNames.contains(tempName)) {\n tempName = stats[k] + prefix + image.getRoundedTitle(true) + \"_r\" + rois[i].getName() + \" (\" + dup + \")\";\n dup++;\n }\n seriesNames.add(tempName);\n seriesname[i][j][k] = tempName;\n }\n\n // Add data to the series.\n if (series[i][j][k] == null) {\n series[i][j][k] = new XYSeries(seriesname[i][j][k]);\n }\n\n // Get the statistic.\n stat = getSingleStat(image, stats[k], ui);\n if (stat > Double.MAX_VALUE || stat < (-1.0) * Double.MAX_VALUE) {\n stat = Double.NaN;\n }\n series[i][j][k].add(((Integer) planes.get(ii)).intValue(), stat);\n\n } // End of Stat\n } // End of Roi\n } // End of Plane\n } // End of Image\n\n // Populate the final data structure.\n for (int i = 0; i < rois.length; i++) {\n for (int j = 0; j < images.length; j++) {\n for (int k = 0; k < stats.length; k++) {\n dataset.addSeries(series[i][j][k]);\n }\n }\n }\n\n ui.getOpenMassImages()[0].setSlice(currentSlice);\n\n return dataset;\n }", "private static CategoryDataset createDataset() throws SQLException, InterruptedException \n\t{ \n\t\t// creating dataset \n\t\tDefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\t\t\n\t\t//setting up the connexion\n\t\tConnection con = null;\n\t\tString conUrl = \"jdbc:sqlserver://\"+Login.Host+\"; databaseName=\"+Login.databaseName+\"; user=\"+Login.user+\"; password=\"+Login.password+\";\";\n\t\ttry \n\t\t{\n\t\t\tcon = DriverManager.getConnection(conUrl);\n\t\t} \n\t\tcatch (SQLException e1) \n\t\t{\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\t//this counter will allow me to run my while loop only once\n\t\tint cnt=0;\n\t\twhile(cnt<1)\n\t\t{ \n\t\t\t//check the query number at each call to the function in order to know which procedure must me executed\n\t\t\tif (queryNumber==0){\n\t\t\t\tcnt++;\n\t\t\t\tcstmt = con.prepareCall(\"{call avgMonthly(?,?,?,?)}\");\n\t\t\t\t\n\t\t\t\t//setting the procedures parameters with the one chosen by the user\n\t\t\t\tcstmt.setInt(1, Integer.parseInt(year));\n\t\t\t\tcstmt.setInt(2, Integer.parseInt(month));\n\t\t\t\tcstmt.setString(3, featureStringH);\t\n\t\t\t\tcstmt.setString(4, actionStringH);\t\n\t\t\t\tResultSet aveTempAvg = cstmt.executeQuery();\n\t\t\t\t\n\t\t\t\t// extracting the data of my query in order to plot it\n\t\t\t\tResultSetMetaData rsmd = aveTempAvg.getMetaData();\n\t\t\t\tif(rsmd!=null) \n\t\t\t\t{\n\t\t\t\t\twhile (aveTempAvg.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tString columnValue = aveTempAvg.getString(1);//latency\n\t\t\t\t\t\tint dayAxisNum=aveTempAvg.getInt(2);//average\n\t\t\t\t\t\tif(columnValue!=null) {\n\t\t\t\t\t\t\t//Adding the result of the query to the data set and setting y value to the average latency and x to the corresponding day\n\t\t\t\t\t\t\tdataset.setValue(Double.parseDouble(columnValue),\"series\",Integer.toString(dayAxisNum));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdataset.setValue(0, (\"series\" +\"\"+0), \"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\telse if (queryNumber==1){\n\t\t\t\tcnt++;\n\t\t\t\tcstmt = con.prepareCall(\"{call avgDaily(?,?,?)}\");\t\n\t\t\t\t/*for the second query , the user will enter seperate year month and day \n\t\t\t\t so we wil have to concatenate the date into a string before setting the date value*/\n\t\t\t\tString newDate= year+\"-\"+month+\"-\"+day;\n\t\t\t\tcstmt.setString(1, newDate);\n\t\t\t\tcstmt.setString(2, featureStringH);\n\t\t\t\tcstmt.setString(3, actionStringH);\t\n\t\t\t\tResultSet aveTempAvg = cstmt.executeQuery();\n\t\t\t\t\n\t\t\t\t//extracting the data of the query\n\t\t\t\tResultSetMetaData rsmd = aveTempAvg.getMetaData();\n\t\t\t\tif(rsmd!=null) \n\t\t\t\t{\n\t\t\t\t\tint hour = 0;\n\t\t\t\t\twhile (aveTempAvg.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tString columnValue = aveTempAvg.getString(1);\n\t\t\t\t\t\tint hour2=aveTempAvg.getInt(2);\n\t\t\t\t\t\tif(columnValue!=null) {\n\t\t\t\t\t\t\t//setting y value to the average and the x is the corresponding hour\n\t\t\t\t\t\t\tdataset.setValue(Double.parseDouble(columnValue),\"series\",Integer.toString(hour2));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//I will add 0 if I don't have the corresponding value of the specified Hour\n\t\t\t\t\t\t\tdataset.setValue(0, (\"series\" +\"\"+hour), \"\");\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\telse if (queryNumber==2){\n\t\t\t\tcnt++;\n\t\t\t\t//Thread.sleep(100);\n\t\t\t\tcstmt = con.prepareCall(\"{call avgHour(?,?,?,?)}\");\t\n\t\t\t\tString newDate2= year+\"-\"+month+\"-\"+day;\n\t\t\t\t//same as for the daily query we have to set the parameters , we add to that the hour as last parameter\n\t\t\t\tcstmt.setString(1, newDate2);\n\t\t\t\tcstmt.setString(2, featureStringH);\n\t\t\t\tcstmt.setString(3, actionStringH);\n\t\t\t\tcstmt.setInt(4,Integer.parseInt(hourString));\n\t\t\t\tResultSet aveTempAvg = cstmt.executeQuery();\n\t\t\t\t\n\t\t\t\t//extract the data from the query\n\t\t\t\tResultSetMetaData rsmd = aveTempAvg.getMetaData();\n\t\t\t\tif(rsmd!=null) \n\t\t\t\t{\n\t\t\t\t\twhile (aveTempAvg.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tString columnValue = aveTempAvg.getString(1);\n\t\t\t\t\t\tint min=aveTempAvg.getInt(2);\n\t\t\t\t\t\tif(columnValue!=null) {\n\t\t\t\t\t\t\t//setting y value to the average and the x is the corresponding minute\n\n\t\t\t\t\t\t\tdataset.setValue(Double.parseDouble(columnValue),\"series\",Integer.toString(min));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//adding 0 if I don't have the corresponding minute\n\t\t\t\t\t\t\tdataset.setValue(0, (\"series\"+min),\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn dataset; \n\t}", "DataStreams createDataStreams();", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private XYSeries createSeries() {\r\n return createSeries(0);\r\n }", "protected void fillDataset(Dataset dataset) {\n dataset.getDefaultModel().getGraph().add(SSE.parseTriple(\"(<x> <p> 'Default graph')\")) ;\n \n Model m1 = dataset.getNamedModel(graph1) ;\n m1.getGraph().add(SSE.parseTriple(\"(<x> <p> 'Graph 1')\")) ;\n m1.getGraph().add(SSE.parseTriple(\"(<x> <p> 'ZZZ')\")) ;\n \n Model m2 = dataset.getNamedModel(graph2) ;\n m2.getGraph().add(SSE.parseTriple(\"(<x> <p> 'Graph 2')\")) ;\n m2.getGraph().add(SSE.parseTriple(\"(<x> <p> 'ZZZ')\")) ;\n calcUnion.add(m1) ;\n calcUnion.add(m2) ;\n }", "public DatasetHelper(DatasetHelper another){\n id= another.id;\n hash = another.hash;\n catalogueId = another.catalogueId;\n sourceType = another.sourceType;\n sourceLang = another.sourceLang;\n model = ModelFactory.createDefaultModel().add(another.model);\n uriSchema = another.uriSchema;\n }", "public void addSeries(List<T1> xData, List<T2> yData, String seriesName){\n\t\tif(xData.size() != yData.size())\n\t\t\tthrow new IllegalArgumentException(\"X and Y data must have the same size\");\n\t\tXYChart.Series<T1, T2> series = new XYChart.Series<>();\n\t\tfor(int i=0; i<xData.size(); i++){\n\t\t\tseries.getData().add(new XYChart.Data<>(xData.get(i), yData.get(i)));\n\t\t}\n\t\tseries.setName(seriesName);\n\t\tplot.getData().add(series);\n\t}", "private void initDataset(){\n dataSet.add(\"Karin\");\n dataSet.add(\"Ingrid\");\n dataSet.add(\"Helga\");\n dataSet.add(\"Renate\");\n dataSet.add(\"Elke\");\n dataSet.add(\"Ursula\");\n dataSet.add(\"Erika\");\n dataSet.add(\"Christa\");\n dataSet.add(\"Gisela\");\n dataSet.add(\"Monika\");\n\n addDataSet.add(\"Anna\");\n addDataSet.add(\"Sofia\");\n addDataSet.add(\"Emilia\");\n addDataSet.add(\"Emma\");\n addDataSet.add(\"Neele\");\n addDataSet.add(\"Franziska\");\n addDataSet.add(\"Heike\");\n addDataSet.add(\"Katrin\");\n addDataSet.add(\"Katharina\");\n addDataSet.add(\"Liselotte\");\n }", "public DataSet() {\r\n \r\n }", "private DataSet normalDataSet(){\n //create normal distribution with mean .05 and sd .05/3 so that 99.7% of events are < .1\n NormalDistribution normalDistribution = new NormalDistribution(TARGET_MEAN, TARGET_MEAN/3D);\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate costs from sampling from normal distribution\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n Long cost = (long) Math.max(1, normalDistribution.sample()); //make sure no 0 cost events\n tasks[i] = new Task(cost, uuid);\n }\n //generate task multiplities from sampling from uniform distribution\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "public DataSet() {\n this.bars = new ArrayList<Bar>();\n this.reviews = new ArrayList<Review>();\n }", "private BrandsData allocateDataStorage(BrandsData b1, BrandsData b2) {\n\t\tDouble [] data = new Double[12];\n\t\tdata[0] = b1.getSales(thisPeriod)+b2.getSales(thisPeriod);\n\t\tdata[1] = b1.getSales(lastPeriod)+b2.getSales(lastPeriod);\n\t\tdata[2] = b1.getAnyPromo(thisPeriod)+b2.getAnyPromo(thisPeriod);\n\t\tdata[3] = b1.getAnyPromo(lastPeriod)+b2.getAnyPromo(lastPeriod);\n\t\tdata[4] = b1.getPriceDisc(thisPeriod)+b2.getPriceDisc(thisPeriod);\n\t\tdata[5] = b1.getPriceDisc(lastPeriod)+b2.getPriceDisc(lastPeriod);\n\t\tdata[6] = b1.getFeat(thisPeriod)+b2.getFeat(thisPeriod);\n\t\tdata[7] = b1.getFeat(lastPeriod)+b2.getFeat(lastPeriod);\n\t\tdata[8] = b1.getDisplay(thisPeriod)+b2.getDisplay(thisPeriod);\n\t\tdata[9] = b1.getDisplay(lastPeriod)+b2.getDisplay(lastPeriod);\n\t\tdata[10] = b1.getQual(thisPeriod)+b2.getQual(thisPeriod);\n\t\tdata[11] = b1.getQual(lastPeriod)+b2.getQual(lastPeriod);\n\t\tString brand = b2.getBrand();\n\t\tBrandsData input = new BrandsData(brand, data);\n\t\treturn input;\n\t}", "@Override\n public CreateDatasetResult createDataset(CreateDatasetRequest request) {\n request = beforeClientExecution(request);\n return executeCreateDataset(request);\n }", "public Dataset(final int dimensions, final int numPoints) {\n this(dimensions);\n\n for (int i = 0; i < numPoints; i++) {\n double[] point = new double[dimensions];\n addPoint(new DataPoint(point));\n }\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "static double[][] makeTestData() {\n double[][] data = new double[21][2];\n double xmax = 5;\n double xmin = -5;\n double dx = (xmax - xmin) / (data.length -1);\n for (int i = 0; i < data.length; i++) {\n double x = xmin + dx * i;\n double y = 2.5 * x * x * x - x * x / 3 + 3 * x;\n data[i][0] = x;\n data[i][1] = y;\n }\n return data;\n }", "public static <T extends Row> DataSet<T> toDS(List<T> data) {\n return new DataSet<>(data);\n }", "private void addDataSet() {\n Log.d(TAG, \"addDataSet started\");\n ArrayList<PieEntry> yEntrys = new ArrayList<>();\n ArrayList<String> xEntrys = new ArrayList<>();\n\n for(int i = 0; i < yData.length; i++){\n yEntrys.add(new PieEntry(yData[i] , i));\n }\n\n for(int i = 1; i < xData.length; i++){\n xEntrys.add(xData[i]);\n }\n\n //Create the data set\n PieDataSet pieDataSet = new PieDataSet(yEntrys, \"Popularity stat\");\n pieDataSet.setSliceSpace(2);\n pieDataSet.setValueTextSize(12);\n pieDataSet.setValueTextColor(Color.WHITE);\n\n\n\n //Add colors to dataset\n ArrayList<Integer> colors = new ArrayList<>();\n colors.add(Color.BLUE);\n colors.add(Color.RED);\n colors.add(Color.GREEN);\n colors.add(Color.CYAN);\n colors.add(Color.YELLOW);\n colors.add(Color.MAGENTA);\n\n pieDataSet.setColors(colors);\n\n //Add legend to chart\n Legend legend = pieChart.getLegend();\n legend.setForm(Legend.LegendForm.DEFAULT);\n legend.setPosition(Legend.LegendPosition.ABOVE_CHART_CENTER);\n\n //Create pie data object\n PieData pieData = new PieData(pieDataSet);\n pieChart.setData(pieData);\n pieChart.invalidate();\n }", "protected abstract D createData();", "public void initGraphData(String dataSeriesName1, String dataSeriesName2, String dataSeriesName3) {\n m_pDataSeriesName1 = dataSeriesName1;\n m_pDataSeriesName2 = dataSeriesName2;\n m_pDataSeriesName3 = dataSeriesName3;\n\n initDataSeries(m_pDataSeriesName1, m_pDataSeriesName2, m_pDataSeriesName3);\n\n m_pAnimation = new Timeline();\n m_pAnimation.getKeyFrames().add(new KeyFrame(Duration.millis(2000), new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent actionEvent) {\n try {\n m_pLock.lock();\n if (mTimeInSecond != null) {\n\n addToDataSeries1(mTimeInSecond, mPlotValue1, CHART_MODE_2_SECONDS);\n addToDataSeries2(mTimeInSecond, mPlotValue2, CHART_MODE_2_SECONDS);\n addToDataSeries3(mTimeInSecond, mPlotValue3, CHART_MODE_2_SECONDS);\n\n if (mChartModeCounter % 10 == 0) {\n addToDataSeries1(mTimeInSecond, mPlotValue1, CHART_MODE_10_SECONDS);\n addToDataSeries2(mTimeInSecond, mPlotValue2, CHART_MODE_10_SECONDS);\n addToDataSeries3(mTimeInSecond, mPlotValue3, CHART_MODE_10_SECONDS);\n }\n\n if (mChartModeCounter % 30 == 0) {\n addToDataSeries1(mTimeInSecond, mPlotValue1, CHART_MODE_30_SECONDS);\n addToDataSeries2(mTimeInSecond, mPlotValue2, CHART_MODE_30_SECONDS);\n addToDataSeries3(mTimeInSecond, mPlotValue3, CHART_MODE_30_SECONDS);\n }\n\n if (mChartModeCounter % 300 == 0) {\n addToDataSeries1(mTimeInSecond, mPlotValue1, CHART_MODE_5_MINUTES);\n addToDataSeries2(mTimeInSecond, mPlotValue2, CHART_MODE_5_MINUTES);\n addToDataSeries3(mTimeInSecond, mPlotValue3, CHART_MODE_5_MINUTES);\n mChartModeCounter = 0;\n }\n\n mChartModeCounter += 2;\n\n // Set null after plotting\n mTimeInSecond = null;\n mPlotValue1 = null;\n mPlotValue2 = null;\n mPlotValue3 = null;\n\n // Update the X Axis if it has been initialized\n if (m_pXAxis != null) {\n int chartRange;\n ObservableList<XYChart.Data<Number, Number>> observableList1, observableList2, observableList3;\n switch (mChartMode) {\n case CHART_MODE_2_SECONDS:\n observableList1 = m_pDataSerieObservableList1_2SEC;\n observableList2 = m_pDataSerieObservableList2_2SEC;\n observableList3 = m_pDataSerieObservableList3_2SEC;\n chartRange = X_AXIS_RANGE_2_SECOND_MODE;\n break;\n case CHART_MODE_10_SECONDS:\n observableList1 = m_pDataSerieObservableList1_10SEC;\n observableList2 = m_pDataSerieObservableList2_10SEC;\n observableList3 = m_pDataSerieObservableList3_10SEC;\n chartRange = X_AXIS_RANGE_10_SECOND_MODE;\n break;\n case CHART_MODE_30_SECONDS:\n observableList1 = m_pDataSerieObservableList1_30SEC;\n observableList2 = m_pDataSerieObservableList2_30SEC;\n observableList3 = m_pDataSerieObservableList3_30SEC;\n chartRange = X_AXIS_RANGE_30_SECOND_MODE;\n break;\n case CHART_MODE_5_MINUTES:\n observableList1 = m_pDataSerieObservableList1_5MIN;\n observableList2 = m_pDataSerieObservableList2_5MIN;\n observableList3 = m_pDataSerieObservableList3_5MIN;\n chartRange = X_AXIS_RANGE_5_MINUTE_MODE;\n break;\n default:\n observableList1 = m_pDataSerieObservableList1_2SEC;\n observableList2 = m_pDataSerieObservableList2_2SEC;\n observableList3 = m_pDataSerieObservableList3_2SEC;\n chartRange = X_AXIS_RANGE_2_SECOND_MODE;\n break;\n }\n\n\n double maxValue = Math.max(Math.max(observableList1.get(observableList1.size() - 1).getXValue().doubleValue(),\n observableList2.get(observableList1.size() - 1).getXValue().doubleValue()),\n observableList3.get(observableList1.size() - 1).getXValue().doubleValue());\n double newLowerBound = maxValue - chartRange;\n double newUpperBound = maxValue;\n m_pXAxis.setLowerBound(newLowerBound);\n m_pXAxis.setUpperBound(newUpperBound);\n m_pXAxis.setDisable(false);\n }\n }\n } finally {\n m_pLock.unlock();\n }\n }\n }));\n m_pAnimation.setCycleCount(Timeline.INDEFINITE);\n m_pAnimation.play();\n }", "@Override\n\tpublic Plot2DDataSet getValues(float xmin, float xmax) throws UnsupportedOperationException {\n\t\tfinal JSONArray arr = new JSONArray();\n\t\tfinal Iterator<Object> it = data.getJSONArray(\"data\").iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tfinal JSONObject point = (JSONObject) it.next();\n\t\t\tfinal long x = point.getLong(\"x\");\n\t\t\t// TODO more efficient way to find first relevant timestamp\n\t\t\tif (x >= xmin && x <= xmax)\n\t\t\t\tarr.put(point);\n\t\t\telse if (x > xmax)\n\t\t\t\tbreak;\n\t\t}\n\t\tfinal JSONObject json = new JSONObject();\n\t\tjson.put(\"label\", id);\n\t\tjson.put(\"data\", arr);\n\t\treturn new ChartjsDataSet(id, json);\n\t}", "static void createDataForGraph() {\n double x = 2;\n String fileName = \"./lab1part2docs/dataRec.csv\";\n createFile(fileName);\n writeToFile(\"k,halfCounter,oneCounter,x=\" + x + \"\\n\", fileName);\n for (int k = 1; k <= 10000; k++) {\n Raise.runBoth(x, k);\n writeToFile(k + \",\" + Raise.recHalfCounter + \",\" + Raise.recOneCounter + '\\n', fileName);\n Raise.recHalfCounter = 0;\n Raise.recOneCounter = 0;\n }\n System.out.println(\"Finished\");\n }", "private TaskSeriesCollection createCollection2() {\n TaskSeriesCollection result = new TaskSeriesCollection();\n TaskSeries s1 = new TaskSeries(\"S1\");\n Task t1 = new Task(\"Task 1\", new Date(10), new Date(20));\n t1.addSubtask(new Task(\"Task 1A\", new Date(10), new Date(15)));\n t1.addSubtask(new Task(\"Task 1B\", new Date(16), new Date(20)));\n t1.setPercentComplete(0.10);\n s1.add(t1);\n Task t2 = new Task(\"Task 2\", new Date(30), new Date(40));\n t2.addSubtask(new Task(\"Task 2A\", new Date(30), new Date(35)));\n t2.addSubtask(new Task(\"Task 2B\", new Date(36), new Date(40)));\n t2.setPercentComplete(0.20);\n s1.add(t2);\n result.add(s1);\n TaskSeries s2 = new TaskSeries(\"S2\");\n Task t3 = new Task(\"Task 3\", new Date(50), new Date(60));\n t3.addSubtask(new Task(\"Task 3A\", new Date(50), new Date(55)));\n t3.addSubtask(new Task(\"Task 3B\", new Date(56), new Date(60)));\n t3.setPercentComplete(0.30);\n s2.add(t3);\n result.add(s2);\n return result;\n }", "private LineDataSet createSet(){\n LineDataSet set = new LineDataSet(null, \"SPL Db\");\n set.setDrawCubic(true);\n set.setCubicIntensity(0.2f);\n set.setAxisDependency(YAxis.AxisDependency.LEFT);\n set.setColor(ColorTemplate.getHoloBlue());\n set.setLineWidth(2f);\n set.setCircleSize(4f);\n set.setFillAlpha(65);\n set.setFillColor(ColorTemplate.getHoloBlue());\n set.setHighLightColor(Color.rgb(244,117,177));\n set.setValueTextColor(Color.WHITE);\n set.setValueTextSize(10f);\n\n return set;\n }", "private LineData generateDataLine(int cnt) {\n\n ArrayList<Entry> e1 = new ArrayList<Entry>();\n\n for (int i = 0; i < 12; i++) {\n e1.add(new Entry(i, (int) (Math.random() * 65) + 40));\n }\n\n LineDataSet d1 = new LineDataSet(e1, \"New DataSet \" + cnt + \", (1)\");\n d1.setLineWidth(2.5f);\n d1.setCircleRadius(4.5f);\n d1.setHighLightColor(Color.rgb(244, 117, 117));\n d1.setDrawValues(false);\n\n ArrayList<Entry> e2 = new ArrayList<Entry>();\n\n for (int i = 0; i < 12; i++) {\n e2.add(new Entry(i, e1.get(i).getY() - 30));\n }\n\n LineDataSet d2 = new LineDataSet(e2, \"New DataSet \" + cnt + \", (2)\");\n d2.setLineWidth(2.5f);\n d2.setCircleRadius(4.5f);\n d2.setHighLightColor(Color.rgb(244, 117, 117));\n d2.setColor(ColorTemplate.VORDIPLOM_COLORS[0]);\n d2.setCircleColor(ColorTemplate.VORDIPLOM_COLORS[0]);\n d2.setDrawValues(false);\n\n ArrayList<ILineDataSet> sets = new ArrayList<ILineDataSet>();\n sets.add(d1);\n sets.add(d2);\n\n LineData cd = new LineData(sets);\n return cd;\n }", "@Override\r\n\tpublic void setDataSeries(List<Double> factValues) {\n\r\n\t}", "private XYSeries createSeries(int scaleIndex) {\r\n // TODO: Bubble and time graphs ought to respect scaleIndex, but XYValueSeries\r\n // and TimeSeries don't expose the (String title, int scaleNumber) constructor.\r\n if (scaleIndex > 0 && !Graph.TYPE_XY.equals(mData.getType())) {\r\n throw new IllegalArgumentException(\"This series does not support a secondary y axis\");\r\n }\r\n\r\n if (Graph.TYPE_TIME.equals(mData.getType())) {\r\n return new TimeSeries(\"\");\r\n }\r\n if (Graph.TYPE_BUBBLE.equals(mData.getType())) {\r\n return new RangeXYValueSeries(\"\");\r\n }\r\n return new XYSeries(\"\", scaleIndex);\r\n }", "public DataSet() {\n labels = new HashMap<>();\n locations = new HashMap<>();\n counter= new AtomicInteger(0);\n }", "public XYDataset getLineDataset() {\n\n // Initialize some variables\n XYSeriesCollection dataset = new XYSeriesCollection();\n XYSeries series[][] = new XYSeries[rois.length][images.length];\n String seriesname[][] = new String[rois.length][images.length];\n int currentSlice = ui.getOpenMassImages()[0].getCurrentSlice();\n ArrayList<String> seriesNames = new ArrayList<String>();\n String tempName = \"\";\n map = new HashMap<String, Pair<MimsPlus, Roi>>();\n double stat;\n\n // Image loop\n for (int j = 0; j < images.length; j++) {\n MimsPlus image;\n if (images[j].getMimsType() == MimsPlus.HSI_IMAGE || images[j].getMimsType() == MimsPlus.RATIO_IMAGE) {\n image = images[j].internalRatio;\n } else {\n image = images[j];\n }\n // Roi loop\n for (int i = 0; i < rois.length; i++) {\n\n // Set the Roi to the image.\n Integer[] xy = ui.getRoiManager().getRoiLocation(rois[i].getName(), image.getCurrentSlice());\n rois[i].setLocation(xy[0], xy[1]);\n image.setRoi(rois[i]);\n\n // Stat loop\n for (int k = 0; k < stats.length; k++) {\n\n // Generate a name for the dataset.\n String prefix = \"\";\n if (image.getType() == MimsPlus.MASS_IMAGE || image.getType() == MimsPlus.RATIO_IMAGE) {\n prefix = \"_m\";\n }\n if (seriesname[i][j] == null) {\n tempName = \"mean\" + prefix + image.getRoundedTitle(true) + \"_r\" + rois[i].getName();\n int dup = 1;\n while (seriesNames.contains(tempName)) {\n tempName = \"mean\" + prefix + image.getRoundedTitle(true) + \"_r\" + rois[i].getName() + \" (\" + dup + \")\";\n dup++;\n }\n seriesNames.add(tempName);\n seriesname[i][j] = tempName;\n }\n series[i][j] = new XYSeries(seriesname[i][j]);\n ij.gui.ProfilePlot profileP = new ij.gui.ProfilePlot(image);\n double[] newdata = profileP.getProfile();\n for (int p = 0; p < newdata.length; p++) {\n series[i][j].add(p, newdata[p]);\n }\n Pair tuple = new Pair(images[j], rois[i]);\n map.put(seriesname[i][j], tuple);\n\n } // End of Stat\n } // End of Roi\n } // End of Image\n\n // Populate the final data structure.\n for (int i = 0; i < rois.length; i++) {\n for (int j = 0; j < images.length; j++) {\n dataset.addSeries(series[i][j]);\n }\n }\n\n ui.getOpenMassImages()[0].setSlice(currentSlice);\n\n return dataset;\n }", "private static PieDataset createDataset(double total, double avild) {\n DefaultPieDataset dataset = new DefaultPieDataset();\n double favild = (int)(avild/total*100);\n double fused = (int)(100-favild);\n dataset.setValue(\"Used\", new Double(fused));\n dataset.setValue(\"Avail\", new Double(favild));\n return dataset; \n }", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "public void setData(float[] x, float[] y){\n insertData(x, y, true);\n }", "public List<Dataset> getDatasets();", "private TaskSeriesCollection createCollection1() {\n TaskSeriesCollection result = new TaskSeriesCollection();\n TaskSeries s1 = new TaskSeries(\"S1\");\n s1.add(new Task(\"Task 1\", new Date(1), new Date(2)));\n s1.add(new Task(\"Task 2\", new Date(3), new Date(4)));\n result.add(s1);\n TaskSeries s2 = new TaskSeries(\"S2\");\n s2.add(new Task(\"Task 3\", new Date(5), new Date(6)));\n result.add(s2);\n return result;\n }", "private RecordSet getRecordSet(String arg[]){\n RecordSet datos = new RecordSet();\n datos.addColumn(\"CODIGO\");\n\t\tdatos.addColumn(\"VALOR\"); \n\n for(int j=0;j<arg.length;j++) { \n datos.addRow(new Object[] { arg[j], arg[j] }); \n }\n return datos;\n }", "private void testData() {\r\n\r\n // Setup for a function of the type y = c0 + c1*exp(c2*x) + c3*exp(c4*x)\r\n\r\n xSeries[0] = 0;\r\n ySeries[0] = 1 + 2 + 3;\r\n\r\n xSeries[1] = 1;\r\n ySeries[1] = 1 + (2 * Math.exp(-0.3)) + (3*Math.exp(-0.5));\r\n\r\n xSeries[2] = 2;\r\n ySeries[2] = 1 + (2 * Math.exp(-0.6)) + (3*Math.exp(-1.0));\r\n\r\n xSeries[3] = 3;\r\n ySeries[3] = 1 + (2 * Math.exp(-0.9)) + (3 * Math.exp(-1.5));\r\n\r\n xSeries[4] = 4;\r\n ySeries[4] = 1 + (2 * Math.exp(-1.2)) + (3 * Math.exp(-2.0));\r\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "public void createChart(String titulo, String tituloX, String tituloY, XYSeries series[]){\n dataset = createDataset(series);\n \n chart = ChartFactory.createScatterPlot(\n titulo,\n tituloX, \n tituloY, \n dataset);\n \n plot = (XYPlot) chart.getPlot();\n }", "public static CategoryDataset createDataset(DefaultTableModel dtm, ArrayList<BigDecimal> have, BigDecimal goal) {\n \n //Get the data out of the table model\n \tArrayList<DateTime> dates \t\t= TableDataConversion.getDates(dtm);\n \tArrayList<BigDecimal> expected \t= TableDataConversion.getExpectedAmount(dtm);\n \t\n \t//Make the dataset\n \tfinal DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n \t\n \t//Set the print format\n \tDateTimeFormatter formatter = DateTimeFormat.forPattern(\"dd/MM/YY\");\n \t\n \t//Row keys\n final String series1 = \"Expected\";\n final String series2 = \"Have\";\n final String series3 = \"Goal\";\n \t\n \t//Add to the dataset\n \tfor(int i=0; i<dates.size(); i++)\n \t{\n \t\tdataset.addValue(expected.get(i), series1, dates.get(i).toString(formatter));\n \t\tdataset.addValue(have.get(i), series2, dates.get(i).toString(formatter));\n \t\tdataset.addValue(goal, series3, dates.get(i).toString(formatter));\n \t}\n \t\n return dataset;\n \n }", "public XYData(double x[], float y[], double resolution)\n\t{\n\t\tthis.resolution = resolution;\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tincreasingX = true;\n\t\tnSamples = (x.length < y.length) ? x.length : y.length;\n\t\tif (nSamples > 0)\n\t\t{\n\t\t\txMin = xMax = x[0];\n\t\t\tfor (int i = 1; i < x.length; i++)\n\t\t\t{\n\t\t\t\tif (x[i - 1] > x[i])\n\t\t\t\t{\n\t\t\t\t\tincreasingX = false;\n\t\t\t\t}\n\t\t\t\tif (x[i] > xMax)\n\t\t\t\t\txMax = x[i];\n\t\t\t\tif (x[i] < xMin)\n\t\t\t\t\txMin = x[i];\n\t\t\t}\n\t\t}\n\t}", "public static DataSet mergeDatasets(DataSet first, DataSet second, List<String> forbiddenAttributes) throws Exception {\n Logger logger = LoggerFactory.getLogger(GSHelper.class);\n Graph mergedGraph = createGraphFromDataSet(first);\n logger.debug(\"creating merged internal graph...\");\n for (CoriaEdge edge : second.getEdges()) {\n try {\n logger.trace(\"Edge: \" + edge);\n /*\n * Since we're using the same edge naming schema here as everywhere else in coria (start_node->destination_node)\n * we cen create a combined graph containing edges from both graphs. This works because GraphStream\n * will only add edges which don't exists already.\n */\n Edge e = mergedGraph.addEdge(edge.getSourceNode() + \"->\" + edge.getDestinationNode(), edge.getSourceNode(), edge.getDestinationNode());\n } catch (Exception ex) {\n logger.error(\"failed creating edge for CoriaEdge {}\", edge);\n logger.error(ex.getMessage());\n return null;\n }\n }\n logger.debug(\"graph successfully created, building merged dataset...\");\n DataSet merged = new DataSet();\n\n logger.debug(\"merging nodes...\");\n\n for(Node node : mergedGraph.getEachNode()){\n CoriaNode cn = new CoriaNode();\n Optional<CoriaNode> optFirstNode = first.getNodes().stream().filter(coriaNode -> coriaNode.getAsid().equals(node.getId())).findFirst();\n CoriaNode fromFirst = null;\n if(optFirstNode.isPresent()){\n fromFirst = optFirstNode.get();\n }\n CoriaNode fromSecond = null;\n Optional<CoriaNode> optSecondNode = second.getNodes().stream().filter(coriaNode -> coriaNode.getAsid().equals(node.getId())).findFirst();\n if(optSecondNode.isPresent()){\n fromSecond = optSecondNode.get();\n }\n\n if(fromFirst != null && fromSecond == null){\n //1. Node is only in first -> take all information from first\n cn.setName(fromFirst.getName());\n cn.setAsid(fromFirst.getAsid());\n// cn.setRiscScore(fromFirst.getRiscScore()); //this value is not valid after merging\n cn.setAttributes(filterAttributes(fromFirst.getAttributes(), forbiddenAttributes));\n }else if(fromSecond != null && fromFirst == null){\n //2. Node is only in second -> take all information from second\n cn.setName(fromSecond.getName());\n cn.setAsid(fromSecond.getAsid());\n// cn.setRiscScore(fromSecond.getRiscScore()); //this value is not valid after merging\n cn.setAttributes(filterAttributes(fromSecond.getAttributes(), forbiddenAttributes));\n }else if(fromFirst != null && fromSecond != null){\n //3. Node is found in both DataSets -> try merging\n cn.setAsid(fromFirst.getAsid()); //this one is the same on both sets\n\n if(fromFirst.getName().equals(fromFirst.getAsid())){\n //first dataset has no name for as -> check the second\n if(fromSecond.getName().equals(fromSecond.getAsid())){\n //the second has also no name for as -> use asid as name\n cn.setName(fromFirst.getAsid());\n }else{\n //the second has a separate name for as -> use this\n cn.setName(fromSecond.getName());\n }\n }else{\n //first has name for as -> use it\n cn.setName(fromFirst.getName());\n }\n\n cn.setAttributes(\n syncAttributes(\n filterAttributes(fromFirst.getAttributes(), forbiddenAttributes),\n filterAttributes(fromSecond.getAttributes(), forbiddenAttributes)));\n\n }else{\n //something is wrong here!\n logger.warn(\"ooops ¯\\\\_(ツ)_/¯\");\n }\n merged.getNodes().add(cn);\n }\n\n logger.debug(\"merging edges...\");\n\n for(Edge edge : mergedGraph.getEachEdge()){\n CoriaEdge ce = new CoriaEdge();\n try {\n CoriaEdge fromFirst = first.getEdges().stream().filter(coriaEdge -> coriaEdge.getName().equals(edge.getId())).findFirst().get();\n CoriaEdge fromSecond = second.getEdges().stream().filter(coriaEdge -> coriaEdge.getName().equals(edge.getId())).findFirst().get();\n\n if(fromFirst != null && fromSecond == null){\n //1. Edge is only in first -> take all information from first\n ce.setName(fromFirst.getName());\n ce.setAttributes(filterAttributes(fromFirst.getAttributes(), forbiddenAttributes));\n }else if(fromSecond != null && fromFirst == null){\n //2. Edge is only in first -> take all information from first\n ce.setName(fromSecond.getName());\n ce.setAttributes(filterAttributes(fromSecond.getAttributes(), forbiddenAttributes));\n }else if(fromFirst != null && fromSecond != null){\n //3. Edge is found in both DataSets -> try merging\n ce.setName(fromSecond.getName());\n\n ce.setAttributes(\n syncAttributes(\n filterAttributes(fromFirst.getAttributes(), forbiddenAttributes),\n filterAttributes(fromSecond.getAttributes(), forbiddenAttributes)));\n }else{\n //something is wrong here!\n }\n }catch(Exception ex){\n String origMessage = ex.getMessage();\n ex = new Exception(\"Error while merging edge \" + edge.getId() + \" because \" + origMessage);\n logger.error(ex.getMessage());\n throw ex;\n }\n merged.getEdges().add(ce);\n }\n logger.debug(\"finished merging\");\n\n return merged;\n }", "private static CategoryDataset createSortedDataset(List<Number> values, List<String> rows, List<NumberOnlyBuildLabel> columns) {\n\t\tDefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\n\t\tTreeSet<String> rowSet = new TreeSet<String>(rows);\n\t\tTreeSet<ChartUtil.NumberOnlyBuildLabel> colSet = new TreeSet<ChartUtil.NumberOnlyBuildLabel>(\n\t\t\t\tcolumns);\n\n\t\tComparable[] _rows = rowSet.toArray(new Comparable[rowSet.size()]);\n\t\tComparable[] _cols = colSet.toArray(new Comparable[colSet.size()]);\n\n\t\t// insert rows and columns in the right order, reverse rows\n\t\tfor (int i = _rows.length - 1; i >= 0; i--)\n\t\t\tdataset.setValue(null, _rows[i], _cols[0]);\n\t\tfor (Comparable c : _cols)\n\t\t\tdataset.setValue(null, _rows[0], c);\n\n\t\tfor (int i = 0; i < values.size(); i++)\n\t\t\tdataset.addValue(values.get(i), rows.get(i), columns.get(i));\n\t\treturn dataset;\n\t}", "DataTable createDataTable();", "@DataProvider\n\tpublic Object[][] getData()\n\t{\n\t\tObject[][] data = new Object[3][2];\n\t\t\n\t\t//1st set\n\t\tdata[0][0] = \"firstsetusername\";\n\t\tdata[0][1] = \"firstpassword\";\n\t\t//couloumns in the row are nothing but values for that particualar combination(row)\n\t\t\n\t\t//2nd set\n\t\tdata[1][0] = \"secondsetisername\";\n\t\tdata[1][1] = \"second password\";\n\t\t\n\t\t//3rd set\n\t\tdata[2][0] = \"thirdsetusername\";\n\t\tdata[2][1] = \"thirdpassword\";\n\t\treturn data;\n\t\t\n\t}", "private void addOrReplaceDataSeries() {\n int chartMode;\n try {\n m_pLock.lock();\n chartMode = mChartMode;\n } finally {\n m_pLock.unlock();\n }\n\n if (m_pLineChart.getData().size() > 0) {\n m_pLineChart.getData().clear();\n }\n\n switch (chartMode) {\n case CHART_MODE_2_SECONDS:\n m_pLineChart.getData().add(m_pDataSeries1_2SEC);\n m_pLineChart.getData().add(m_pDataSeries2_2SEC);\n m_pLineChart.getData().add(m_pDataSeries3_2SEC);\n break;\n case CHART_MODE_10_SECONDS:\n m_pLineChart.getData().add(m_pDataSeries1_10SEC);\n m_pLineChart.getData().add(m_pDataSeries2_10SEC);\n m_pLineChart.getData().add(m_pDataSeries3_10SEC);\n break;\n case CHART_MODE_30_SECONDS:\n m_pLineChart.getData().add(m_pDataSeries1_30SEC);\n m_pLineChart.getData().add(m_pDataSeries2_30SEC);\n m_pLineChart.getData().add(m_pDataSeries3_30SEC);\n break;\n case CHART_MODE_5_MINUTES:\n m_pLineChart.getData().add(m_pDataSeries1_5MIN);\n m_pLineChart.getData().add(m_pDataSeries2_5MIN);\n m_pLineChart.getData().add(m_pDataSeries3_5MIN);\n break;\n default:\n break;\n }\n\n m_pXAxis.setDisable(true);\n int chartRange;\n int tickUnit;\n ObservableList<XYChart.Data<Number, Number>> observableList1, observableList2, observableList3;\n switch (mChartMode) {\n case CHART_MODE_2_SECONDS:\n observableList1 = m_pDataSerieObservableList1_2SEC;\n observableList2 = m_pDataSerieObservableList2_2SEC;\n observableList3 = m_pDataSerieObservableList3_2SEC;\n chartRange = X_AXIS_RANGE_2_SECOND_MODE;\n tickUnit = X_AXIS_TICK_2_SECOND_MODE;\n break;\n case CHART_MODE_10_SECONDS:\n observableList1 = m_pDataSerieObservableList1_10SEC;\n observableList2 = m_pDataSerieObservableList2_10SEC;\n observableList3 = m_pDataSerieObservableList3_10SEC;\n chartRange = X_AXIS_RANGE_10_SECOND_MODE;\n tickUnit = X_AXIS_TICK_10_SECOND_MODE;\n break;\n case CHART_MODE_30_SECONDS:\n observableList1 = m_pDataSerieObservableList1_30SEC;\n observableList2 = m_pDataSerieObservableList2_30SEC;\n observableList3 = m_pDataSerieObservableList3_30SEC;\n chartRange = X_AXIS_RANGE_30_SECOND_MODE;\n tickUnit = X_AXIS_TICK_30_SECOND_MODE;\n break;\n case CHART_MODE_5_MINUTES:\n observableList1 = m_pDataSerieObservableList1_5MIN;\n observableList2 = m_pDataSerieObservableList2_5MIN;\n observableList3 = m_pDataSerieObservableList3_5MIN;\n chartRange = X_AXIS_RANGE_5_MINUTE_MODE;\n tickUnit = X_AXIS_TICK_5_MINUTE_MODE;\n break;\n default:\n observableList1 = m_pDataSerieObservableList1_2SEC;\n observableList2 = m_pDataSerieObservableList2_2SEC;\n observableList3 = m_pDataSerieObservableList3_2SEC;\n chartRange = X_AXIS_RANGE_2_SECOND_MODE;\n tickUnit = X_AXIS_TICK_2_SECOND_MODE;\n break;\n }\n\n if (observableList1.isEmpty() == false && observableList2.isEmpty() == false && observableList3.isEmpty() == false) {\n double maxValue = Math.max(Math.max(observableList1.get(observableList1.size() - 1).getXValue().doubleValue(),\n observableList2.get(observableList1.size() - 1).getXValue().doubleValue()),\n observableList3.get(observableList1.size() - 1).getXValue().doubleValue());\n double newLowerBound = maxValue - chartRange;\n double newUpperBound = maxValue;\n m_pXAxis.setLowerBound(newLowerBound);\n m_pXAxis.setUpperBound(newUpperBound);\n m_pXAxis.setTickUnit(tickUnit);\n m_pXAxis.setDisable(false);\n }\n \n // Update if there is some data series which is not to be plotted\n boolean toPlotDataSeries1 = mToPlotDataSeries1;\n boolean toPlotDataSeries2 = mToPlotDataSeries2;\n boolean toPlotDataSeries3 = mToPlotDataSeries3;\n mToPlotDataSeries1 = true;\n mToPlotDataSeries2 = true;\n mToPlotDataSeries3 = true; \n switchDataSeriesStatus(1, toPlotDataSeries1);\n switchDataSeriesStatus(2, toPlotDataSeries2);\n switchDataSeriesStatus(3, toPlotDataSeries3);\n \n\n }", "public DatasetIndex(Dataset data){\n\t\tthis();\n\t\tfor(Iterator<Example> i=data.iterator();i.hasNext();){\n\t\t\taddExample(i.next());\n\t\t}\n\t}", "public Dataset from(Iri... iris) {\n\t\taddElements(SparqlBuilder::from, iris);\n\n\t\treturn this;\n\t}", "private LineData generateLineData() {\n\n LineData d = new LineData();\n LineDataSet set = new LineDataSet(ReportingRates, \" ARVs (Reporting Rates)\");\n set.setColors(Color.parseColor(\"#90ed7d\"));\n set.setLineWidth(2.5f);\n set.setCircleColor(Color.parseColor(\"#90ed7d\"));\n set.setCircleRadius(2f);\n set.setFillColor(Color.parseColor(\"#90ed7d\"));\n set.setMode(LineDataSet.Mode.CUBIC_BEZIER);\n set.setDrawValues(true);\n\n set.setAxisDependency(YAxis.AxisDependency.LEFT);\n d.addDataSet(set);\n\n return d;\n }", "public DoubleMatrixDataset() {\r\n }", "public static void initTestData(float[][] X, double[] Y){\n assert(X.length==Y.length);\n TestXData=new float[X.length][X[0].length];\n TestTarget=new double[X.length];\n for(int i=0;i<X.length;i++){\n for(int j=0;j<X[0].length;j++)\n TestXData[i][j]=X[i][j];\n TestTarget[i]=Y[i];\n }\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "public ScatterChart(@NamedArg(\"xAxis\") Axis<X> xAxis, @NamedArg(\"yAxis\") Axis<Y> yAxis, @NamedArg(\"data\") ObservableList<Series<X,Y>> data) {\n super(xAxis,yAxis);\n setLegend(legend);\n setData(data);\n }", "public void setData(int close[] , int high[] , int low[] , int vol[]) {\n // check for null pointers\n if(close == null || high == null || low == null || vol == null) {\n // error ..\n eHandler.newError(ErrorType.NULL_ARGUMENT, \"setData\");\n\n // exit from method\n return;\n\n } // end of if statement\n\n data = new ChartData(close , high , low , vol);\n\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tpublic Data(String table) throws EmptyDatasetException, SQLException, EmptySetException, NoValueException{\r\n\t\tTableData tableData = new TableData(new DbAccess());\r\n\t\tdata = tableData.getDistinctTransazioni(table);\r\n\t\t\r\n\t\tTableSchema tableSchema = new TableSchema(new DbAccess(),table);\r\n\t\tnumberOfExamples=data.size();\r\n\t\t\r\n\t\tQUERY_TYPE min,max;\r\n\t\tmin = QUERY_TYPE.MIN;\r\n\t\tmax = QUERY_TYPE.MAX;\r\n\t\t\r\n\t\tfor (int i=0;i<tableSchema.getNumberOfAttributes();i++) {\r\n\t\t\tif(!tableSchema.getColumn(i).isNumber()) {\r\n\t\t\t\texplanatorySet.add((T) new DiscreteAttribute(tableSchema.getColumn(i).getColumnName(),i,(TreeSet)tableData.getDistinctColumnValues(table, tableSchema.getColumn(i))));\r\n\t\t\t}else {\r\n\t\t\t\texplanatorySet.add((T) new ContinuousAttribute(tableSchema.getColumn(i).getColumnName(),i,(float)tableData.getAggregateColumnValue(table,tableSchema.getColumn(i),min),(float)tableData.getAggregateColumnValue(table,tableSchema.getColumn(i),max)));\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t}", "protected abstract Set<Event> createEvents(String[] dataset);", "public static void initData(float[][] X, float[] Y){\n assert(X.length==Y.length);\n \n XData=new float[X.length][X[0].length];\n Target=new double[X.length];\n for(int i=0;i<X.length;i++){\n for(int j=0;j<X[0].length;j++)\n XData[i][j]=X[i][j];\n Target[i]=Y[i];\n }\n }", "public List<Pair<INDArray, INDArray>> generateTestDataSet (List<Point> stockDataList) {\n \tint window = exampleLength + predictLength;\n \tList<Pair<INDArray, INDArray>> test = new ArrayList<Pair<INDArray, INDArray>>();\n \tfor (int i = 0; i < stockDataList.size() - window; i++) {\n \t\tINDArray input = Nd4j.create(new int[] {exampleLength, VECTOR_SIZE}, 'f'); // f pour la construction rapide (fast)\n \t\tfor (int j = i; j < i + exampleLength; j++) {\n \t\t\tPoint stock = stockDataList.get(j);\n \t\t\tinput.putScalar(new int[] {j - i, 0}, (stock.getOpen() - minArray[0]) / (maxArray[0] - minArray[0]));\n \t\t\tinput.putScalar(new int[] {j - i, 1}, (stock.getClose() - minArray[1]) / (maxArray[1] - minArray[1]));\n \t\t\tinput.putScalar(new int[] {j - i, 2}, (stock.getLow() - minArray[2]) / (maxArray[2] - minArray[2]));\n \t\t\tinput.putScalar(new int[] {j - i, 3}, (stock.getHigh() - minArray[3]) / (maxArray[3] - minArray[3]));\n \t\t\tinput.putScalar(new int[] {j - i, 4}, (stock.getVolume() - minArray[4]) / (maxArray[4] - minArray[4]));\n \t\t}\n Point stock = stockDataList.get(i + exampleLength);\n INDArray label;\n if (category.equals(PriceCategory.ALL)) {\n label = Nd4j.create(new int[]{VECTOR_SIZE}, 'f'); // f pour la construction rapide (fast)\n label.putScalar(new int[] {0}, stock.getOpen());\n label.putScalar(new int[] {1}, stock.getClose());\n label.putScalar(new int[] {2}, stock.getLow());\n label.putScalar(new int[] {3}, stock.getHigh());\n label.putScalar(new int[] {4}, stock.getVolume());\n } else {\n label = Nd4j.create(new int[] {1}, 'f');\n switch (category) {\n case OPEN: label.putScalar(new int[] {0}, stock.getOpen()); break;\n case CLOSE: label.putScalar(new int[] {0}, stock.getClose()); break;\n case LOW: label.putScalar(new int[] {0}, stock.getLow()); break;\n case HIGH: label.putScalar(new int[] {0}, stock.getHigh()); break;\n case VOLUME: label.putScalar(new int[] {0}, stock.getVolume()); break;\n default: throw new NoSuchElementException();\n }\n }\n \t\ttest.add(new Pair<INDArray, INDArray>(input, label));\n \t}\n \treturn test;\n }", "@Test\n\tpublic void twoTimeSeriesIteratorWorksBasic() {\n\t\tfinal FloatTimeSeries t0 = new FloatTreeTimeSeries();\n\t\tt0.addValues(TimeSeriesUtils.createRandomTimeSeries(2, 0, 10, false));\n\t\tfinal FloatTimeSeries t1 = new FloatTreeTimeSeries();\n\t\tt1.addValues(TimeSeriesUtils.createRandomTimeSeries(2, 10, 10, false));\n\t\tfinal MultiTimeSeriesIterator iterator = MultiTimeSeriesUtils.getMultiIterator(Arrays.asList(t0.iterator(),t1.iterator()));\n\t\tassertPointMatches(iterator, new int[]{0});\n\t\tassertPointMatches(iterator, new int[]{0,1});\n\t\tassertPointMatches(iterator, new int[]{1});\n\t\tAssert.assertFalse(iterator.hasNext());\n\t}", "DataList createDataList();", "public TimeSeries getTimeSeries(String serie_name){ \n //First, we create the TimeSeries to return \n TimeSeries time_serie= new TimeSeries(serie_name,Second.class); \n \n //Gets the Bezier curves \n Point2D[] points_bezier = getPoint2DArray(); \n \n for(int j = 0 ; j < points_bezier.length; j++){ \n //System.out.println(j + \" X --> \" + points_bezier[j].getX()); \n //time_serie.add(RegularTimePeriod.createInstance(Second.class,new Date((long)points_bezier[j].getX()),RegularTimePeriod.DEFAULT_TIME_ZONE),points_bezier[j].getY()); \n time_serie.add(new Second(new Date((long)points_bezier[j].getX())),points_bezier[j].getY()); \n } \n \n \n return time_serie; \n}", "DataFrame<R,C> sequential();" ]
[ "0.68856937", "0.67979383", "0.6652721", "0.64073414", "0.6402447", "0.6180309", "0.6122404", "0.611828", "0.60639745", "0.60335404", "0.5927443", "0.58862215", "0.5867566", "0.5854937", "0.58384985", "0.5809894", "0.57639587", "0.5761636", "0.574545", "0.5707251", "0.5694659", "0.5664567", "0.5626589", "0.5624566", "0.5614986", "0.561339", "0.5598633", "0.5576889", "0.5570222", "0.55255675", "0.5474689", "0.54643655", "0.5461155", "0.54422605", "0.5436672", "0.5433703", "0.542735", "0.5401129", "0.5398934", "0.5393656", "0.5384749", "0.53453946", "0.5344389", "0.53288007", "0.5318261", "0.53060836", "0.5303881", "0.52796817", "0.5268169", "0.5265337", "0.52335453", "0.52324253", "0.52291906", "0.52213717", "0.5216669", "0.5214085", "0.5213809", "0.52026504", "0.5192754", "0.517508", "0.5165223", "0.5132599", "0.5122378", "0.51188886", "0.5106245", "0.5100995", "0.5091995", "0.5090642", "0.5090466", "0.5083384", "0.5081014", "0.5073877", "0.5070225", "0.50620556", "0.50482196", "0.5047997", "0.50183153", "0.5011465", "0.5010626", "0.5003871", "0.4996733", "0.4993687", "0.49866945", "0.49803138", "0.4978871", "0.49734762", "0.49719223", "0.4965582", "0.4963709", "0.496037", "0.49492633", "0.49490088", "0.4943233", "0.49377167", "0.49212423", "0.4920262", "0.49177855", "0.4905234", "0.48944196", "0.48797354" ]
0.708097
0
Constructor. Set count to 0.
public ShippingQueue() { first = null; count = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCountToZero() {\r\n \r\n // set count to 0\r\n count = 0;\r\n }", "public Counter() {\r\n this.count = 0;\r\n }", "public void resetCount() {\n count = 0;\n }", "public void resetCount() {\n\t\tcount = 0;\n\t}", "public BasicCounter() {\n count = 0;\n }", "public void reset() {\n\t\tthis.count = 0;\n\t}", "@Override\n public void initialize() {\n counter = 0;\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "public Counter()\n {\n this(0);\n }", "public Counter() {\r\n value = 0;\r\n }", "public void reset() {\n\t\tcount = 0;\n\t}", "public static void resetCount() {\n count = 1;\n }", "public Averager()\r\n\t{\r\n\t\tcount = 0;\r\n\t\tsum = 0;\r\n\t}", "void reset() {\n count = 0;\n\n }", "private Count() {}", "private Count() {}", "public Counter(int count)\n {\n this.setCount(count);\n }", "public void clear() {\n count = 0;\n }", "public Builder clearCount() {\n \n count_ = 0L;\n onChanged();\n return this;\n }", "public void clear()\n {\n count=0;\n }", "public ConnectionCount() {\nthis(0);\n}", "public Builder clearCount() {\n \n count_ = 0;\n onChanged();\n return this;\n }", "public void clearCount() {\n this.bitField0_ &= -3;\n this.count_ = 0;\n }", "public void resetCount() {\n\t\tresetCount(lineNode);\n\t}", "public HitCounter() {\n q = new ArrayDeque();\n PERIOD = 300;\n }", "public void reset() {\n/* 54 */ this.count = 0;\n/* 55 */ this.totalTime = 0L;\n/* */ }", "@Override\r\n\t\tpublic int count() {\n\t\t\treturn 0;\r\n\t\t}", "public Counter() {\n //this.max = max;\n }", "public WordCount()\n {\n //initializes common variables.\n lineNums = new CircularList();\n count = 1;\n }", "public ZeroCountDataWriter() {\n\t\tsuper(DataWriterType.ZEROCNTType);\n\t}", "public HitCounter() {\n q = new ArrayDeque();\n map = new HashMap();\n PERIOD = 300;\n hits = 0;\n }", "public myCounter() {\n\t\tcounter = 1;\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "public void setCount(int count)\r\n\t{\r\n\t}", "public QuestionQueue ()\n {\n count = 0;\n }", "public MoleculeCounter() {\r\n\t\tsetMolecule(\"\");\r\n\t\tsetComponent(\"\");\r\n\t\tsetState(\"\");\r\n\t\tsetCount(0);\r\n\t}", "public BasicCalculator() {\n // Initialization here.\n // this.count = 0;\n\n }", "public HitCounter() {\n hits = new int[300];\n times = new int[300];\n }", "public HitCounter() {\n hits = new int[300];\n times = new int[300];\n }", "public static void initializeCount(int[] count){\n\t\tif (count != null){\n\t\t\tfor (int i = 0; i < count.length; i++)\n\t\t\t\tcount[i] = 0;\n\t\t}\n\t}", "public HitCounter() {\n q = new LinkedList<>();\n }", "public static void resetCounter() {\n\t\t\tcount = new AtomicInteger();\n\t\t}", "public static void resetCounter() {\n\t\t\tcount = new AtomicInteger();\n\t\t}", "public void setCount(int count)\r\n {\r\n this.count = count;\r\n }", "public FrequencyBag() {\n\t\tfirstNode = null;\n\t\tnumEntries = 0;\n\t}", "public void setCount(int count)\n {\n this.count = count;\n }", "public void setCount(int count) {\r\n this.count = count;\r\n }", "public void reset() {\n this.count = 0;\n this.average = 0.0;\n }", "public Counter (int modulus) {\n count = 0;\n this.modulus = modulus;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void zero() {\n fill(0);\n }", "public DDCountInversion(){\n\t\tnumeros = new ArrayList<Integer>();\n\t}", "public CountInfo() {\n\t\tthis.rank = 0;\n\t\tthis.number = 0;\n\t}", "public ClickCounter() {\n System.out.println(\"Click constructor: \" + count);\n \n }", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic long count() {\n\t\treturn 0;\r\n\t}", "public void setCount(final int count)\n {\n this.count = count;\n }", "public Counter(int init){\n \tvalue = init;\n }", "public Counter(Counter count) {\r\n value = count.value;\r\n }", "public void setCount(int count){\n\t\tthis.count = count;\n\t}", "public void resetCount(int count) {\n latch = new CountDownLatch(count);\n }", "public void initialize() {\n grow(0);\n }", "public Vector()\r\n {\r\n // initialise instance variables\r\n first = null;\r\n last = null;\r\n count = 0;\r\n }", "public void unsetCount()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(COUNT$8);\n }\n }", "public void setCount(final int count) {\n this.count = count;\n }", "public WeetArray() {\n count = 0;\n nullCount = 0;\n }", "public void clearInitialize(){\n index=0;\n for(int i =0; i < list.length;i++){\n list[i]=0;\n }\n hasFilled = false;\n\n }", "@Override\n\tpublic int withRepeatCount() {\n\t\treturn 0;\n\t}", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public static void resetTestCount() {\n mTestCount = 0;\n }", "public void setCount(Integer count) {\r\n this.count = count;\r\n }", "public void resetBidCount() {\r\n bidCount = 0;\r\n }", "public ConnectionCount(int counter) {\nthis.counter = counter;\n}", "public void setCount(int count) {\n\t\tthis.count = count;\n\t}", "protected Set() {\n size = 0;\n set = new int[TEN];\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void resetTxnCount() {\n txnCount.set(0);\n snapLog.setTotalLogSize(0);\n }", "@Override\n\tpublic void count() {\n\t\t\n\t}", "public StackClass() {\n \tsize=0;\n\t}" ]
[ "0.82945275", "0.806277", "0.7737917", "0.7677657", "0.7625045", "0.75776595", "0.75355124", "0.75355124", "0.74891865", "0.74377054", "0.7400334", "0.72741365", "0.72162986", "0.71654093", "0.7153048", "0.7153048", "0.71119696", "0.7104472", "0.70761085", "0.70427203", "0.7040112", "0.69708866", "0.689763", "0.6866947", "0.6864375", "0.6859613", "0.6839846", "0.68353975", "0.6834046", "0.6759388", "0.67269486", "0.6724039", "0.6719689", "0.6719689", "0.6719689", "0.6719689", "0.6719643", "0.6703425", "0.6661619", "0.66592693", "0.6652182", "0.6652182", "0.6651371", "0.66512406", "0.66344047", "0.66344047", "0.66107213", "0.6602248", "0.6586951", "0.65657973", "0.65289366", "0.6519331", "0.65155584", "0.65155584", "0.65155584", "0.65155584", "0.65155584", "0.6515256", "0.6515256", "0.6515256", "0.6507417", "0.65069795", "0.6492677", "0.64907575", "0.6480611", "0.6480611", "0.6480611", "0.6480611", "0.6480611", "0.6480611", "0.6480611", "0.6480611", "0.64764184", "0.64580667", "0.6452843", "0.642263", "0.6408388", "0.63992906", "0.63930035", "0.6366276", "0.6365329", "0.6363626", "0.63472885", "0.6342353", "0.63413316", "0.629806", "0.62882346", "0.62847996", "0.6280865", "0.62707084", "0.6266327", "0.6261193", "0.6258767", "0.6258767", "0.6258767", "0.6258767", "0.6258767", "0.6258767", "0.6258466", "0.62523484", "0.62497795" ]
0.0
-1
add. Add a Package to the queue. This is a priority queue, so the packages with the highest priority number should come first. When you add a Package, you must add it in sorted order. Don't forget to update the count variable
public void add(Package p) { if (first != null) p.next = first; first = p; count++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addToQueue (Parcel[] packagesAssigned){\n\n }", "public void add(DVDPackage dvd){\n\t\tqueue.addLast(dvd);\n\t}", "public void addProcess(Process p, PriorityQueue<Process> queue){\n \t\t// FCFS add's process directly to the end. \n\t\tp.setOrder(order);\n\t\torder++;\n\t\tqueue.add(p);\n\t}", "@Override\n\tpublic void addToQueue() {\n\t}", "public static void addOrderedPromotionalPackage() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out\n\t\t\t\t.println(\"************Adding promotional Package************\");\n\t\tOrderManager orderManager = new OrderManager();\n\t\tList listOfOrders = orderManager.viewOrder();\n\n\t\tOrderedPackageManager orderedPromotionalPackageManager = new OrderedPackageManager();\n\t\tList listOfOrderedPromotionalPackage = null;\n\n\t\tPackageManager promotionalPackageManager = new PackageManager();\n\t\tList listOfPromotionalPackages = promotionalPackageManager.onStartUp();\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\n\t\tPromotionalPackage promotionalPackage = null;\n\t\tOrderedPackage orderedPromotionalPackage = null;\n\t\tboolean check = false;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tif (listOfOrders.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no orders!\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (listOfPromotionalPackages.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no promotional packages!\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tSystem.out.println();\n\t\t\t// print the list of orders for the user to select from.\n\t\t\tfor (i = 0; i < listOfOrders.size(); i++) {\n\t\t\t\torder = (Order) listOfOrders.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println((i + 1) + \") Order: \" + order.getId()\n\t\t\t\t\t\t+ \" | Table: \" + order.getTable().getId());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\tSystem.out\n\t\t\t\t\t.print(\"Select an order to add the promotional package ordered: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\torder = (Order) listOfOrders.get(choice - 1);\n\n\t\t\tdo {\n\t\t\t\tfor (i = 0; i < listOfPromotionalPackages.size(); i++) {\n\t\t\t\t\tpromotionalPackage = (PromotionalPackage) listOfPromotionalPackages\n\t\t\t\t\t\t\t.get(i);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((i + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ promotionalPackage.getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ promotionalPackage.getName() + \" | Price: $\"\n\t\t\t\t\t\t\t+ promotionalPackage.getPrice());\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.println((i + 1) + \") Done\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.print(\"Select an item to add into order: \");\n\t\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\t\tif (choice != (i + 1)) {\n\t\t\t\t\tpromotionalPackage = (PromotionalPackage) listOfPromotionalPackages\n\t\t\t\t\t\t\t.get(choice - 1);\n\n\t\t\t\t\torderedPromotionalPackage = new OrderedPackage();\n\t\t\t\t\torderedPromotionalPackage.setPackage(promotionalPackage);\n\t\t\t\t\torderedPromotionalPackage.setOrder(order);\n\t\t\t\t\torderedPromotionalPackage.setPrice(promotionalPackage\n\t\t\t\t\t\t\t.getPrice());\n\n\t\t\t\t\torder.addOrderedPackage(orderedPromotionalPackage);\n\n\t\t\t\t\tcheck = orderedPromotionalPackageManager\n\t\t\t\t\t\t\t.createOrderedPackage(orderedPromotionalPackage);\n\n\t\t\t\t\tif (check) {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Promotional package added into order successfully!\");\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Failed to add promotional package into order!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} while (choice != (i + 1));\n\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out\n\t\t\t\t.println(\"************End of adding Promotional Package************\");\n\t}", "public void addPackage(Package pkg) {\r\n myPackages.add(pkg);\r\n }", "@Override\n public void add(PaintOrder order) {\n queue.add(order);\n queuedOrders ++;\n }", "protected void addTicketInPriorityOrder(Ticket newTicket){\n\n if (ticketQueue.size() == 0 ) {//Special case - if list is empty, add ticket and return\n ticketQueue.add(newTicket);\n return;\n }\n\n //Tickets with the HIGHEST priority number go at the front of the list. (e.g. 5=server on fire)\n //Tickets with the LOWEST value of their priority number (so the lowest priority) go at the end\n\n int newTicketPriority = newTicket.getPriority();\n\n for (int x = 0; x < ticketQueue.size() ; x++) { //use a regular for loop so we know which element we are looking at\n\n //if newTicket is higher or equal priority than the this element, add it in front of this one, and return\n if (newTicketPriority >= ticketQueue.get(x).getPriority()) {\n ticketQueue.add(x, newTicket);\n return;\n }\n }\n\n //Will only get here if the ticket is not added in the loop\n //If that happens, it must be lower priority than all other tickets. So, add to the end.\n ticketQueue.addLast(newTicket);\n }", "private static void addDataToQueue(Queue<Customer> customerPriorityQueue) {\r\n\t\tRandom rand = new Random();\r\n\t\tfor (int i = 0; i < 7; i++) {\r\n\t\t\tint id = rand.nextInt(100);\r\n\t\t\tcustomerPriorityQueue.add(new Customer(id, \"Pankaj \" + id));\r\n\t\t}\r\n\t}", "IPriorityQueue add(Integer priority, String value);", "public void enqueue ()\n {\n count++;\n questionList.add(newQuestion);\n //System.out.println(\"Question #\"+ totNumQ + \" is added to the queue.\");\n }", "@Override\r\n\tpublic void addPackage(PackageJour pj) {\n\t\tem.persist(pj);\r\n\t}", "public void addToPumpQueue(Driver driver){\n\t\tqueue.add(driver);\n\t\tdriver.assignPump(pumpNumber);\n\t\tunitSpaceAvailable -= driver.getVehicle().getUnitSize();\n\t}", "public DVDQueue() { \n\t\tqueue = new LinkedList<DVDPackage>(); \n\t}", "private static void addDataToQueue(Queue<Customer> customerPriorityQueue) {\n\t\tRandom rand = new Random();\n\t\tfor (int i = 0; i < 7; i++) {\n\t\t\tint id = rand.nextInt(100);\n\t\t\tSystem.out.println(\"customer arrived and his id is: \" + id);\n\t\t\tcustomerPriorityQueue.add(new Customer(id, \"Pankaj \" + id));\n\t\t}\n\t}", "public void addToQueue(Unit unit) {\n if (units.size() < maxStock) {\n endTime = System.currentTimeMillis() + unit.getBuildTime();\n units.add(unit);\n }\n }", "public int add (String name, int priority) {\n lengthMutex.lock ();\n try\n {\n while (length >= maxSize)\n {\n // System.out.println (\"FUUUUUUUUUUUUUUUUUULLLLLLLLLLLLLLLLLLLLLLLLLLL\");\n full.await ();\n }\n }\n catch (Exception e)\n {}\n finally\n {\n lengthMutex.unlock ();\n }\n\n int result = -1;\n nameQMutex.lock ();\n if (!nameQ.contains (name))\n {\n // System.out.println (\"branch 0\");\n nameQ.add (name);\n nameQMutex.unlock ();\n\n if (search (name) == -1)\n {\n // System.out.println (\"branch 1a\");\n qLock[priority].lock ();\n q[priority].add (name);\n // print ();\n qLock[priority].unlock ();\n\n // System.out.println (\"(\" + name + \", \" + priority + \") before...\");\n result = search (name);\n // System.out.println (\"(\" + name + \", \" + priority + \") after...\");\n\n lengthMutex.lock ();\n length++;\n empty.signal ();\n lengthMutex.unlock ();\n }\n // else\n // System.out.println (\"branch 1b\");\n nameQMutex.lock ();\n nameQ.remove (name);\n nameQMutex.unlock ();\n }\n else\n {\n // System.out.println (\"branch 0b\");\n nameQMutex.unlock ();\n }\n\n return result;\n }", "public void enqueue(process p) {\n\t\tqueue.addLast(p);\n\t}", "public MyQueue() {\n queue = new PriorityQueue<>();\n }", "public void inputPackage(Package p) {\n \tp.inputLength();\n \tp.inputWidth();\n \tp.inputHeight();\n \tpackages.add(p);\n }", "private void addPackages(JComboBox comboBox) {\r\n // Add the package names\r\n Iterator iter = PackageSummary.getAllPackages();\r\n TreeSet set = new TreeSet();\r\n while (iter.hasNext()) {\r\n PackageSummary next = (PackageSummary)iter.next();\r\n set.add(next.toString());\r\n }\r\n\r\n iter = set.iterator();\r\n while (iter.hasNext()) {\r\n comboBox.addItem(iter.next().toString());\r\n }\r\n }", "public void addPromotionalPackage() {\n\t\tviewMenu();\n\t\t\n\t\tString menuPPID;\n\t\tScanner ppSC = new Scanner(System.in);\n\t\t\n\t\tboolean idChecker = true;\n\t\tString packageID = \"\";\n\t\t\n\t\tFile f = new File(\"promoData\");\n\t\t\n\t\tdo \n\t\t{\n\t\t\tif (f.isFile()) {\n\t\t\t\ttry {\n\t\t\t\t\tFileInputStream fis = new FileInputStream(\"promoData\");\n\t\t\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\t\t\tpp.clear();\n\t\t\t\t\tpp = (ArrayList<PromotionalPackage>) ois.readObject();\n\t\t\t\t\tois.close();\n\t\t\t\t\tfis.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"No promo items found!\");\n\t\t\t\t} catch (ClassNotFoundException c) {\n\t\t\t\t\tc.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(\"Promotional Package ID: \\nP\");\n\t\t\t\t\n\t\t\t\tif (idChecker) {\n\t\t\t\t\tString userInput = ppSC.nextLine();\n\t\t\t\t\tpackageID = \"P\" + userInput;\n\t\t\t\t}\n\t\t\t\telse if (!idChecker) {\n\t\t\t\t\tpackageID = \"P\" + ppSC.next();\n\t\t\t\t\tppSC.nextLine();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (final PromotionalPackage ppItem: pp) {\n\t\t\t\t\tif (ppItem.getPackageID().equalsIgnoreCase(packageID)) {\n\t\t\t\t\t\tidChecker = false;\n\t\t\t\t\t\tSystem.out.println(\"Duplicated ID found!\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tidChecker = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (!f.isFile()) {\n\t\t\t\tSystem.out.print(\"Promotional Package ID: \\nP\");\n\t\t\t\tpackageID = \"P\" + ppSC.nextLine();\n\t\t\t\tidChecker = true;\n\t\t\t}\n\t\t} \n\t\twhile (!idChecker);\n\n\t\tboolean isRunning = true;\n\t\t\n\t\tSystem.out.println(\"Menu ID to add: \");\n\t\tmenuPPID = ppSC.next();\n\n\t\tfor (int i = 0; i < mm.size();) {\n\t\t\tif (mm.get(i).getMenuName().equals(menuPPID.toUpperCase())) {\n\t\t\t\tString menuDesc = mm.get(i).getMenuDesc();\n\t\t\t\tDouble menuPrice = mm.get(i).getMenuPrice();\n\t\t\t\tString menuName = mm.get(i).getMenuName();\n\n\t\t\t\tDouble promoPrice = Math.round((0.75 * menuPrice) * 100.0) / 100.0;\n\t\t\t\t\n\t\t\t\tPromotionalPackage pPackage = new PromotionalPackage(menuName, menuDesc, promoPrice, packageID.toUpperCase());\n\n\t\t\t\ti = 0;\n\t\t\t\tSystem.out.println(\"Menu ID to add (-1 to Complete): \");\n\t\t\t\tmenuPPID = ppSC.next();\n\t\t\t\tpp.add(pPackage);\n\t\t\t}\n\t\t\telse if (menuPPID.equals(\"-1\")) {\n\t\t\t\tisRunning = false;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tFileOutputStream fos = new FileOutputStream(\"promoData\");\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t\toos.writeObject(pp);\n\t\t\toos.close();\n\t\t\tfos.close();\n\t\t}\n\t\tcatch (IOException e) \n\t\t{\n\t\t\tSystem.out.println(\"Failed to add promotions.\");\n\t\t}\n\t}", "private void removeFromQueue (Parcel[] packagesAssigned){\n\n }", "public _0._1.structure.message.DataItemPackageType addNewDataItemPackage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n _0._1.structure.message.DataItemPackageType target = null;\n target = (_0._1.structure.message.DataItemPackageType)get_store().add_element_user(DATAITEMPACKAGE$0);\n return target;\n }\n }", "public void AddPriority(Priority p) {\n \tpriorities.add(p);\n }", "public void add( int item ) \n {\n\t//queue is empty\n\tif ( queue.isEmpty() ) {\n\t queue.add( item );\n\t return;\n\t}\n\t\n\t//queue is not empty\n\telse {\n\t //find spot of insetion\n\t for ( int i = 0; i < queue.size(); i++ ) {\t\t\t \n\t\tif ( (int) queue.get(i) < item ) {\n\t\t queue.add( i, item );\n\t\t return;\n\t\t}\t\t\n\t }\n\t}\n }", "public boolean addToSortedQueue(ArrayList<Integer> job) throws RemoteException;", "public void add(Solution solution)\r\n\t{\r\n\t\t// remove oldest solution if the container is full\r\n\t\tif(size() == capacity)\r\n\t\t\tset.remove(queue.poll());\r\n\t\t\r\n\t\tset.add(solution);\r\n\t\tqueue.add(solution);\r\n\t}", "@Override\n public void postPriorityEvent(Event event)\n {\n priorityQueue.offer(event);\n }", "private void add(Pair<MarketDataRequestAtom,Event> inData)\n {\n getQueue().add(inData);\n }", "private void queueTask(Version theTask) {\n\tsynchronized(_taskQueue) {\n\t _taskQueue.add(theTask);\n\t}\n }", "public void push(Product p) throws InterruptedException\n\t{\n\t\tqueue.put(p);\n\t}", "private synchronized void refreshQueuePriority() {\n BlockingQueue<Message> newQueue;\n if(highPriorityMode) {\n newQueue = new PriorityBlockingQueue<>(DEFAULT_CAPACITY_SIZE, HighPriorityModeComparator.COMPARATOR);\n } else {\n newQueue = new PriorityBlockingQueue<>(DEFAULT_CAPACITY_SIZE, NoPriorityModeComparator.COMPARATOR);\n }\n this.queue.drainTo(newQueue);\n this.queue = newQueue;\n latch.countDown();\n }", "public void addItem(QueueItem item) {\n qItems.add(item);\n\n //long previousItemSize=item.getSize();\n long previousItemSize = ((QueueItem) qItems.lastElement()).getSize();\n long rate = calculateDelay(item.getSize());\n QueueWorkerThread worker = new QueueWorkerThread(getContext(), item);\n\n synchronized (fileGroupToItemMap) {\n fileGroupToItemMap.put(item.getName(), worker);\n }\n\n if (qItems.size() == 1) {\n Debug.log(\n this,\n \"CollabQueue, item: \" + item.getName() + //NoI18n\t\n \" scheduling with nodelay and with rate: \" + rate\n ); //NoI18n\t\t\t\t\n worker.scheduleAtFixedRate(0, rate);\n } else {\n long delay = calculateDelay(previousItemSize);\n Debug.log(\n this,\n \"CollabQueue, item: \" + item.getName() + //NoI18n\n \" scheduling for: \" + delay + \" with rate: \" + rate\n ); //NoI18n\t\t\t\n worker.scheduleAtFixedRate(delay, rate);\n }\n }", "public AddToQueue(PriorityQueue<Passenger> queue, Passenger[] arrivedOrder) {\n\t\tthis.queue = queue;\n\t\tthis.arrivedOrder = arrivedOrder;\n\t\tthis.capacity = arrivedOrder.length;\n\t}", "public void enqueue(Comparable item);", "public void addBuy() {\r\n\t\tbuys++;\r\n\t\tnotifyObservers();\r\n\t}", "public void add(T newEntry, int priority)\r\n\t{\n\t\tensureCapacity();\r\n\t\tint location=addLocation(priority);\r\n\t\t\r\n\t\tmakeRoom(location);\r\n\t\t\r\n\t\t//add the new entry and made sure you\r\n\t\t//call the addLocation so it knows which \"slot\"\r\n\t\t//to be placed into number wise\r\n\t\tnormalQueue[location]=newEntry;\r\n\t\tpriorityQueue[location]=priority;\r\n\t}", "Queue<IMotion> addToQueue(Queue<IMotion> motionQueue);", "public void addItem(Product p) throws IOException, ClassNotFoundException {\n SortByName sortByName = new SortByName();\n Collections.sort(cartContents, sortByName.productSearch());\n\n int m = this.getQuantity(p);\n //check if in cart will exceed available amount\n if (p.getAvailableQuantity() > m)\n {\n cartContents.add(p);\n }\n saveCart();\n }", "public void push(int x) {\n queue.add(x);\n }", "public void push(int x) {\n queue.add(x);\n }", "public void add(Object element) {\n queue.put( new DelayedElement( element ) );\n }", "@Override\r\n public boolean add(Item item){\r\n if(item.stackable&&contains(item)){\r\n stream().filter(i -> i.name.endsWith(item.name)).forEach(i -> {\r\n i.quantity += item.quantity;\r\n });\r\n }else if(capacity<=size()) return false;\r\n else super.add(item);\r\n return true;\r\n }", "private Queue<Integer> addToQueue(Queue<Integer> q, int item, int maxLength){\n q.add(item);\n while(q.size() > maxLength){\n q.remove(); //make sure the queue size isn't larger than its supposed to be\n }\n //System.out.println(\"queue_after_added \" + q);\n return q;\n }", "PriorityQueue(boolean transferPriority) \n\t\t{\n\t\t\tthis.transferPriority = transferPriority;\n\t\t\twaitQueue = new java.util.PriorityQueue<KThread>(1, new comparePriority()); //Initialize the waitQueue to a java.util.PriorityQueue with a custom comparator defined below\n\t\t}", "public void addPackage(String path) {\n\t\tscopeStack.peek().addPath(path);\n\t}", "public void push(int x) {\n queue.offer(x);\n }", "static void insert(Queue<Integer> q, int k){\n \n q.add(k);\n \n }", "public void addProduct(Product p){\n stock.add(p);\n }", "public void push(int x) {\r\n queue1.add(x);\r\n top = x;\r\n }", "public void push(int x) {\r\n queue1.add(x);\r\n top = x;\r\n }", "public void push(int x) {\r\n this.queueMain.offer(x);\r\n }", "public void queueUsage() {\n\t\t//use LinkedList as a queue\n\t\tQueue<String> q = new LinkedList<String>();\n\t\tq.add(\"1\");\n\t\tq.add(\"2\");\n\t\tq.add(\"3\");\n\t\tq.add(\"10\");\n\t\tq.add(\"11\");\n\t\tint[] a;\n\n\t\tLinkedBlockingQueue<String> bq = new LinkedBlockingQueue<String>();\n\t\t\n\t\t//ArrayBlockingQueue needs to set the size when created.\n\t\tArrayBlockingQueue<String> aq = new ArrayBlockingQueue<String>(100);\n\t\t\n\t\tPriorityBlockingQueue<String> pq = new PriorityBlockingQueue<String>();\n\t\t\n//\t\tDelayQueue<String> dq = new DelayQueue<String>(); \n\t\t\n\t}", "public PriorityQueue()\r\n\t{\r\n\t\tcurrentSize = 0;\r\n\t\tlowestCurrentPriority = Integer.MAX_VALUE;\r\n\t\tpq = new DLL[MAXIMUM_PRIORITY + 1];\r\n\t\tfor (int i = 0; i < pq.length; i++)\r\n\t\t{\r\n\t\t\tpq[i] = new DLL();\r\n\t\t}\r\n\t}", "public synchronized void addMetadataToQueue(FileMetadata fileMetadata){\n queue.add(fileMetadata);\n notifyAll();\n }", "public void push(int x) {\n Integer elem = x;\n queue.offer(elem);\n topElem = elem;\n }", "public interface PQueue<T> {\n\n void add(T item, int priority) throws InterruptedException;\n\n T removeMin();\n\n}", "public void push(Item item)\n {\n top = new Node<Item>(item, top);\n N++;\n }", "private void enqueue(E x) {\n final Object[] items = this.items;\n items[putIndex] = x;\n if (++putIndex == items.length) putIndex = 0;\n count++;\n notEmpty.signal();\n }", "public void addToQueue(String path) {\n ArrayList<String> temp = Global.uploadMetaData;\n\n boolean inQueue = checkInQueue(path, temp);\n\n if (!inQueue) {\n temp.add(path);\n }\n\n Global.uploadMetaData = temp;\n }", "void enqueue(Node n) {\n if (queueSet.contains(n)) {\n return;\n }\n queueSet.add(n);\n queue.addFirst(n);\n }", "public Builder addFHPackages(com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.Package value) {\n if (fHPackagesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFHPackagesIsMutable();\n fHPackages_.add(value);\n onChanged();\n } else {\n fHPackagesBuilder_.addMessage(value);\n }\n return this;\n }", "synchronized void addProcess(DpinProcess dp)\n{\n if (dp != null) process_set.put(dp.getId(),dp);\n notifyAll();\n}", "public void addTask(String optionStr)\n {\n Scanner in = new Scanner(optionStr);\n in.next();\n if (!in.hasNextInt()) {\n System.out.println(\"The priority must be an integer between 1 and 9.\");\n return;\n }\n int priority = in.nextInt();\n //System.out.println(\"priority: \" + priority);\n String task = in.nextLine();\n //System.out.println(\"task: \"+ task);\n pq.add(new Task(priority, task));\n\n }", "public void addPack(NBpack pack) throws ListFullException {\n synchronized (control) {\n if (write_point - read_point == COUNT_MAXPACKS) {\n throw new ListFullException();\n }\n if (write_point >= COUNT_MAXPACKS) {\n packs[write_point - COUNT_MAXPACKS] = pack;\n } else {\n packs[write_point] = pack;\n }\n write_point++;\n if (write_point + 1 == COUNT_MAXPACKS * 2) {\n write_point = 0;\n }\n control.notifyAll();\n }\n }", "public void push(int x) {\n queue.add(x);\n for (int i = 0; i < queue.size()-1; i++) {\n queue.add(queue.poll());\n }\n }", "@Override\n public void packageItem() {\n System.out.println(\"Fresh Produce packing : done\");\n }", "private void addFromQueue()\n\t{\n\t\twhile( humanQueue.size()>0 )\n\t\t\thumans.add(humanQueue.remove(0));\n\t\twhile( zombieQueue.size()>0 )\n\t\t\tzombies.add(zombieQueue.remove(0));\n\t}", "public void push(int x) {\n int n = queue.size();\n queue.offer(x);\n for (int i = 0; i < n; i++) {\n queue.offer(queue.poll());\n }\n }", "public void addPackage(PersistedBmmPackage bmmPackage) {\n packages.put(bmmPackage.getName().toUpperCase(), bmmPackage);\n }", "void enqueue(E newEntry);", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\twhile(true){\n\t\t\t\tsemaphore.acquire();\n\t\t\t\twhile(list.size()<10){\n\t\t\t\t\tlist.add(1);\n\t\t\t\t\tSystem.out.println(\"生产者放入一个产品,目前有\"+list.size()+\"个产品\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"队列满\"+\"等待消费者消费\");\n\t\t\t\tsemaphore.release();\n\t\t\t\tThread.sleep(500);\n\t\t\t\t}\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}", "public void enqueue(int item, int priority)\r\n\t{\r\n\t\tpq[priority].addToBeginning(item);\r\n\t\tif (priority < lowestCurrentPriority)\r\n\t\t{\r\n\t\t\tlowestCurrentPriority = priority;\r\n\t\t}\r\n\t\tcurrentSize++;\r\n\t}", "public static void enter(PriorityQueue<Student> queue,\n String name, double cgpa, int token){\n Student s=new Student(name,cgpa,token);\n queue.add(s); //added to queue\n\n }", "public static void main(String[] arg) {\n\t\tMyPriorityQueue pq = new MyPriorityQueue();\n\n\t\tpq.enqueue(2, \"apple\");\t// medium priority\n\t\tpq.enqueue(3, \"candy\");\t// low priority\n\t\tpq.enqueue(1, \"milk\");\t// high priority\n\t\tpq.enqueue(1, \"cheese\");// high priority\n\t\tpq.enqueue(2, \"banana\");// medium priority\n\t\tpq.peek();\n\t\tpq.dequeue();\t\t\t// ----> milk come out first although it was not the first one enter the queue!\n\t\tpq.peek();\n\t\tpq.enqueue(3, \"gum\");\t// low priority\n\t\tpq.dequeue();\t\t\t// ----> cheese come out next\n\t\tpq.peek();\n\t\tpq.enqueue(2, \"kiwi\");\t// low priority\n\t\tpq.dequeue();\t\t\t// apple come out after ALL high priority items had dequeued.\n\t\tpq.dequeue();\t\t\t// ----> banana\n\t\tpq.dequeue();\t\t\t// ----> kiwi\n\t\tpq.peek();\n\t\tpq.enqueue(1, \"fish\");\t// high priority\n\t\tpq.enqueue(2, \"apple\");\t// medium priority\n\t\tpq.peek();\n\t\tpq.dequeue();\t\t\t// ----> fish\n\t\tpq.dequeue();\t\t\t// ----> apple\n\t\tpq.dequeue();\t\t\t// ----> kiwi\n\t\tpq.dequeue();\t\t\t// ----> candy\n\t\tpq.peek();\n\t\tpq.enqueue(2, \"kiwi\");\t// medium priority\n\t\tpq.enqueue(1, \"cheese\");// high priority\n\t\tpq.peek();\n\t\n\t}", "void addCommand(final Runnable command)\n {\n synchronized (command_queue)\n {\n // New maximum queue length (+1 for the one about to get added)\n if (command_queue.size() >= max_size_reached)\n max_size_reached = command_queue.size() + 1;\n command_queue.addLast(command);\n }\n }", "public void add(int quantidade) {\r\n myLock.lock();\r\n try {\r\n this.quantidade += quantidade;\r\n myCond.signalAll();\r\n } finally {\r\n myLock.unlock();\r\n }\r\n }", "public void push(int x) {\n queue.addLast(x);\n }", "protected static void addTicketInPriorityOrder(LinkedList<Ticket> tickets, Ticket newTicket){\n\n if (tickets.size() == 0 ) {//Special case - if list is empty, add ticket and return\n tickets.add(newTicket);\n return;\n }\n\n //Tickets with the HIGHEST priority number go at the front of the list. (e.g. 5=server on fire)\n //Tickets with the LOWEST value of their priority number (so the lowest priority) go at the end\n\n int newTicketPriority = newTicket.getPriority();\n\n for (int x = 0; x < tickets.size() ; x++) { //use a regular for loop so we know which element we are looking at\n\n //if newTicket is higher or equal priority than the this element, add it in front of this one, and return\n if (newTicketPriority >= tickets.get(x).getPriority()) {\n tickets.add(x, newTicket);\n return;\n }\n }\n\n //Will only get here if the ticket is not added in the loop\n //If that happens, it must be lower priority than all other tickets. So, add to the end.\n tickets.addLast(newTicket);\n }", "public void incTotalOfQueueEntries() {\n totalOfQueueEntries++;\n }", "public void addEntry(int docID){\n\n if(this.docToEntities.get(docID) != null)\n return;\n\n //new queue\n this.docToEntities.put(docID,new PriorityQueue<>( ((o1, o2) -> {\n if(o1.getSecondValue() > o2.getSecondValue())\n return -1;\n else if(o1.getSecondValue() == o2.getSecondValue())\n return 0;\n\n return 1;\n })));\n\n }", "public void add(PSPackageCommunity pkgComm)\n {\n if (pkgComm == null)\n throw new IllegalArgumentException(\"pkg cannot be null.\");\n m_packageCommunities.add(pkgComm);\n }", "public void push(int x) {\n queue.addLast(x);\n }", "public void add(PuzzleBoard x) {\r\n // double size of array if necessary\r\n if (N == pq.length - 1) resize(2 * pq.length);\r\n\r\n // add x, and percolate it up to maintain heap invariant\r\n pq[++N] = x;\r\n swim(N);\r\n assert isMinHeap();\r\n }", "public void add(Message aMessage) \n { \n elements[tail] = aMessage; \n tail = (tail + 1) % elements.length; \n count++; \n }", "public void enqueue (Item item){\n Node<Item> oldLast = last;\n last = new Node<Item>();\n last.item = item;\n last.next = null;\n if(isEmpty()) {first = last;}\n else oldLast.next = last;\n N++;\n }", "public void enqueue(Item item) \n {\n stack1.push(item);\n }", "@Override\n public boolean offer(Object o) {\n\n // Rank is extracted from the header\n Packet packet = (Packet) o;\n PriorityHeader header = (PriorityHeader) packet;\n int rank = (int)header.getPriority();\n\n this.reentrantLock.lock();\n boolean returnValue = false;\n try {\n\n // Keep track of the current queue bounds (Figure 13a in the SP-PIFO paper)\n for (int q=queueList.size()-1; q>=0; q--){\n if(SimulationLogger.hasQueueBoundTrackingEnabled()){\n SimulationLogger.logQueueBound(this.ownId, q, (int)queueBounds.get(q));\n }\n }\n\n // Aggregate adaptation parameters\n int currentQueueBound, currentQueueBoundPlus, currentQueueBoundMinus;\n int QLm, QLh, QLmplus, QLmminus, sumA1, sumA2, sumB1, sumB2;\n\n // SP-PIFO queue scanning process\n for (int q=queueList.size()-1; q>=0; q--){\n currentQueueBound = (int)queueBounds.get(q);\n if ((currentQueueBound <= rank) || q==0) {\n boolean result = queueList.get(q).offer(o);\n\n if (!result){\n // System.out.println(\"Greedy: Packet with rank \" + rank + \" has been dropped from queue \" + q + \".\");\n returnValue = false;\n break;\n } else {\n\n // Update general counter\n this.generalPacketCounter = this.generalPacketCounter + 1;\n\n // We compute the perceived rank\n Object[] contentPIFO = queueList.get(q).toArray();\n Arrays.sort(contentPIFO);\n Packet packet_maxrank = (Packet) contentPIFO[0];\n PriorityHeader header_maxrank = (PriorityHeader) packet_maxrank;\n int rank_perceived = (int)header_maxrank.getPriority();\n if (rank_perceived > rank){\n this.unpifoness = this.unpifoness + (rank_perceived - rank);\n }\n\n // IMPORTANT: If packet enqueued here, means that QLm <= rank < QLh\n // Packet enqueued, we update counters, and return true\n if (q==queueList.size()-1){\n QLh = rank_bound;\n QLm = (int)this.queueBounds.get(q);\n } else {\n QLh = (int)this.queueBounds.get(q+1);\n QLm = (int)this.queueBounds.get(q);\n }\n\n // To consider non continuous rank distributions, we have to keep track of the Qm+1 and Qh-1 ranks per each queue\n // This way we are sure that the boundary move we are analyzing will not be an empty rank\n currentQueueBoundPlus = (int)this.queueBoundsPlus.get(q);\n if (rank > QLm && rank < currentQueueBoundPlus){\n this.queueBoundsPlus.put(q, rank);\n }\n\n // Update counters per queue\n Object currentPackets = countersB21.get(q);\n if (currentPackets == null){\n countersB21.put(q, rank);\n } else {\n countersB21.put(q, (int)currentPackets+rank);\n }\n\n currentPackets = countersB22.get(q);\n if (currentPackets == null){\n countersB22.put(q, 1);\n } else {\n countersB22.put(q, (int)currentPackets+1);\n }\n\n if (rank != QLm){\n currentPackets = countersA21.get(q);\n if (currentPackets == null){\n countersA21.put(q, rank);\n } else {\n countersA21.put(q, (int)currentPackets+rank);\n }\n\n currentPackets = countersA22.get(q);\n if (currentPackets == null){\n countersA22.put(q, 1);\n } else {\n countersA22.put(q, (int)currentPackets+1);\n }\n }\n\n if (q!=queueList.size()-1){\n\n currentQueueBoundMinus = (int) this.queueBoundsMinus.get(q + 1);\n if (rank > currentQueueBoundMinus) {\n this.queueBoundsMinus.put(q + 1, rank);\n }\n\n currentPackets = countersA11.get(q+1);\n if (currentPackets == null){\n countersA11.put(q+1, importance(rank));\n } else {\n countersA11.put(q+1, (int)currentPackets+importance(rank));\n }\n\n currentPackets = countersA12.get(q+1);\n if (currentPackets == null){\n countersA12.put(q+1, (importance(rank))*rank);\n } else {\n countersA12.put(q+1, (int)currentPackets+(importance(rank))*rank);\n }\n\n if(rank != (int)this.queueBoundsMinus.get(q+1)){\n currentPackets = countersB11.get(q+1);\n if (currentPackets == null){\n countersB11.put(q+1, importance(rank));\n } else {\n countersB11.put(q+1, (int)currentPackets+importance(rank));\n }\n\n currentPackets = countersB12.get(q+1);\n if (currentPackets == null){\n countersB12.put(q+1, (importance(rank))*rank);\n } else {\n countersB12.put(q+1, (int)currentPackets+(importance(rank))*rank);\n }\n }\n }\n\n returnValue = true;\n break;\n }\n }\n }\n\n // When the threshold is reached, aggregate adaptation is considered based on the values in counters\n if(this.generalPacketCounter == 1000) {\n\n // Each queue bound expected unpifoness is compared to the one achieved by moving the boundaries\n for(int i=queueBounds.size()-1; i>0; i--){\n\n // Obtain the values of adjacent ranks to analyze\n QLm = (int)this.queueBounds.get(i);\n QLmplus = (int)this.queueBoundsPlus.get(i);\n QLmminus = (int)this.queueBoundsMinus.get(i);\n\n sumA1 = ((QLm) * (int)countersA11.get(i)) - (int)countersA12.get(i);\n sumA2 = (importance(QLm) * (int)countersA21.get(i)) - (importance(QLm) * (QLm) * (int)countersA22.get(i));\n\n if (i==(queueBounds.size()-1)){\n if ((sumA1 < sumA2) && (QLmplus != (int)this.rank_bound)){\n if (!this.fixQueueBounds){\n this.queueBounds.put(i, QLmplus);\n }\n } else {\n\n sumB1 = ((QLmminus) * (int)countersB11.get(i)) - (int)countersB12.get(i);\n sumB2 = (importance(QLmminus) * (int)countersB21.get(i)) - (importance(QLmminus) * (QLmminus) * (int)countersB22.get(i));\n\n if ((sumB1 > sumB2) && (QLmminus != (int)this.queueBounds.get(i-1))){\n if (!this.fixQueueBounds){\n this.queueBounds.put(i, QLmminus);\n }\n }\n }\n } else {\n if ((sumA1 < sumA2) && (QLmplus != (int)this.queueBounds.get(i+1))){\n if (!this.fixQueueBounds){\n this.queueBounds.put(i, QLmplus);\n }\n } else {\n\n sumB1 = ((QLmminus) * (int)countersB11.get(i)) - (int)countersB12.get(i);\n sumB2 = (importance(QLmminus) * (int)countersB21.get(i)) - (importance(QLmminus) * (QLmminus) * (int)countersB22.get(i));\n\n if ((sumB1 > sumB2) && (QLmminus != (int)this.queueBounds.get(i-1))){\n if (!this.fixQueueBounds){\n this.queueBounds.put(i, QLmminus);\n }\n }\n }\n }\n\n }\n\n // Reset the counters for the next iteration\n this.queueBoundsPlus.clear();\n this.queueBoundsMinus.clear();\n this.generalPacketCounter = 0;\n this.countersA11.clear();\n this.countersA12.clear();\n this.countersA21.clear();\n this.countersA22.clear();\n this.countersB11.clear();\n this.countersB12.clear();\n this.countersB21.clear();\n this.countersB22.clear();\n for (int i=0; i<queueList.size(); i++){\n countersA11.put(i,0);\n countersA12.put(i,0);\n countersA21.put(i,0);\n countersA22.put(i,0);\n countersB11.put(i,0);\n countersB12.put(i,0);\n countersB21.put(i,0);\n countersB22.put(i,0);\n }\n\n // Reinitialize the adjacent rank values based on the updated queue bounds\n for (int q=0; q<queueList.size(); q++){\n if (q==queueList.size()-1){\n this.queueBoundsPlus.put(q,this.rank_bound);\n this.queueBoundsMinus.put(q,this.queueBounds.get(q-1));\n } else if (q==0){\n this.queueBoundsPlus.put(q,this.queueBounds.get(q+1));\n this.queueBoundsMinus.put(q,0);\n } else{\n this.queueBoundsPlus.put(q,this.queueBounds.get(q+1));\n this.queueBoundsMinus.put(q,this.queueBounds.get(q-1));\n }\n }\n }\n\n } catch (Exception e){\n System.out.println(\"Exception: \" + e.getMessage());\n e.printStackTrace();\n } finally {\n this.reentrantLock.unlock();\n // System.out.println(\"Packet with rank \" + rank + \"enqueued_flag\" + returnValue);\n return returnValue;\n }\n }", "public void add(E e) throws FileQueueClosedException;", "public void push(int x) {\n queue.push(x);\n }", "public void addProcess(Process4 p)\n\t{\n\t\tif(currentProcess == null)\n\t\t{\n\t\t\tcurrentProcess = p;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tProcesses.enqueue(p);\n\t\t}\n\t}", "public void add(int bib) {\n\t\tfor ( Run r : startQueue ) {\n\t\t\tif ( r.getBibNum() == bib ) {\n\t\t\t\tPrinter.print(\"Error: Bib number already in use\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tfor ( Run r : finishQueue ) {\n\t\t\tif ( r.getBibNum() == bib ) {\n\t\t\t\tPrinter.print(\"Error: Bib number already in use\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tfor ( Run r : completedRuns ) {\n\t\t\tif ( r.getBibNum() == bib ) {\n\t\t\t\tPrinter.print(\"Error: Bib number already in use\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tRun run = new Run(runNum, bib);\n\t\tstartQueue.add(run);\n\t}", "@Override\n\tpublic void addTask(ISimpleTask task) {\n\t\ttry {\n\t\t\tqueue.put(task);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public ArrayPriorityQueue()\n { \n\tqueue = new ArrayList();\n }", "public void add(IEvent event){\r\n\t\tqueue.add(event);\r\n\t}", "public synchronized void add(T object) throws InterruptedException {\n\t\twhile (store.size() == capacity) {\n\t\t\tLOG.info(\"No more space\");\n\t\t\twait();\n\t\t}\n\t\tstore.add(object);\n\t\tLOG.info(\"Added product\" + store.size());\n\t\tnotify();\n\t}", "public Builder addFHPackages(\n int index, com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.Package value) {\n if (fHPackagesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFHPackagesIsMutable();\n fHPackages_.add(index, value);\n onChanged();\n } else {\n fHPackagesBuilder_.addMessage(index, value);\n }\n return this;\n }", "@Override\r\n\tpublic int add() {\n\t\treturn 0;\r\n\t}", "public void add(Task task){ this.tasks.add(task);}" ]
[ "0.6877442", "0.6396917", "0.63136226", "0.6226027", "0.5927819", "0.5879001", "0.58273304", "0.5731696", "0.57239634", "0.5711024", "0.56995225", "0.56982625", "0.5679818", "0.5589292", "0.5561528", "0.5517952", "0.54421353", "0.54297405", "0.54087204", "0.54045755", "0.53926253", "0.5383369", "0.53681713", "0.5366733", "0.5347456", "0.52990586", "0.5290077", "0.52808684", "0.5264898", "0.5257922", "0.52537537", "0.52439845", "0.5237707", "0.5233742", "0.5215287", "0.5202115", "0.51994056", "0.51733637", "0.5166983", "0.51483893", "0.5143345", "0.5143345", "0.5140265", "0.5135279", "0.5115485", "0.5113037", "0.5110082", "0.5091342", "0.5089355", "0.5084287", "0.50809157", "0.50809157", "0.50789875", "0.5066068", "0.5048617", "0.50413805", "0.50406307", "0.5034467", "0.50333995", "0.50293076", "0.5026234", "0.50215423", "0.5009007", "0.4995223", "0.49935842", "0.4992447", "0.4987989", "0.49841994", "0.49791762", "0.49697486", "0.4965905", "0.49582034", "0.49557412", "0.49499065", "0.4949708", "0.49494576", "0.4944802", "0.4944262", "0.49413258", "0.493915", "0.49375588", "0.4933515", "0.4933402", "0.49325803", "0.49308857", "0.49262303", "0.49136385", "0.49108028", "0.49082935", "0.4904139", "0.49034715", "0.48989773", "0.48871133", "0.4886396", "0.48792732", "0.48774293", "0.48742273", "0.48734817", "0.48650908", "0.4864235" ]
0.6778627
1
remove. Remove the Package at the first position and return it. This should be the package with the highest remaining priority. If first is null then return null. Don't forget to update the count variable
public Package remove() { if (first == null) return null; count--; return first.next; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DVDPackage remove() {\n\t\t//The call to queue.removeFirst() will throw the NoSuchElementException if\n\t\t//the queue is empty. This exception is allowed to pass through this class.\n\t\treturn queue.removeFirst();\n\t}", "public Package removePackage(int index) {\r\n return (Package) myPackages.remove(index);\r\n }", "@Override\r\n public CustomProcess removeBest() {\r\n if (isEmpty()) {\r\n throw new NoSuchElementException(\"queue is empty, cannot remove from empty queue\");\r\n }\r\n CustomProcess best = data[0]; // process to be removed\r\n data[0] = data[size - 1];\r\n data[size - 1] = null;\r\n minHeapPercolateDown(0); // Percolate down on first index\r\n size--;\r\n return best;\r\n }", "@Override\r\n\tpublic DonationPackage removePackageFromContainer() throws EmptyStackException {\n\t\tif(ContainerEmpty() == false) {\r\n\t\t\treturn (DonationPackage) containerLine.pop();\r\n\t\t} else{\r\n\t\t\tthrow new EmptyStackException();\r\n\t\t}\r\n\t}", "Object removeFirst();", "@Override\n public Item removeFirst() {\n nextFirst = moveForward(nextFirst, 1);\n Item output = items[nextFirst];\n items[nextFirst] = null;\n size -= 1;\n return output;\n }", "public Node removeMin() {\n \t\t// TODO Complete this method!\n \t\tif (indexOfLeastPriority == 2) {\n \t\t\tNode toReturn = getNode(1);\n \t\t\tsetNode(1, null);\n \t\t\treturn toReturn;\n \t\t}\n \t\tint indexOfReplacement = indexOfLeastPriority - 1;\n \t\tNode nodeOfReplacement = getNode(indexOfReplacement);\n \t\tNode toRemove = getNode(1);\n \t\tsetNode(indexOfReplacement, null);\n \t\tsetNode(1, nodeOfReplacement);\n \t\tbubbleDown(1);\n \t\t//decrement IoLP\n \t\tindexOfLeastPriority--;\n \t\treturn toRemove;\n \t}", "public T removeFirst() {\n if (size == 0) {\n return null;\n }\n nextFirst = plusOne(nextFirst);\n size -= 1;\n T toRemove = items[nextFirst];\n items[nextFirst] = null;\n if (isSparse()) {\n resize(capacity / 2);\n }\n return toRemove;\n }", "public T removeFirst( ){\r\n\t\t//calls remove onfirst\r\n\t\tT toRemove = getFirst();\r\n\t\treturn remove(toRemove);\r\n\t}", "public T removeFirst();", "public Package getPackage(int i) {\r\n if (i >= myPackages.size())\r\n return null;\r\n return (Package) myPackages.get(i);\r\n }", "public Item removeFirst() {\n\t\tif (count == 0) throw new NoSuchElementException();\n\t\tcount--;\n\t\tItem target = first.item;\n\t\tNode nextNode = first.next;\n\t\tfirst = null;\n\t\tif (count > 0) {\n\t\t\tfirst = nextNode;\n\t\t} \n\t\treturn target;\n\t}", "public Item removeFirst(){\r\n\t\tif (isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\r\n\t\tItem tmp = list[first];\r\n\t\tlist[first++] = null;\r\n\t\tn--;\r\n\t\tprior=first-1;\r\n\t\tif(first==list.length){first=0;}\r\n\t\tif (n > 0 && n == list.length/4) resize(list.length/2); \r\n\t\treturn tmp;}", "public E removeFirst();", "public synchronized DoubleLinkedListNodeInt removeFirst() {\n\t\tDoubleLinkedListNodeInt node = getFirst();\n\t\tif(node != null){\n\t\t\tnode.remove();\n\t\t}\n\t\treturn node;\n\t}", "public T removeFirst(){\n\tT ret = _front.getCargo();\n\t_front = _front.getPrev();\n\t_front.setNext(null);\n\t_size--;\n\treturn ret;\n }", "public E removeFirst() {\n\t\t// Bitte fertig ausprogrammieren:\n\t\treturn null;\n\t}", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n Item item = first.item;\n first = first.next;\n if (first == null) {\n last = null;\n }\n else {\n first.pre = null;\n }\n len--;\n return item;\n }", "public E removeFirst() {\n if(isEmpty()){\n return null;\n }else{\n return remove(header.getNext());\n }\n }", "public int remove() {\n return priorityQueue[--counter];\n }", "public E remove(){\r\n if(isEmpty())\r\n return null;\r\n \r\n //since the array is ordered, the highest priority will always be at the end of the queue\r\n //--currentSize will find the last index (highest priority) and remove it\r\n return queue[--currentSize];\r\n }", "public static void removeOrderedPromotionalPackage() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out\n\t\t\t\t.println(\"************Removing ordered Promotional Package************\");\n\t\tOrderManager orderManager = new OrderManager();\n\t\tList listOfOrders = orderManager.viewOrder();\n\n\t\tOrderedPackageManager orderedPackageManager = new OrderedPackageManager();\n\t\tList listOfOrderedPromotionalPackages = null;\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\n\t\tOrderedPackage orderedPackage = null;\n\t\tboolean check = false;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tif (listOfOrders.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no orders!\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tSystem.out.println();\n\t\t\t// print the list of orders for the user to select from.\n\t\t\tfor (i = 0; i < listOfOrders.size(); i++) {\n\t\t\t\torder = (Order) listOfOrders.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println((i + 1) + \") Order: \" + order.getId()\n\t\t\t\t\t\t+ \" | Table: \" + order.getTable().getId());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\tSystem.out\n\t\t\t\t\t.print(\"Select an order to remove the promotional package ordered: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\torder = (Order) listOfOrders.get(choice - 1);\n\n\t\t\tlistOfOrderedPromotionalPackages = orderedPackageManager\n\t\t\t\t\t.retrieveOrderedPackageByOrderID(order.getId());\n\n\t\t\tdo {\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (listOfOrderedPromotionalPackages.size() == 0) {\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"There is no ordered promotional package!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tfor (i = 0; i < listOfOrderedPromotionalPackages.size(); i++) {\n\t\t\t\t\torderedPackage = (OrderedPackage) listOfOrderedPromotionalPackages\n\t\t\t\t\t\t\t.get(i);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((i + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ orderedPackage.getPackage().getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ orderedPackage.getPackage().getName() + \" | $\"\n\t\t\t\t\t\t\t+ orderedPackage.getPrice());\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.println((i + 1) + \") Done\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print(\"Select an ordered promotional package to remove from order: \");\n\t\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\t\tif (choice != (i + 1)) {\n\t\t\t\t\torderedPackage = (OrderedPackage) listOfOrderedPromotionalPackages\n\t\t\t\t\t\t\t.get(choice - 1);\n\n\t\t\t\t\tcheck = orderedPackageManager\n\t\t\t\t\t\t\t.removeOrderedPackage(orderedPackage);\n\n\t\t\t\t\tif (check) {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Ordered promotional package removed from order successfully!\");\n\t\t\t\t\t\tlistOfOrderedPromotionalPackages.remove(orderedPackage);\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Failed to remove ordered promotional package from order!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} while (choice != (i + 1));\n\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out\n\t\t\t\t.println(\"************End of removing promotional Package************\");\n\t}", "public T removeBest();", "public Item removeFirst(){\n\t\tif(isEmpty()){\n\t\t\tthrow new NoSuchElementException(\"Queue underflow\");\n\t\t}else{\n\t\t\t//save item to return\n\t\t\tItem returnItem = first.item;\n\t\t\t//delete first node\n\t\t\tfirst = first.next;\n\t\t\tn--;\n\t\t\tif(isEmpty()){\n\t\t\t\tlast = null; // to avoid loitering\n\t\t\t}else{\n\t\t\t\tfirst.prev = null;\n\t\t\t}\n\t\t\treturn returnItem;\n\t\t}\n\t}", "public Item removeFirst() {\n\t\tif (first == null) {\n\t\t\tthrow new java.util.NoSuchElementException();\n\t\t}\n\t\tItem temp = first.item;\n\t\tif (first == last) {\n\t\t\tlast = null;\n\t\t\tfirst = null;\n\t\t} else {\n\t\t\tfirst = first.next;\n\t\t\tfirst.previous = null;\n\t\t}\n\t\tsize--;\n\t\treturn temp;\n\t}", "public E removeFirst() {\n return pop();\n }", "public T removeFirst() {\n if (size == 0) {\n return null;\n }\n if (size == 1) {\n size--;\n return array[front];\n }\n this.checkReSizeDown();\n size--;\n front++;\n this.updatePointer();\n return array[Math.floorMod(front - 1, array.length)];\n }", "public T removeLast() {\n if (size() == 0) {\n return null;\n }\n nextLast = minusOne(nextLast);\n size -= 1;\n T toRemove = items[nextLast];\n items[nextLast] = null;\n if (isSparse()) {\n resize(capacity / 2);\n }\n return toRemove;\n }", "@NotNull\n public static String dropFirstPackage(@NotNull String packageName) {\n int idx = packageName.indexOf('.');\n return idx >= 0 ? packageName.substring(idx + 1) : \"\";\n }", "@Override\n public T remove() {\n //make sure there is something in the set\n if (first == null)\n return null;\n //make a reference to the data in the first node, then\n //update the reference to the second node\n T val = first.value;\n first = first.next;\n //return the data\n numItems--;\n return val;\n }", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"queue is empty\");\n }\n Item a;\n a = first.item;\n first = first.next;\n if (first == null) {\n last = null;\n }\n else first.prev = null;\n size--;\n return a;\n }", "public Item removeFirst() {\n if (!isEmpty()) {\n Item item = first.item;\n first = first.back;\n size--;\n if (size != 0)\n first.front = null;\n return item;\n } else throw new NoSuchElementException(\"?\");\n }", "public Item removeFirst() {\n if (first == null)\n throw new NoSuchElementException();\n \n final Item element = first.item;\n final Node<Item> next = first.next;\n first.item = null;\n first.next = null; // help GC\n first = next;\n if (next == null)\n last = null;\n else\n next.prev = null;\n size--;\n \n return element;\n }", "@Override\n public T removeFirst() {\n if (size == 0) {\n return null;\n }\n\n int position = plusOne(nextFirst);\n T itemToReturn = array[position];\n array[position] = null;\n nextFirst = position;\n size -= 1;\n\n if ((double)size / array.length < 0.25 && array.length >= 16) {\n resize(array.length / 2);\n }\n return itemToReturn;\n }", "protected int removeFirst() throws Exception {\n if (size > 0) {\n int temp = heap[1];\n heap[1] = heap[size];\n heap[size] = 0;\n size--;\n return temp;\n } else {\n throw new Exception(\"No Item in the heap\");\n }\n }", "@Override\r\n\tpublic E removeFirst() {\n\t\treturn null;\r\n\t}", "public Team pop()\n { \n \t//get first element\n Team element = first.getElement();\n //update next\n first = first.getNext();\n //decrement total\n total--;\n return element;\n }", "public T remove() throws NoSuchElementException {\n\tT result = poll();\n\tif(result == null) {\n\t throw new NoSuchElementException(\"Priority queue is empty\");\n\t} else {\n\t return result;\n\t}\n }", "public E removeFirst(){\r\n return null;\r\n }", "public Object removeFirst() {\r\n Object first = header.next.element;\r\n remove(header.next);\r\n return first;\r\n }", "public Team remove(){\r\n if(array[1] == null){\r\n return null;\r\n }\r\n Team r = array[1].value;\r\n nextAvail--;\r\n if(nextAvail == 1){\r\n array[nextAvail] = null;\r\n }\r\n else {\r\n array[1].value = array[nextAvail].value;\r\n array[nextAvail] = null;\r\n fixHeap();\r\n }\r\n return r;\r\n }", "public E pollLast() {\n\t\tif (mSize == 0)\n\t\t\treturn null;\n\t\n\t\tE retVal = remove(getNode(size() - 1));\n\n\t\tmSize--;\n\t\tmodCount++;\n\n\t\treturn retVal;\n\t}", "public T remove() throws NoSuchElementException {\n T result = poll();\n if (result == null) {\n throw new NoSuchElementException(\"Priority queue is empty\");\n } else {\n return result;\n }\n }", "public void remove() {\n\t\tprocess temp = queue.removeFirst();\n\t}", "public void removefirst()\r\n {\r\n Item item = pre.item;\r\n pre = pre.next;\r\n n--;\r\n }", "public synchronized Object removeFirstElement() {\n return _queue.remove(0);\n }", "public Object removeFirst(){\n if (first == null)\n throw new NoSuchElementException();\n Object element = first.data;\n first = first.next;\n return element ;\n }", "public Task poll() \n\t{\n\t\tif(this.isEmpty())\n\t\t{\n\t\t\tSystem.out.println(\"Cannot remove from an empty list.\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tint parent = 1;\n\t\tint child = 2;\n\t\tTask newTask = heap[1];\n\t\tTask temp = heap[size--];\n\t\t\n\t\twhile(child <= size)\n\t\t{\n\t\t\tif(child < size && heap[child].getPriority() > heap[child + 1].getPriority())\n\t\t\t{\n\t\t\t\tchild++;\n\t\t\t}\n\t\t\tif(temp.getPriority() <= heap[child].getPriority())\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\theap[parent] = heap[child];\n\t\t\tparent = child;\n\t\t\tchild *= 2;\n\t\t\t\n\t\t}\n\t\t\n\t\theap[parent] = temp;\n\t\treturn newTask;\n\t}", "public Item removeFirst() {\n Item val = deck[fFront];\n deck[fFront++] = null;\n return val;\n }", "public TypeHere removeLast() {\n TypeHere x = getLast();\n items[size - 1] = null;\n size -= 1; \n return x;\n }", "@Override\n\tpublic T remove(T removeItem) {\n\t\t// TODO\n\t\tT item;\n\t\tint index=indexOf(removeItem);\n\t\tif (index == -1) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\titem = data[index];\n\t\t\tfor(int j=index;j<size-1;j++)\n\t\t\t\tdata[j] = data[j+1];\n\t\t\tsize--;\n\t\t\treturn item;\n\t\t}\n\t\t// Find the removeItem in the array\n\t\t// return null if not found\n\t\t// First, Store the item found in a variable\n\t\t// shift the sequence element to the blank(adjust the array)\n\t\t// decrease size by 1\n\t\t// return the stored item\n\n\t}", "public Item removeFirst() {\n if (size == 0) {\n return null;\n } else if (size == 1) {\n StuffNode i = sentinel.next;\n sentinel.next = sentinel;\n sentinel.prev = sentinel;\n size -= 1;\n return i.item;\n } else {\n StuffNode i = sentinel.next;\n sentinel.next = i.next;\n i.next.prev = sentinel;\n size -= 1;\n return i.item;\n }\n }", "public Item removeFirst() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\tNode<Item> tmp = head;\n\t\thead = head.next;\n\t\tif (head == null) {\n\t\t\ttail = null;\n\t\t} else {\n\t\t\thead.prev = null;\n\t\t}\n\t\tN--;\n\t\ttmp.next = null;\n\t\treturn tmp.item;\n\t}", "public Item removeFirst() {\n if (isEmpty())\n throw new NoSuchElementException();\n Item item = first.item;\n first = first.next;\n if (first != null)\n first.prev = null;\n else\n last = first;\n size--;\n return item;\n }", "public E removeFirst() {\n\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\n\t\tE retVal = remove(mHead.next);\n\n\t\tmSize--;\n\t\tmodCount++;\n\n\t\treturn retVal;\n\t}", "public Item removeFirst() {\r\n if (isEmpty()) {\r\n throw new NoSuchElementException();\r\n }\r\n Item result = items[++firstCursor];\r\n items[firstCursor] = null;\r\n return result;\r\n }", "public U removeFirst(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls remove on first\r\n\t \treturn remove(0);\r\n\t }", "public int pop() {\n return One.poll();\n }", "public String pop() {\n String removed = NOTHING;\n // Is there anything in the stack to remove?\n if (usage > 0) {\n // Obtain the topmost value from the stack\n removed = this.foundation[this.foundation.length - this.usage];\n // Clean up the array location\n this.foundation[this.foundation.length - this.usage] = null;\n // Decrease usage counter\n usage--;\n }\n return removed;\n }", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"Trying to remove an item from an empty deque.\");\n }\n\n Item item = first.item; // save item to return\n first = first.next; // delete first node\n if (first == null) {\n last = null;\n } else {\n first.previous = null;\n }\n size--;\n if (isEmpty()) {\n last = null;\n }\n assert check();\n return item; // return the saved item\n }", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n\n Node oldFirst = this.first;\n this.first = oldFirst.next;\n this.size--;\n\n if (this.size != 0) {\n this.first.prev = null;\n } else {\n this.last = null;\n }\n\n return oldFirst.item;\n }", "public Item removeFirst() {\n if (this.isEmpty())\n throw new java.util.NoSuchElementException();\n\n Item ret = this.first.item;\n\n this.first = this.first.next;\n if (this.first != null)\n this.first.prev = null;\n else\n this.last = null;\n --this.n;\n\n return ret;\n }", "public T removeFirst()\r\n {\r\n T removedData; // holds data from removed node\r\n\r\n if (numElements == 0)\r\n throw new NoSuchElementException(\r\n \"Remove attempted on empty list\\n\");\r\n removedData = front.data;\r\n front = front.next;\r\n if (numElements == 1)\r\n rear = null;\r\n \r\n numElements--;\r\n return removedData;\r\n }", "public T removeFirst() {\r\n \r\n if (size == 0) {\r\n return null;\r\n }\r\n \r\n T deleted = front.element;\r\n front = front.next;\r\n size--;\r\n \r\n return deleted;\r\n }", "public void removeFirst() \r\n\t{\r\n\t\tint position = 1;\r\n\t\tif ( this.isEmpty() || position > numItems || position < 1 )\r\n\t\t{\r\n\t\t\tSystem.out.print(\"This delete can not be performed \"+ \"an element at position \" + position + \" does not exist \" );\r\n\t\t}\r\n\t\tfor (int i=position-1; i< numItems-1; i++)\r\n\t\t\tthis.bookArray[i] = this.bookArray[i+1];\r\n\t\t\tthis.bookArray[numItems-1] = null;\r\n\t\t\tnumItems--;\r\n\t\t\tSystem.out.println(\"DELETED first book from the Array \\n\");\r\n\t\t\r\n\t\t\treturn ;\r\n\t}", "@Override\n public Item removeLast() {\n nextLast = moveBack(nextLast, 1);\n Item output = items[nextLast];\n items[nextLast] = null;\n size -= 1;\n return output;\n }", "public Item removeFirst() throws NoSuchElementException {\n checkDequeIsNotEmpty();\n\n Item item = first.item;\n first = first.next;\n size--;\n\n if (isEmpty()) {\n // to avoid loitering; first already points to null\n last = null;\n } else {\n first.prev = null;\n }\n return item;\n }", "protected Procedure selectProcedureAndRemove(/*Set<CGOrderProcedureId> candidates*/) {\n\t\t/*if(USE_CACHE) {\n\t\t\tassert(!candidates.isEmpty());\n\t\t\t\n\t\t\tMaybeVal<CGOrderProcedureId> res = this.procedureBuilderHelper.selectProcedure(candidates);\n\t\t\tif(!res.isNothing())\n\t\t\t\treturn res.getVal();\n\t\t}*/\n\t\t\n\t\tIterator<Procedure> it = firstOrderCandidates.iterator();\n\t\tProcedure proc = it.next();\n\t\tit.remove();\n\t\tboolean wasRemoved = candidates.remove(proc.getModuleId(), proc);\n\t\tif(wasRemoved)\n\t\t\t--candidatesSize;\n\t\treturn proc;\n\t}", "protected int removeLast() {\n if (size > 0) {\n return heap[size--];\n }\n return null;\n }", "public Item removeFirst() {\n //check if the DList is empty or not:\n if(isEmpty()) throw new NoSuchElementException(\"Failed to perform removeFirst() bacause the DList instance is empty!\");\n Node oldFirst = first.next;\n Item item = oldFirst.data; \n\n // pointer re-wiring:\n Node newFirst = oldFirst.next; \n first.next = newFirst;\n newFirst.prev = first;\n oldFirst.next = null;\n oldFirst.prev = null;\n\n // check if last pointer has to be updated or not (paying the peiper):\n if(isEmpty()) {\n last.prev = first; // update the last sentinel node to point to the first sentinel node\n }\n\n // update the size: \n size--;\n\n return item;\n }", "public Message remove() \n { \n Message r = elements[head]; \n head = (head + 1) % elements.length; \n count--; \n return r; \n }", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"Can not call removeFirst() on an empty deque\");\n }\n\n Item item = first.item;\n first = first.next;\n n--;\n if (isEmpty()) {\n last = null;\n }\n else {\n first.prev = null;\n }\n return item;\n\n }", "public void killRecentPackage() {\n IActivityManager activityManager = ActivityManager.getService();\n int userIdProcess = Process.myUserHandle().hashCode();\n List<ActivityManager.RecentTaskInfo> recentlist = new ArrayList<>();\n try {\n recentlist = activityManager.getRecentTasks(100, 1, userIdProcess).getList();\n } catch (Exception e) {\n loge(\"killRecentPackage\", e);\n }\n for (int i = 0; i < recentlist.size(); i++) {\n ActivityManager.RecentTaskInfo info = recentlist.get(i);\n String pakg = info.baseIntent.getComponent().getPackageName();\n int userId = info.userId;\n if (!mAppWhiteList.contains(pakg) && !inputMethodList.contains(pakg) && !pakg.contains(\"com.oppo.autotest\") && !pakg.contains(\"com.oppo.qe\")) {\n logd(\" killRecentPackage_forceStopPackage = \" + pakg + \" , userId = \" + userId);\n try {\n activityManager.forceStopPackage(pakg, userId);\n } catch (Exception e2) {\n loge(\"Failed killRecentPackage_forceStopPackage = \" + pakg + \" , userId = \" + userId, e2);\n }\n }\n }\n }", "public Item removeLast() {\n\t\tif (count == 0) throw new NoSuchElementException();\n\t\tcount--;\n\t\tItem target = last.item;\n\t\tNode previousNode = last.previous;\n\t\tlast = null;\n\t\tif (count > 0) {\n\t\t\tlast = previousNode;\n\t\t}\n\t\t\n\t\treturn target;\n\t}", "public final void removeFirst() {\n this.size--;\n setFirst((Node) ((Node) get()).get());\n }", "public Item removeLast();", "public Item removeFirst(){\n return this.doublyLinkedList.removeFirst();\n }", "public E removeMin() {\n // TODO: YOUR CODE HERE\n E min = getElement(1);\n swap(1, size());\n setElement(size(), null);\n bubbleDown(1);\n size -= 1;\n return min;\n }", "public T pop() {\r\n\t\t\r\n\t\tT numPila = this.num.remove(this.num.size()-1);\r\n\t\t\r\n\t\tfor (StackObserver<T> o : observers )\r\n\t\t\to.onPop(numPila);\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\treturn numPila;\r\n\t\t\r\n\t\t//return this.num.remove(this.num.size()-1);\r\n\t\t\r\n\t\t\r\n\t}", "public E removeLast() {\n\t\t// low-level methods should be efficient - don't call other rmv()\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\n\t\tE retVal = remove(getNode(size() - 1));\n\n\t\tmSize--;\n\t\tmodCount++;\n\n\t\treturn retVal;\n\t}", "default ItemStack removeOneItem() {\n return removeOneItem(StandardStackFilters.ALL);\n }", "private E removeFirst ()\n {\n Node<E> temp = head;\n if (head != null) {\n head = head.next;\n size--;\n return temp.data;\n }\n else\n return null;\n }", "@Override\n public E deleteMin()\n {\n return list.removeFirst();\n }", "public Item pop() {\r\n if (isEmpty()) throw new RuntimeException(\"Stack underflow\");\r\n Item item = first.item; // save item to return\r\n first = first.next; // delete first node\r\n N--;\r\n return item; // return the saved item\r\n }", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n Item item = head.item;\n if (size == 1) {\n tail = null;\n head = null;\n } else {\n Node<Item> nextHead = head.next;\n nextHead.prev = null;\n head = nextHead;\n }\n\n size--;\n return item;\n }", "public Node removeFirst() {\r\n\t\treturn removeNode(0);\r\n\t}", "public Item removeFirst() {\n if (isEmpty()) throw new NoSuchElementException();\n\n // Set the item to be returned to the item field of the first node\n Item item = headOfDeque.item;\n\n // If this is the last node - reset deque.\n if (lastNode()) {\n resetDeque();\n }\n else { // reassign head\n headOfDeque = headOfDeque.next;\n headOfDeque.previous = null;\n }\n\n dequeSize--;\n\n return item;\n }", "@Override\n public T remove() {\n if(numItems == 0)\n return null;\n return this.arr[--numItems];\n }", "private E remove(){\n E tmp = array[0];\n swap(0,--lastPosition);\n array[lastPosition] = null;\n trickleDown(0);\n array = Arrays.copyOfRange(array,0,array.length);\n return tmp;\n }", "@Override\r\n\tpublic void DeletePackage(PackageJour pj) {\n\t\tem.remove(em.contains(pj) ? pj : em.merge(pj));\r\n\t}", "public Item removeLast() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n Item item = last.item;\n last = last.pre;\n if (last == null) {\n first = null;\n }\n else {\n last.next = null;\n }\n len--;\n return item;\n }", "@Override\n public PaintOrder remove() {\n if (!queue.isEmpty()) {\n var temp = queue.remove();\n processedOrders ++;\n currentOrders --;\n queuedOrders --;\n return temp; \n }\n return null;\n }", "@Override\r\n\tpublic E removeLast() {\n\t\treturn pollLast();\r\n\t}", "public T removeFirst() throws EmptyCollectionException;", "private void removeFromQueue (Parcel[] packagesAssigned){\n\n }", "public T removeLast() {\n if (size == 0) {\n return null;\n }\n if (size == 1) {\n size--;\n return array[rear];\n }\n this.checkReSizeDown();\n size--;\n rear--;\n this.updatePointer();\n return array[Math.floorMod(rear + 1, array.length)];\n }", "public Card removeTopCard(){\n\t\treturn this.pile.remove(0);\n\t}", "public Location remove() {\n\t\t//empty set\n\t\tif (head == null){\n\t\t\treturn null;\n\t\t}\n\n\t\t//removes and returns the SquarePosition object from the top of the set\n\t\tLocation removedLocation = head.getElement();\n\t\thead = head.next;\n\t\tsize --;\n\t\treturn removedLocation;\n\t}", "public DataItem removeItem()\n\t{\n\t\tDataItem temp = itemArray[numItems-1];\n\t\titemArray[numItems-1] = null;\n\t\tnumItems--;\n\t\treturn temp;\n\t}", "public Item removeLast(){\n\t\tif(isEmpty()){\n\t\t\tthrow new NoSuchElementException(\"Queue underflow\");\n\t\t}else{\n\t\t\t//save item to return\n\t\t\tItem returnItem = last.item;\n\t\t\t//delete last node\n\t\t\tlast = last.prev;\n\t\t\tn--;\n\t\t\tif(isEmpty()){\n\t\t\t\tfirst = null; // to avoid loitering\n\t\t\t}else{\n\t\t\t\tlast.next = null;\n\t\t\t}\n\t\t\treturn returnItem;\n\t\t}\n\t}" ]
[ "0.6781185", "0.67377275", "0.6489046", "0.63700837", "0.63606274", "0.6224886", "0.6218187", "0.61322325", "0.61274815", "0.59592676", "0.58955956", "0.58925825", "0.58653337", "0.58613807", "0.58233404", "0.5777961", "0.5767058", "0.57492095", "0.5735293", "0.5733629", "0.5731011", "0.56923294", "0.56920356", "0.56826514", "0.5665585", "0.5656303", "0.56316644", "0.56006473", "0.5589172", "0.5578311", "0.5575462", "0.55695397", "0.5551455", "0.55489516", "0.55422795", "0.5533726", "0.5519317", "0.55055684", "0.5503906", "0.5501008", "0.54952264", "0.5492671", "0.54799145", "0.5476849", "0.54741216", "0.5459419", "0.5447095", "0.54447097", "0.54386836", "0.54294664", "0.5425533", "0.54246324", "0.53961396", "0.5387527", "0.53762937", "0.5364554", "0.5363657", "0.5355473", "0.53543955", "0.53536433", "0.53519785", "0.53513724", "0.53447926", "0.53406626", "0.53241396", "0.53236455", "0.5319313", "0.53028065", "0.5299619", "0.5288836", "0.5288091", "0.5282484", "0.5282214", "0.5277102", "0.52765226", "0.52652377", "0.52316564", "0.52316374", "0.5223666", "0.52224123", "0.5205573", "0.52027065", "0.5192207", "0.517851", "0.51739806", "0.5166758", "0.5164755", "0.5158563", "0.5157373", "0.5156083", "0.515507", "0.5154438", "0.5149239", "0.5148885", "0.51474094", "0.5141716", "0.5140545", "0.5140332", "0.51367325", "0.5133635" ]
0.8010009
0
Is there a next package?
@Override public boolean hasNext() { if (first.next == null) { return false; } else return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean usesNext() {\n return next != null;\n }", "public boolean getNext();", "private boolean isNextReady()\n {\n return __m_NextReady;\n }", "boolean hasPackageName();", "@Override\n public boolean packageExists(String name) {\n return head.packageExists(name) || tail.packageExists(name);\n }", "protected abstract boolean computeHasNext();", "boolean isCalledNext();", "boolean isUseAllLatestPacks();", "public void Next();", "private boolean nextWorkorder() {\n\t\treturn Console.readString(\" Any other workorder? (y/n) \").equalsIgnoreCase(\"y\");\n\t}", "String pkg();", "public NearSyllFeature(boolean isNext) {\n this.isNext = isNext;\n }", "public int getNextVersion() {\n return emlVersion + 1;\n }", "public abstract boolean isNextVisited();", "boolean hasCurrentVersion();", "public HIR\n getNextExecutableNode();", "private static boolean isAllowedNext(final ITranslator<?, ?, ?, ?, ?, ?> current,\r\n\t\t\tfinal ITranslator<?, ?, ?, ?, ?, ?> next) {\n\t\treturn current.getSourceExpressionClass() == next.getTargetExpressionClass()\r\n\t\t\t\t&& current.getSourceTraceElementClass() == next.getTargetTraceElementClass();\r\n\t}", "String nextLink();", "public void testHasNext() {\r\n System.out.println(\"hasNext\");\r\n // tested in testNext()\r\n }", "public boolean isMixPackagesPresent()\n\t{\n\t\ttry\n\t\t{\n\t\t\tArrayList<Integer> versions = new ArrayList<Integer>();\n\t\t\t\n\t\t\tif(PackageInformation.getInstance().collectPkgInfoFromUPM())\n\t\t\t{\n\t\t\t\tVector<ApplicationVersion> firmwareInfo = PackageInformation.getInstance().getAppVersionsFromSpot();\n\t\t\t\tif(firmwareInfo != null && !firmwareInfo.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tversions.clear();\n\t\t\t\t\tint buildVersion = getBuildVersion(firmwareInfo);\n\t\t\t\t\t\n\t\t\t\t\tif(buildVersion != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(buildVersion == Version.DELTA_F.getVersion())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tversions.add(Version.DELTA_C.getVersion());\n\t\t\t\t\t\t\treturn isOtherPackages(versions, firmwareInfo);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(buildVersion == Version.DELTA_E.getVersion())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tversions.add(Version.DELTA_C.getVersion());\n\t\t\t\t\t\t\treturn isOtherPackages(versions, firmwareInfo);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(buildVersion == Version.DELTA_C.getVersion())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tversions.add(Version.DELTA_F.getVersion());\n\t\t\t\t\t\t\tversions.add(Version.DELTA_E.getVersion());\n\t\t\t\t\t\t\treturn isOtherPackages(versions, firmwareInfo);\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\telse\n\t\t\t{\n\t\t\t\tlogger.error(\"Failed to collect package information\");\n\t\t\t}\n\t\t}\n\t\tcatch(InterruptedException e)\n\t\t{\n\t\t\tlogger.error(e.getMessage());\n\t\t}\n\t\treturn false;\n\t}", "public boolean isFirstVersion();", "public int nextVersion() {\n int version = 1;\n File symLink = new File(parent + \"/\" + symbolic);\n if (!symLink.exists()) {\n String absPath = null;\n try {\n absPath = symLink.getCanonicalPath();\n } catch (IOException e) {\n LOG.error(\"Can't get canonical path of \" + parent + \"/\" + symbolic, e);\n absPath = symLink.getAbsolutePath();\n }\n String vStr = CacheDirectory.getCacheVersion(absPath);\n try {\n version = Integer.parseInt(vStr) + 1;\n } catch(NumberFormatException e) {\n LOG.error(\"Can't get version number of \" + absPath);\n } \n }\n return version;\n }", "public Version getNext(){\n\t\treturn next;\n\t}", "@Override\r\n\t\tpublic Package next() {\r\n\t\t\tif (first.next == null)\r\n\t\t\t\treturn null;\r\n\t\t\telse\r\n\t\t\t\treturn first.next;\r\n\r\n\t\t}", "public abstract boolean next();", "public abstract boolean next();", "void next();", "boolean isNextButtonDisabled() {\r\n\t\treturn nextPage.isDisabled();\r\n\t}", "String getNext();", "String getNext();", "public boolean hasNext() {\n\n if(readLatest) {\n return true;\n }\n\n /*\n If readLatest is false versions are moving backwards.\n The smallest version to read is 0.\n */\n if(version >= 0) {\n return true;\n }\n\n return false;\n }", "ListNode getNext() { /* package access */ \n\t\treturn next;\n\t}", "default boolean isNext(int vidxa, int vidxb) {\n return findIndexOfNext(vidxa, vidxb) != -1;\n }", "public boolean isPackage()\n {\n ensureLoaded();\n return m_flags.isPackage();\n }", "public abstract void goNext();", "protected final boolean computeHasNext() {\n return this.getEnds().getGraph().getSuccessorEdges(this.getNext()).isEmpty();\n }", "public int getNextModuleGeneration() {\n return moduleGeneration.incrementAndGet();\n }", "public static void checkAndClickNextButton() {\r\n\t\tcheckNoSuchElementExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t}", "private boolean _seqHasNext() {\n // If the ISPSeqComponent's builder has a next configuration, then the\n // observation has a next sequence too.\n if (_seqBuilder == null)\n return false;\n\n // Does the current seq builder have next\n if (_seqBuilder.hasNext())\n return true;\n\n // The current seq builder has no more are there more seqbuilders?\n _seqBuilder = _getTopLevelBuilder(_seqBuilderIndex + 1);\n if (_seqBuilder == null)\n return false;\n _seqBuilderIndex++;\n\n // Now reset the new seq builder run\n _doReset(_options);\n\n // Now that it has been moved, try again\n return _seqHasNext();\n }", "boolean hasVersion();", "boolean hasVersion();", "boolean nextItem();", "boolean hasPackageid();", "boolean hasPackageid();", "boolean isPackageInstaller(String packageName);", "public void next();", "public void next();", "int next();", "boolean nextStep();", "public boolean isSetNextPage() {\n return EncodingUtils.testBit(__isset_bitfield, __NEXTPAGE_ISSET_ID);\n }", "Group getNextExecutableGroup();", "public boolean next () throws Exception;", "public static void checkAndClickNextButtonTriviaMode() {\r\n\t\tcheckNoSuchElementExceptionByID(\"btnnext\", \"\\\"Next\\\" button in trivia mode\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"btnnext\", \"\\\"Next\\\" button in trivia mode\");\r\n\t}", "protected final boolean computeHasNext() {\n return this.getEnds().getGraph().getPredecessorEdges(this.getNext()).isEmpty();\n }", "private @Nullable\n Future<FeedType> loadNext(final AtomicReference<OptionType<URI>> next_ref) {\n final OptionType<URI> next_opt = next_ref.get();\n if (next_opt.isSome()) {\n final Some<URI> next_some = (Some<URI>) next_opt;\n final URI next = next_some.get();\n\n final Pair<ListenableFuture<FeedType>, URI> in_loading = this.loading.get();\n if (in_loading == null) {\n LOG.debug(\"no feed currently loading; loading next feed: {}\", next);\n return this.loadNextActual(next);\n }\n\n final URI loading_uri = in_loading.getRight();\n if (!loading_uri.equals(next)) {\n LOG.debug(\"different feed currently loading; loading next feed: {}\", next);\n return this.loadNextActual(next);\n }\n\n LOG.debug(\"already loading next feed, not loading again: {}\", next);\n }\n\n return null;\n }", "String getPackager();", "public static boolean isInstalled()\n\t{\n\t\treturn PackageUtils.exists(General.PKG_MESSENGERAPI);\n\t}", "public boolean setNext (\n\t\t\tfinal ListNode<V> next)\n\t\t{\n\t\t\t_next = next;\n\t\t\treturn true;\n\t\t}", "public void setNext(Version next){\n\t\tif (next == null){\n\t\t\tLog.e(NAME, \"Invalid parameters for 'setNext' method!\");\n\t\t\treturn;\n\t\t}\n\t\tthis.next = next;\n\t}", "public abstract void next ();", "boolean isInstalled();", "private void showNextButton(){\n\t\tif(nextButton != null){\n\t\t\thideSubmitBtn();\n\t\t\tmainWindow.addLayer(nextButton, BUTTON_LAYER, submitBtnX, submitBtnY);\n\t\t}\n\t}", "public boolean isNextPage() {\n return nextPage;\n }", "public static int nextSwitch(int next) {\n\t\t// Make an if statement that runs if the next variable is equal to 0.\n\t\tif(next == 0) {\n\t\t\treturn 1;\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}", "boolean hasGenesis();", "io.deniffel.dsl.useCase.useCase.Package getPackage();", "public PackageNode getPackage();", "public void ClickNext() {\r\n\t\tnext.click();\r\n\t\t\tLog(\"Clicked the \\\"Next\\\" button on the Birthdays page\");\r\n\t}", "public abstract void next();", "public static void clickNextBtnGame() {\t\n\t\tdriver.findElement(By.id(\"btnnext\")).click();\n\t}", "boolean hasPlayready();", "protected void loadNextActivity() {\n\t\tIntent intent = new Intent(this, nextActivityClass);\n\t\tstartActivity(intent);\n\t}", "public boolean mo37b(Context context) {\n try {\n PackageInfo packageInfo = context.getPackageManager().getPackageInfo(\"com.heytap.openid\", 0);\n if (Build.VERSION.SDK_INT >= 28) {\n if (packageInfo == null || packageInfo.getLongVersionCode() < 1) {\n return false;\n }\n return true;\n } else if (packageInfo == null || packageInfo.versionCode < 1) {\n return false;\n } else {\n return true;\n }\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n return false;\n }\n }", "boolean next() throws IOException;", "@Override\r\n\tpublic int isMoveNextTo18Plus()\r\n\t{\r\n\t\treturn 1;\r\n\t}", "ReactNativePackage getReactNativePackage();", "public boolean hasNextLink() {\n return hasNextLink;\n }", "public SubscriptionYear getNext() {\n\t\treturn this.next;\n\t\t\n\t}", "public String nextLink() {\n return this.nextLink;\n }", "public String nextLink() {\n return this.nextLink;\n }", "public String nextLink() {\n return this.nextLink;\n }", "public String nextLink() {\n return this.nextLink;\n }", "int getNextHopPort(Message next) {\n\t\tif (next instanceof ExchangeMessage) {\n\t\t\tExchange destinationExchange = ((ExchangeMessage)next).getDestination();\n\t\t\treturn getExchangeNextPort(destinationExchange);\n\t\t}\n\t\telse {\n\t\t\tContinent destinationContinent = ((SuperPeerMessage) next).getDestination();\n\t\t\tif (destinationContinent == null) {\n\t\t\t\tSystem.out.println(\"no destination?\");\n\t\t\t\tnext.print();\n\t\t\t}\n\n\t\t\treturn getContinentNextPort(destinationContinent);\n\t\t}\n\t}", "public boolean hasNext()\r\n/* */ {\r\n/* 111 */ return this.permOrder.hasNextPermutaions();\r\n/* */ }", "public void setNext(DependencyElement next) {\n\t\tthis.next = next;\n\t}", "boolean hasResolve();", "private ReportProcessor getNext() {\n return next;\n }", "public synchronized boolean next() throws IOException {\n\t\treturn next(true);\n\t}", "private void playNext(){\n musicSrv.playNext();\n updateTrackInfo();\n if(playbackPaused){ //if music is paused and user hits next button, next song is played\n playbackPaused = false;\n }\n }", "public boolean isLastVersion();", "public static boolean isForcePackagePrefixGeneration()\n {\n read_if_needed_();\n \n return _is_force_package_gen;\n }", "public static void next() {\n\t\tsendMessage(NEXT_COMMAND);\n\t}", "boolean isPresent(ExamPackage examPackage);", "int getPackageVersion(String packageName);", "RapidmlPackage getRapidmlPackage();", "public SMTraffic goNext(String nextstate){\n \n \n String nstate = currentrealm + \"_\" + nextstate;\n setCurrent_taskstate(getTaskstates().get(nstate));\n \n if (getCurrent_taskstate() != null){\n return new SMTraffic(0l, 0l, 0, getCurrent_taskstate().getCallstate(), this.getClass(),\n new VirnaPayload()\n .setObject(this)\n .setString(getCurrent_taskstate().getStatecmd())\n );\n }\n return null;\n }", "public boolean nextYN() {\n this.inputStr = this.s.nextLine();\n\n if (inputStr.toLowerCase().contains(\"yes\")) {\n return true;\n } else if (inputStr.toLowerCase().contains(\"y\")) {\n return true;\n }\n return false;\n }", "public Prism getNext() {\r\n\t\treturn next;\r\n\t}", "public String getNextLink() {\n return this.nextLink;\n }", "boolean hasVersionNumber();", "boolean hasSoftware();" ]
[ "0.6050386", "0.5766345", "0.5638419", "0.56309056", "0.56294876", "0.55595654", "0.5420935", "0.53341424", "0.52937204", "0.527817", "0.5273309", "0.5269548", "0.5265253", "0.5261617", "0.5233677", "0.52185696", "0.5206354", "0.51807", "0.5180352", "0.51784736", "0.5159185", "0.51523715", "0.51458156", "0.5123517", "0.5110585", "0.5110585", "0.5072052", "0.5061668", "0.50378335", "0.50378335", "0.5034633", "0.50194806", "0.49757865", "0.49593112", "0.49473292", "0.49415162", "0.49379233", "0.49358422", "0.49352223", "0.49239185", "0.49239185", "0.4921026", "0.4914851", "0.4914851", "0.49091092", "0.490488", "0.490488", "0.48825106", "0.48709685", "0.48647234", "0.48294082", "0.48291132", "0.48237264", "0.47986752", "0.4796327", "0.47956535", "0.4786097", "0.4783182", "0.4777333", "0.47743556", "0.4772299", "0.4765971", "0.47608927", "0.47576794", "0.47542468", "0.47484338", "0.47457826", "0.4722728", "0.4721355", "0.47062004", "0.47061196", "0.46980798", "0.46926627", "0.46882656", "0.468087", "0.46743497", "0.46619502", "0.4653942", "0.46450683", "0.46450683", "0.46450683", "0.46450683", "0.46361452", "0.46230742", "0.4616833", "0.46161062", "0.46029752", "0.46027705", "0.46016374", "0.46010435", "0.4599988", "0.45895046", "0.45829833", "0.45775715", "0.4576633", "0.45751452", "0.45703676", "0.45628065", "0.45605764", "0.45577788", "0.45461503" ]
0.0
-1
Move to the next Package and return it
@Override public Package next() { if (first.next == null) return null; else return first.next; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Package getPackage(int i) {\r\n if (i >= myPackages.size())\r\n return null;\r\n return (Package) myPackages.get(i);\r\n }", "public T getNextItem();", "public Prism getNext() {\r\n\t\treturn next;\r\n\t}", "boolean nextItem();", "io.deniffel.dsl.useCase.useCase.Package getPackage();", "public Version getNext(){\n\t\treturn next;\n\t}", "public abstract void goNext();", "@Override\n\tpublic Item next() {\n\t\tindex = findNextElement();\n\n\t\tif (index == -1)\n\t\t\treturn null;\n\t\treturn items.get(index);\n\t}", "public PackageNode getPackage();", "public emxPDFDocument_mxJPO getNext()\r\n {\r\n /*\r\n * Author : DJ\r\n * Date : 02/04/2003\r\n * Notes :\r\n * History :\r\n */\r\n return (emxPDFDocument_mxJPO)super.removeFirst();\r\n }", "Group getNextExecutableGroup();", "@Nonnull\n public Optional<ENTITY> next()\n {\n currentItem = Optional.of(items.get(++index));\n update();\n return currentItem;\n }", "@Override\n\t\tpublic Item next() {\n\t\t\tItem item=current.item;\n\t\t\tcurrent=current.next;\n\t\t\treturn item;\n\t\t}", "String getNext();", "String getNext();", "public C getNext();", "public Product getNextProduct() {\n\t\tif (!getProducts().isEmpty()) {\n\t\t\tProduct retProduct = getProducts().get(0);\n\t\t\tgetProducts().remove(0);\n\t\t\treturn retProduct;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public void skipToNext() {\n try {\n mSessionBinder.next(mContext.getPackageName(), mCbStub);\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Error calling next.\", e);\n }\n }", "private void findNext() {\n \tthis.find(true);\n }", "public BSCObject next()\n {\n if (ready_for_fetch)\n {\n // the next sibling is waiting to be returned, so just return it\n ready_for_fetch = false;\n return sibling;\n }\n else if (hasNext())\n {\n // make sure there is a next sibling; if so, return it\n ready_for_fetch = false;\n return sibling;\n }\n else\n throw new NoSuchElementException();\n }", "private ReportProcessor getNext() {\n return next;\n }", "public DependencyElement next() {\n\t\treturn next;\n\t}", "public Package remove() {\r\n\t\tif (first == null)\r\n\t\t\treturn null;\r\n\t\tcount--;\r\n\t\treturn first.next;\r\n\t}", "public boolean getNext();", "public void Next();", "@Override\r\n public Object next() {\r\n if (this.hasNext()) {\r\n Object temp = this.nextMatchingFile;\r\n this.nextMatchingFile = this.callNext();\r\n return temp;\r\n } else {\r\n throw new NoSuchElementException(\"There is no other file object in the directory.\");\r\n }\r\n}", "public Wagon<T> getNext() {\n\t\treturn next;\n\t}", "Object getNextElement() throws NoSuchElementException;", "public void next() {\n\t\t}", "public abstract Tuple getNext();", "public T getNextElement();", "public Object getNext() { \t\n\t\t\tcurrIndex++;\t \n\t\t\treturn collection.elementAt(currIndex);\n\t\t}", "public Object next()\n {\n if(!hasNext())\n {\n throw new NoSuchElementException();\n //return null;\n }\n previous= position; //Remember for remove;\n isAfterNext = true; \n if(position == null) \n {\n position = first;// true == I have not called next \n }\n else\n {\n position = position.next;\n }\n return position.data;\n }", "public Variable getNext(){\n\t\treturn this.next;\n\t}", "@Override\n public NodoL next() {\n posicionActual = posicionActual.getSiguiente();\n return posicionActual;\n }", "public DVDPackage front() {\n\t\treturn queue.peek();\n\t}", "@Override\n\t\tpublic T1 next() {\n\t\t\treturn (T1)_items[getindex(++_current)];\n\t\t}", "protected abstract D getNext(D d);", "@Override\n public Item next() {\n if(!hasNext()) throw new NoSuchElementException(\"Failed to perform next because hasNext returned false!\");\n Item item = current.data;\n current = current.next;\n return item;\n }", "@Override\n public PaintOrder next() {\n if (!queue.isEmpty()) {\n currentOrders ++;\n var temp = queue.peek();\n return temp;\n }\n return null;\n }", "public DasFeature getNextFeature() {\n String feature = iXml.substring(iXml.indexOf(\"<FEATURE\", lastFeatureEndPosition + 9), iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9) + 10);\n lastFeatureEndPosition = iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9);\n DasFeature f = new DasFeature(feature);\n return f;\n }", "public void next();", "public void next();", "public SlideNode getNext() {\n\t\treturn next;\n\t}", "public com.avaya.sce.runtime.Next getNext(com.avaya.sce.runtimecommon.SCESession mySession) {\n\t\tcom.avaya.sce.runtime.Next next = null;\n\t\treturn next;\n\t}", "private void getNext() {\n Node currNode = getScreenplayElem().getChildNodes().item(currPos++);\n while (currNode.getNodeType() != Node.ELEMENT_NODE) {\n currNode = getScreenplayElem().getChildNodes().item(currPos++);\n }\n currElem = (Element) currNode;\n }", "public void moveNext() {\n\t\tcurrentElement++;\n\t}", "private Object getNextElement()\n {\n return __m_NextElement;\n }", "public abstract void next();", "public ListNode<Item> getNext() {\n return this.next;\n }", "protected Tuple fetchNext() throws NoSuchElementException, TransactionAbortedException, DbException {\n\t\t// some code goes here\n\t\tTuple ret;\n\t\twhile (childOperator.hasNext()) {\n\t\t\tret = childOperator.next();\n\t\t\tif (pred.filter(ret))\n\t\t\t\treturn ret;\n\t\t}\n\t\treturn null;\n\t}", "protected Content getNavLinkPackage() {\n Content linkContent = getHyperLink(DocPaths.PACKAGE_SUMMARY,\n packageLabel);\n Content li = HtmlTree.LI(linkContent);\n return li;\n }", "public PersistedBmmPackage getPackage(String packageName) {\n return packages.get(packageName.toUpperCase());\n }", "@Override\n public NestedData next() {\n NestedQuest node = queue.remove();\n queue.addAll(node.children);\n\n return\n node.data;\n }", "ListNode getNext() { /* package access */ \n\t\treturn next;\n\t}", "void next();", "public void nextItem() {\n\t\tif(currentPlayingItem==null) {\n\t\t\treturn;\n\t\t}\n\n\t\tswitch (playMode) {\n\t\t\tcase PLAY_MODE_REPEAT_ONE:\n\t\t\t\tplayItem(currentPlayingItem);\n\t\t\t\treturn;\n\t\t\tcase PLAY_MODE_SHUFFLE:\n\t\t\t\trandomItem();\n\t\t\t\treturn;\n\t\t}\n\t\t\n\t\tPlayableItem nextItem = currentPlayingItem.getNext(playMode==PLAY_MODE_REPEAT_ALL);\n\t\tif(nextItem==null) {\n\t\t\tif(!isPlaying()) wakeLockRelease();\n sendBroadcast(new Intent(\"com.andreadec.musicplayer.newsong\")); // Notify the activity that there are no more songs to be played\n updateNotification();\n\t\t} else {\n\t\t\tplayItem(nextItem);\n\t\t}\n\t}", "public Item next(){\n if(current==null) {\n throw new NoSuchElementException();\n }\n\n Item item = (Item) current.item;\n current=current.next;\n return item;\n }", "private Package_c getPackage(final String name) {\n\t\tPackage_c communication = Package_c.PackageInstance(modelRoot,\n\t\t\t\tnew ClassQueryInterface_c() {\n\n\t\t\t\t\tpublic boolean evaluate(Object candidate) {\n\t\t\t\t\t\tPackage_c selected = (Package_c) candidate;\n\t\t\t\t\t\treturn selected.getName().equals(name);\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\treturn communication;\n\t}", "private Object getNext(String txt, String originalText) {\n return getNext(txt, originalText, null);\n }", "public abstract void next ();", "@Override\n public T next() {\n if (nextItem == null)\n throw new NoSuchElementException();\n T item = nextItem;\n lastItem = nextItem;\n remainingItemCount.decrement();\n if (remainingItemCount.isZero())\n getNextReady();\n return item;\n }", "public ClassFile getNextClassFile() {\n ClassFile nextElement = null;\n\n try {\n while (nextElement == null) {\n if (currentEnum.hasMoreElements()) {\n File element = (File) currentEnum.nextElement();\n\n if (element.isDirectory()) {\n\n // push the current iterator onto the stack and then\n // iterate through this directory.\n enumStack.push(currentEnum);\n\n Vector files = getDirectoryEntries(element);\n\n currentEnum = files.elements();\n } else {\n\n // we have a file. create a stream for it\n FileInputStream inFileStream \n = new FileInputStream(element);\n\n if (element.getName().endsWith(\".class\")) {\n\n // create a data input stream from the jar \n // input stream\n ClassFile javaClass = new ClassFile();\n\n javaClass.read(inFileStream);\n\n nextElement = javaClass;\n }\n }\n } else {\n // this iterator is exhausted. Can we pop one off the stack\n if (enumStack.empty()) {\n break;\n } else {\n currentEnum = (Enumeration) enumStack.pop();\n }\n }\n }\n } catch (IOException e) {\n nextElement = null;\n }\n\n return nextElement;\n }", "private void navigatePackages() {\n if (getType() != Constant.ActivityType.PACKAGES) {\n Intent intent = new Intent(getApplicationContext(), MenuActivity.class);\n startActivity(intent);\n finish();\n }\n }", "IList<T> getNext();", "public Item next() throws XPathException {\n while (true) {\n NodeInfo next = (NodeInfo)iterator.next();\n if (next == null) {\n current = null;\n position = -1;\n return null;\n }\n if (current != null && next.isSameNodeInfo(current)) {\n continue;\n } else {\n position++;\n current = next;\n return current;\n }\n }\n }", "public Object getNext() {\n\t\tif (current != null) {\n\t\t\tcurrent = current.next; // Get the reference to the next item\n\t\t}\n\t\treturn current == null ? null : current.item;\n\t}", "@Override\n\tpublic Tuple getNextTuple() {\n\t\tif(!isSorted) {\n\t\t\ttry{\n\t\t\t\texternalSort();\n\t\t\t} catch(Exception e) {\n\t\t\t\tSystem.err.println(\"Exception occurred for sorting: \" + tempsubdir);\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tisSorted = true;\n\t\t}\n\t\t\n\t\t// open a TupleReader on the temporary file, i.e. the Full Sorted File\n\t\ttry{\n\t\t\tif(TR == null) {\n\t\t\t\tTR = new TupleReader(tempsubdir + \"/sortResult\");\n\t\t\t}\n\t\t\tTuple next = TR.getNextTuple();\n\t\t\tif(next == null) {\n\t\t\t\treturn null;\n\t\t\t}\n//\t\t\tSystem.out.println(next.data);\n\t\t\treturn next;\n\t\t} catch(Exception e) {\n\t\t\tSystem.err.println(\"Exception occurred for reading in external sort result for: \" + tempsubdir);\n\t\t\tSystem.err.println(e.toString());\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "private int findNextElement() {\n\t\tif (hasNext()) {\n\t\t\tint value = this.index + 1;\n\t\t\treturn value;\n\n\t\t}\n\t\treturn -1;\n\t}", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "private TestPackage searchTestPackage(String javaPkgName) {\n for (TestPackage pkg : mSessionLog.getTestPackages()) {\n Collection<Test> tests = pkg.getTests();\n for (Test test : tests) {\n String testFullName = test.getFullName();\n if (testFullName.startsWith(javaPkgName)) {\n //adjust the java package name to make it equal to some java package name\n if (testFullName.charAt(javaPkgName.length()) != '.') {\n javaPkgName = javaPkgName.substring(0, javaPkgName.lastIndexOf(\".\"));\n }\n return pkg;\n }\n }\n }\n \n return null;\n }", "public IWizardPage getNextPage();", "public Nodo getnext ()\n\t\t{\n\t\t\treturn next;\n\t\t\t\n\t\t}", "public boolean moveNext(\n )\n {\n // Scanning the current graphics object...\n ContentObject currentObject = getCurrent();\n if(currentObject != null)\n {\n \t\n \tString cmdStr = currentObject.toString();\n \t/*\n \tif(cmdStr.contains(\"f*\") || cmdStr.contains(\"{f }\")) {\n \t\tSystem.out.println(cmdStr);\n \t}\n \t*/\n \tif(!cmdStr.contains(\"{re [36, 270, 540, 720]}, {f }\")) {\n \t\tcurrentObject.scan(state);\n \t}\n }\n\n // Moving to the next object...\n if(index < objects.size())\n {index++; refresh();}\n\n return getCurrent() != null;\n }", "public GameObject getNext() {\n\t\t\tpointerIndex++;\n\t\t\treturn(gameObjects.elementAt(pointerIndex));\n\t\t}", "public T next()\n {\n T data = current.item;\n current = current.next;\n return data;\n }", "@Override\n public Object next() {\n Object retval = this.nextObject;\n advance();\n return retval;\n }", "public void goToNext() {\r\n\t\tif (curr == null)\r\n\t\t\treturn;\r\n\t\tprev = curr;\r\n\t\tcurr = curr.link;\r\n\t}", "@Override\n public T next() {\n T n = null;\n if (hasNext()) {\n // Give it to them.\n n = next;\n next = null;\n // Step forward.\n it = it.next;\n stop -= 1;\n } else {\n // Not there!!\n throw new NoSuchElementException();\n }\n return n;\n }", "MRentalPackage getRentalPackage();", "public Order generateNext();", "@Override\n\t\tpublic int next() {\n\t\t\treturn current++;\n\t\t}", "java.lang.String getNextStep();", "@Override\n\t\tpublic Tuple next() throws DbException, TransactionAbortedException,\n\t\t\t\tNoSuchElementException {\n\t\t\tif(tplItr.hasNext())\n\t\t\t\treturn tplItr.next();\n\t\t\tthrow new NoSuchElementException();\n\t\t}", "public T getNext() {\n\n // Create a new item to return\n T nextElement = getInstance();\n\n // Check if there are any more items from the list\n if (cursor <= arrayLimit) {\n nextElement = collection.get(cursor);\n cursor++;\n } else {\n // There are no more items - set to null\n nextElement = null;\n }\n\n // Return the derived item (will be null if not found)\n return nextElement;\n }", "public QuestionModel getNextQuestion() {\n\t\tindex++;\n\t\treturn questionList.get(index % questionList.size());\n\t}", "@Override\r\n\tpublic String next() {\n\t\tString nx;\r\n\r\n\t\tnx = p.getNext();\r\n\r\n\t\tif (nx != null) {\r\n\t\t\tthisNext = true;\r\n\t\t\tinput(nx);\r\n\t\t}\r\n\t\treturn nx;\r\n\t}", "public Solution next() {\n\t\tif (!checked)\n\t\t\tthrow new RuntimeException(\"Cannot use SolutionIterator.next() \" +\n\t\t\t\t\t\"before checking the hasNext() returned true\");\n\t\ttry {\n\t\t\tsolution = new Solution(solver, solutionNumber);\n\t\t\tsolution.setSolutionNumber(solutionNumber);\n\t\t\tsolutionNumber++;\n\t\t} catch (Failure e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tchecked = false;\n\t\treturn solution;\n\t}", "public ElementHeader getNextStep()\n {\n return nextStep;\n }", "protected UMLPackage getUMLPackage() {\r\n return currentPackage;\r\n }", "public void next()\n\t{\n\t\tif(this.curseur < this.listeTapis.size() - 1)\n\t\t{\n\t\t\tthis.curseur++;\n\t\t}\n\t}", "@Override\n public Integer next() {\n if (hasTop) {\n hasTop = false;\n return top;\n }\n return it.next();\n }", "public T nextElement() {\r\n\t\treturn items[currentObject++];\r\n \t}", "public GameObject getNext();", "public Task getNext()\n {\n\treturn new Task(toDo.get(0));\n }", "private PlayState getNext(){\n return values()[(this.ordinal() + 1) % PlayState.values().length];\n }", "public ListElement<T> getNext()\n\t{\n\t\treturn next;\n\t}", "private ApnSetting getNextApn() {\n ArrayList<ApnSetting> list = waitingApns;\n ApnSetting apn = null;\n\n if (list != null) {\n if (!list.isEmpty()) {\n apn = list.get(0);\n }\n }\n return apn;\n }", "public void nextTurn(){\n\t\tthis.setCurrentElement(this.getCurrentElement().getNext());\n\t}", "public E next() \n {\n \tfor(int i = 0; i < size; i++)\n \t\tif(tree[i].order == next) {\n \t\t\tnext++;\n \t\t\ttree[i].position = i;\n \t\t\treturn tree[i].element;\n \t\t}\n \treturn null;\n }" ]
[ "0.60399187", "0.59794873", "0.58249086", "0.5792948", "0.5780671", "0.5778686", "0.57423866", "0.57393914", "0.5737101", "0.56965", "0.56952906", "0.56440705", "0.56306684", "0.55894345", "0.55894345", "0.5587637", "0.55812633", "0.55461097", "0.5538925", "0.553326", "0.5521702", "0.5515842", "0.551159", "0.5506162", "0.55025315", "0.5498727", "0.5472801", "0.5470029", "0.546323", "0.54549235", "0.5443993", "0.54391104", "0.54293907", "0.542316", "0.5420514", "0.5413254", "0.5409175", "0.5405504", "0.54005367", "0.53734773", "0.53523463", "0.53502744", "0.53502744", "0.5339418", "0.53217345", "0.53174794", "0.5317216", "0.53106034", "0.5305935", "0.5294604", "0.5277045", "0.5276307", "0.5275497", "0.5274777", "0.5263991", "0.5255359", "0.5233018", "0.52324146", "0.5231907", "0.5227661", "0.5226106", "0.521981", "0.52192557", "0.5215056", "0.52126485", "0.5206271", "0.5203978", "0.5201642", "0.5198085", "0.5196151", "0.51866704", "0.5182941", "0.5176599", "0.51722854", "0.5166825", "0.5166188", "0.5164884", "0.51646864", "0.51614183", "0.51557624", "0.5149627", "0.514359", "0.51385343", "0.51378626", "0.51358044", "0.51356065", "0.5131077", "0.51275045", "0.5122857", "0.5120759", "0.511875", "0.51151264", "0.51123756", "0.51083696", "0.5103785", "0.51029575", "0.5100039", "0.5099201", "0.5094998", "0.50947964" ]
0.75175315
0
You do NOT need to implement the remove method
@Override public void remove() { // YOU DO NOT NEED TO WRITE THIS }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() { }", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\n public void remove() {\n }", "@Override\n public void remove() {\n }", "@Override\r\n\t\tpublic void remove() {\n\r\n\t\t}", "public void remove () {}", "public void remove() {\r\n //\r\n }", "public void remove(){\n }", "public void remove(){throw new RuntimeException(\"Removing() is not implemented\");\r\n\t\t}", "public void remove() {\n\t}", "public void remove() {\n\t}", "public void remove() {\n\n }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "void remove();", "void remove();", "void remove();", "void remove();", "void remove();", "public final void remove () {\r\n }", "public void remove() {\r\n super.remove();\r\n }", "public void remove() {\r\n return;\r\n }", "Object remove();", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove(){\r\n // Does Nothing\r\n }", "@Override\n\tpublic void onRemove() {\n\n\t}", "public abstract void onRemove();", "@Override\n public void remove(int no) throws Exception {\n \n }", "public Object remove();", "@Override\r\n\tpublic void onRemove() {\n\r\n\t}", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "@Override\n\tpublic void remove(Object o) {\n\t\t\n\t}", "public void removed() {\n }", "public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }", "public E remove();", "public E remove();", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}", "@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }", "private boolean remove() {\r\n\t\t\treturn removed = true;\r\n\t\t}", "@Override\n\tpublic void remove(Element e) {\n\t\t\n\t}", "public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }", "@Override\n\tpublic void remove(E x) {\n\t\t\n\t}", "@Override\n protected void removeMember() {\n }", "public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "public void remove() {\n btRemove().push();\n }", "public void remove() {\n btRemove().push();\n }", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\r\n\tpublic E remove() {\n\t\treturn null;\r\n\t}", "protected abstract void removeItem();", "@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void remove(int id) {\n\t}", "@Override\n\tpublic E remove() {\n\t\treturn null;\n\t}", "@Override\n\tpublic void remove(int id) {\n\n\t}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n public void removeFromDb() {\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public E remove() {\n\t\t// your code here\n\t\treturn null;\n\t}", "public void remove()\n {\n throw new UnsupportedOperationException(\n \"remove() is not supported.\");\n }", "public void remove() {\n throw new UnsupportedOperationException(\"not supported optional operation.\");\n }", "public void remove()\r\n { Exceptions.unmodifiable(\"list\"); }", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n//\t\t\t\tif (i == begin || removed)\n//\t\t\t\t\tthrow new IllegalStateException();\n//\t\t\t\telements.set(i-1, null);\n//\t\t\t\tremoved = true;\n\t\t\t}", "@PreRemove\r\n public void preRemove() {\r\n\r\n }", "public abstract void onRemoveAction();", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "protected abstract void remove(E entry);", "public void remove() {\r\n throw new UnsupportedOperationException();\r\n }", "@Override\n\tpublic void excluir() {\n\t\t\n\t}", "public abstract boolean remove(E e);" ]
[ "0.89283675", "0.89283675", "0.89268494", "0.885117", "0.885117", "0.885117", "0.885117", "0.885117", "0.885117", "0.885117", "0.885117", "0.8846534", "0.88314474", "0.88314474", "0.8825139", "0.87793833", "0.86912537", "0.8675569", "0.8666081", "0.84955335", "0.84729934", "0.843637", "0.843637", "0.8432075", "0.84226483", "0.84226483", "0.84226483", "0.83200717", "0.83200717", "0.83200717", "0.83200717", "0.83200717", "0.82805616", "0.82805616", "0.82805616", "0.82805616", "0.82805616", "0.8172365", "0.81381005", "0.80815506", "0.8081127", "0.8076004", "0.8076004", "0.8076004", "0.8076004", "0.8076004", "0.8076004", "0.8076004", "0.80718875", "0.8048797", "0.80228287", "0.78597236", "0.7858809", "0.7850671", "0.76620466", "0.7648779", "0.76465875", "0.75982165", "0.75689554", "0.75689554", "0.7524778", "0.7503749", "0.7495792", "0.7486648", "0.74779236", "0.74507785", "0.74379545", "0.74351525", "0.74157256", "0.74139", "0.74101627", "0.74101627", "0.7373755", "0.7373755", "0.73482436", "0.73479074", "0.73479074", "0.73479074", "0.73321253", "0.73155606", "0.73146653", "0.7290344", "0.7274006", "0.72246575", "0.7224588", "0.7220829", "0.72043097", "0.7197666", "0.71976125", "0.7193965", "0.71837515", "0.71694636", "0.716138", "0.71581084", "0.7148779", "0.7148779", "0.714698", "0.7133718", "0.7116381", "0.7114273" ]
0.88975024
3
This method was generated by MyBatis Generator. This method returns the value of the database column service.ID
public Integer getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getServiceid() {\r\n return serviceid;\r\n }", "public ID getServiceID() {\n\treturn serviceID;\n }", "public int getServiceID() {\n return serviceID;\n }", "public long getId() {\n return mServiceId;\n }", "public java.lang.Long getServiceId() {\n return serviceId;\n }", "@Transient\n\tpublic String getServiceId()\t{\n\t\treturn mServiceId;\n\t\t//else return \"N/A\";\n\t}", "public java.lang.Long getServiceId() {\n return serviceId;\n }", "public String getServiceID();", "public ServiceID getServiceID() {\n\t\treturn null;\n\t}", "java.lang.String getServiceId();", "public ServiceID getServiceID() {\n return null;\n }", "String getServiceId();", "@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service findServiceById(int Idservice) {\n\t\treturn serviceRepository.findOne(Idservice);\r\n\t}", "String getService_id();", "public java.lang.String getServiceID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SERVICEID$6, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "@Override\n public ServiceID getServiceID() {\n\treturn servID;\n }", "public long getServiceTypeId() {\r\n\t\treturn serviceTypeId;\r\n\t}", "public Integer getId()\r\n\t\t{ return mapping.getId(); }", "public int getId() {\n return parameter.getId();\n }", "public int getId_serviceMethod() {\r\n\t\treturn id_serviceMethod;\r\n\t}", "public Integer getId() {\n return Id;\n }", "public ID getMainService() { \r\n\t\tID retVal = this.getTypedField(46, 0);\r\n\t\treturn retVal;\r\n }", "@AutoEscape\n\tpublic String getIdPtoServicio();", "public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }", "public int getIdServicio() {\n return idServicio;\n }", "public Long getId(){\n\t\treturn id;\n\t}", "public void setServiceID(int value) {\n this.serviceID = value;\n }", "public Service findById(int theId);", "public Integer getId(){\n\t\treturn id;\n\t}", "public Integer getID() {\n return ID;\n }", "public Long getId()\r\n {\r\n return id;\r\n }", "public Integer getId()\n\t{\n\t\treturn this.id; \n\t}", "public int getId();", "public int getId();", "public int getId();", "public int getId();", "public int getId();", "public int getId();", "public int getId();", "public Long getId() \r\n {\r\n return id;\r\n }", "public Long getId() {\r\n return this.id;\r\n }", "public Long getId() {\r\n return this.id;\r\n }", "public Long getId() {\r\n return this.id;\r\n }", "public int obtId() {\r\n\t\treturn id;\r\n\t}", "Integer getID();", "Integer getID();", "@Override\n\tpublic Integer getId() {\n\t\treturn this.id;\n\t}", "public Integer getId() {\n return (Integer) get(\"id\");\n }", "public Integer getId() {\r\n return this.id;\r\n }", "public Integer getsId() {\n return sId;\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public int getId(){\n\t\treturn this.id;\n\t}", "public final int getId() {\n\t\treturn this.accessor.getId();\n\t}", "public Integer getId()\n {\n return id;\n }", "public int getId() {\n\t\treturn Id;\n\t}", "public Long getId()\r\n\t{\r\n\t\treturn idContrat;\r\n\t}", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }" ]
[ "0.7141871", "0.70337033", "0.7028771", "0.70162725", "0.68293226", "0.68107826", "0.68053603", "0.66616184", "0.657042", "0.6507261", "0.6468149", "0.64348686", "0.6412842", "0.6362864", "0.63353026", "0.6197762", "0.6157017", "0.61465013", "0.61062896", "0.6038029", "0.6036227", "0.60314703", "0.6023815", "0.5978566", "0.5969011", "0.5929411", "0.5927443", "0.5927327", "0.5927195", "0.5925501", "0.59209746", "0.5919915", "0.59091294", "0.59091294", "0.59091294", "0.59091294", "0.59091294", "0.59091294", "0.59091294", "0.5903094", "0.5902969", "0.5902969", "0.5902969", "0.5893893", "0.5893631", "0.5893631", "0.5893385", "0.5892813", "0.58896065", "0.5888541", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.588824", "0.58833045", "0.5880589", "0.58779126", "0.5877827", "0.5872025", "0.58704305", "0.58704305", "0.58704305", "0.58704305", "0.58704305", "0.58704305", "0.58704305", "0.58704305", "0.58704305", "0.58704305", "0.58704305", "0.58704305", "0.58704305", "0.58704305", "0.58704305", "0.58704305", "0.58704305", "0.58704305", "0.58704305", "0.58704305" ]
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column service.ID
public void setId(Integer id) { this.id = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setServiceID(int value) {\n this.serviceID = value;\n }", "public void setServiceID(java.lang.String serviceID)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SERVICEID$6, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SERVICEID$6);\n }\n target.setStringValue(serviceID);\n }\n }", "void setServiceId(java.lang.String serviceId);", "public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setServiceId(long value) {\n validate(fields()[2], value);\n this.serviceId = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public void setId_serviceMethod(int id_serviceMethod) {\r\n\t\tthis.id_serviceMethod = id_serviceMethod;\r\n\t}", "public void setServiceid(Integer serviceid) {\r\n this.serviceid = serviceid;\r\n }", "public void xsetServiceID(org.apache.xmlbeans.XmlString serviceID)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SERVICEID$6, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SERVICEID$6);\n }\n target.set(serviceID);\n }\n }", "public void setServiceId(java.lang.Long value) {\n this.serviceId = value;\n }", "public void setServiceId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localServiceIdTracker = true;\r\n } else {\r\n localServiceIdTracker = false;\r\n \r\n }\r\n \r\n this.localServiceId=param;\r\n \r\n\r\n }", "public void setServiceID(ID sid) {\n\tserviceID = sid;\n }", "public OracleConnectOptions setServiceId(String serviceId) {\n this.serviceId = serviceId;\n return this;\n }", "public void setID(int id){\n this.ID = id;\n }", "public ID getServiceID() {\n\treturn serviceID;\n }", "void xsetServiceId(com.microsoft.schemas._2003._10.serialization.Guid serviceId);", "public void setID(int id);", "public Integer getServiceid() {\r\n return serviceid;\r\n }", "public void setIdPtoServicio(String idPtoServicio);", "public int getServiceID() {\n return serviceID;\n }", "public void setID(int id){\n this.id=id;\n }", "public void setId(int driverDBId);", "public void setID(Integer ID){\n this.ID = ID;\n }", "public void setID(long id);", "@Override\n\tpublic void setId(int id) {\n\t\tthis.ID = id;\n\t}", "public void setID(String idIn) {this.id = idIn;}", "public void setID(int ID)\r\n {\r\n this.ID = ID;\r\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "public void set_id(int ID)\n {\n id =ID;\n }", "public void setID(int value) {\n this.id = value;\n }", "@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service findServiceById(int Idservice) {\n\t\treturn serviceRepository.findOne(Idservice);\r\n\t}", "void setId(int id) {\n this.id = id;\n }", "public void setId(int id)\r\n {\r\n this.mId = id;\r\n }", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public long getId() {\n return mServiceId;\n }", "public void setId(ID id){\r\n\t\tthis.id = id;\r\n\t}", "public void setId(ID id)\n {\n this.id = id;\n }", "public void setID(int ID) {\n this.ID = ID;\n }", "public void setID(int ID) {\n this.ID = ID;\n }", "public void setID(int id) {\n this.id = id;\n }", "public void setID(final String Id){\n this.Id = Id;\n }", "public void setID(int id)\r\n {\r\n\tthis.id = id;\r\n }", "public void setId( Integer id )\n {\n this.id = id ;\n }", "public void setId( Long id );", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id){ this.id = id; }", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "public void setID(Integer ID) {\n this.ID = ID;\n }", "public void setId(String Id) {\n this.Id = Id;\n }", "public void setId( Long id ) {\n this.id = id ;\n }", "public void setID(String newID)\r\n {\r\n id=newID;\r\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public java.lang.Long getServiceId() {\n return serviceId;\n }", "final public void setId(int idp) {\n\t\tid = idp;\n\t\tidSet = true;\n\t}", "public void setID(String value) {\r\n \t\t_id = value;\r\n \r\n \t}", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) \n {\n this.id = id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "public void setId(Long id){\n this.id = id;\n }", "public void setId(int id)\n {\n this.id = id;\n }", "public void setId(int id)\n {\n this.id = id;\n }", "public void setId(int id) {\n\tthis.id = id;\n}", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "private void setId(Integer id) { this.id = id; }", "public void setID(Integer id) {\r\n this.id = id;\r\n }", "public void setId(long id) {\n id_ = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "void setID(int val)\n throws RemoteException;", "public java.lang.Long getServiceId() {\n return serviceId;\n }", "public void setId(String id) {\r\n this.id = id;\r\n }", "public void setId(int value) {\r\n this.id = value;\r\n }", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }" ]
[ "0.7239776", "0.696826", "0.6811905", "0.6626242", "0.6602266", "0.65651923", "0.65306336", "0.64472216", "0.63583374", "0.6304159", "0.6067487", "0.60432434", "0.60051614", "0.5999119", "0.59673536", "0.5905921", "0.58994883", "0.5891635", "0.5874202", "0.5857305", "0.5852696", "0.58516866", "0.5828384", "0.5785452", "0.57696056", "0.57526994", "0.57509017", "0.5749984", "0.57442856", "0.57356715", "0.5732647", "0.57272774", "0.57272774", "0.57198966", "0.571779", "0.57059854", "0.5697264", "0.5697264", "0.56907123", "0.56901884", "0.56821567", "0.56762826", "0.5672909", "0.56712854", "0.56712854", "0.56712854", "0.56712854", "0.5663541", "0.56616026", "0.5652224", "0.564691", "0.5646277", "0.56446826", "0.5643831", "0.5643831", "0.5643831", "0.5643831", "0.5643831", "0.5643831", "0.5643831", "0.5637398", "0.5635214", "0.5633304", "0.56316286", "0.56316286", "0.5630661", "0.5622791", "0.56200975", "0.5619682", "0.5619682", "0.56194234", "0.5618584", "0.5618584", "0.5614241", "0.5608184", "0.56070054", "0.5605738", "0.5605738", "0.5605738", "0.56057316", "0.5603121", "0.56023836", "0.559856", "0.5595704", "0.55916727", "0.55916727", "0.55916727", "0.55916727", "0.55916727", "0.55916727", "0.55916727", "0.55916727", "0.55916727", "0.55916727", "0.55916727", "0.55916727", "0.55916727", "0.55916727", "0.55916727", "0.55916727", "0.55916727" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column service.MEMBER_ID
public Integer getMemberId() { return memberId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic MemberVO getMemberId(String memberCode) {\n\t\treturn sqlSession.selectOne(namespace + \".getMemberId\", memberCode);\r\n\t}", "public String getMemberId() {\n return memberId;\n }", "public String getMemberId() {\n return memberId;\n }", "public String getMember_id() {\r\n return member_id;\r\n }", "public String getMember_id() {\r\n return member_id;\r\n }", "public Integer getMemberId() {\n\t\treturn memberId;\n\t}", "public String getMemberID() {\n return memberID;\n }", "public String getMemberid() {\n\t\treturn memberid;\n\t}", "public Object getMemberId() {\n\t\treturn null;\n\t}", "public Integer getMemberId() {\n return (Integer) get(2);\n }", "public int getMemberId() {\n\t\treturn 0;\n\t}", "public int getMember(){\n String memberString = member.getSelectedItem().toString();\n int memberId = this.memberMap.get(memberString);\n \n System.out.println(\"getMember2: \"+ memberString +\",\"+ memberId);\n return memberId;\n }", "public Integer getMemberInfoId() {\n return memberInfoId;\n }", "@Override\n\tpublic Member findMemberId(long memberId) {\n\t\treturn null;\n\t}", "int getMemberId2();", "int getMemberId1();", "public int getMemberId1() {\n return memberId1_;\n }", "public int getMemberId() {\n\t\treturn memberIDCounter++;\n\t}", "public synchronized static String getMemberId() {\n return \"222222222222\";\n }", "public int getMemberId1() {\n return memberId1_;\n }", "@Override\n public java.lang.String getBeanIdentifier() {\n return _staffMemberLocalService.getBeanIdentifier();\n }", "public void setMemberID(String memberID){ this.memberID=memberID; }", "public void setMemberId(String string) {\n\t\t\n\t}", "public int getMemberId2() {\n return memberId2_;\n }", "public void setMemberId(Integer memberId) {\n this.memberId = memberId;\n }", "public void setMemberId(Integer memberId) {\n this.memberId = memberId;\n }", "public int getMemberId2() {\n return memberId2_;\n }", "public void setMemberId(Integer memberId) {\n\t\tthis.memberId = memberId;\n\t}", "public com.jspgou.cms.entity.ShopMember getMember () {\r\n\t\treturn member;\r\n\t}", "public long getMemberId() {\n return _sTransaction.getMemberId();\n }", "private long getOwnID(){\n return authenticationController.getMember() == null ? -1 :authenticationController.getMember().getID();\n }", "public void setMemberId(String memberId) {\n this.memberId = memberId == null ? null : memberId.trim();\n }", "public void setMemberId(String memberId) {\n this.memberId = memberId == null ? null : memberId.trim();\n }", "@Override\n\tpublic MemberBean findById(MemberBean member) {\n\t\treturn null;\n\t}", "public ArrayList<Integer> getMemberIDs() {\n return memberIDs;\n }", "@Override\r\n\tpublic Member getMember(String memberId) throws Exception {\n\t\treturn memberDao.getMember(memberId);\r\n\t}", "protected String extractMemberIdFromEntity(Member entity) {\r\n return convert(entity.getMemberId(), String.class);\r\n }", "public void setMember_id(String member_id) {\r\n this.member_id = member_id;\r\n }", "public void setMember_id(String member_id) {\r\n this.member_id = member_id;\r\n }", "@Override\n\tpublic Member getMember(int id) {\n\t\treturn null;\n\t}", "protected Integer extractMemberIdFromDto(MemberDto dto) {\r\n return convertForEntity(dto.getMemberId(), Integer.class);\r\n }", "@Override\r\n\tpublic Member memberLogin(Member m) {\n\t\treturn mDAO.selectMember(sqlSession, m);\r\n\t}", "Member findById(Long id);", "@Override\r\n\tpublic Member loginMember(String memberId) throws Exception {\n\t\treturn memberDao.getMember(memberId);\r\n\t}", "@Override\r\n\tpublic Member getMemberById(int id) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tMember member = session.get(Member.class, id);\r\n\t\treturn member;\r\n\t}", "@Override\r\n\tpublic Member getMember(Long id) throws NotFoundException, ExistException,\r\n\t\t\tMissingParameter, InvalidParameter {\n\t\treturn null;\r\n\t}", "public String getBuyerMemberId() {\n return buyerMemberId;\n }", "@Override\n\tpublic MemberVO memberLogin(MemberVO member) {\n\t\treturn sqlSession.selectOne(NS+\".memberLogin\", member);\n\t}", "@Override\r\n\tpublic Member getMemberByPin(String pinMember) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tQuery query = session.createQuery(\"FROM Member WHERE pinMember =:pinMember\");\r\n\t\tquery.setString(\"pinMember\", pinMember);\r\n\t\tList<Member> member = query.list();\r\n\t\tif(!member.isEmpty())\r\n\t\treturn member.get(0);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "public Vector getUserAndMemberId(String mailId) throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT A.user_id, B.member_id FROM \"+DBHelper.USEA_MMS_USERMASTER+\" A, \"+\n DBHelper.USEA_MMS_MEMBERDETAIL+\" B \"+ \n \" WHERE A.user_id = B.user_id and A.email_id = ?\";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, mailId.trim());\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the getUserAndMemberId mailId : \"+mailId);\n if (rs.next()) {\n this.userId = rs.getString(1);\n this.memberId = rs.getString(2);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n String [] useMemberId = {userId,memberId};\n vObj.add(useMemberId);\n return vObj;\n }", "public Member getMember(int memberId) {\r\n\t\tfor(Member m : members) {\r\n\t\t\tif(m.getMemberNumber() == memberId) {\r\n\t\t\t\treturn m;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "IMemberDto getMember(/*old :String searchMember*/Integer id);", "@Override\n\tpublic MemberDTO getMember(MemberDTO mdto) {\n\t\treturn mdao.getMember(mdto);\n\t}", "public String getMembername() {\n\t\treturn membername;\n\t}", "public Member getMember()\n {\n return m_member;\n }", "public String consumerId() {\n return memberId;\n }", "public MemberPo findMember(final String id);", "java.lang.String getFriendId();", "java.lang.String getFriendId();", "public Member getMember() {\n\t\treturn member; ////changed 'MeMbEr' to 'member'\r\n\t}", "public int getMemberId(String memberValue, long distinctTupleInd){\r\n if (tupleToMemberId.containsKey(distinctTupleInd)) {\r\n return tupleToMemberId.get( distinctTupleInd );\r\n }\r\n\r\n tupleToMemberId.put(distinctTupleInd, nextMemberId++);\r\n int memberId = memberNameStore.addElement(memberValue);\r\n // Diagnostic for breakpoint stop\r\n //if ( memberId != nextMemberId-1 )\r\n // System.out.println(\"Something is wrong\");\r\n return memberId;\r\n }", "public int updateMemberById(Map<String, Object> param) {\n\t\treturn getBaseDao().updateMemberById(param);\n\t}", "@Override\n\tpublic Member getMemberById(int id) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tString hql = \"from Member m where m.id = :id\";\n\t\tQuery query = session.createQuery(hql);\n\t\tquery.setParameter(\"id\", id);\n\t\tList<Member> listMember = query.list();\n\t\t\n\t\tif(listMember.isEmpty()) {\n\t\t\treturn new Member();\n\t\t}\n\t\t\n\t\treturn listMember.get(0);\n\t}", "public Optional<String> getMember() {\n return Optional.ofNullable(member);\n }", "public Member getMemberPoint(SqlSessionTemplate sqlSession, Member m) {\n\t\treturn sqlSession.selectOne(\"memberMapper.getMemberPoint\", m);\n\t}", "Member selectByPrimaryKey(Long id);", "@Override\n\tpublic List<MemberDTO> getListMember() {\n\t\treturn mdao.getListMember();\n\t}", "@Override\n\tpublic List<GymMember> getMyMember(int tid) {\n\t\t@SuppressWarnings({ \"deprecation\", \"rawtypes\" })\n\t\tQuery query = factory.getCurrentSession().createSQLQuery(\"CALL getMember(:tid1)\").setParameter(\"tid1\",tid).addEntity(GymMember.class);\n\t\t@SuppressWarnings({ \"deprecation\", \"unchecked\" })\n\t\tList<GymMember> list = query.list();\n\t\treturn list;\n\t}", "@Override\r\n\tpublic int updateMember(MemberVO member) {\n\t\tMemberMapper mapper = sqlSession.getMapper(MemberMapper.class);\r\n\t\treturn mapper.updateMember(member);\r\n\t}", "@Override\n\tpublic int loginMember(MemberDTO memberDTO) throws SQLException {\n\t\t\n\t\tString runP = \"{ call member_login(?, ?, ?) }\";\n\t\t\n\t\ttry (Connection conn = dataSource.getConnection();\n\t\t\t CallableStatement callableStatement = conn.prepareCall(runP.toString())){\n\t\t\t\n\t\t\t\n\t\t\tcallableStatement.setString(1, memberDTO.getUser_id());\n\t\t\tcallableStatement.setString(2, memberDTO.getPassword());\n\t\t\tcallableStatement.registerOutParameter(3, java.sql.Types.INTEGER);\n\t\t\tcallableStatement.executeUpdate();\t\n\t\t\t\n\t\t\tint check = callableStatement.getInt(3);\n\t\t\tif(check == 0) {\n\t\t\t\tSystem.out.println(\"로그인 실패\");\n\t\t\t\treturn 0;\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"로그인 성공\");\n\t\t\t\treturn 1;\n\t\t\t\t\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.format(\"SQL State: %s\\n%s\", e.getSQLState(), e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn -1;\n\n\t\t\n\t\n\t}", "List<S> memberOf(String memberUuid);", "String getMemberKey(AbstractMemberMetaData mmd);", "public boolean existsMember(final String id);", "public Member searchMemberByMemberId(List<Member> members,Long memberId) throws WorkShopException {\n try {\n for (Member member : members) {\n if (member.getMemberId().equals(memberId)) {\n return member;\n }\n }\n } catch (Exception e) {\n throw new WorkShopException(e);\n }\n return null;\n }", "ScPartyMember selectByPrimaryKey(Integer id);", "@Override\r\n\tpublic int insertMember(Member m) {\n\t\treturn mDAO.insertMember(sqlSession, m);\r\n\t}", "public int getMemberId(AttributeGrouping grouping, String memberValue, int[] attributeInds) {\r\n long tupleIndex = grouping.getTupleIndex(attributeInds);\r\n return getMemberId(memberValue, tupleIndex);\r\n }", "public long getPersonId();", "public void setMemberId(long memberId) {\n _sTransaction.setMemberId(memberId);\n }", "public Element getMemberElement() {\n return memberElement;\n }", "public void setMemberid(String memberid) {\n\t\tthis.memberid = memberid;\n\t}", "public int insertMember(MallMember member) {\n\t\tint result = 0;\n\t\tlogger.info(\"회원가입 DAO 시작\");\n\t\tMemberMapper mapper = sqlsession.getMapper(MemberMapper.class);\n\t\ttry{\n\t\t\tresult = mapper.insertMember(member);\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\tlogger.info(\"회원가입 DAO 종료\");\n\t\treturn result;\n\t}", "@Override\r\n\tpublic int memberCount() {\n\t\treturn sqlSession.selectOne(NAMESPACE + \".member_count_user\");\r\n\t}", "public MemberName toMemberName ()\n {\n return new MemberName(name, memberId);\n }", "public Member getMember(int id){\n super.open();\n\n // 2. build query\n Cursor cursor =\n db.query(TABLE_MEMBER, // a. table\n COLUMNS, // b. column names\n \" id = ?\", // c. selections\n new String[] { String.valueOf(id) }, // d. selections args\n null, // e. group by\n null, // f. having\n null, // g. order by\n null); // h. limit\n\n // 3. if we got results get the first one\n if (cursor != null)\n cursor.moveToFirst();\n\n // 4. build Member object\n Member member = new Member();\n member.id = Integer.parseInt(cursor.getString(0));\n member.nickName = cursor.getString(1);\n member.type = cursor.getInt(2);\n member.joinDate = cursor.getString(3);\n\n\n Log.d(\"getNotice(\" + id + \")\", member.toString());\n\n // 5. return member\n return member;\n }", "public DeleteMember() {\n\t\tsuper(\"delete_member\", de.piratenpartei.berlin.ldadmin.dbaccess.generated.DefaultSchema.DEFAULT_SCHEMA);\n\t\taddInParameter(MEMBER_ID_P);\n\t}", "public Member getMemberById(int id) {\n\t\tfor (Iterator<Member> it = db.iterator(); it.hasNext(); ) {\n\t\t\tMember m = it.next();\n\t\t\tif (m.getId() == id) {\n\t\t\t\treturn m;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n\tpublic GridMemberI getLocalMember() {\r\n\t\t//\r\n\t\treturn this.top.find(GridMemberI.class, true);\r\n\r\n\t}", "@Override\r\n\tpublic int updateMember(Member member) {\n\t\treturn memberDAO.updateMember(member);\r\n\t}", "public ArrayList<Member> getMemberWholeList() {\n\t\t return dao.selectMemberwholeList();\r\n\t}", "@Override\n\tpublic MemberVO idCheck(String userid) {\n\t\treturn sqlSession.selectOne(\"com.coderdy.myapp.member.dao.mapper.MemberMapper.idCheck\", userid);\n\t}", "public int count () {\n return member_id_list.length;\r\n }", "public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }", "@Override\r\n\tpublic List<MemberDto> list() {\n\t\treturn jdbcTemplate.query(\"select * from s_member\", mapper);\r\n\t}", "public String getProposedByMemberId() {\n return this.proposedByMemberId;\n }", "@Override\n\tpublic boolean registerMember(Member member) {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = sessionFactory.getCurrentSession();\n\t\t\tsession.save(member);\n\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\n\t\tlogger.info(\"Generating MemberID \" + member.getMemberId());\n\t\treturn true;\n\t}", "@Override\n\tpublic SnsMemberVO selectSnsMember(String sns_id) {\n\t\treturn (SnsMemberVO) sqlSession.selectOne(\"com.coderdy.myapp.member.dao.mapper.MemberMapper.selectSnsMember\",\n\t\t\t\tsns_id);\n\t}", "@Transient\n\tpublic String getServiceId()\t{\n\t\treturn mServiceId;\n\t\t//else return \"N/A\";\n\t}", "public MinecartMember<?> getEnteredMember() {\n return this.newSeat.getMember();\n }" ]
[ "0.7275783", "0.72658616", "0.72658616", "0.72363025", "0.72363025", "0.7171279", "0.7034988", "0.68868244", "0.6801195", "0.67679954", "0.67346334", "0.67154497", "0.6660772", "0.6584933", "0.641487", "0.63943243", "0.6343143", "0.6323696", "0.6299032", "0.6246355", "0.6149548", "0.61375874", "0.61006415", "0.60742605", "0.6051229", "0.6051229", "0.6001099", "0.5947642", "0.59445995", "0.5922102", "0.5874748", "0.58586276", "0.58586276", "0.5818657", "0.58051443", "0.5794463", "0.57633126", "0.5756834", "0.5756834", "0.57435054", "0.5731567", "0.5723428", "0.56874895", "0.56483275", "0.5628923", "0.56087154", "0.56020087", "0.55992556", "0.55942595", "0.5572992", "0.5549491", "0.553611", "0.55109596", "0.5508961", "0.54874957", "0.5477668", "0.54475933", "0.5428619", "0.5428619", "0.54194415", "0.54103696", "0.5409179", "0.5403967", "0.5398956", "0.53869754", "0.53794503", "0.53768206", "0.5355472", "0.534529", "0.5340827", "0.5323632", "0.5289814", "0.5286999", "0.5279979", "0.5278444", "0.52720803", "0.5270433", "0.5226872", "0.522359", "0.52081376", "0.5190699", "0.51683074", "0.51635885", "0.51494825", "0.51487523", "0.5143175", "0.5142988", "0.51336175", "0.5123131", "0.5122917", "0.51227224", "0.5102351", "0.51005405", "0.50946426", "0.50893104", "0.50836825", "0.5082997", "0.5078728", "0.5063153" ]
0.73752755
1
This method was generated by MyBatis Generator. This method sets the value of the database column service.MEMBER_ID
public void setMemberId(Integer memberId) { this.memberId = memberId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMemberID(String memberID){ this.memberID=memberID; }", "public void setMemberId(String memberId) {\n this.memberId = memberId == null ? null : memberId.trim();\n }", "public void setMemberId(String memberId) {\n this.memberId = memberId == null ? null : memberId.trim();\n }", "public void setMemberId(String string) {\n\t\t\n\t}", "public void setMemberId(Integer memberId) {\n\t\tthis.memberId = memberId;\n\t}", "public void setMemberId(long memberId) {\n _sTransaction.setMemberId(memberId);\n }", "public void setMember_id(String member_id) {\r\n this.member_id = member_id;\r\n }", "public void setMember_id(String member_id) {\r\n this.member_id = member_id;\r\n }", "public Integer getMemberId() {\n return memberId;\n }", "public Integer getMemberId() {\n return memberId;\n }", "public String getMember_id() {\r\n return member_id;\r\n }", "public String getMember_id() {\r\n return member_id;\r\n }", "public String getMemberId() {\n return memberId;\n }", "public String getMemberId() {\n return memberId;\n }", "public Integer getMemberId() {\n\t\treturn memberId;\n\t}", "public String getMemberID() {\n return memberID;\n }", "public void setMemberId(Integer value) {\n set(2, value);\n }", "public String getMemberid() {\n\t\treturn memberid;\n\t}", "@Test\r\n public void testSetMemberId()\r\n {\r\n System.out.println(\"setMemberId\");\r\n int memberId = 0;\r\n String occupation = \"Doctor\";\r\n String[] hobbies = {\"Reading\", \"Cooking\"};\r\n int id = 5;\r\n LifeStyleBean instance = new LifeStyleBean(occupation, hobbies, id);\r\n instance.setMemberId(memberId);\r\n }", "@Override\n\tpublic Member findMemberId(long memberId) {\n\t\treturn null;\n\t}", "public Object getMemberId() {\n\t\treturn null;\n\t}", "public void setMemberid(String memberid) {\n\t\tthis.memberid = memberid;\n\t}", "public int getMemberId() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic int updateMember(MemberVO member) {\n\t\tMemberMapper mapper = sqlSession.getMapper(MemberMapper.class);\r\n\t\treturn mapper.updateMember(member);\r\n\t}", "@Override\n\tpublic void updateMember(MemberDTO mdto) {\n\t\tmdao.updateMember(mdto);\n\t}", "@Override\n\tpublic void updateMember(MemberVO member) {\n\t\tsqlSession.update(\"com.coderdy.myapp.member.dao.mapper.MemberMapper.updateMember\", member);\n\t}", "@Override\r\n\tpublic MemberVO getMemberId(String memberCode) {\n\t\treturn sqlSession.selectOne(namespace + \".getMemberId\", memberCode);\r\n\t}", "public Builder setMemberId1(int value) {\n \n memberId1_ = value;\n onChanged();\n return this;\n }", "public void setMemberIDs(ArrayList<Integer> memberIDs) {\n this.memberIDs = memberIDs;\n }", "public int updateMemberById(Map<String, Object> param) {\n\t\treturn getBaseDao().updateMemberById(param);\n\t}", "public void setMember (com.jspgou.cms.entity.ShopMember member) {\r\n\t\tthis.member = member;\r\n\t}", "@Override\r\n\tpublic int updateMember(Member member) {\n\t\treturn memberDAO.updateMember(member);\r\n\t}", "public int getMemberId1() {\n return memberId1_;\n }", "public Builder setMemberId2(int value) {\n \n memberId2_ = value;\n onChanged();\n return this;\n }", "public Integer getMemberInfoId() {\n return memberInfoId;\n }", "@Override\n\tpublic void update(Member member) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tsession.update(member);\n\t}", "protected void reflectMemberIdToDto(Member entity, MemberDto dto) {\r\n dto.setMemberId(extractMemberIdFromEntity(entity));\r\n }", "public void setMemberIdP(java.lang.Integer value) {\n\t\tsetValue(de.piratenpartei.berlin.ldadmin.dbaccess.generated.routines.DeleteMember.MEMBER_ID_P, value);\n\t}", "@Override\n\tpublic void updateSnsMember(SnsMemberVO snsMember) {\n\t\tsqlSession.update(\"com.coderdy.myapp.member.dao.mapper.MemberMapper.updateSnsMember\", snsMember);\n\t}", "@Test\r\n public void testSetMemberId()\r\n {\r\n System.out.println(\"setMemberId\");\r\n int memberId = 8;\r\n FoodBean instance = new FoodBean();\r\n instance.setMemberId(memberId);\r\n assertEquals(memberId, instance.getMemberId());\r\n }", "public int getMemberId1() {\n return memberId1_;\n }", "protected void reflectMemberIdToEntity(MemberDto dto, Member entity) {\r\n entity.setMemberId(extractMemberIdFromDto(dto));\r\n }", "@Override\n public void setBeanIdentifier(java.lang.String beanIdentifier) {\n _staffMemberLocalService.setBeanIdentifier(beanIdentifier);\n }", "@Test\n public void testSetId() {\n System.out.println(\"setId\");\n Member instance = member;\n \n String id = \"new Id\";\n instance.setId(id);\n \n String expResult = id;\n String result = instance.getId();\n \n assertEquals(expResult,result);\n }", "@Override\r\n\tpublic void update(Member member) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tsession.update(member);\r\n\t\tsession.flush();\r\n\t}", "public void setBuyerMemberId(String buyerMemberId) {\n this.buyerMemberId = buyerMemberId;\n }", "@Override\r\n\tpublic void updateMember(Member member) throws Exception {\n\t\tmemberDao.updateMember(member);\r\n\t}", "public void setInitMemberVO(Row value) {\n setAttributeInternal(INITMEMBERVO, value);\n }", "public int getMemberId() {\n\t\treturn memberIDCounter++;\n\t}", "public synchronized static String getMemberId() {\n return \"222222222222\";\n }", "int getMemberId2();", "public int getMemberId2() {\n return memberId2_;\n }", "@Override\n\tpublic MemberBean findById(MemberBean member) {\n\t\treturn null;\n\t}", "public long autoSetGameId(long memberId) {\r\n\t\tlong gameId=0;\r\n\t\tMember member = memberDao.findById(memberId);\r\n\t\tList<Player> players = playerDao.findByMember(member);\r\n\t\tif (players.size() == 1) {\r\n\t\t\tgameId = players.get(0).getGame().getId();\r\n\t\t} \r\n\t\telse {\r\n\t\t\tfor (Player p : players) {\r\n\t\t\t\tif (p.getIsActionRequired()) {\r\n\t\t\t\t\tgameId = p.getGame().getId();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\r\n\t\tif (gameId <= 0) {\r\n\t\t\tlong activeId = 0;\r\n\t\t\tlong activeCount = 0;\r\n\t\t\tfor (Player p : players) {\r\n\t\t\t\tif (p.getGame().getIsActive())\t {\r\n\t\t\t\t\tactiveId = p.getGame().getId();\r\n\t\t\t\t\tactiveCount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (activeCount == 1) gameId = activeId;\r\n\t\t}\t\r\n\t\t\r\n\t\tlogger.debug(\"Auto set game id = \" + gameId);\r\n\t\treturn gameId;\r\n\t}", "public DeleteMember() {\n\t\tsuper(\"delete_member\", de.piratenpartei.berlin.ldadmin.dbaccess.generated.DefaultSchema.DEFAULT_SCHEMA);\n\t\taddInParameter(MEMBER_ID_P);\n\t}", "@Override\r\n\tpublic Member loginMember(String memberId) throws Exception {\n\t\treturn memberDao.getMember(memberId);\r\n\t}", "public int updateMember(MallMember mallmember) {\n\t\tint result = 0;\n\t\tlogger.info(\"회원정보 수정 DAO 시작\");\n\t\tMemberMapper mapper = sqlsession.getMapper(MemberMapper.class);\n\t\ttry{\n\t\t\tresult = mapper.updateMember(mallmember);\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\tlogger.info(\"회원정보 수정 DAO 종료\");\n\t\treturn result;\n\t}", "public int getMemberId2() {\n return memberId2_;\n }", "int getMemberId1();", "@Override\n\tpublic void insertMember(MemberDTO mdto) {\n\t\tmdao.insertMember(mdto);\n\t}", "@Override\r\n\tpublic int insertMember(Member m) {\n\t\treturn mDAO.insertMember(sqlSession, m);\r\n\t}", "public Integer getMemberId() {\n return (Integer) get(2);\n }", "public int getMember(){\n String memberString = member.getSelectedItem().toString();\n int memberId = this.memberMap.get(memberString);\n \n System.out.println(\"getMember2: \"+ memberString +\",\"+ memberId);\n return memberId;\n }", "IMemberDto getMember(/*old :String searchMember*/Integer id);", "@Override\n\tpublic boolean registerMember(Member member) {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = sessionFactory.getCurrentSession();\n\t\t\tsession.save(member);\n\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\n\t\tlogger.info(\"Generating MemberID \" + member.getMemberId());\n\t\treturn true;\n\t}", "@Override\r\n\tpublic Member memberLogin(Member m) {\n\t\treturn mDAO.selectMember(sqlSession, m);\r\n\t}", "@Override\r\n\tpublic Member updateMember(Member member, String principalId)\r\n\t\t\tthrows NotFoundException, ExistException, MissingParameter,\r\n\t\t\tInvalidParameter {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Member getMember(int id) {\n\t\treturn null;\n\t}", "@Override\n public java.lang.String getBeanIdentifier() {\n return _staffMemberLocalService.getBeanIdentifier();\n }", "@Override\n\tpublic void insertMember(MemberVO member) {\n\t\tlogger.info(\"insertMember_memberDAO\");\n\t\tsqlSession.insert(\"com.coderdy.myapp.member.dao.mapper.MemberMapper.insertMember\", member);\n\n\t\tlogger.info(\"insertMember_memberDAO_ END\");\n\t}", "public UserMember() {\r\n //this.email = \"user@user.com\";\r\n this.email = \"\";\r\n this.firstName = \"\";\r\n this.lastName = \"\";\r\n this.username = \"\";\r\n this.password = \"\";\r\n this.memberId = 0;\r\n }", "public com.jspgou.cms.entity.ShopMember getMember () {\r\n\t\treturn member;\r\n\t}", "public M csmiMemberIdNull(){if(this.get(\"csmiMemberIdNot\")==null)this.put(\"csmiMemberIdNot\", \"\");this.put(\"csmiMemberId\", null);return this;}", "public int updateMember(Member m) {\n\t\tConnection conn = null;//추가\n\t\tint resultrow=0;\n\t\tPreparedStatement pstmt = null;\n\t\ttry {\n\t\t\tconn= ConnectionHelper.getConnection(\"oracle\");//추가\n\t\t\tString sql = \"update koreamember set name=? , age=? , email=? , gender=? where id=?\";\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tpstmt.setString(1, m.getName());\n\t\t\tpstmt.setInt(2, m.getAge());\n\t\t\tpstmt.setString(3, m.getEmail());\n\t\t\tpstmt.setString(4, m.getGender());\n\t\t\tpstmt.setString(5, m.getId());\n\t\t\tresultrow = pstmt.executeUpdate();\n\t\t\t\t\n\t\t}catch(Exception e) {\n\t\t\tSystem.out.println(\"update : \" + e.getMessage());\n\t\t}finally {\n\t\t\tConnectionHelper.close(pstmt);\n\t\t\tConnectionHelper.close(conn);\n\t\t\ttry {\n\t\t\t\tconn.close(); //반환하기\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn resultrow;\n\t}", "int updateByPrimaryKey(Member record);", "public int update(MemberInfoDTO dto) {\n\t\treturn sqlSessionTemplate.update(\"memberInfo.update\", dto);\r\n\t}", "public void setServiceId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localServiceIdTracker = true;\r\n } else {\r\n localServiceIdTracker = false;\r\n \r\n }\r\n \r\n this.localServiceId=param;\r\n \r\n\r\n }", "public MemberResource() {\n sessionBeanLookup = new SessionBeanLookup();\n \n memberEntitySessionBeanLocal = sessionBeanLookup.lookupMemberEntitySessionBeanLocal();\n }", "@Override\n\tpublic boolean updateMember(MemberDTO member) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void save(Member member) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tsession.save(member);\n\t}", "public ArrayList<Integer> getMemberIDs() {\n return memberIDs;\n }", "public Member(int memberID, String firstName, String lastName, String address, String email, String phoneNum, boolean gender) {\n this.memberID = memberID;\n this.firstName = firstName;\n this.lastName = lastName;\n this.address = address;\n this.email = email;\n this.phoneNum = phoneNum;\n this.gender = gender;\n }", "@Put\n public void addMember(){\n try {\n controller.addMember(getQueryValue(\"id\"), getQueryValue(\"name\"));\n }catch(MenuException e){\n System.out.println(e.getMessage());\n }\n }", "@Override\r\n\tpublic void save(Member member) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tsession.save(member);\r\n\t\tsession.flush();\r\n\t}", "@Override\n\tpublic void insertSnsMember(SnsMemberVO snsMember) {\n\t\tsqlSession.insert(\"com.coderdy.myapp.member.dao.mapper.MemberMapper.insertSnsMember\", snsMember);\n\t}", "public boolean updateMember(final MemberPo po);", "int updateByPrimaryKey(OrgMemberRecord record);", "@Override\n\tpublic int update(MemberVO memberVo) {\n\t\treturn 0;\n\t}", "public void setMemberName(String memberName) {\r\n\t\tthis.memberName = memberName;\r\n\t}", "Member findById(Long id);", "public int insertMember(MallMember member) {\n\t\tint result = 0;\n\t\tlogger.info(\"회원가입 DAO 시작\");\n\t\tMemberMapper mapper = sqlsession.getMapper(MemberMapper.class);\n\t\ttry{\n\t\t\tresult = mapper.insertMember(member);\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\tlogger.info(\"회원가입 DAO 종료\");\n\t\treturn result;\n\t}", "public void insert(Member member) {\n\t\tKeyHolder keyholder = new GeneratedKeyHolder();\n\t\t\n\t\tjdbcTemplate.update(new PreparedStatementCreator() {\n\n\t\t\t@Override\n\t\t\tpublic PreparedStatement createPreparedStatement(Connection con) throws SQLException {\n\t\t\t\tPreparedStatement preparedStatement = con.prepareStatement(\"INSERT INTO MEMBER(EMAIL, PASSWORD, NAME, REGDATE) VALUES(?, ?, ?, ?)\", new String[] {\"ID\"});\n\t\t\t\t\n\t\t\t\tpreparedStatement.setString(1, member.getEmail());\n\t\t\t\tpreparedStatement.setString(2, member.getPassword());\n\t\t\t\tpreparedStatement.setString(3, member.getName());\n\t\t\t\tpreparedStatement.setTimestamp(4, Timestamp.valueOf(member.getRegisterDateTime()));\n\t\t\t\t\n\t\t\t\treturn preparedStatement;\n\t\t\t}\n\t\t\t\n\t\t}, keyholder);\n\t\t\n\t\tmember.setId(String.valueOf(keyholder.getKey()));\n\t}", "void memberAdded(final String id);", "int updateByPrimaryKey(ScPartyMember record);", "public void setPatientID(java.lang.String param){\n \n this.localPatientID=param;\n \n\n }", "public void setPatientID(java.lang.String param){\n \n this.localPatientID=param;\n \n\n }", "@Override\n\tpublic MemberVO selectMember(String userid) {\n\t\treturn (MemberVO) sqlSession.selectOne(\"com.coderdy.myapp.member.dao.mapper.MemberMapper.selectMember\", userid);\n\t}", "public Member(String lastName, String firstName, String email, int phoneNo, int id) {\r\n\t\tthis.lastName = lastName;\r\n\t\tthis.firstName = firstName;\r\n\t\tthis.email = email;\r\n\t\tthis.phoneNo = phoneNo;\r\n\t\tthis.id = id;\r\n\t\t\r\n\t\tthis.loans = new HashMap<>();\r\n\t}", "public void setAD_Column_ID (int AD_Column_ID);" ]
[ "0.7081752", "0.68674374", "0.68674374", "0.6817978", "0.6808146", "0.66795665", "0.65809387", "0.65809387", "0.6476044", "0.6476044", "0.6457744", "0.6457744", "0.64403397", "0.64403397", "0.6283755", "0.6215626", "0.6157039", "0.61519533", "0.6088098", "0.6075843", "0.6066627", "0.6055646", "0.6042053", "0.59904087", "0.59487563", "0.5912956", "0.5871877", "0.5829449", "0.58141613", "0.5791993", "0.57369876", "0.57360286", "0.5640463", "0.5634779", "0.5619924", "0.56141174", "0.55997866", "0.5593945", "0.5588257", "0.55762374", "0.5539881", "0.5533818", "0.55217046", "0.5484726", "0.5457284", "0.54440963", "0.5442704", "0.5441453", "0.54378706", "0.54105335", "0.5406708", "0.5406115", "0.54055256", "0.5404783", "0.53724927", "0.5349679", "0.5346566", "0.53318644", "0.5325465", "0.5303914", "0.53005445", "0.5276476", "0.5262331", "0.52569294", "0.52443683", "0.5235879", "0.5226585", "0.52214485", "0.52127033", "0.5206347", "0.5190837", "0.5168849", "0.5167327", "0.51567376", "0.51474416", "0.514386", "0.5140269", "0.51330525", "0.5096053", "0.5093922", "0.509378", "0.50898594", "0.5065343", "0.506254", "0.50532115", "0.5039021", "0.5038481", "0.5034531", "0.5028294", "0.5026464", "0.50078225", "0.5006043", "0.49994686", "0.49903235", "0.49902108", "0.49902108", "0.4989741", "0.49864838", "0.49808496" ]
0.69091916
2
This method was generated by MyBatis Generator. This method returns the value of the database column service.NAME
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "@Override\n public String getName() {\n return columnInfo.getName();\n }", "public String getName() {\n return columnName;\n }", "public String getName(){\n\t\t\treturn columnName;\n\t\t}", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "@ApiModelProperty(value = \"Gets and sets the name of the column.\")\n public String getName() {\n return name;\n }", "@Override\n\tpublic java.lang.String getName() {\n\t\treturn _expandoColumn.getName();\n\t}", "public String getName() { return _sqlName; }", "String getServiceName();", "String getServiceName();", "public String getColumnName() {\r\n return dataBinder.getColumnName();\r\n }", "public String getDescriptiveServiceName() {\n if (serviceAbbreviation != null) {\n return serviceAbbreviation;\n }\n return serviceFullName;\n }", "public abstract String getDatabaseColumnName(String entityName, String propertyName);", "@Column(name = \"name\")\n public String getName() {\n return name;\n }", "public StrColumn getName() {\n return delegate.getColumn(\"name\", DelegatingStrColumn::new);\n }", "public StrColumn getName() {\n return delegate.getColumn(\"name\", DelegatingStrColumn::new);\n }", "public String getName() {\n return (NAME_PREFIX + _applicationId + DELIM + _endpointId);\n }", "public String getServiceName();", "public ServiceName getServiceName() {\n return serviceName;\n }", "public String getServiceName() {\r\n return this.serviceName;\r\n }", "public String getServiceName() {\n return this.serviceName;\n }", "public String getNameForm()\n {\n return schema.getNameForm();\n }", "public String getServiceName() {\n return this.serviceName;\n }", "public java.lang.String getServicename() {\n\treturn servicename;\n}", "public StrColumn getName() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"name\", StrColumn::new) :\n getBinaryColumn(\"name\"));\n }", "public String getServiceName()\n {\n return this.mServiceName;\n }", "public String getAttributeName(){\n if(field.getAnnotation(Column.class) != null){\n return field.getAnnotation(Column.class).column();\n }\n if( field.getAnnotation(PrimaryKey.class) !=null){\n return field.getAnnotation(PrimaryKey.class).name();\n }\n return null;\n }", "public String getName(Class<? extends RawEntity<?>> entity) {\r\n\t\tTable tableAnnotation = entity.getAnnotation(Table.class);\r\n\t\tif (tableAnnotation != null) {\r\n\t\t\treturn tableAnnotation.value();\r\n\t\t}\r\n\t\t\r\n\t\tif (classMappings.containsKey(entity)) {\r\n\t\t\treturn classMappings.get(entity);\r\n\t\t}\r\n\t\t\r\n\t\treturn postProcessName(processName(convertName(entity)));\r\n\t}", "public String getName() {\n if (mName == null) {\n mName = mId;\n int index = mName.lastIndexOf(WS_SEP);\n if (index != -1) {\n mName = mName.substring(index + 1);\n }\n }\n\n return mName;\n }", "String getColumnName();", "public String getName(){\n\n //returns the value of the name field\n return this.name;\n }", "@Override\n public String getBusinessName() {\n\n if(this.businessName == null){\n\n this.businessName = TestDatabase.getInstance().getClientField(token, id, \"businessName\");\n }\n\n return businessName;\n }", "public String getFullName()\n {\n String schema = db.getSchema();\n return (schema!=null) ? schema+\".\"+name : name;\n }", "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn cf.getName();\n\t\t\t}", "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn cf.getName();\n\t\t\t}", "public String getName(){\n\t\tif(name==null) return webserviceUrl;\n\t\treturn name;\n\t}", "java.lang.String getServiceId();", "public String getName() {\n return ctTableColumn.getName();\n }", "public String databaseName();", "public String getServiceName() {\n return serviceName;\n }", "@Transient\n\tpublic String getServiceId()\t{\n\t\treturn mServiceId;\n\t\t//else return \"N/A\";\n\t}", "public abstract String getServiceName();", "public String getServiceName()\r\n {\r\n return serviceName;\r\n }", "@Override\n public String getName() {\n return name();\n }", "public String getName() {\n return (String) getValue(NAME);\n }", "public String getTypeName() {\r\n return typeId.getSQLTypeName();\r\n }", "String getName() {\n\t\treturn customer.getName();\n\t}", "String getName() {\r\n\t\t\treturn this.name;\r\n\t\t}", "public static String getServiceName() {\n\t\treturn serviceName;\n\t}", "public static String getServiceName() {\n\t\treturn serviceName;\n\t}", "@Override\n public String getName() {\n return this.name();\n }", "public String getServiceName()\n {\n return serviceName;\n }", "@Override\n\t\tfinal public String getName() {\n\t\t\treturn this.Name;\n\t\t}", "public String getName() {\r\n return this.name();\r\n }", "public String getServiceName(){\n return serviceName;\n }", "public String getNameOfEntityHere() {\n \n return entityHere_.getName();\n \n }", "@Basic( optional = true )\r\n\t@Column( length = 256 )\r\n\tpublic String getName() {\r\n\t\treturn this.name;\r\n\t\t\r\n\t}", "public String getName() {\n return getProperty(Property.NAME);\n }", "@Override\n public String getDatabaseName() {\n return mappings.getDatabaseName();\n }", "public String getServiceName() {\n return serviceName;\n }", "public String getName() {\r\n return this.NAME;\r\n }", "@Override\r\n\tpublic String getName() {\n\t\treturn this.name;\r\n\t}", "@XmlElement(name = \"operationName\", namespace = Namespaces.SRV)\n final String getOperationName() {\n if (LEGACY_XML) {\n final OperationMetadata operation = getOperation();\n if (operation != null) {\n return operation.getOperationName();\n }\n }\n return null;\n }", "public String getColumnName();", "public String getServiceID();", "public String getPkColumnName() {\n return featureDao.getPkColumnName();\n }", "public String getCustomName ( ) {\n\t\treturn extract ( handle -> handle.getCustomName ( ) );\n\t}", "public com.liferay.portal.kernel.service.ClassNameService getClassNameService() {\n\t\treturn classNameService;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn this.name;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn this.name;\n\t}", "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn name;\n\t\t\t}", "@Override\n public String getName() throws RemoteException {\n return this.name;\n }", "String getSchemaName();", "String getSchemaName();", "public String getColumnName() {\r\n return navBinder.getColumnName();\r\n }", "String getCassandraName();", "private String getServiceName(Descriptors.ServiceDescriptor descriptor ) {\r\n return descriptor.getFullName();\r\n }", "public String schemaName() {\n return this.schemaName;\n }", "@Override\n\tpublic String getName() throws RemoteException {\n\t\t\n\t\treturn name;\n\t}", "@Override\n\t@Column(name = \"leadTypeName\", length = 5, nullable = false)\n\tpublic String getName()\n\t{\n\t\treturn super.getName();\n\t}", "public String getName(){\r\n\t\treturn this.name;\r\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn this.name;\n\t\t\n\t}", "@Basic\n @Column(name = \"name\", nullable = true, length = 30)\n public String getName() {\n return name;\n }", "public String getColumnName() {\n return this.columnName;\n }", "public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\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 serviceName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\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 serviceName_ = s;\n }\n return s;\n }\n }", "public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\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 serviceName_ = s;\n }\n return s;\n }\n }", "public String getName(){\n\t\treturn this.name;\n\t}", "public String getName(){\n\t\treturn this.name;\n\t}", "public String getName(){\n\t\treturn this.name;\n\t}", "public String getName(){\n\t\treturn this.name;\n\t}", "public String getName(){\n\t\treturn this.name;\n\t}", "public String getPropertyNameMapped(String aName) { return aName; }", "public String getName() {\n return (this.name);\n }", "public String getCustomerName()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_NAME, LEN_CUSTOMER_NAME) ;\n\t}", "public java.lang.String getServiceName(){\n return localServiceName;\n }", "String getName() {\n return this.name;\n }", "public String getColumnName(int columnIndex) {\r\n return this.table.getSchema().getColumnName(columnIndex);\r\n }", "public java.lang.String getName();", "public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n serviceName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }" ]
[ "0.64198667", "0.6411954", "0.6332808", "0.6278795", "0.6269574", "0.6269574", "0.6158113", "0.61503065", "0.6130006", "0.6113603", "0.6113603", "0.6098556", "0.60482097", "0.6030593", "0.59816766", "0.5973456", "0.5973456", "0.59572566", "0.591039", "0.5898827", "0.58736724", "0.58556163", "0.5834035", "0.58273375", "0.5798584", "0.57956827", "0.57864547", "0.5777174", "0.57694775", "0.5765375", "0.57642096", "0.5761025", "0.57405084", "0.5735011", "0.5729086", "0.5729086", "0.5723908", "0.5693693", "0.5685733", "0.56579214", "0.56484264", "0.56428885", "0.5640308", "0.5637934", "0.56364703", "0.56329477", "0.5625841", "0.5621032", "0.56200194", "0.5616232", "0.5616232", "0.5614243", "0.5610682", "0.5602623", "0.56002605", "0.5596954", "0.55873895", "0.5586051", "0.5583773", "0.5579614", "0.55778784", "0.5577218", "0.5573122", "0.55708545", "0.5567216", "0.5566562", "0.55665296", "0.5560316", "0.5559558", "0.5556297", "0.5556297", "0.5555986", "0.55553013", "0.5550698", "0.5550698", "0.55462193", "0.55441475", "0.5543791", "0.55432975", "0.55426186", "0.5539333", "0.5537266", "0.5531933", "0.55311656", "0.5529961", "0.552577", "0.5520871", "0.5520871", "0.55208576", "0.55208576", "0.55208576", "0.55208576", "0.55208576", "0.55204046", "0.552037", "0.5519082", "0.5515867", "0.5511003", "0.54998225", "0.54966944", "0.5495937" ]
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column service.NAME
public void setName(String name) { this.name = name == null ? null : name.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void setServiceName(String serviceName);", "@Override\n\tpublic void setName(java.lang.String name) {\n\t\t_expandoColumn.setName(name);\n\t}", "public void setServicename(java.lang.String newServicename) {\n\tservicename = newServicename;\n}", "public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "public void setServiceName(String serviceName)\r\n {\r\n this.serviceName = serviceName;\r\n }", "public void setName(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/name\",v);\n\t\t_Name=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "public void setName(final java.lang.String name) {\r\n this.name = name;\r\n this.values.put(UserInfoTable.NAME, name);\r\n }", "public static void setServiceName(String serviceName) {\n\t\tMDC.put(ApplicationConstants.SERVICE_NAME, serviceName);\n\t}", "public void setDbName(String sDbName);", "public void setServiceName(String serviceName)\n {\n this.serviceName = serviceName;\n }", "public void setColumnName (String ColumnName);", "public void setServiceGroupName(java.lang.String param){\n localServiceGroupNameTracker = true;\n \n this.localServiceGroupName=param;\n \n\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "void setName(String name) {\r\n this.name = name;\r\n }", "void setName(String name) {\n this.name = name;\n }", "@Override\r\n public void setName(String name) {\n }", "public Builder setServiceName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n serviceName_ = value;\n onChanged();\n return this;\n }", "@Override\n public void setName(String name) {\n \n }", "void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String value) {\n this.name = value;\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "@Override\n\tpublic void setName(String name) {\n\t\t\n\t}", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n\t\tName = name;\n\t}", "public void setServiceName(String serviceName) {\n this.serviceName = serviceName;\n }", "public void setServiceName(String serviceName) {\n this.serviceName = serviceName;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setNamedId(String dbNameId);", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) \n {\n this.name = name;\n }", "public void setName(String Name){\r\n name = Name;\r\n }", "public void setName(String new_name){\n this.name=new_name;\n }", "@Override\n\tpublic void setName(String name) throws RemoteException {\n\t\tthis.name = name;\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}", "public void setName(String s) {\n this.name = s;\n }", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "@Override\n\tpublic void setName(String arg0) {\n\n\t}", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setService(String service) {\n this.service = service;\n }", "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\n this.name = name;\n }", "@Test\n public void testSetName() {\n service.setName(\"ServiceNew\");\n assertEquals(\"ServiceNew\", service.getName());\n \n }", "void setName(String name)\n {\n this.name = name;\n }", "@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}", "@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}", "public void setName(String name) {\n this.name = name;\n }" ]
[ "0.613375", "0.6129687", "0.61261165", "0.5971799", "0.5930493", "0.57969725", "0.57886344", "0.57881993", "0.57641137", "0.5741463", "0.5713868", "0.5683948", "0.56811625", "0.5678856", "0.5678856", "0.5677807", "0.56726664", "0.5670359", "0.56696033", "0.5664441", "0.5645161", "0.56441116", "0.56381685", "0.56381226", "0.56281114", "0.56281114", "0.56281114", "0.56163186", "0.56141984", "0.56141984", "0.56141984", "0.56141984", "0.56141984", "0.56141984", "0.56141984", "0.56112945", "0.56112945", "0.56112945", "0.5604384", "0.5604384", "0.56016177", "0.5600361", "0.5600361", "0.5598789", "0.55912673", "0.5588541", "0.5588541", "0.5588541", "0.5588541", "0.5588541", "0.5588541", "0.5588541", "0.5588541", "0.5588541", "0.5588541", "0.5588541", "0.5579628", "0.55795836", "0.5577707", "0.5571871", "0.55638224", "0.55638224", "0.55638224", "0.5563271", "0.55604225", "0.55565083", "0.55565083", "0.55565083", "0.5556329", "0.5556329", "0.5556329", "0.5556329", "0.5556127", "0.5556127", "0.5556127", "0.5556127", "0.5556127", "0.5556127", "0.5556127", "0.5556127", "0.5556127", "0.5556127", "0.5556127", "0.5556127", "0.5556127", "0.5556127", "0.5556127", "0.5556127", "0.5556127", "0.5556127", "0.5556127", "0.5554116", "0.55483276", "0.55475205", "0.5546985", "0.55396175", "0.5538985", "0.5534296", "0.5531386", "0.5531386", "0.5519632" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column service.INPUT_TIME
public Date getInputTime() { return inputTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInputTime(Date inputTime) {\n this.inputTime = inputTime;\n }", "public void setInputTime(Date inputTime) {\n this.inputTime = inputTime;\n }", "public int getMatchTime() {\n return getIntegerProperty(\"Time\");\n }", "public String getTimeType() {\n\t\treturn timeType;\n\t}", "private LocalTime get_TIME(int column) {\n // Time column is always 8 chars long\n String timeString = dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n 8, charset_[column - 1]).toString();\n return LocalTime.parse(timeString, DRDAConstants.DB2_TIME_FORMAT);\n// return DateTime.timeBytesToTime(dataBuffer_,\n// columnDataPosition_[column - 1],\n// cal,\n// charset_[column - 1]);\n }", "@SimpleFunction(description = \"Gets the current time.\"\n + \"It is formatted correctly for iSENSE\")\n public String GetTime() {\n Calendar cal = Calendar.getInstance();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\");\n return sdf.format(cal.getTime()).toString();\n }", "public OutputTimeSpec getOutputTimeSpec() {\n\t\treturn fieldOutputTimeSpec;\n\t}", "public java.sql.Time getREQ_START_TIME()\n {\n \n return __REQ_START_TIME;\n }", "public Date getRequesttime() {\n return requesttime;\n }", "public String getStartTime();", "public String getStartTime();", "public Date getEventTime() {\n\t\treturn time;\n\t}", "public Date getOPER_TIME() {\n return OPER_TIME;\n }", "public String getStartTime() {\n\t\treturn (new Parser(value)).getString();\n\t}", "public Date getOptTime() {\n\t\treturn optTime;\n\t}", "public double getTime(int timePt);", "public String getTime() {\n return this.time;\n }", "public String getH_time_textFieldText() {\n return H_time_textField.getText();\n }", "@javax.annotation.Nullable\n public Long getTime() {\n return time;\n }", "public Long getTime() {\n return time;\n }", "public Integer getTestTime() {\n return testTime;\n }", "public String getInsTime() {\n return insTime;\n }", "private long getTime(LogModel logModel) throws FieldNotFoundException, ParseException {\n try {\n String timeStr = logModel.getProcedureEndTime();\n long time = Long.parseLong(timeStr);\n if (logModel.getProcedureEndTime().startsWith(\"20\") && timeStr.length() == 14) {\n time = TimeConvertor.convertTime(logModel.getProcedureEndTime(), \"yyyyMMddHHmmss\");\n return time;\n }\n if (time > 4000000000L) {\n // ms\n return time / 1000;\n }\n return time;\n } catch (NumberFormatException e) {\n try {\n long time = TimeConvertor.convertTime(logModel.getProcedureEndTime());\n return time;\n } catch (ParseException ex) {\n throw ex;\n }\n }\n }", "public double getStartTime();", "public Integer getStartTime() {\n return startTime;\n }", "public long getEventTime();", "T getEventTime();", "BigInteger getResponse_time();", "public int getTime() {\n return time;\n }", "public int getTime() {\n return time;\n }", "public int getTime() {\n return time;\n }", "public int getTime() {\r\n return time;\r\n }", "public JTextField getTimeTextField() {\n\t\treturn this.txtTime;\n\t}", "public String getTime(){\n return time;\n }", "public java.sql.Time getREQ_END_TIME()\n {\n \n return __REQ_END_TIME;\n }", "public String getHourActualStart() {\n return hourStartInput.getAttribute(\"value\");\n }", "public java.lang.Integer getTime() {\n return time;\n }", "long getStartTime() {\n return startTime;\n }", "public double getTime() {\n return this.time;\n }", "public String getTime() {\n return time;\n }", "@JsonGetter(\"time\")\r\n public String getTime() {\r\n return time;\r\n }", "public String getStartTime() {\n return startTime;\n }", "public String getStartTime()\n {\n return this.startTime;\n }", "public java.lang.Integer getTime() {\n return time;\n }", "public int getTime() {\n if (USE_SERIALIZABLE) {\n return childBuilder.getTime();\n } else {\n // @todo Replace with real Builder object if possible\n return convertNullToNOT_SET(childBuilderElement.getAttributeValue(\"time\"));\n }\n }", "public long getStartTime ()\r\n {\r\n return startTime;\r\n }", "public String getEventTime() {\r\n return eventTime;\r\n }", "public long getPlayerTime ( ) {\n\t\treturn extract ( handle -> handle.getPlayerTime ( ) );\n\t}", "long getStartTime();", "public Date time() {\n return _time;\n }", "public Date getEventTime() {\n return eventTime;\n }", "public Date getEventTime() {\n return eventTime;\n }", "public double getStartTime() {\n return startTime;\n }", "public double getStartTime() {\n return startTime;\n }", "public Date getPutintime() {\n return putintime;\n }", "public long getTime(){\n return this.time;\n }", "public long getStart_time() {\n return start_time;\n }", "public String getStartTime() {\n return this.StartTime;\n }", "public Date time() {\n return _time;\n }", "public Date time() {\n return _time;\n }", "public String getEventTime1()\n {\n EventTime1 = timeField1.getText();\n return EventTime1;\n }", "public Date getRequiredTime() {\n return requiredTime;\n }", "public long getStartTime();", "public long getStartTime();", "com.google.protobuf.Timestamp getStartTime();", "public int getTime() { return _time; }", "public String getReqTime() {\n return reqTime;\n }", "int getStartTime();", "int getStartTime();", "int getStartTime();", "public String getTime() {\r\n\t\treturn time;\r\n\t}", "public String getTime_start() {\n return time_start;\n }", "public DateTime ingestionTime() {\n return this.ingestionTime;\n }", "public String getStartTime() {\n return startTime;\n }", "public String getStartTime() {\n return startTime;\n }", "public String getStartTime() {\n return startTime;\n }", "public String getStartTime() {\n return startTime;\n }", "@Override\n\tpublic String getTime() {\n\t\treturn time;\n\t}", "public long getTime() {\r\n \treturn time;\r\n }", "public long getStartTime() {\r\n return startTime;\r\n }", "public String getStarttime() {\n return starttime;\n }", "public Integer getOnTime() {\n return onTime;\n }", "public String getInTime1() {\n\treturn inTime1;\n }", "public long getTime() {\n return time;\n }", "public int getStartTime()\n {\n if (isRepeated()) return start;\n else return time;\n }", "public java.util.Date getRequestTime() {\n return this.requestTime;\n }", "public String getTime() {\n\t}", "public String getTimeid() {\n return timeid;\n }", "public String getEventTime2()\n {\n EventTime2 = timeField2.getText();\n return EventTime2;\n }", "public double getStartTime()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STARTTIME$22);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "public String getTime() {\n\t\treturn time;\n\t}", "public Date getTime() {\r\n return time;\r\n }", "public Date getTime() {\r\n return time;\r\n }", "public Date getTime() {\r\n return time;\r\n }", "@ApiModelProperty(value = \"The timestamp that the `last_price` represents.\")\n public OffsetDateTime getTime() {\n return time;\n }", "public long getStartTime() {\n return startTime;\n }", "public long getStartTime() {\n return startTime;\n }", "public long getStartTime() {\n return startTime;\n }", "public long getStartTime() {\n return startTime;\n }" ]
[ "0.5636246", "0.5636246", "0.55321467", "0.55244577", "0.5499002", "0.5489463", "0.54762304", "0.5457447", "0.5336435", "0.53344077", "0.53344077", "0.53321445", "0.532674", "0.53176874", "0.52988267", "0.5298411", "0.52925247", "0.5288698", "0.52854836", "0.5283476", "0.52718014", "0.5257667", "0.52548724", "0.5252869", "0.5249798", "0.5239774", "0.52319455", "0.5224356", "0.5221994", "0.5221994", "0.5221994", "0.5221481", "0.5218492", "0.5208504", "0.520648", "0.52048", "0.5202933", "0.5196548", "0.5184873", "0.51816595", "0.5176685", "0.5174112", "0.51738995", "0.5166287", "0.51658463", "0.5163722", "0.515248", "0.5151127", "0.51451164", "0.514178", "0.51352453", "0.51352453", "0.5132795", "0.5132795", "0.5132588", "0.5122105", "0.5121735", "0.51215166", "0.51194155", "0.51194155", "0.511745", "0.5116694", "0.51134694", "0.51134694", "0.51091266", "0.5106812", "0.5104105", "0.5102614", "0.5102614", "0.5102614", "0.5100136", "0.50983346", "0.50973135", "0.5096746", "0.5096746", "0.5096746", "0.5096746", "0.5086738", "0.5085657", "0.5078939", "0.50719666", "0.5071654", "0.50714254", "0.5067409", "0.50673425", "0.506584", "0.50655556", "0.5063822", "0.5058826", "0.5057701", "0.50540894", "0.5050125", "0.5050125", "0.5050125", "0.50493616", "0.50481194", "0.50481194", "0.50481194", "0.50481194" ]
0.69500554
1
This method was generated by MyBatis Generator. This method sets the value of the database column service.INPUT_TIME
public void setInputTime(Date inputTime) { this.inputTime = inputTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTime(DateTime inputTime){\n time = inputTime.getMillis();\n timeZone = inputTime.getZone();\n }", "public Date getInputTime() {\n return inputTime;\n }", "public Date getInputTime() {\n return inputTime;\n }", "public abstract void setStartTime(Date startTime);", "public void setTime(String time) {\n }", "public void setTime(Time time) {\n this.time = time; // assigns the time argument value to the time attribute\n }", "public void setTime(){\r\n \r\n }", "public void setOutputTimeSpec(OutputTimeSpec outputTimeSpec) throws java.beans.PropertyVetoException {\n\t\tif (!Matchable.areEqual(fieldOutputTimeSpec,outputTimeSpec)) {\n\t\t\tOutputTimeSpec oldValue = fieldOutputTimeSpec;\n\t\t\tfireVetoableChange(PROPERTY_OUTPUT_TIME_SPEC, oldValue, outputTimeSpec);\n\t\t\tfieldOutputTimeSpec = outputTimeSpec;\n\t\t\tfirePropertyChange(PROPERTY_OUTPUT_TIME_SPEC, oldValue, outputTimeSpec);\n\t\t}\n\t}", "public void setStartTime (long x)\r\n {\r\n startTime = x;\r\n }", "void setTime(final int time);", "public void setTime(){\n \tDatabaseManager.getDBM().setLockedTime(cal); \n }", "public void setTime(double time) {_time = time;}", "@Override\n\tpublic Long updateStartTime() {\n\t\treturn null;\n\t}", "public void setTime(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), TIME, value);\r\n\t}", "public void setREQ_START_TIME(java.sql.Time value)\n {\n if ((__REQ_START_TIME == null) != (value == null) || (value != null && ! value.equals(__REQ_START_TIME)))\n {\n _isDirty = true;\n }\n __REQ_START_TIME = value;\n }", "public void setInputDate(Date inputDate) {\r\n this.inputDate = inputDate;\r\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "public void setTimeUpdate(Date timeUpdate) {\n this.timeUpdate = timeUpdate;\n }", "@JsonSetter(\"time\")\r\n public void setTime(String time) {\r\n this.time = time;\r\n }", "void setTime(int index, Time value) throws SQLException;", "public void setInTime1(String inTime1) {\n\tthis.inTime1 = inTime1;\n }", "public void setTimeStart(int timeStart) {\r\n this.timeStart = timeStart;\r\n }", "public void setStartTime(long value) {\r\n this.startTime = value;\r\n }", "public void setRequesttime(Date requesttime) {\n this.requesttime = requesttime;\n }", "public void setStartTime(double startTime)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STARTTIME$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STARTTIME$22);\r\n }\r\n target.setDoubleValue(startTime);\r\n }\r\n }", "public void setTime(Date time) {\r\n this.time = time;\r\n }", "public void setTime(Date time) {\r\n this.time = time;\r\n }", "public void setTime(Date time) {\r\n this.time = time;\r\n }", "public void setOPER_TIME(Date OPER_TIME) {\n this.OPER_TIME = OPER_TIME;\n }", "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void setStartTime(String startTime) {\n this.startTime = startTime;\n }", "public void setStartTime(String startTime) {\n this.startTime = startTime;\n }", "public void setTime(String time) {\n this.time = time;\n }", "public void setTime(java.lang.Integer value) {\n this.time = value;\n }", "@Command\n\t@NotifyChange(\"currentTime\")\n\tpublic void updateTime() {\n\t}", "public void setTestTime(Integer testTime) {\n this.testTime = testTime;\n }", "public void setTime(Date time) {\n this.time = time;\n }", "public void setTime(Date time) {\n this.time = time;\n }", "public void setTime(Date time) {\n this.time = time;\n }", "public void setTime(Date time) {\n this.time = time;\n }", "public void setInputDate(Date inputDate) {\r\n\t\tthis.inputDate = inputDate;\r\n\r\n\t}", "public void setTime(long time)\n {\n this.time = time;\n\n }", "public void setStartTime(String StartTime) {\n this.StartTime = StartTime;\n }", "private void setTime()\n\t{\n\t\t//local variable \n\t\tString rad = JOptionPane.showInputDialog(\"Enter the time spent bicycling: \"); \n\t\t\n\t\t//convert to int\n\t\ttry {\n\t\t\tbikeTime = Integer.parseInt(rad);\n\t\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tSystem.out.println(\"Invalid input.\");\n\t\t\t}\n\t}", "public void setBeginTime(String time){beginTime = time;}", "public void setStartTime(Long startTime) {\n this.startTime = startTime;\n }", "@Override\n\tpublic void setStartTime(int t) {\n\t\t\n\t}", "public void setStartTime(Integer startTime) {\n this.startTime = startTime;\n }", "public void setTime( Date time ) {\n this.time = time;\n }", "public void setStarttime(Date starttime) {\n this.starttime = starttime;\n }", "public void setStarttime(Date starttime) {\n this.starttime = starttime;\n }", "public void setTime(int parameterIndex, Time x) throws SQLException {\n currentPreparedStatement.setTime(parameterIndex, x);\n }", "private void setEditedTime(int value) {\n \n editedTime_ = value;\n }", "public void setTime(long time) {\r\n this.time = time;\r\n }", "public void setTime(String time) {\r\n\t\tthis.time = time;\r\n\t}", "public static void setTime(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, TIME, value);\r\n\t}", "public void setEndTime(String time){endTime = time;}", "@Override\r\n\tpublic String storeTime(String empName, String type) {\n\t\tEmployee employee = employeeRepository.getEmployeeByEmployeeName(empName);\r\n\t\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n\t\tDate date = new Date();\r\n\t\tLocalDateTime dateTime = LocalDateTime.now();\r\n\t\tSystem.out.println(\"Time : \"+dateFormat.format(date));\r\n\t\tif(\"inTime\".equalsIgnoreCase(type)){\r\n\t\t\temployee.setInTime(dateFormat.format(date));\r\n\t\t}else{\r\n\t\t\temployee.setOutTime(dateFormat.format(date));\t\r\n\t\t}\r\n\t\temployeeRepository.save(employee);\r\n\t\treturn dateFormat.format(date);\r\n\t}", "public void setTime(long time) {\n this.time = time;\n }", "public void setStartTime(Date startTime) {\r\n this.startTime = startTime;\r\n }", "void setStartTime(java.util.Calendar startTime);", "public void setStartTime(String startTime) {\n this.startTime = startTime;\n }", "public void setStartTime(String startTime) {\n this.startTime = startTime;\n }", "public void setStartTime(String startTime) {\n this.startTime = startTime;\n }", "public void setOptTime(Date optTime) {\n\t\tthis.optTime = optTime;\n\t}", "@Override\n\tpublic void setTime(String time) {\n\t\tthis.time = time;\n\t}", "public void setStart_time(long start_time) {\n this.start_time = start_time;\n }", "public void updateTime(String columnName, java.sql.Time x) throws SQLException\n {\n m_rs.updateTime(columnName, x);\n }", "public void setStartTime(long startTime) {\n\t\tthis.startTime = startTime;\n\t}", "public void setStartTime(long ts) {\n\t\tthis.startTime = ts;\t\t\n\t}", "public void setInsTime(String insTime) {\n this.insTime = insTime;\n }", "public void setTimeStamp(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localTimeStampTracker = true;\r\n } else {\r\n localTimeStampTracker = false;\r\n \r\n }\r\n \r\n this.localTimeStamp=param;\r\n \r\n\r\n }", "public void setStartTimeString(String startTimeString) {\n this.startTimeString = startTimeString;\n }", "public void setServiceStartTime() {\r\n\t\t\tthis.serviceStartTime = RNG.MAXINT;\r\n\t\t}", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "public void setStartTime(java.lang.Long value) {\n this.start_time = value;\n }", "public void updateTime(String columnName, Time x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateTime(\" + quote(columnName) + \", x);\");\n }\n update(columnName, x == null ? (Value) ValueNull.INSTANCE : ValueTime.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }", "public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }", "public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }", "public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }", "public void setTime_start(java.lang.String time_start) {\r\n this.time_start = time_start;\r\n }", "public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException {\n currentPreparedStatement.setTime(parameterIndex, x, cal);\n\n }", "public void setTime(int time) {\n\t\tthis.time = time;\n\t}", "public void setTime(String time) {\n\t\tthis.time = time;\n\t}", "public void setUpdateTime(Date updateTime)\n/* */ {\n/* 198 */ this.updateTime = updateTime;\n/* */ }", "public void setTime(Date time) {\r\n\t\tthis.time = time;\r\n\t}", "@Override\r\n\tpublic void setMyTime(MyTime myTime) {\n\t\t\r\n\t}", "public void setStartTimeDate(Date startTimeDate) {\n this.startTimeDate = startTimeDate;\n }", "@Test\r\n public void testSetStartTime() {\r\n System.out.println(\"setStartTime\");\r\n String startTime = \"\";\r\n \r\n instance.setStartTime(startTime);\r\n assertEquals(startTime, instance.getStartTime());\r\n \r\n }", "@DSSafe(DSCat.UTIL_FUNCTION)\n \n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:56:11.275 -0500\", hash_original_method = \"58DD96CFC8DDA00016DEC24CC6519017\", hash_generated_method = \"1F810C618BA62488684578EB05C3C6A1\")\n \n@Override\n public void setTime(long theTime) {\n /*\n * Store the Date based on the supplied time after removing any time\n * elements finer than the day based on zero GMT\n */\n super.setTime(normalizeTime(theTime));\n }", "public void setTime(Long time) {\n this.time = time;\n }", "public void setREQ_END_TIME(java.sql.Time value)\n {\n if ((__REQ_END_TIME == null) != (value == null) || (value != null && ! value.equals(__REQ_END_TIME)))\n {\n _isDirty = true;\n }\n __REQ_END_TIME = value;\n }" ]
[ "0.65393203", "0.6148631", "0.6148631", "0.5623203", "0.5595647", "0.5489193", "0.5390222", "0.53574413", "0.5317599", "0.5303096", "0.5293666", "0.5290372", "0.52769315", "0.5269617", "0.5259286", "0.5250594", "0.5227649", "0.5227649", "0.5227649", "0.52270985", "0.5216545", "0.52011967", "0.519829", "0.51980776", "0.5196493", "0.51916915", "0.51804054", "0.5159195", "0.5159195", "0.5159195", "0.51533115", "0.5133053", "0.5133053", "0.5131736", "0.5131736", "0.512661", "0.5125721", "0.5121319", "0.5110456", "0.5106847", "0.5106847", "0.5106847", "0.5106847", "0.5105968", "0.5103843", "0.510168", "0.50872046", "0.50850344", "0.5084156", "0.5081258", "0.50632", "0.50628126", "0.5061346", "0.5061346", "0.5058618", "0.5052964", "0.5048156", "0.5045919", "0.50384265", "0.5035694", "0.50333875", "0.5032002", "0.5031207", "0.5027575", "0.5022797", "0.5022797", "0.5022797", "0.50194836", "0.5013665", "0.4999122", "0.49952796", "0.49939576", "0.49937204", "0.49912894", "0.4984559", "0.49813274", "0.49754545", "0.4967999", "0.4967999", "0.4967999", "0.4967999", "0.49639934", "0.4957881", "0.49496138", "0.49496138", "0.49496138", "0.49496138", "0.49487895", "0.49477258", "0.49473068", "0.4946277", "0.49447444", "0.49447152", "0.49411964", "0.49410778", "0.493252", "0.49265224", "0.49227813", "0.4918936" ]
0.70896614
1
This method was generated by MyBatis Generator. This method returns the value of the database column service.INPUT_USER
public String getInputUser() { return inputUser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getUserId(JSONObject input) throws JSONException {\n String userId;\n\n if(input.has(\"user_id\")) { //$NON-NLS-1$\n userId = input.getString(\"user_id\"); //$NON-NLS-1$\n } else {\n userId = userSessionService.getUser().getUsername();\n }\n\n return userId;\n }", "public String getuserName() {\r\n return (String)getNamedWhereClauseParam(\"userName\");\r\n }", "public String getUser1()\n {\n return userInput1;\n }", "String getUsersInput(String outForUser) throws IOException;", "public String getJdbcUser()\n {\n return getStringValue(DataSourceDobj.FLD_JDBC_USER);\n }", "protected String getValueOfColumnLastUpdateUser() {\n return SessionContext.open().getUid();\n }", "public String getUser2()\n {\n return userInput2;\n }", "public String getInputBy() {\n return inputBy;\n }", "public String getDbUser() {\n\t\treturn textFieldDbUser.getText();\n\t}", "public String getUserInput() {\n\t\tString input;\n\t\tinput = this.console.next();\n\t\treturn input;\n\t}", "java.lang.String getUser();", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public String returnUserName() {\n\t\treturn this.registration_username.getAttribute(\"value\");\r\n\t}", "public String getUser(){\n \treturn user;\n }", "public String getUserId() {\n return userIdEditText.getText().toString();\n }", "public String getUser() {\n if(user == null)\n return \"\"; \n return user;\n }", "public String getUser() {\r\n \t\treturn properties.getProperty(KEY_USER);\r\n \t}", "public String getTxtUser() {\n return txtUser.getText();\n }", "private String getUserQuery() {\n return \"select UserName,Password, Enabled from users where UserName=?\";\n //return \"select username,password, enabled from users_temp where username=?\";\n }", "public void setInputUser(String inputUser) {\n this.inputUser = inputUser == null ? null : inputUser.trim();\n }", "public String getUser() {\n\treturn strUser;\n }", "String getUserInput();", "@Override\n\t\tpublic User getUserInNo(int userNo) throws Exception {\n\t\t\treturn sqlSession.selectOne(\"UserMapper.getUserInNo\", userNo);\n\t\t}", "public String[] getUserField()\n {\n return this.userField;\n }", "public String[] getUserField()\n {\n return this.userField;\n }", "public String[] getUserField()\n {\n return this.userField;\n }", "@AutoEscape\n\tpublic String getUser_name();", "public static String getUser() {\r\n return user;\r\n }", "public String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public static String getUser() {\n return annotation != null ? annotation.user() : \"Unknown\";\n }", "public String getUser() {\r\n\t\treturn _userName;\r\n\t}", "public String getUser() {\r\n return user;\r\n }", "public String getUserCode() {\n return userCode;\n }", "public String getInputPriceBy() {\n return (String)getAttributeInternal(INPUTPRICEBY);\n }", "String getUser();", "String getUser();", "public org.oasis_open.docs.ns.bpel4people.ws_humantask.api._200803.GetInputDocument.GetInput getGetInput()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.oasis_open.docs.ns.bpel4people.ws_humantask.api._200803.GetInputDocument.GetInput target = null;\n target = (org.oasis_open.docs.ns.bpel4people.ws_humantask.api._200803.GetInputDocument.GetInput)get_store().find_element_user(GETINPUT$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public String getUsuarioInsercion() { return (this.usuarioInsercion == null) ? \"\" : this.usuarioInsercion; }", "public String getUsuarioInsercion() { return (this.usuarioInsercion == null) ? \"\" : this.usuarioInsercion; }", "public String getUser_name() {\n return user_name;\n }", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserName(){\n return this.userName;\n }", "public String getUserName(){\n return this.userName;\n }", "@Column(name = \"INPUT\", length = 1000)\n/* */ @Order(2)\n/* 66 */ public String getInput() { return this.input; }", "public String getUserMi() {\n return userMi;\n }", "public Integer getCreateuser() {\n return createuser;\n }", "public String getUserName(int userId);", "public Integer getUser_id() {\n\t\treturn user_id;\n\t}", "public AppUserTO getAppUser(AppUserTO appUser) {\n\t\tAppUserTO appUserTO = null;\n\t\ttry {\n\t\t\tString query = \"select * from carbon_app_user where 1=1\";\n\t\t\tif (appUser.getId() > 0) {\n\t\t\t\tquery += \" and id=\" + appUser.getId();\n\t\t\t}\n\t\t\tif (StringUtils.isNotEmpty(appUser.getName())) {\n\t\t\t\tquery += \" and name='\" + appUser.getName() + \"'\";\n\t\t\t}\n\t\t\tif (StringUtils.isNotEmpty(appUser.getPassword())) {\n\t\t\t\tquery += \" and password='\" + appUser.getPassword() + \"'\";\n\t\t\t}\n\n\t\t\treturn this.jdbcTemplate.queryForObject(query,\n\t\t\t\t\tnew RowMapper<AppUserTO>() {\n\t\t\t\t\t\tpublic AppUserTO mapRow(ResultSet rs, int rowNum)\n\t\t\t\t\t\t\t\tthrows SQLException {\n\t\t\t\t\t\t\treturn rsToAppUser(rs);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error in AppUserDAO:getAppUser\", e);\n\t\t}\n\t\treturn appUserTO;\n\t}", "public String getDatabaseUser();", "String getUserId();", "String getUserId();", "public String getUserId() {\r\n\t\treturn this.userid.getText();\r\n\t}", "public static String getUser() {\n return user;\n }", "public static String getInput() {\n\t\tScanner inputReader = new Scanner(System.in);\n\t\tString userInput;\n\t\tuserInput = inputReader.nextLine();\n\t\treturn userInput;\n\t}", "public String getUser() {\r\n\t\treturn user;\r\n\t}", "public String getUser() {\r\n\t\treturn user;\r\n\t}", "public String getCreateUser() {\n return createUser; \n }", "public String getUserno() {\r\n return userno;\r\n }", "public int getUser1Y_ID();", "public String getUserKey()\r\n {\r\n return getAttribute(\"userkey\");\r\n }", "@PermitAll\n @Override\n public User getCurrentUser() {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_WHERE_PART, User.QUERY_WHERE_USERNAME);\n params.put(User.PARAM_USERNAME, this.getUserName());\n return getRepository().getEntity(User.class, params);\n }", "public int getUser1X_ID();", "public String getUser_id() {\n return this.user_id;\n }", "public ObservableValue<String> call(CellDataFeatures<User, String> u) {\n\n\t\t\t\t\treturn u.getValue().getPassword();\n\t\t\t\t}", "public String getUser() {\n return user;\n }", "public String getUser() {\n return user;\n }", "public String getUser() {\n return user;\n }", "public String getDbuser() {\n return dbuser;\n }", "public String getUser() {\n\n return (String) comboCreateBox.getSelectedItem();\n }", "public String getUsernumber() {\n return usernumber;\n }", "String getUserName();", "String getUserName();", "public String getUser()\n {\n return _user;\n }", "public java.lang.String getUser() {\n return user;\n }", "@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}", "public String getInputCode() {\r\n return inputCode;\r\n }", "public String getFromUser(){\r\n\t\treturn fromUser;\r\n\t}", "public String getInsUserid() {\n return insUserid;\n }", "public String getUserName()\n {\n return userName;\n }", "String getUserName(String userId);", "public String getUserName(){\n\t\treturn this.userName;\n\t}", "public Long getUser() {\n return user;\n }", "public Long getUserid() {\r\n return userid;\r\n }", "private void getUser(){\n mainUser = DatabaseAccess.getUser();\n }", "public String readCommand() {\n sc = new Scanner(System.in);\n userInput = new TextField();\n return userInput.getText();\n }", "@Override\r\n public User getUser() throws RemoteException, SQLException {\r\n return user;\r\n }", "public int getInput1() {\n return input1;\n }", "@Override\r\n\tpublic int productInputDontPerm() {\n\t\treturn getSqlSession().selectOne(productInputNameSpace+\".productInputDontPerm\");\r\n\t}", "public String getUser() {\n\t\t\t\treturn null;\r\n\t\t\t}" ]
[ "0.61117584", "0.60645044", "0.59860146", "0.5936701", "0.5874652", "0.5865695", "0.5786027", "0.55902547", "0.5580092", "0.5547726", "0.5528829", "0.5498316", "0.5498316", "0.5498316", "0.54955715", "0.54955715", "0.54955715", "0.54578733", "0.54354614", "0.54278165", "0.5420966", "0.5416813", "0.5400359", "0.53831464", "0.537614", "0.5366927", "0.53453845", "0.53430647", "0.5335476", "0.5335476", "0.5335476", "0.53345764", "0.5303239", "0.53015715", "0.53007877", "0.53007877", "0.53007877", "0.52993375", "0.52938014", "0.5283552", "0.5283477", "0.5266201", "0.5258872", "0.5258872", "0.5243377", "0.52410024", "0.52410024", "0.523985", "0.5235655", "0.5235655", "0.52267927", "0.52267927", "0.5226484", "0.5221766", "0.5218767", "0.5215231", "0.5212218", "0.52112424", "0.5208465", "0.52065223", "0.52065223", "0.5197288", "0.5190161", "0.51837504", "0.5172497", "0.5172497", "0.51665735", "0.5163399", "0.51617163", "0.51611924", "0.51596254", "0.51573867", "0.51573443", "0.51569176", "0.5152716", "0.5152716", "0.5152716", "0.514983", "0.5148251", "0.5147655", "0.51416636", "0.51416636", "0.51340663", "0.51241547", "0.5121167", "0.5121167", "0.51204", "0.51188564", "0.5118432", "0.51133347", "0.51109487", "0.51067", "0.5106283", "0.51029325", "0.51019925", "0.50998014", "0.5098046", "0.50948775", "0.50940657", "0.50933814" ]
0.7028351
0
This method was generated by MyBatis Generator. This method sets the value of the database column service.INPUT_USER
public void setInputUser(String inputUser) { this.inputUser = inputUser == null ? null : inputUser.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getInputUser() {\n return inputUser;\n }", "public void setInput(String input);", "public void setUserinput(String userinput){\n String[] inputs = userinput.split(\" \");\n if(inputs.length > 1){\n this.userinput_var = inputs[1];\n }\n this.userinput_command = inputs[0];\n }", "public void setCreateUser(User createUser)\r\n/* */ {\r\n/* 151 */ this.createUser = createUser;\r\n/* */ }", "public void changeUser() {\n refreshState();\n SystemUserDTO user = null;\n SystemUserDTO systemUser = null;\n systemUser = ctrl.getSystemUser(this.inputTextUser);\n if (systemUser == null) {\n user = new SystemUserDTO(this.inputTextUser, this.inputTextFName, this.inputTextLName, this.inputTextEMail);\n ctrl.addSystemUser(user);\n } else {\n user = new SystemUserDTO(this.inputTextUser, this.inputTextFName, this.inputTextLName, this.inputTextEMail);\n ctrl.updateSystemUser(user);\n }\n refreshState();\n this.currentUser = user;\n }", "public void setJdbcUser(String val)\n {\n setValue(DataSourceDobj.FLD_JDBC_USER, val);\n }", "public void setUser(String paramUser) {\n\tstrUser = paramUser;\n }", "public void setInput(String input) { this.input = input; }", "public void setInputDate(Date inputDate) {\r\n this.inputDate = inputDate;\r\n }", "public void setInput(String input){\n this.input = input;\n }", "public void setInput(Input input) {\n this.input = input;\n }", "@PutMapping(consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseBody\n public UserResult update(@RequestBody UserInput userInput) throws NotFoundException {\n return userService.update(userInput);\n }", "public void setInputDate(Date inputDate) {\r\n\t\tthis.inputDate = inputDate;\r\n\r\n\t}", "public void setInput(String input) {\n\t\t\tthis.input = input;\n\t\t}", "public void setCallingUser(entity.User value);", "public void updateUserLogin(String userName, boolean isOnOff){\n\t\tint isOn = isOnOff? 1 : 0;\n try {\n\t Connection c = new MyConnection().getConnection();\n\t Statement st = c.createStatement();\n \n\t st.executeUpdate(\"update users set IsConnected = \"+isOn+\" WHERE UserName ='\"+userName+\"'\"); \n\t} catch (Exception e) {\n\t\te.printStackTrace();\t\n\t}\n\t}", "private void setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userId_ = value;\n }", "void setPassedUser(User passedUser);", "public void setInput(boolean input) {\n this.input = input;\n }", "public void setUserName(String pUser)\n\t{\n \t tbUserName.clear();\n\t tbUserName.sendKeys(pUser);\n\t\t\n\t}", "public void updateUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk updateUser\");\r\n\t}", "private void setUpdateUser(entity.User value) {\n __getInternalInterface().setFieldValue(UPDATEUSER_PROP.get(), value);\n }", "private void setUserId(int value) {\n \n userId_ = value;\n }", "public void setEditUser(User editUser)\r\n/* */ {\r\n/* 179 */ this.editUser = editUser;\r\n/* */ }", "public void setUser_name(String user_name);", "public void setUsuarioInsercion(String p) { this.usuarioInsercion = p; }", "public void setUsuarioInsercion(String p) { this.usuarioInsercion = p; }", "public interface SysUserMapper {\n\n @Select(\"select * from sys_user where user_name=#{username}\")\n public SysUser getUserByName(@Param(\"username\")String username);\n\n @Select(\"select * from sys_user where user_id=#{userId}\")\n public SysUser getUserById(@Param(\"userId\")int userId);\n\n @Select(\"select * from sys_user\")\n public List<SysUser> getAllUsers();\n\n @Update(\"update sys_user set online = #{online} where user_name = #{username}\")\n public void setUserOnlineStatusByName(@Param(\"username\")String username, @Param(\"online\")boolean online);\n\n @Select(\"select count(user_id) from sys_user where online = #{online}\")\n public int getUserCountByStatus(@Param(\"online\")boolean online);\n\n @Insert(\"insert into sys_user values(default, #{username}, #{password}, #{enabled}, #{online})\")\n public void addUser(@Param(\"username\")String username, @Param(\"password\")String password, @Param(\"enabled\")boolean enabled, @Param(\"online\")boolean online);\n\n @Update(\"update sys_user set enabled = #{isEnabled} where user_id = #{user_id}\")\n public void setUserEnabledStatusById(@Param(\"user_id\") int user_id, @Param(\"isEnabled\") boolean isEnabled);\n}", "public void setIdUser(int value) {\n this.idUser = value;\n }", "public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }", "public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }", "public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }", "public TextBotFlowTurnRequest inputEventUserInput(TextBotUserInputEvent inputEventUserInput) {\n this.inputEventUserInput = inputEventUserInput;\n return this;\n }", "public void setInput1(int input1) {\n this.input1 = input1;\n }", "public void setUserName(String userName){\r\n this.userName = userName;\r\n }", "public void processUser() {\r\n view.printMessage(View.GEM_POOL + model.getStonePool());\r\n chooseMenuOption(chooseParameters(INTEGER_DELIMITERS, View.INPUT_PARAMETERS, true));\r\n\r\n\r\n }", "public void setUserId(Long userId)\n/* */ {\n/* 80 */ this.userId = userId;\n/* */ }", "public void setRealCell(String inputVal){\n\t\tuserInput = inputVal;\n\t}", "public void setUserId(String value) {\r\n setAttributeInternal(USERID, value);\r\n }", "public void setInput(InputHandler input) {\r\n\t\tthis.input = input;\r\n\t}", "private CustomersDTO getDataFromInputToDTO(CustomersInputDTO inputCustomer, CustomersDTO dtoCustomer) {\n // set value for fields of DTO if input not null\n Arrays.asList(CustomersInputDTO.class.getDeclaredFields()).stream().forEach(field -> {\n if (field.getName().equals(ConstantsCustomers.FIELD_CUSTOMER_DATA)) {\n return;\n }\n String methodGet = METHOD_GET_PREFFIX\n .concat(CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_CAMEL, field.getName()));\n String methodSet = METHOD_SET_PREFFIX\n .concat(CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_CAMEL, field.getName()));\n try {\n Method inputMethod = CustomersInputDTO.class.getMethod(methodGet);\n if (inputMethod.invoke(inputCustomer) != null) {\n Method outMethod = CustomersDTO.class.getMethod(methodSet, inputMethod.getReturnType());\n outMethod.invoke(dtoCustomer, inputMethod.getReturnType().cast(inputMethod.invoke(inputCustomer)));\n }\n } catch (Exception e) {\n return;\n }\n });\n dtoCustomer.setUpdatedUser(jwtTokenUtil.getEmployeeIdFromToken());\n return dtoCustomer;\n }", "public String getUser1()\n {\n return userInput1;\n }", "public void setUser(String user)\n {\n _user = user;\n }", "@Override\n public boolean updateUserById(User user ) {\n boolean tag=false;\n this.sqlSession = MyBatisUtils.getSqlSession();\n tag = this.sqlSession.getMapper(UserDao.class).updateUserInfoById(user);\n sqlSession.commit();\n return tag;\n }", "public abstract void setInput(boolean value);", "public void setInputBy(String inputBy) {\n this.inputBy = inputBy == null ? null : inputBy.trim();\n }", "public void setInputKey(String inputKey) {\n this.inputKey = inputKey;\n }", "@Override\n public void intsertUser(SysUser user) {\n System.out.println(\"user插入到mysql数据库中(oracle数据库):\"+user);\n }", "public void setUserName(String userName){\n this.userName = userName;\n }", "public InfluxDBParameter setUserName(String userName) {\n this.userName = userName;\n return this;\n }", "public void setUser1X_ID (int User1X_ID);", "public void setIduser(int aIduser) {\n iduser = aIduser;\n }", "public void inputUsername(String userName) {\n txbUsername.type(userName);\n }", "public boolean setParameter(CallableStatement stmt,\n\t\t\tFieldsInterface inputFields, ServiceContext ctx)\n\t\t\t\t\tthrows SQLException {\n\t\t/*\n\t\t * register this param if it is out or in-out\n\t\t */\n\t\tif (this.inOutType != InOutType.INPUT) {\n\t\t\tthis.registerForOutput(stmt);\n\t\t}\n\n\t\tif (this.inOutType == InOutType.OUTPUT) {\n\t\t\t/*\n\t\t\t * not an input. we are done.\n\t\t\t */\n\t\t\treturn true;\n\t\t}\n\n\t\tif (this.isArray == false && this.recordName == null) {\n\t\t\t/*\n\t\t\t * it is a simple primitive value\n\t\t\t */\n\t\t\tValue value = inputFields.getValue(this.name);\n\t\t\tif (value == null || Value.isNull(value)) {\n\t\t\t\tvalue = this.defaultValueObjet;\n\t\t\t}\n\t\t\tif (value == null) {\n\t\t\t\tif (this.isRequired) {\n\t\t\t\t\tctx.addMessage(org.simplity.kernel.Messages.VALUE_REQUIRED,\n\t\t\t\t\t\t\tthis.name);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tstmt.setNull(this.myPosn, this.getValueType().getSqlType());\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tvalue.setToStatement(stmt, this.myPosn);\n\t\t\treturn true;\n\t\t}\n\n\t\t/*\n\t\t * non-primitive value is generally found in ctx as a data sheet\n\t\t */\n\t\tDataSheet ds = ctx.getDataSheet(this.name);\n\t\tConnection con = stmt.getConnection();\n\n\t\tif (this.recordName == null) {\n\t\t\t/*\n\t\t\t * array of primitives\n\t\t\t */\n\t\t\tValue[] vals = null;\n\t\t\tif (ds == null) {\n\t\t\t\t/*\n\t\t\t\t * we do not give-up that easily. Is this a field with comma\n\t\t\t\t * separated values?\n\t\t\t\t */\n\t\t\t\tString txt = ctx.getTextValue(this.name);\n\t\t\t\tif (txt != null) {\n\t\t\t\t\tvals = Value.parse(txt.split(\",\"), this.getValueType());\n\t\t\t\t}\n\t\t\t} else if (ds.length() > 0) {\n\t\t\t\tvals = ds.getColumnValues(this.name);\n\t\t\t\tif (vals == null && ds.width() == 1) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Told you, we do not give-up that easily. This is a ds\n\t\t\t\t\t * with only one column. Why bother about matching the\n\t\t\t\t\t * column name\n\t\t\t\t\t */\n\t\t\t\t\tvals = ds.getColumnValues(ds.getColumnNames()[0]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (vals == null) {\n\t\t\t\tthis.setNullParam(stmt, ctx);\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tArray data = DbDriver.createArray(con, vals, this.sqlArrayType);\n\t\t\tstmt.setArray(this.myPosn, data);\n\t\t\treturn true;\n\t\t}\n\n\t\t/*\n\t\t * this involves a data structure\n\t\t */\n\t\tRecord record = ComponentManager.getRecord(this.recordName);\n\n\t\tif (record.isComplexStruct()) {\n\t\t\treturn this.setComplexStruct(record, stmt, ctx);\n\t\t}\n\n\t\t/*\n\t\t * Simple data structure\n\t\t */\n\t\tif (this.isArray == false) {\n\t\t\tValue[] values = null;\n\t\t\tif (ds == null) {\n\t\t\t\tvalues = record.getData(ctx);\n\t\t\t} else if (ds.length() > 0) {\n\t\t\t\tvalues = ds.getRow(0);\n\t\t\t}\n\n\t\t\tif (values == null) {\n\t\t\t\treturn this.setNullParam(stmt, ctx);\n\t\t\t}\n\t\t\tStruct struct = DbDriver.createStruct(con, values,\n\t\t\t\t\tthis.sqlObjectType);\n\t\t\tstmt.setObject(this.myPosn, struct, Types.STRUCT);\n\t\t\treturn true;\n\t\t}\n\t\t/*\n\t\t * finally, we have reached an array of struct\n\t\t */\n\t\tif (ds == null || ds.length() == 0) {\n\t\t\treturn this.setNullParam(stmt, ctx);\n\t\t}\n\t\tint nbrRows = ds.length();\n\t\tStruct[] structs = new Struct[nbrRows];\n\t\tfor (int i = 0; i < nbrRows; i++) {\n\t\t\tstructs[i] = DbDriver.createStruct(con, ds.getRow(i),\n\t\t\t\t\tthis.sqlObjectType);\n\t\t}\n\t\tArray array = DbDriver.createStructArray(con, structs,\n\t\t\t\tthis.sqlArrayType);\n\t\tstmt.setArray(this.myPosn, array);\n\t\treturn true;\n\t}", "public void setAD_User_ID (int AD_User_ID);", "public void setTxtUser(String txtUser) {\n this.txtUser.setText(txtUser);\n }", "public void setUserName(String UserName){\r\n\t\tString UsrName = getValue(UserName);\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\");\r\n\r\n\t\tDate date = new Date();\r\n\r\n\t\tString ldDate=(String) dateFormat.format(date);\r\n\r\n\t\t//String USR = getValue(Username);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+UsrName);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Username should be entered in Login\");\r\n\t\ttry{\r\n\t\t\tif((countrygroup_username).contains(countries.get(countrycount))){\r\n\t\t\t\tsendKeys(locator_split(\"txtRegistrationUniqueUsername\"), UsrName+ldDate);\t\r\n\t\t\t\tSystem.out.println(\"User Name is entered\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Username is entered in username field\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Username is not applicable to \" + country);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Username is not entered in Login field with WebElement \"+elementProperties.getProperty(\"txtUserName\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtRegistrationUniqueUsername\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "public void setuserName(String value) {\r\n setNamedWhereClauseParam(\"userName\", value);\r\n }", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "public void setUserType(Byte userType) {\r\n this.userType = userType;\r\n }", "public void setId_user(int id_user) {\r\n this.id_user = id_user;\r\n }", "public void setUser(String user) {\r\n this.user = user;\r\n }", "public void setDatabaseUser(String sDatabaseUser) throws IOException;", "@Override\n\tpublic void setUser(String sessionId, UserInfo userInfo) throws HFModuleException {\n\t\tLog.d(\"HFModuleManager\", \"setUser\");\n//\t\tif (!isCloudChannelLive()) {\n//\t\t\tthrow new HFModuleException(HFModuleException.ERR_USER_OFFLINE,\n//\t\t\t\t\t\"User is not online\");\n//\t\t}\n\t\t\n\t\tUserPayload payload = new UserPayload();\n\t\t\n//\t\tUserInfo payload = new UserInfo();\n\t\tpayload.setCellPhone(userInfo.getCellPhone());\n\t\tpayload.setDisplayName(userInfo.getDisplayName());\n\t\tpayload.setEmail(userInfo.getEmail());\n\t\tpayload.setIdNumber(userInfo.getIdNumber());\n\t\t\n\t\t//user name cannot modified in cloud service\n//\t\tpayload.setUserName(userInfo.getUserName());\n\t\t\n\t\tUserSetRequest request = new UserSetRequest();\n\t\trequest.setSessionId(sessionId);\n\t\trequest.setPayload(payload);\n\t\ttry {\n\t\t\tcloudSecurityManager.setUser(request);\n\t\t\t\n\t\t\tUserInfo savedUserInfo = userInfoDao.getUserInfoByToken(sessionId);\n\t\t\tif (savedUserInfo != null) {\n\t\t\t\tsavedUserInfo.setCellPhone(userInfo.getCellPhone());\n\t\t\t\tsavedUserInfo.setDisplayName(userInfo.getDisplayName());\n\t\t\t\tsavedUserInfo.setEmail(userInfo.getEmail());\n\t\t\t\tsavedUserInfo.setIdNumber(userInfo.getIdNumber());\n\t\t\t\tuserInfoDao.saveUserInfo(savedUserInfo);\n\t\t\t}\n\t\t} catch (CloudException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new HFModuleException(e.getErrorCode(), e.getMessage());\n\t\t}\n\t\t\n//\t\tJSONObject req = new JSONObject();\n//\t\tJSONObject pl = new JSONObject();\n//\t\ttry {\n//\n//\t\t\tif (info.getDisplayName() != null)\n//\t\t\t\tpl.put(\"displayName\", info.getDisplayName());\n//\t\t\tif (info.getUserName() != null)\n//\t\t\t\tpl.put(\"userName\", info.getUserName());\n//\t\t\tif (info.getPassword() != null)\n//\t\t\t\tpl.put(\"password\", info.getPassword());\n//\t\t\tif (info.getCellPhone() != null)\n//\t\t\t\tpl.put(\"cellPhone\", info.getCellPhone());\n//\t\t\tif (info.getEmail() != null)\n//\t\t\t\tpl.put(\"email\", info.getEmail());\n//\t\t\tif (info.getIdNumber() != null)\n//\t\t\t\tpl.put(\"idNumber\", info.getIdNumber());\n//\n//\t\t\treq.put(\"CID\", 10221);\n//\t\t\treq.put(\"SID\", getsid());\n//\t\t\treq.put(\"PL\", pl);\n//\t\t\tString rsp = HttpProxy.reqByHttpPost(req.toString());\n//\n//\t\t\tJSONObject jo = new JSONObject(rsp);\n//\t\t\tif (jo.isNull(\"RC\")) {\n//\t\t\t\tthrow new HFModuleException(HFModuleException.ERR_SET_USER,\n//\t\t\t\t\t\t\"can not set user\");\n//\t\t\t}\n//\t\t\tif (jo.getInt(\"RC\") != 1) {\n//\t\t\t\tthrow new HFModuleException(HFModuleException.ERR_SET_USER,\n//\t\t\t\t\t\t\"can not set user\");\n//\t\t\t}\n//\n//\t\t} catch (JSONException e) {\n//\t\t\tthrow new HFModuleException(HFModuleException.ERR_SET_USER,\n//\t\t\t\t\t\"can not set user\");\n//\t\t}\n\t}", "public void setInput1(final String input1) {\n this.input1 = input1;\n }", "String getUsersInput(String outForUser) throws IOException;", "public void setUserId(int value) {\n this.userId = value;\n }", "public void setUserMi(String userMi) {\n this.userMi = userMi == null ? null : userMi.trim();\n }", "public void setInput(String M)\t\n\t{\t//start of setInput method\n\t\tinputMsg = M;\n\t}", "public String getInputBy() {\n return inputBy;\n }", "private void setSearchParameters() {\n List obSys = dbm.getHQLManager().executeHQLQuery(\"from NewuserParamters where USERID=0\"); //user 0 is the system user\n NewuserParamters paramsSys = null;\n if (obSys != null) {\n paramsSys = (NewuserParamters) obSys.get(0);\n } else {\n System.out.println(\"User System Properties missing\");\n }\n //modify the settings of the search parameter based on user specification\n List ob = null;\n\n try {\n ob = dbm.getHQLManager().executeHQLQuery(\"from NewuserParamters where USERID=\" + UserId);\n if (ob.size() > 0) {\n NewuserParamters params = (NewuserParamters) ob.get(0);\n Integer val = 0;\n if ((val = params.getGlobalSessionSize()) != null) {\n NoOfglobalSessions = val;\n } else {\n this.NoOfglobalSessions = paramsSys.getGlobalSessionSize();\n }\n\n if ((val = params.getHdmGeneration()) != null) {\n this.noHDMGenerations = val;\n } else {\n this.noHDMGenerations = paramsSys.getHdmGeneration();\n }\n\n if ((val = params.getHdmPopulationSize()) != null) {\n this.HDMPopulation = val;\n } else {\n this.HDMPopulation = paramsSys.getHdmPopulationSize();\n }\n\n if ((val = params.getLearningType()) != null) {\n this.learningType = val;\n } else {\n this.learningType = paramsSys.getLearningType();\n }\n\n if ((val = params.getOptimizationType()) != null) {\n this.optimizationType = val;\n } else {\n this.optimizationType = paramsSys.getOptimizationType();\n }\n\n if ((val = params.getSdmGeneration()) != null) {\n this.noSDMGenerations = val;\n } else {\n this.noSDMGenerations = paramsSys.getSdmGeneration();\n }\n\n if ((val = params.getSdmPopulationSize()) != null) {\n this.SDMPopulation = val;\n } else {\n this.SDMPopulation = paramsSys.getSdmPopulationSize();\n }\n Double valdou = 0.0;\n if ((valdou = params.getGaMutationProbability()) != null) {\n this.MUTATION_PROBABILITY = valdou;\n } else {\n this.MUTATION_PROBABILITY = paramsSys.getGaMutationProbability();\n }\n\n if ((valdou = params.getGaCrossoverProbability()) != null) {\n this.CROSSOVER_PROBABILITY = valdou;\n } else {\n this.CROSSOVER_PROBABILITY = paramsSys.getGaCrossoverProbability();\n }\n }\n else {\n //use system default parameters\n this.NoOfglobalSessions = paramsSys.getGlobalSessionSize();\n this.noHDMGenerations = paramsSys.getHdmGeneration();\n this.HDMPopulation = paramsSys.getHdmPopulationSize();\n this.learningType = paramsSys.getLearningType();\n this.optimizationType = paramsSys.getOptimizationType();\n this.noSDMGenerations = paramsSys.getSdmGeneration();\n this.SDMPopulation = paramsSys.getSdmPopulationSize();\n this.MUTATION_PROBABILITY = paramsSys.getGaMutationProbability();\n this.CROSSOVER_PROBABILITY = paramsSys.getGaCrossoverProbability();\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public Builder setUser(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n user_ = value;\n onChanged();\n return this;\n }", "public void setUserType(Byte userType) {\n this.userType = userType;\n }", "public void setUserFirstName(java.lang.String userFirstName) {\r\n this.userFirstName = userFirstName;\r\n }", "public void setInputSystemType(int inputSystemType) {\n\t\tthis.inputSystemType = inputSystemType;\n\t}", "public DMXUserInput() {\n }", "public void setUserIO(UserIO userIO) {\n\t\tthis.userIO = userIO;\n\t}", "public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}", "@Override\n\tpublic void setInput(Input arg0) {\n\t\t\n\t}", "public void setUser1_ID (int User1_ID);", "public void setUser1_ID (int User1_ID);", "public void setInputValue(int inputValue) {\n\t\tif (inputValue < 0) {\n\t\t\tthis.setError(1);\n\t\t\tthis.setProcessable(false);\n\t\t} else {\n\t\t\tthis.inputValue = inputValue;\n\n\t\t}\n\n\t}", "@Override\n\tpublic String updateUser(String user) {\nreturn null;\n\t}", "public void setUserService(UserService userService) {\n this.userService = userService;\n }", "public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}", "public void setupUser() {\n }", "@Override\n\tpublic void setInput(Input arg0) {\n\n\t}", "public void processUser() {\r\n Scanner sc = new Scanner(System.in);\r\n model.setAllparameters(inputIntValueWithScanner(sc, View.INPUT_INT_HOUR_DATA, GlobalConstants.PRIMARY_HOUR_MAX_BARRIER),// the correct input (hour,minute,second) is sent to the model\r\n inputIntValueWithScanner(sc, View.INPUT_INT_MINUTE_DATA, GlobalConstants.PRIMARY_MINUTE_MAX_BARRIER),\r\n inputIntValueWithScanner(sc, View.INPUT_INT_SECOND_DATA, GlobalConstants.PRIMARY_SECOND_MAX_BARRIER));\r\n int k = 0;\r\n do { //at least once the menu option is chosen (for option number 6 (break) for example)\r\n k = inputIntValueWithScanner(sc, View.CHOOSE_OPERATION, GlobalConstants.MENU_OPTION_MAX_VALUE);\r\n chooseOperation(k);\r\n } while (k != GlobalConstants.MENU_OPTION_MAX_VALUE); //menu loop until break option isn't chosen\r\n\r\n }", "public String getUser2()\n {\n return userInput2;\n }", "public void setUserService(\n com.liferay.portal.service.UserService userService) {\n this.userService = userService;\n }", "public void setUserService(\n com.liferay.portal.service.UserService userService) {\n this.userService = userService;\n }", "public void setUserService(\n com.liferay.portal.service.UserService userService) {\n this.userService = userService;\n }", "public static void setUserId(int zUserId) {\n userId = zUserId;\n }", "@JsonSetter(\"user_id\")\n public void setUserId (String value) { \n this.userId = value;\n }", "public void setInputNum(Integer inputNum) {\r\n this.inputNum = inputNum;\r\n }", "public void setInputData(java.lang.String inputData) {\n this.inputData = inputData;\n }", "public void setInput2(int input2) {\n this.input2 = input2;\n }", "public void setId_user(int id_user) {\n this.id_user = id_user;\n }", "private void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }", "public void setUserName(String userName) { \n\t\t this.userName = userName; \n\t}" ]
[ "0.5958028", "0.552564", "0.5520919", "0.5461709", "0.54473495", "0.5405622", "0.5405341", "0.5390026", "0.5314518", "0.5310821", "0.52862906", "0.52787375", "0.5257808", "0.5240496", "0.5183795", "0.5137597", "0.5128658", "0.51259816", "0.51218593", "0.51188004", "0.51115", "0.50883675", "0.50809073", "0.5079638", "0.5079612", "0.5076186", "0.5076186", "0.50756073", "0.50717545", "0.5047374", "0.5047374", "0.5047374", "0.50297666", "0.5028772", "0.5017892", "0.50117564", "0.5001089", "0.49976906", "0.49930328", "0.49915206", "0.49878007", "0.49794346", "0.4976694", "0.49689534", "0.496529", "0.495353", "0.49519768", "0.49471134", "0.4938139", "0.49358815", "0.49342272", "0.4924397", "0.4920534", "0.4920186", "0.49199104", "0.4910012", "0.49099115", "0.4899078", "0.48946613", "0.48900312", "0.4885533", "0.48850274", "0.4884329", "0.4875598", "0.48711854", "0.48704907", "0.48614475", "0.48608464", "0.48600245", "0.48558307", "0.48492524", "0.48405376", "0.4840395", "0.48389092", "0.48378766", "0.48339072", "0.48328584", "0.48328164", "0.48301733", "0.48250595", "0.48250595", "0.48221016", "0.48153135", "0.48149848", "0.48093182", "0.48093125", "0.48046377", "0.48007953", "0.4800356", "0.4798354", "0.4798354", "0.4798354", "0.4793448", "0.47912672", "0.47906008", "0.47872537", "0.47798136", "0.47766414", "0.47766137", "0.4776423" ]
0.657622
0
This method was generated by MyBatis Generator. This method returns the value of the database column service.UPDATE_TIME
public Date getUpdateTime() { return updateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "public java.sql.Timestamp getUpdateTime () {\r\n\t\treturn updateTime;\r\n\t}", "public Date getUpdate_time() {\n return update_time;\n }", "public Date getUpdate_time() {\n return update_time;\n }", "public com.flexnet.opsembedded.webservices.DateTimeQueryType getUpdateTime() {\n return updateTime;\n }", "public Date getUpdatetime() {\n return updatetime;\n }", "public Date getUpdatetime() {\n return updatetime;\n }", "public Date getUpdatetime() {\r\n return updatetime;\r\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public String getUpdatetime() {\n\t\treturn updatetime;\n\t}", "public String getUpdatetime() {\n\t\treturn updatetime;\n\t}", "public Date getTimeUpdate() {\n return timeUpdate;\n }", "public Date getUpdateTime()\n {\n return data.updateTime;\n }", "public Date getUpdateDatetime();", "public Timestamp getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateDatetime() {\r\n\t\treturn updateDatetime;\r\n\t}", "public Date getUpdateDatime() {\r\n return updateDatime;\r\n }", "public Date getUpdateDatime() {\r\n return updateDatime;\r\n }", "public Long getUpdateTime() {\n return updateTime;\n }", "public Long getUpdateTime() {\n return updateTime;\n }", "public Integer getUpdateTime() {\n return updateTime;\n }", "public Long getUpdateTime() {\n\t\treturn updateTime;\n\t}", "public String getUpdateTime() {\r\n return updateTime;\r\n }", "public String getUpdateTime() {\n return updateTime;\n }", "public String getUpdateTime() {\n return updateTime;\n }", "public String getUpdateTime() {\n return updateTime;\n }", "public String getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return this.updateTime;\n }", "long getTsUpdate();", "int getUpdateTriggerTime();", "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "public java.lang.Long getTsUpdate() {\n return ts_update;\n }", "public Date getUpdateTime() {\r\n\t\treturn this.updatedTime;\r\n\t}", "public String getUpdateTime() {\n\t\t\treturn updateTime;\n\t\t}", "@java.lang.Override\n public com.google.protobuf.Timestamp getUpdateTime() {\n return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;\n }", "public int getUpdateTriggerTime() {\n return updateTriggerTime_;\n }", "public Date getUpdateTime() {\n\t\treturn this.updateTime;\n\t}", "public java.lang.Long getTsUpdate() {\n return ts_update;\n }", "public int getUpdateTriggerTime() {\n return instance.getUpdateTriggerTime();\n }", "public Date getUpdateTime() {\r\n\t\treturn updateTime;\r\n\t}", "public String getUpdTime() {\n return updTime;\n }", "public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}", "public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}", "public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}", "public DateTime getUpdateTime() {\n return updated;\n }", "public Date getUpdateTime()\n/* */ {\n/* 191 */ return this.updateTime;\n/* */ }", "public long getTsUpdate() {\n return tsUpdate_;\n }", "public long getTsUpdate() {\n return tsUpdate_;\n }", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();" ]
[ "0.7388682", "0.7335364", "0.7289034", "0.7289034", "0.7235728", "0.7135513", "0.7135513", "0.71105057", "0.7110121", "0.7110121", "0.7110121", "0.70965385", "0.70965385", "0.7030034", "0.7026784", "0.7001807", "0.69995344", "0.69667375", "0.6947762", "0.6947762", "0.69378257", "0.69378257", "0.6932516", "0.6902113", "0.68913186", "0.68639576", "0.68639576", "0.68639576", "0.68639576", "0.68426096", "0.6825999", "0.6821866", "0.6820893", "0.6820893", "0.6820893", "0.6820893", "0.68137264", "0.6802888", "0.6799933", "0.6797962", "0.67876375", "0.67867804", "0.6775993", "0.6750433", "0.6749901", "0.67350036", "0.6726037", "0.6726037", "0.6726037", "0.67095536", "0.6707761", "0.6700025", "0.6677299", "0.66700596", "0.66700596", "0.66700596", "0.66700596" ]
0.6791335
75
This method was generated by MyBatis Generator. This method sets the value of the database column service.UPDATE_TIME
public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void setUpdateTime (java.sql.Timestamp updateTime) {\r\n\t\tthis.updateTime = updateTime;\r\n\t}", "public void setUpdateTime(DateTime updateTime) {\n this.updated = updateTime;\n }", "public void setTimeUpdate(Date timeUpdate) {\n this.timeUpdate = timeUpdate;\n }", "public void setUpdatetime(Date updatetime) {\r\n this.updatetime = updatetime;\r\n }", "public void setUpdatedTime(Date updatedTime) {\n this.updatedTime = updatedTime;\n }", "public void setUpdatedTime(Date updatedTime) {\n this.updatedTime = updatedTime;\n }", "public void setUpdatedTime(Date updatedTime) {\n this.updatedTime = updatedTime;\n }", "private void setUpdateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(UPDATETIME_PROP.get(), value);\n }", "public void setUpdatetime(Date updatetime) {\n this.updatetime = updatetime;\n }", "public void setUpdatetime(Date updatetime) {\n this.updatetime = updatetime;\n }", "public void setUpdateTime(Date updateTime) {\r\n this.updateTime = updateTime;\r\n }", "public void setUpdateTime(Date updateTime) {\r\n this.updateTime = updateTime;\r\n }", "public void setUpdateTime(Date updateTime) {\r\n this.updateTime = updateTime;\r\n }", "public void setUpdateTime(Date updateTime) {\r\n this.updateTime = updateTime;\r\n }", "void setLastUpdatedTime();", "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "public void setUpdateTime(Timestamp updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime)\n/* */ {\n/* 198 */ this.updateTime = updateTime;\n/* */ }", "public void setUpdateTime(Date updateTime) {\r\n\t\tthis.updateTime = updateTime;\r\n\t}", "public void setUpdateDatetime(Date updateDatetime);", "public void setUpdateTime(LocalDateTime updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(LocalDateTime updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(LocalDateTime updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Date updateTime) {\n\t\tthis.updateTime = updateTime;\n\t}", "public void setUpdateTime(Date updateTime) {\n\t\tthis.updateTime = updateTime;\n\t}", "public void setUpdateTime(Date updateTime) {\n\t\tthis.updateTime = updateTime;\n\t}", "public void setUpdateTime(com.flexnet.opsembedded.webservices.DateTimeQueryType updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(UPDATETIME_PROP.get(), value);\n }", "public void setUpdateDatetime(Long updateDatetime) {\n this.updateDatetime = updateDatetime;\n }", "public com.flexnet.opsembedded.webservices.DateTimeQueryType getUpdateTime() {\n return updateTime;\n }", "public Date getUpdate_time() {\n return update_time;\n }", "public Date getUpdate_time() {\n return update_time;\n }", "public void setUpdateTime(Integer updateTime) {\n this.updateTime = updateTime;\n }", "public java.sql.Timestamp getUpdateTime () {\r\n\t\treturn updateTime;\r\n\t}", "@Override\n\tpublic void setUpdateTime(Date updateTime) {\n\t\t\n\t}", "public void setUpdateDatime(Date updateDatime) {\r\n this.updateDatime = updateDatime;\r\n }", "public void setUpdateDatime(Date updateDatime) {\r\n this.updateDatime = updateDatime;\r\n }", "public void setUpdateTime(String updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(String updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Long updateTime) {\n this.updateTime = updateTime;\n }", "public void setUpdateTime(Long updateTime) {\n this.updateTime = updateTime;\n }", "public Date getUpdatetime() {\r\n return updatetime;\r\n }", "public void setUpdateTime(java.util.Date updateTime) {\n this.updateTime = updateTime;\n }", "public Date getUpdateDatetime() {\r\n\t\treturn updateDatetime;\r\n\t}", "public Date getUpdatetime() {\n return updatetime;\n }", "public Date getUpdatetime() {\n return updatetime;\n }", "public void setUpdateTime(Long updateTime) {\n\t\tthis.updateTime = updateTime;\n\t}", "public Date getUpdateDatetime();", "public void setUpdateTime(String updateTime) {\n\t\t\tthis.updateTime = updateTime;\n\t\t}", "public void setUpdateTime(Date updateTime) {\n\t\tsetField(\"updateTime\", updateTime);\n\t}", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public void setUpdTime(String updTime) {\n this.updTime = updTime;\n }", "public void setUpdateTimeDb(Date updateTimeDb) {\r\n\t\tthis.updateTimeDb = updateTimeDb;\r\n\t}" ]
[ "0.69530594", "0.69530594", "0.6909758", "0.6798521", "0.6771402", "0.66353154", "0.6623169", "0.6623169", "0.6623169", "0.6604971", "0.65987366", "0.65987366", "0.6581727", "0.6581727", "0.6581727", "0.6581727", "0.65768856", "0.6552457", "0.6512287", "0.65107894", "0.64852715", "0.6440448", "0.64366096", "0.64366096", "0.64366096", "0.64225113", "0.64225113", "0.64225113", "0.64218843", "0.6416382", "0.64156115", "0.6411149", "0.6407165", "0.6407165", "0.6404149", "0.64000607", "0.6393899", "0.635869", "0.635869", "0.6345053", "0.6345053", "0.63297266", "0.63297266", "0.63091177", "0.63015956", "0.6298032", "0.62885296", "0.62885296", "0.6276528", "0.62528604", "0.6240111", "0.62344086", "0.62228674", "0.62228674", "0.62228674", "0.6222413", "0.62151706" ]
0.6501244
51
This method was generated by MyBatis Generator. This method returns the value of the database column service.UPDATE_USER
public String getUpdateUser() { return updateUser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getUpdateUser() {\n return updateUser;\n }", "public String getUpdateUser() {\r\n return updateUser;\r\n }", "public String getUpdateUser() {\r\n return updateUser;\r\n }", "public String getUpdateUser() {\n return updateUser; \n }", "public String getUpdateUser () {\r\n\t\treturn updateUser;\r\n\t}", "public String getUpdateUserId() {\r\n return updateUserId;\r\n }", "public Long getUpdateUser() {\n return updateUser;\n }", "public String getUpdateUser() {\r\n\t\treturn updateUser;\r\n\t}", "public String getUpdateUser() {\r\n\t\treturn updateUser;\r\n\t}", "public Integer getUpdateUserid() {\n return updateUserid;\n }", "public Long getUpdateUserid() {\r\n\t\treturn updateUserid;\r\n\t}", "public String update() {\r\n\t\tuserService.update(userEdit);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"update\";\r\n\t}", "public String updateUser(){\n\t\tusersservice.update(usersId, username, password, department, role, post, positionId);\n\t\treturn \"Success\";\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.User getUpdateUser() {\n return (entity.User)__getInternalInterface().getFieldValue(UPDATEUSER_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.User getUpdateUser() {\n return (entity.User)__getInternalInterface().getFieldValue(UPDATEUSER_PROP.get());\n }", "@Override\n public boolean updateUserById(User user ) {\n boolean tag=false;\n this.sqlSession = MyBatisUtils.getSqlSession();\n tag = this.sqlSession.getMapper(UserDao.class).updateUserInfoById(user);\n sqlSession.commit();\n return tag;\n }", "protected String getValueOfColumnLastUpdateUser() {\n return SessionContext.open().getUid();\n }", "public String getUpdUserid() {\n return updUserid;\n }", "@Override\n\tpublic int update(TbUser user) {\n\t\treturn new userDaoImpl().update(user);\n\t}", "@Update({\n \"update user_t\",\n \"set user_name = #{userName,jdbcType=VARCHAR},\",\n \"password = #{password,jdbcType=VARCHAR},\",\n \"age = #{age,jdbcType=INTEGER},\",\n \"ver = #{ver,jdbcType=INTEGER}\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n int updateByPrimaryKey(User record);", "Long getUserUpdated();", "UpdateUserResult updateUser(UpdateUserRequest updateUserRequest);", "public boolean update(UserDTO user){\r\n try {\r\n PreparedStatement preSta = conn.prepareStatement(sqlUpdateUser);\r\n preSta.setString(1,user.getEmail());\r\n preSta.setString(2, user.getPassword());\r\n preSta.setInt(3, user.getRole());\r\n preSta.setInt(4, user.getUserId());\r\n if(preSta.executeUpdate() >0){\r\n return true;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(UserDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n error=\"khong ton tai userId\"+ user.getUserId();\r\n return false;\r\n }", "public int update(User user) throws SQLException {\n\t\treturn 0;\n\t}", "public String getUpdateUsername() {\r\n\t\treturn updateUsername;\r\n\t}", "@Override\n\tpublic int update(Users user) {\n\t\treturn userDAO.update(user);\n\t}", "public Integer getModifyUser() {\n return modifyUser;\n }", "public MessageResponseOfUserModelNuLtuh91 getUpdateUserResult() {\n return localUpdateUserResult;\n }", "public static void update_TbUser() {\n builder = new Uri.Builder();\n builder.appendQueryParameter(\"username\", Server.owner.get_username());\n builder.appendQueryParameter(\"email\", Server.owner.get_Email());\n builder.appendQueryParameter(\"birthday\", Server.owner.get_Birthday().toString());\n builder.appendQueryParameter(\"gender\", Server.owner.get_gender() ? \"1\" : \"0\");\n builder.appendQueryParameter(\"phone\", Server.owner.get_Phone());\n builder.appendQueryParameter(\"image_source\", Server.owner.get_imageSource());\n builder.appendQueryParameter(\"conversations\", Server.owner.get_AllConversation());\n\n String url = Constant.M_HOST + Constant.M_UPDATE_USER_WITHOUT_PASS;\n String a = uService.execute(builder, url);\n }", "@Override\n\tpublic int update(Usuario us) {\n\t\tString SQL =\"update user set nomuser = ?, passuser =?\";\n\t\treturn jdbc.update(SQL, us.getUsername(), us.getPassword());\n\t}", "public void setUpdateUser(Integer updateUser) {\n this.updateUser = updateUser;\n }", "@Update({\r\n \"update umajin.user_master\",\r\n \"set nickname = #{nickname,jdbcType=VARCHAR},\",\r\n \"sex = #{sex,jdbcType=INTEGER},\",\r\n \"age = #{age,jdbcType=INTEGER},\",\r\n \"birthday = #{birthday,jdbcType=DATE},\",\r\n \"regist_date = #{regist_date,jdbcType=TIMESTAMP},\",\r\n \"update_date = #{update_date,jdbcType=TIMESTAMP},\",\r\n \"disable = #{disable,jdbcType=INTEGER}\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n int updateByPrimaryKey(UserMaster record);", "public int updateUser(User user) {\n\t\t\n\t\treturn 1;\n\t}", "public void setUpdateUser(String updateUser) {\n this.updateUser = updateUser;\n }", "@Override\r\n\tpublic int updateUser(User user, String userName) {\n\t\treturn 0;\r\n\t}", "public void setUpdateUserId(String updateUserId) {\r\n this.updateUserId = updateUserId;\r\n }", "@Override\r\n\tpublic int updateUser(Users user) {\n\t\treturn 0;\r\n\t}", "public Function<User, String> update() {\n return user -> {\n String result = \"No such user!\";\n if (store.update(user)) {\n result = String.format(\"User with id %s was updated\", user.getId());\n }\n return result;\n };\n }", "@Override\n\tpublic ResponseEntity<String> updateUser() {\n\t\treturn null;\n\t}", "public int update(DcUserDO dcUser) throws DataAccessException {\n if (dcUser == null) {\n throw new IllegalArgumentException(\"Can't update by a null data object.\");\n }\n\n return getSqlMapClientTemplate().update(\"MS-DC-USER-UPDATE\", dcUser);\n }", "public void setUpdateUser (String updateUser) {\r\n\t\tthis.updateUser = updateUser;\r\n\t}", "public int updateByPrimaryKey(User record) {\r\n int rows = getSqlMapClientTemplate().update(\"spreader_tb_user.ibatorgenerated_updateByPrimaryKey\", record);\r\n return rows;\r\n }", "@Update({\n \"update tb_user\",\n \"set password = #{password,jdbcType=VARCHAR}\",\n \"where username = #{username,jdbcType=VARCHAR}\"\n })\n int updateByPrimaryKey(User record);", "public User updateUser(User update) {\n\t\treturn userRepository.save(update);\n\t}", "@Override\n\tpublic User update(User u) {\n\t\tSystem.out.println(\"OracleDao is update\");\n\t\treturn null;\n\t}", "@Override\r\n\tpublic int update(User user) {\n\t\treturn 0;\r\n\t}", "public void setUpdateUser(String updateUser) {\r\n\t\tthis.updateUser = updateUser;\r\n\t}", "public void setUpdateUser(String updateUser) {\r\n\t\tthis.updateUser = updateUser;\r\n\t}", "ManageUserResponse updateUser(UserUpdateRequest user, Long userId);", "public String getModifyUser() {\n return modifyUser;\n }", "public String getModifyUser() {\n return modifyUser;\n }", "public String getModifyUser() {\n return modifyUser;\n }", "public String getModifyUser() {\n return modifyUser;\n }", "public String getModifyUser() {\n return modifyUser;\n }", "public String updatedBy() {\n return this.updatedBy;\n }", "public int Edituser(Long userid, Long brokerId, String firstname,\r\n\t\tString lastname, String address, String city, String eMail, Long phone,\r\n\t\tLong pincode) throws SQLException {\n\tLong useridd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select user_id from customer where login_id=\"+userid+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tuseridd=rs.getLong(1);\r\n\t}\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update customer set address='\"+address+\"',city='\"+city+\"',e_mail='\"+eMail+\"',phone=\"+phone+\",pincode=\"+pincode+\" where user_id=\"+useridd+\"\");\r\n\treturn i;\r\n}", "public void setUpdateUserid(Integer updateUserid) {\n this.updateUserid = updateUserid;\n }", "public static int update(User u){ \n int status=0; \n try{ \n //membuka koneksi\n Connection con=Koneksi.openConnection();\n //melakukan query database untuk merubah data berdasarkan id atau primary key\n PreparedStatement ps=con.prepareStatement( \n \"update t_user set user_name=?,nama_lengkap=?,password=?,hak_akses=? where id=?\"); \n ps.setString(1,u.getUserName()); \n ps.setString(2,u.getNamaLengkap()); \n ps.setString(3,u.getPassword()); \n ps.setString(4,u.getHakAkses()); \n ps.setInt(5,u.getId()); \n status=ps.executeUpdate(); \n }catch(Exception e){System.out.println(e);} \n return status; \n }", "@Override\n\tpublic String updateUser(String user) {\nreturn null;\n\t}", "@Override\n\tpublic int updateUser(SmbmsUser user) {\n\t\treturn sud.updateUser(user);\n\t}", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public String getUpdateUsermac() {\r\n\t\treturn updateUsermac;\r\n\t}", "public void setUpdateUser(Long updateUser) {\n this.updateUser = updateUser;\n }", "public String getUpdateBy() {\r\n return updateBy;\r\n }", "public Long getUpdateBy() {\n return updateBy;\n }", "public Long getUpdateBy() {\n return updateBy;\n }", "public Long getUpdateBy() {\n return updateBy;\n }", "void update(User user) throws SQLException;", "public String getUpdateBy() {\n return updateBy;\n }", "public String getUpdateBy() {\n return updateBy;\n }", "public String getUpdateBy() {\n return updateBy;\n }", "public int updateUser(User user) {\n\t\treturn userMapper.updateUser(user);\r\n\t}", "@Override\n\tpublic int updateUser(User user) {\n\t\treturn userDao.updateUser(user);\n\t}", "public void updateUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk updateUser\");\r\n\t}", "public UserItem getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "@Override\r\n\tpublic int updateByPrimaryKey(AdminUser record) {\n\t\treturn adminUserMapper.updateByPrimaryKey(record);\r\n\t}", "@Override\n\tpublic String update(User user) {\n\t\treturn null;\n\t}", "void updateUser(User entity) throws UserDaoException;", "@Override\n\tpublic int modifyUser(User user) {\n\t\tuser.setUpdateTime(new Date());\n\t\treturn userDao.updateUserById(user);\n\t}" ]
[ "0.7097959", "0.70296097", "0.70296097", "0.7026392", "0.7018426", "0.70060617", "0.6981443", "0.6975312", "0.6975312", "0.69450575", "0.6836204", "0.68208253", "0.6804073", "0.6785432", "0.67698455", "0.6524771", "0.646666", "0.6405054", "0.63301355", "0.62819636", "0.6276033", "0.62222767", "0.62086034", "0.62030894", "0.61881083", "0.6165309", "0.6156923", "0.61225665", "0.6110319", "0.61024326", "0.6093159", "0.60900736", "0.6075657", "0.6058278", "0.6057796", "0.6052548", "0.6049348", "0.6044144", "0.60420257", "0.6031059", "0.60309136", "0.60239744", "0.60232294", "0.60137373", "0.5968799", "0.59672016", "0.59607154", "0.59607154", "0.594886", "0.5939752", "0.5939752", "0.5939752", "0.5939752", "0.5939752", "0.59251016", "0.59148264", "0.5908743", "0.5897009", "0.58937675", "0.5891593", "0.5889423", "0.5889423", "0.5889423", "0.5889423", "0.5889423", "0.5889423", "0.5889423", "0.5889423", "0.5889423", "0.5889423", "0.5889423", "0.5889423", "0.5889423", "0.5888473", "0.588197", "0.5875571", "0.5873974", "0.5873974", "0.5873974", "0.5854447", "0.58470213", "0.58470213", "0.58470213", "0.5830868", "0.58275807", "0.5823141", "0.5821887", "0.5816427", "0.5816427", "0.5816427", "0.5816427", "0.58117914", "0.58049464", "0.5802449", "0.579843" ]
0.6991572
11
This method was generated by MyBatis Generator. This method sets the value of the database column service.UPDATE_USER
public void setUpdateUser(String updateUser) { this.updateUser = updateUser == null ? null : updateUser.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setUpdateUser(entity.User value) {\n __getInternalInterface().setFieldValue(UPDATEUSER_PROP.get(), value);\n }", "public void setUpdateUser(entity.User value) {\n __getInternalInterface().setFieldValue(UPDATEUSER_PROP.get(), value);\n }", "public void setUpdateUser(Integer updateUser) {\n this.updateUser = updateUser;\n }", "public String updateUser(){\n\t\tusersservice.update(usersId, username, password, department, role, post, positionId);\n\t\treturn \"Success\";\n\t}", "public String update() {\r\n\t\tuserService.update(userEdit);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"update\";\r\n\t}", "public void setUpdateUser(String updateUser) {\n this.updateUser = updateUser;\n }", "public void setUpdateUser (String updateUser) {\r\n\t\tthis.updateUser = updateUser;\r\n\t}", "@Override\n public boolean updateUserById(User user ) {\n boolean tag=false;\n this.sqlSession = MyBatisUtils.getSqlSession();\n tag = this.sqlSession.getMapper(UserDao.class).updateUserInfoById(user);\n sqlSession.commit();\n return tag;\n }", "public void setUpdateUser(Long updateUser) {\n this.updateUser = updateUser;\n }", "public void setUpdateUser(String updateUser) {\r\n\t\tthis.updateUser = updateUser;\r\n\t}", "public void setUpdateUser(String updateUser) {\r\n\t\tthis.updateUser = updateUser;\r\n\t}", "ManageUserResponse updateUser(UserUpdateRequest user, Long userId);", "@Override\n\tpublic int update(TbUser user) {\n\t\treturn new userDaoImpl().update(user);\n\t}", "@Override\r\n\tpublic int updateUser(User user, String userName) {\n\t\treturn 0;\r\n\t}", "public void updateUser() {\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(db.DB.connectionString, db.DB.user, db.DB.password);\n Statement stmt = conn.createStatement();\n String query = \"update users set first_name='\" + firstName + \"', \";\n query += \"last_name='\" + lastName + \"', \";\n query += \"phone_number='\" + phoneNumber + \"', \";\n query += \"email='\" + email + \"', \";\n query += \"address='\" + address + \"', \";\n query += \"id_city='\" + idCity + \"' \";\n query += \"where id_user = \" + id;\n stmt.executeUpdate(query);\n\n User updatedUser = findUser(id);\n updatedUser.setFirstName(firstName);\n updatedUser.setLastName(lastName);\n updatedUser.setPhoneNumber(phoneNumber);\n updatedUser.setEmail(email);\n updatedUser.setIdCity(idCity);\n updatedUser.setAddress(address);\n\n } catch (SQLException ex) {\n Logger.getLogger(UserController.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n clear();\n try {\n conn.close();\n } catch (Exception e) {\n /* ignored */ }\n }\n }", "@Override\n\tpublic void updateUser(User pUser) {\n\t\t\n\t}", "public void setUpdateUserId(String updateUserId) {\r\n this.updateUserId = updateUserId;\r\n }", "public void updateUser(User user) {\n\t\t\r\n\t}", "UpdateUserResult updateUser(UpdateUserRequest updateUserRequest);", "@Override\r\n\tpublic int updateUser(Users user) {\n\t\treturn 0;\r\n\t}", "public void updateUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk updateUser\");\r\n\t}", "public void setUpdateUserid(Integer updateUserid) {\n this.updateUserid = updateUserid;\n }", "void updateUser(User entity) throws UserDaoException;", "public int update(User user) throws SQLException {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void updateUser(User user)\n\t{\n\n\t}", "void update(User user) throws SQLException;", "@Update({\r\n \"update umajin.user_master\",\r\n \"set nickname = #{nickname,jdbcType=VARCHAR},\",\r\n \"sex = #{sex,jdbcType=INTEGER},\",\r\n \"age = #{age,jdbcType=INTEGER},\",\r\n \"birthday = #{birthday,jdbcType=DATE},\",\r\n \"regist_date = #{regist_date,jdbcType=TIMESTAMP},\",\r\n \"update_date = #{update_date,jdbcType=TIMESTAMP},\",\r\n \"disable = #{disable,jdbcType=INTEGER}\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n int updateByPrimaryKey(UserMaster record);", "public static void update_TbUser() {\n builder = new Uri.Builder();\n builder.appendQueryParameter(\"username\", Server.owner.get_username());\n builder.appendQueryParameter(\"email\", Server.owner.get_Email());\n builder.appendQueryParameter(\"birthday\", Server.owner.get_Birthday().toString());\n builder.appendQueryParameter(\"gender\", Server.owner.get_gender() ? \"1\" : \"0\");\n builder.appendQueryParameter(\"phone\", Server.owner.get_Phone());\n builder.appendQueryParameter(\"image_source\", Server.owner.get_imageSource());\n builder.appendQueryParameter(\"conversations\", Server.owner.get_AllConversation());\n\n String url = Constant.M_HOST + Constant.M_UPDATE_USER_WITHOUT_PASS;\n String a = uService.execute(builder, url);\n }", "@Update({\n \"update user_t\",\n \"set user_name = #{userName,jdbcType=VARCHAR},\",\n \"password = #{password,jdbcType=VARCHAR},\",\n \"age = #{age,jdbcType=INTEGER},\",\n \"ver = #{ver,jdbcType=INTEGER}\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n int updateByPrimaryKey(User record);", "@Override\r\n\tpublic void update(User user) {\n\t\tint iRet = dao.update(user);\r\n\t\tif(iRet != 1){\r\n\t\t\tlogger.error(\"修改失败\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlogger.info(\"修改成功\");\r\n\t}", "@Override\n\tpublic int update(Users user) {\n\t\treturn userDAO.update(user);\n\t}", "public boolean update(UserDTO user){\r\n try {\r\n PreparedStatement preSta = conn.prepareStatement(sqlUpdateUser);\r\n preSta.setString(1,user.getEmail());\r\n preSta.setString(2, user.getPassword());\r\n preSta.setInt(3, user.getRole());\r\n preSta.setInt(4, user.getUserId());\r\n if(preSta.executeUpdate() >0){\r\n return true;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(UserDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n error=\"khong ton tai userId\"+ user.getUserId();\r\n return false;\r\n }", "@Override\n\tpublic int updateUser(SmbmsUser user) {\n\t\treturn sud.updateUser(user);\n\t}", "@Override\n\tpublic void updateUser(user theUser) {\n\t}", "@Override\n\tpublic void update(User user) throws DAOException {\n\t\t\n\t}", "public void setUpdateUser(String newVal) {\n if ((newVal != null && this.updateUser != null && (newVal.compareTo(this.updateUser) == 0)) || \n (newVal == null && this.updateUser == null && updateUser_is_initialized)) {\n return; \n } \n this.updateUser = newVal; \n\n updateUser_is_modified = true; \n updateUser_is_initialized = true; \n }", "ResponseMessage updateUser(final User user);", "@Override\n\tpublic void update(User objetc) {\n\t\tuserDao.update(objetc);\n\t}", "public int updateUser(User user) {\n\t\t\n\t\treturn 1;\n\t}", "@Override\n\tpublic void updateUser(User user) {\n\t userMapper.updateUser(user);\n\t}", "public void userUpdate(User user) {\n\t\tdao.userUpdate(user);\n\t}", "@Override\n\tpublic void update(User user)\n\t{\n\t\tuserDAO.update(user);\n\t}", "public void setUpdateUser(String updateUser) {\r\n this.updateUser = updateUser == null ? null : updateUser.trim();\r\n }", "public void setUpdateUser(String updateUser) {\r\n this.updateUser = updateUser == null ? null : updateUser.trim();\r\n }", "public void UserServiceTest_Edit()\r\n {\r\n User user = new User();\r\n user.setId(\"1234\");\r\n user.setName(\"ABCEdited\");\r\n user.setPassword(\"123edited\");\r\n ArrayList<Role> roles = new ArrayList<>();\r\n roles.add(new Role(\"statio manager\"));\r\n user.setRoles(roles);\r\n \r\n UserService service = new UserService(); \r\n try {\r\n service.updateUser(user);\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n }catch (NotFoundException e) {\r\n fail();\r\n System.out.println(e);\r\n }\r\n }", "public void updateUser(User user) {\n\n String updateSql = \"update USER set name = ?, age = ? , salary = ? where id = ?\";\n jdbcTemplate.update(updateSql, user.getName(), user.getAge(), user.getSalary(), user.getId());\n }", "public void update(User userForgot) throws SQLException {\n\t\ttry {\n\n\t\t\tthis.TryConnect();\n\n\t\t\tthis.m_objData.SetStoreName(\"sys_user_update(?,?,?,?,?,?,?)\");\n\t\t\tthis.m_objData.Parameters.setString(1, userForgot.getUser_name());\n\t\t\tthis.m_objData.Parameters.setString(2, userForgot.getPassword());\n\t\t\tthis.m_objData.Parameters.setString(3,\n\t\t\t\t\tuserForgot.getPassword_hint());\n\t\t\tthis.m_objData.Parameters.setString(4, userForgot.getClient_id());\n\t\t\tthis.m_objData.Parameters.setInt(5, userForgot.getStatus_id());\n\t\t\tthis.m_objData.Parameters.setString(6, userForgot.getUpdate_user());\n\t\t\tthis.m_objData.Parameters.setString(7, userForgot.getForgot_key());\n\n\t\t\tthis.m_objData.ExecNoneQuery();\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\n\t\t\tthis.TryDisconnect();\n\t\t}\n\t}", "@Override\n\tpublic int modifyUser(User user) {\n\t\tuser.setUpdateTime(new Date());\n\t\treturn userDao.updateUserById(user);\n\t}", "@Override\n\tpublic boolean updateUser(Integer Id, User user) {\n\t\treturn false;\n\t}", "@Override\n\t@Transactional\n\tpublic void updateUser(User user) {\n\t\tDate date = DateUtils.getCurrentDateObject(DateUtils.IST);\n\t\tMap<String, Object> params = new HashMap<>();\n\t\tCustomUserDetails curUser = ((CustomUserDetails) SecurityContextHolder.getContext().getAuthentication()\n\t\t\t\t.getPrincipal());\n\t\tStringBuilder sb = new StringBuilder(\"UPDATE user SET \").append(\"LAST_MODIFIED_DATE=:dt, \")\n\t\t\t\t.append(\"LAST_MODIFIED_BY=:curEmpId, \").append(\"USERNAME=:username, \").append(\"ACTIVE=:active, \")\n\t\t\t\t.append(\"NAME=:name \");\n\t\tparams.put(\"userId\", user.getUserId());\n\t\tparams.put(\"dt\", date);\n\t\tparams.put(\"curEmpId\", curUser.getUserId());\n\t\tparams.put(\"username\", user.getUsername().toLowerCase());\n\t\tparams.put(\"active\", user.isActive());\n\t\tparams.put(\"name\", WordUtils.capitalizeFully(user.getName()));\n\t\tif (curUser.hasBusinessFunction(\"ROLE_BF_OUTSIDE_ACCESS\")) {\n\t\t\tsb.append(\", OUTSIDE_ACCESS=:outsideAccess\");\n\t\t\tparams.put(\"outsideAccess\", user.isOutsideAccess());\n\t\t}\n\t\tsb.append(\" WHERE user.USER_ID=:userId\");\n\t\tthis.namedParameterJdbcTemplate.update(sb.toString(), params);\n\n\t\tString sqlString = \"UPDATE user_role SET ROLE_ID=:roleId WHERE USER_ID=:userId\";\n\t\tparams.clear();\n\t\tparams.put(\"userId\", user.getUserId());\n\t\tparams.put(\"roleId\", user.getRole().getRoleId());\n\t\tthis.namedParameterJdbcTemplate.update(sqlString, params);\n\t\tparams.clear();\n\t\tString query = \" DELETE FROM user_vendor_mapping WHERE USER_ID=:userId; \";\n\t\tparams.put(\"userId\", user.getUserId());\n\t\tthis.namedParameterJdbcTemplate.update(query, params);\n\n\t}", "@Override\n\tpublic Boolean updateUser(User user) {\n\t\treturn null;\n\t}", "void updateUser(@Nonnull User user);", "@Override\n\tpublic int update(Usuario us) {\n\t\tString SQL =\"update user set nomuser = ?, passuser =?\";\n\t\treturn jdbc.update(SQL, us.getUsername(), us.getPassword());\n\t}", "@Override\r\n\tpublic void updateUser(TUsers tuser) {\n\t\tdao.updateUser(tuser);\r\n\t}", "public void updateUser(User oldUser, User newUser) ;", "@Override\r\n\tpublic int update(User user) {\n\t\treturn 0;\r\n\t}", "@Override\n public void updateUser(User u) {\n Session session = this.sessionFactory.getCurrentSession();\n session.update(u);\n logger.info(\"User updated successfully, User Details=\"+u);\n }", "@Override\r\n\tpublic void update(User user) {\n\t\tuserDao.update(user);\r\n\t}", "public void setUpdUserid(String updUserid) {\n this.updUserid = updUserid;\n }", "public void updateUser(User user) {\n\t\t\r\n\t\tsessionFactory.getCurrentSession().update(user);\r\n\t\t\r\n\t}", "public void setUpdateUserid(Long updateUserid) {\r\n\t\tthis.updateUserid = updateUserid;\r\n\t}", "@Override\n\tpublic int updateUser(User user) {\n\t\treturn userDao.updateUser(user);\n\t}", "@Override\n\tpublic String updateUser(String user) {\nreturn null;\n\t}", "@Update({\n \"update tb_user\",\n \"set password = #{password,jdbcType=VARCHAR}\",\n \"where username = #{username,jdbcType=VARCHAR}\"\n })\n int updateByPrimaryKey(User record);", "@Override\r\n\tpublic boolean updateUser(user user) {\n\t\tif(userdao.updateByPrimaryKey(user)==1){\r\n\t\t\treturn true;}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}", "@Transactional\n\t@Modifying(clearAutomatically = true)\n\t@Query(\"UPDATE Users t SET t.password =:newPassword WHERE t.id =:currentUser\")\n void editPassword(@Param(\"newPassword\") String newPassword, @Param(\"currentUser\") Integer currentUser);", "public User updateUser(User update) {\n\t\treturn userRepository.save(update);\n\t}", "public void update(User user) {\n\t\tString sql=\"update SCOTT.USERS set USERNAME='\"+user.getUsername()+\"',PASSWORD='\"+user.getPassword()+\"',NICKNAME='\"+user.getNickname()+\"',EMAIL='\"+user.getEmail()+\"',STATE='\"+user.getState()+\"',CODE='\"+user.getCode()+\"' where ID='\"+user.getUid()+\"'\";\n\t\t\n\t\tJdbcUtils jdbcutils=new JdbcUtils();\n\t\tjdbcutils.executeUpdate(sql);\n\t\t\n\t}", "@Override\n\tpublic void editUser(ERSUser user) {\n\t\tuserDao.updateUser(user);\n\t}", "User modifyUser(Long user_id, User user);", "public User updateUser(User user);", "public void update() throws Exception {\n\t HaUserDao.getInstance().updateUser(this);\n\t}", "public boolean update(User u);", "@Override\n public User update(User user) {\n return dao.update(user);\n }", "public int update(DcUserDO dcUser) throws DataAccessException {\n if (dcUser == null) {\n throw new IllegalArgumentException(\"Can't update by a null data object.\");\n }\n\n return getSqlMapClientTemplate().update(\"MS-DC-USER-UPDATE\", dcUser);\n }", "public void modifyUser() {\n\t\tUser selectedUser = null;\r\n\t\tselectedUser = tableUser.getSelectionModel().getSelectedItem();\r\n\t\tUser user = dataManager.findCurrentUser();\r\n\t\tif (user != null) {\r\n\t\t\tif (selectedUser != null) {\r\n\t\t\t\tframeManager.modifyUser(user, selectedUser);\r\n\t\t\t\tpesquisar();\r\n\t\t\t} else {\r\n\t\t\t\tAlertUtils.alertErroSelecionar(\"Para modificar um usuario é necessário selecionar um!\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tAlertUtils.alertSemPrivelegio();\r\n\t\t}\r\n\t}", "@Override\n\tpublic User update(User u) {\n\t\tSystem.out.println(\"OracleDao is update\");\n\t\treturn null;\n\t}", "void editUser(String uid, User newUser);", "public void updateUser(Person user) {\n\t\t\n\t}", "private void editUser(){\n getDeviceLocation();\n ProxyBuilder.SimpleCallback<User> callback = returnedUser-> responseEdit(returnedUser);\n ServerManager.editUserProfile(userManager,callback);\n }", "void updateUser(UserDTO user);", "public void updateUserDetails() {\n\t\tSystem.out.println(\"Calling updateUserDetails() Method To Update User Record\");\n\t\tuserDAO.updateUser(user);\n\t}", "@Override\r\n\tpublic int modifyUser(User user) {\n\t\treturn userMapper.modifyUser(user);\r\n\t}", "@Override\n public void updateUser(User user){\n try {\n runner.update(con.getThreadConnection(),\"update user set username=?,address=?,sex=?,birthday=? where id=?\"\n ,user.getUsername(),user.getAddress(),user.getSex(),user.getBirthday(),user.getId());\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n e.printStackTrace();\n }\n }", "public int Edituser(Long userid, Long brokerId, String firstname,\r\n\t\tString lastname, String address, String city, String eMail, Long phone,\r\n\t\tLong pincode) throws SQLException {\n\tLong useridd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select user_id from customer where login_id=\"+userid+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tuseridd=rs.getLong(1);\r\n\t}\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update customer set address='\"+address+\"',city='\"+city+\"',e_mail='\"+eMail+\"',phone=\"+phone+\",pincode=\"+pincode+\" where user_id=\"+useridd+\"\");\r\n\treturn i;\r\n}", "@Override\n\tpublic int modifyUser(User_role newUser) throws Exception{\n\t\treturn userMapper.updateUser(newUser);\n\t}", "@Override\n\tpublic void update(UsersDto dto) {\n\t\tsession.update(\"users.update\", dto);\n\t}", "public void update(User object) throws DaoException {\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n try {\n connection = dataSourceUtils.getConnection(dataSource);\n preparedStatement = connection.prepareStatement(UPDATE_USER);\n\n preparedStatement.setString(1, object.getUserName());\n preparedStatement.setString(2, object.getLogin());\n preparedStatement.setString(3, object.getPassword());\n preparedStatement.setLong(4, object.getUserId());\n preparedStatement.executeUpdate();\n } catch (SQLException e) {\n throw new DaoException(e);\n } finally {\n DataSourceUtils.releaseConnection(connection, dataSource);\n try {\n preparedStatement.close();\n } catch (SQLException e) {\n LOGGER.error(e);\n }\n }\n }", "public void update(User u) {\n\r\n\t}", "public void update(User user);", "void userChangeByAdmin(AdminUserDTO adminUserDTO) throws RecordExistException;", "void updateUser(int id, UpdateUserDto updateUserDto);", "public void setEditUser(User editUser)\r\n/* */ {\r\n/* 179 */ this.editUser = editUser;\r\n/* */ }", "@Override\n\tpublic void update(Connection conn, User user,Long id) throws SQLException {\n\t\tString updateSql=\"update tbl_user set name=?,password=?,email=?where id=?\";\n\t\tPreparedStatement ps=conn\n\t\t\t\t.prepareCall(updateSql);\n\t\tps.setString(1, user.getName());\n\t\tps.setString(2, user.getPassword());\n\t\tps.setString(3, user.getEmail());\n\t\tps.setLong(4, id);\n\t\tps.execute();\n\t}", "@Override\n\tpublic void updateUser(User user) {\n\t\tiUserDao.updateUser(user);\n\t}", "public int updateUser(User user) {\n\t\treturn userMapper.updateUser(user);\r\n\t}" ]
[ "0.7211519", "0.70206976", "0.6912714", "0.677359", "0.6758798", "0.6715612", "0.66252893", "0.65910757", "0.65904486", "0.65721476", "0.65721476", "0.6567318", "0.6543391", "0.6517886", "0.6510833", "0.65031976", "0.64858526", "0.64848983", "0.64631593", "0.6460381", "0.6454595", "0.6428301", "0.64164335", "0.6411377", "0.6402843", "0.64021546", "0.63964593", "0.6392965", "0.6387379", "0.63841724", "0.6379591", "0.63491267", "0.63454145", "0.63452864", "0.633986", "0.63370633", "0.63290167", "0.63142407", "0.6307867", "0.628325", "0.6263145", "0.6244878", "0.6236097", "0.6236097", "0.62208277", "0.62203026", "0.6218486", "0.6212821", "0.62005574", "0.6196959", "0.6184291", "0.61829877", "0.617609", "0.6175799", "0.61735195", "0.61707616", "0.6168846", "0.6167353", "0.6166049", "0.61625177", "0.6160525", "0.61601424", "0.61577696", "0.6145137", "0.6144311", "0.61363184", "0.61237115", "0.61167103", "0.6113688", "0.61121094", "0.6111402", "0.60984087", "0.60920316", "0.6085093", "0.6081557", "0.60810095", "0.606802", "0.6063543", "0.6059703", "0.60596603", "0.6053911", "0.60513407", "0.60506684", "0.60467905", "0.60436225", "0.60386556", "0.6033406", "0.60174197", "0.6009921", "0.60094947", "0.5992353", "0.59893376", "0.5988103", "0.59846467", "0.5981307", "0.5979195" ]
0.6188918
54
This method was generated by MyBatis Generator. This method returns the value of the database column service.CONTEXT
public String getContext() { return context; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ColumnContext context() {\n\t\t\treturn context;\n\t\t}", "public ColumnContext context() {\n\t\t\treturn context;\n\t\t}", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "public int getContextId() {\n return contextId;\n }", "public String getContextId() {\n return contextId;\n }", "public String getContextProperty() {\n return _contextProperty;\n }", "@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }", "public String getContext() {\r\n\t\treturn context;\r\n\t}", "public String getContext() {\n\t\treturn context;\n\t}", "public ColumnContext context();", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "@JsonProperty(\"context\")\n public Context getContext() {\n return context;\n }", "String getContextId();", "public String getContext() { return context; }", "public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "java.lang.String getContext();", "public Context getContext() {\n\t\treturn context;\n\t}", "public Context getContext() {\r\n\t\treturn context;\r\n\t}", "public Context getContext() {\n return this.mService.mContext;\n }", "public String getContext() {\n\t\treturn this.getClass().getSimpleName();\n\t}", "public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\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 context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n }\n }", "public org.apache.axis2.context.xsd.ServiceContext getServiceContext(){\n return localServiceContext;\n }", "public String getOperationContext() {\n return this.operationContext;\n }", "public String getOperationContext() {\n return this.operationContext;\n }", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "public String getContextString();", "public Context getContext() {\n return context;\n }", "String getContextPath() {\n return contextPath;\n }", "com.google.protobuf.ByteString\n getContextBytes();", "public ModuleContext getContext() {\r\n return context;\r\n }", "@Override\r\n\tpublic Context getContext() {\r\n\t\treturn this.context;\r\n\t}", "Context getContext();", "public String getAgentContext() {\n return (String)getAttributeInternal(AGENTCONTEXT);\n }", "public ComponentContext getContext()\n\t{\n\t\treturn context;\n\t}", "Map<String, Object> getContext();", "public String getSessionContext() {\n return this.SessionContext;\n }", "Context getContext() {\n Context context = mContextRef.get();\n return context != null ? context : AppUtil.getAppContext();\n }", "public Context getContext() {\n\t\treturn ctx;\n\t}", "public cl_context getContext() {\r\n return context;\r\n }", "ContextBucket getContext() {\n\treturn context;\n }", "public Object getContextObject() {\n return context;\n }", "public Context getContext() {\n if (context == null) {\n context = Model.getSingleton().getSession().getContext(this.contextId);\n }\n return context;\n }", "public Context getContext() {\n\t\treturn null;\n\t}", "public Object getConnectionContext() {\n return connectionContext;\n }", "long getCurrentContext();", "public static Context getContext() {\n\t\treturn context;\n\t}", "public static Context getContext() {\n\t\treturn context;\n\t}", "public final int getContextNode(){\n return this.getCurrentNode();\n }", "public QueryContext getQueryContext() {\n\t\treturn queryContext;\n\t}", "public Context getContext() {\n return (Context)this;\n }", "public LoggerContext getContext() {\n return context;\n }", "public IRuntimeContext getContext() {\n return fContext;\n }", "@Override\n\tpublic String getContextPath() {\n\t\treturn contextPath;\n\t}", "public Context getContext() {\n return contextMain;\n }", "public Context getContext() {\n return this.mContext;\n }", "public Context getContext() {\n return this.mContext;\n }", "@java.lang.Override\n public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "@java.lang.Override public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "protected RestContext getContext() {\n\t\tif (context.get() == null)\n\t\t\tthrow new InternalServerError(\"RestContext object not set on resource.\");\n\t\treturn context.get();\n\t}", "default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }", "public Context getContext() {\n return this;\n }", "public List<String> getContexts() {\r\n\t\treturn contexts;\r\n\t}", "public Class getContextType();", "public ContextNode getContextNode();", "public String getContextID() throws PolicyContextException {\n\tcheckSetPolicyPermission();\n\treturn this.CONTEXT_ID;\n }", "public Context getContext() {\n\t\treturn mContext;\n\t}", "public PortletContext getPortletContext ()\n {\n \treturn config.getPortletContext();\n }", "public Map<String, Object> context() {\n return unmodifiableMap(context);\n }", "public IPrivateTestCompView.IContextElement currentContextElement() {\r\n return (IPrivateTestCompView.IContextElement) getCurrentElement();\r\n }", "public UserContext getUserContext();", "public String getContext() {\n int l=code.getCurLine();\n String s=\"\\t\\t at line:\" + l + \" \";\n if (l>-1) {\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-2);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-1);\n s+=\"\\n\\t\\t\\t> \"+code.getLineAsString(l)+\" <\";\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+1);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+2);\n s=s+ \"\\n\\t\\t current token:\" + tok.toString();;\n s=s+ \"\\n\\t\\t Variable dump:\" + vars;\n if (gVars!=null) {\n s=s+ \"\\n\\t\\t Globals:\" + gVars;\n }\n } else s+=\"\\n\\t\\t\\t> \"+tok.getLine()+\" <\";\n\n return s;\n }", "public String getCodeListContext() {\r\n\t\treturn codeListContext;\r\n\t}", "public Attributes getContextAttributes() {\r\n return this.atts;\r\n }", "public final Object getContextInfo() {\n return this.info;\n }", "public UsersResourceContext getContext() {\n return _context;\n }", "public org.apache.axis2.context.xsd.ConfigurationContext getConfigurationContext(){\n return localConfigurationContext;\n }", "@JsonProperty(\"context\")\n @ApiModelProperty(value = \"The context for the dialog node.\")\n public Object getContext() {\n return context;\n }", "public Optional<URI> getContextPath() {\r\n return contextPath;\r\n }", "public org.apache.axis2.context.xsd.ConfigurationContext getRootContext(){\n return localRootContext;\n }", "public ContextRequest getContext() {\n\t\treturn context;\n\t}", "public static Context getContext() {\n if (sContext == null) {\n throw new RuntimeException(APPLICATION_CONTEXT_IS_NULL);\n }\n return sContext;\n }", "public Map<String, String> getTraceContext() {\n if (this.tracing == null) {\n DDLogger.getLoggerImpl().debug(\"No tracing context; unable to get Trace ID\");\n return null;\n }\n return this.tracing.getLogCorrelationTraceAndSpanIDsMap();\n }", "public static Context getContext(){\n return appContext;\n }", "public Context getThis()\r\n {\r\n return this.context;\r\n }", "public ELContext getELContext() {\n/* 47 */ return (ELContext)getSource();\n/* */ }", "public ActionBeanContext getContext() {\r\n return context;\r\n }", "private Context getThreadContext() throws NamingException {\n final ThreadContext threadContext = ThreadContext.getThreadContext();\n if (skipEjbContext(threadContext)) {\n return ContextBindings.getClassLoader();\n }\n final Context context = threadContext.getBeanContext().getJndiEnc();\n return context;\n }", "com.google.protobuf.ByteString getContext();", "public MessageContext getMessageContext() {\n return msgContext;\n }", "public ImmutableContextSet getContext() {\n return new ImmutableContextSet(this.contextSet);\n }", "public ConfigContext getConfigContext() {\n\n return (ConfigContext)getSource();\n\n }", "public com.google.protobuf.ByteString\n getSourceContextBytes() {\n java.lang.Object ref = sourceContext_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n sourceContext_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getTestdataContext() {\r\n if (testdataContext == null) {\r\n testdataContext = PropertiesProvider.getInstance().getProperty(\"testdata.context\", \"/testdata\");\r\n }\r\n return testdataContext;\r\n }" ]
[ "0.6933981", "0.6933981", "0.6902006", "0.68819714", "0.6864844", "0.6710542", "0.6688698", "0.65223044", "0.64504546", "0.64446616", "0.638721", "0.624525", "0.6235489", "0.6150329", "0.61075056", "0.60956645", "0.6070511", "0.6016485", "0.59874177", "0.5980187", "0.5980103", "0.59688294", "0.5966456", "0.5918447", "0.59112877", "0.58552104", "0.58523387", "0.58455837", "0.58455837", "0.5838274", "0.5817124", "0.5789494", "0.5785714", "0.5766533", "0.5758627", "0.5692469", "0.5690307", "0.56795883", "0.56762606", "0.567115", "0.5665756", "0.564851", "0.564837", "0.5640602", "0.56405723", "0.56359255", "0.5619363", "0.560253", "0.5587023", "0.5575015", "0.55747974", "0.55747974", "0.55412793", "0.5527701", "0.5525917", "0.55259115", "0.5507723", "0.5479852", "0.54741174", "0.5470763", "0.5470763", "0.5469354", "0.54693425", "0.5442894", "0.5427597", "0.5405327", "0.53966075", "0.53753924", "0.53531086", "0.5341104", "0.5333853", "0.53276557", "0.53214234", "0.5309377", "0.5308898", "0.5285569", "0.5274717", "0.52717733", "0.52565706", "0.52461857", "0.5230137", "0.5229888", "0.52278936", "0.52013844", "0.5200483", "0.5198843", "0.51845443", "0.51805514", "0.5178433", "0.5158732", "0.51505446", "0.5138977", "0.51344097", "0.51309514", "0.5126213", "0.5105741", "0.510472", "0.5104601" ]
0.6313228
12
This method was generated by MyBatis Generator. This method sets the value of the database column service.CONTEXT
public void setContext(String context) { this.context = context == null ? null : context.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void setActiveContext(ApplicationContext context) {\n SchemaCompilerApplicationContext.context = context;\n }", "public void setContext(String context) {\r\n\t\tthis.context = context;\r\n\t}", "public void setContext(String context) {\n\t\tthis.context = context;\n\t}", "@Override\r\n\tpublic void setContext(Context context) {\r\n\t\tthis.context = context;\r\n\t}", "public void setContext(final Class<?> context) {\n\t\tthis.context = context;\n\t}", "public void setContextId(String contextId) {\n this.contextId = contextId;\n }", "public void setContextProperty(String property) {\n _contextProperty = property;\n }", "void setContext(Map<String, Object> context);", "public void setServiceContext(org.apache.axis2.context.xsd.ServiceContext param){\n localServiceContextTracker = true;\n \n this.localServiceContext=param;\n \n\n }", "public void set_context(VariableSymbolTable context);", "void setContext(Context context) {\n\t\tthis.context = context;\n\t}", "@Override\r\n\tpublic void setCamelContext(CamelContext ctx) {\n\t\tthis.ctx = ctx;\r\n\t}", "public void setContext(Context context) {\n this.context = context;\n }", "public void setContext(Context _context) {\n context = _context;\n }", "public ColumnContext context() {\n\t\t\treturn context;\n\t\t}", "public ColumnContext context() {\n\t\t\treturn context;\n\t\t}", "public void setContext(String context) {\n\n Set<String> contextNames = ((AppiumDriver) getDriver()).getContextHandles();\n\n if (contextNames.contains(context)) {\n ((AppiumDriver) getDriver()).context(context);\n info(\"Context changed successfully\");\n } else {\n info(context + \"not found on this page\");\n }\n\n info(\"Current context\" + ((AppiumDriver) getDriver()).getContext());\n }", "public void setContext(String context) {\n\t\tif (context.startsWith(\"/\")) {\n\t\t\tthis.context = context;\n\t\t}\n\t\telse {\n\t\t\tthis.context = \"/\" + context;\n\t\t}\n\t}", "@Override\n\tpublic void setContext(Context pContext) {\n\n\t}", "public abstract void setValue(ELContext context, Object value);", "public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }", "public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }", "public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }", "public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "public void setContext(Context context) {\n this.contextMain = context;\n }", "public void setContext(ComponentContext ctx)\n\t{\n\t\tthis.context = ctx;\n\t}", "public void set(Context ctx, XPreparedStatement ps)\r\n throws SQLException\r\n {\r\n \r\n }", "public synchronized static void setContext(Context con){\n\t\tcontext = con;\n\t}", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "public void setContext( UpgradeContext context ) {\r\n\t\tthis.context = context;\r\n\t\tupgradeContext = context;\r\n\t}", "public void setServerContext(ServerContext serverContext)\r\n {\r\n this.serverContext = serverContext;\r\n }", "public int getContextId() {\n return contextId;\n }", "public void setContextRoot( String contextRoot ) {\n contextRoot = ( !contextRoot.startsWith( \"/\" ) ) ? \"/\" + contextRoot : contextRoot;\n contextRoot = ( !contextRoot.endsWith( \"/\" ) ) ? contextRoot + \"/\" : contextRoot;\n\n this.contextRoot = contextRoot;\n }", "public void setUserContext(UserContext userContext);", "@Override\n\tpublic Void setContext(Context context) {\n\t\treturn null;\n\t}", "public void setAgentContext(String value) {\n setAttributeInternal(AGENTCONTEXT, value);\n }", "public Builder setContext(final Map<String, String> value) {\n _context = value;\n return this;\n }", "public void setContext(UsersResourceContext context) {\n this._context = context;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder setContextId(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.contextId = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "protected abstract void setContextAttribute(String name, Object value);", "public void setContext(PageContext context) {\n this.context = context;\n }", "public void setContext(Context conti) {\n\t\tthis.cont = conti;\n\t}", "public void setApplicationContext(ApplicationContext context) throws BeansException {\r\n CONTEXT = context;\r\n }", "@Override\r\n\tpublic void setContext(Context context) {\n\t\thost = context.getString(MongoWriteConstants.MONGO_HOST);\r\n\t\tport = context.getInteger(MongoWriteConstants.MONGO_PORT, MongoWriteConstants.DEFAULT_MONGO_PORT);\r\n\t\tuser = context.getString(MongoWriteConstants.MONGO_USER);\r\n\t\tpassword = context.getString(MongoWriteConstants.MONGO_PASSWORD);\r\n\t\tdatabase = context.getString(MongoWriteConstants.MONGO_DATABASE);\r\n\t\tcollection = context.getString(MongoWriteConstants.MONGO_COLLECTION);\r\n\t}", "public final void setService(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String service)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Service.toString(), service);\r\n\t}", "public void setContext(ActionBeanContext context) {\r\n this.context = context;\r\n }", "public ProcedureGlobal setContext(Context context2) {\n this.context = context2;\n return this;\n }", "public Builder setContextValue(int value) {\n \n context_ = value;\n onChanged();\n return this;\n }", "public ColumnContext context();", "protected void setContext(RestContext context) throws ServletException {\n\t\tthis.context.set(context);\n\t}", "public void setContextObject(Object co) {\n context = co;\n }", "public static void set(FHIRRequestContext context) {\n contexts.set(context);\n if (log.isLoggable(Level.FINEST)) {\n log.finest(\"FHIRRequestContext.set: \" + context.toString());\n }\n }", "public void setEntityContext(EntityContext ctx) {\n _ctx = ctx;\n }", "public static void setApplicationContext( ApplicationContext context ){\n\t\t\tctx = context;\n//\t\telse{\n//\t\t\tSystem.out.println(\"Error, ApplicationContext already has been set\");\n//\t\t}\n\t}", "public void setEntityContext(final EntityContext ctx) {\n ejbContext = ctx;\n testAllowedOperations(\"setEntityContext\");\n }", "@Override\n\tpublic void setPageContext(PageContext pageContext) {\n\t\tthis.pageContext = pageContext;\n\n\t}", "@Override\n\tpublic void setApplicationContext(ApplicationContext context) throws BeansException {\n\t\tSystem.out.println(\"setting newly\");\n\t\tthis.context=context;\n\t\tsetContext();\n\t}", "public void setContext(ContextRequest context) {\n\t\tthis.context = context;\n\t}", "public static void setupContext(ServletContext context) {\n \t//I don't need this dropdown list. bguo.\n// ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(context);\n// LookupManager mgr = (LookupManager) ctx.getBean(\"lookupManager\");\n//\n// // get list of possible roles\n// context.setAttribute(RoleConstants.AVAILABLE_ROLES, mgr.getAllRoles());\n// log.debug(\"Drop-down initialization complete [OK]\");\n }", "public void setConnectionContext(Object tmp) {\n this.connectionContext = tmp;\n }", "public void setConfigurationContext(org.apache.axis2.context.xsd.ConfigurationContext param){\n localConfigurationContextTracker = true;\n \n this.localConfigurationContext=param;\n \n\n }", "public void setRootContext(org.apache.axis2.context.xsd.ConfigurationContext param){\n localRootContextTracker = true;\n \n this.localRootContext=param;\n \n\n }", "public void setQueryContext(QueryContext context) {\n \t\tthis.queryContext = context;\n \t\tif (getStructuredViewer() == null)\n \t\t\treturn;\n \n \t\tObject input = getStructuredViewer().getInput();\n \t\tif (input instanceof QueriedElement) {\n \t\t\t((QueriedElement) input).setQueryContext(context);\n \t\t\tgetStructuredViewer().refresh();\n \t\t}\n \t}", "public String getContextId() {\n return contextId;\n }", "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) {\n\t\tthis.applicationContext = applicationContext;\n\t}", "void set(ExecutionContext context, String propertyName, Value propertyValue);", "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\tcontext=applicationContext;\n\t}", "@Override\n\tpublic void setApplicationContext(ApplicationContext context) throws BeansException {\n\t\t\n\t\tthis.context = context;\n\t\t\n\t}", "public String getContextProperty() {\n return _contextProperty;\n }", "public ContextDaoImpl(Context context) {\n Database.setCandidateSet(context.getCandidateSet());\n Database.setVoterSet(context.getVoterSet());\n Database.setLogins(context.getLogins());\n Database.setCommissionerSet(context.getCommissionerSet());\n }", "public void setContext(ConversationContext context) {\n\t\tthis.context = context;\n\t}", "public Builder setContext(POGOProtos.Rpc.QuestProto.Context value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n context_ = value.getNumber();\n onChanged();\n return this;\n }", "public void context_save(long context) {\n context_save(nativeHandle, context);\n }", "public final void setValue(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String value)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Value.toString(), value);\r\n\t}", "public void setupContext(ServletContext context) {\r\n\t\tMap<String, Object> map = new HashMap<String, Object>();\r\n\t\tmap.put(\"CURRENT_THEME\", Constants.CURRENT_THEME);\r\n\t\tmap.put(\"LOGGED_USER\", Constants.LOGGED_USER);\r\n\t\tmap.put(\"YES\", Constants.YES);\r\n\t\tmap.put(\"NO\", Constants.NO);\r\n\t\tmap.put(\"ACTION\", Constants.ACTION);\r\n\t\tmap.put(\"ACTION_ADD\", Constants.ACTION_ADD);\r\n\t\tmap.put(\"SECURE_FIELD\", Constants.SECURE_FIELD);\r\n\t\tmap.put(\"DEBUG_MODE\", Constants.isDebugMode());\r\n\t\tmap.put(\"SHOW_FLAT_COMMISSIONS\", \"false\");\r\n\r\n\t\tcontext.setAttribute(\"Constants\", map);\r\n\r\n\t}", "@Override\n public void setCallContext(CallContext context) {\n this.context = context;\n //repository map depends on the context\n this.eloCmisRepositoryMap = EloCmisRepository.createEloCmisRepositoryMap(this, (ExtensionsData) null);\n }", "@Override\n\tpublic void setApplicationContext(ApplicationContext ctx) throws BeansException {\n\t\tthis.ctx=ctx;\n\t}", "public void setContexts(final String val) {\n contexts = val;\n }", "public Builder setContext(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n context_ = value;\n onChanged();\n return this;\n }", "public org.apache.axis2.context.xsd.ServiceContext getServiceContext(){\n return localServiceContext;\n }", "public void setPageContext(PageContext pageContext) {\n this.pageContext = pageContext;\n }", "public final void setServiceProcess(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String serviceprocess)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.ServiceProcess.toString(), serviceprocess);\r\n\t}", "@JsonProperty(\"context\")\n public Context getContext() {\n return context;\n }", "@Override\n\tpublic void setMuleContext(MuleContext context) {\n\t\t// TODO Auto-generated method stub\n\t\tmuleContext = context;\n\t}", "public void setContextId(java.lang.CharSequence value) {\n this.contextId = value;\n }", "@Autowired\n\tpublic void setContext(ApplicationContext context) {\n\t\tthis.context = context;\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\n\t}", "public void setMessageDrivenContext(MessageDrivenContext context) {\n\t\tthis.sessionContext = context;\n\t}", "public void setApplicationContext(final ApplicationContext inApplicationContext)\n {\n ctx = inApplicationContext;\n }", "@Override\n public void setApplicationContext(ApplicationContext applicationContext) {\n super.setApplicationContext(applicationContext);\n this.applicationContext = applicationContext;\n }", "public void setCodeListContext(String codeListContext) {\r\n\t\tthis.codeListContext = codeListContext;\r\n\t}", "public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\tthis.context=context;\r\n\t}", "@Override\r\n\tpublic void setPageContext(PageContext arg0) {\n\t\tthis.pageContext = arg0;\r\n\t}", "public DictationModel setContext(Context context) {\n this.context = context;\n return this;\n }", "public abstract void set(T v, String context);", "public void setApiContext(ApiContext apiContext) {\n this.apiContext = apiContext;\n }", "@Autowired\r\n\tpublic void setContext(ApplicationContext context) {\r\n\t\tthis.context = context;\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\r\n\t}", "@Autowired\r\n\tpublic void setContext(ApplicationContext context) {\r\n\t\tthis.context = context;\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\r\n\t}" ]
[ "0.6158842", "0.6073568", "0.60556847", "0.58696944", "0.58510566", "0.58355623", "0.5807768", "0.5795783", "0.57854974", "0.5779765", "0.5749992", "0.5711723", "0.5699306", "0.56979066", "0.5687175", "0.5687175", "0.5685481", "0.56719935", "0.56508654", "0.56492174", "0.5634907", "0.5634907", "0.5634907", "0.5634907", "0.5580842", "0.5575443", "0.55553955", "0.55548996", "0.55524933", "0.5551152", "0.55490726", "0.5521017", "0.55109686", "0.549113", "0.54572797", "0.5456983", "0.54488", "0.54371405", "0.5436616", "0.5426956", "0.54171443", "0.5409025", "0.5395107", "0.53829044", "0.53740555", "0.5339209", "0.532687", "0.5315039", "0.5311093", "0.52888966", "0.52761", "0.52510643", "0.522906", "0.5218591", "0.52164406", "0.5203766", "0.52031034", "0.52030325", "0.5183147", "0.5149549", "0.5142376", "0.5141618", "0.51378536", "0.51364", "0.5136057", "0.51329756", "0.5132697", "0.51243335", "0.5107946", "0.50927734", "0.5084983", "0.50717235", "0.5054179", "0.50529", "0.504877", "0.5048665", "0.5045244", "0.502561", "0.50243604", "0.5010702", "0.50063795", "0.5004145", "0.5001457", "0.49750027", "0.49735904", "0.4968424", "0.4950369", "0.49490136", "0.49322987", "0.49285015", "0.4917474", "0.49148372", "0.49129668", "0.49108887", "0.49084997", "0.4905171", "0.4901689", "0.4901689" ]
0.5669494
20
convertToUDate Chuyen ngay kieu java.util.Date thanh java.sql.Date
public static java.util.Date convertToUDate(java.sql.Date sDate) { if (sDate == null) { return null; } else { java.util.Date uDate = new Date(sDate.getTime()); return uDate; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private java.sql.Date convertirDeDateUtilaDateSql(java.util.Date uDate) {\r\n java.sql.Date sDate = new java.sql.Date(uDate.getTime());\r\n return sDate;\r\n }", "public static java.sql.Date convertToSDate(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.sql.Date sDate = new java.sql.Date(uDate.getTime());\n\t\t\treturn sDate;\n\t\t}\n\t}", "public static java.sql.Date convertDate(java.util.Date utilDate) {\n\t\tif (utilDate != null) {\n\t\t\treturn new java.sql.Date(utilDate.getTime());\n\t\t}\n\t\treturn null;\n\t}", "private java.sql.Date convert(Date datet) {\n\t\treturn null;\n\t}", "public java.sql.Date toSQLDate() {\r\n String isoStr = this.toSQLString();\r\n return java.sql.Date.valueOf(isoStr);\r\n //return new GregorianCalendar(this.year, this.month, this.day).getTime();\r\n }", "public static java.sql.Date convertFromUtiltoSql(java.util.Date date){\n\t\tjava.sql.Date sqlDate = null;\n\t\tif (date != null) {\n\t\t\tsqlDate = new java.sql.Date(date.getTime());\n\t\t}\n\t\t return sqlDate;\n\t}", "public static java.util.Date convertFromSqlToUtil(java.sql.Date sqlDate) {\n java.util.Date utilDate = null;\n if (sqlDate != null) {\n utilDate = new java.util.Date(sqlDate.getTime());\n }\n return utilDate;\n }", "public static java.util.Date convertToUDate(java.sql.Timestamp timeStamp) {\n\t\tif (timeStamp == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.util.Date uDate = new Date(timeStamp.getTime());\n\t\t\treturn uDate;\n\t\t}\n\t}", "public static java.util.Date convertDate(java.sql.Date sqlDate) {\n\t\tif (sqlDate != null) {\n\t\t\treturn new java.util.Date(sqlDate.getTime());\n\t\t}\n\t\treturn null;\n\t}", "protected static java.sql.Date getConvertedDate(java.util.Date date) {\n\t\tif (date == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn new java.sql.Date(date.getTime());\n\t\t}\n\t}", "protected static java.util.Date getConvertedDate(java.sql.Date date) {\n\t\tif (date == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn new java.util.Date(date.getTime());\n\t\t}\n\t}", "@Test\n void test7(){\n\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date date = new Date();\n String dString = formatter.format(date);\n System.out.println(\"dString=\"+dString);\n\n Date datas = java.sql.Date.valueOf(dString);\n System.out.println(\"datas=\"+datas);\n\n\n }", "public static java.sql.Timestamp convertToTimestamp(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.sql.Timestamp timeStamp = new Timestamp(uDate.getTime());\n\t\t\treturn timeStamp;\n\t\t}\n\n\t}", "public static java.util.Date convertToUDate(String dateInString) {\n\t\tif (dateInString == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tjava.util.Date uDate = null;\n\t\t\ttry {\n\t\t\t\tuDate = dateFormat.parse(dateInString);\n\t\t\t} catch (ParseException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn uDate;\n\t\t}\n\t}", "public static String formatDateU(java.sql.Date date){\n\t\treturn date!=null?toTheString(date):\"unknown\";\n\t}", "public static Date toSqlDate(java.util.Date date) {\n return (date != null) ? new Date(date.getTime()) : null;\n }", "private java.sql.Timestamp convert(java.util.Date date){\r\n \tjava.sql.Timestamp result = null;\r\n \tif(date!=null){\r\n \t\tresult = new java.sql.Timestamp(date.getTime()); \t\t\r\n \t}\r\n \treturn result;\r\n }", "public static String convertUtilToSqlDate(String date) throws ParseException\r\n\t{\r\n\t\tjava.util.Date initDate = new SimpleDateFormat(\"dd-mm-yyyy\").parse(date);\r\n\t SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-mm-dd\");\r\n\t return formatter.format(initDate);\r\n\t}", "private Date stringToSQLDate(String fecha){\n\t\t\n\t\t\n\t\tint ano=Integer.parseInt(fecha.substring(0,4));\n\t\tint mes =Integer.parseInt(fecha.substring(5,7));\n\t\tint dia =Integer.parseInt( fecha.substring(8));\n\t\t\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tDate tmp = new Date(ano-1900,mes-1,dia);\n\t\t\n\t\treturn tmp;\n\t}", "private java.sql.Date obtenerFechaEnSQL(JXDatePicker fecha) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(fecha.getDate());\n int year = cal.get(Calendar.YEAR) - 1900; //PORQUE PUTAS\n int month = cal.get(Calendar.MONTH);\n int day = cal.get(Calendar.DAY_OF_MONTH);\n java.sql.Date sqlDate;\n\n sqlDate = new java.sql.Date(year, month, day);\n return sqlDate;\n }", "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }", "public static java.sql.Date toSqlDate(Object obj) {\n return toSqlDate(obj, (String) null, (TimeZone) null);\n }", "public static java.sql.Date getSQLDate(Date data) {\r\n\r\n\t\tjava.sql.Date dt = new java.sql.Date(data.getTime());\r\n\r\n\t\treturn dt;\r\n\t}", "public static String dateTran(String dateOri){\n\t\tDateFormat formatter1 ; \n\t\tDate date ; \n\t\tString newDate=null;\n\t\tformatter1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\ttry {\n\t\t\tdate=formatter1.parse(dateOri);\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat ( \"M/d/yy\" );\n\t\t\tnewDate = formatter.format(date);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn newDate;\n\t}", "public Date getDataNascimentoToSQL() {\r\n\t\treturn new Date(dataNascimento.getTimeInMillis());\r\n\t}", "public static java.sql.Date convertToSDate(String dateInString) {\n\t\tif (dateInString == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tjava.util.Date uDate = null;\n\t\t\tjava.sql.Date sDate = null;\n\t\t\ttry {\n\t\t\t\tuDate = dateFormat.parse(dateInString);\n\t\t\t\tsDate = new java.sql.Date(uDate.getTime());\n\t\t\t} catch (ParseException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn sDate;\n\t\t}\n\t}", "public static Date stringToDate(String string_date){\n Date myDate = null;\n \n try {\n java.util.Date utilDate = new SimpleDateFormat(\"yyyy-MM-dd\").parse(string_date);\n myDate = new java.sql.Date(utilDate.getTime());\n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return myDate;\n }", "private static Date toUtilDate(Date date) {\n return (date != null) ? new Date(date.getTime()) : null;\n }", "@Override\n\t\tpublic java.sql.Date convert(String s) throws ParseException {\n\t\t\ts = supportHtml5DateTimePattern(s);\n\t\t\t\n\t\t\tif (timeStampWithoutSecPatternLen == s.length()) {\n\t\t\t\ts = s + \":00\";\n\t\t\t}\n\t\t\tif (s.length() > dateLen) {\t// if (x < timeStampLen) 改用 datePattern 转换,更智能\n\t\t\t\t// return new java.sql.Date(java.sql.Timestamp.valueOf(s).getTime());\t// error under jdk 64bit(maybe)\n\t\t\t\treturn new java.sql.Date(getFormat(timeStampPattern).parse(s).getTime());\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// return new java.sql.Date(java.sql.Date.valueOf(s).getTime());\t// error under jdk 64bit\n\t\t\t\treturn new java.sql.Date(getFormat(datePattern).parse(s).getTime());\n\t\t\t}\n\t\t}", "public static void main(String args[]) {\n java.util.Date utilDate = new java.util.Date();\n System.out.println(\"Util date in Java : \" + utilDate);\n \n // contains only date information without time\n java.sql.Date sqlDate = new java.sql.Date(utilDate.getTime());\n System.out.println(\"SQL date in Java : \" + sqlDate);\n \n \n \n }", "public static String convertDate(String dbDate) throws ParseException //yyyy-MM-dd\n {\n String convertedDate = \"\";\n\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(dbDate);\n\n convertedDate = new SimpleDateFormat(\"MM/dd/yyyy\").format(date);\n\n return convertedDate ;\n }", "public static String formatDate(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\treturn dateFormat.format(uDate);\n\t\t}\n\t}", "public String toDate(Date date) {\n DateFormat df = DateFormat.getDateInstance();\r\n String fecha = df.format(date);\r\n return fecha;\r\n }", "public static String dateConv(int date) {\n\t\tDate mills = new Date(date*1000L); \n\t\tString pattern = \"dd-MM-yyyy\";\n\t\tSimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n\t\tsimpleDateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT+1\"));\n\t\tString formattedDate = simpleDateFormat.format(mills);\n\t\treturn formattedDate;\n\t}", "public void test_Date_utilDateColumn_selects_sqlDate_Tx() throws Exception {\n // ## Arrange ##\n final Integer memberId = 1;\n\n // ## Act ##\n final Member member = jdbcManager.from(Member.class).where(\"memberId = ?\", memberId).getSingleResult();\n\n // ## Assert ##\n assertNotNull(member);\n log(member.toString());\n assertEquals(memberId, member.memberId);\n assertEquals(java.sql.Date.class, member.birthdate.getClass());\n }", "public static java.sql.Date convertToTimestamp(Timestamp convert) {\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.setTimeInMillis(convert.getTime());\n\t\tjava.sql.Date d = new java.sql.Date(c.getTimeInMillis());\n\t\treturn d;\n\t}", "public static String dateToSqlString(java.util.Date date)\n\t{\n\t\treturn (date.getYear() + 1900) + \"-\" + (date.getMonth() + 1) +\"-\"+ date.getDate();\n\t}", "public static java.sql.Date strToSqlDateDB(String fecha){\n\t\treturn java.sql.Date.valueOf( strToDateFormToDB(fecha) );\n\t}", "public static java.util.Date strToUtilDate(String fecha, String hora){\n\t\tString f=strToDateFormToDB(fecha)+\" \"+hora+\":00\";\n\t\tjava.sql.Timestamp dh= java.sql.Timestamp.valueOf( f);\n\t\treturn (java.util.Date)dh;\n\t}", "public static String formatDatetime(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\n\t\t\t\t\t\"dd/MM/yyyy HH:mm:ss\");\n\t\t\treturn dateFormat.format(uDate);\n\t\t}\n\t}", "public static Date fromOADate(double oaDate) {\n Date date = new Date();\n //long t = (long)((oaDate - 25569) * 24 * 3600 * 1000);\n //long t = (long) (oaDate * 1000000);\n long t = (long)BigDecimalUtil.mul(oaDate, 1000000);\n date.setTime(t);\n return date;\n }", "public void testDateTimeConverters() throws Exception {\n long currentTime = System.currentTimeMillis();\n java.util.Date utilDate = new java.util.Date(currentTime);\n assertConversion(\"DateToLong\", new DateTimeConverters.DateToLong(), utilDate, currentTime);\n assertConversion(\"DateToSqlDate\", new DateTimeConverters.DateToSqlDate(), utilDate, new java.sql.Date(currentTime));\n assertConversion(\"DateToString\", new DateTimeConverters.DateToString(), utilDate, utilDate.toString());\n //assertConversion(\"StringToDate\", new DateTimeConverters.StringToDate(), utilDate.toString(), utilDate);\n assertConversion(\"DateToTimestamp\", new DateTimeConverters.DateToTimestamp(), utilDate, new java.sql.Timestamp(currentTime));\n // Source class = java.sql.Date\n java.sql.Date sqlDate = new java.sql.Date(currentTime);\n assertConversion(\"SqlDateToDate\", new DateTimeConverters.SqlDateToDate(), sqlDate, utilDate);\n assertConversion(\"SqlDateToString\", new DateTimeConverters.SqlDateToString(), sqlDate, sqlDate.toString());\n //assertConversion(\"StringToSqlDate\", new DateTimeConverters.StringToSqlDate(), sqlDate.toString(), sqlDate);\n java.sql.Timestamp timestamp = new java.sql.Timestamp(currentTime);\n assertConversion(\"SqlDateToTimestamp\", new DateTimeConverters.SqlDateToTimestamp(), sqlDate, timestamp);\n assertConversion(\"StringToTimestamp\", new DateTimeConverters.StringToTimestamp(), timestamp.toString(), timestamp);\n assertConversion(\"TimestampToDate\", new DateTimeConverters.TimestampToDate(), timestamp, utilDate);\n assertConversion(\"TimestampToSqlDate\", new DateTimeConverters.TimestampToSqlDate(), timestamp, sqlDate);\n //assertConversion(\"TimestampToString\", new DateTimeConverters.TimestampToString(), timestamp, timestamp.toString());\n }", "private void tryRoundtripSqlDate(String dt) throws JiBXException {\n java.sql.Date date1 = Utility.deserializeSqlDate(dt);\n int split = dt.indexOf('-', 1);\n java.sql.Date date2 = java.sql.Date.valueOf(dt.substring(0, split+6));\n assertEquals(date1, date2);\n String result = Utility.serializeSqlDate(date1);\n assertEquals(dt.substring(0, result.length()), result);\n }", "@TypeConverter\n public Date toDate(long l){\n return new Date(l);\n }", "protected java.util.Date getResultSetDate(ResultSet rs, String colName) throws SQLException {\n //capture sql date\n java.sql.Date sqlDate = rs.getDate(colName);\n\n //if it was null, return a null object\n if(rs.wasNull())\n return null;\n\n //otherwise create the new date\n java.util.Date javaDate = new java.util.Date(sqlDate.getTime());\n \n //return a java Date object\n return javaDate;\n }", "public static String formatToSQLDate(Date date) {\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\n\t\t\t\t\"yyyy-MM-dd\");\n\t\tString created_date = dateFormat.format(date);\n\t\treturn created_date;\n\t}", "public static String convertStringToSqlString(String input) throws ParseException{\r\n\t\tSimpleDateFormat fromUser = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tSimpleDateFormat myFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\r\n\t\ttry {\r\n\r\n\t\t String reformattedStr = myFormat.format(fromUser.parse(input));\r\n\t\t return reformattedStr;\r\n\t\t} catch (ParseException e) {\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t \r\n\t\t/* Date dtJava;\r\n\t\tDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n dtJava = (java.util.Date)formatter.parse(input);\r\n\t\t\r\n\t\tjava.sql.Date date = new java.sql.Date(dtJava.getTime());\r\n\t\t\r\n\t\tString dtSql = (String)date.toString();\r\n\t\t\r\n\t\treturn dtSql;*/\r\n\t}", "public static String SqlDateToString(java.sql.Date DateValue){\n return DateValue.toString();\n }", "@SuppressWarnings(\"deprecation\")\n\tpublic static Timestamp convertToDate(Date convert) {\n\t\tif (convert.toString().startsWith(\"00\")) convert.setYear(2014 - 1900);\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.setTime(convert);\n\t\tTimestamp t = new Timestamp(c.getTimeInMillis());\n\t\treturn t;\n\t}", "public String convertDateFormate(String dt) {\n String formatedDate = \"\";\n if (dt.equals(\"\"))\n return \"1970-01-01\";\n String[] splitdt = dt.split(\"-\");\n formatedDate = splitdt[2] + \"-\" + splitdt[1] + \"-\" + splitdt[0];\n \n return formatedDate;\n \n }", "private static String convertDate(String date) {\n\t\tlong dateL = Long.valueOf(date);\n\t\tDate dateTo = new Date(dateL);\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tString formatted = format.format(dateTo);\n\t\tSystem.out.println(\"Date formatted: \" + formatted);\n\t\treturn formatted;\n\t}", "public void testConvertDate() throws Exception {\n String[] message= {\n \"from Date\",\n \"from Calendar\",\n \"from SQL Date\",\n \"from SQL Time\",\n \"from SQL Timestamp\"\n };\n \n long now = System.currentTimeMillis();\n \n Object[] date = {\n new Date(now),\n new java.util.GregorianCalendar(),\n new java.sql.Date(now),\n new java.sql.Time(now),\n new java.sql.Timestamp(now)\n };\n \n // Initialize calendar also with same ms to avoid a failing test in a new time slice\n ((GregorianCalendar)date[1]).setTimeInMillis(now);\n \n for (int i = 0; i < date.length; i++) {\n Object val = makeConverter().convert(getExpectedType(), date[i]);\n assertNotNull(\"Convert \" + message[i] + \" should not be null\", val);\n assertTrue(\"Convert \" + message[i] + \" should return a \" + getExpectedType().getName(),\n getExpectedType().isInstance(val));\n assertEquals(\"Convert \" + message[i] + \" should return a \" + date[0],\n now, ((Date) val).getTime());\n }\n }", "java.lang.String getToDate();", "public static java.sql.Date StringToSqlDate(String StringValue){\n return java.sql.Date.valueOf(StringValue);\n }", "public Date obtenerUltimaFecha() {\n String sql = \"SELECT proyind_periodo_fin\"\n + \" FROM proy_indices\"\n + \" WHERE proyind_periodo_fin IS NOT NULL\"\n + \" ORDER BY proyind_periodo_fin DESC\"\n + \" LIMIT 1\";\n Query query = getEm().createNativeQuery(sql);\n List result = query.getResultList();\n return (Date) DAOUtils.obtenerSingleResult(result);\n }", "public java.util.Date toDate() {\n return toCalendar().getTime();\n }", "static public String dateToUtc(Date date){\n\t\treturn writeTimeStamp(UTC_FORMAT, date);\n\t}", "public void convertEndDate(Date date) {\r\n endTime = new java.sql.Timestamp(date.getTime());\r\n }", "public String getDateConvert() {\n SimpleDateFormat dateFormat1 = new SimpleDateFormat(\"MMM dd yyyy - hh:mm\");\n SimpleDateFormat dateFormat2 = new SimpleDateFormat(\"a\");\n String date = dateFormat1.format(this.timePost) + dateFormat2.format(this.timePost).toLowerCase();\n return date;\n }", "public String dateToMySQLDate(Date fecha, boolean paraMostrar) {\n if (paraMostrar) {\n java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(\"dd/MM/yyyy\");\n return sdf.format(fecha);\n } else {\n java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(fecha);\n }\n }", "public static Date GetUTCdatetimeAsDate()\n {\n return StringDateToDate(GetUTCdatetimeAsString());\n }", "@Override\n\tpublic Timestamp convert(Date source) {\n\t\treturn new Timestamp(source.getTime());\n\t}", "public static String convert( Date date )\r\n {\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat( \"yyyy-MM-dd\" );\r\n\r\n return simpleDateFormat.format( date );\r\n }", "public static String formatterDateUS(Date date){\n\t\tString retour = null;\n\t\tif(date != null){\n\t\t\tretour = df.format(date);\n\t\t}\n\t\treturn retour;\n\t}", "private String convertDateVN(String date) {\r\n String arrDate[] = date.split(\"-\");\r\n date = arrDate[2] + \"/\" + arrDate[1] + \"/\" + arrDate[0];\r\n return date;\r\n }", "public static java.sql.Date toSqlDate(Object obj, String pattern, TimeZone timeZone) {\n if (obj == null) {\n return null;\n }\n if (obj instanceof java.sql.Date) {\n final java.sql.Date resultDate;\n final java.sql.Date paramSqlDate = (java.sql.Date) obj;\n if (java.sql.Date.class.equals(paramSqlDate.getClass())) { // pure SQL-date\n resultDate = paramSqlDate;\n } else { // sub class\n // because the SQL-date type is not final class.\n resultDate = new java.sql.Date(paramSqlDate.getTime());\n }\n clearDateTimeParts(resultDate);\n return resultDate;\n }\n final Date date;\n try {\n date = toDate(obj, pattern, timeZone);\n } catch (ParseDateNumberFormatException e) {\n String msg = \"Failed to format the time as number:\";\n msg = msg + \" obj=\" + obj + \" pattern=\" + pattern;\n throw new ParseSqlDateNumberFormatException(msg, e);\n } catch (ParseDateOutOfCalendarException e) {\n String msg = \"The SQL-date expression is out of calendar:\";\n msg = msg + \" obj=\" + obj + \" pattern=\" + pattern;\n throw new ParseSqlDateOutOfCalendarException(msg, e);\n } catch (ParseDateException e) {\n String msg = \"Failed to parse the object to SQL-date:\";\n msg = msg + \" obj=\" + obj + \" pattern=\" + pattern;\n throw new ParseSqlDateException(msg, e);\n }\n if (date != null) {\n clearDateTimeParts(date);\n return new java.sql.Date(date.getTime());\n }\n return null;\n }", "private String convertToDate(final long millis) {\n final Date date = new Date(millis);\n java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat(\n \"MMM dd, yyyy\", Locale.US);\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"PST\")); //TODO should be TZ of the user???\n return dateFormat.format(date);\n }", "public java.sql.Date format(String date) {\n int i = 0;\n int dateAttr[];\n dateAttr = new int[3];\n for(String v : date.split(\"/\")) {\n dateAttr[i] = Integer.parseInt(v);\n i++;\n }\n\n GregorianCalendar gcalendar = new GregorianCalendar();\n gcalendar.set(dateAttr[2], dateAttr[0]-1, dateAttr[1]); // Year,Month,Day Of Month\n java.sql.Date sdate = new java.sql.Date(gcalendar.getTimeInMillis());\n return sdate;\n }", "@Override\n\tpublic Date convert(String source) {\n\t\tif (StringUtils.isValid(source)) {\n\t\t\tDateFormat dateFormat;\n\t\t\tif (source.indexOf(\":\") != -1) {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t} else {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd\"); \n\t\t\t}\n\t\t\t//日期转换为严格模式\n\t\t dateFormat.setLenient(false); \n\t try {\n\t\t\t\treturn dateFormat.parse(source);\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\treturn null;\n\t}", "@TypeConverter\n public long fromDate(Date mDate){\n return mDate.getTime();\n }", "@Test\n public void dateUtilTest() {\n String orgStr = \"2016-01-05 10:00:17\";\n Date orgDate = new Date(1451959217000L);\n Assert.assertTrue(DateStrValueConvert.dateFormat(orgDate).equals(orgStr));\n Assert.assertTrue(DateStrValueConvert.dateConvert(orgStr).equals(orgDate));\n }", "public Date getNormalizedDate(Date date)\n/* */ {\n/* 208 */ return new Date(date.getTime());\n/* */ }", "protected static java.sql.Timestamp getConvertedTimestamp(java.util.Date date) {\n\t\tif (date == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn new java.sql.Timestamp(date.getTime());\n\t\t}\n\t}", "public static String dateToWccDate(Date dtDate) {\n String strDate = \"\";\n if (dtDate != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(WccConstants.WCC_DATE_FORMAT);\n strDate = sdf.format(dtDate);\n }\n return strDate;\n }", "public static Date toDate(Object obj) {\n return toDate(obj, (String) null, (TimeZone) null);\n }", "private String toDate(Date appDate) throws ParseException {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(appDate);\n\t\tString formatedDate = cal.get(Calendar.DATE) + \"/\" + (cal.get(Calendar.MONTH) + 1) + \"/\" + cal.get(Calendar.YEAR);\n\t\tSystem.out.println(\"formatedDate : \" + formatedDate); \n\t\treturn formatedDate;\n\t}", "@Override\n\tpublic Date convertToDatabaseColumn(LocalDate attribute) {\n\t\treturn Date.valueOf(attribute);\n\t}", "public static synchronized String sqlDateToString(java.sql.Date date) {\r\n\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n return sdf.format(date.getTime());\r\n }", "@Override\n\tpublic LocalDate convertToEntityAttribute(Date dbData) {\n\t\treturn dbData.toLocalDate();\n\t}", "@Override\n public Date getDate(Calendar cal) throws SQLException {\n if (isNull()) return null;\n return getDatatypeCoder().decodeDate(getDate(), cal);\n }", "public Date getConvertedDate(String dateToBeConverted) {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yy hh:mm:ss\");\n\t\ttry{\n\t\t\tbookedDate = sdf.parse(dateToBeConverted);\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn bookedDate;\n\t}", "public static Date hoy_en_DATE() {\n Calendar cc = Calendar.getInstance();\n Date hoyEnDate = cc.getTime();\n return hoyEnDate;\n }", "private static String convertToDDMMYYYY(Date date) {\n\t\tString returnStr = \"\";\n\t\ttry {\n\t\tDateFormat format1 = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturnStr = format1.format(date);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn returnStr;\n\t}", "public static String formatDate(java.sql.Date date){\n\t\treturn date!=null?toTheString(date):\"\";\n\t}", "public static String convertToDateStringWithsdf(String unformateddate, SimpleDateFormat sdf) {\n Date date = null;\n String dateStr = unformateddate;\n try {\n\n date = sdf.parse(unformateddate);\n dateStr = new SimpleDateFormat(\"dd MMM yyyy\").format(date);\n } catch (Exception e) {\n // TODO: handle exception\n e.printStackTrace();\n }\n\n return dateStr;\n }", "private String convertDate(String date){\r\n String arrDate[] = date.split(\"/\");\r\n date = arrDate[2] + \"-\" + arrDate[1] + \"-\" + arrDate[0];\r\n return date;\r\n }", "@TypeConverter\n public static Date toDate(String value) {\n if (value == null) return null;\n\n try {\n return df.parse(value);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n }", "protected LocalDate toLocalDate(Object obj) {\n return DfTypeUtil.toLocalDate(obj, getDBFluteSystemFinalTimeZone());\n }", "public static LocalDate convertDate(Date dateToConvert) {\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n return LocalDate.parse(format.format(dateToConvert));\n }", "public java.sql.Timestamp getFecha_envio();", "public String GetDate(int semaine, int jour) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\t\n\t\tcal.setWeekDate(2020, semaine, jour);\n\t\tjava.util.Date date = cal.getTime();\n\t\tString day = new SimpleDateFormat(\"dd\").format(date); \n\t\tString month = new SimpleDateFormat(\"MM\").format(date);\n\t\tString resultatString = new String();\n\t\tresultatString = (day + \"/\" +month);\n\t\treturn resultatString;\n\t}", "public static String convertDate(String inputdate, String fromtimezone, String totimezone)\n\n {\n String sDateinto = \"\";\n try {\n SimpleDateFormat formatter = new SimpleDateFormat(DATE_FORMAT);\n\n String dateInString = inputdate.substring(0, 22) ;\n\n formatter.setTimeZone(TimeZone.getTimeZone(fromtimezone));\n Date date = formatter.parse(dateInString);\n Log.i(\"FromDate String : \", formatter.format(date));\n\n\n SimpleDateFormat totime = new SimpleDateFormat(DATE_FORMAT);\n //TimeZone tzlocaltime = TimeZone.getDefault();\n totime.setTimeZone(TimeZone.getTimeZone(totimezone));\n\n sDateinto = totime.format(date); // Convert to String first\n Date dateInTo = formatter.parse(sDateinto); // Create a new Date object\n\n // Log.i(\"ToDate String: \", sDateinto);\n Log.i(\"ToDate Object: \", formatter.format(dateInTo));\n return sDateinto ;\n }\n catch (ParseException e)\n {\n Log.i(\"Date Conversion\" ,\"Error in parsing\" );\n return \"Date parsing error\" ;\n }\n\n }", "public String convertDateToString(){\n\t\tString aDate = \"\";\n\t\taDate += Integer.toString(day);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(month);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(year);\n\t\treturn aDate;\n\t}", "public final static Date getDate(final Date date)\n {\n if (date == null)\n {\n return null;\n }\n final String packageName = date.getClass().getPackage().getName();\n if (packageName.equals(\"java.sql\"))\n {\n return new Date(date.getTime());\n }\n return date;\n }", "public abstract java.sql.Timestamp getFecha_ingreso();", "public static double toOADate(Date date) {\n double oaDate = date.getTime();\n //oaDate = oaDate / (24 * 3600 * 1000) + 25569;\n //oaDate = oaDate / 1000000;\n oaDate = BigDecimalUtil.div(oaDate, 1000000);\n\n return oaDate;\n }", "public Date getDateConversion() {\n return this.dateConversion;\n }", "private LocalDate get_DATE(int column) {\n // DATE column is always 10 chars long\n String dateString = dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n 10, charset_[column - 1]).toString();\n return LocalDate.parse(dateString, DRDAConstants.DB2_DATE_FORMAT);\n// return DateTime.dateBytesToDate(dataBuffer_,\n// columnDataPosition_[column - 1],\n// cal,\n// charset_[column - 1]);\n }", "public Date formatForDate(String data) throws ParseException{\n //definindo a forma da Data Recebida\n DateFormat formatUS = new SimpleDateFormat(\"dd-MM-yyyy\");\n return formatUS.parse(data);\n }", "public static String genSQL_To_Date(Calendar cal) {\r\n StringBuffer sbTemp = new StringBuffer();\r\n SimpleDateFormat formatter =\r\n new SimpleDateFormat(NCMS.DATE_FORMAT_FULL);\r\n if (cal != null) {\r\n sbTemp.append(\"TO_DATE('\")\r\n .append(formatter.format(cal.getTime())).append(\"','\")\r\n .append(NCMS.SQL_DATE_FORMAT_FULL).append(\"')\");\r\n return sbTemp.toString();\r\n }\r\n else {\r\n return \"null\";\r\n }\r\n }" ]
[ "0.85999125", "0.7387899", "0.7264083", "0.7222738", "0.707147", "0.695887", "0.67972684", "0.67660934", "0.67505777", "0.66991484", "0.6652503", "0.6598512", "0.6533969", "0.64430445", "0.6398552", "0.63924557", "0.6253982", "0.6197552", "0.61327827", "0.6132071", "0.61086154", "0.60643905", "0.60475576", "0.6039303", "0.6035088", "0.5994272", "0.5986688", "0.59811896", "0.5976003", "0.5876352", "0.5868731", "0.5858912", "0.5839197", "0.577544", "0.5767684", "0.5764364", "0.57262135", "0.571029", "0.5697651", "0.56914246", "0.5690159", "0.5686383", "0.5683876", "0.5679388", "0.56337255", "0.56239855", "0.5579129", "0.55692893", "0.5565733", "0.5565631", "0.55240023", "0.552365", "0.55113053", "0.5472239", "0.5406907", "0.5398651", "0.53816354", "0.5366642", "0.5362494", "0.53496826", "0.53410995", "0.53266567", "0.53170395", "0.53159255", "0.5308795", "0.53007865", "0.5300046", "0.5297849", "0.52894425", "0.52888536", "0.5281215", "0.52810794", "0.5259559", "0.525754", "0.52556187", "0.5254263", "0.5253358", "0.5250793", "0.5250102", "0.52294195", "0.522202", "0.5220101", "0.52193683", "0.52183884", "0.52179164", "0.52075106", "0.51968527", "0.5189996", "0.5185351", "0.518516", "0.5176112", "0.517434", "0.5173853", "0.5167485", "0.5163045", "0.516248", "0.5154161", "0.5152699", "0.5149146", "0.5145824" ]
0.7638536
1
convertToSDate Chuyen ngay kieu java.util.Date thanh java.sql.Date
public static java.sql.Date convertToSDate(java.util.Date uDate) { if (uDate == null) { return null; } else { java.sql.Date sDate = new java.sql.Date(uDate.getTime()); return sDate; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private java.sql.Date convertirDeDateUtilaDateSql(java.util.Date uDate) {\r\n java.sql.Date sDate = new java.sql.Date(uDate.getTime());\r\n return sDate;\r\n }", "private java.sql.Date convert(Date datet) {\n\t\treturn null;\n\t}", "public java.sql.Date toSQLDate() {\r\n String isoStr = this.toSQLString();\r\n return java.sql.Date.valueOf(isoStr);\r\n //return new GregorianCalendar(this.year, this.month, this.day).getTime();\r\n }", "public static java.util.Date convertToUDate(java.sql.Date sDate) {\n\t\tif (sDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.util.Date uDate = new Date(sDate.getTime());\n\t\t\treturn uDate;\n\t\t}\n\n\t}", "public static java.util.Date convertDate(java.sql.Date sqlDate) {\n\t\tif (sqlDate != null) {\n\t\t\treturn new java.util.Date(sqlDate.getTime());\n\t\t}\n\t\treturn null;\n\t}", "@Test\n void test7(){\n\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date date = new Date();\n String dString = formatter.format(date);\n System.out.println(\"dString=\"+dString);\n\n Date datas = java.sql.Date.valueOf(dString);\n System.out.println(\"datas=\"+datas);\n\n\n }", "protected static java.util.Date getConvertedDate(java.sql.Date date) {\n\t\tif (date == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn new java.util.Date(date.getTime());\n\t\t}\n\t}", "protected static java.sql.Date getConvertedDate(java.util.Date date) {\n\t\tif (date == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn new java.sql.Date(date.getTime());\n\t\t}\n\t}", "public static java.sql.Date convertToSDate(String dateInString) {\n\t\tif (dateInString == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tjava.util.Date uDate = null;\n\t\t\tjava.sql.Date sDate = null;\n\t\t\ttry {\n\t\t\t\tuDate = dateFormat.parse(dateInString);\n\t\t\t\tsDate = new java.sql.Date(uDate.getTime());\n\t\t\t} catch (ParseException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn sDate;\n\t\t}\n\t}", "public static java.sql.Date convertDate(java.util.Date utilDate) {\n\t\tif (utilDate != null) {\n\t\t\treturn new java.sql.Date(utilDate.getTime());\n\t\t}\n\t\treturn null;\n\t}", "public static java.sql.Date convertFromUtiltoSql(java.util.Date date){\n\t\tjava.sql.Date sqlDate = null;\n\t\tif (date != null) {\n\t\t\tsqlDate = new java.sql.Date(date.getTime());\n\t\t}\n\t\t return sqlDate;\n\t}", "private java.sql.Timestamp convert(java.util.Date date){\r\n \tjava.sql.Timestamp result = null;\r\n \tif(date!=null){\r\n \t\tresult = new java.sql.Timestamp(date.getTime()); \t\t\r\n \t}\r\n \treturn result;\r\n }", "@Override\n\t\tpublic java.sql.Date convert(String s) throws ParseException {\n\t\t\ts = supportHtml5DateTimePattern(s);\n\t\t\t\n\t\t\tif (timeStampWithoutSecPatternLen == s.length()) {\n\t\t\t\ts = s + \":00\";\n\t\t\t}\n\t\t\tif (s.length() > dateLen) {\t// if (x < timeStampLen) 改用 datePattern 转换,更智能\n\t\t\t\t// return new java.sql.Date(java.sql.Timestamp.valueOf(s).getTime());\t// error under jdk 64bit(maybe)\n\t\t\t\treturn new java.sql.Date(getFormat(timeStampPattern).parse(s).getTime());\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// return new java.sql.Date(java.sql.Date.valueOf(s).getTime());\t// error under jdk 64bit\n\t\t\t\treturn new java.sql.Date(getFormat(datePattern).parse(s).getTime());\n\t\t\t}\n\t\t}", "private Date stringToSQLDate(String fecha){\n\t\t\n\t\t\n\t\tint ano=Integer.parseInt(fecha.substring(0,4));\n\t\tint mes =Integer.parseInt(fecha.substring(5,7));\n\t\tint dia =Integer.parseInt( fecha.substring(8));\n\t\t\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tDate tmp = new Date(ano-1900,mes-1,dia);\n\t\t\n\t\treturn tmp;\n\t}", "public static java.util.Date convertFromSqlToUtil(java.sql.Date sqlDate) {\n java.util.Date utilDate = null;\n if (sqlDate != null) {\n utilDate = new java.util.Date(sqlDate.getTime());\n }\n return utilDate;\n }", "public static Date toSqlDate(java.util.Date date) {\n return (date != null) ? new Date(date.getTime()) : null;\n }", "private java.sql.Date obtenerFechaEnSQL(JXDatePicker fecha) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(fecha.getDate());\n int year = cal.get(Calendar.YEAR) - 1900; //PORQUE PUTAS\n int month = cal.get(Calendar.MONTH);\n int day = cal.get(Calendar.DAY_OF_MONTH);\n java.sql.Date sqlDate;\n\n sqlDate = new java.sql.Date(year, month, day);\n return sqlDate;\n }", "public static java.sql.Date getSQLDate(Date data) {\r\n\r\n\t\tjava.sql.Date dt = new java.sql.Date(data.getTime());\r\n\r\n\t\treturn dt;\r\n\t}", "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }", "public static java.sql.Date toSqlDate(Object obj) {\n return toSqlDate(obj, (String) null, (TimeZone) null);\n }", "public static Date stringToDate(String string_date){\n Date myDate = null;\n \n try {\n java.util.Date utilDate = new SimpleDateFormat(\"yyyy-MM-dd\").parse(string_date);\n myDate = new java.sql.Date(utilDate.getTime());\n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return myDate;\n }", "public static String convertUtilToSqlDate(String date) throws ParseException\r\n\t{\r\n\t\tjava.util.Date initDate = new SimpleDateFormat(\"dd-mm-yyyy\").parse(date);\r\n\t SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-mm-dd\");\r\n\t return formatter.format(initDate);\r\n\t}", "public static java.sql.Date convertToTimestamp(Timestamp convert) {\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.setTimeInMillis(convert.getTime());\n\t\tjava.sql.Date d = new java.sql.Date(c.getTimeInMillis());\n\t\treturn d;\n\t}", "public Date getDataNascimentoToSQL() {\r\n\t\treturn new Date(dataNascimento.getTimeInMillis());\r\n\t}", "public String toDate(Date date) {\n DateFormat df = DateFormat.getDateInstance();\r\n String fecha = df.format(date);\r\n return fecha;\r\n }", "public static java.sql.Date strToSqlDateDB(String fecha){\n\t\treturn java.sql.Date.valueOf( strToDateFormToDB(fecha) );\n\t}", "public static String formatToSQLDate(Date date) {\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\n\t\t\t\t\"yyyy-MM-dd\");\n\t\tString created_date = dateFormat.format(date);\n\t\treturn created_date;\n\t}", "public static java.sql.Timestamp convertToTimestamp(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.sql.Timestamp timeStamp = new Timestamp(uDate.getTime());\n\t\t\treturn timeStamp;\n\t\t}\n\n\t}", "public static String SqlDateToString(java.sql.Date DateValue){\n return DateValue.toString();\n }", "public static java.util.Date strToUtilDate(String fecha, String hora){\n\t\tString f=strToDateFormToDB(fecha)+\" \"+hora+\":00\";\n\t\tjava.sql.Timestamp dh= java.sql.Timestamp.valueOf( f);\n\t\treturn (java.util.Date)dh;\n\t}", "protected java.util.Date getResultSetDate(ResultSet rs, String colName) throws SQLException {\n //capture sql date\n java.sql.Date sqlDate = rs.getDate(colName);\n\n //if it was null, return a null object\n if(rs.wasNull())\n return null;\n\n //otherwise create the new date\n java.util.Date javaDate = new java.util.Date(sqlDate.getTime());\n \n //return a java Date object\n return javaDate;\n }", "@SuppressWarnings(\"deprecation\")\n\tpublic static Timestamp convertToDate(Date convert) {\n\t\tif (convert.toString().startsWith(\"00\")) convert.setYear(2014 - 1900);\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.setTime(convert);\n\t\tTimestamp t = new Timestamp(c.getTimeInMillis());\n\t\treturn t;\n\t}", "public static org.opencds.vmr.v1_0.schema.TS dateInternal2TS(java.util.Date pDate) {\n\n\t\tString _METHODNAME = \"tSInternal2TS(): \";\n\n\t\tif (pDate == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString errStr = null;\n\t\tjava.util.Date javaTime = pDate;\n\t\tString formatTemplate = \"yyyyMMddHHmmss.SSSZZZZZ\";\n\n\t\t// Format java.util.Date and return schema TS if successful\n\t\torg.opencds.vmr.v1_0.schema.TS lTS = new org.opencds.vmr.v1_0.schema.TS();\n\t\ttry {\n\t\t\t// format and set schema TS object\n\t\t\tlTS.setValue(DateUtility.getInstance().getDateAsString(javaTime, formatTemplate));\n\t\t\treturn lTS;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\terrStr = _METHODNAME + \"java.util.Date \\\"\" + javaTime + \"\\\" threw exception trying to format as: \" + formatTemplate;\n\t\t\tthrow new RuntimeException(errStr + \": \" + e.getMessage() );\n\t\t}\n\t}", "@Override\n\tpublic Timestamp convert(Date source) {\n\t\treturn new Timestamp(source.getTime());\n\t}", "public static java.sql.Date StringToSqlDate(String StringValue){\n return java.sql.Date.valueOf(StringValue);\n }", "public static java.util.Date convertToUDate(java.sql.Timestamp timeStamp) {\n\t\tif (timeStamp == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.util.Date uDate = new Date(timeStamp.getTime());\n\t\t\treturn uDate;\n\t\t}\n\t}", "public static String dateToSqlString(java.util.Date date)\n\t{\n\t\treturn (date.getYear() + 1900) + \"-\" + (date.getMonth() + 1) +\"-\"+ date.getDate();\n\t}", "public static String formatDate(java.sql.Date sDate) {\n\t\tif (sDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\treturn dateFormat.format(sDate);\n\t\t}\n\t}", "public void testConvertDate() throws Exception {\n String[] message= {\n \"from Date\",\n \"from Calendar\",\n \"from SQL Date\",\n \"from SQL Time\",\n \"from SQL Timestamp\"\n };\n \n long now = System.currentTimeMillis();\n \n Object[] date = {\n new Date(now),\n new java.util.GregorianCalendar(),\n new java.sql.Date(now),\n new java.sql.Time(now),\n new java.sql.Timestamp(now)\n };\n \n // Initialize calendar also with same ms to avoid a failing test in a new time slice\n ((GregorianCalendar)date[1]).setTimeInMillis(now);\n \n for (int i = 0; i < date.length; i++) {\n Object val = makeConverter().convert(getExpectedType(), date[i]);\n assertNotNull(\"Convert \" + message[i] + \" should not be null\", val);\n assertTrue(\"Convert \" + message[i] + \" should return a \" + getExpectedType().getName(),\n getExpectedType().isInstance(val));\n assertEquals(\"Convert \" + message[i] + \" should return a \" + date[0],\n now, ((Date) val).getTime());\n }\n }", "private void tryRoundtripSqlDate(String dt) throws JiBXException {\n java.sql.Date date1 = Utility.deserializeSqlDate(dt);\n int split = dt.indexOf('-', 1);\n java.sql.Date date2 = java.sql.Date.valueOf(dt.substring(0, split+6));\n assertEquals(date1, date2);\n String result = Utility.serializeSqlDate(date1);\n assertEquals(dt.substring(0, result.length()), result);\n }", "public static void main(String args[]) {\n java.util.Date utilDate = new java.util.Date();\n System.out.println(\"Util date in Java : \" + utilDate);\n \n // contains only date information without time\n java.sql.Date sqlDate = new java.sql.Date(utilDate.getTime());\n System.out.println(\"SQL date in Java : \" + sqlDate);\n \n \n \n }", "public static String convertDate(String dbDate) throws ParseException //yyyy-MM-dd\n {\n String convertedDate = \"\";\n\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(dbDate);\n\n convertedDate = new SimpleDateFormat(\"MM/dd/yyyy\").format(date);\n\n return convertedDate ;\n }", "public void testDateTimeConverters() throws Exception {\n long currentTime = System.currentTimeMillis();\n java.util.Date utilDate = new java.util.Date(currentTime);\n assertConversion(\"DateToLong\", new DateTimeConverters.DateToLong(), utilDate, currentTime);\n assertConversion(\"DateToSqlDate\", new DateTimeConverters.DateToSqlDate(), utilDate, new java.sql.Date(currentTime));\n assertConversion(\"DateToString\", new DateTimeConverters.DateToString(), utilDate, utilDate.toString());\n //assertConversion(\"StringToDate\", new DateTimeConverters.StringToDate(), utilDate.toString(), utilDate);\n assertConversion(\"DateToTimestamp\", new DateTimeConverters.DateToTimestamp(), utilDate, new java.sql.Timestamp(currentTime));\n // Source class = java.sql.Date\n java.sql.Date sqlDate = new java.sql.Date(currentTime);\n assertConversion(\"SqlDateToDate\", new DateTimeConverters.SqlDateToDate(), sqlDate, utilDate);\n assertConversion(\"SqlDateToString\", new DateTimeConverters.SqlDateToString(), sqlDate, sqlDate.toString());\n //assertConversion(\"StringToSqlDate\", new DateTimeConverters.StringToSqlDate(), sqlDate.toString(), sqlDate);\n java.sql.Timestamp timestamp = new java.sql.Timestamp(currentTime);\n assertConversion(\"SqlDateToTimestamp\", new DateTimeConverters.SqlDateToTimestamp(), sqlDate, timestamp);\n assertConversion(\"StringToTimestamp\", new DateTimeConverters.StringToTimestamp(), timestamp.toString(), timestamp);\n assertConversion(\"TimestampToDate\", new DateTimeConverters.TimestampToDate(), timestamp, utilDate);\n assertConversion(\"TimestampToSqlDate\", new DateTimeConverters.TimestampToSqlDate(), timestamp, sqlDate);\n //assertConversion(\"TimestampToString\", new DateTimeConverters.TimestampToString(), timestamp, timestamp.toString());\n }", "public String convertDateToString(Date date) {\n\t\tString dateTime = SDF.format(date);\n\t\treturn dateTime;\t\n\t}", "public void convertStartDate(Date date) {\r\n startTime = new java.sql.Timestamp(date.getTime());\r\n }", "protected static java.sql.Timestamp getConvertedTimestamp(java.util.Date date) {\n\t\tif (date == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn new java.sql.Timestamp(date.getTime());\n\t\t}\n\t}", "public static String dateTran(String dateOri){\n\t\tDateFormat formatter1 ; \n\t\tDate date ; \n\t\tString newDate=null;\n\t\tformatter1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\ttry {\n\t\t\tdate=formatter1.parse(dateOri);\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat ( \"M/d/yy\" );\n\t\t\tnewDate = formatter.format(date);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn newDate;\n\t}", "public java.sql.Date format(String date) {\n int i = 0;\n int dateAttr[];\n dateAttr = new int[3];\n for(String v : date.split(\"/\")) {\n dateAttr[i] = Integer.parseInt(v);\n i++;\n }\n\n GregorianCalendar gcalendar = new GregorianCalendar();\n gcalendar.set(dateAttr[2], dateAttr[0]-1, dateAttr[1]); // Year,Month,Day Of Month\n java.sql.Date sdate = new java.sql.Date(gcalendar.getTimeInMillis());\n return sdate;\n }", "public void test_Date_utilDateColumn_selects_sqlDate_Tx() throws Exception {\n // ## Arrange ##\n final Integer memberId = 1;\n\n // ## Act ##\n final Member member = jdbcManager.from(Member.class).where(\"memberId = ?\", memberId).getSingleResult();\n\n // ## Assert ##\n assertNotNull(member);\n log(member.toString());\n assertEquals(memberId, member.memberId);\n assertEquals(java.sql.Date.class, member.birthdate.getClass());\n }", "public static String dateConv(int date) {\n\t\tDate mills = new Date(date*1000L); \n\t\tString pattern = \"dd-MM-yyyy\";\n\t\tSimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n\t\tsimpleDateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT+1\"));\n\t\tString formattedDate = simpleDateFormat.format(mills);\n\t\treturn formattedDate;\n\t}", "public static synchronized String sqlDateToString(java.sql.Date date) {\r\n\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n return sdf.format(date.getTime());\r\n }", "public abstract java.sql.Timestamp getFecha_ingreso();", "private static Date toUtilDate(Date date) {\n return (date != null) ? new Date(date.getTime()) : null;\n }", "public String convertDateFormate(String dt) {\n String formatedDate = \"\";\n if (dt.equals(\"\"))\n return \"1970-01-01\";\n String[] splitdt = dt.split(\"-\");\n formatedDate = splitdt[2] + \"-\" + splitdt[1] + \"-\" + splitdt[0];\n \n return formatedDate;\n \n }", "public java.sql.Timestamp getFecha_envio();", "public static Date saisirDate() {\n Date result = null;\n\n System.out.println( \"Veuillez saisir l'attribut suivant : date_parution (aaaa-mm-jj)\" );\n String saisie = scanner.next();\n\n if ( !Pattern.matches( \"^[0-9]{4}(-[0-9]{2}){2}$\", saisie ) ) {\n System.err.println( \"Veuillez saisir une date au format 'aaaa-mm-jj' !\" );\n result = saisirDate();\n } else {\n try {\n result = Date.valueOf( saisie );\n } catch ( final IllegalArgumentException ex ) {\n System.err.println( \"Date incorrecte ! (\" + saisie + \")\" );\n result = saisirDate();\n }\n }\n\n return result;\n }", "public static String convertStringToSqlString(String input) throws ParseException{\r\n\t\tSimpleDateFormat fromUser = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tSimpleDateFormat myFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\r\n\t\ttry {\r\n\r\n\t\t String reformattedStr = myFormat.format(fromUser.parse(input));\r\n\t\t return reformattedStr;\r\n\t\t} catch (ParseException e) {\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t \r\n\t\t/* Date dtJava;\r\n\t\tDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n dtJava = (java.util.Date)formatter.parse(input);\r\n\t\t\r\n\t\tjava.sql.Date date = new java.sql.Date(dtJava.getTime());\r\n\t\t\r\n\t\tString dtSql = (String)date.toString();\r\n\t\t\r\n\t\treturn dtSql;*/\r\n\t}", "public static String formatDateU(java.sql.Date date){\n\t\treturn date!=null?toTheString(date):\"unknown\";\n\t}", "java.lang.String getToDate();", "public static java.sql.Date toSqlDate(Object obj, String pattern, TimeZone timeZone) {\n if (obj == null) {\n return null;\n }\n if (obj instanceof java.sql.Date) {\n final java.sql.Date resultDate;\n final java.sql.Date paramSqlDate = (java.sql.Date) obj;\n if (java.sql.Date.class.equals(paramSqlDate.getClass())) { // pure SQL-date\n resultDate = paramSqlDate;\n } else { // sub class\n // because the SQL-date type is not final class.\n resultDate = new java.sql.Date(paramSqlDate.getTime());\n }\n clearDateTimeParts(resultDate);\n return resultDate;\n }\n final Date date;\n try {\n date = toDate(obj, pattern, timeZone);\n } catch (ParseDateNumberFormatException e) {\n String msg = \"Failed to format the time as number:\";\n msg = msg + \" obj=\" + obj + \" pattern=\" + pattern;\n throw new ParseSqlDateNumberFormatException(msg, e);\n } catch (ParseDateOutOfCalendarException e) {\n String msg = \"The SQL-date expression is out of calendar:\";\n msg = msg + \" obj=\" + obj + \" pattern=\" + pattern;\n throw new ParseSqlDateOutOfCalendarException(msg, e);\n } catch (ParseDateException e) {\n String msg = \"Failed to parse the object to SQL-date:\";\n msg = msg + \" obj=\" + obj + \" pattern=\" + pattern;\n throw new ParseSqlDateException(msg, e);\n }\n if (date != null) {\n clearDateTimeParts(date);\n return new java.sql.Date(date.getTime());\n }\n return null;\n }", "public static String convert( Date date )\r\n {\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat( \"yyyy-MM-dd\" );\r\n\r\n return simpleDateFormat.format( date );\r\n }", "private static String convertDate(String date) {\n\t\tlong dateL = Long.valueOf(date);\n\t\tDate dateTo = new Date(dateL);\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tString formatted = format.format(dateTo);\n\t\tSystem.out.println(\"Date formatted: \" + formatted);\n\t\treturn formatted;\n\t}", "public static Date fromOADate(double oaDate) {\n Date date = new Date();\n //long t = (long)((oaDate - 25569) * 24 * 3600 * 1000);\n //long t = (long) (oaDate * 1000000);\n long t = (long)BigDecimalUtil.mul(oaDate, 1000000);\n date.setTime(t);\n return date;\n }", "@Override\n\tpublic Date convert(String source) {\n\t\tif (StringUtils.isValid(source)) {\n\t\t\tDateFormat dateFormat;\n\t\t\tif (source.indexOf(\":\") != -1) {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t} else {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd\"); \n\t\t\t}\n\t\t\t//日期转换为严格模式\n\t\t dateFormat.setLenient(false); \n\t try {\n\t\t\t\treturn dateFormat.parse(source);\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\treturn null;\n\t}", "public static String genSQL_To_Date(Calendar cal) {\r\n StringBuffer sbTemp = new StringBuffer();\r\n SimpleDateFormat formatter =\r\n new SimpleDateFormat(NCMS.DATE_FORMAT_FULL);\r\n if (cal != null) {\r\n sbTemp.append(\"TO_DATE('\")\r\n .append(formatter.format(cal.getTime())).append(\"','\")\r\n .append(NCMS.SQL_DATE_FORMAT_FULL).append(\"')\");\r\n return sbTemp.toString();\r\n }\r\n else {\r\n return \"null\";\r\n }\r\n }", "@TypeConverter\n public Date toDate(long l){\n return new Date(l);\n }", "public Date getConvertedDate(String dateToBeConverted) {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yy hh:mm:ss\");\n\t\ttry{\n\t\t\tbookedDate = sdf.parse(dateToBeConverted);\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn bookedDate;\n\t}", "public static Date convertirStringADateUtil(String s){\n\t\tFORMATO_FECHA.setLenient(false);\n\t\tDate fecha = null;\n\t\ttry {\n\t\t\tfecha = FORMATO_FECHA.parse(s);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn fecha;\n\t}", "private static Date getDate(String sdate)\n\t{\n\t\tDate date = null;\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\ttry {\n\t\t\tdate = formatter.parse(sdate);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn date;\n\t}", "public java.util.Date toDate() {\n return toCalendar().getTime();\n }", "public Date convertStringToDate(String s) throws ParseException {\n\t\tDate dateTime = SDF.parse(s);\n\t\treturn dateTime;\n\t}", "public String dateToMySQLDate(Date fecha, boolean paraMostrar) {\n if (paraMostrar) {\n java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(\"dd/MM/yyyy\");\n return sdf.format(fecha);\n } else {\n java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(fecha);\n }\n }", "@Override\n public Date getDate(Calendar cal) throws SQLException {\n if (isNull()) return null;\n return getDatatypeCoder().decodeDate(getDate(), cal);\n }", "public static String formatDate(java.sql.Date date){\n\t\treturn date!=null?toTheString(date):\"\";\n\t}", "public static Date getDate(String date) {\n \n Date rs_date = null;\n\n try {\n rs_date = SDF_DB_TABLE_LOGS.parse(SDF_DB_TABLE_LOGS.format(SDF_TOMCAT_LOGS.parse(date)));\n \n } catch (ParseException e) {\n LOGGER.error(e.getMessage(),e);\n }\n return rs_date;\n }", "public static Date stringToDate(String date)\r\n/* 29: */ {\r\n/* 30: 39 */ log.debug(\"DateUtil.stringToDate()\");\r\n/* 31: */ try\r\n/* 32: */ {\r\n/* 33: 41 */ return sdfDate.parse(date);\r\n/* 34: */ }\r\n/* 35: */ catch (ParseException e)\r\n/* 36: */ {\r\n/* 37: 43 */ log.fatal(\"DateUtil.stringToDate抛出异常\", e);\r\n/* 38: */ }\r\n/* 39: 44 */ return new Date();\r\n/* 40: */ }", "private static String convertToDDMMYYYY(Date date) {\n\t\tString returnStr = \"\";\n\t\ttry {\n\t\tDateFormat format1 = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturnStr = format1.format(date);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn returnStr;\n\t}", "public final static Date getDate(final Date date)\n {\n if (date == null)\n {\n return null;\n }\n final String packageName = date.getClass().getPackage().getName();\n if (packageName.equals(\"java.sql\"))\n {\n return new Date(date.getTime());\n }\n return date;\n }", "private java.sql.Date convertMonthIntToSQLDate (int monthInt) {\n Calendar calendar = Calendar.getInstance();\n String yearString = String.valueOf(calendar.getInstance().get(Calendar.YEAR));\n String MonthString = String.valueOf(monthInt);\n if (monthInt < 10) {\n MonthString = \"0\" + MonthString;\n }\n String firstDayOfMonthString = yearString + \"-\" + MonthString + \"-01\"; \n LocalDate date = LocalDate.parse(firstDayOfMonthString);\n java.sql.Date sqlDate = java.sql.Date.valueOf(date);\n return sqlDate; // First day of the month given in SQL firmat\n }", "public static String convertToDateStringWithsdf(String unformateddate, SimpleDateFormat sdf) {\n Date date = null;\n String dateStr = unformateddate;\n try {\n\n date = sdf.parse(unformateddate);\n dateStr = new SimpleDateFormat(\"dd MMM yyyy\").format(date);\n } catch (Exception e) {\n // TODO: handle exception\n e.printStackTrace();\n }\n\n return dateStr;\n }", "public java.sql.Date getSystemDate(EntityManager em) throws FacadeException {\n java.sql.Date now = null;\n try {\n// Vector results = (Vector) em.createNativeQuery(\"select CONVERT (date, GETDATE())\").getSingleResult();\n// Object d = results.firstElement();\n \tObject d = em.createNativeQuery(\"select CONVERT (date, GETDATE())\").getSingleResult();\n if (d instanceof java.sql.Date) {\n now = (java.sql.Date) d;\n } else if (d instanceof java.sql.Timestamp) {\n now = new java.sql.Date(((java.sql.Timestamp) d).getTime());\n }\n } catch (Exception e) {\n log.warning(AbstractFacade.getMessages().getMessage(\"systemDate.exception\"));\n }\n return now;\n }", "public static String dateToWccDate(Date dtDate) {\n String strDate = \"\";\n if (dtDate != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(WccConstants.WCC_DATE_FORMAT);\n strDate = sdf.format(dtDate);\n }\n return strDate;\n }", "public static Date getFecha(String strfecha) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date fechaSQL = null;\n try {\n java.util.Date fechaJAVA = sdf.parse(strfecha);\n fechaSQL = new Date(fechaJAVA.getTime());\n } catch (ParseException ex) {\n ex.printStackTrace(System.out);\n }\n return fechaSQL;\n }", "@TypeConverter\n public static Date toDate(String value) {\n if (value == null) return null;\n\n try {\n return df.parse(value);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n }", "public void convertEndDate(Date date) {\r\n endTime = new java.sql.Timestamp(date.getTime());\r\n }", "public Timestamp changeDateFormat(String inputDate) {\n String input = inputDate;\n\n String INPUT_FORMAT = \"yyyy-MM-dd\";\n String OUTPUT_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\";\n\n DateFormat inputFormatter = new SimpleDateFormat(INPUT_FORMAT);\n DateFormat outputFormatter = new SimpleDateFormat(OUTPUT_FORMAT);\n\n java.util.Date date = null;\n String output = null;\n Timestamp ts = null;\n try {\n date = inputFormatter.parse(input);\n\n output = outputFormatter.format(date);\n\n ts = Timestamp.valueOf(output);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return ts;\n }", "public Date date(Column column) {\r\n\t\treturn MappingUtils.parseDate(val(column));\r\n\t}", "private LocalDate get_DATE(int column) {\n // DATE column is always 10 chars long\n String dateString = dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n 10, charset_[column - 1]).toString();\n return LocalDate.parse(dateString, DRDAConstants.DB2_DATE_FORMAT);\n// return DateTime.dateBytesToDate(dataBuffer_,\n// columnDataPosition_[column - 1],\n// cal,\n// charset_[column - 1]);\n }", "public static java.sql.Date toSqlDate(Object obj, TimeZone timeZone) {\n return toSqlDate(obj, (String) null, timeZone);\n }", "private String convertDate2String(Date date) {\n DateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\");\n return dateFormat.format(date);\n }", "public static String convertDateTo(String sDate, String sOldFormat, String sNewFormat)\r\n\t{\r\n\t\tString cmName = \"DateFormatterManager.convertDateTo(String,String,String)\";\r\n\t\tlogger.ctdebug(\"CTBAS00116\", cmName, sDate, sOldFormat, sNewFormat);\r\n\t\tSimpleDateFormat newDateFormat = new SimpleDateFormat(sNewFormat);\r\n\t\tSimpleDateFormat oldDateFormat = new SimpleDateFormat(sOldFormat);\r\n\t\tString sOldDate = sDate;\r\n\t\tDate date = null;\r\n\t\tString sNewDate = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tdate = oldDateFormat.parse(sOldDate);\r\n\t\t} catch (ParseException pException)\r\n\t\t{\r\n\t\t\tlogger.cterror(\"CTBAS00117\", pException, cmName, sDate, sOldFormat, sNewFormat);\r\n\t\t}\r\n\t\tsNewDate = newDateFormat.format(date);\r\n\t\tlogger.ctdebug(\"CTBAS00118\", sNewDate);\r\n\t\treturn sNewDate;\r\n\t}", "public Date ToDate(String line){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd\");\n try {\n Date d = sdf.parse(line);\n return d;\n } catch (ParseException ex) {\n\n Log.v(\"Exception\", ex.getLocalizedMessage());\n return null;\n }\n }", "public static Date toDate(Object obj) {\n return toDate(obj, (String) null, (TimeZone) null);\n }", "private Date convertMongoToDate(String dateString, String timeString) {\n int year = Integer.parseInt(dateString.substring(0, 4));\n //Log.e(\"KARA\", \"year \" + year);\n int month = Integer.parseInt(dateString.substring(5, 7));\n //Log.e(\"KARA\", \"month \" + month);\n int day = Integer.parseInt(dateString.substring(8, 10));\n //Log.e(\"KARA\", \"day \" + day);\n int hour = Integer.parseInt(timeString.substring(0, 2));\n //Log.e(\"KARA\", \"hour \" + hour);\n int min = Integer.parseInt(timeString.substring(3, 5));\n return new Date(year - 1900, month - 1, day, hour, min);\n }", "public static String formatDateForQuery(java.util.Date date){\n return (new SimpleDateFormat(\"yyyy-MM-dd\")).format(date);\n }", "Date getDate();", "Date getDate();", "Date getDate();", "public static void nv_pdl_datesetup_to_accrualdate(String SSN,String AppURL) throws ClassNotFoundException, SQLException, ParseException\n\n\t{\n\t\t\t\tConnection conn = null;\n\t\t\t\t\n\t\t// Object of Statement. It is used to create a Statement to execute the query\n\t\t\t Statement stmt = null;\n\t\t\t \n\t // Object of ResultSet => 'It maintains a cursor that points to the current row in the result set'\n\t\t\t\tResultSet resultSet = null;\n\t\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\n\t\t\t\t\n\t\t\t\ttest.log(LogStatus.INFO,\"**** Connecting to DB to set the Store date to accrual date ****\");\n\t\t\t\ttest.log(LogStatus.INFO, \"******************************************************\");\n\t // Open a connection\n\t\t\t\t//conn = DriverManager.getConnection(\"jdbc:oracle:thin:@192.168.2.241:1521:QFUNDUAT1\", \"QCREL2_AUTOM_07212019\", \"QCREL2_AUTOM_07212019\");\n\t\t\t\tconn = DriverManager.getConnection(\"jdbc:oracle:thin:@192.168.2.241:1521:QFUNDUAT1\", DBUserName,DBPassword);\n\t\t\t\tSystem.out.println(\"Connecting to DB\");\n\t\t\t\ttest.log(LogStatus.PASS, \"Connected to DB Successfully\");\n\t\t\t\n\t\t\t\n\t\t\t\tstmt = conn.createStatement();\n\t\t\t\t //Proc_Date=\"02-AUG-19\";\n\t\t\t\t\n\t\t\t//=========================== For Capturing Current Date ==============================================\n\t\t\t\t/*DateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t\t\t\n\t\t\t\tDate date = new Date();\n\t\t\t\t\n\t\t\t\tString date1= dateFormat.format(date);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Current date is \" +date1);\n\t\t curr_date = date1;*/\n\t\t \n\t\t //%%%%%%%%%%%%%%%%%%%%%%\n\t\t\t\t\n\t\t //%%%%%%%%%%%%%%%%%%%%\n\t\t \n\t\t \n\t\t\t//=================================================================================\n\t\t\t\tresultSet = stmt.executeQuery(\"update ca_ss_store_date set st_date= '\"+accrual_date+\"' where ST_DATE_ID='PRO' and st_code in (2997,2023)\");\n\t\t\t\t \n\t\t\t\t//test.log(LogStatus.PASS, \"<FONT color=green style=Arial> Current date is :\" +curr_date);\n\t\t\t\ttest.log(LogStatus.PASS, \"<FONT color=green style=Arial> Store Date is Set to Accrual date :\" +accrual_date);\n\t\t\t\ttest.log(LogStatus.INFO, \"********************** Now Login to Lend Nation For Payment *********************** \");\n\t\t\t\t\n\t\t\t\twhile (resultSet .next()) \n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t// Closing Connection\t\t\n\t\t\t\t\n\t\t\t\tif (resultSet != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tresultSet.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (stmt != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstmt.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (conn != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconn.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public String convertDateToString(){\n\t\tString aDate = \"\";\n\t\taDate += Integer.toString(day);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(month);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(year);\n\t\treturn aDate;\n\t}" ]
[ "0.7768294", "0.73605156", "0.7347047", "0.7245723", "0.70261204", "0.6998328", "0.69444513", "0.69426984", "0.6931486", "0.6893768", "0.6817637", "0.67105466", "0.66424173", "0.6598668", "0.6588941", "0.65768576", "0.6558136", "0.6431116", "0.6341536", "0.6331994", "0.6299673", "0.6279905", "0.6263599", "0.6212986", "0.6128926", "0.6123531", "0.60323805", "0.6031542", "0.60058624", "0.5986049", "0.5985349", "0.59821147", "0.59767485", "0.59552765", "0.59493303", "0.58936703", "0.588702", "0.58713186", "0.58702534", "0.5858199", "0.5848598", "0.58414775", "0.5828439", "0.5826737", "0.582558", "0.581714", "0.5788528", "0.5768604", "0.57055414", "0.56960136", "0.5674975", "0.5674076", "0.5670903", "0.56581867", "0.5649005", "0.5635384", "0.5630878", "0.5624467", "0.5612022", "0.5607588", "0.5605011", "0.5587598", "0.5573912", "0.5565261", "0.55652267", "0.5558312", "0.5557719", "0.5546587", "0.5540633", "0.5535235", "0.5530571", "0.55251676", "0.55241024", "0.5521723", "0.5516849", "0.551489", "0.54996806", "0.5496526", "0.54934704", "0.547093", "0.546435", "0.5453261", "0.54516906", "0.5447773", "0.5447074", "0.5439384", "0.5423115", "0.5421278", "0.5411243", "0.5406196", "0.5370022", "0.5369288", "0.5365796", "0.5363964", "0.5363347", "0.53558487", "0.53558487", "0.53558487", "0.5353746", "0.53303534" ]
0.76817745
1
convertToUDate Chuyen ngay kieu java.sql.Timestamp thanh java.util.Date
public static java.util.Date convertToUDate(java.sql.Timestamp timeStamp) { if (timeStamp == null) { return null; } else { java.util.Date uDate = new Date(timeStamp.getTime()); return uDate; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private java.sql.Date convertirDeDateUtilaDateSql(java.util.Date uDate) {\r\n java.sql.Date sDate = new java.sql.Date(uDate.getTime());\r\n return sDate;\r\n }", "public static java.sql.Timestamp convertToTimestamp(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.sql.Timestamp timeStamp = new Timestamp(uDate.getTime());\n\t\t\treturn timeStamp;\n\t\t}\n\n\t}", "private java.sql.Timestamp convert(java.util.Date date){\r\n \tjava.sql.Timestamp result = null;\r\n \tif(date!=null){\r\n \t\tresult = new java.sql.Timestamp(date.getTime()); \t\t\r\n \t}\r\n \treturn result;\r\n }", "public static java.util.Date convertToUDate(java.sql.Date sDate) {\n\t\tif (sDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.util.Date uDate = new Date(sDate.getTime());\n\t\t\treturn uDate;\n\t\t}\n\n\t}", "public static java.sql.Date convertToTimestamp(Timestamp convert) {\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.setTimeInMillis(convert.getTime());\n\t\tjava.sql.Date d = new java.sql.Date(c.getTimeInMillis());\n\t\treturn d;\n\t}", "public static java.sql.Date convertToSDate(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.sql.Date sDate = new java.sql.Date(uDate.getTime());\n\t\t\treturn sDate;\n\t\t}\n\t}", "public java.sql.Date toSQLDate() {\r\n String isoStr = this.toSQLString();\r\n return java.sql.Date.valueOf(isoStr);\r\n //return new GregorianCalendar(this.year, this.month, this.day).getTime();\r\n }", "private java.sql.Date convert(Date datet) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Timestamp convert(Date source) {\n\t\treturn new Timestamp(source.getTime());\n\t}", "public static java.sql.Date convertDate(java.util.Date utilDate) {\n\t\tif (utilDate != null) {\n\t\t\treturn new java.sql.Date(utilDate.getTime());\n\t\t}\n\t\treturn null;\n\t}", "public static java.sql.Date convertFromUtiltoSql(java.util.Date date){\n\t\tjava.sql.Date sqlDate = null;\n\t\tif (date != null) {\n\t\t\tsqlDate = new java.sql.Date(date.getTime());\n\t\t}\n\t\t return sqlDate;\n\t}", "protected static java.sql.Timestamp getConvertedTimestamp(java.util.Date date) {\n\t\tif (date == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn new java.sql.Timestamp(date.getTime());\n\t\t}\n\t}", "public java.sql.Timestamp getFecha_envio();", "@TypeConverter\n public static String toTimestamp(Date date) {\n if (date != null) {\n return df.format(date);\n }\n return null;\n }", "public static final Function<Timestamp,Date> timestampToDate() {\r\n return TIMESTAMP_TO_DATE;\r\n }", "public Date getDataNascimentoToSQL() {\r\n\t\treturn new Date(dataNascimento.getTimeInMillis());\r\n\t}", "@SuppressWarnings(\"deprecation\")\n\tpublic static Timestamp convertToDate(Date convert) {\n\t\tif (convert.toString().startsWith(\"00\")) convert.setYear(2014 - 1900);\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.setTime(convert);\n\t\tTimestamp t = new Timestamp(c.getTimeInMillis());\n\t\treturn t;\n\t}", "public static java.util.Date convertFromSqlToUtil(java.sql.Date sqlDate) {\n java.util.Date utilDate = null;\n if (sqlDate != null) {\n utilDate = new java.util.Date(sqlDate.getTime());\n }\n return utilDate;\n }", "public abstract java.sql.Timestamp getFecha_ingreso();", "public static Date toSqlDate(java.util.Date date) {\n return (date != null) ? new Date(date.getTime()) : null;\n }", "@Test\n void test7(){\n\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date date = new Date();\n String dString = formatter.format(date);\n System.out.println(\"dString=\"+dString);\n\n Date datas = java.sql.Date.valueOf(dString);\n System.out.println(\"datas=\"+datas);\n\n\n }", "Timestamp toTimestamp( Date date )\n {\n return date != null ? new Timestamp( date.getTime() ) : null;\n }", "public void testDateTimeConverters() throws Exception {\n long currentTime = System.currentTimeMillis();\n java.util.Date utilDate = new java.util.Date(currentTime);\n assertConversion(\"DateToLong\", new DateTimeConverters.DateToLong(), utilDate, currentTime);\n assertConversion(\"DateToSqlDate\", new DateTimeConverters.DateToSqlDate(), utilDate, new java.sql.Date(currentTime));\n assertConversion(\"DateToString\", new DateTimeConverters.DateToString(), utilDate, utilDate.toString());\n //assertConversion(\"StringToDate\", new DateTimeConverters.StringToDate(), utilDate.toString(), utilDate);\n assertConversion(\"DateToTimestamp\", new DateTimeConverters.DateToTimestamp(), utilDate, new java.sql.Timestamp(currentTime));\n // Source class = java.sql.Date\n java.sql.Date sqlDate = new java.sql.Date(currentTime);\n assertConversion(\"SqlDateToDate\", new DateTimeConverters.SqlDateToDate(), sqlDate, utilDate);\n assertConversion(\"SqlDateToString\", new DateTimeConverters.SqlDateToString(), sqlDate, sqlDate.toString());\n //assertConversion(\"StringToSqlDate\", new DateTimeConverters.StringToSqlDate(), sqlDate.toString(), sqlDate);\n java.sql.Timestamp timestamp = new java.sql.Timestamp(currentTime);\n assertConversion(\"SqlDateToTimestamp\", new DateTimeConverters.SqlDateToTimestamp(), sqlDate, timestamp);\n assertConversion(\"StringToTimestamp\", new DateTimeConverters.StringToTimestamp(), timestamp.toString(), timestamp);\n assertConversion(\"TimestampToDate\", new DateTimeConverters.TimestampToDate(), timestamp, utilDate);\n assertConversion(\"TimestampToSqlDate\", new DateTimeConverters.TimestampToSqlDate(), timestamp, sqlDate);\n //assertConversion(\"TimestampToString\", new DateTimeConverters.TimestampToString(), timestamp, timestamp.toString());\n }", "protected static java.sql.Date getConvertedDate(java.util.Date date) {\n\t\tif (date == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn new java.sql.Date(date.getTime());\n\t\t}\n\t}", "public java.sql.Timestamp getFecha();", "public static java.sql.Date toSqlDate(Object obj) {\n return toSqlDate(obj, (String) null, (TimeZone) null);\n }", "protected static java.util.Date getConvertedDate(java.sql.Date date) {\n\t\tif (date == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn new java.util.Date(date.getTime());\n\t\t}\n\t}", "public static java.util.Date convertDate(java.sql.Date sqlDate) {\n\t\tif (sqlDate != null) {\n\t\t\treturn new java.util.Date(sqlDate.getTime());\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\t\tpublic java.sql.Date convert(String s) throws ParseException {\n\t\t\ts = supportHtml5DateTimePattern(s);\n\t\t\t\n\t\t\tif (timeStampWithoutSecPatternLen == s.length()) {\n\t\t\t\ts = s + \":00\";\n\t\t\t}\n\t\t\tif (s.length() > dateLen) {\t// if (x < timeStampLen) 改用 datePattern 转换,更智能\n\t\t\t\t// return new java.sql.Date(java.sql.Timestamp.valueOf(s).getTime());\t// error under jdk 64bit(maybe)\n\t\t\t\treturn new java.sql.Date(getFormat(timeStampPattern).parse(s).getTime());\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// return new java.sql.Date(java.sql.Date.valueOf(s).getTime());\t// error under jdk 64bit\n\t\t\t\treturn new java.sql.Date(getFormat(datePattern).parse(s).getTime());\n\t\t\t}\n\t\t}", "public Timestamp getDateTrx() \n{\nreturn (Timestamp)get_Value(\"DateTrx\");\n}", "public static java.sql.Date getSQLDate(Date data) {\r\n\r\n\t\tjava.sql.Date dt = new java.sql.Date(data.getTime());\r\n\r\n\t\treturn dt;\r\n\t}", "public static java.util.Date strToUtilDate(String fecha, String hora){\n\t\tString f=strToDateFormToDB(fecha)+\" \"+hora+\":00\";\n\t\tjava.sql.Timestamp dh= java.sql.Timestamp.valueOf( f);\n\t\treturn (java.util.Date)dh;\n\t}", "public static Date formaterStampTilDato(Timestamp timestamp) {\r\n\t\tDate date = new Date(timestamp.getTime());\r\n\t\treturn date;\r\n\t}", "Date getTimestamp();", "public abstract java.sql.Timestamp getFecha_fin();", "public static void main(String args[]) {\n java.util.Date utilDate = new java.util.Date();\n System.out.println(\"Util date in Java : \" + utilDate);\n \n // contains only date information without time\n java.sql.Date sqlDate = new java.sql.Date(utilDate.getTime());\n System.out.println(\"SQL date in Java : \" + sqlDate);\n \n \n \n }", "public Timestamp convertZDT(ZonedDateTime zdt){\n return Timestamp.valueOf(zdt.withZoneSameInstant(ZoneOffset.UTC).toLocalDateTime());\n }", "public static org.opencds.vmr.v1_0.schema.TS dateInternal2TS(java.util.Date pDate) {\n\n\t\tString _METHODNAME = \"tSInternal2TS(): \";\n\n\t\tif (pDate == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString errStr = null;\n\t\tjava.util.Date javaTime = pDate;\n\t\tString formatTemplate = \"yyyyMMddHHmmss.SSSZZZZZ\";\n\n\t\t// Format java.util.Date and return schema TS if successful\n\t\torg.opencds.vmr.v1_0.schema.TS lTS = new org.opencds.vmr.v1_0.schema.TS();\n\t\ttry {\n\t\t\t// format and set schema TS object\n\t\t\tlTS.setValue(DateUtility.getInstance().getDateAsString(javaTime, formatTemplate));\n\t\t\treturn lTS;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\terrStr = _METHODNAME + \"java.util.Date \\\"\" + javaTime + \"\\\" threw exception trying to format as: \" + formatTemplate;\n\t\t\tthrow new RuntimeException(errStr + \": \" + e.getMessage() );\n\t\t}\n\t}", "public void setFecha_envio(java.sql.Timestamp newFecha_envio);", "public static String formatDateU(java.sql.Date date){\n\t\treturn date!=null?toTheString(date):\"unknown\";\n\t}", "private Date stringToSQLDate(String fecha){\n\t\t\n\t\t\n\t\tint ano=Integer.parseInt(fecha.substring(0,4));\n\t\tint mes =Integer.parseInt(fecha.substring(5,7));\n\t\tint dia =Integer.parseInt( fecha.substring(8));\n\t\t\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tDate tmp = new Date(ano-1900,mes-1,dia);\n\t\t\n\t\treturn tmp;\n\t}", "@TypeConverter\n public Date toDate(long l){\n return new Date(l);\n }", "public void setFecha(java.sql.Timestamp newFecha);", "public static String convertUtilToSqlDate(String date) throws ParseException\r\n\t{\r\n\t\tjava.util.Date initDate = new SimpleDateFormat(\"dd-mm-yyyy\").parse(date);\r\n\t SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-mm-dd\");\r\n\t return formatter.format(initDate);\r\n\t}", "private java.sql.Date obtenerFechaEnSQL(JXDatePicker fecha) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(fecha.getDate());\n int year = cal.get(Calendar.YEAR) - 1900; //PORQUE PUTAS\n int month = cal.get(Calendar.MONTH);\n int day = cal.get(Calendar.DAY_OF_MONTH);\n java.sql.Date sqlDate;\n\n sqlDate = new java.sql.Date(year, month, day);\n return sqlDate;\n }", "public Timestamp changeDateFormat(String inputDate) {\n String input = inputDate;\n\n String INPUT_FORMAT = \"yyyy-MM-dd\";\n String OUTPUT_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\";\n\n DateFormat inputFormatter = new SimpleDateFormat(INPUT_FORMAT);\n DateFormat outputFormatter = new SimpleDateFormat(OUTPUT_FORMAT);\n\n java.util.Date date = null;\n String output = null;\n Timestamp ts = null;\n try {\n date = inputFormatter.parse(input);\n\n output = outputFormatter.format(date);\n\n ts = Timestamp.valueOf(output);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return ts;\n }", "public Timestamp getDateTrx();", "public Timestamp getDateTrx();", "public static Timestamp toTimestamp(LocalDate date) {\n\t\treturn Timestamp.valueOf(LocalDateTime.of(date, LocalTime.now()));\n\t}", "public abstract void setFecha_ingreso(java.sql.Timestamp newFecha_ingreso);", "public static Timestamp getDate()\n {\n Calendar calendar = Calendar.getInstance();\n java.util.Date now = calendar.getTime();\n return new java.sql.Timestamp( now.getTime() );\n }", "public static String formatDatetime(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\n\t\t\t\t\t\"dd/MM/yyyy HH:mm:ss\");\n\t\t\treturn dateFormat.format(uDate);\n\t\t}\n\t}", "public static Date fromOADate(double oaDate) {\n Date date = new Date();\n //long t = (long)((oaDate - 25569) * 24 * 3600 * 1000);\n //long t = (long) (oaDate * 1000000);\n long t = (long)BigDecimalUtil.mul(oaDate, 1000000);\n date.setTime(t);\n return date;\n }", "private static Date toUtilDate(Date date) {\n return (date != null) ? new Date(date.getTime()) : null;\n }", "public static Timestamp toTimestamp(Object obj) {\n return toTimestamp(obj, (String) null, (TimeZone) null);\n }", "@Override\n\t\tpublic java.sql.Timestamp convert(String s) throws ParseException {\n\t\t\ts = supportHtml5DateTimePattern(s);\n\t\t\t\n\t\t\tif (timeStampWithoutSecPatternLen == s.length()) {\n\t\t\t\ts = s + \":00\";\n\t\t\t}\n\t\t\tif (s.length() > dateLen) {\n\t\t\t\treturn java.sql.Timestamp.valueOf(s);\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn new java.sql.Timestamp(getFormat(datePattern).parse(s).getTime());\n\t\t\t}\n\t\t}", "public static Date GetUTCdatetimeAsDate()\n {\n return StringDateToDate(GetUTCdatetimeAsString());\n }", "public void testConvertDate() throws Exception {\n String[] message= {\n \"from Date\",\n \"from Calendar\",\n \"from SQL Date\",\n \"from SQL Time\",\n \"from SQL Timestamp\"\n };\n \n long now = System.currentTimeMillis();\n \n Object[] date = {\n new Date(now),\n new java.util.GregorianCalendar(),\n new java.sql.Date(now),\n new java.sql.Time(now),\n new java.sql.Timestamp(now)\n };\n \n // Initialize calendar also with same ms to avoid a failing test in a new time slice\n ((GregorianCalendar)date[1]).setTimeInMillis(now);\n \n for (int i = 0; i < date.length; i++) {\n Object val = makeConverter().convert(getExpectedType(), date[i]);\n assertNotNull(\"Convert \" + message[i] + \" should not be null\", val);\n assertTrue(\"Convert \" + message[i] + \" should return a \" + getExpectedType().getName(),\n getExpectedType().isInstance(val));\n assertEquals(\"Convert \" + message[i] + \" should return a \" + date[0],\n now, ((Date) val).getTime());\n }\n }", "public void convertStartDate(Date date) {\r\n startTime = new java.sql.Timestamp(date.getTime());\r\n }", "public abstract void setDate(Timestamp uneDate);", "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }", "public void test_Date_utilDateColumn_selects_sqlDate_Tx() throws Exception {\n // ## Arrange ##\n final Integer memberId = 1;\n\n // ## Act ##\n final Member member = jdbcManager.from(Member.class).where(\"memberId = ?\", memberId).getSingleResult();\n\n // ## Assert ##\n assertNotNull(member);\n log(member.toString());\n assertEquals(memberId, member.memberId);\n assertEquals(java.sql.Date.class, member.birthdate.getClass());\n }", "public static Date stringToDate(String string_date){\n Date myDate = null;\n \n try {\n java.util.Date utilDate = new SimpleDateFormat(\"yyyy-MM-dd\").parse(string_date);\n myDate = new java.sql.Date(utilDate.getTime());\n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return myDate;\n }", "public abstract Timestamp getDate();", "@TypeConverter\n public long fromDate(Date mDate){\n return mDate.getTime();\n }", "public static java.util.Date convertToUDate(String dateInString) {\n\t\tif (dateInString == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tjava.util.Date uDate = null;\n\t\t\ttry {\n\t\t\t\tuDate = dateFormat.parse(dateInString);\n\t\t\t} catch (ParseException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn uDate;\n\t\t}\n\t}", "public Date obtenerUltimaFecha() {\n String sql = \"SELECT proyind_periodo_fin\"\n + \" FROM proy_indices\"\n + \" WHERE proyind_periodo_fin IS NOT NULL\"\n + \" ORDER BY proyind_periodo_fin DESC\"\n + \" LIMIT 1\";\n Query query = getEm().createNativeQuery(sql);\n List result = query.getResultList();\n return (Date) DAOUtils.obtenerSingleResult(result);\n }", "public static java.sql.Date convertToSDate(String dateInString) {\n\t\tif (dateInString == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tjava.util.Date uDate = null;\n\t\t\tjava.sql.Date sDate = null;\n\t\t\ttry {\n\t\t\t\tuDate = dateFormat.parse(dateInString);\n\t\t\t\tsDate = new java.sql.Date(uDate.getTime());\n\t\t\t} catch (ParseException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn sDate;\n\t\t}\n\t}", "private LocalDateTime convertUTCTimestamp(Object timeStamp) {\n\t\t\treturn null;\n\t\t}", "static public String dateToUtc(Date date){\n\t\treturn writeTimeStamp(UTC_FORMAT, date);\n\t}", "public java.util.Date toDate() {\n return toCalendar().getTime();\n }", "public java.sql.Timestamp getDia_especifico();", "public ByteBuffer toValue(Date value) throws Exception {\n\t\treturn longTypeConverter.toValue(value.getTime());\n\t}", "java.lang.String getToDate();", "public static String dateToSqlString(java.util.Date date)\n\t{\n\t\treturn (date.getYear() + 1900) + \"-\" + (date.getMonth() + 1) +\"-\"+ date.getDate();\n\t}", "public Timestamp getDate(){\n return date;\n }", "private Function<Double, Long> convertToUserTimeUsFunction() {\n double beginTimestamp = myModel.getBeginTimestamp();\n double monoTimeAtBeginningSeconds = myMonoTimeAtBeginningSeconds;\n return timestampInSeconds -> (long)secondsToUs((timestampInSeconds - beginTimestamp) + monoTimeAtBeginningSeconds);\n }", "public static java.sql.Date toSqlDate(Object obj, TimeZone timeZone) {\n return toSqlDate(obj, (String) null, timeZone);\n }", "private void tryRoundtripSqlDate(String dt) throws JiBXException {\n java.sql.Date date1 = Utility.deserializeSqlDate(dt);\n int split = dt.indexOf('-', 1);\n java.sql.Date date2 = java.sql.Date.valueOf(dt.substring(0, split+6));\n assertEquals(date1, date2);\n String result = Utility.serializeSqlDate(date1);\n assertEquals(dt.substring(0, result.length()), result);\n }", "public static String formatToSQLDate(Date date) {\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\n\t\t\t\t\"yyyy-MM-dd\");\n\t\tString created_date = dateFormat.format(date);\n\t\treturn created_date;\n\t}", "public static java.sql.Date strToSqlDateDB(String fecha){\n\t\treturn java.sql.Date.valueOf( strToDateFormToDB(fecha) );\n\t}", "public void convertEndDate(Date date) {\r\n endTime = new java.sql.Timestamp(date.getTime());\r\n }", "public abstract void setFecha_fin(java.sql.Timestamp newFecha_fin);", "@Override\n public Timestamp convertToDatabaseColumn(LocalDateTime attribute) {\n if (attribute == null) {\n return null;\n }\n\n Calendar calendar = Calendar.getInstance();\n calendar.clear();\n calendar.set(Calendar.YEAR, attribute.getYear());\n // avoid 0 vs 1 based months\n calendar.set(Calendar.DAY_OF_YEAR, attribute.getDayOfYear());\n calendar.set(Calendar.HOUR_OF_DAY, attribute.getHour());\n calendar.set(Calendar.MINUTE, attribute.getMinute());\n calendar.set(Calendar.SECOND, attribute.getSecond());\n calendar.set(Calendar.MILLISECOND, (int) (attribute.getNano() / 1000000L));\n return new Timestamp(calendar.getTimeInMillis());\n }", "public static java.sql.Date toSqlDate(Object obj, String pattern, TimeZone timeZone) {\n if (obj == null) {\n return null;\n }\n if (obj instanceof java.sql.Date) {\n final java.sql.Date resultDate;\n final java.sql.Date paramSqlDate = (java.sql.Date) obj;\n if (java.sql.Date.class.equals(paramSqlDate.getClass())) { // pure SQL-date\n resultDate = paramSqlDate;\n } else { // sub class\n // because the SQL-date type is not final class.\n resultDate = new java.sql.Date(paramSqlDate.getTime());\n }\n clearDateTimeParts(resultDate);\n return resultDate;\n }\n final Date date;\n try {\n date = toDate(obj, pattern, timeZone);\n } catch (ParseDateNumberFormatException e) {\n String msg = \"Failed to format the time as number:\";\n msg = msg + \" obj=\" + obj + \" pattern=\" + pattern;\n throw new ParseSqlDateNumberFormatException(msg, e);\n } catch (ParseDateOutOfCalendarException e) {\n String msg = \"The SQL-date expression is out of calendar:\";\n msg = msg + \" obj=\" + obj + \" pattern=\" + pattern;\n throw new ParseSqlDateOutOfCalendarException(msg, e);\n } catch (ParseDateException e) {\n String msg = \"Failed to parse the object to SQL-date:\";\n msg = msg + \" obj=\" + obj + \" pattern=\" + pattern;\n throw new ParseSqlDateException(msg, e);\n }\n if (date != null) {\n clearDateTimeParts(date);\n return new java.sql.Date(date.getTime());\n }\n return null;\n }", "protected Timestamp extractFormalizedDatetimeFromDto(MemberDto dto) {\r\n return convertForEntity(dto.getFormalizedDatetime(), Timestamp.class);\r\n }", "@ExecFunction(name = \"utc_timestamp\", argTypes = {}, returnType = \"INT\")\n public static Expression utcTimestamp() {\n return DateTimeLiteral.fromJavaDateType(LocalDateTime.now(ZoneId.of(\"UTC+0\")));\n }", "protected Timestamp extractUpdateDatetimeFromDto(MemberDto dto) {\r\n return convertForEntity(dto.getUpdateDatetime(), Timestamp.class);\r\n }", "public static String getShortDate(Timestamp timestamp) {\n if (timestamp != null) {\n long lnMilisegundos = timestamp.getTime() + (timestamp.getNanos() / 1000000);\n java.sql.Date sqlDate = new java.sql.Date(lnMilisegundos);\n return sqlDate.toString();\n }\n return \"\";\n }", "protected java.util.Date getResultSetDate(ResultSet rs, String colName) throws SQLException {\n //capture sql date\n java.sql.Date sqlDate = rs.getDate(colName);\n\n //if it was null, return a null object\n if(rs.wasNull())\n return null;\n\n //otherwise create the new date\n java.util.Date javaDate = new java.util.Date(sqlDate.getTime());\n \n //return a java Date object\n return javaDate;\n }", "public static String SqlDateToString(java.sql.Date DateValue){\n return DateValue.toString();\n }", "public static java.sql.Timestamp convertToTimestamp(String timeStampInString) {\n\t\tif (timeStampInString == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\n\t\t\tjava.util.Date uDate = null;\n\t\t\tjava.sql.Timestamp timeStamp = null;\n\t\t\ttry {\n\t\t\t\tuDate = dateFormat.parse(timeStampInString);\n\t\t\t\ttimeStamp = new Timestamp(uDate.getTime());\n\t\t\t} catch (ParseException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn timeStamp;\n\t\t}\n\t}", "@Override\n public void setUserTimestamp(Date date) {\n }", "public void setDia_especifico(java.sql.Timestamp newDia_especifico);", "public com.google.protobuf.ByteString\n getToDateBytes() {\n java.lang.Object ref = toDate_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n toDate_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private String convertToDate(final long millis) {\n final Date date = new Date(millis);\n java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat(\n \"MMM dd, yyyy\", Locale.US);\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"PST\")); //TODO should be TZ of the user???\n return dateFormat.format(date);\n }", "public java.lang.String getToDate() {\n java.lang.Object ref = toDate_;\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 toDate_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public static Date toPointDate(Object obj, Class<?> type) {\n if (obj == null) {\n return null;\n }\n if (java.sql.Date.class.isAssignableFrom(type)) {\n return toSqlDate(obj);\n } else if (java.sql.Timestamp.class.isAssignableFrom(type)) {\n return toTimestamp(obj);\n } else if (java.sql.Time.class.isAssignableFrom(type)) {\n return toTime(obj);\n } else if (Date.class.isAssignableFrom(type)) {\n return toDate(obj);\n }\n return null; // could not convert\n }", "private static java.sql.Timestamp getCurrentDate() {\n\n\t\tjava.sql.Timestamp date = new java.sql.Timestamp(new java.util.Date().getTime());\n\t\treturn date;\n\t}", "public static String dateTran(String dateOri){\n\t\tDateFormat formatter1 ; \n\t\tDate date ; \n\t\tString newDate=null;\n\t\tformatter1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\ttry {\n\t\t\tdate=formatter1.parse(dateOri);\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat ( \"M/d/yy\" );\n\t\t\tnewDate = formatter.format(date);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn newDate;\n\t}" ]
[ "0.7916452", "0.76112527", "0.7104301", "0.69808394", "0.6881047", "0.68468946", "0.6843865", "0.6795115", "0.6519672", "0.65087265", "0.6389383", "0.6385848", "0.61988586", "0.61726624", "0.6158701", "0.61560786", "0.6152446", "0.61156625", "0.61031634", "0.607575", "0.60439056", "0.60401165", "0.60233533", "0.601363", "0.5991386", "0.5987774", "0.59803396", "0.59494776", "0.59319735", "0.5924176", "0.5834211", "0.58183783", "0.5736083", "0.57069045", "0.56941545", "0.5679684", "0.56754524", "0.5643214", "0.56338656", "0.5625922", "0.56194746", "0.5614864", "0.558859", "0.5578033", "0.55648315", "0.55538374", "0.5547886", "0.5547886", "0.5496093", "0.5474913", "0.54486156", "0.54246324", "0.54006326", "0.5381791", "0.5371964", "0.5364341", "0.5329376", "0.53214836", "0.5310217", "0.5308319", "0.5305821", "0.5301436", "0.529553", "0.5291957", "0.5287785", "0.52821237", "0.5273857", "0.52730376", "0.52653617", "0.5261207", "0.52482885", "0.5244457", "0.52382475", "0.523769", "0.52344275", "0.5234212", "0.52183676", "0.520868", "0.52074754", "0.519609", "0.51870847", "0.51818454", "0.517495", "0.5170503", "0.5158641", "0.51545423", "0.51417816", "0.51395726", "0.5135838", "0.51349664", "0.513479", "0.5134692", "0.51246357", "0.5116501", "0.50979364", "0.5094582", "0.5066089", "0.5059052", "0.5042646", "0.50410384" ]
0.7466443
2
convertToTimestamp Chuyen ngay kieu java.util.Date thanh java.sql.Timestamp
public static java.sql.Timestamp convertToTimestamp(java.util.Date uDate) { if (uDate == null) { return null; } else { java.sql.Timestamp timeStamp = new Timestamp(uDate.getTime()); return timeStamp; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private java.sql.Timestamp convert(java.util.Date date){\r\n \tjava.sql.Timestamp result = null;\r\n \tif(date!=null){\r\n \t\tresult = new java.sql.Timestamp(date.getTime()); \t\t\r\n \t}\r\n \treturn result;\r\n }", "protected static java.sql.Timestamp getConvertedTimestamp(java.util.Date date) {\n\t\tif (date == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn new java.sql.Timestamp(date.getTime());\n\t\t}\n\t}", "public static java.sql.Date convertToTimestamp(Timestamp convert) {\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.setTimeInMillis(convert.getTime());\n\t\tjava.sql.Date d = new java.sql.Date(c.getTimeInMillis());\n\t\treturn d;\n\t}", "Timestamp toTimestamp( Date date )\n {\n return date != null ? new Timestamp( date.getTime() ) : null;\n }", "@Override\n\tpublic Timestamp convert(Date source) {\n\t\treturn new Timestamp(source.getTime());\n\t}", "@TypeConverter\n public static String toTimestamp(Date date) {\n if (date != null) {\n return df.format(date);\n }\n return null;\n }", "Date getTimestamp();", "public static Timestamp toTimestamp(LocalDate date) {\n\t\treturn Timestamp.valueOf(LocalDateTime.of(date, LocalTime.now()));\n\t}", "public static final Function<Timestamp,Date> timestampToDate() {\r\n return TIMESTAMP_TO_DATE;\r\n }", "public static Timestamp toTimestamp(Object obj) {\n return toTimestamp(obj, (String) null, (TimeZone) null);\n }", "public java.sql.Timestamp getFecha_envio();", "public abstract java.sql.Timestamp getFecha_ingreso();", "private static Timestamp toTimestamp(Instant instant) {\n return createTimestamp(instant.getEpochSecond(), instant.getNano());\n }", "public static java.util.Date convertToUDate(java.sql.Timestamp timeStamp) {\n\t\tif (timeStamp == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.util.Date uDate = new Date(timeStamp.getTime());\n\t\t\treturn uDate;\n\t\t}\n\t}", "public java.sql.Timestamp getTimestamp(int columnIndex) throws SQLException\n {\n return m_rs.getTimestamp(columnIndex);\n }", "public java.sql.Timestamp getFecha();", "public static Date formaterStampTilDato(Timestamp timestamp) {\r\n\t\tDate date = new Date(timestamp.getTime());\r\n\t\treturn date;\r\n\t}", "@SuppressWarnings(\"deprecation\")\n\tpublic static Timestamp convertToDate(Date convert) {\n\t\tif (convert.toString().startsWith(\"00\")) convert.setYear(2014 - 1900);\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.setTime(convert);\n\t\tTimestamp t = new Timestamp(c.getTimeInMillis());\n\t\treturn t;\n\t}", "private final LocalDateTime get_TIMESTAMP(int column) {\n String timeString = dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n 26, charset_[column - 1]).toString();\n return LocalDateTime.parse(timeString, DRDAConstants.DB2_TIMESTAMP_FORMAT);\n// return DateTime.timestampBytesToTimestamp(\n// dataBuffer_,\n// columnDataPosition_[column - 1],\n// cal,\n// charset_[column - 1],\n// agent_.connection_.serverSupportsTimestampNanoseconds());\n }", "public Timestamp getTimestamp(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getTimestamp\", columnIndex);\n return get(columnIndex).getTimestamp();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "@Override\n\t\tpublic java.sql.Timestamp convert(String s) throws ParseException {\n\t\t\ts = supportHtml5DateTimePattern(s);\n\t\t\t\n\t\t\tif (timeStampWithoutSecPatternLen == s.length()) {\n\t\t\t\ts = s + \":00\";\n\t\t\t}\n\t\t\tif (s.length() > dateLen) {\n\t\t\t\treturn java.sql.Timestamp.valueOf(s);\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn new java.sql.Timestamp(getFormat(datePattern).parse(s).getTime());\n\t\t\t}\n\t\t}", "public static Timestamp getDate()\n {\n Calendar calendar = Calendar.getInstance();\n java.util.Date now = calendar.getTime();\n return new java.sql.Timestamp( now.getTime() );\n }", "public static org.opencds.vmr.v1_0.schema.TS dateInternal2TS(java.util.Date pDate) {\n\n\t\tString _METHODNAME = \"tSInternal2TS(): \";\n\n\t\tif (pDate == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString errStr = null;\n\t\tjava.util.Date javaTime = pDate;\n\t\tString formatTemplate = \"yyyyMMddHHmmss.SSSZZZZZ\";\n\n\t\t// Format java.util.Date and return schema TS if successful\n\t\torg.opencds.vmr.v1_0.schema.TS lTS = new org.opencds.vmr.v1_0.schema.TS();\n\t\ttry {\n\t\t\t// format and set schema TS object\n\t\t\tlTS.setValue(DateUtility.getInstance().getDateAsString(javaTime, formatTemplate));\n\t\t\treturn lTS;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\terrStr = _METHODNAME + \"java.util.Date \\\"\" + javaTime + \"\\\" threw exception trying to format as: \" + formatTemplate;\n\t\t\tthrow new RuntimeException(errStr + \": \" + e.getMessage() );\n\t\t}\n\t}", "public Timestamp convertZDT(ZonedDateTime zdt){\n return Timestamp.valueOf(zdt.withZoneSameInstant(ZoneOffset.UTC).toLocalDateTime());\n }", "public Timestamp getTimestamp(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getTimestamp\", columnName);\n return get(columnName).getTimestamp();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "@Test\n public void testOdtToTs() {\n Instant now = Instant.now();\n OffsetDateTime timestamp = OffsetDateTime.ofInstant(now, ZoneOffset.UTC);\n Timestamp expResult = Timestamps.fromMillis(now.toEpochMilli());\n\n Timestamp result = ProtoUtils.odtToTs(timestamp);\n assertThat(result).isEqualTo(expResult);\n }", "public static java.sql.Timestamp convertToTimestamp(String timeStampInString) {\n\t\tif (timeStampInString == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\n\t\t\tjava.util.Date uDate = null;\n\t\t\tjava.sql.Timestamp timeStamp = null;\n\t\t\ttry {\n\t\t\t\tuDate = dateFormat.parse(timeStampInString);\n\t\t\t\ttimeStamp = new Timestamp(uDate.getTime());\n\t\t\t} catch (ParseException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn timeStamp;\n\t\t}\n\t}", "private java.sql.Date convert(Date datet) {\n\t\treturn null;\n\t}", "public Timestamp getDateTrx() \n{\nreturn (Timestamp)get_Value(\"DateTrx\");\n}", "public java.sql.Timestamp getTimestamp(String columnName) throws SQLException\n {\n return m_rs.getTimestamp(columnName);\n }", "public void testDateTimeConverters() throws Exception {\n long currentTime = System.currentTimeMillis();\n java.util.Date utilDate = new java.util.Date(currentTime);\n assertConversion(\"DateToLong\", new DateTimeConverters.DateToLong(), utilDate, currentTime);\n assertConversion(\"DateToSqlDate\", new DateTimeConverters.DateToSqlDate(), utilDate, new java.sql.Date(currentTime));\n assertConversion(\"DateToString\", new DateTimeConverters.DateToString(), utilDate, utilDate.toString());\n //assertConversion(\"StringToDate\", new DateTimeConverters.StringToDate(), utilDate.toString(), utilDate);\n assertConversion(\"DateToTimestamp\", new DateTimeConverters.DateToTimestamp(), utilDate, new java.sql.Timestamp(currentTime));\n // Source class = java.sql.Date\n java.sql.Date sqlDate = new java.sql.Date(currentTime);\n assertConversion(\"SqlDateToDate\", new DateTimeConverters.SqlDateToDate(), sqlDate, utilDate);\n assertConversion(\"SqlDateToString\", new DateTimeConverters.SqlDateToString(), sqlDate, sqlDate.toString());\n //assertConversion(\"StringToSqlDate\", new DateTimeConverters.StringToSqlDate(), sqlDate.toString(), sqlDate);\n java.sql.Timestamp timestamp = new java.sql.Timestamp(currentTime);\n assertConversion(\"SqlDateToTimestamp\", new DateTimeConverters.SqlDateToTimestamp(), sqlDate, timestamp);\n assertConversion(\"StringToTimestamp\", new DateTimeConverters.StringToTimestamp(), timestamp.toString(), timestamp);\n assertConversion(\"TimestampToDate\", new DateTimeConverters.TimestampToDate(), timestamp, utilDate);\n assertConversion(\"TimestampToSqlDate\", new DateTimeConverters.TimestampToSqlDate(), timestamp, sqlDate);\n //assertConversion(\"TimestampToString\", new DateTimeConverters.TimestampToString(), timestamp, timestamp.toString());\n }", "public Timestamp getDateTrx();", "public Timestamp getDateTrx();", "@Override\n public Timestamp convertToDatabaseColumn(LocalDateTime attribute) {\n if (attribute == null) {\n return null;\n }\n\n Calendar calendar = Calendar.getInstance();\n calendar.clear();\n calendar.set(Calendar.YEAR, attribute.getYear());\n // avoid 0 vs 1 based months\n calendar.set(Calendar.DAY_OF_YEAR, attribute.getDayOfYear());\n calendar.set(Calendar.HOUR_OF_DAY, attribute.getHour());\n calendar.set(Calendar.MINUTE, attribute.getMinute());\n calendar.set(Calendar.SECOND, attribute.getSecond());\n calendar.set(Calendar.MILLISECOND, (int) (attribute.getNano() / 1000000L));\n return new Timestamp(calendar.getTimeInMillis());\n }", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "private Timestamp getDatetimeTimestamp() {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime((Date) spDate.getValue());\n\n\t\tCalendar cal_temp = Calendar.getInstance();\n\t\tcal_temp.setTime((Date) spTime.getValue());\n\n\t\tcal.set(Calendar.HOUR_OF_DAY, cal_temp.get(Calendar.HOUR_OF_DAY));\n\t\tcal.set(Calendar.MINUTE, cal_temp.get(Calendar.MINUTE));\n\t\treturn new Timestamp(cal.getTimeInMillis());\n\t}", "public Date getTimestamp() throws SQLException {\n\t\tloadFromDB();\n\t\treturn rev_timestamp;\n\t}", "public final synchronized Timestamp getTimestamp(int parameterIndex) \n throws SQLException\n {\n return getCallableStatement().getTimestamp(parameterIndex);\n }", "Date getTimeStamp();", "private java.sql.Date convertirDeDateUtilaDateSql(java.util.Date uDate) {\r\n java.sql.Date sDate = new java.sql.Date(uDate.getTime());\r\n return sDate;\r\n }", "public void setFecha(java.sql.Timestamp newFecha);", "public static Timestamp formaterDatoTilStamp(String dato, String klokkeslett) throws ParseException {\r\n\t\tDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy HH:mm\");\r\n\t\tjava.util.Date startDato = df.parse(dato + \" \" + klokkeslett);\r\n\t\tjava.sql.Timestamp sq = new java.sql.Timestamp(startDato.getTime());\r\n\t\treturn sq;\r\n\t}", "public Timestamp changeDateFormat(String inputDate) {\n String input = inputDate;\n\n String INPUT_FORMAT = \"yyyy-MM-dd\";\n String OUTPUT_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\";\n\n DateFormat inputFormatter = new SimpleDateFormat(INPUT_FORMAT);\n DateFormat outputFormatter = new SimpleDateFormat(OUTPUT_FORMAT);\n\n java.util.Date date = null;\n String output = null;\n Timestamp ts = null;\n try {\n date = inputFormatter.parse(input);\n\n output = outputFormatter.format(date);\n\n ts = Timestamp.valueOf(output);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return ts;\n }", "public java.sql.Date toSQLDate() {\r\n String isoStr = this.toSQLString();\r\n return java.sql.Date.valueOf(isoStr);\r\n //return new GregorianCalendar(this.year, this.month, this.day).getTime();\r\n }", "com.google.protobuf.Timestamp getTimestamp();", "java.lang.String getTimestamp();", "java.lang.String getTimestamp();", "@SuppressWarnings({\"JdkObsolete\", \"JavaUtilDate\"})\n public @NotNull Date getTimestamp() {\n return (Date) timestamp.clone();\n }", "public Timestamp getTimestamp(int columnIndex, Calendar calendar) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"getTimestamp(\" + columnIndex + \", calendar)\");\n }\n Timestamp x = get(columnIndex).getTimestamp();\n return DateTimeUtils.convertTimestampToCalendar(x, calendar);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public void setFecha_envio(java.sql.Timestamp newFecha_envio);", "public long getTimestamp();", "public long getTimestamp();", "public abstract Timestamp getDate();", "public static Timestamp toTimestamp(Object obj, TimeZone timeZone) {\n return toTimestamp(obj, (String) null, timeZone);\n }", "public void convertStartDate(Date date) {\r\n startTime = new java.sql.Timestamp(date.getTime());\r\n }", "long getTimestamp();", "private TimestampUtils(){}", "private Timestamp getTimestamp(String timestampString) {\r\n Timestamp timestamp;\r\n try {\r\n timestamp = SpringContext.getBean(DateTimeService.class).convertToSqlTimestamp(timestampString);\r\n }\r\n catch (ParseException e) {\r\n assertNull(\"Timestamp String was not parseable\", e);\r\n return null;\r\n }\r\n return timestamp;\r\n }", "public java.sql.Timestamp getTimestamp(String attr) {\n return (java.sql.Timestamp) super.get(attr);\n }", "public java.sql.Timestamp getDia_especifico();", "public Date getDBTimeStamp() throws Exception;", "public java.sql.Timestamp getTimestamp(int columnIndex, Calendar cal)\n throws SQLException\n {\n return m_rs.getTimestamp(columnIndex, cal);\n }", "public static Timestamp getSQLTimesTemp(Date data) {\r\n\r\n\t\tTimestamp dt = new Timestamp(data.getTime());\r\n\r\n\t\treturn dt;\r\n\t}", "private Timestamp getTimestampFromHTML(String stringDate) {\n Timestamp result = null;\n SimpleDateFormat format = new SimpleDateFormat();\n format.applyPattern(\"yyyy-MM-dd\");\n try {\n Date docDate = format.parse(stringDate);\n result = new java.sql.Timestamp(docDate.getTime());\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return result;\n }", "int getTimestamp();", "public static java.sql.Date convertFromUtiltoSql(java.util.Date date){\n\t\tjava.sql.Date sqlDate = null;\n\t\tif (date != null) {\n\t\t\tsqlDate = new java.sql.Date(date.getTime());\n\t\t}\n\t\t return sqlDate;\n\t}", "public static Date toSqlDate(java.util.Date date) {\n return (date != null) ? new Date(date.getTime()) : null;\n }", "public static Timestamp toTimestamp(Object obj, String pattern, TimeZone timeZone) {\n if (obj == null) {\n return null;\n } else if (obj instanceof Timestamp) {\n final Timestamp paramTimestamp = (Timestamp) obj;\n if (Timestamp.class.equals(paramTimestamp.getClass())) { // pure time-stamp\n return paramTimestamp;\n } else { // sub class\n // because the time-stamp type is not final class.\n return new Timestamp(paramTimestamp.getTime());\n }\n } else if (obj instanceof Date) {\n return new Timestamp(((Date) obj).getTime());\n } else if (obj instanceof String) {\n return toTimestampFromString((String) obj, pattern, timeZone);\n } else if (obj instanceof Calendar) {\n return new Timestamp(((Calendar) obj).getTime().getTime());\n } else if (obj instanceof byte[]) {\n return toTimestamp(toSerializable((byte[]) obj)); // recursive\n } else if (obj instanceof Long) {\n return new Timestamp((Long) obj);\n } else {\n return toTimestampFromString(obj.toString(), pattern, timeZone);\n }\n }", "public static String timestampOf(Date date) {\n if (date == null) {\n return null;\n }\n\n return formatDate(date, TIMESTAMP_FORMAT);\n }", "String getTimestamp();", "String getTimestamp();", "private java.sql.Timestamp getCurrentTimeStamp() {\n\n\t\tjava.util.Date today = new java.util.Date();\n\t\treturn new java.sql.Timestamp(today.getTime());\n\n\t}", "private static java.sql.Timestamp getCurrentDate() {\n\n\t\tjava.sql.Timestamp date = new java.sql.Timestamp(new java.util.Date().getTime());\n\t\treturn date;\n\t}", "public abstract java.sql.Timestamp getFecha_fin();", "public abstract void setFecha_ingreso(java.sql.Timestamp newFecha_ingreso);", "public Date getTimestamp() {\n return new Date(timestamp.getTime()); // clone\n }", "public Timestamp getTimestamp(String columnName, Calendar calendar) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"getTimestamp(\" + StringUtils.quoteJavaString(columnName) + \", calendar)\");\n }\n Timestamp x = get(columnName).getTimestamp();\n return DateTimeUtils.convertTimestampToCalendar(x, calendar);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "TimestampOperatorNode(ValueNode date,\n ValueNode time,\n ContextManager cm)\n {\n super(cm);\n leftOperand = date;\n rightOperand = time;\n operator = \"timestamp\";\n methodName = \"getTimestamp\";\n }", "public static Timestamp getTimeStampFromLocalDate(LocalDate ld) {\n\t\tif (ld == null) {\n\t\t\treturn null;\n\t\t}\n\t\tint year = ld.getYear();\n\t\tint day = ld.getDayOfMonth();\n\t\tint month = ld.getMonthOfYear();\n\t\tLoggerFactory.getLogger(Util.class).debug(\"YEAR : {} -> MONTH : {} -> DAY : {}\", year, month, day);\n\t\treturn Timestamp.valueOf(year + \"-\" + month + \"-\" + day + \" 00:00:00.0\");\n\t}", "public String getSQLTimestampFormat();", "public LocalDateTime getTimeStampSecObj(int columnIndex) {\n TimeStampSecVector vector = (TimeStampSecVector) table.getVector(columnIndex);\n return vector.getObject(rowNumber);\n }", "public String getDateTimeInsertString(java.sql.Timestamp aTimestamp){\r\n return \"'\" + DBUtil.getDBDateTimeString(aTimestamp) + \"'\";\r\n }", "public Timestamp getDate(){\n return date;\n }", "protected Timestamp extractUpdateDatetimeFromDto(MemberDto dto) {\r\n return convertForEntity(dto.getUpdateDatetime(), Timestamp.class);\r\n }", "public final synchronized Timestamp getTimestamp(int parameterIndex, Calendar cal) \n throws SQLException\n {\n return getCallableStatement().getTimestamp(parameterIndex, cal);\n }" ]
[ "0.79029703", "0.7597293", "0.75040054", "0.74612635", "0.73595214", "0.6991251", "0.6893452", "0.67698693", "0.6631224", "0.644541", "0.6423869", "0.62786573", "0.6277829", "0.62777233", "0.6261875", "0.62159324", "0.6196392", "0.616592", "0.6151309", "0.611996", "0.6100724", "0.6100301", "0.60741603", "0.6066526", "0.6060496", "0.60556954", "0.60334873", "0.5975921", "0.5961707", "0.5940294", "0.59199077", "0.5846937", "0.5846937", "0.5837817", "0.58361924", "0.58361924", "0.58361924", "0.58361924", "0.58361924", "0.58361924", "0.58361924", "0.58361924", "0.58361924", "0.58361924", "0.58361924", "0.58361924", "0.58361924", "0.58361924", "0.58361924", "0.58361924", "0.5826669", "0.5824919", "0.57820153", "0.57665396", "0.5750635", "0.57468575", "0.5741711", "0.5741393", "0.57390815", "0.57387996", "0.5738711", "0.5738711", "0.57302356", "0.57295644", "0.57295424", "0.5711542", "0.5711542", "0.56965965", "0.5694839", "0.5680369", "0.56772685", "0.5655402", "0.5639571", "0.5634152", "0.56082726", "0.56076217", "0.55942184", "0.55874187", "0.558454", "0.5573692", "0.5554628", "0.5547072", "0.55356026", "0.5521579", "0.55124116", "0.55124116", "0.5504354", "0.55008596", "0.5491251", "0.5486849", "0.5478321", "0.5475647", "0.54686695", "0.5455795", "0.54541653", "0.54266065", "0.5421126", "0.54199004", "0.54111135", "0.53922087" ]
0.76232606
1
convertToSDate Chuyen String dinh dang "dd/MM/yyyy" thanh ngay kieu java.sql.Date
public static java.sql.Date convertToSDate(String dateInString) { if (dateInString == null) { return null; } else { SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); java.util.Date uDate = null; java.sql.Date sDate = null; try { uDate = dateFormat.parse(dateInString); sDate = new java.sql.Date(uDate.getTime()); } catch (ParseException e) { return null; } return sDate; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }", "public static String convertDate(String dbDate) throws ParseException //yyyy-MM-dd\n {\n String convertedDate = \"\";\n\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(dbDate);\n\n convertedDate = new SimpleDateFormat(\"MM/dd/yyyy\").format(date);\n\n return convertedDate ;\n }", "private static Date getDate(String sdate)\n\t{\n\t\tDate date = null;\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\ttry {\n\t\t\tdate = formatter.parse(sdate);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn date;\n\t}", "public static Date stringToDate(String string_date){\n Date myDate = null;\n \n try {\n java.util.Date utilDate = new SimpleDateFormat(\"yyyy-MM-dd\").parse(string_date);\n myDate = new java.sql.Date(utilDate.getTime());\n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return myDate;\n }", "public static java.sql.Date convertToSDate(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.sql.Date sDate = new java.sql.Date(uDate.getTime());\n\t\t\treturn sDate;\n\t\t}\n\t}", "private String convertDate(String date){\r\n String arrDate[] = date.split(\"/\");\r\n date = arrDate[2] + \"-\" + arrDate[1] + \"-\" + arrDate[0];\r\n return date;\r\n }", "private static String convertToDDMMYYYY(Date date) {\n\t\tString returnStr = \"\";\n\t\ttry {\n\t\tDateFormat format1 = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturnStr = format1.format(date);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn returnStr;\n\t}", "@Test\n void test7(){\n\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date date = new Date();\n String dString = formatter.format(date);\n System.out.println(\"dString=\"+dString);\n\n Date datas = java.sql.Date.valueOf(dString);\n System.out.println(\"datas=\"+datas);\n\n\n }", "public String convertDateFormate(String dt) {\n String formatedDate = \"\";\n if (dt.equals(\"\"))\n return \"1970-01-01\";\n String[] splitdt = dt.split(\"-\");\n formatedDate = splitdt[2] + \"-\" + splitdt[1] + \"-\" + splitdt[0];\n \n return formatedDate;\n \n }", "private java.sql.Date convertirDeDateUtilaDateSql(java.util.Date uDate) {\r\n java.sql.Date sDate = new java.sql.Date(uDate.getTime());\r\n return sDate;\r\n }", "private Date stringToSQLDate(String fecha){\n\t\t\n\t\t\n\t\tint ano=Integer.parseInt(fecha.substring(0,4));\n\t\tint mes =Integer.parseInt(fecha.substring(5,7));\n\t\tint dia =Integer.parseInt( fecha.substring(8));\n\t\t\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tDate tmp = new Date(ano-1900,mes-1,dia);\n\t\t\n\t\treturn tmp;\n\t}", "private java.sql.Date convert(Date datet) {\n\t\treturn null;\n\t}", "public java.sql.Date format(String date) {\n int i = 0;\n int dateAttr[];\n dateAttr = new int[3];\n for(String v : date.split(\"/\")) {\n dateAttr[i] = Integer.parseInt(v);\n i++;\n }\n\n GregorianCalendar gcalendar = new GregorianCalendar();\n gcalendar.set(dateAttr[2], dateAttr[0]-1, dateAttr[1]); // Year,Month,Day Of Month\n java.sql.Date sdate = new java.sql.Date(gcalendar.getTimeInMillis());\n return sdate;\n }", "public static String formatDate(java.sql.Date sDate) {\n\t\tif (sDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\treturn dateFormat.format(sDate);\n\t\t}\n\t}", "public static String dateTran(String dateOri){\n\t\tDateFormat formatter1 ; \n\t\tDate date ; \n\t\tString newDate=null;\n\t\tformatter1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\ttry {\n\t\t\tdate=formatter1.parse(dateOri);\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat ( \"M/d/yy\" );\n\t\t\tnewDate = formatter.format(date);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn newDate;\n\t}", "@Override\n\t\tpublic java.sql.Date convert(String s) throws ParseException {\n\t\t\ts = supportHtml5DateTimePattern(s);\n\t\t\t\n\t\t\tif (timeStampWithoutSecPatternLen == s.length()) {\n\t\t\t\ts = s + \":00\";\n\t\t\t}\n\t\t\tif (s.length() > dateLen) {\t// if (x < timeStampLen) 改用 datePattern 转换,更智能\n\t\t\t\t// return new java.sql.Date(java.sql.Timestamp.valueOf(s).getTime());\t// error under jdk 64bit(maybe)\n\t\t\t\treturn new java.sql.Date(getFormat(timeStampPattern).parse(s).getTime());\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// return new java.sql.Date(java.sql.Date.valueOf(s).getTime());\t// error under jdk 64bit\n\t\t\t\treturn new java.sql.Date(getFormat(datePattern).parse(s).getTime());\n\t\t\t}\n\t\t}", "public String toDate(Date date) {\n DateFormat df = DateFormat.getDateInstance();\r\n String fecha = df.format(date);\r\n return fecha;\r\n }", "public String convertDateToString(){\n\t\tString aDate = \"\";\n\t\taDate += Integer.toString(day);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(month);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(year);\n\t\treturn aDate;\n\t}", "public static java.util.Date convertToUDate(java.sql.Date sDate) {\n\t\tif (sDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.util.Date uDate = new Date(sDate.getTime());\n\t\t\treturn uDate;\n\t\t}\n\n\t}", "public static String convertUtilToSqlDate(String date) throws ParseException\r\n\t{\r\n\t\tjava.util.Date initDate = new SimpleDateFormat(\"dd-mm-yyyy\").parse(date);\r\n\t SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-mm-dd\");\r\n\t return formatter.format(initDate);\r\n\t}", "public String convertDateToString(Date date) {\n\t\tString dateTime = SDF.format(date);\n\t\treturn dateTime;\t\n\t}", "public static Date stringToDate(String date)\r\n/* 29: */ {\r\n/* 30: 39 */ log.debug(\"DateUtil.stringToDate()\");\r\n/* 31: */ try\r\n/* 32: */ {\r\n/* 33: 41 */ return sdfDate.parse(date);\r\n/* 34: */ }\r\n/* 35: */ catch (ParseException e)\r\n/* 36: */ {\r\n/* 37: 43 */ log.fatal(\"DateUtil.stringToDate抛出异常\", e);\r\n/* 38: */ }\r\n/* 39: 44 */ return new Date();\r\n/* 40: */ }", "public static Date parseDate(String date)\n {\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dt = null;\n try {\n dt = format.parse(date);\n } \n catch (ParseException ex) \n {\n System.out.println(\"Unexpected error during the conversion - \" + ex);\n }\n return dt;\n }", "protected static java.sql.Date getConvertedDate(java.util.Date date) {\n\t\tif (date == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn new java.sql.Date(date.getTime());\n\t\t}\n\t}", "public static Date convertirStringADateUtil(String s){\n\t\tFORMATO_FECHA.setLenient(false);\n\t\tDate fecha = null;\n\t\ttry {\n\t\t\tfecha = FORMATO_FECHA.parse(s);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn fecha;\n\t}", "private String formatDate(Date date) {\n String resultDate;\n SimpleDateFormat dateFormat;\n dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n resultDate = dateFormat.format(date);\n return resultDate;\n }", "protected static java.util.Date getConvertedDate(java.sql.Date date) {\n\t\tif (date == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn new java.util.Date(date.getTime());\n\t\t}\n\t}", "public Date ToDate(String line){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd\");\n try {\n Date d = sdf.parse(line);\n return d;\n } catch (ParseException ex) {\n\n Log.v(\"Exception\", ex.getLocalizedMessage());\n return null;\n }\n }", "public static java.sql.Date StringToSqlDate(String StringValue){\n return java.sql.Date.valueOf(StringValue);\n }", "public static String convertStringToSqlString(String input) throws ParseException{\r\n\t\tSimpleDateFormat fromUser = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tSimpleDateFormat myFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\r\n\t\ttry {\r\n\r\n\t\t String reformattedStr = myFormat.format(fromUser.parse(input));\r\n\t\t return reformattedStr;\r\n\t\t} catch (ParseException e) {\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t \r\n\t\t/* Date dtJava;\r\n\t\tDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n dtJava = (java.util.Date)formatter.parse(input);\r\n\t\t\r\n\t\tjava.sql.Date date = new java.sql.Date(dtJava.getTime());\r\n\t\t\r\n\t\tString dtSql = (String)date.toString();\r\n\t\t\r\n\t\treturn dtSql;*/\r\n\t}", "public Date getConvertedDate(String dateToBeConverted) {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yy hh:mm:ss\");\n\t\ttry{\n\t\t\tbookedDate = sdf.parse(dateToBeConverted);\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn bookedDate;\n\t}", "public String dar_fecha(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n return dateFormat.format(date).toString();\n\n }", "public static String convertToDateStringWithsdf(String unformateddate, SimpleDateFormat sdf) {\n Date date = null;\n String dateStr = unformateddate;\n try {\n\n date = sdf.parse(unformateddate);\n dateStr = new SimpleDateFormat(\"dd MMM yyyy\").format(date);\n } catch (Exception e) {\n // TODO: handle exception\n e.printStackTrace();\n }\n\n return dateStr;\n }", "public static Date convertStringToDate(String strDate)\n\t {\n\t Date myDate = null;\n\t if (strDate.length() > 0)\n\t {\n\t DateFormat formatter = new SimpleDateFormat(EProcurementConstants.INPUT_DATE_FORMAT);\n\t try\n\t {\n\t myDate = formatter.parse(strDate);\n\t } catch (ParseException e)\n\t {\n\t LOGGER.error(\"Not able to parse \" + strDate + \" into date ..\" + e.getMessage());\n\t }\n\t }\n\t return myDate;\n\t }", "public static java.sql.Date strToSqlDateDB(String fecha){\n\t\treturn java.sql.Date.valueOf( strToDateFormToDB(fecha) );\n\t}", "public static String formartDate(String mDate) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"mm/dd/yyyy\");\n\t\t\t SimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-mm-dd\");\n\n\t\t\t \n\t\t\t String outDate = \"\";\n\t\t\t \n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t \n\t\t\t \n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "public static String convertDateToStandardFormat(String inComingDateformat, String date)\r\n\t{\r\n\t\tString cmName = \"DateFormatterManaager.convertDateToStandardFormat(String,String)\";\r\n\t\tString returnDate = \"\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif (date != null && !date.trim().equals(\"\"))\r\n\t\t\t{\r\n\t\t\t\tif (inComingDateformat != null && !inComingDateformat.trim().equals(\"\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(inComingDateformat);\r\n\t\t\t\t\tDate parsedDate = sdf.parse(date);\r\n\t\t\t\t\tSimpleDateFormat standardsdf = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t\t\t\treturnDate = standardsdf.format(parsedDate);\r\n\t\t\t\t} else\r\n\t\t\t\t{\r\n\t\t\t\t\treturnDate = date;\r\n\t\t\t\t\tlogger.cterror(\"CTBAS00113\", cmName, date);\r\n\t\t\t\t}\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tlogger.ctdebug(\"CTBAS00114\", cmName);\r\n\t\t\t}\r\n\t\t} catch (ParseException pe) // just in case any runtime exception occurred just return input datestr as it is\r\n\t\t{\r\n\t\t\treturnDate = date;\r\n\t\t\tlogger.cterror(\"CTBAS00115\", pe, cmName, date, inComingDateformat);\r\n\t\t}\r\n\t\treturn returnDate;\r\n\t}", "public static Date stringToDate(String dateAsString){\r\n try { \r\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\"); \r\n return df.parse(dateAsString);\r\n } catch (ParseException ex) {\r\n ex.printStackTrace();\r\n return null;\r\n }\r\n }", "public static String convert( Date date )\r\n {\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat( \"yyyy-MM-dd\" );\r\n\r\n return simpleDateFormat.format( date );\r\n }", "public java.sql.Date toSQLDate() {\r\n String isoStr = this.toSQLString();\r\n return java.sql.Date.valueOf(isoStr);\r\n //return new GregorianCalendar(this.year, this.month, this.day).getTime();\r\n }", "public static Date stringToDate (String s) {\n\t\tint year=0 , month=0 , date=0;\n\t\tCalendar cal = Calendar.getInstance(Locale.getDefault());\n\t\t\n\t\tStringTokenizer st = new StringTokenizer (s,\"/\");\n\t\t\n\t\tdate = Integer.parseInt(st.nextToken());\n\t\tmonth = Integer.parseInt(st.nextToken());\n\t\tyear = Integer.parseInt(st.nextToken());\n\t\tcal.clear();\n\t\tcal.set(year,month-1,date);\n\t\t//System.out.println(\"\\nDate : \"+getStringFromDate(cal.getTime()));\n\t\treturn (Date)cal.getTime().clone();\n\t}", "public static String strToDateFormToDB(String fecha){ \n\t\tString dateValue = fecha;\n\t\tint index = dateValue.indexOf(\"/\");\n\t\tString day = dateValue.substring(0,index);\n\t\tint index2 = dateValue.indexOf(\"/\",index+1);\n\t\tString month = dateValue.substring(index+1,index2);\n\t\tString year = dateValue.substring(index2+1,index2+5);\n\t\tdateValue=year+\"-\"+month+\"-\"+day;\n\t\treturn dateValue;\n\t}", "public Date convertStringToDate(String s) throws ParseException {\n\t\tDate dateTime = SDF.parse(s);\n\t\treturn dateTime;\n\t}", "public static java.util.Date convertDate(java.sql.Date sqlDate) {\n\t\tif (sqlDate != null) {\n\t\t\treturn new java.util.Date(sqlDate.getTime());\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic Date convert(String source) {\n\t\tif (StringUtils.isValid(source)) {\n\t\t\tDateFormat dateFormat;\n\t\t\tif (source.indexOf(\":\") != -1) {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t} else {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd\"); \n\t\t\t}\n\t\t\t//日期转换为严格模式\n\t\t dateFormat.setLenient(false); \n\t try {\n\t\t\t\treturn dateFormat.parse(source);\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\treturn null;\n\t}", "private static String convertDate(String date) {\n\t\tlong dateL = Long.valueOf(date);\n\t\tDate dateTo = new Date(dateL);\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tString formatted = format.format(dateTo);\n\t\tSystem.out.println(\"Date formatted: \" + formatted);\n\t\treturn formatted;\n\t}", "public static Date FormatStringToDate(String dateString) {\r\n SimpleDateFormat dF = new SimpleDateFormat(\"dd/mm/yyyy HH:mm:ss\");\r\n Date date = null;\r\n try {\r\n date = dF.parse(dateString);\r\n } catch (ParseException e) {\r\n e.printStackTrace();\r\n }\r\n return date;\r\n }", "private String convertDateVN(String date) {\r\n String arrDate[] = date.split(\"-\");\r\n date = arrDate[2] + \"/\" + arrDate[1] + \"/\" + arrDate[0];\r\n return date;\r\n }", "public static String dateToString(Date date){\r\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n return df.format(date);\r\n }", "public static Date getDate(String date) {\n \n Date rs_date = null;\n\n try {\n rs_date = SDF_DB_TABLE_LOGS.parse(SDF_DB_TABLE_LOGS.format(SDF_TOMCAT_LOGS.parse(date)));\n \n } catch (ParseException e) {\n LOGGER.error(e.getMessage(),e);\n }\n return rs_date;\n }", "private Date stringToDate(String datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDate d = df.parse(datum);\r\n\t\t\treturn d;\r\n\t\t}\r\n\t\tcatch (ParseException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Test\n\t@DisplayName(\"date to string\")\n\tpublic void testDateToString()\n\t{\n\t\tString dateInString = \"2000-04-12\";\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\ttry {\n\t\t date1 = formatter.parse(dateInString);\n\t\t} catch (ParseException e) {\n\t\t //handle exception if date is not in \"dd-MMM-yyyy\" format\n\t\t}\n\t\tDateConverter s = new DateConverter(date1);\n\t\tassertEquals(\"2000-04-12\", s.getDateAsString());\n\t}", "private static String convertDate(String dateString) {\n String date = null;\n\n try {\n //Parse the string into a date variable\n Date parsedDate = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\").parse(dateString);\n\n //Now reformat it using desired display pattern:\n date = new SimpleDateFormat(DATE_FORMAT).format(parsedDate);\n\n } catch (ParseException e) {\n Log.e(TAG, \"getDate: Error parsing date\", e);\n e.printStackTrace();\n }\n\n return date;\n }", "public static java.sql.Date convertDate(java.util.Date utilDate) {\n\t\tif (utilDate != null) {\n\t\t\treturn new java.sql.Date(utilDate.getTime());\n\t\t}\n\t\treturn null;\n\t}", "private Date convertStringToDate(String dateInString){\n DateFormat format = new SimpleDateFormat(\"d-MM-yyyy HH:mm\", Locale.ENGLISH);\n Date date = null;\n try {\n date = format.parse(dateInString);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return date;\n }", "@TypeConverter\n public static Date toDate(String value) {\n if (value == null) return null;\n\n try {\n return df.parse(value);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n }", "public static String formatToSQLDate(Date date) {\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\n\t\t\t\t\"yyyy-MM-dd\");\n\t\tString created_date = dateFormat.format(date);\n\t\treturn created_date;\n\t}", "private void tryRoundtripSqlDate(String dt) throws JiBXException {\n java.sql.Date date1 = Utility.deserializeSqlDate(dt);\n int split = dt.indexOf('-', 1);\n java.sql.Date date2 = java.sql.Date.valueOf(dt.substring(0, split+6));\n assertEquals(date1, date2);\n String result = Utility.serializeSqlDate(date1);\n assertEquals(dt.substring(0, result.length()), result);\n }", "public static Date convertStringToDate(String stringDate) {\n\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\"); \n\t\tDate startDate = null;\n\n\t\ttry {\n\t\t startDate = df.parse(stringDate);\n\n\t\t} catch (ParseException e) {\n\t\t e.printStackTrace();\n\t\t}\n\t\treturn startDate;\n\t\t\n\t}", "public static String convertDateToString(Date aDate) {\n\t\treturn getDateTime(getDatePattern(), aDate);\n\t}", "public static Date converteStringInvertidaSemBarraAAAAMMDDParaDate(String data) {\r\n\t\tDate retorno = null;\r\n\r\n\t\tString dataInvertida = data.substring(6, 8) + \"/\" + data.substring(4, 6) + \"/\" + data.substring(0, 4);\r\n\r\n\t\tSimpleDateFormat dataTxt = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\ttry {\r\n\t\t\tretorno = dataTxt.parse(dataInvertida);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tthrow new IllegalArgumentException(data + \" não tem o formato dd/MM/yyyy.\");\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static Date convertStringToDate(String date) throws ParseException {\n\t return new SimpleDateFormat(\"yyyy-MM-dd\").parse(date); \n\t}", "public static Date convertStringToDate(String dateString) {\n\t\tLocalDate date = null;\n\t\t\n\t\ttry {\n\t\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(Constants.ddmmyyydateFormatInCSV);\n\t\t\tdate = LocalDate.parse(dateString, formatter);\n\n\t\t} catch (DateTimeParseException ex) {\n\t\t\tthrow new SalesException(\"enter the proper date in \" + Constants.ddmmyyydateFormatInCSV + \" format\");\n\t\t} catch (SalesException ex) {\n\t\t\tthrow new SalesException(\"Recevied excepion during date parser \" + ex.getMessage());\n\t\t}\n\t\treturn Date.valueOf(date);\n\t}", "public static Date converteStringInvertidaSemBarraAAMMDDParaDate(String data) {\r\n\t\tDate retorno = null;\r\n\r\n\t\tString dataInvertida = data.substring(4, 6) + \"/\" + data.substring(2, 4) + \"/20\" + data.substring(0, 2);\r\n\r\n\t\tSimpleDateFormat dataTxt = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\ttry {\r\n\t\t\tretorno = dataTxt.parse(dataInvertida);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tthrow new IllegalArgumentException(data + \" não tem o formato dd/MM/yyyy.\");\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static Date getFecha(String strfecha) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date fechaSQL = null;\n try {\n java.util.Date fechaJAVA = sdf.parse(strfecha);\n fechaSQL = new Date(fechaJAVA.getTime());\n } catch (ParseException ex) {\n ex.printStackTrace(System.out);\n }\n return fechaSQL;\n }", "public static Date strToDate(String strDate)\r\n/* 127: */ {\r\n/* 128:178 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 129:179 */ ParsePosition pos = new ParsePosition(0);\r\n/* 130:180 */ Date strtodate = formatter.parse(strDate, pos);\r\n/* 131:181 */ return strtodate;\r\n/* 132: */ }", "public static String formartDateMpesa(String mDate) {\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tSimpleDateFormat outSDF = new SimpleDateFormat(\"dd-MM-yyyy\");\n\n\t\t\t String outDate = \"\";\n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "public static Date stringToDate(String date) {\n\t\tDate result = null;\n\t\tif (date != null && !\"\".equals(date)) {\n\t\t\tDateTimeFormatter f = DateTimeFormat.forPattern(SmartMoneyConstants.DATE_FORMAT);\n\t\t\tDateTime dateTime = f.parseDateTime(date);\n\t\t\tresult = dateTime.toDate();\n\t\t}\n\n\t\treturn result;\n\t}", "public static java.util.Date convertToUDate(String dateInString) {\n\t\tif (dateInString == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tjava.util.Date uDate = null;\n\t\t\ttry {\n\t\t\t\tuDate = dateFormat.parse(dateInString);\n\t\t\t} catch (ParseException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn uDate;\n\t\t}\n\t}", "public static java.util.Date convertFromStringToDate(String strDate){\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd-MMM-yyyy\"); /*This stringDate is come from UI*/\n\t\tjava.util.Date date = null;\n\t\tif(strDate != null && !strDate.trim().isEmpty()){\n\t\t\ttry {\n\t\t\t\tdate = format.parse(strDate);\n\t\t\t\tSystem.out.println(strDate);\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\t\n\t\treturn date;\n\t}", "public static String getStrUtilDate(java.util.Date date){\n\t\tif(date==null)\n\t\t\treturn fechaNula();\n\t\tString strDate=\"\";\n\t\t\n\t\tif(getDia(date)<10)\n\t\t\tstrDate+=\"0\"+getDia(date);\n\t\telse\n\t\t\tstrDate+=getDia(date);\n\t\tif(getMes(date)<10)\n\t\t\tstrDate+=\"/\"+\"0\"+getMes(date);\n\t\telse\n\t\t\tstrDate+=\"/\"+getMes(date);\n\t\tstrDate+=\"/\"+getAnio(date);\n\t\treturn strDate;\n\t}", "public static String formatDate(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\treturn dateFormat.format(uDate);\n\t\t}\n\t}", "public static java.sql.Date convertFromUtiltoSql(java.util.Date date){\n\t\tjava.sql.Date sqlDate = null;\n\t\tif (date != null) {\n\t\t\tsqlDate = new java.sql.Date(date.getTime());\n\t\t}\n\t\t return sqlDate;\n\t}", "public static String SqlDateToString(java.sql.Date DateValue){\n return DateValue.toString();\n }", "public String getFormatedDate(Date date) {\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/mm/yyyy\");\r\n\t\treturn sdf.format(date);\r\n\t}", "private Date stringToDate(String s) throws ParseException{\r\n\t\tSimpleDateFormat fmt = new SimpleDateFormat(DATE_FORMAT);\r\n\t\treturn fmt.parse(s);\r\n\t}", "public Date formatDate( String dob )\n throws ParseException {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n dateFormat.setLenient(false);\n return dateFormat.parse(dob);\n }", "private String dateToString(Date datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\tString dat = df.format(datum);\r\n\t\treturn dat;\r\n\t}", "public static Date String2Date(String date){\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\n Date currentDate = null;\n try {\n currentDate = format.parse(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return currentDate;\n }", "public static String date_d(String sourceDate,String format) throws ParseException {\n SimpleDateFormat sdf_ = new SimpleDateFormat(\"yyyy-MM-dd\");\n SimpleDateFormat sdfNew_ = new SimpleDateFormat(format);\n return sdfNew_.format(sdf_.parse(sourceDate));\n }", "public static Date parseDate(String s) {\n\t\tDate d = null;\n\t\tif (s == null) {\n\t\t\treturn d;\n\t\t}\n\n\t\tString pattern = \"\";\n\n\t\tif (s.indexOf(':') >= 0) {\n\t\t\tif (s.length() > 20) {\n\t\t\t\tpattern = \"yyyy-MM-dd HH:mm:ss.SSS\";\n\t\t\t} else {\n\t\t\t\tif (s.lastIndexOf(':') != s.indexOf(':'))\n\t\t\t\t\tpattern = DD_MM_YYYY_HH_MM_SS;\n\t\t\t\telse\n\t\t\t\t\tpattern = \"dd/MM/yyyy HH:mm\";\n\t\t\t}\n\t\t} else {\n\t\t\tpattern = DD_MM_YYYY;\n\t\t}\n\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(pattern);\n\t\tsdf.setTimeZone(TimeZone.getDefault());\n\t\tif (s.length() > 0) {\n\t\t\ttry {\n\t\t\t\td = sdf.parse(s);\n\t\t\t} catch (ParseException e) {\n\t\t\t\tthrow new FenixException(\"Errore nella conversione della data. \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "public static String formatDate(java.sql.Date date){\n\t\treturn date!=null?toTheString(date):\"\";\n\t}", "public static String convertDateFormat(String date) {\n DateFormat originalFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n DateFormat targetFormat = new SimpleDateFormat(\"MMMM dd, yyyy\", Locale.ENGLISH);\n Date oldDate;\n try {\n oldDate = originalFormat.parse(date);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n return targetFormat.format(oldDate);\n }", "public static String dateConv(int date) {\n\t\tDate mills = new Date(date*1000L); \n\t\tString pattern = \"dd-MM-yyyy\";\n\t\tSimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n\t\tsimpleDateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT+1\"));\n\t\tString formattedDate = simpleDateFormat.format(mills);\n\t\treturn formattedDate;\n\t}", "public static String convertToFrenshFormat(String date){\n Date d = null;\n if(String.valueOf(Locale.getDefault()).contains(\"en\")){\n d = changeDateFormat(date, \"MM/dd/yyyy\");\n Locale locale = Locale.FRENCH;\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT, locale);\n return dateFormat.format(d);\n }\n else {\n return date;\n }\n }", "public static String formartDateYOB(String mDate) {\n\t\t\t\t\n\t\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"dd/mm/yyyy\");\n\t\t\t\t SimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-mm-dd\");\n\n\t\t\t\t \n\t\t\t\t String outDate = \"\";\n\t\t\t\t \n\t\t\t\t if (mDate != null) {\n\t\t\t\t try {\n\t\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t\t outDate = outSDF.format(date);\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t } catch (Exception ex){ \n\t\t\t\t \tex.printStackTrace();\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t return outDate;\n\t\t\t}", "public static Date saisirDate() {\n Date result = null;\n\n System.out.println( \"Veuillez saisir l'attribut suivant : date_parution (aaaa-mm-jj)\" );\n String saisie = scanner.next();\n\n if ( !Pattern.matches( \"^[0-9]{4}(-[0-9]{2}){2}$\", saisie ) ) {\n System.err.println( \"Veuillez saisir une date au format 'aaaa-mm-jj' !\" );\n result = saisirDate();\n } else {\n try {\n result = Date.valueOf( saisie );\n } catch ( final IllegalArgumentException ex ) {\n System.err.println( \"Date incorrecte ! (\" + saisie + \")\" );\n result = saisirDate();\n }\n }\n\n return result;\n }", "private static Date getFormattedDate(String date){\n\t\tString dateStr = null;\n\t\tif(date.length()<11){\n\t\t\tdateStr = date+\" 00:00:00.0\";\n\t\t}else{\n\t\t\tdateStr = date;\n\t\t}\n\t\tDate formattedDate = null;\n\t\ttry {\n\t\t\tformattedDate = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.S\").parse(dateStr);\n\t\t} catch (ParseException e) {\n\t\t\tCommonUtilities.createErrorLogFile(e);\n\t\t}\n\t\treturn formattedDate;\n\n\t}", "private String changeDateFormat (String oldDate) throws ParseException {\n // Source: https://stackoverflow.com/questions/3469507/how-can-i-change-the-date-format-in-java\n final String OLD_FORMAT = \"MM/dd/yyyy\";\n final String NEW_FORMAT = \"yyyyMMdd\";\n String newDateString;\n SimpleDateFormat sdf = new SimpleDateFormat(OLD_FORMAT);\n Date d = sdf.parse(oldDate);\n sdf.applyPattern(NEW_FORMAT);\n newDateString = sdf.format(d);\n return newDateString;\n }", "public Date formatForDate(String data) throws ParseException{\n //definindo a forma da Data Recebida\n DateFormat formatUS = new SimpleDateFormat(\"dd-MM-yyyy\");\n return formatUS.parse(data);\n }", "public static Date introducirFecha(Scanner keyboard, String s) throws ParseException{ \n String f;\n \n Date fecha;\n do{\n System.out.println(\"Introduzca la \"+ s +\" (dd/MM/yyyy): \");\n f = keyboard.next();\n System.out.print(f);\n }while(!comprobarFecha(f));\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n fecha = dateFormat.parse(f);\n \n //fecha = new SimpleDateFormat(\"DD/MM/YYYY\").parse(f); // Creamos un date con la entrada en el formato especificado \n System.out.print(fecha);\n return fecha;\n }", "private String toDate(Date appDate) throws ParseException {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(appDate);\n\t\tString formatedDate = cal.get(Calendar.DATE) + \"/\" + (cal.get(Calendar.MONTH) + 1) + \"/\" + cal.get(Calendar.YEAR);\n\t\tSystem.out.println(\"formatedDate : \" + formatedDate); \n\t\treturn formatedDate;\n\t}", "public static String convertDateToSend(String gotdate){\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(Long.parseLong(gotdate));\n SimpleDateFormat inputFormat = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n SimpleDateFormat outputFormat = new SimpleDateFormat(\"dd MMM yyyy\");\n /*Date parsedDate = null;\n try {\n parsedDate = inputFormat.parse(gotdate);\n } catch (ParseException e) {\n e.printStackTrace();\n }*/\n String formattedDate = outputFormat.format(calendar.getTime());\n return formattedDate;\n }", "public static String dateToWccDate(Date dtDate) {\n String strDate = \"\";\n if (dtDate != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(WccConstants.WCC_DATE_FORMAT);\n strDate = sdf.format(dtDate);\n }\n return strDate;\n }", "private java.sql.Date obtenerFechaEnSQL(JXDatePicker fecha) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(fecha.getDate());\n int year = cal.get(Calendar.YEAR) - 1900; //PORQUE PUTAS\n int month = cal.get(Calendar.MONTH);\n int day = cal.get(Calendar.DAY_OF_MONTH);\n java.sql.Date sqlDate;\n\n sqlDate = new java.sql.Date(year, month, day);\n return sqlDate;\n }", "public String convertDayToString(Date date) {\n SimpleDateFormat formatDate = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formatDate.format(date);\n }", "private static final Date convertStringToDate(String aMask, String strDate) {\n SimpleDateFormat df = null;\n Date date = null;\n df = new SimpleDateFormat(aMask);\n try {\n date = df.parse(strDate);\n } catch (ParseException pe) {\n throw new ValidateException(\"日期转换出现异常,\"+pe.getMessage(), pe);\n }\n\n return (date);\n }", "public static String formatDateU(java.sql.Date date){\n\t\treturn date!=null?toTheString(date):\"unknown\";\n\t}", "private int parseMDYYYYtoJDate(String sDate) throws OException\r\n\t{\r\n final int month = 0;\r\n final int day = 1;\r\n final int year = 2;\r\n int result = OCalendar.today();\r\n String separator = \"\";\r\n\r\n if(sDate.indexOf(\"/\") > 0)\r\n separator = \"/\";\r\n else if(sDate.indexOf(\"-\") > 0)\r\n separator = \"-\";\r\n else if(sDate.indexOf(\"\\\\\") > 0)\r\n separator = \"\\\\\";\r\n else\r\n return result;\r\n\r\n String subDate[] = sDate.split(separator);\r\n if(subDate.length != 3)\r\n return result;\r\n\r\n if((subDate[day].length() != 1 && subDate[day].length() != 2)\r\n || (subDate[month].length() != 1 && subDate[month].length() != 2)\r\n || (subDate[year].length() != 2 && subDate[year].length() != 4))\r\n return result;\r\n\r\n // Fix Month to MM\r\n if(subDate[month].length() == 1)\r\n subDate[month] = \"0\" + subDate[month];\r\n\r\n // Fix Day to DD\r\n if(subDate[day].length() == 1)\r\n subDate[day] = \"0\" + subDate[day];\r\n\r\n // Fix Year to YYYY\r\n if(subDate[year].length() == 2)\r\n subDate[year] = \"20\" + subDate[year];\r\n\r\n\r\n // Convert to Julian Date using YYYYMMDD convert function\r\n result = OCalendar.convertYYYYMMDDToJd(subDate[year] + subDate[month] + subDate[day]);\r\n\r\n return result;\r\n\t}", "java.lang.String getToDate();" ]
[ "0.73841166", "0.7261501", "0.7012705", "0.69953525", "0.6977677", "0.6953687", "0.6919276", "0.6879902", "0.68765247", "0.68761504", "0.6834074", "0.6794119", "0.67821825", "0.6774365", "0.67610526", "0.67508173", "0.66371423", "0.6630946", "0.655122", "0.6538807", "0.65350145", "0.6491581", "0.6482939", "0.64795744", "0.6447011", "0.6430144", "0.6425651", "0.64047354", "0.6404199", "0.63914555", "0.6382377", "0.6370755", "0.63677114", "0.6356596", "0.634274", "0.633998", "0.6333825", "0.6332045", "0.629772", "0.62853205", "0.6274315", "0.6268043", "0.62579656", "0.625161", "0.6213914", "0.6203564", "0.6193678", "0.6193079", "0.61874425", "0.6185972", "0.6181797", "0.6163865", "0.6162648", "0.6154462", "0.6149773", "0.6119499", "0.6101739", "0.6081911", "0.60631466", "0.6052756", "0.60499203", "0.6042964", "0.6041678", "0.60400623", "0.6034655", "0.60294235", "0.6025837", "0.60241306", "0.601698", "0.60118824", "0.6011639", "0.6010465", "0.6001958", "0.5991499", "0.59852", "0.59840363", "0.59707713", "0.5967779", "0.59489936", "0.5941966", "0.5941677", "0.5930111", "0.59265083", "0.59246624", "0.58986604", "0.5897483", "0.58939064", "0.58868074", "0.5880181", "0.5877276", "0.5874509", "0.5870022", "0.58666885", "0.58663696", "0.58657855", "0.58646125", "0.5863905", "0.5855811", "0.5855647", "0.5853607" ]
0.7522534
0
convertToUDate Chuyen String dinh dang "dd/MM/yyyy" thanh ngay kieu java.util.Date
public static java.util.Date convertToUDate(String dateInString) { if (dateInString == null) { return null; } else { SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); java.util.Date uDate = null; try { uDate = dateFormat.parse(dateInString); } catch (ParseException e) { return null; } return uDate; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String convertDate(String date){\r\n String arrDate[] = date.split(\"/\");\r\n date = arrDate[2] + \"-\" + arrDate[1] + \"-\" + arrDate[0];\r\n return date;\r\n }", "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }", "public static String dateTran(String dateOri){\n\t\tDateFormat formatter1 ; \n\t\tDate date ; \n\t\tString newDate=null;\n\t\tformatter1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\ttry {\n\t\t\tdate=formatter1.parse(dateOri);\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat ( \"M/d/yy\" );\n\t\t\tnewDate = formatter.format(date);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn newDate;\n\t}", "public static String convertDate(String dbDate) throws ParseException //yyyy-MM-dd\n {\n String convertedDate = \"\";\n\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(dbDate);\n\n convertedDate = new SimpleDateFormat(\"MM/dd/yyyy\").format(date);\n\n return convertedDate ;\n }", "private java.sql.Date convertirDeDateUtilaDateSql(java.util.Date uDate) {\r\n java.sql.Date sDate = new java.sql.Date(uDate.getTime());\r\n return sDate;\r\n }", "public String convertDateFormate(String dt) {\n String formatedDate = \"\";\n if (dt.equals(\"\"))\n return \"1970-01-01\";\n String[] splitdt = dt.split(\"-\");\n formatedDate = splitdt[2] + \"-\" + splitdt[1] + \"-\" + splitdt[0];\n \n return formatedDate;\n \n }", "private String convertDateVN(String date) {\r\n String arrDate[] = date.split(\"-\");\r\n date = arrDate[2] + \"/\" + arrDate[1] + \"/\" + arrDate[0];\r\n return date;\r\n }", "public static String formatDate(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\treturn dateFormat.format(uDate);\n\t\t}\n\t}", "private static String convertToDDMMYYYY(Date date) {\n\t\tString returnStr = \"\";\n\t\ttry {\n\t\tDateFormat format1 = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturnStr = format1.format(date);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn returnStr;\n\t}", "public String convertDateToString(){\n\t\tString aDate = \"\";\n\t\taDate += Integer.toString(day);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(month);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(year);\n\t\treturn aDate;\n\t}", "public static Date parseDate(String date)\n {\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dt = null;\n try {\n dt = format.parse(date);\n } \n catch (ParseException ex) \n {\n System.out.println(\"Unexpected error during the conversion - \" + ex);\n }\n return dt;\n }", "public static String convertDateToStandardFormat(String inComingDateformat, String date)\r\n\t{\r\n\t\tString cmName = \"DateFormatterManaager.convertDateToStandardFormat(String,String)\";\r\n\t\tString returnDate = \"\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif (date != null && !date.trim().equals(\"\"))\r\n\t\t\t{\r\n\t\t\t\tif (inComingDateformat != null && !inComingDateformat.trim().equals(\"\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(inComingDateformat);\r\n\t\t\t\t\tDate parsedDate = sdf.parse(date);\r\n\t\t\t\t\tSimpleDateFormat standardsdf = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t\t\t\treturnDate = standardsdf.format(parsedDate);\r\n\t\t\t\t} else\r\n\t\t\t\t{\r\n\t\t\t\t\treturnDate = date;\r\n\t\t\t\t\tlogger.cterror(\"CTBAS00113\", cmName, date);\r\n\t\t\t\t}\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tlogger.ctdebug(\"CTBAS00114\", cmName);\r\n\t\t\t}\r\n\t\t} catch (ParseException pe) // just in case any runtime exception occurred just return input datestr as it is\r\n\t\t{\r\n\t\t\treturnDate = date;\r\n\t\t\tlogger.cterror(\"CTBAS00115\", pe, cmName, date, inComingDateformat);\r\n\t\t}\r\n\t\treturn returnDate;\r\n\t}", "public String toDate(Date date) {\n DateFormat df = DateFormat.getDateInstance();\r\n String fecha = df.format(date);\r\n return fecha;\r\n }", "private String formatDate(Date date) {\n String resultDate;\n SimpleDateFormat dateFormat;\n dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n resultDate = dateFormat.format(date);\n return resultDate;\n }", "private static String convertDate(String date) {\n\t\tlong dateL = Long.valueOf(date);\n\t\tDate dateTo = new Date(dateL);\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tString formatted = format.format(dateTo);\n\t\tSystem.out.println(\"Date formatted: \" + formatted);\n\t\treturn formatted;\n\t}", "private static String convertDate(String dateString) {\n String date = null;\n\n try {\n //Parse the string into a date variable\n Date parsedDate = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\").parse(dateString);\n\n //Now reformat it using desired display pattern:\n date = new SimpleDateFormat(DATE_FORMAT).format(parsedDate);\n\n } catch (ParseException e) {\n Log.e(TAG, \"getDate: Error parsing date\", e);\n e.printStackTrace();\n }\n\n return date;\n }", "public static String formartDate(String mDate) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"mm/dd/yyyy\");\n\t\t\t SimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-mm-dd\");\n\n\t\t\t \n\t\t\t String outDate = \"\";\n\t\t\t \n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t \n\t\t\t \n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "private String toDate(Date appDate) throws ParseException {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(appDate);\n\t\tString formatedDate = cal.get(Calendar.DATE) + \"/\" + (cal.get(Calendar.MONTH) + 1) + \"/\" + cal.get(Calendar.YEAR);\n\t\tSystem.out.println(\"formatedDate : \" + formatedDate); \n\t\treturn formatedDate;\n\t}", "public static java.util.Date convertToUDate(java.sql.Date sDate) {\n\t\tif (sDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.util.Date uDate = new Date(sDate.getTime());\n\t\t\treturn uDate;\n\t\t}\n\n\t}", "public Date getConvertedDate(String dateToBeConverted) {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yy hh:mm:ss\");\n\t\ttry{\n\t\t\tbookedDate = sdf.parse(dateToBeConverted);\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn bookedDate;\n\t}", "public static java.sql.Date convertToSDate(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.sql.Date sDate = new java.sql.Date(uDate.getTime());\n\t\t\treturn sDate;\n\t\t}\n\t}", "public static Date stringToDate(String dateAsString){\r\n try { \r\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\"); \r\n return df.parse(dateAsString);\r\n } catch (ParseException ex) {\r\n ex.printStackTrace();\r\n return null;\r\n }\r\n }", "public static Date converteStringInvertidaSemBarraAAAAMMDDParaDate(String data) {\r\n\t\tDate retorno = null;\r\n\r\n\t\tString dataInvertida = data.substring(6, 8) + \"/\" + data.substring(4, 6) + \"/\" + data.substring(0, 4);\r\n\r\n\t\tSimpleDateFormat dataTxt = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\ttry {\r\n\t\t\tretorno = dataTxt.parse(dataInvertida);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tthrow new IllegalArgumentException(data + \" não tem o formato dd/MM/yyyy.\");\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public Date ToDate(String line){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd\");\n try {\n Date d = sdf.parse(line);\n return d;\n } catch (ParseException ex) {\n\n Log.v(\"Exception\", ex.getLocalizedMessage());\n return null;\n }\n }", "public static String convert( Date date )\r\n {\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat( \"yyyy-MM-dd\" );\r\n\r\n return simpleDateFormat.format( date );\r\n }", "private Date convertStringToDate(String dateInString){\n DateFormat format = new SimpleDateFormat(\"d-MM-yyyy HH:mm\", Locale.ENGLISH);\n Date date = null;\n try {\n date = format.parse(dateInString);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return date;\n }", "public String dar_fecha(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n return dateFormat.format(date).toString();\n\n }", "public Date formatForDate(String data) throws ParseException{\n //definindo a forma da Data Recebida\n DateFormat formatUS = new SimpleDateFormat(\"dd-MM-yyyy\");\n return formatUS.parse(data);\n }", "public static Date converteStringInvertidaSemBarraAAMMDDParaDate(String data) {\r\n\t\tDate retorno = null;\r\n\r\n\t\tString dataInvertida = data.substring(4, 6) + \"/\" + data.substring(2, 4) + \"/20\" + data.substring(0, 2);\r\n\r\n\t\tSimpleDateFormat dataTxt = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\ttry {\r\n\t\t\tretorno = dataTxt.parse(dataInvertida);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tthrow new IllegalArgumentException(data + \" não tem o formato dd/MM/yyyy.\");\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static String formatDateU(java.sql.Date date){\n\t\treturn date!=null?toTheString(date):\"unknown\";\n\t}", "private static Date getDate(String sdate)\n\t{\n\t\tDate date = null;\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\ttry {\n\t\t\tdate = formatter.parse(sdate);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn date;\n\t}", "private String convertToDateFormat(String inputDateString) throws DateTimeParseException {\n\t\treturn inputDateString;\n\t}", "private java.sql.Date convert(Date datet) {\n\t\treturn null;\n\t}", "public static Date stringToDate(String string_date){\n Date myDate = null;\n \n try {\n java.util.Date utilDate = new SimpleDateFormat(\"yyyy-MM-dd\").parse(string_date);\n myDate = new java.sql.Date(utilDate.getTime());\n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return myDate;\n }", "public static String convertToDateStringWithsdf(String unformateddate, SimpleDateFormat sdf) {\n Date date = null;\n String dateStr = unformateddate;\n try {\n\n date = sdf.parse(unformateddate);\n dateStr = new SimpleDateFormat(\"dd MMM yyyy\").format(date);\n } catch (Exception e) {\n // TODO: handle exception\n e.printStackTrace();\n }\n\n return dateStr;\n }", "private Date stringToDate(String datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDate d = df.parse(datum);\r\n\t\t\treturn d;\r\n\t\t}\r\n\t\tcatch (ParseException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public static String convertDateFormat(String date) {\n DateFormat originalFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n DateFormat targetFormat = new SimpleDateFormat(\"MMMM dd, yyyy\", Locale.ENGLISH);\n Date oldDate;\n try {\n oldDate = originalFormat.parse(date);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n return targetFormat.format(oldDate);\n }", "public static String getStrUtilDate(java.util.Date date){\n\t\tif(date==null)\n\t\t\treturn fechaNula();\n\t\tString strDate=\"\";\n\t\t\n\t\tif(getDia(date)<10)\n\t\t\tstrDate+=\"0\"+getDia(date);\n\t\telse\n\t\t\tstrDate+=getDia(date);\n\t\tif(getMes(date)<10)\n\t\t\tstrDate+=\"/\"+\"0\"+getMes(date);\n\t\telse\n\t\t\tstrDate+=\"/\"+getMes(date);\n\t\tstrDate+=\"/\"+getAnio(date);\n\t\treturn strDate;\n\t}", "private String changeDateFormat (String oldDate) throws ParseException {\n // Source: https://stackoverflow.com/questions/3469507/how-can-i-change-the-date-format-in-java\n final String OLD_FORMAT = \"MM/dd/yyyy\";\n final String NEW_FORMAT = \"yyyyMMdd\";\n String newDateString;\n SimpleDateFormat sdf = new SimpleDateFormat(OLD_FORMAT);\n Date d = sdf.parse(oldDate);\n sdf.applyPattern(NEW_FORMAT);\n newDateString = sdf.format(d);\n return newDateString;\n }", "public static String dateToString(Date date){\r\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n return df.format(date);\r\n }", "public static String dateConv(int date) {\n\t\tDate mills = new Date(date*1000L); \n\t\tString pattern = \"dd-MM-yyyy\";\n\t\tSimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n\t\tsimpleDateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT+1\"));\n\t\tString formattedDate = simpleDateFormat.format(mills);\n\t\treturn formattedDate;\n\t}", "public static java.sql.Date convertToSDate(String dateInString) {\n\t\tif (dateInString == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tjava.util.Date uDate = null;\n\t\t\tjava.sql.Date sDate = null;\n\t\t\ttry {\n\t\t\t\tuDate = dateFormat.parse(dateInString);\n\t\t\t\tsDate = new java.sql.Date(uDate.getTime());\n\t\t\t} catch (ParseException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn sDate;\n\t\t}\n\t}", "public static Date stringToDate(String date)\r\n/* 29: */ {\r\n/* 30: 39 */ log.debug(\"DateUtil.stringToDate()\");\r\n/* 31: */ try\r\n/* 32: */ {\r\n/* 33: 41 */ return sdfDate.parse(date);\r\n/* 34: */ }\r\n/* 35: */ catch (ParseException e)\r\n/* 36: */ {\r\n/* 37: 43 */ log.fatal(\"DateUtil.stringToDate抛出异常\", e);\r\n/* 38: */ }\r\n/* 39: 44 */ return new Date();\r\n/* 40: */ }", "public static String formatDatetime(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\n\t\t\t\t\t\"dd/MM/yyyy HH:mm:ss\");\n\t\t\treturn dateFormat.format(uDate);\n\t\t}\n\t}", "public static String convertToFrenshFormat(String date){\n Date d = null;\n if(String.valueOf(Locale.getDefault()).contains(\"en\")){\n d = changeDateFormat(date, \"MM/dd/yyyy\");\n Locale locale = Locale.FRENCH;\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT, locale);\n return dateFormat.format(d);\n }\n else {\n return date;\n }\n }", "static String localDate(String date){\n Date d = changeDateFormat(date, \"dd/MM/yyyy\");\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault());\n return dateFormat.format(d);\n }", "public static String formartDateYOB(String mDate) {\n\t\t\t\t\n\t\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"dd/mm/yyyy\");\n\t\t\t\t SimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-mm-dd\");\n\n\t\t\t\t \n\t\t\t\t String outDate = \"\";\n\t\t\t\t \n\t\t\t\t if (mDate != null) {\n\t\t\t\t try {\n\t\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t\t outDate = outSDF.format(date);\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t } catch (Exception ex){ \n\t\t\t\t \tex.printStackTrace();\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t return outDate;\n\t\t\t}", "public static Date convertStringToDate(String strDate)\n\t {\n\t Date myDate = null;\n\t if (strDate.length() > 0)\n\t {\n\t DateFormat formatter = new SimpleDateFormat(EProcurementConstants.INPUT_DATE_FORMAT);\n\t try\n\t {\n\t myDate = formatter.parse(strDate);\n\t } catch (ParseException e)\n\t {\n\t LOGGER.error(\"Not able to parse \" + strDate + \" into date ..\" + e.getMessage());\n\t }\n\t }\n\t return myDate;\n\t }", "@Test\n\t@DisplayName(\"date to string\")\n\tpublic void testDateToString()\n\t{\n\t\tString dateInString = \"2000-04-12\";\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\ttry {\n\t\t date1 = formatter.parse(dateInString);\n\t\t} catch (ParseException e) {\n\t\t //handle exception if date is not in \"dd-MMM-yyyy\" format\n\t\t}\n\t\tDateConverter s = new DateConverter(date1);\n\t\tassertEquals(\"2000-04-12\", s.getDateAsString());\n\t}", "public Date formatDate( String dob )\n throws ParseException {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n dateFormat.setLenient(false);\n return dateFormat.parse(dob);\n }", "public static String convertDateToSend(String gotdate){\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(Long.parseLong(gotdate));\n SimpleDateFormat inputFormat = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n SimpleDateFormat outputFormat = new SimpleDateFormat(\"dd MMM yyyy\");\n /*Date parsedDate = null;\n try {\n parsedDate = inputFormat.parse(gotdate);\n } catch (ParseException e) {\n e.printStackTrace();\n }*/\n String formattedDate = outputFormat.format(calendar.getTime());\n return formattedDate;\n }", "public String convertDateToString(Date date) {\n\t\tString dateTime = SDF.format(date);\n\t\treturn dateTime;\t\n\t}", "@Override\n\tpublic Date convert(String source) {\n\t\tif (StringUtils.isValid(source)) {\n\t\t\tDateFormat dateFormat;\n\t\t\tif (source.indexOf(\":\") != -1) {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t} else {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd\"); \n\t\t\t}\n\t\t\t//日期转换为严格模式\n\t\t dateFormat.setLenient(false); \n\t try {\n\t\t\t\treturn dateFormat.parse(source);\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\treturn null;\n\t}", "public static Date FormatStringToDate(String dateString) {\r\n SimpleDateFormat dF = new SimpleDateFormat(\"dd/mm/yyyy HH:mm:ss\");\r\n Date date = null;\r\n try {\r\n date = dF.parse(dateString);\r\n } catch (ParseException e) {\r\n e.printStackTrace();\r\n }\r\n return date;\r\n }", "private static void formatDate(Date i) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yy\");\n\t\tformatter.setLenient(false);\n\t\tAnswer = formatter.format(i);\n\t}", "public String changeDateFormat(String dateStr) {\n String inputPattern = \"MMM-dd-yyyy\";\n String outputPattern = \"MMMM dd, yyyy\";\n SimpleDateFormat inputFormat = new SimpleDateFormat(inputPattern);\n SimpleDateFormat outputFormat = new SimpleDateFormat(outputPattern);\n\n Date date = null;\n String str = null;\n\n try {\n date = inputFormat.parse(dateStr);\n str = outputFormat.format(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return str;\n\n }", "public static String formatterDateUS(Date date){\n\t\tString retour = null;\n\t\tif(date != null){\n\t\t\tretour = df.format(date);\n\t\t}\n\t\treturn retour;\n\t}", "public static String resolveDate(String date) throws ParseException {\n\t\tDate parsedDate = new SimpleDateFormat(\"dd/MM/yyyy\").parse(date);\n\t\tFormat formatter = new SimpleDateFormat(\"EEE MMM dd yyyy\");\n\t\tString formattedDate = formatter.format(parsedDate);\n\t\treturn formattedDate;\n\t}", "public String getDateConvert() {\n SimpleDateFormat dateFormat1 = new SimpleDateFormat(\"MMM dd yyyy - hh:mm\");\n SimpleDateFormat dateFormat2 = new SimpleDateFormat(\"a\");\n String date = dateFormat1.format(this.timePost) + dateFormat2.format(this.timePost).toLowerCase();\n return date;\n }", "public static String formartDateMpesa(String mDate) {\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tSimpleDateFormat outSDF = new SimpleDateFormat(\"dd-MM-yyyy\");\n\n\t\t\t String outDate = \"\";\n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "private String dateToString(Date datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\tString dat = df.format(datum);\r\n\t\treturn dat;\r\n\t}", "public static java.util.Date convertFromStringToDate(String strDate){\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd-MMM-yyyy\"); /*This stringDate is come from UI*/\n\t\tjava.util.Date date = null;\n\t\tif(strDate != null && !strDate.trim().isEmpty()){\n\t\t\ttry {\n\t\t\t\tdate = format.parse(strDate);\n\t\t\t\tSystem.out.println(strDate);\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\t\n\t\treturn date;\n\t}", "public Date stringToDate(String date) throws ParseException {\n String[] splitDate = date.split(\"T\");\n String day = splitDate[0];\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date dayDate = dateFormat.parse(day);\n return dayDate;\n }", "public String dateFormatter(String fromDate) {\n\t\tString newDateString=\"\";\n\t\ttry {\n\t\t\tfinal String oldFormat = \"yyyy/MM/dd\";\n\t\t\tfinal String newFormat = \"yyyy-MM-dd\";\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(oldFormat);\n\t\t\tDate d = sdf.parse(fromDate);\n\t\t\tsdf.applyPattern(newFormat);\n\t\t\tnewDateString = sdf.format(d);\n\t\t} catch(Exception exp) {\n\t\t\tthrow ExceptionUtil.getYFSException(ExceptionLiterals.ERRORCODE_INVALID_DATE, exp);\n\t\t}\n\t\treturn newDateString;\n\t}", "public String getFormatedDate(Date date) {\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/mm/yyyy\");\r\n\t\treturn sdf.format(date);\r\n\t}", "public static Date stringToDate (String s) {\n\t\tint year=0 , month=0 , date=0;\n\t\tCalendar cal = Calendar.getInstance(Locale.getDefault());\n\t\t\n\t\tStringTokenizer st = new StringTokenizer (s,\"/\");\n\t\t\n\t\tdate = Integer.parseInt(st.nextToken());\n\t\tmonth = Integer.parseInt(st.nextToken());\n\t\tyear = Integer.parseInt(st.nextToken());\n\t\tcal.clear();\n\t\tcal.set(year,month-1,date);\n\t\t//System.out.println(\"\\nDate : \"+getStringFromDate(cal.getTime()));\n\t\treturn (Date)cal.getTime().clone();\n\t}", "public static Date stringToDate(String date) throws InvalidDateException{\n DateFormat format = new SimpleDateFormat(Constants.BIRTH_DATE_FORMAT);\n format.setLenient(false); //é uma flag para que a data esteja sempre entre os limites corretos\n try {\n return format.parse(date);\n } catch (ParseException ignored) {\n throw new InvalidDateException(\"Invalid date\");\n }\n }", "public static java.sql.Date convertDate(java.util.Date utilDate) {\n\t\tif (utilDate != null) {\n\t\t\treturn new java.sql.Date(utilDate.getTime());\n\t\t}\n\t\treturn null;\n\t}", "public static Date parseDate(String date) {\r\n return parseDateWithPattern(date, \"dd/MM/yyyy\");\r\n }", "public static String convertUtilToSqlDate(String date) throws ParseException\r\n\t{\r\n\t\tjava.util.Date initDate = new SimpleDateFormat(\"dd-mm-yyyy\").parse(date);\r\n\t SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-mm-dd\");\r\n\t return formatter.format(initDate);\r\n\t}", "private String formatDate(String dateObject) {\n SimpleDateFormat input = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"); // format kita \"HARUS SAMA TIDAK BOLEH FORMATNYA BEDA BAHKAN 1 CHAR PUN\n SimpleDateFormat output= new SimpleDateFormat(\"dd-MM-yyyy\");\n Date tanggal = null;\n try {\n tanggal = input.parse(dateObject);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return output.format(tanggal);\n\n }", "public static Date String2Date(String date){\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\n Date currentDate = null;\n try {\n currentDate = format.parse(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return currentDate;\n }", "public static Date stringToDate(String date) {\n\t\tDate result = null;\n\t\tif (date != null && !\"\".equals(date)) {\n\t\t\tDateTimeFormatter f = DateTimeFormat.forPattern(SmartMoneyConstants.DATE_FORMAT);\n\t\t\tDateTime dateTime = f.parseDateTime(date);\n\t\t\tresult = dateTime.toDate();\n\t\t}\n\n\t\treturn result;\n\t}", "public static Date convertirStringADateUtil(String s){\n\t\tFORMATO_FECHA.setLenient(false);\n\t\tDate fecha = null;\n\t\ttry {\n\t\t\tfecha = FORMATO_FECHA.parse(s);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn fecha;\n\t}", "@Override\n\t\tpublic java.sql.Date convert(String s) throws ParseException {\n\t\t\ts = supportHtml5DateTimePattern(s);\n\t\t\t\n\t\t\tif (timeStampWithoutSecPatternLen == s.length()) {\n\t\t\t\ts = s + \":00\";\n\t\t\t}\n\t\t\tif (s.length() > dateLen) {\t// if (x < timeStampLen) 改用 datePattern 转换,更智能\n\t\t\t\t// return new java.sql.Date(java.sql.Timestamp.valueOf(s).getTime());\t// error under jdk 64bit(maybe)\n\t\t\t\treturn new java.sql.Date(getFormat(timeStampPattern).parse(s).getTime());\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// return new java.sql.Date(java.sql.Date.valueOf(s).getTime());\t// error under jdk 64bit\n\t\t\t\treturn new java.sql.Date(getFormat(datePattern).parse(s).getTime());\n\t\t\t}\n\t\t}", "@TypeConverter\n public static Date toDate(String value) {\n if (value == null) return null;\n\n try {\n return df.parse(value);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n }", "private static void formatDate (XmlDoc.Element date) throws Throwable {\n\t\tString in = date.value();\n\t\tString out = DateUtil.convertDateString(in, \"dd-MMM-yyyy\", \"yyyy-MM-dd\");\n\t\tdate.setValue(out);\n\t}", "public java.sql.Date format(String date) {\n int i = 0;\n int dateAttr[];\n dateAttr = new int[3];\n for(String v : date.split(\"/\")) {\n dateAttr[i] = Integer.parseInt(v);\n i++;\n }\n\n GregorianCalendar gcalendar = new GregorianCalendar();\n gcalendar.set(dateAttr[2], dateAttr[0]-1, dateAttr[1]); // Year,Month,Day Of Month\n java.sql.Date sdate = new java.sql.Date(gcalendar.getTimeInMillis());\n return sdate;\n }", "public static String dateToWccDate(Date dtDate) {\n String strDate = \"\";\n if (dtDate != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(WccConstants.WCC_DATE_FORMAT);\n strDate = sdf.format(dtDate);\n }\n return strDate;\n }", "private String formatDate(String dateString) {\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"LLL dd, yyyy\");\n LocalDate localDate = LocalDate.parse(dateString.substring(0, 10));\n return dateTimeFormatter.format(localDate);\n }", "public static Date StringToDate(String strFecha) throws ParseException {\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n return simpleDateFormat.parse(strFecha);\r\n }", "@Test\n void test7(){\n\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date date = new Date();\n String dString = formatter.format(date);\n System.out.println(\"dString=\"+dString);\n\n Date datas = java.sql.Date.valueOf(dString);\n System.out.println(\"datas=\"+datas);\n\n\n }", "public static Date convertStringToDate(String date) throws ParseException {\n\t return new SimpleDateFormat(\"yyyy-MM-dd\").parse(date); \n\t}", "public static String convertDateToString(Date aDate) {\n\t\treturn getDateTime(getDatePattern(), aDate);\n\t}", "java.lang.String getToDate();", "public static String convertDate(String input) {\n String res = \"\";\n\n String[] s = input.split(\" \");\n\n res += s[2] + \"-\";\n switch (s[1]) {\n case \"January\":\n res += \"01\";\n break;\n case \"February\":\n res += \"02\";\n break;\n case \"March\":\n res += \"03\";\n break;\n case \"April\":\n res += \"04\";\n break;\n case \"May\":\n res += \"05\";\n break;\n case \"June\":\n res += \"06\";\n break;\n case \"July\":\n res += \"07\";\n break;\n case \"August\":\n res += \"08\";\n break;\n case \"September\":\n res += \"09\";\n break;\n case \"October\":\n res += \"10\";\n break;\n case \"November\":\n res += \"11\";\n break;\n case \"December\":\n res += \"12\";\n break;\n default:\n res += \"00\";\n break;\n }\n\n res += \"-\";\n if (s[0].length() == 1) {\n res += \"0\" + s[0];\n }\n else {\n res += s[0];\n }\n return res;\n }", "@Test\n public void dateUtilTest() {\n String orgStr = \"2016-01-05 10:00:17\";\n Date orgDate = new Date(1451959217000L);\n Assert.assertTrue(DateStrValueConvert.dateFormat(orgDate).equals(orgStr));\n Assert.assertTrue(DateStrValueConvert.dateConvert(orgStr).equals(orgDate));\n }", "public static String strToDateFormToDB(String fecha){ \n\t\tString dateValue = fecha;\n\t\tint index = dateValue.indexOf(\"/\");\n\t\tString day = dateValue.substring(0,index);\n\t\tint index2 = dateValue.indexOf(\"/\",index+1);\n\t\tString month = dateValue.substring(index+1,index2);\n\t\tString year = dateValue.substring(index2+1,index2+5);\n\t\tdateValue=year+\"-\"+month+\"-\"+day;\n\t\treturn dateValue;\n\t}", "public static String formatDate(String date){\n String formatedDate = date;\n if (!date.matches(\"[0-9]{2}-[0-9]{2}-[0-9]{4}\")){\n if (date.matches(\"[0-9]{1,2}/[0-9]{1,2}/([0-9]{2}|[0-9]{4})\"))\n formatedDate = date.replace('/', '-');\n if (date.matches(\"[0-9]{1,2}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\")){\n if (formatedDate.matches(\"[0-9]{1}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = \"0\" + formatedDate;\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{1}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = formatedDate.substring(0, 3) + \"0\" + \n formatedDate.substring(3);\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{2}.[0-9]{2}\")){\n String thisYear = String.valueOf(LocalDate.now().getYear());\n String century = thisYear.substring(0,2);\n /* If the last two digits of the date are larger than the two last digits of \n * the current date, then we can suppose that the year corresponds to the last \n * century.\n */ \n if (Integer.valueOf(formatedDate.substring(6)) > Integer.valueOf(thisYear.substring(2)))\n century = String.valueOf(Integer.valueOf(century) - 1);\n formatedDate = formatedDate.substring(0, 6) + century +\n formatedDate.substring(6); \n }\n }\n }\n return formatedDate;\n }", "private static Date getFormattedDate(String date){\n\t\tString dateStr = null;\n\t\tif(date.length()<11){\n\t\t\tdateStr = date+\" 00:00:00.0\";\n\t\t}else{\n\t\t\tdateStr = date;\n\t\t}\n\t\tDate formattedDate = null;\n\t\ttry {\n\t\t\tformattedDate = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.S\").parse(dateStr);\n\t\t} catch (ParseException e) {\n\t\t\tCommonUtilities.createErrorLogFile(e);\n\t\t}\n\t\treturn formattedDate;\n\n\t}", "public static String ddmmyyyyToyyyymmddd(String strDate) {\n DateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date date = null;\n try {\n date = (Date) formatter.parse(strDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n SimpleDateFormat newFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n String finalString = newFormat.format(date);\n return finalString;\n }", "public Date convertStringToDate(String dateToParse, String format) {\n SimpleDateFormat formatter = new SimpleDateFormat(format);\n Date result = null;\n try {\n result = formatter.parse(dateToParse);\n } catch (Exception exception1) {\n System.err.println(\n String.format(\"ERROR, converting from String %s to date with format %s\", dateToParse, format)\n );\n result = null;\n }\n return result;\n }", "public String getUserDateString() {\n\t\tString[] tmpArr = this.getUserDate();\n\t\tString year = tmpArr[0];\n\t\tString month = tmpArr[1];\n\t\tString day = tmpArr[2];\n\t\tString out = year + \"/\" + month + \"/\" + day;\n\t\treturn out;\n\t}", "public static String convertStringToSqlString(String input) throws ParseException{\r\n\t\tSimpleDateFormat fromUser = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tSimpleDateFormat myFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\r\n\t\ttry {\r\n\r\n\t\t String reformattedStr = myFormat.format(fromUser.parse(input));\r\n\t\t return reformattedStr;\r\n\t\t} catch (ParseException e) {\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t \r\n\t\t/* Date dtJava;\r\n\t\tDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n dtJava = (java.util.Date)formatter.parse(input);\r\n\t\t\r\n\t\tjava.sql.Date date = new java.sql.Date(dtJava.getTime());\r\n\t\t\r\n\t\tString dtSql = (String)date.toString();\r\n\t\t\r\n\t\treturn dtSql;*/\r\n\t}", "java.lang.String getFromDate();", "public static String convertDateFormat(Date sourceDate, SimpleDateFormat dateForm) {\n return dateForm.format(sourceDate);\n }", "static String getReadableDate(LocalDate date){\r\n\t\tString readableDate = null;\r\n\t\t//convert only if non-null\r\n\t\tif(null != date){\r\n\t\t\t//convert date to readable form\r\n\t\t\treadableDate = date.toString(\"MM/dd/yyyy\");\r\n\t\t}\r\n\t\t\r\n\t\treturn readableDate;\r\n\t}", "private String stringifyDate(Date date){\n\t\tDateFormat dateFormatter = new SimpleDateFormat(\"yyyy-MM-dd\");\t\t\n\t\treturn dateFormatter.format(date);\n\t}", "protected static java.sql.Date getConvertedDate(java.util.Date date) {\n\t\tif (date == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn new java.sql.Date(date.getTime());\n\t\t}\n\t}", "private String convertDateToCron(Date date) {\n if (date == null)\n return \"\";\n Calendar calendar = java.util.Calendar.getInstance();\n calendar.setTime(date);\n\n String hours = String.valueOf(calendar.get(Calendar.HOUR_OF_DAY));\n\n String mins = String.valueOf(calendar.get(Calendar.MINUTE));\n\n String days = String.valueOf(calendar.get(Calendar.DAY_OF_MONTH));\n\n String months = new java.text.SimpleDateFormat(\"MM\").format(calendar.getTime());\n\n String years = String.valueOf(calendar.get(Calendar.YEAR));\n\n return \"0 \" + mins+ \" \" + hours + \" \" + days + \" \" + months + \" ? \" + years;\n }" ]
[ "0.7285206", "0.72417647", "0.7239355", "0.7131241", "0.6990004", "0.69402874", "0.68993306", "0.6885549", "0.67787564", "0.66300476", "0.6500829", "0.64982927", "0.64799345", "0.6474084", "0.64125276", "0.6405038", "0.63707393", "0.63148284", "0.6311314", "0.6298492", "0.62536716", "0.6249664", "0.62483764", "0.62338096", "0.62187666", "0.6216502", "0.62089413", "0.62086356", "0.61999804", "0.6186243", "0.6179499", "0.6175121", "0.61750215", "0.61746126", "0.616731", "0.6165303", "0.61606896", "0.6148901", "0.6144517", "0.61434597", "0.6141951", "0.61241233", "0.61221343", "0.6113392", "0.6104193", "0.6096118", "0.6090153", "0.6051936", "0.60515475", "0.60396045", "0.60354376", "0.6021835", "0.6020315", "0.6018135", "0.60154784", "0.60154384", "0.60108036", "0.6006407", "0.59995806", "0.59940666", "0.5983622", "0.5959127", "0.5958733", "0.5926033", "0.590953", "0.59037304", "0.5885049", "0.58844966", "0.5868826", "0.5848862", "0.5848489", "0.5846961", "0.5845221", "0.5829869", "0.5826047", "0.58253014", "0.58189005", "0.58156866", "0.58155113", "0.58076835", "0.5807465", "0.5805307", "0.5794399", "0.5789714", "0.5788634", "0.5786266", "0.5766113", "0.5764517", "0.57334435", "0.5731943", "0.5721524", "0.5720915", "0.57188237", "0.5714277", "0.57033736", "0.57012594", "0.57000244", "0.5694709", "0.5692379", "0.5687074" ]
0.734186
0
convertToUDatetime Chuyen String dinh dang "dd/MM/yyyy HH:mm:ss" thanh ngay gio kieu java.util.Date
public static java.util.Date convertToUDatetime(String datetimeInString) { if (datetimeInString == null) { return null; } else { SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); java.util.Date uDate = null; try { uDate = dateFormat.parse(datetimeInString); } catch (ParseException e) { return null; } return uDate; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String formatDatetime(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\n\t\t\t\t\t\"dd/MM/yyyy HH:mm:ss\");\n\t\t\treturn dateFormat.format(uDate);\n\t\t}\n\t}", "private java.sql.Date convertirDeDateUtilaDateSql(java.util.Date uDate) {\r\n java.sql.Date sDate = new java.sql.Date(uDate.getTime());\r\n return sDate;\r\n }", "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }", "private String convertDate(String date){\r\n String arrDate[] = date.split(\"/\");\r\n date = arrDate[2] + \"-\" + arrDate[1] + \"-\" + arrDate[0];\r\n return date;\r\n }", "public String convertDateFormate(String dt) {\n String formatedDate = \"\";\n if (dt.equals(\"\"))\n return \"1970-01-01\";\n String[] splitdt = dt.split(\"-\");\n formatedDate = splitdt[2] + \"-\" + splitdt[1] + \"-\" + splitdt[0];\n \n return formatedDate;\n \n }", "public String convertDateToTime(String date){\n Date test = null;\n if(date !=null) {\n try {\n test = sdf.parse(date);\n } catch (ParseException e) {\n System.out.println(\"Parse not working: \" + e);\n }\n calendar.setTime(test);\n return String.format(\"%02d:%02d\",\n calendar.get(Calendar.HOUR_OF_DAY),\n calendar.get(Calendar.MINUTE)\n );\n }\n return \"n\";\n }", "public static String dateTran(String dateOri){\n\t\tDateFormat formatter1 ; \n\t\tDate date ; \n\t\tString newDate=null;\n\t\tformatter1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\ttry {\n\t\t\tdate=formatter1.parse(dateOri);\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat ( \"M/d/yy\" );\n\t\t\tnewDate = formatter.format(date);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn newDate;\n\t}", "public String getDateConvert() {\n SimpleDateFormat dateFormat1 = new SimpleDateFormat(\"MMM dd yyyy - hh:mm\");\n SimpleDateFormat dateFormat2 = new SimpleDateFormat(\"a\");\n String date = dateFormat1.format(this.timePost) + dateFormat2.format(this.timePost).toLowerCase();\n return date;\n }", "private Date convertStringToDate(String dateInString){\n DateFormat format = new SimpleDateFormat(\"d-MM-yyyy HH:mm\", Locale.ENGLISH);\n Date date = null;\n try {\n date = format.parse(dateInString);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return date;\n }", "private static String convertDate(String dateString) {\n String date = null;\n\n try {\n //Parse the string into a date variable\n Date parsedDate = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\").parse(dateString);\n\n //Now reformat it using desired display pattern:\n date = new SimpleDateFormat(DATE_FORMAT).format(parsedDate);\n\n } catch (ParseException e) {\n Log.e(TAG, \"getDate: Error parsing date\", e);\n e.printStackTrace();\n }\n\n return date;\n }", "public static java.util.Date convertToUDate(String dateInString) {\n\t\tif (dateInString == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tjava.util.Date uDate = null;\n\t\t\ttry {\n\t\t\t\tuDate = dateFormat.parse(dateInString);\n\t\t\t} catch (ParseException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn uDate;\n\t\t}\n\t}", "public static Timestamp changeStrToDate(String strInput)\n\t{\n\t\tSimpleDateFormat sdfmt1 = new SimpleDateFormat(\"MM/dd/yyyy hh:mm a\");\n\t\tSimpleDateFormat sdfmt2= new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\tjava.util.Date dDate = new Date();\n\t\ttry {\n\t\t\tdDate = sdfmt1.parse( strInput );\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString strOutput = sdfmt2.format( dDate );\n\t\tDateTimeFormatter formattert = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm\");\n\t\tLocalDateTime ldt = LocalDateTime.parse(strOutput,formattert);\n\t\tTimestamp dt = Timestamp.valueOf(ldt);\n\t\t//System.out.println(dDate + \" \" + strOutput + \" \" + dt);\n\t\t//System.out.println(dt);\n\t\treturn dt;\n\n\t}", "public static Date StringToDate(String strFecha) throws ParseException {\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n return simpleDateFormat.parse(strFecha);\r\n }", "private Date convertirStringEnFecha(String dia, String hora)\n {\n String fecha = dia + \" \" + hora;\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy hh:mm\");\n Date fecha_conv = new Date();\n try\n {\n fecha_conv = format.parse(fecha);\n }catch (ParseException e)\n {\n Log.e(TAG, e.toString());\n }\n return fecha_conv;\n }", "public static String convertDate(String dbDate) throws ParseException //yyyy-MM-dd\n {\n String convertedDate = \"\";\n\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(dbDate);\n\n convertedDate = new SimpleDateFormat(\"MM/dd/yyyy\").format(date);\n\n return convertedDate ;\n }", "protected String getDateTimeString(String input) {\n String result;\n DateTimeFormatter datePattern = DateTimeFormatter.ofPattern(\"MMM dd yyyy\");\n if (dateTime == null) {\n result = input;\n } else {\n String date = getDate().format(datePattern);\n String time = getTime().toString();\n result = date + Constants.SPACE + time;\n }\n return result;\n }", "@Override\n\t\tpublic java.sql.Date convert(String s) throws ParseException {\n\t\t\ts = supportHtml5DateTimePattern(s);\n\t\t\t\n\t\t\tif (timeStampWithoutSecPatternLen == s.length()) {\n\t\t\t\ts = s + \":00\";\n\t\t\t}\n\t\t\tif (s.length() > dateLen) {\t// if (x < timeStampLen) 改用 datePattern 转换,更智能\n\t\t\t\t// return new java.sql.Date(java.sql.Timestamp.valueOf(s).getTime());\t// error under jdk 64bit(maybe)\n\t\t\t\treturn new java.sql.Date(getFormat(timeStampPattern).parse(s).getTime());\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// return new java.sql.Date(java.sql.Date.valueOf(s).getTime());\t// error under jdk 64bit\n\t\t\t\treturn new java.sql.Date(getFormat(datePattern).parse(s).getTime());\n\t\t\t}\n\t\t}", "public static String convertDate(String inputdate, String fromtimezone, String totimezone)\n\n {\n String sDateinto = \"\";\n try {\n SimpleDateFormat formatter = new SimpleDateFormat(DATE_FORMAT);\n\n String dateInString = inputdate.substring(0, 22) ;\n\n formatter.setTimeZone(TimeZone.getTimeZone(fromtimezone));\n Date date = formatter.parse(dateInString);\n Log.i(\"FromDate String : \", formatter.format(date));\n\n\n SimpleDateFormat totime = new SimpleDateFormat(DATE_FORMAT);\n //TimeZone tzlocaltime = TimeZone.getDefault();\n totime.setTimeZone(TimeZone.getTimeZone(totimezone));\n\n sDateinto = totime.format(date); // Convert to String first\n Date dateInTo = formatter.parse(sDateinto); // Create a new Date object\n\n // Log.i(\"ToDate String: \", sDateinto);\n Log.i(\"ToDate Object: \", formatter.format(dateInTo));\n return sDateinto ;\n }\n catch (ParseException e)\n {\n Log.i(\"Date Conversion\" ,\"Error in parsing\" );\n return \"Date parsing error\" ;\n }\n\n }", "private String convertDate2String(Date date) {\n DateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\");\n return dateFormat.format(date);\n }", "public static Date String2Date(String date){\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\n Date currentDate = null;\n try {\n currentDate = format.parse(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return currentDate;\n }", "public static String convertDateToSend(String gotdate){\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(Long.parseLong(gotdate));\n SimpleDateFormat inputFormat = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n SimpleDateFormat outputFormat = new SimpleDateFormat(\"dd MMM yyyy\");\n /*Date parsedDate = null;\n try {\n parsedDate = inputFormat.parse(gotdate);\n } catch (ParseException e) {\n e.printStackTrace();\n }*/\n String formattedDate = outputFormat.format(calendar.getTime());\n return formattedDate;\n }", "private static String convertDate(String date) {\n\t\tlong dateL = Long.valueOf(date);\n\t\tDate dateTo = new Date(dateL);\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tString formatted = format.format(dateTo);\n\t\tSystem.out.println(\"Date formatted: \" + formatted);\n\t\treturn formatted;\n\t}", "private String convertDateVN(String date) {\r\n String arrDate[] = date.split(\"-\");\r\n date = arrDate[2] + \"/\" + arrDate[1] + \"/\" + arrDate[0];\r\n return date;\r\n }", "public Date stringToDate(String date) throws ParseException {\n String[] splitDate = date.split(\"T\");\n String day = splitDate[0];\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date dayDate = dateFormat.parse(day);\n return dayDate;\n }", "public Date ToDate(String line){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd\");\n try {\n Date d = sdf.parse(line);\n return d;\n } catch (ParseException ex) {\n\n Log.v(\"Exception\", ex.getLocalizedMessage());\n return null;\n }\n }", "private java.sql.Date convert(Date datet) {\n\t\treturn null;\n\t}", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "private Date convertMongoToDate(String dateString, String timeString) {\n int year = Integer.parseInt(dateString.substring(0, 4));\n //Log.e(\"KARA\", \"year \" + year);\n int month = Integer.parseInt(dateString.substring(5, 7));\n //Log.e(\"KARA\", \"month \" + month);\n int day = Integer.parseInt(dateString.substring(8, 10));\n //Log.e(\"KARA\", \"day \" + day);\n int hour = Integer.parseInt(timeString.substring(0, 2));\n //Log.e(\"KARA\", \"hour \" + hour);\n int min = Integer.parseInt(timeString.substring(3, 5));\n return new Date(year - 1900, month - 1, day, hour, min);\n }", "public static String dateToDateTime(Date date) {\n DateTime dateTime = new DateTime(date);\n return DATE_TIME_FORMATTER.print(dateTime);\n }", "public static Date stringToDate(String string_date){\n Date myDate = null;\n \n try {\n java.util.Date utilDate = new SimpleDateFormat(\"yyyy-MM-dd\").parse(string_date);\n myDate = new java.sql.Date(utilDate.getTime());\n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return myDate;\n }", "public Date Transfertime(String timetmp) {\n Date timedatetmp = new Date();\n try {\n timedatetmp = sdftime.parse(timetmp);\n }\n catch (ParseException e) { \n e.printStackTrace();\n }\n return timedatetmp;\n }", "private static void m1() {\n\n String d = \"2019/03/22 10:00-11:00\";\n DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd HH:mm-HH:mm\");\n try {\n Date parse = df.parse(d);\n System.out.println(df.format(parse));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "public static java.util.Date strToUtilDate(String fecha, String hora){\n\t\tString f=strToDateFormToDB(fecha)+\" \"+hora+\":00\";\n\t\tjava.sql.Timestamp dh= java.sql.Timestamp.valueOf( f);\n\t\treturn (java.util.Date)dh;\n\t}", "public static String convertDateAndTime(String inputString) {\n String trimmedInputString = inputString.trim();\n\n if (trimmedInputString.length() < 10) {\n return convertTime(inputString);\n } else {\n String dateString = trimmedInputString.substring(0, 10).trim();\n String timeString = trimmedInputString.substring(10).trim();\n try {\n String date = LocalDate.parse(dateString).format(DateTimeFormatter.ofPattern(\"d MMM yyyy\"));\n\n if (timeString.length() == 4) {\n return date + \" \" + convertTime(timeString);\n }\n\n return date + timeString;\n } catch (DateTimeParseException e) {\n return inputString;\n }\n }\n }", "java.lang.String getToDate();", "@Override\n\tpublic Date convert(String source) {\n\t\tif (StringUtils.isValid(source)) {\n\t\t\tDateFormat dateFormat;\n\t\t\tif (source.indexOf(\":\") != -1) {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t} else {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd\"); \n\t\t\t}\n\t\t\t//日期转换为严格模式\n\t\t dateFormat.setLenient(false); \n\t try {\n\t\t\t\treturn dateFormat.parse(source);\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\treturn null;\n\t}", "private static String toDateTime(String dateSubmitted) {\n\t\tString[] extracted = dateSubmitted.split(\" \");\n\t\t\n\t\tString[] date = extracted[0].split(\"/\");\n\t\t\n\t\tif(date[0].length() == 1)\n\t\t\tdate[0] = \"0\" + date[0];\n\t\tif(date[1].length() == 1)\n\t\t\tdate[1] = \"0\" + date[1];\n\t\t\n\t\treturn date[2] + \"-\" + date[0] + \"-\" + date[1] + \" \" + extracted[1];\n\t}", "public static Date stringToDate(String date)\r\n/* 29: */ {\r\n/* 30: 39 */ log.debug(\"DateUtil.stringToDate()\");\r\n/* 31: */ try\r\n/* 32: */ {\r\n/* 33: 41 */ return sdfDate.parse(date);\r\n/* 34: */ }\r\n/* 35: */ catch (ParseException e)\r\n/* 36: */ {\r\n/* 37: 43 */ log.fatal(\"DateUtil.stringToDate抛出异常\", e);\r\n/* 38: */ }\r\n/* 39: 44 */ return new Date();\r\n/* 40: */ }", "public String convertDateToString(){\n\t\tString aDate = \"\";\n\t\taDate += Integer.toString(day);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(month);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(year);\n\t\treturn aDate;\n\t}", "public static String formatDate(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\treturn dateFormat.format(uDate);\n\t\t}\n\t}", "private String getDayFromUTCTimeStamp(String stDate_in) {\n try {\n long timeStamp = Long.parseLong(stDate_in) * 1000L;\n SimpleDateFormat sdfDay = new SimpleDateFormat(\"E\");\n SimpleDateFormat sdfDateTime = new SimpleDateFormat(\"E MM/dd/yyyy HH:mm:ss\");\n Date netDate = (new Date(timeStamp));\n return sdfDay.format(netDate);\n } catch (Exception e) {\n AppDataLog.TPostExep(e);\n return null;\n }\n }", "public static Date FormatStringToDate(String dateString) {\r\n SimpleDateFormat dF = new SimpleDateFormat(\"dd/mm/yyyy HH:mm:ss\");\r\n Date date = null;\r\n try {\r\n date = dF.parse(dateString);\r\n } catch (ParseException e) {\r\n e.printStackTrace();\r\n }\r\n return date;\r\n }", "private void tryRoundtripSqlDate(String dt) throws JiBXException {\n java.sql.Date date1 = Utility.deserializeSqlDate(dt);\n int split = dt.indexOf('-', 1);\n java.sql.Date date2 = java.sql.Date.valueOf(dt.substring(0, split+6));\n assertEquals(date1, date2);\n String result = Utility.serializeSqlDate(date1);\n assertEquals(dt.substring(0, result.length()), result);\n }", "public String getDateTimeFormated(Context context){\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\"\n , context.getResources().getConfiguration().locale);\n sdf.setTimeZone(TimeZone.getDefault());\n return sdf.format(new Date(mDateTime));\n //setting the dateformat to dd/MM/yyyy HH:mm:ss which is how the date is displayed when a dream is saved\n }", "private String convertToDateFormat(String inputDateString) throws DateTimeParseException {\n\t\treturn inputDateString;\n\t}", "public static String fromDate(String s){\n \t\t\n \t\tString[] date = s.split(\"T\");\n \t\tString time = date[1].substring(0,5);\n \t\tString[] dates = date[0].split(\"-\"); \n \t\tString month = dates[1];\n \t\tString day = dates[2];\n \t\t\n \t\treturn day + \"/\" + month + \", kl: \" + time;\n \t}", "@Test\n public void dateUtilTest() {\n String orgStr = \"2016-01-05 10:00:17\";\n Date orgDate = new Date(1451959217000L);\n Assert.assertTrue(DateStrValueConvert.dateFormat(orgDate).equals(orgStr));\n Assert.assertTrue(DateStrValueConvert.dateConvert(orgStr).equals(orgDate));\n }", "private String formatDate(String dateObject) {\n SimpleDateFormat input = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"); // format kita \"HARUS SAMA TIDAK BOLEH FORMATNYA BEDA BAHKAN 1 CHAR PUN\n SimpleDateFormat output= new SimpleDateFormat(\"dd-MM-yyyy\");\n Date tanggal = null;\n try {\n tanggal = input.parse(dateObject);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return output.format(tanggal);\n\n }", "public static String formatDate(String dateValue) {\n Date uploadDateTime = null;\n try {\n uploadDateTime = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.US).parse(dateValue);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return new SimpleDateFormat(\"dd/MM/yyyy HH:mm\", Locale.US).format(uploadDateTime);\n }", "public String parseTimeToTimeDate(String time) {\n Date date = null;\n try {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\", Locale.getDefault());\n String todaysDate = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.getDefault()).format(new Date());\n date = simpleDateFormat.parse(todaysDate + \" \" + time);\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm dd,MMM\", Locale.getDefault());\n //sdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n return sdf.format(date);\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return null;\n }", "private static Date getFormattedDate(String date){\n\t\tString dateStr = null;\n\t\tif(date.length()<11){\n\t\t\tdateStr = date+\" 00:00:00.0\";\n\t\t}else{\n\t\t\tdateStr = date;\n\t\t}\n\t\tDate formattedDate = null;\n\t\ttry {\n\t\t\tformattedDate = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.S\").parse(dateStr);\n\t\t} catch (ParseException e) {\n\t\t\tCommonUtilities.createErrorLogFile(e);\n\t\t}\n\t\treturn formattedDate;\n\n\t}", "public static String formartDateMpesa(String mDate) {\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tSimpleDateFormat outSDF = new SimpleDateFormat(\"dd-MM-yyyy\");\n\n\t\t\t String outDate = \"\";\n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "public static String ConvertToStandardtime(Date date) {\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\tformat.setLenient(false);\r\n\t\tif (date == null)\r\n\t\t\treturn \"\";\r\n\t\tString strDate = format.format(date);\r\n\t\treturn strDate;\r\n\t}", "private String dateFormat(String date) {\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", Locale.ENGLISH);\n df.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n Date serverDate = null;\n String formattedDate = null;\n try {\n serverDate = df.parse(date);\n SimpleDateFormat outputFormat = new SimpleDateFormat(\"MMM dd yyyy, hh:mm\");\n\n outputFormat.setTimeZone(TimeZone.getDefault());\n\n formattedDate = outputFormat.format(serverDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return formattedDate;\n }", "public static Date strToTime(String strDate)\r\n/* 135: */ {\r\n/* 136:192 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd HH:mm:ss\");\r\n/* 137:193 */ ParsePosition pos = new ParsePosition(0);\r\n/* 138:194 */ Date strtodate = formatter.parse(strDate, pos);\r\n/* 139:195 */ return strtodate;\r\n/* 140: */ }", "public static Date GetUTCdatetimeAsDate()\n {\n return StringDateToDate(GetUTCdatetimeAsString());\n }", "public static Date convert(String timeString){\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MMM/yyyy:HH:mm:ss ZZZZ\");\n // set default timezone to be runtime independent\n TimeZone.setDefault(TimeZone.getTimeZone(\"UTC\"));\n try {\n return dateFormat.parse(timeString);\n } catch (ParseException e) {\n LOGGER.log(Level.SEVERE, \"Date cannot be parsed: \"+ timeString, e);\n return null;\n }\n }", "private String getDate(String str) {\n String[] arr = str.split(\"T\");\n DateFormat formatter = new SimpleDateFormat(\"yyyy-mm-d\", Locale.US);\n Date date = null;\n try {\n date = formatter.parse(arr[0]);\n } catch (java.text.ParseException e) {\n Log.e(LOG_TAG, \"Could not parse date\", e);\n }\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"MMM d, yyyy\", Locale.US);\n\n return dateFormatter.format(date);\n }", "public static Date stringToTime(String time)\r\n/* 43: */ {\r\n/* 44: */ try\r\n/* 45: */ {\r\n/* 46: 54 */ return sdfTime.parse(time);\r\n/* 47: */ }\r\n/* 48: */ catch (ParseException e)\r\n/* 49: */ {\r\n/* 50: 56 */ log.fatal(\"DateUtil.stringToTime抛出异常\", e);\r\n/* 51: */ }\r\n/* 52: 57 */ return new Date();\r\n/* 53: */ }", "public static Date formatDateFromDateTimePickerView(String date) {\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy hh:mm:ss\");\r\n try {\r\n return formatter.parse(date);\r\n } catch (ParseException e) {\r\n play.Logger.debug(\"At FormatUtils.formatDateFromDateTimePickerView -> Tidak dapat melakukan parsing tanggal!\");\r\n }\r\n return null;\r\n }", "public String formatDateAndTime(String date){\n\n return dateTimeFormatter.parse(date).toString();\n\n }", "@Test\n void test7(){\n\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date date = new Date();\n String dString = formatter.format(date);\n System.out.println(\"dString=\"+dString);\n\n Date datas = java.sql.Date.valueOf(dString);\n System.out.println(\"datas=\"+datas);\n\n\n }", "public static String getDateTime(){\n String pattern = \"MM/dd/yyyy HH:mm:ss\";\n DateFormat df = new SimpleDateFormat(pattern);\n Date today = Calendar.getInstance().getTime();\n String todayAsString = df.format(today);\n return todayAsString;\n }", "public String dar_fecha(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n return dateFormat.format(date).toString();\n\n }", "public static String convertStringToSqlString(String input) throws ParseException{\r\n\t\tSimpleDateFormat fromUser = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tSimpleDateFormat myFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\r\n\t\ttry {\r\n\r\n\t\t String reformattedStr = myFormat.format(fromUser.parse(input));\r\n\t\t return reformattedStr;\r\n\t\t} catch (ParseException e) {\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t \r\n\t\t/* Date dtJava;\r\n\t\tDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n dtJava = (java.util.Date)formatter.parse(input);\r\n\t\t\r\n\t\tjava.sql.Date date = new java.sql.Date(dtJava.getTime());\r\n\t\t\r\n\t\tString dtSql = (String)date.toString();\r\n\t\t\r\n\t\treturn dtSql;*/\r\n\t}", "public static String formatDateU(java.sql.Date date){\n\t\treturn date!=null?toTheString(date):\"unknown\";\n\t}", "private Date compartiotor_update_time_package(String update_time) throws ParseException {\n\t\tDate updateDate = null; \n\t\tDateFormat format = null;\n\t\tif(StringUtils.isNotBlank(update_time)){\n\t\t\ttry {\n\t\t\t\tformat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\tupdateDate = format.parse(update_time);\n\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\tformat = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\t\t\ttry {\n\t\t\t\t\tupdateDate = format.parse(update_time);\n\t\t\t\t}catch (java.text.ParseException e2){\n\t\t\t\t\tformat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\t\tupdateDate = format.parse(update_time);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn updateDate;\n\t}", "public static java.util.Date convertToUDate(java.sql.Date sDate) {\n\t\tif (sDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.util.Date uDate = new Date(sDate.getTime());\n\t\t\treturn uDate;\n\t\t}\n\n\t}", "public Date createDate(String strDate){\n\n Date date = null;\n\n // Get time\n Calendar cal = Calendar.getInstance();\n Date currentLocalTime = cal.getTime();\n DateFormat dateformat = new SimpleDateFormat(\"HH:mm:ss\");\n String localTime = dateformat.format(currentLocalTime);\n\n // Concat strings\n String tmpDate = strDate + \" \" + localTime;\n //\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\n try {\n date = format.parse(tmpDate);\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return date;\n }", "public static java.sql.Date convertToSDate(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.sql.Date sDate = new java.sql.Date(uDate.getTime());\n\t\t\treturn sDate;\n\t\t}\n\t}", "public String toDate(Date date) {\n DateFormat df = DateFormat.getDateInstance();\r\n String fecha = df.format(date);\r\n return fecha;\r\n }", "private Date stringToSQLDate(String fecha){\n\t\t\n\t\t\n\t\tint ano=Integer.parseInt(fecha.substring(0,4));\n\t\tint mes =Integer.parseInt(fecha.substring(5,7));\n\t\tint dia =Integer.parseInt( fecha.substring(8));\n\t\t\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tDate tmp = new Date(ano-1900,mes-1,dia);\n\t\t\n\t\treturn tmp;\n\t}", "public Date getConvertedDate(String dateToBeConverted) {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yy hh:mm:ss\");\n\t\ttry{\n\t\t\tbookedDate = sdf.parse(dateToBeConverted);\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn bookedDate;\n\t}", "public static Date stringToDate(String dateAsString){\r\n try { \r\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\"); \r\n return df.parse(dateAsString);\r\n } catch (ParseException ex) {\r\n ex.printStackTrace();\r\n return null;\r\n }\r\n }", "public static String formartDate(String mDate) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"mm/dd/yyyy\");\n\t\t\t SimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-mm-dd\");\n\n\t\t\t \n\t\t\t String outDate = \"\";\n\t\t\t \n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t \n\t\t\t \n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "private String TimeConversion() {\n\n int hours, minutes, seconds, dayOfWeek, date, month, year;\n\n seconds = ((raw[27] & 0xF0) >> 4) + ((raw[28] & 0x03) << 4);\n minutes = ((raw[28] & 0xFC) >> 2);\n hours = (raw[29] & 0x1F);\n dayOfWeek = ((raw[29] & 0xE0) >> 5);\n date = (raw[30]) & 0x1F;\n month = ((raw[30] & 0xE0) >> 5) + ((raw[31] & 0x01) << 3);\n year = (((raw[31] & 0xFE) >> 1) & 255) + 2000;\n\n\n\n return hR(month) + \"/\" + hR(date) + \"/\" + year + \" \" + hR(hours) + \":\" + hR(minutes) + \":\" + hR(seconds) + \":00\";\n }", "public static Date parseDate(String date)\n {\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dt = null;\n try {\n dt = format.parse(date);\n } \n catch (ParseException ex) \n {\n System.out.println(\"Unexpected error during the conversion - \" + ex);\n }\n return dt;\n }", "public static String url2date(String url) {\n StringBuffer date = new StringBuffer();\n try {\n date.append(url.substring(0, 4));\n date.append(\"-\");\n date.append(url.substring(5, 7));\n date.append(\"-\");\n date.append(url.substring(7, 9));\n date.append(\" \");\n\n date.append(url.substring(10, 12));\n date.append(\":\");\n date.append(url.substring(13, 15));\n\n } catch (Exception e) {\n\n }\n return date.toString();\n }", "public static Date getDateFromString(String date) {\r\n Date newdate = null;\r\n SimpleDateFormat dateformat = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\r\n try {\r\n newdate = dateformat.parse(date);\r\n System.out.println(newdate);\r\n } catch (ParseException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return newdate;\r\n }", "private String getDateTime() {\n DateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy HH:mm\");\n Date date = new Date();\n return dateFormat.format(date);\n }", "private Date localTimeToDate(String time) {\n return new Date(Timestamp.valueOf(time.replace(\"T\", \" \").concat(\":00\")).getTime());\n }", "private String getDateTime() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\", Locale.GERMANY);\n Date date = new Date();\n return dateFormat.format(date);\n }", "public static String formartDateforGraph(String mDate) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tSimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n\t\t\t \n\t\t\t String outDate = \"\";\n\t\t\t \n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t \n\t\t\t \n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "String dateToString(TimeConverter converter, AbsoluteDate date);", "public Timestamp changeDateFormat(String inputDate) {\n String input = inputDate;\n\n String INPUT_FORMAT = \"yyyy-MM-dd\";\n String OUTPUT_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\";\n\n DateFormat inputFormatter = new SimpleDateFormat(INPUT_FORMAT);\n DateFormat outputFormatter = new SimpleDateFormat(OUTPUT_FORMAT);\n\n java.util.Date date = null;\n String output = null;\n Timestamp ts = null;\n try {\n date = inputFormatter.parse(input);\n\n output = outputFormatter.format(date);\n\n ts = Timestamp.valueOf(output);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return ts;\n }", "public static String getDateTime(String publishtime) {\n if (publishtime != null && !publishtime.equals(\"\")) {\n SimpleDateFormat data = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n return data.format(new Date(Long.parseLong(publishtime) * 1000L));\n }\n return \"\";\n }", "public Date formatForDate(String data) throws ParseException{\n //definindo a forma da Data Recebida\n DateFormat formatUS = new SimpleDateFormat(\"dd-MM-yyyy\");\n return formatUS.parse(data);\n }", "private String formatDate(Date date) {\n String resultDate;\n SimpleDateFormat dateFormat;\n dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n resultDate = dateFormat.format(date);\n return resultDate;\n }", "public String changeDateTimeFormat(String dateStr) {\n String inputPattern = \"MMM-dd-yyyy hh:mm a\";\n String outputPattern = \"MMMM dd, yyyy hh:mm a\";\n SimpleDateFormat inputFormat = new SimpleDateFormat(inputPattern);\n SimpleDateFormat outputFormat = new SimpleDateFormat(outputPattern);\n\n Date date = null;\n String str = null;\n\n try {\n date = inputFormat.parse(dateStr);\n str = outputFormat.format(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return str;\n\n }", "public String getDateString(){\n return Utilities.dateToString(date);\n }", "private Date stringToDate(String datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDate d = df.parse(datum);\r\n\t\t\treturn d;\r\n\t\t}\r\n\t\tcatch (ParseException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public String formatoCortoDeFecha(Date fecha){\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n return format.format(fecha);\n }", "public static String convertUtilToSqlDate(String date) throws ParseException\r\n\t{\r\n\t\tjava.util.Date initDate = new SimpleDateFormat(\"dd-mm-yyyy\").parse(date);\r\n\t SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-mm-dd\");\r\n\t return formatter.format(initDate);\r\n\t}", "public String convertDateToString(Date date) {\n\t\tString dateTime = SDF.format(date);\n\t\treturn dateTime;\t\n\t}", "public static String getDateTime() {\n\t\tString sDateTime=\"\";\n\t\ttry {\n\t\t\tSimpleDateFormat sdfDate = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t\tSimpleDateFormat sdfTime = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\tDate now = new Date();\n\t\t\tString strDate = sdfDate.format(now);\n\t\t\tString strTime = sdfTime.format(now);\n\t\t\tstrTime = strTime.replace(\":\", \"-\");\n\t\t\tsDateTime = \"D\" + strDate + \"_T\" + strTime;\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t\treturn sDateTime;\n\t}", "public static String dateConv(int date) {\n\t\tDate mills = new Date(date*1000L); \n\t\tString pattern = \"dd-MM-yyyy\";\n\t\tSimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n\t\tsimpleDateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT+1\"));\n\t\tString formattedDate = simpleDateFormat.format(mills);\n\t\treturn formattedDate;\n\t}", "public String getDateCreationLibelle() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm:ss\");\n\t\treturn this.dateCreation.format(format);\n\t}", "public LocalDateTime toLocalDateTime(String value) throws DateTimeException {\n String[] valueComponents = value.split(\" \");\n String dateWithStartTime = valueComponents[0] + \" \" + valueComponents[1];\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HHmm\");\n return LocalDateTime.parse(dateWithStartTime, formatter);\n }" ]
[ "0.6882001", "0.6457713", "0.63499933", "0.6278048", "0.6169994", "0.6167355", "0.61659664", "0.61032295", "0.61019427", "0.60310596", "0.60223466", "0.5950323", "0.5945115", "0.59069026", "0.59006345", "0.5898275", "0.5888609", "0.5884131", "0.5877605", "0.5853823", "0.58527553", "0.5852457", "0.58386177", "0.5836177", "0.5816026", "0.579761", "0.57859105", "0.57859105", "0.5754173", "0.5750908", "0.5734657", "0.5728491", "0.57278085", "0.5723562", "0.5708522", "0.5706157", "0.5697793", "0.56740844", "0.5672712", "0.5668401", "0.5665869", "0.56369424", "0.56352484", "0.5631681", "0.56313545", "0.56313217", "0.5628304", "0.56262344", "0.5625835", "0.55886847", "0.5582482", "0.5567419", "0.5565471", "0.5563167", "0.5559209", "0.555588", "0.5550719", "0.5545471", "0.5526296", "0.55106103", "0.550991", "0.55089474", "0.55030304", "0.5498567", "0.54857975", "0.5471018", "0.547051", "0.5462659", "0.54620147", "0.54586565", "0.5456532", "0.5446704", "0.54342556", "0.5412239", "0.5412224", "0.5405419", "0.5398466", "0.53901374", "0.5380953", "0.53751546", "0.536887", "0.53678", "0.53651124", "0.5357262", "0.53399134", "0.53196174", "0.531212", "0.5310745", "0.5307856", "0.53016186", "0.5296893", "0.5293737", "0.52896965", "0.52806544", "0.5280607", "0.52784127", "0.5275549", "0.5260377", "0.52530587", "0.5252402" ]
0.6260821
4
convertToTimestamp Chuyen String dinh dang "dd/MM/yyyy HH:mm:ss" thanh ngay gio kieu java.sql.Timestamp
public static java.sql.Timestamp convertToTimestamp(String timeStampInString) { if (timeStampInString == null) { return null; } else { SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); java.util.Date uDate = null; java.sql.Timestamp timeStamp = null; try { uDate = dateFormat.parse(timeStampInString); timeStamp = new Timestamp(uDate.getTime()); } catch (ParseException e) { return null; } return timeStamp; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic java.sql.Timestamp convert(String s) throws ParseException {\n\t\t\ts = supportHtml5DateTimePattern(s);\n\t\t\t\n\t\t\tif (timeStampWithoutSecPatternLen == s.length()) {\n\t\t\t\ts = s + \":00\";\n\t\t\t}\n\t\t\tif (s.length() > dateLen) {\n\t\t\t\treturn java.sql.Timestamp.valueOf(s);\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn new java.sql.Timestamp(getFormat(datePattern).parse(s).getTime());\n\t\t\t}\n\t\t}", "@TypeConverter\n public static String toTimestamp(Date date) {\n if (date != null) {\n return df.format(date);\n }\n return null;\n }", "private Timestamp getTimestamp(String timestampString) {\r\n Timestamp timestamp;\r\n try {\r\n timestamp = SpringContext.getBean(DateTimeService.class).convertToSqlTimestamp(timestampString);\r\n }\r\n catch (ParseException e) {\r\n assertNull(\"Timestamp String was not parseable\", e);\r\n return null;\r\n }\r\n return timestamp;\r\n }", "public static java.sql.Timestamp convertToTimestamp(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.sql.Timestamp timeStamp = new Timestamp(uDate.getTime());\n\t\t\treturn timeStamp;\n\t\t}\n\n\t}", "public static java.sql.Date convertToTimestamp(Timestamp convert) {\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.setTimeInMillis(convert.getTime());\n\t\tjava.sql.Date d = new java.sql.Date(c.getTimeInMillis());\n\t\treturn d;\n\t}", "private java.sql.Timestamp convert(java.util.Date date){\r\n \tjava.sql.Timestamp result = null;\r\n \tif(date!=null){\r\n \t\tresult = new java.sql.Timestamp(date.getTime()); \t\t\r\n \t}\r\n \treturn result;\r\n }", "public static Timestamp changeStrToDate(String strInput)\n\t{\n\t\tSimpleDateFormat sdfmt1 = new SimpleDateFormat(\"MM/dd/yyyy hh:mm a\");\n\t\tSimpleDateFormat sdfmt2= new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\tjava.util.Date dDate = new Date();\n\t\ttry {\n\t\t\tdDate = sdfmt1.parse( strInput );\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString strOutput = sdfmt2.format( dDate );\n\t\tDateTimeFormatter formattert = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm\");\n\t\tLocalDateTime ldt = LocalDateTime.parse(strOutput,formattert);\n\t\tTimestamp dt = Timestamp.valueOf(ldt);\n\t\t//System.out.println(dDate + \" \" + strOutput + \" \" + dt);\n\t\t//System.out.println(dt);\n\t\treturn dt;\n\n\t}", "@Override\n\tpublic Timestamp convert(Date source) {\n\t\treturn new Timestamp(source.getTime());\n\t}", "protected static java.sql.Timestamp getConvertedTimestamp(java.util.Date date) {\n\t\tif (date == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn new java.sql.Timestamp(date.getTime());\n\t\t}\n\t}", "java.lang.String getTimestamp();", "java.lang.String getTimestamp();", "public static Timestamp toTimestamp(Object obj) {\n return toTimestamp(obj, (String) null, (TimeZone) null);\n }", "public Timestamp changeDateFormat(String inputDate) {\n String input = inputDate;\n\n String INPUT_FORMAT = \"yyyy-MM-dd\";\n String OUTPUT_FORMAT = \"yyyy-MM-dd HH:mm:ss.SSS\";\n\n DateFormat inputFormatter = new SimpleDateFormat(INPUT_FORMAT);\n DateFormat outputFormatter = new SimpleDateFormat(OUTPUT_FORMAT);\n\n java.util.Date date = null;\n String output = null;\n Timestamp ts = null;\n try {\n date = inputFormatter.parse(input);\n\n output = outputFormatter.format(date);\n\n ts = Timestamp.valueOf(output);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return ts;\n }", "public String getDateTimeInsertString(java.sql.Timestamp aTimestamp){\r\n return \"'\" + DBUtil.getDBDateTimeString(aTimestamp) + \"'\";\r\n }", "Timestamp toTimestamp( Date date )\n {\n return date != null ? new Timestamp( date.getTime() ) : null;\n }", "public static void main(String[] args) throws ParseException {\n\t Long t = Long.parseLong(\"1540452984\");\r\n Timestamp ts = new Timestamp(1540453766);\r\n DateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n //方法一:优势在于可以灵活的设置字符串的形式。\r\n String tsStr = sdf.format(ts);// 2017-01-15 21:17:04\r\n System.out.println(tsStr);\r\n\t}", "private final LocalDateTime get_TIMESTAMP(int column) {\n String timeString = dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n 26, charset_[column - 1]).toString();\n return LocalDateTime.parse(timeString, DRDAConstants.DB2_TIMESTAMP_FORMAT);\n// return DateTime.timestampBytesToTimestamp(\n// dataBuffer_,\n// columnDataPosition_[column - 1],\n// cal,\n// charset_[column - 1],\n// agent_.connection_.serverSupportsTimestampNanoseconds());\n }", "public static Date formaterStampTilDato(Timestamp timestamp) {\r\n\t\tDate date = new Date(timestamp.getTime());\r\n\t\treturn date;\r\n\t}", "public static long convertToTimestamp(String timestamp) {\n return LocalDateTime.parse(timestamp, FORMATTER).toInstant(ZoneOffset.UTC).toEpochMilli();\n }", "public static String convertTimestampToReadable(long timestamp) {\n java.text.DateFormat formatter = new SimpleDateFormat(\"dd.MM.yy HH:mm\");\n formatter.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n String dateFormatted = formatter.format(timestamp);\n\n return dateFormatted;\n }", "private Timestamp getTimestampFromHTML(String stringDate) {\n Timestamp result = null;\n SimpleDateFormat format = new SimpleDateFormat();\n format.applyPattern(\"yyyy-MM-dd\");\n try {\n Date docDate = format.parse(stringDate);\n result = new java.sql.Timestamp(docDate.getTime());\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return result;\n }", "private static Timestamp toTimestamp(Instant instant) {\n return createTimestamp(instant.getEpochSecond(), instant.getNano());\n }", "public String getSQLTimestampFormat();", "public static Timestamp formaterDatoTilStamp(String dato, String klokkeslett) throws ParseException {\r\n\t\tDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy HH:mm\");\r\n\t\tjava.util.Date startDato = df.parse(dato + \" \" + klokkeslett);\r\n\t\tjava.sql.Timestamp sq = new java.sql.Timestamp(startDato.getTime());\r\n\t\treturn sq;\r\n\t}", "String getTimestamp();", "String getTimestamp();", "public static String formatDatetime(java.sql.Timestamp timeStamp) {\n\t\tif (timeStamp == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\n\t\t\t\t\t\"dd/MM/yyyy HH:mm:ss\");\n\t\t\treturn dateFormat.format(timeStamp);\n\t\t}\n\t}", "public static String formatDate(java.sql.Timestamp timestamp) {\n if (timestamp == null)\n return \"\";\n DateFormat df = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.FULL);\n java.util.Date date = timestamp;\n return df.format(date);\n }", "Date getTimestamp();", "public String getTimestampString() throws SQLException {\n\t\tloadFromDB();\n\t\treturn DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM)\n\t\t\t\t\t.format(rev_timestamp);\n\t}", "private static Date parseTimeStamp(String timestamp) {\n if (timestamp == null) {\n return null;\n }\n\n try {\n return SIMPLE_DATE_FORMAT.parse(timestamp);\n } catch (ParseException dateTimeParseException) {\n return null;\n }\n }", "public static String timestampTilStrengForKalender(Timestamp timestamp) {\r\n\t\tString dato = timestamp.toString();\r\n\t\tif (dato == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tString[] datoOgKlokke = dato.split(\" \");\r\n\t\tString[] fiksdatoen = datoOgKlokke[0].split(\"-\");\r\n\t\tString str = String.join(\"-\", fiksdatoen);\r\n\t\tString finalDato = str + \"T\" + datoOgKlokke[1];\r\n\t\treturn finalDato.substring(0, 16) + \":00\";\r\n\t}", "@Override\n\t\tpublic java.sql.Date convert(String s) throws ParseException {\n\t\t\ts = supportHtml5DateTimePattern(s);\n\t\t\t\n\t\t\tif (timeStampWithoutSecPatternLen == s.length()) {\n\t\t\t\ts = s + \":00\";\n\t\t\t}\n\t\t\tif (s.length() > dateLen) {\t// if (x < timeStampLen) 改用 datePattern 转换,更智能\n\t\t\t\t// return new java.sql.Date(java.sql.Timestamp.valueOf(s).getTime());\t// error under jdk 64bit(maybe)\n\t\t\t\treturn new java.sql.Date(getFormat(timeStampPattern).parse(s).getTime());\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// return new java.sql.Date(java.sql.Date.valueOf(s).getTime());\t// error under jdk 64bit\n\t\t\t\treturn new java.sql.Date(getFormat(datePattern).parse(s).getTime());\n\t\t\t}\n\t\t}", "public static String calcDateStringFromTimestamp(String s, long timestamp) {\n Calendar cal = Calendar.getInstance(Locale.ENGLISH);\n cal.setTimeInMillis(timestamp);\n String date = DateFormat.format(s, cal).toString();\n return date;\n }", "public static Timestamp toTimestamp(Object obj, String pattern, TimeZone timeZone) {\n if (obj == null) {\n return null;\n } else if (obj instanceof Timestamp) {\n final Timestamp paramTimestamp = (Timestamp) obj;\n if (Timestamp.class.equals(paramTimestamp.getClass())) { // pure time-stamp\n return paramTimestamp;\n } else { // sub class\n // because the time-stamp type is not final class.\n return new Timestamp(paramTimestamp.getTime());\n }\n } else if (obj instanceof Date) {\n return new Timestamp(((Date) obj).getTime());\n } else if (obj instanceof String) {\n return toTimestampFromString((String) obj, pattern, timeZone);\n } else if (obj instanceof Calendar) {\n return new Timestamp(((Calendar) obj).getTime().getTime());\n } else if (obj instanceof byte[]) {\n return toTimestamp(toSerializable((byte[]) obj)); // recursive\n } else if (obj instanceof Long) {\n return new Timestamp((Long) obj);\n } else {\n return toTimestampFromString(obj.toString(), pattern, timeZone);\n }\n }", "static public String getTimeStamp(long timestamp) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy.MM.dd-HH:mm:ss\", Locale.US);\n return sdf.format(new Date(timestamp));\n }", "public static Date parseTimestamp(String timestamp) {\n if (StringUtils.isNullOrWhitespace(timestamp) || timestamp.equals(\"null\")) {\n return null;\n }\n\n try {\n return sDateFormatCache.get(TIMESTAMP_FORMAT, new Callable<DateFormat>() {\n @Override\n public DateFormat call() throws Exception {\n return new SimpleDateFormat(TIMESTAMP_FORMAT);\n }\n }).parse(timestamp);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n }", "public static Timestamp toTimestamp(Object obj, String pattern) {\n return toTimestamp(obj, pattern, (TimeZone) null);\n }", "public static java.util.Date convertToUDate(java.sql.Timestamp timeStamp) {\n\t\tif (timeStamp == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tjava.util.Date uDate = new Date(timeStamp.getTime());\n\t\t\treturn uDate;\n\t\t}\n\t}", "public static final Function<Timestamp,Date> timestampToDate() {\r\n return TIMESTAMP_TO_DATE;\r\n }", "@Override\n public Timestamp convertField(final Object field, final Optional<String> pattern, final String name) {\n if (field == null) {\n return null;\n }\n if (field instanceof Timestamp) {\n return (Timestamp) field;\n }\n if (field instanceof Date) {\n final Date date = (Date) field;\n return new Timestamp(date.getTime());\n }\n if (field instanceof Number) {\n final Number number = (Number) field;\n return new Timestamp(number.longValue());\n }\n if (field instanceof String) {\n final String string = field.toString().trim();\n if (string.isEmpty()) {\n return null;\n }\n\n if (pattern.isPresent()) {\n final DateTimeFormatter formatter = DateTimeFormatter.ofPattern(pattern.get());\n try {\n final LocalDateTime localDateTime = LocalDateTime.parse(string, formatter);\n return Timestamp.valueOf(localDateTime);\n } catch (final DateTimeParseException e) {\n final String message = String.format(\"Convert Field Name [%s] Value [%s] to Timestamp LocalDateTime parsing failed: %s\", name, field, e.getMessage());\n throw new IllegalTypeConversionException(message);\n }\n } else {\n try {\n final long number = Long.parseLong(string);\n return new Timestamp(number);\n } catch (final NumberFormatException e) {\n final String message = String.format(\"Convert Field Name [%s] Value [%s] to Timestamp Long parsing failed: %s\", name, field, e.getMessage());\n throw new IllegalTypeConversionException(message);\n }\n }\n }\n\n final String message = String.format(\"Convert Field Name [%s] Value [%s] Class [%s] to Timestamp not supported\", name, field, field.getClass());\n throw new IllegalTypeConversionException(message);\n }", "public static String timestampOf(Date date) {\n if (date == null) {\n return null;\n }\n\n return formatDate(date, TIMESTAMP_FORMAT);\n }", "public Timestamp getTimestamp(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getTimestamp\", columnName);\n return get(columnName).getTimestamp();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "protected long readTimestampFromString(String value) {\r\n\t\t return Long.parseLong(value);\r\n\t\t }", "public Timestamp getTimestamp(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getTimestamp\", columnIndex);\n return get(columnIndex).getTimestamp();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public static org.opencds.vmr.v1_0.schema.TS dateInternal2TS(java.util.Date pDate) {\n\n\t\tString _METHODNAME = \"tSInternal2TS(): \";\n\n\t\tif (pDate == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString errStr = null;\n\t\tjava.util.Date javaTime = pDate;\n\t\tString formatTemplate = \"yyyyMMddHHmmss.SSSZZZZZ\";\n\n\t\t// Format java.util.Date and return schema TS if successful\n\t\torg.opencds.vmr.v1_0.schema.TS lTS = new org.opencds.vmr.v1_0.schema.TS();\n\t\ttry {\n\t\t\t// format and set schema TS object\n\t\t\tlTS.setValue(DateUtility.getInstance().getDateAsString(javaTime, formatTemplate));\n\t\t\treturn lTS;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\terrStr = _METHODNAME + \"java.util.Date \\\"\" + javaTime + \"\\\" threw exception trying to format as: \" + formatTemplate;\n\t\t\tthrow new RuntimeException(errStr + \": \" + e.getMessage() );\n\t\t}\n\t}", "public long DateStringToUnixTimeStamp(String sDateTime) {\n DateFormat formatter;\n Date date = null;\n long unixtime = 0;\n formatter = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\n try {\n date = formatter.parse(sDateTime);\n unixtime = date.getTime() / 1000L;\n } catch (Exception ex) {\n ex.printStackTrace();\n unixtime = 0;\n }\n\n return unixtime;\n }", "public Timestamp getDateTrx() \n{\nreturn (Timestamp)get_Value(\"DateTrx\");\n}", "public static String getNowAsTimestamp() {\r\n\r\n DateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT_PATTERN);\r\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\r\n return dateFormat.format(new Date()).replaceAll(\"\\\\+0000\", \"Z\").replaceAll(\"([+-][0-9]{2}):([0-9]{2})\", \"$1$2\");\r\n }", "@Override\n\tpublic String getTimestamp()\n\t{\n\t\treturn new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss.SSS\").format(new Date());\n\t}", "public static String timestamp(){\n\t\tDate date = new Date();\n\t\tDateFormat hourdateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss \");\n\t\treturn hourdateFormat.format(date);\n\t}", "public java.sql.Timestamp getTimestamp(int columnIndex) throws SQLException\n {\n return m_rs.getTimestamp(columnIndex);\n }", "private static DateFormat getTimestampFormat(ConfigurationObject config) {\r\n // Get timestamp format to be used in the email\r\n String timestampFormatStr = Helper.getPropertyValue(config, TIMESTAMP_FORMAT_KEY, false, false);\r\n\r\n try {\r\n return new SimpleDateFormat((timestampFormatStr == null) ? DEFAULT_TIME_FORMAT : timestampFormatStr);\r\n } catch (IllegalArgumentException e) {\r\n throw new LateDeliverablesTrackerConfigurationException(\"Invaid timestamp format value.\", e);\r\n }\r\n }", "public static String getTimestamp() {\n\t\tCalendar cal = Calendar.getInstance();\n\t\t//define the format of time stamp\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\treturn sdf.format(cal.getTime());\n\n\t}", "private TimestampUtils(){}", "String getTimestampFunction();", "@Test void testShortTimestampLiteral() {\n sql(\"select timestamp '1969-07-20'\")\n .ok(\"SELECT TIMESTAMP '1969-07-20 00:00:00'\");\n // PostgreSQL allows the following. We should too.\n sql(\"select ^timestamp '1969-07-20 1:2'^\")\n .fails(\"Illegal TIMESTAMP literal '1969-07-20 1:2': not in format \"\n + \"'yyyy-MM-dd HH:mm:ss'\"); // PostgreSQL gives 1969-07-20 01:02:00\n sql(\"select ^timestamp '1969-07-20:23:'^\")\n .fails(\"Illegal TIMESTAMP literal '1969-07-20:23:': not in format \"\n + \"'yyyy-MM-dd HH:mm:ss'\"); // PostgreSQL gives 1969-07-20 23:00:00\n }", "public void testDateTimeConverters() throws Exception {\n long currentTime = System.currentTimeMillis();\n java.util.Date utilDate = new java.util.Date(currentTime);\n assertConversion(\"DateToLong\", new DateTimeConverters.DateToLong(), utilDate, currentTime);\n assertConversion(\"DateToSqlDate\", new DateTimeConverters.DateToSqlDate(), utilDate, new java.sql.Date(currentTime));\n assertConversion(\"DateToString\", new DateTimeConverters.DateToString(), utilDate, utilDate.toString());\n //assertConversion(\"StringToDate\", new DateTimeConverters.StringToDate(), utilDate.toString(), utilDate);\n assertConversion(\"DateToTimestamp\", new DateTimeConverters.DateToTimestamp(), utilDate, new java.sql.Timestamp(currentTime));\n // Source class = java.sql.Date\n java.sql.Date sqlDate = new java.sql.Date(currentTime);\n assertConversion(\"SqlDateToDate\", new DateTimeConverters.SqlDateToDate(), sqlDate, utilDate);\n assertConversion(\"SqlDateToString\", new DateTimeConverters.SqlDateToString(), sqlDate, sqlDate.toString());\n //assertConversion(\"StringToSqlDate\", new DateTimeConverters.StringToSqlDate(), sqlDate.toString(), sqlDate);\n java.sql.Timestamp timestamp = new java.sql.Timestamp(currentTime);\n assertConversion(\"SqlDateToTimestamp\", new DateTimeConverters.SqlDateToTimestamp(), sqlDate, timestamp);\n assertConversion(\"StringToTimestamp\", new DateTimeConverters.StringToTimestamp(), timestamp.toString(), timestamp);\n assertConversion(\"TimestampToDate\", new DateTimeConverters.TimestampToDate(), timestamp, utilDate);\n assertConversion(\"TimestampToSqlDate\", new DateTimeConverters.TimestampToSqlDate(), timestamp, sqlDate);\n //assertConversion(\"TimestampToString\", new DateTimeConverters.TimestampToString(), timestamp, timestamp.toString());\n }", "com.google.protobuf.Timestamp getTimestamp();", "public static Timestamp toTimestamp(Object obj, TimeZone timeZone) {\n return toTimestamp(obj, (String) null, timeZone);\n }", "@Test\n public void testHiveParquetTimestampAsInt96_basic() throws Exception {\n BaseTestQuery.testBuilder().unOrdered().sqlQuery((\"SELECT convert_from(timestamp_field, 'TIMESTAMP_IMPALA') as timestamp_field \" + \"from cp.`parquet/part1/hive_all_types.parquet` \")).baselineColumns(\"timestamp_field\").baselineValues(TestBuilder.convertToLocalDateTime(\"2013-07-06 00:01:00\")).baselineValues(((Object) (null))).go();\n }", "@Test\n public void testOdtToTs() {\n Instant now = Instant.now();\n OffsetDateTime timestamp = OffsetDateTime.ofInstant(now, ZoneOffset.UTC);\n Timestamp expResult = Timestamps.fromMillis(now.toEpochMilli());\n\n Timestamp result = ProtoUtils.odtToTs(timestamp);\n assertThat(result).isEqualTo(expResult);\n }", "@SuppressWarnings(\"deprecation\")\n\tpublic static Timestamp convertToDate(Date convert) {\n\t\tif (convert.toString().startsWith(\"00\")) convert.setYear(2014 - 1900);\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.setTime(convert);\n\t\tTimestamp t = new Timestamp(c.getTimeInMillis());\n\t\treturn t;\n\t}", "public java.sql.Timestamp getTimestamp(String attr) {\n return (java.sql.Timestamp) super.get(attr);\n }", "private static String getTimeStamp()\r\n\t{\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH.mm.ss\");\r\n\t\tDate date = new Date();\r\n\t\treturn dateFormat.format(date);\r\n\t}", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "public static String getShortDate(Timestamp timestamp) {\n if (timestamp != null) {\n long lnMilisegundos = timestamp.getTime() + (timestamp.getNanos() / 1000000);\n java.sql.Date sqlDate = new java.sql.Date(lnMilisegundos);\n return sqlDate.toString();\n }\n return \"\";\n }", "public static String getDateFromTimestamp(long timestamp) {\n\n Calendar cal = Calendar.getInstance(Locale.ENGLISH);\n cal.setTimeInMillis(timestamp * 1000);\n return DateFormat.format(\"dd-MMM-yyyy\", cal).toString();\n }", "@Override\n public Timestamp convertToDatabaseColumn(LocalDateTime attribute) {\n if (attribute == null) {\n return null;\n }\n\n Calendar calendar = Calendar.getInstance();\n calendar.clear();\n calendar.set(Calendar.YEAR, attribute.getYear());\n // avoid 0 vs 1 based months\n calendar.set(Calendar.DAY_OF_YEAR, attribute.getDayOfYear());\n calendar.set(Calendar.HOUR_OF_DAY, attribute.getHour());\n calendar.set(Calendar.MINUTE, attribute.getMinute());\n calendar.set(Calendar.SECOND, attribute.getSecond());\n calendar.set(Calendar.MILLISECOND, (int) (attribute.getNano() / 1000000L));\n return new Timestamp(calendar.getTimeInMillis());\n }", "public java.sql.Timestamp getTimestamp(String columnName) throws SQLException\n {\n return m_rs.getTimestamp(columnName);\n }", "public static java.util.Date strToUtilDate(String fecha, String hora){\n\t\tString f=strToDateFormToDB(fecha)+\" \"+hora+\":00\";\n\t\tjava.sql.Timestamp dh= java.sql.Timestamp.valueOf( f);\n\t\treturn (java.util.Date)dh;\n\t}", "public Timestamp getTimestamp(int columnIndex, Calendar calendar) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"getTimestamp(\" + columnIndex + \", calendar)\");\n }\n Timestamp x = get(columnIndex).getTimestamp();\n return DateTimeUtils.convertTimestampToCalendar(x, calendar);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public static OffsetDateTime extractTimestamp(Sentence s) throws GPSTimeException {\n\t\tNMEADateAndTime dt = extractInfo(s);\n\t\tif (dt != null) {\n\t\t\treturn convert(dt);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public static String getHoraMinutoSegundoTimestamp(Timestamp timestamp) {\r\n\t\tLong time = timestamp.getTime();\r\n\r\n\t\tString retorno = new SimpleDateFormat(\"HH:mm:ss\", new Locale(\"pt\", \"BR\")).format(new Date(time));\r\n\r\n\t\treturn retorno;\r\n\t}", "public static String formattedDate(long timestamp) {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(timestamp*1000);\n DateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy HH:mm:ss\");\n return dateFormat.format(cal.getTime());\n\n }", "@Test\n public void timestampInvalidString() throws Exception {\n String retVal = new SynapseHelper().serializeToSynapseType(MOCK_TEMP_DIR, TEST_PROJECT_ID, TEST_RECORD_ID,\n TEST_FIELD_NAME, UploadFieldTypes.TIMESTAMP, new TextNode(\"1234567890\"));\n assertNull(retVal);\n }", "private String syncTimeStamp(String timestamp){\r\n StringBuilder dateBuilder = new StringBuilder(timestamp);\r\n String time = dateBuilder.toString().split(\"T\")[1].substring(0, 8);\r\n String[] timeArr = time.split(\":\");\r\n String seconds = timeArr[2];\r\n String dd = dateBuilder.toString().split(\"T\")[0].split(\"-\")[2];\r\n String mm = dateBuilder.toString().split(\"T\")[0].split(\"-\")[1];\r\n String yyyy = dateBuilder.toString().split(\"T\")[0].split(\"-\")[0];\r\n int hour = Integer.parseInt(timeArr[0]);\r\n int minutes = Integer.parseInt(timeArr[1]);\r\n minutes += 30;\r\n hour+=5;\r\n if (minutes>=60){\r\n hour += 1;\r\n minutes -= 60;\r\n }\r\n if (hour >= 24){\r\n hour -= 24;\r\n dd = Integer.toString(Integer.parseInt(dd) + 1);\r\n if (Integer.parseInt(dd) < 10)\r\n dd = \"0\" + dd;\r\n }\r\n String minutesString;\r\n if (minutes < 10)\r\n minutesString = \"0\" + Integer.toString(minutes);\r\n else\r\n minutesString = Integer.toString(minutes);\r\n\r\n String hoursString;\r\n if (hour < 10)\r\n hoursString = \"0\" + Integer.toString(hour);\r\n else\r\n hoursString = Integer.toString(hour);\r\n String finalTime = hoursString + \":\" + minutesString + \":\" + seconds;\r\n String finalDate = dd + \"-\" + mm + \"-\" + yyyy;\r\n\r\n return (finalDate + \" \" + finalTime);\r\n }", "private java.sql.Date convert(Date datet) {\n\t\treturn null;\n\t}", "private LocalDateTime convertUTCTimestamp(Object timeStamp) {\n\t\t\treturn null;\n\t\t}", "public static Timestamp toTimestamp(LocalDate date) {\n\t\treturn Timestamp.valueOf(LocalDateTime.of(date, LocalTime.now()));\n\t}", "public Timestamp convertZDT(ZonedDateTime zdt){\n return Timestamp.valueOf(zdt.withZoneSameInstant(ZoneOffset.UTC).toLocalDateTime());\n }", "private static Date parseTimestampWithSeconds(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n if(!containsT && containsSpace){\r\n try {\r\n Date date = formatSecs.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else if(containsT && !containsSpace){\r\n try {\r\n Date date = formatSecsWT.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }", "public java.sql.Timestamp getFecha_envio();", "public static Instant convertProtoTimeStamp(Timestamp timestamp) {\n\t\treturn Instant.ofEpochSecond(timestamp.getSeconds(), timestamp.getNanos());\n\t}", "public static String formatTimeStamp(Date dateTime, String format)\n {\n SimpleDateFormat formatter = new SimpleDateFormat(format);\n return formatter.format(dateTime);\n }" ]
[ "0.70784014", "0.6651805", "0.65048575", "0.6487308", "0.64831966", "0.6407316", "0.63662905", "0.63315344", "0.62704194", "0.6261193", "0.6261193", "0.61825323", "0.6177587", "0.6114078", "0.6074305", "0.6062768", "0.6046677", "0.6032757", "0.5998816", "0.5992103", "0.5942191", "0.5920112", "0.5912173", "0.58902466", "0.587584", "0.587584", "0.5865895", "0.5848153", "0.58474654", "0.5783083", "0.5746066", "0.57426566", "0.57011724", "0.56871295", "0.5633179", "0.5632721", "0.5611969", "0.5601691", "0.5540115", "0.55328745", "0.552701", "0.55161655", "0.55153304", "0.5505137", "0.5478824", "0.54533696", "0.5452337", "0.54396486", "0.5436567", "0.5418308", "0.54139704", "0.54078597", "0.5401859", "0.5383454", "0.53498197", "0.5346265", "0.5335889", "0.5328192", "0.53115654", "0.53096944", "0.5300024", "0.52935827", "0.5292133", "0.5291831", "0.52843755", "0.52773476", "0.52773476", "0.52773476", "0.52773476", "0.52773476", "0.52773476", "0.52773476", "0.52773476", "0.52773476", "0.52773476", "0.52773476", "0.52773476", "0.52773476", "0.52773476", "0.52773476", "0.52773476", "0.5270954", "0.526858", "0.5258588", "0.52298725", "0.52266043", "0.52157485", "0.5214902", "0.52103984", "0.52060825", "0.52020025", "0.51993954", "0.5196797", "0.5195688", "0.5189514", "0.51768994", "0.51764333", "0.51547915", "0.5146231", "0.5140172" ]
0.7142041
0
formatDate Dinh dang ngay kieu java.util.Date thanh String theo mau "dd/MM/yyyy"
public static String formatDate(java.util.Date uDate) { if (uDate == null) { return null; } else { SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); return dateFormat.format(uDate); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String formatDate(Date date) {\n String resultDate;\n SimpleDateFormat dateFormat;\n dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n resultDate = dateFormat.format(date);\n return resultDate;\n }", "public String format (Date date , String dateFormat) ;", "public static String formatterDate(Date date){\n\t\tString retour = null;\n\t\tif(date != null){\n\t\t\tretour = dfr.format(date);\n\t\t}\n\t\treturn retour;\n\t}", "private String formatDate(final Date date) {\r\n\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\t\tcalendar.setTime(date);\r\n\r\n\t\tfinal String dayOfMonth = formatDayOfMonth(calendar);\r\n\t\tfinal String month = formatMonth(calendar);\r\n\t\tfinal String year = String.valueOf(calendar.get(Calendar.YEAR));\r\n\r\n\t\treturn String.format(\"%s/%s/%s\", year, month, dayOfMonth);\r\n\t}", "public String getFormatedDate(Date date) {\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/mm/yyyy\");\r\n\t\treturn sdf.format(date);\r\n\t}", "public String dar_fecha(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n return dateFormat.format(date).toString();\n\n }", "public static String dateToString(Date date){\r\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n return df.format(date);\r\n }", "public static String formatDate(String dateValue) {\n Date uploadDateTime = null;\n try {\n uploadDateTime = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.US).parse(dateValue);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return new SimpleDateFormat(\"dd/MM/yyyy HH:mm\", Locale.US).format(uploadDateTime);\n }", "public static String formatDate(Date d) {\n\t\tint month = d.getMonth() + 1;\n\t\tint dayOfMonth = d.getDate();\n\t\tint year = d.getYear() + 1900;\n\t\tString y = \"\" + year;\n\t\tString m = \"\" + month;\n\t\tString dom = \"\" + dayOfMonth;\n\t\tif (month < 10) {\n\t\t\tm = \"0\" + m;\n\t\t}\n\t\tif (dayOfMonth < 10) {\n\t\t\tdom = \"0\" + dom;\n\t\t}\n\t\treturn m + \"/\" + dom + \"/\" + y.substring(2);\n\t}", "public static String formatDate(Date date) {\n\t\tString newstring = new SimpleDateFormat(\"MM-dd-yyyy\").format(date);\n\t\treturn newstring;\n\t}", "private String formatDate(Date date){\n SimpleDateFormat format = new SimpleDateFormat(\"dd-MM-yyyy HH:mm\", Locale.getDefault());\n\n return format.format(date);\n }", "public String formatDate(Date date) {\n\t\tString formattedDate;\n\t\tif (date != null) {\n\t\t\tformattedDate = simpleDateFormat.format(date);\n\t\t\tformattedDate = formattedDate.substring(0,\n\t\t\t\t\tformattedDate.length() - 5);\n\t\t} else {\n\t\t\tformattedDate = Constants.EMPTY_STRING;\n\t\t}\n\t\treturn formattedDate;\n\t}", "public static String formatDateForQuery(java.util.Date date){\n return (new SimpleDateFormat(\"yyyy-MM-dd\")).format(date);\n }", "public java.sql.Date format(String date) {\n int i = 0;\n int dateAttr[];\n dateAttr = new int[3];\n for(String v : date.split(\"/\")) {\n dateAttr[i] = Integer.parseInt(v);\n i++;\n }\n\n GregorianCalendar gcalendar = new GregorianCalendar();\n gcalendar.set(dateAttr[2], dateAttr[0]-1, dateAttr[1]); // Year,Month,Day Of Month\n java.sql.Date sdate = new java.sql.Date(gcalendar.getTimeInMillis());\n return sdate;\n }", "public String formatDate(Date date) {\n String result = \"\";\n if (date != null) {\n result = DateUtility.simpleFormat(date, MEDIUM_DATE_FORMAT);\n }\n return result;\n }", "private static void formatDate(Date i) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yy\");\n\t\tformatter.setLenient(false);\n\t\tAnswer = formatter.format(i);\n\t}", "private String formatDate(String date)\n\t{\n\t\tif(date == null || date.isEmpty())\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString[] dateSplit = date.split(\"/\");\n\t\t\tif(dateSplit.length != 3)\n\t\t\t{\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn getMonthName(dateSplit[0]) + \" \"+ dateSplit[1]+\", \"+ dateSplit[2];\n\t\t\t}\n\t\t}\n\t}", "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }", "public static String formatDate(Date date) {\n final SimpleDateFormat formatter = new SimpleDateFormat(\"MM-dd-yyyy\");\n return formatter.format(date);\n }", "public static String formatDate(java.sql.Date date){\n\t\treturn date!=null?toTheString(date):\"\";\n\t}", "public static synchronized String formatDate(Date d) {\n return dateFormat.format(d);\n }", "public static String formatDateToString(Date dateObj, String format) {\n SimpleDateFormat formatter = new SimpleDateFormat(format);\n return formatter.format(dateObj);\n }", "private String formatDate(String dateStr) {\n try {\n SimpleDateFormat fmt = new SimpleDateFormat(Properties.DATE_FORMAT_ALL);\n Date date = fmt.parse(dateStr);\n SimpleDateFormat fmtOut = new SimpleDateFormat(Properties.DATE_FORMAT);\n return fmtOut.format(date);\n } catch (ParseException e) {\n System.out.println( Properties.K_WARNING + \" \" + e.getMessage());\n }\n return \"\";\n }", "private String formatDate(Date dateObject) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\");\n return dateFormat.format(dateObject);\n }", "private String formatDate(Date dateObject) {\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\");\r\n return dateFormat.format(dateObject);\r\n }", "public static String formatDate(Date date, String format)\n\t{\n\t\tDateFormat dateFormat = new SimpleDateFormat(format);\n\t\treturn dateFormat.format(date);\n\t}", "String formatDateCondition(Date date);", "private String formatDueDate(Date date) {\n\t\t//TODO locale formatting via ResourceLoader\n\t\t\n\t\tif(date == null) {\n\t\t\treturn getString(\"label.studentsummary.noduedate\");\n\t\t}\n\t\t\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yy\");\n \treturn df.format(date);\n\t}", "private String formatDate(String dateObject) {\n SimpleDateFormat input = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"); // format kita \"HARUS SAMA TIDAK BOLEH FORMATNYA BEDA BAHKAN 1 CHAR PUN\n SimpleDateFormat output= new SimpleDateFormat(\"dd-MM-yyyy\");\n Date tanggal = null;\n try {\n tanggal = input.parse(dateObject);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return output.format(tanggal);\n\n }", "private String formatDate(Date dateObject) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\", Locale.getDefault());\n return dateFormat.format(dateObject);\n }", "private static String convertToDDMMYYYY(Date date) {\n\t\tString returnStr = \"\";\n\t\ttry {\n\t\tDateFormat format1 = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturnStr = format1.format(date);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn returnStr;\n\t}", "public String convertDateToString(){\n\t\tString aDate = \"\";\n\t\taDate += Integer.toString(day);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(month);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(year);\n\t\treturn aDate;\n\t}", "private String formatDate (Date date) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"E, dd MMM yyyy HH:mm:ss\", Locale.ENGLISH);\n return sdf.format(date);\n }", "private static void formatDate (XmlDoc.Element date) throws Throwable {\n\t\tString in = date.value();\n\t\tString out = DateUtil.convertDateString(in, \"dd-MMM-yyyy\", \"yyyy-MM-dd\");\n\t\tdate.setValue(out);\n\t}", "public static String formatDate(Date date) {\n return DateFormat.getDateFormat(BaracusApplicationContext.getContext()).format(date);\n }", "public String dateFormatter(String fromDate) {\n\t\tString newDateString=\"\";\n\t\ttry {\n\t\t\tfinal String oldFormat = \"yyyy/MM/dd\";\n\t\t\tfinal String newFormat = \"yyyy-MM-dd\";\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(oldFormat);\n\t\t\tDate d = sdf.parse(fromDate);\n\t\t\tsdf.applyPattern(newFormat);\n\t\t\tnewDateString = sdf.format(d);\n\t\t} catch(Exception exp) {\n\t\t\tthrow ExceptionUtil.getYFSException(ExceptionLiterals.ERRORCODE_INVALID_DATE, exp);\n\t\t}\n\t\treturn newDateString;\n\t}", "public String formatDate(Date date, String format) {\n return this.convertDateToString(date, format);\n }", "public static String formatDate(String strDate) {\n return formatDate(strDate, false);\n }", "public static String formatterDateUS(Date date){\n\t\tString retour = null;\n\t\tif(date != null){\n\t\t\tretour = df.format(date);\n\t\t}\n\t\treturn retour;\n\t}", "public static String formatDate(java.sql.Date sDate) {\n\t\tif (sDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\treturn dateFormat.format(sDate);\n\t\t}\n\t}", "public static String formartDate(String mDate) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"mm/dd/yyyy\");\n\t\t\t SimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-mm-dd\");\n\n\t\t\t \n\t\t\t String outDate = \"\";\n\t\t\t \n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t \n\t\t\t \n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "protected String formatDateToString(Date date) {\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy.MM.dd HH:mm:ss\");\n\t\tString formatted = format.format(date);\n\t\treturn formatted;\n\t}", "private String stringifyDate(Date date){\n\t\tDateFormat dateFormatter = new SimpleDateFormat(\"yyyy-MM-dd\");\t\t\n\t\treturn dateFormatter.format(date);\n\t}", "public String formatDate (Date date){\r\n\t\tDateFormat df = new SimpleDateFormat(\"EEE, d MMM yyyy HH:mm:ss z\", Locale.ENGLISH);\r\n\t\treturn df.format(date);\r\n\t}", "public static String dateToStringFormat(Date date, String format){\n return new SimpleDateFormat(format).format(date);\n }", "public String convertDateToString(Date date, String format) {\n DateFormat dateFormat = new SimpleDateFormat(format);\n String dateAsString = dateFormat.format(date);\n return dateAsString;\n }", "private String dateToString(Date d){\r\n\t\tSimpleDateFormat fmt = new SimpleDateFormat(DATE_FORMAT);\r\n\t\treturn fmt.format(d);\r\n\t}", "public static String dateToString(Date date)\r\n/* 19: */ {\r\n/* 20: 23 */ return sdfDate.format(date);\r\n/* 21: */ }", "public Date formatDate( String dob )\n throws ParseException {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n dateFormat.setLenient(false);\n return dateFormat.parse(dob);\n }", "public static String formatDateTime(String date) {\n\t\tif(date == null) return \"\";\n\t\tdate = date.trim();\n\t\tif(date.equals(\"&nbsp;\")) return \"\";\n\t\tif (date.length() == 0 || date.length() != 14) return date;\n\t\tdate = date.substring(0,4) + \"/\" + date.substring(4,6) \n\t\t\t\t+ \"/\" + date.substring(6,8)\n\t\t\t\t+\" \"+date.substring(8,10)\n\t\t\t\t+\":\"+date.substring(10,12)\n\t\t\t\t+\":\"+date.substring(12,14);\n\t\treturn date;\n\t}", "public String DateFormatted(){\n\t\tSimpleDateFormat simDate = new SimpleDateFormat(\"E, dd/MM/yy hh:mm:ss a\");\n\t\treturn simDate.format(date.getTime());\n\t}", "public static String formatDate(String date){\n String formatedDate = date;\n if (!date.matches(\"[0-9]{2}-[0-9]{2}-[0-9]{4}\")){\n if (date.matches(\"[0-9]{1,2}/[0-9]{1,2}/([0-9]{2}|[0-9]{4})\"))\n formatedDate = date.replace('/', '-');\n if (date.matches(\"[0-9]{1,2}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\")){\n if (formatedDate.matches(\"[0-9]{1}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = \"0\" + formatedDate;\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{1}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = formatedDate.substring(0, 3) + \"0\" + \n formatedDate.substring(3);\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{2}.[0-9]{2}\")){\n String thisYear = String.valueOf(LocalDate.now().getYear());\n String century = thisYear.substring(0,2);\n /* If the last two digits of the date are larger than the two last digits of \n * the current date, then we can suppose that the year corresponds to the last \n * century.\n */ \n if (Integer.valueOf(formatedDate.substring(6)) > Integer.valueOf(thisYear.substring(2)))\n century = String.valueOf(Integer.valueOf(century) - 1);\n formatedDate = formatedDate.substring(0, 6) + century +\n formatedDate.substring(6); \n }\n }\n }\n return formatedDate;\n }", "public static String date_d(String sourceDate,String format) throws ParseException {\n SimpleDateFormat sdf_ = new SimpleDateFormat(\"yyyy-MM-dd\");\n SimpleDateFormat sdfNew_ = new SimpleDateFormat(format);\n return sdfNew_.format(sdf_.parse(sourceDate));\n }", "private String dateToString(Date datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\tString dat = df.format(datum);\r\n\t\treturn dat;\r\n\t}", "private String formatDate(String dateString) {\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"LLL dd, yyyy\");\n LocalDate localDate = LocalDate.parse(dateString.substring(0, 10));\n return dateTimeFormatter.format(localDate);\n }", "public static String formatDateToString(Date dateObj) {\n return formatDateToString(dateObj, DATE_FORMAT.DEFAULT);\n }", "public String convertDateToString(Date date) {\n\t\tString dateTime = SDF.format(date);\n\t\treturn dateTime;\t\n\t}", "@Method(selector = \"stringFromDate:toDate:\")\n public native String format(NSDate fromDate, NSDate toDate);", "public String formatDate(Object valor) {\r\n\t\tString aux = valor.toString();\r\n\t\tif (!aux.equalsIgnoreCase(\"&nbsp;\") && !aux.equalsIgnoreCase(\"\")) {\r\n\t\t\tString anio = aux.substring(0, 4);\r\n\t\t\tString mes = aux.substring(4, 6);\r\n\t\t\tString dia = aux.substring(6);\r\n\t\t\treturn dia + \"/\" + mes + \"/\" + anio;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn aux;\r\n\t}", "public static String formatDateU(java.sql.Date date){\n\t\treturn date!=null?toTheString(date):\"unknown\";\n\t}", "public static String formatDateToString(Date d, String formatoData) {\n\t\tfinal String OLD_FORMAT = \"yyyy-MM-dd\";\r\n\r\n\t\tString newDateString;\r\n\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(OLD_FORMAT);\r\n\t\tsdf.applyPattern(formatoData);\r\n\t\tnewDateString = sdf.format(d);\r\n\t\t\r\n\t\treturn newDateString;\r\n\t}", "public static String dateTran(String dateOri){\n\t\tDateFormat formatter1 ; \n\t\tDate date ; \n\t\tString newDate=null;\n\t\tformatter1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\ttry {\n\t\t\tdate=formatter1.parse(dateOri);\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat ( \"M/d/yy\" );\n\t\t\tnewDate = formatter.format(date);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn newDate;\n\t}", "private String getFormattedDate(String date) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(getString(R.string.received_import_date_format));\n SimpleDateFormat desiredDateFormat = new SimpleDateFormat(getString(R.string.desired_import_date_format));\n Date parsedDate;\n try {\n parsedDate = dateFormat.parse(date);\n return desiredDateFormat.format(parsedDate);\n } catch (ParseException e) {\n // Return an empty string in case of issues parsing the date string received.\n e.printStackTrace();\n return \"\";\n }\n }", "public static String getStrUtilDate(java.util.Date date){\n\t\tif(date==null)\n\t\t\treturn fechaNula();\n\t\tString strDate=\"\";\n\t\t\n\t\tif(getDia(date)<10)\n\t\t\tstrDate+=\"0\"+getDia(date);\n\t\telse\n\t\t\tstrDate+=getDia(date);\n\t\tif(getMes(date)<10)\n\t\t\tstrDate+=\"/\"+\"0\"+getMes(date);\n\t\telse\n\t\t\tstrDate+=\"/\"+getMes(date);\n\t\tstrDate+=\"/\"+getAnio(date);\n\t\treturn strDate;\n\t}", "public String formatoCortoDeFecha(Date fecha){\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n return format.format(fecha);\n }", "public String getDateString(){\n return Utilities.dateToString(date);\n }", "public static String convertToFrenshFormat(String date){\n Date d = null;\n if(String.valueOf(Locale.getDefault()).contains(\"en\")){\n d = changeDateFormat(date, \"MM/dd/yyyy\");\n Locale locale = Locale.FRENCH;\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT, locale);\n return dateFormat.format(d);\n }\n else {\n return date;\n }\n }", "public static String DateToString(Date fecha, String formato){\n if (nullToBlank(fecha).equals(\"\")) {\n return \"\";\n }\n SimpleDateFormat df = new SimpleDateFormat(formato);\n return df.format(fecha);\n }", "public static String formatDate(Date valor, String formato) {\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(formato);\r\n\t\treturn sdf.format(valor);\r\n\t}", "public String toDate(Date date) {\n DateFormat df = DateFormat.getDateInstance();\r\n String fecha = df.format(date);\r\n return fecha;\r\n }", "public static String formatDateOnly(Date date, String userId)\n\t{\t\t\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMM dd, yyyy\", getPreferredLocale(userId));\n\t\tdateFormat.setTimeZone(getPreferredTimeZone(userId));\n\t\tString rv = dateFormat.format(date);\n\t\treturn rv;\n\t}", "public static String getFormattedDateString(Date date, String format) {\n Calendar cal = Calendar.getInstance();\n TimeZone timeZone = cal.getTimeZone();\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(format);\n dateFormat.setTimeZone(timeZone);\n\n return dateFormat.format(date);\n }", "public String formatDateAndTime(String date){\n\n return dateTimeFormatter.parse(date).toString();\n\n }", "public static String dateToString(Date date, String format) {\n\t\n\t\tString result = \"\";\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(format);\n\n\t\tif (date != null) {\n\t\t\tresult = dateFormat.format(date);\n\t\t}\n\t\n\t\treturn result;\n\t}", "public static String formatDatetime(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\n\t\t\t\t\t\"dd/MM/yyyy HH:mm:ss\");\n\t\t\treturn dateFormat.format(uDate);\n\t\t}\n\t}", "public static String convertDate(String dbDate) throws ParseException //yyyy-MM-dd\n {\n String convertedDate = \"\";\n\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(dbDate);\n\n convertedDate = new SimpleDateFormat(\"MM/dd/yyyy\").format(date);\n\n return convertedDate ;\n }", "private String changeDateFormat (String oldDate) throws ParseException {\n // Source: https://stackoverflow.com/questions/3469507/how-can-i-change-the-date-format-in-java\n final String OLD_FORMAT = \"MM/dd/yyyy\";\n final String NEW_FORMAT = \"yyyyMMdd\";\n String newDateString;\n SimpleDateFormat sdf = new SimpleDateFormat(OLD_FORMAT);\n Date d = sdf.parse(oldDate);\n sdf.applyPattern(NEW_FORMAT);\n newDateString = sdf.format(d);\n return newDateString;\n }", "public String toString() { //toString method\n String startDateString2= \"\"; //Initialize\n try{\n Date date1 = new SimpleDateFormat(\"yyyyMMdd\").parse(full_Date);\n DateFormat df2 = new SimpleDateFormat(\"MMM dd, yyyy\");\n startDateString2 = df2.format(date1);\n \n return startDateString2;\n }catch(ParseException e){\n e.printStackTrace();\n }\n return startDateString2;\n \n}", "private String easyDateFormat(final String format) {\n Date today = new Date();\n SimpleDateFormat formatter = new SimpleDateFormat(format);\n String datenewformat = formatter.format(today);\n return datenewformat;\n }", "public String formatDateTime(Date date) {\n String result = \"\";\n if (date != null) {\n result = DateUtility.simpleFormat(date, MEDIUM_DATETIME_FORMAT);\n }\n return result;\n }", "public static String formatDate(Calendar date, DateFormat format) {\n\n switch (format) {\n case COMPLETE_DATE_FORMAT:\n format = DateFormat.COMPLETE_DATE_FORMAT;\n break;\n case DAY_FORMAT:\n format = DateFormat.DAY_FORMAT;\n break;\n }\n\n SimpleDateFormat dateFormatter = new SimpleDateFormat(format.getFormat(), Locale.US);\n\n return dateFormatter.format(date.getTime());\n }", "private static Date getFormattedDate(String date){\n\t\tString dateStr = null;\n\t\tif(date.length()<11){\n\t\t\tdateStr = date+\" 00:00:00.0\";\n\t\t}else{\n\t\t\tdateStr = date;\n\t\t}\n\t\tDate formattedDate = null;\n\t\ttry {\n\t\t\tformattedDate = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.S\").parse(dateStr);\n\t\t} catch (ParseException e) {\n\t\t\tCommonUtilities.createErrorLogFile(e);\n\t\t}\n\t\treturn formattedDate;\n\n\t}", "private String formatReleaseDate(String releaseDate) {\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date dateObject;\n try {\n dateObject = format.parse(releaseDate);\n }\n catch (ParseException pe) {\n Log.e(LOG_TAG, \"Error while retrieving movie information\");\n return releaseDate;\n }\n format = new SimpleDateFormat(\"LLL dd, yyyy\");\n\n return format.format(dateObject);\n }", "public static String formartDateMpesa(String mDate) {\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tSimpleDateFormat outSDF = new SimpleDateFormat(\"dd-MM-yyyy\");\n\n\t\t\t String outDate = \"\";\n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "public static String getStrDate(Date date) {\n //TODO get date\n SimpleDateFormat formatter;\n if (DateUtils.isToday(date.getTime())) {\n formatter = new SimpleDateFormat(\"HH:mm\");\n return formatter.format(date);\n }\n formatter = new SimpleDateFormat(\"MMM dd\");\n return formatter.format(date);\n }", "public String getDateTimeFormated(Context context){\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\"\n , context.getResources().getConfiguration().locale);\n sdf.setTimeZone(TimeZone.getDefault());\n return sdf.format(new Date(mDateTime));\n //setting the dateformat to dd/MM/yyyy HH:mm:ss which is how the date is displayed when a dream is saved\n }", "public Date formatDate( String date, String format )\n throws ParseException {\n SimpleDateFormat dateFormat = new SimpleDateFormat(format);\n dateFormat.setLenient(false);\n return dateFormat.parse(date);\n }", "public static String formatDate(Date date) {\n\t\tDateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM);\n\n\t\tif (dateFormat instanceof SimpleDateFormat) {\n\t\t\tSimpleDateFormat sdf = (SimpleDateFormat) dateFormat;\n\t\t\t// we want short date format but with 4 digit year\n\t\t\tsdf.applyPattern(sdf.toPattern().replaceAll(\"y+\", \"yyyy\").concat(\" z\"));\n\t\t}\n\n\t\treturn dateFormat.format(date);\n\t}", "public String toStringDateOfBirth() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\treturn dateofbirth.format(format);\n\t}", "static String localDate(String date){\n Date d = changeDateFormat(date, \"dd/MM/yyyy\");\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault());\n return dateFormat.format(d);\n }", "public static String toStringFormat_1(Date date) {\r\n\r\n\t\treturn dateToString(date, DATE_FORMAT_1);\r\n\t}", "private static String formatDate(long date) {\n Date systemDate = new java.util.Date(date * 1000L);\n // the format of your date\n SimpleDateFormat sdf = new java.text.SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n // give a timezone reference for formatting (see comment at the bottom)\n sdf.setTimeZone(java.util.TimeZone.getTimeZone(\"GMT-4\"));\n String formattedDate = sdf.format(systemDate);\n return formattedDate;\n }", "private String toDate(Date appDate) throws ParseException {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(appDate);\n\t\tString formatedDate = cal.get(Calendar.DATE) + \"/\" + (cal.get(Calendar.MONTH) + 1) + \"/\" + cal.get(Calendar.YEAR);\n\t\tSystem.out.println(\"formatedDate : \" + formatedDate); \n\t\treturn formatedDate;\n\t}", "private String formatarData(Date data)\n {\n String sDate;\n String sDia = \"\";\n String sMes = \"\";\n\n GregorianCalendar calendar = new GregorianCalendar();\n calendar.setTime(data);\n int dia = calendar.get(GregorianCalendar.DAY_OF_MONTH);\n if (dia > 0) {\n if (dia < 10) {\n sDia = \"0\";\n }\n }\n sDia += dia;\n\n int mes = calendar.get(GregorianCalendar.MONTH);\n mes = mes + 1;\n if (mes > 0) {\n if (mes < 10) {\n sMes = \"0\";\n }\n }\n sMes += mes;\n\n int ano = calendar.get(GregorianCalendar.YEAR);\n\n int hora = calendar.get(GregorianCalendar.HOUR);\n // 0 = dia\n // 1 = noite\n int amPm = calendar.get(GregorianCalendar.AM_PM);\n\n if(amPm == 1)\n {\n if(hora>0 && hora < 13)\n {\n if(hora > 11)\n hora = 0;\n else\n hora += 12;\n }\n }\n\n String sHora = \" \";\n if(hora<=9)\n {\n sHora += \"0\";\n }\n String sMin=\":\";\n int min = calendar.get(GregorianCalendar.MINUTE);\n if(min <10)\n sMin += \"0\";\n sMin += String.valueOf(min);\n sHora += String.valueOf(hora) + sMin + \":00\";\n sDate = String.valueOf(ano) + \"-\" + sMes + \"-\" + sDia + sHora;\n return sDate;\n\n }", "public static String getDbDateString(Date date){\n SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT);\n return sdf.format(date);\n }", "public static String formatDate(Date date, String userId)\n\t{\n\t\tDateFormat format = new SimpleDateFormat(\"MMM dd, yyyy hh:mm a\", getPreferredLocale(userId));\n\t\tformat.setTimeZone(getPreferredTimeZone(userId));\n\t\tString rv = format.format(date);\n\t\treturn rv;\n\t}", "public static String getFormattedDate(String dateStr, String toformat)\r\n\t{\r\n\t\tString mName = \"getFormattedDate()\";\r\n\t\tIDateFormatter dateFormatter = null;\r\n\t\tDateFormatConfig dateFormat = null;\r\n\t\tString formattedDate = null;\r\n\t\tdateFormat = getDateFormat(toformat);\r\n\t\ttry\r\n\t\t{\r\n\t\t\tdateFormatter = (IDateFormatter) ResourceLoaderUtils.createInstance(dateFormat.getFormatterClass(),\r\n\t\t\t\t\t(Object[]) null);\r\n\t\t\tformattedDate = dateFormatter.formatDate(dateStr, dateFormat.getJavaDateFormat());\r\n\t\t} catch (Exception exp)\r\n\t\t{\r\n\t\t\tlogger.cterror(\"CTBAS00112\", exp, mName);\r\n\r\n\t\t}\r\n\t\treturn formattedDate;\r\n\t}", "public static String dateOnly() throws Exception {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t// get current date time with Date()\n\t\tDate date = new Date();\n\t\t// Now format the date\n\t\tString date1 = dateFormat.format(date);\n\t\t// System.out.println(date1);\n\t\treturn date1;\n\t}", "public static final String getDate(Date aDate,String formate) {\r\n SimpleDateFormat df = null;\r\n String returnValue = \"\";\r\n\r\n if (aDate != null) {\r\n df = new SimpleDateFormat(formate);\r\n returnValue = df.format(aDate);\r\n }\r\n\r\n return (returnValue);\r\n }", "public static String formatDateToDatePickerView(Date date) {\r\n if (date != null) {\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n return formatter.format(date);\r\n }\r\n return \"\";\r\n }" ]
[ "0.8366179", "0.7811116", "0.7705036", "0.7580301", "0.7540596", "0.748867", "0.7452567", "0.7408051", "0.73609936", "0.7323963", "0.73035157", "0.7284197", "0.72756475", "0.72003305", "0.7179332", "0.7170215", "0.71633524", "0.7151514", "0.7148029", "0.71374375", "0.713371", "0.7125353", "0.71022683", "0.7092159", "0.70842695", "0.70813596", "0.7071486", "0.70639265", "0.7057999", "0.7054673", "0.70468324", "0.7044971", "0.7040396", "0.7022936", "0.7013468", "0.70004773", "0.70004064", "0.6998004", "0.69866645", "0.69828063", "0.6970509", "0.6959747", "0.6954075", "0.694623", "0.6943192", "0.6938818", "0.6935583", "0.69228375", "0.69208884", "0.6917015", "0.6912569", "0.68827343", "0.6863783", "0.6839186", "0.68359977", "0.6825973", "0.68125784", "0.68039113", "0.67772233", "0.6772957", "0.6766373", "0.67650723", "0.675495", "0.67332876", "0.6732666", "0.6726617", "0.6718384", "0.67141443", "0.66920656", "0.6691522", "0.6687186", "0.66850555", "0.667309", "0.66527677", "0.6651859", "0.6645851", "0.6642779", "0.65883195", "0.65792596", "0.65741014", "0.65705705", "0.6561354", "0.65505683", "0.6546635", "0.6545736", "0.6536598", "0.65346885", "0.6532811", "0.6529876", "0.65210193", "0.6520663", "0.651907", "0.65164614", "0.65086436", "0.6494775", "0.6491579", "0.64877117", "0.6485291", "0.6484082", "0.64830726" ]
0.7435738
7