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 |
|---|---|---|---|---|---|---|
Cancels the machine reservation for the given enterprise. | public void cancelReservationFor(final Enterprise enterprise) {
context.getApi().getInfrastructureApi().cancelReservation(enterprise.unwrap(), target);
target.getLinks().remove(target.searchLink(ParentLinkName.ENTERPRISE));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void cancelReservation(String reservationId) throws ObjectNotFoundException;",
"@Override\r\n\tpublic void cancelReservation(Reservation r) {\n\t\tentityManager.remove(entityManager.merge(r));\r\n\t\t\r\n\r\n\t}",
"private void processCancelReservation() {\n System.out.println(\"Which reservation would you want to cancel? (the number associated to the reservation)\");\n\n boolean keepgoing = true;\n int command = 0;\n while (keepgoing) {\n command = input.nextInt();\n if (command > 0 && command < pickedAccount.getReservations().size() + 1) {\n keepgoing = false;\n } else {\n System.out.println(\"Invalid number, try again.\");\n }\n }\n pickedAccount.getReservations().get(command - 1).cancel();\n pickedAccount.getReservations().remove(command - 1);\n System.out.println(\"Reservation Cancelled\");\n }",
"public void cancelRent(RentInfos rentInfos){\n\n Optional<Rent> rent = rentRepository.findById(rentInfos.getId());\n rent.orElseThrow(() -> new SpringHotelManagerException(\"Rent not found!!\"));\n\n// User currentUser = authService.getCurrentUser();\n//\n// if(!currentUser.getUserEmail().equals(reservation.get().getUser().getUserEmail())){\n// throw new SpringHotelManagerException(\"Access denied!!\");\n// }\n\n rentRepository.delete(rent.get());\n\n }",
"@Override\n\tpublic void cancelCalendar(CalendarEdit edit) {\n\t\t\n\t}",
"public void cancelCurrentPurchase() throws VerificationFailedException {\n\t}",
"public void cancelCurrentPurchase() throws VerificationFailedException {\n\t}",
"public void cancelInvitionUser() {\n\n }",
"public void cancel() throws Exception {\n\t\tgetControl(\"cancelButton\").click();\n\t}",
"public void cancelReservation(RoomList roomList){\t\t\t\t//cancels a reservation for a room by a guest name.\n\t\tSystem.out.println(\"Which guest is cancelling their reservation?\");\t\n\t\tkeyboard.nextLine();\n\t\tString name = keyboard.nextLine();\t\t\t\t\t\t\t//user enters a guest name\n\t\tRoom matched = null;\n\n\t\tfor(Room r: roomList.getList()){\t\t\t\t\t\t\t//scan all the rooms in the roomlist\n\t\t\tif(!r.isEmpty(r)) {\t\t\t\t\t\t\t\t\t\t//if a room has a guest\n\t\t\t\tmatched = r.findRoomByName(r, name);\t\t\t\t//call the findRoom by name method and return a room if a match\n\t\t\t\tif(matched!=null) {\t\t\t\t\t\t\t\t\t//if matched is not its original state (null)\n\t\t\t\t\tSystem.out.println(\"\\n RESERVATION CANCELLED \");\n\t\t\t\t\tmatched.removeAllGuestsFromRoom(matched);\t\t//remove all the guests from the matched room\n\t\t\t\t}\n\t\t\t}//if\n\t\t}//for\n\t}",
"public final void cancelResv() {\n ApiUtil.getApi2().cancelCourseResv(this.reserveId).compose(RxUtil.applyIO()).subscribe(new MyResvDetailActivity$cancelResv$1(this, this));\n }",
"private void cancel() {\n recoTransaction.cancel();\n }",
"@RequestMapping(value = \"/punchout/cxml/cancel\", method = RequestMethod.GET)\r\n\tpublic String cancelRequisition(final Model model, final HttpServletRequest request) throws InvalidCartException,\r\n\t\t\tCMSItemNotFoundException\r\n\t{\r\n\t\tfinal CXML cXML = punchOutService.processCancelPunchOutOrderMessage();\r\n\t\tprocessRequisitionMessage(cXML, model, request);\r\n\r\n\t\treturn ADDON_PREFIX + BASE_ADDON_PAGE_PATH + \"/punchout/punchoutSendOrderPage\";\r\n\t}",
"public Reservation cancelAndReassign(Reservation res){\n\t\tint room = res.getRoomNumber();\n\t\t//if any names are stored in waitList, remove the first name\n\t\t//and create a Reservation for this person in the room reserved by res;\n\t\t//return that newReservation\n\t\tif (!waitList.isEmpty()){\n\t\t\tString newGuest = waitList.get(0);\n\t\t\twaitList.remove(0);\n\t\t\trooms[room] = new Reservation(newGuest, room);\n\t\t\treturn rooms[room];\n\t\t}\t\n\t\t//if waitlList is empty, mark the room specified by res as empty and return null\n\t\t//precondition: res is a valid reservation for some room in this hotel \n\t\telse if (waitList.isEmpty()){\n\t\t\trooms[room] = null;\n\t\t}\n\t\t\treturn null;\n\t}",
"public void cancel( String reason );",
"public static void CancelarReserva (Variables var,Menus Menus,BaseDades db,TReserva reserva,sMissatges missatge){\n Menus(Menus.MenuCancelarReserva);\r\n //Llegeix les dades per cancelar reserva\r\n reserva.iTelefon = sLlegirNumero(missatge.nTelefonReserva);\r\n\r\n EsborrarReserva(var, db,reserva);\r\n }",
"protected MessageBody cancel() {\n\t\tPlatformMessage msg = cancelRequest(incidentAddress).getMessage();\n\t\talarm.cancel(context, msg);\n\t\treturn msg.getValue();\n\t}",
"CancelOrderResponse cancelOrder(CancelOrderRequest cancelOrderRequest);",
"void cancelProduction();",
"private void cancel(ActionEvent e){\r\n // Clear textfields\r\n clearFields();\r\n // If coming from appt management screen, go back there\r\n if (fromAppt){\r\n goToManageApptScreen();\r\n }\r\n // Otherwise, set the current client to null and go to the landing page \r\n else {\r\n currClient = null;\r\n LandingPage.returnToLandingPage();\r\n }\r\n }",
"public void cancelSeat() {\n this.bookedSeats = this.bookedSeats - 1;\n }",
"private void cancelReservation(int id) throws SQLException {\n\t\tupdateReservationCancelStatement.clearParameters();\n\t\tupdateReservationCancelStatement.setInt(1, id);\n\t\tupdateReservationCancelStatement.executeUpdate();\n\t\tgetReservationStatement.clearParameters();\n\t\tgetReservationStatement.setString(1, this.username);\n\t\tgetReservationStatement.setInt(2, id);\n\t\tResultSet result = getReservationStatement.executeQuery();\n\t\tresult.next();\n\t\tFlight f1 = getFlight(result.getInt(3));\n\t\tdeleteTravel(f1.month, f1.dayOfMonth);\n\t\tif (result.getInt(4) > 0){\n\t\t\tFlight f2 = getFlight(result.getInt(4));\n\t\t\tdeleteTravel(f2.month, f2.dayOfMonth);\n\t\t}\n\t}",
"public void cancelTradeOffer()\n\t{\n\t\tm_trade.cancelOffer(this);\n\t}",
"public void cancelTransaction() {\n\t\t//Cancel the transaction\n\t\tregister[registerSelected].cancelTransaction();\n\t}",
"public void cancelCard() {}",
"TransactionResponseDTO cancelTransaction(TransactionRequestDTO transactionRequestDTO);",
"@FXML\n void cancelReservation(ActionEvent event) throws Exception {\n \t\n \t\n \tif(alert.responseAlert(\"Are you sure you want to cancel this reservation!?\")) {\n \tFXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/View/ConfirmationWindow.fxml\")); \n Parent root = (Parent)fxmlLoader.load();\n database.deleteReservation(reservationsTable.getSelectionModel().getSelectedItem());\n \tConfirmationController controller = fxmlLoader.<ConfirmationController>getController();\n controller.setCancel(reservationsTable.getSelectionModel().getSelectedItem());\n \tScene scene = new Scene(root); \n Stage primaryStage = new Stage();\n Image anotherIcon = new Image(\"logo.png\");\n primaryStage.getIcons().add(anotherIcon);\n primaryStage.setTitle(\"Linnaeus Hotel\");\n primaryStage.setScene(scene);\n\t\tprimaryStage.show();\n \t}\n }",
"void cancel(T entity, boolean editMode);",
"public void cancelFlight(){\n \n Flight flightObject = FlightRepository.getFlight(this.number);\n if (flightObject == null){\n System.out.println(\"Please select a valid flight number\");\n }\n flightObject.removePassengerSeat(this.PassengerID);\n }",
"public synchronized void cancel() {\n }",
"void cancel(long inId);",
"@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}",
"public void cancel()\n\t{\n\t}",
"private void cancelAppointment()\n {\n new AlertDialog.Builder(mCtx)\n .setTitle(mCtx.getResources().getString(R.string.cancel_heading))\n .setMessage(mCtx.getResources().getString(R.string.cancle_alert))\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener()\n {\n public void onClick(DialogInterface dialog, int which)\n {\n\n }\n })\n .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener()\n {\n public void onClick(DialogInterface dialog, int which)\n {\n\n }\n })\n .setIcon(android.R.drawable.ic_dialog_alert)\n .show();\n }",
"void cancelOrder(String orderKey);",
"public void cancel() {\n\t\tinterrupt();\n\t}",
"public void cancel() {\n\t}",
"@Test\n public void cancelTicket() {\n Ticket ticket = givenTicketInOrderedBilled();\n\n // when\n boolean activateTicket = ticket.cancelTicket();\n\n // then\n assertTrue(activateTicket);\n assertTicketInState(ticket, TicketStateType.TICKET_CANCELLED, TransactionStateType.TRANSACTION_BILLED, 6);\n }",
"public void revokeOffer(OfferMgmtVO offerMgmtVO) throws MISPException {\n\n\t\tlogger.entering(\"revokeOffer\", offerMgmtVO);\n\n\t\ttry {\n\n\t\t\tthis.customerSubsManager.revokeOffer(offerMgmtVO);\n\n\t\t} catch (DBException exception) {\n\t\t\tlogger.error(\"An exception occured while revoking Offer.\",\n\t\t\t\t\texception);\n\t\t\tthrow new MISPException(exception);\n\n\t\t}\n\n\t\tlogger.exiting(\"revokeOffer\");\n\n\t}",
"public String transaction_cancel(int reservationId)\n\t{\n\t\tif (this.username == null) {\n\t\t\treturn \"Cannot cancel reservations, not logged in\\n\";\n\t\t}\n\t\ttry {\n\t\t\tbeginTransaction();\n\t\t\tif (checkNotCanceledReservation(reservationId)){\n\t\t\t\t//canceling Reservation, set cancel = 1\n\t\t\t\tcancelReservation(reservationId);\n\t\t\t\t//refund for canceled Reservation\n\t\t\t\tgetReservationStatement.clearParameters();\n\t\t\t\tgetReservationStatement.setString(1, this.username);\n\t\t\t\tgetReservationStatement.setInt(2, reservationId);\n\t\t\t\tResultSet result = getReservationStatement.executeQuery();\n\t\t\t\tresult.next();\n\t\t\t\tupdateBalance(getBalance() + result.getInt(7));\n\t\t\t\tresult.close();\n\t\t\t\tcommitTransaction();\n\t\t\t\treturn \"Canceled reservation \" + reservationId + \"\\n\";\n\t\t\t} \n\t\t\trollbackTransaction();\n\t\t\treturn \"Failed to cancel reservation \" + reservationId + \"\\n\" + (DEBUG ? \"1\\n\" : \"\");\n\t\t} catch (Exception e) {\n\t\t\tif (DEBUG) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\trollbackTransaction();\n\t\t\treturn \"Failed to cancel reservation \" + reservationId + \"\\n\" + (DEBUG ? \"2\\n\" : \"\");\n\t\t}\n\t}",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"private void cancel(){\n if(isFormEmpty()){\n finish();\n }else{\n // Confirmation dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(getString(R.string.cancel_booking_creation_confirmation));\n // When users confirms dialog, end activity\n builder.setPositiveButton(android.R.string.ok, (dialog, which) -> {\n finish();\n });\n\n // Do nothing if cancel\n builder.setNegativeButton(android.R.string.cancel, null);\n\n AlertDialog dialog = builder.create();\n dialog.show();\n\n // Change button colors\n Button positiveButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = dialog.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }\n }",
"protected void cancel() {\n abort();\n if(cancelAction != null) {\n cancelAction.accept(getObject());\n }\n }",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public String transaction_cancel(int reservationId) {\r\n // only implement this if you are interested in earning extra credit for the HW!\r\n\t\ttry {\r\n\t\t\tif (username == null){\r\n\t\t\t\treturn \"Cannot pay, not logged in\\n\";\r\n\t\t\t}\r\n\t\t\tbeginTransaction();\r\n\r\n\t\t\tsearchFirstFidStatement.clearParameters();\r\n\t\t\tsearchFirstFidStatement.setString(1, username);\r\n\t\t\tsearchFirstFidStatement.setInt(2, reservationId);\r\n\t\t\tResultSet cancel = searchFirstFidStatement.executeQuery();\r\n\t\t\t\r\n\t\t\tsearchSecondFidStatement.clearParameters();\r\n\t\t\tsearchSecondFidStatement.setString(1, username);\r\n\t\t\tsearchSecondFidStatement.setInt(2, reservationId);\r\n\t\t\tResultSet cancel2 = searchSecondFidStatement.executeQuery();\r\n\t\t\t\r\n\t\t\tif (cancel.isBeforeFirst()){\r\n\t\t\t\tcancel.next();\r\n\t\t\t\tcancelReservationStatement.setString(1, username);\r\n\t\t\t\tcancelReservationStatement.setInt(2, reservationId);\r\n\t\t\t\tcancelReservationStatement.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tint firstFID = cancel.getInt(\"fid1\");\r\n\t\t\t\tcheckBookingStatement.clearParameters();\r\n\t\t\t\tcheckBookingStatement.setInt(1, firstFID);\r\n\t\t\t\tResultSet f1 = checkBookingStatement.executeQuery();\r\n\t\t\t\tint current1 = f1.getInt(\"count\");\r\n\t\t\t\tupdateBookingStatement.clearParameters();\r\n\t\t\t\tupdateBookingStatement.setInt(1, current1-1);\r\n\t\t\t\tupdateBookingStatement.setInt(2, firstFID);\r\n\t\t\t\tupdateBookingStatement.executeQuery();\r\n\t\t\t} else {\r\n\t\t\t\trollbackTransaction();\r\n\t\t\t}\r\n\t\t\tif (cancel2.next()){\r\n\t\t\t\tint secondFID = cancel2.getInt(\"fid2\");\r\n\t\t\t\tcheckBookingStatement.clearParameters();\r\n\t\t\t\tcheckBookingStatement.setInt(1, secondFID);\r\n\t\t\t\tResultSet f2 = checkBookingStatement.executeQuery();\r\n\t\t\t\tint current2 = f2.getInt(\"count\");\r\n\t\t\t\tupdateBookingStatement.clearParameters();\r\n\t\t\t\tupdateBookingStatement.setInt(1, current2-1);\r\n\t\t\t\tupdateBookingStatement.setInt(2, secondFID);\r\n\t\t\t\tupdateBookingStatement.executeQuery();\r\n\t\t\t}\r\n\t\t\tcommitTransaction();\r\n\t\t\treturn \"Canceled reservation \" + reservationId + \"\\n\";\r\n\r\n\t\t} catch (SQLException e){\r\n\t\t\t//rollbackTransaction();\r\n\t\t\treturn \"Failed to cancel reservation \" + reservationId;\r\n\t\t}\r\n }",
"@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }",
"public void cancelCard(String cardNumber) {}",
"@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}",
"public void cancel() {\n writeData(ESC.CMD_CANCEL);\n }",
"private void dataReservationTypeCancelHandle() {\n reservationController.dialogStage.close();\r\n }",
"public CustDashboardPage cancelPayment(ExtentTest extentedReport) throws Exception {\n\t\tCustDashboardPage objCustDashboardPage = null;\n\t\ttry {\n\t\t\tbtnCancelPayment.click();\n\t\t\tLog.message(\"Clicked on 'Cancel' payment button\", extentedReport);\n\t\t\tWaitUtils.waitForSpinner(driver);\n\t\t\tWaitUtils.waitForElementPresent(driver, btnCancelPaymentYes,\n\t\t\t\t\t\"Timed out to wait for 'Yes' button in cancel warning pop-up\");\n\t\t\tbtnCancelPaymentYes.click();\n\t\t\tLog.message(\"Clicked on 'Yes' button in cancel warning pop-up\", extentedReport);\n\t\t\tWaitUtils.waitForSpinner(driver);\n\t\t\tobjCustDashboardPage = new CustDashboardPage(driver, extentedReport).get();\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(\"Unable to cancel the payment. \" + e);\n\t\t}\n\t\treturn objCustDashboardPage;\n\t}",
"public void cancel() throws OperationUnsupportedException;",
"public void cancelAlarm() {\n AlarmManager manager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n try {\n manager.cancel(pendingIntent);\n } catch (Exception e){\n Log.d(TAG, e.getMessage());\n }\n// Toast.makeText(this, \"Alarm Canceled\", Toast.LENGTH_SHORT).show();\n }",
"protected void notAllowedToWork_stopMachine_EM() {\n stopMachine();\n }",
"public void cancel() {\n request.disconnect();\n }",
"@Override\n public int cancelTransaction() {\n System.out.println(\"Please make a selection first\");\n return 0;\n }",
"@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"private void jCancelBookingActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCancelBookingActionPerformed\n if(bookingNr != -1)\n bm.cancel(bookingNr);\n \n \n }",
"@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}",
"public void oncancel() {\r\n Users user = ui.getUser();\r\n newRating = ratingEJB.findByUserAndRecipe(user, recipe);\r\n\r\n if (newRating != null) {\r\n ratingEJB.removeRecipeRating(newRating);\r\n }\r\n }",
"public void cmdCancelGame(User teller, Player player) {\n Game game = tournamentService.cancelGame(player);\n tournamentService.flush();\n if (game == null) {\n command.tell(teller, \"Sorry, player \\\"{0}\\\" was not associated wtih any boards.\", player);\n } else {\n command.tell(teller, \"Okay, game \\\"{0} - {1} {2}\\\" is no longer scheduled.\", game.boardNumber, game.whitePlayer, game.blackPlayer);\n command.sendCommand(\"-notify {0}\", game.whitePlayer);\n command.sendCommand(\"-notify {0}\", game.blackPlayer);\n command.spoof(monitorRole, \"-notify {0}\", game.whitePlayer);\n command.spoof(monitorRole, \"-notify {0}\", game.blackPlayer);\n }\n }",
"public void cancel();",
"public void cancelBooking(Booking b)\r\n {\r\n b.setCancelled(true);\r\n }",
"public void cancelTrip() {\n\t\n\t\t// TODO - fill in here\n\t\tIntent intent = new Intent();\n\t\tsetResult(RESULT_CANCELED,intent);\n\t\tfinish();\n\t}",
"public static boolean cancelReservation(String time, int tableNumber) {\n ArrayList<Reservation> reservationsAtTime = allReservations.get(time);\n\n Reservation reservationToDelete = null;\n for (Reservation reservation: reservationsAtTime) {\n if (reservation.reservedTableNumber == tableNumber) {\n reservationToDelete = reservation;\n break;\n }\n }\n\n if (reservationToDelete == null) {\n return false;\n\n } else {\n reservationsAtTime.remove(reservationToDelete);\n allReservations.put(time, reservationsAtTime);\n\n return true;\n }\n }",
"@Override\n\tpublic void cancel() {\n\t\t\n\t}",
"public static boolean cancelReservation(String name) {\n for (String time: allReservations.keySet()) {\n ArrayList<Reservation> reservationsAtTime = allReservations.get(time);\n\n Reservation reservationToDelete = null;\n for (Reservation reservation : reservationsAtTime) {\n if (reservation.reservationOwner.equals(name)) {\n reservationToDelete = reservation;\n break;\n }\n }\n\n if (reservationToDelete != null) {\n reservationsAtTime.remove(reservationToDelete);\n allReservations.put(time, reservationsAtTime);\n\n return true;\n }\n }\n\n return false;\n }",
"@Override\n public Consumer<InventoryClickEvent> getCancelAction() {\n return event -> {\n event.setCancelled(true);\n\n this.getPlayer().closeInventory();\n };\n }",
"void cancel();",
"void cancel();",
"void cancel();",
"void cancel();",
"void cancel();",
"private void cancelarMovimientos(Presupuesto presupuesto) throws Exception {\n }",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"void cancel() {\n\tsleepThread.interrupt();\n }",
"public String cancel() {\n endConversation();\n return CANCEL_OUTCOME_ID;\n }",
"synchronized void cancel()\n {\n state = DNSState.CANCELED;\n notifyAll();\n }",
"@Override\n public void onClick(View v) {\n aManager.cancel(pIntent);\n Toast.makeText(getApplicationContext(), \"Cancel\", Toast.LENGTH_SHORT).show();\n }",
"public static void cancelAlarmElapsed() {\n if (alarmManagerElapsed!= null) {\n alarmManagerElapsed.cancel(alarmIntentElapsed);\n }\n }",
"public void cancelRequest(JTable table, int col1, int col2) {\n \tDefaultTableModel model = (DefaultTableModel) table.getModel();\n \tint rowCount = model.getRowCount();\n \t\n \tfor (int i = 0; i < rowCount; i++) {\n \tCupcake cupcake = Cupcake.findCupcake(model.getValueAt(i, col1).toString());\n \tcupcake.setQuantity(cupcake.getQuantity() + Integer.parseInt(model.getValueAt(i, col2).toString()));\n \t}\n requestItems.clear();\n \n for (int i = rowCount - 1; i >= 0; i--) {\n \tmodel.removeRow(i);\n }\n table.setModel(model);\n }",
"@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n cancelAppointment(staffid);\n }",
"public void cancel(Button.ClickEvent event) {\n Notification.show(\"Cancelled\", Notification.Type.TRAY_NOTIFICATION);\n view.getContactList().select(null);\n }",
"void confirmerReservation(String proprietaire, Integer topoId);",
"User canceledUserRegistration(User user) throws LogicException;",
"public void cancel() {\n ei();\n this.fd.eT();\n this.oJ.b(this);\n this.oM = Status.CANCELLED;\n if (this.oL != null) {\n this.oL.cancel();\n this.oL = null;\n }\n }",
"protected abstract void sendCancel(Status reason);",
"@Override\n public void cancel() {\n\n }",
"public void onClick(DialogInterface dialog, int which) {\n msgBox.Show(\"Warning\", \"DayEnd operation has been cancelled, Transaction date remains same\");\n }"
] | [
"0.67052776",
"0.59545296",
"0.5847843",
"0.5637937",
"0.55551267",
"0.5551013",
"0.5551013",
"0.55203635",
"0.5515564",
"0.54507077",
"0.5403784",
"0.5387366",
"0.5377504",
"0.5377067",
"0.53619295",
"0.53524184",
"0.5320603",
"0.5296781",
"0.529427",
"0.52379876",
"0.52286106",
"0.5220857",
"0.5193299",
"0.5180932",
"0.51488477",
"0.5141402",
"0.51059765",
"0.50872236",
"0.5050924",
"0.5049517",
"0.5046485",
"0.50375587",
"0.50345755",
"0.5028776",
"0.5015464",
"0.50043935",
"0.50011444",
"0.49888748",
"0.4981105",
"0.49569145",
"0.4952445",
"0.4952445",
"0.49420577",
"0.4933452",
"0.49330243",
"0.49330243",
"0.49330243",
"0.49330243",
"0.49330243",
"0.49330243",
"0.4932897",
"0.49286297",
"0.49253413",
"0.48989993",
"0.48962036",
"0.48840946",
"0.48834878",
"0.48702314",
"0.4858909",
"0.48580664",
"0.48564163",
"0.48553962",
"0.48521534",
"0.48509273",
"0.4837661",
"0.48227358",
"0.4821917",
"0.48090506",
"0.48028448",
"0.47973526",
"0.47580752",
"0.47545666",
"0.4754051",
"0.47485465",
"0.47425675",
"0.47425675",
"0.47425675",
"0.47425675",
"0.47425675",
"0.4741868",
"0.47396415",
"0.47396415",
"0.47396415",
"0.47371462",
"0.47371462",
"0.47371462",
"0.47369146",
"0.47363126",
"0.47348872",
"0.47286156",
"0.4724695",
"0.47208962",
"0.4707618",
"0.4706864",
"0.47020495",
"0.46964473",
"0.46871322",
"0.46855637",
"0.46839827",
"0.46802056"
] | 0.7821483 | 0 |
Check if the machine is reserved. | public boolean isReserved() {
return target.searchLink(ParentLinkName.ENTERPRISE) != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean checkMachineAvailable ()\n throws Exception\n {\n try {\n log.info(\"Claiming free machine\");\n\n Machine freeMachine = Machine.getFreeMachine(session);\n if (freeMachine == null) {\n Scheduler scheduler = Scheduler.getScheduler();\n log.info(String.format(\n \"No machine available for scheduled sim %s, retry in %s seconds\",\n game.getGameId(), scheduler.getSchedulerInterval() / 1000));\n return false;\n }\n\n game.setMachine(freeMachine);\n freeMachine.setStateRunning();\n session.update(freeMachine);\n log.info(String.format(\"Game: %s running on machine: %s\",\n game.getGameId(), game.getMachine().getMachineName()));\n return true;\n } catch (Exception e) {\n log.warn(\"Error claiming free machine for game \" + game.getGameId());\n throw e;\n }\n }",
"public boolean isReserved(){\n\t\treturn reserved;\n\t}",
"public boolean isReserved() {\n return reserved;\n }",
"boolean isReserved();",
"public boolean isAvailable(){\r\n // return statement\r\n return (veh == null);\r\n }",
"public boolean reserve(int reservation) {\n int index = reservation - this.loRange;\n if (this.freeSet.get(index)) { // FREE\n this.freeSet.clear(index);\n return true;\n } else {\n return false;\n }\n }",
"public boolean checkAvailability(int num_used) {\n return num_used != this.num_uses;\n }",
"boolean isAvailable();",
"boolean isAvailable();",
"boolean isAvailable();",
"boolean isAvailable();",
"Boolean isAvailable();",
"public boolean isAvailable(){\n\t\ttry{\n\t\t\tgetPrimingsInternal(\"Test\", \"ATGATGATGATGATGATGATG\");\n\t\t}\n\t\tcatch(IOException e){\n\t\t\treturn false;\n\t\t}\n\t\tcatch(InterruptedException e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private boolean isAvailable(String month, int day) {\n\t\treturn false;\n\t}",
"public void takeAvailable() {\n\t\tavailable = false;\n\t}",
"protected boolean isAvailable() {\r\n\t\treturn true;\r\n\t}",
"public java.lang.Boolean getPwrreserve() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.Boolean) __getCache(\"pwrreserve\")));\n }",
"public boolean isOccupied(){\n \t\treturn occupiedSeconds > 0;\n \t}",
"public void setReserved(boolean reserved) {\n this.reserved = reserved;\n }",
"public boolean isATMReadyTOUse() throws java.lang.InterruptedException;",
"public abstract boolean isAvailable();",
"public abstract boolean isAvailable();",
"public boolean isAvailable() {\r\n\treturn available;\r\n }",
"public void makeAvailable() {\n\t\tavailable = true;\n\t}",
"boolean isAvailable( long millis );",
"public boolean isAvailable()\n {\n return available;\n }",
"private Boolean isReserved(final EMail email) {\n return emailReservations.containsKey(email);\n }",
"public boolean isAvailable() {\n return available;\n }",
"boolean available()\n {\n synchronized (m_lock)\n {\n return (null == m_runnable) && (!m_released);\n }\n }",
"public boolean isAvailable() {\n return available;\n }",
"public boolean isSeatAllReserved() {\n return airplane.isFull();\n }",
"boolean hasMachineId();",
"boolean hasMachineType();",
"public boolean isAvailable() {\n return available;\n }",
"public boolean isAvailable() {\n return available;\n }",
"public boolean isOccupied() {\n return !(getLease() == null);\r\n }",
"protected boolean isOccupied(){\n\t\treturn occupied;\n\t}",
"public boolean isAvailable() {\r\n\t\treturn available;\r\n\t}",
"public boolean isVacant() {\r\n\treturn !isOccupied() || !isAvailable();\r\n }",
"public boolean hasMachineId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasMachineId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"private static boolean reserveSpace(AtomicInteger availableSharedCapacity, int space)\r\n/* 254: */ {\r\n/* 255:282 */ assert (space >= 0);\r\n/* 256: */ for (;;)\r\n/* 257: */ {\r\n/* 258:284 */ int available = availableSharedCapacity.get();\r\n/* 259:285 */ if (available < space) {\r\n/* 260:286 */ return false;\r\n/* 261: */ }\r\n/* 262:288 */ if (availableSharedCapacity.compareAndSet(available, available - space)) {\r\n/* 263:289 */ return true;\r\n/* 264: */ }\r\n/* 265: */ }\r\n/* 266: */ }",
"public boolean isAvailable() {\n return LocalTime.now().isAfter(busyEndTime);\n }",
"public boolean isAcquired() {\r\n return false;\r\n }",
"@Override\n public boolean isAvailable(Resource resource) {\n return false;\n }",
"public Boolean isAvailable()\n\t{\n\t\treturn presence != null && presence.equals(AVAILABLE);\n\t}",
"public void CheckRegStatus(long electCode) {\n }",
"boolean hasCapacity();",
"boolean isRAM();",
"public boolean isAvailable() {\r\n return isavailable;\r\n }",
"boolean hasPakringFree();",
"boolean hasPakringFree();",
"public boolean isAvalible() {\n return available;\n }",
"boolean isAvailable() {\r\n\t\treturn available;\r\n\t}",
"protected boolean checkMachine_EM(IGregTechTileEntity iGregTechTileEntity, ItemStack itemStack) {\n return false;\n }",
"boolean hasOccupation();",
"boolean hasOccupation();",
"boolean hasOccupation();",
"boolean hasOccupation();",
"boolean hasOccupation();",
"@Override\n\tpublic boolean reserve() {\n\t\treturn false;\n\t}",
"private Boolean isReserved(final String username) {\n return usernameReservations.containsKey(username.toLowerCase());\n }",
"public boolean isReclaimed(){\n synchronized (stateLock){\n return state.equals(State.RECLAIMED);\n }\n }",
"@Test\r\n\tpublic void testMakePurchase_empty_slot() {\r\n\t\tassertEquals(false, vendMachine.makePurchase(\"D\"));\r\n\t}",
"public boolean is_empilable()\n\t{\n\t\tif (this.nb_disk >= this.nb_disk_max)\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"boolean checkAvailable(String userName);",
"public boolean availableServer(){\n for(int i = 0; i < cntServer; i++){\n if(serverArray[i].busy == false){return true;}\n }\n return false;\n }",
"@Override\n\tpublic boolean isBusy() throws DeviceException {\n\t\treturn false;\n\t}",
"public Boolean getAllowReserved() {\n\t\treturn allowReserved;\n\t}",
"boolean isEphemeral();",
"boolean hasSoftware();",
"public synchronized void makeAvailable(){\n isBusy = false;\n }",
"public boolean checkAvailability(Media media) {\n\t\t return false;\n\t }",
"default boolean hasEnoughMemory(long memory){\n return getUnusedMemory() >= memory;\n }",
"@Override\n public boolean isAvailable() {\n return room.isAvailable();\n }",
"public boolean isRangeUnavailable()\r\n {\r\n return statusObj.value == STATUS_CANDIDATE_RANGE_UNAVAILABLE;\r\n }",
"boolean hasSystemRequest();",
"public boolean IsOccupied() {\n\n\t\treturn occupied;\n\t}",
"public boolean needsRepair() {\n if (id == 5509) {\n return false;\n }\n return inventory.contains(id + 1);\n }",
"public boolean isAvailable() {\n\t\tObject oo = get_Value(\"IsAvailable\");\n\t\tif (oo != null) {\n\t\t\tif (oo instanceof Boolean)\n\t\t\t\treturn ((Boolean) oo).booleanValue();\n\t\t\treturn \"Y\".equals(oo);\n\t\t}\n\t\treturn false;\n\t}",
"public boolean hasBeenAcquired(){\r\n\t\treturn !(acquiredBy == null);\r\n\t}",
"public static boolean CheckRoomIsAvailable(Room room, long Start, long end) {\n\t\tboolean[] DIO = room.getDateIsOccupied();\n\t\tfor (int i = (int) Start; i < end; i++)\n\t\t\tif (DIO[i] == true) \n\t\t\t\treturn false;\n\t\treturn true;\n\t}",
"boolean hasScheduling();",
"boolean hasScheduling();",
"public boolean isAllocated()\n\t{\n\t\tif(getQtyAllocated().signum()!=0)\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}",
"public static boolean isPreservedFoodAvailable(Person person) {\n\t\tboolean result = false;\n\t\tUnit containerUnit = person.getTopContainerUnit();\n\t\tif (!(containerUnit instanceof MarsSurface)) {\n\t\t\tInventory inv = containerUnit.getInventory();\n\t\t\tif (inv != null && foodConsumptionRate > MIN)\n\t\t\t\tresult = inv.getAmountResourceStored(ResourceUtil.foodID, false) > MIN;\n//\t\t\t\tStorage.retrieveAnResource(foodConsumptionRate, ResourceUtil.foodID, inv, false);\n\t\t}\n\t\treturn result;\n\t}",
"public boolean use() throws UnavailableObjectException {\r\n\t\tInventory inventory = Game.getInstance().getInventory();\r\n\t\tinventory.take(id);\r\n\t\treturn inventory.available(id);\r\n\t}",
"public Boolean checkAvailability(Item item, Integer current) {\n \tif (item.getQuatity() + current > item.getAvailableQuatity()) {\r\n \t\tSystem.out.println(\"System is unable to add \"\r\n \t\t\t\t+ current + \" \" + item.getItemName() +\r\n \t\t\t\t\". System can only add \"\r\n \t\t\t\t+ item.getAvailableQuatity() + \" \" + item.getItemName() );\r\n \t\treturn false;\r\n \t}\r\n \telse return true;\r\n }",
"public boolean isOccupied(){\n return this.occupied;\n }",
"@Override\n\tprotected void checkHardware() {\n\t\tsuper.checkHardware();\n\t}",
"boolean isSetPowerBox();",
"private void doReserve() {\n pickParkingLot();\n pickParkingSpot();\n pickTime();\n pickDuration();\n int amount = pickedparkinglot.getPrice() * pickedduration;\n if (pickedAccount.getBalance() >= amount) {\n currentReservation = new Reservation(pickedparkingspot, pickedAccount, pickedtime, pickedduration);\n validateReservation(currentReservation);\n } else {\n System.out.println(\"Insufficient balance\");\n }\n }",
"public void checkIfAlive()\n {\n if(this.health<=0)\n {\n targetable=false;\n monstersWalkDistanceX=0;\n monstersWalkDistanceY=0;\n this.health=0;\n new TextureChanger(this,0);\n isSelected=false;\n if(monsterType==1)\n {\n visible=false;\n }\n if(gaveResource==false) {\n int gameResource = Board.gameResources.getGameResources();\n Board.gameResources.setGameResources(gameResource + resourceReward);\n gaveResource=true;\n }\n }\n }",
"public boolean isAvailable() {\n return this.isAcceptingRider && this.currentTrip == null;\n }",
"public void getBookAvailability() {\n getBookReservationEligibility();\n }",
"public static boolean isMachineDowntime(MachineDowntimeBean machineReqBean) {\n\t\tboolean isMachine = false;\n\t\tif (null != machineReqBean.getMachineId()) {\n\t\t\tif (null == machineReqBean.getEquipmentId()\n\t\t\t\t\t|| machineReqBean.getEquipmentId().isEmpty()) {\n\t\t\t\tif (null == machineReqBean.getMediaId()\n\t\t\t\t\t\t|| machineReqBean.getMediaId().isEmpty()) {\n\t\t\t\t\tisMachine = true;\n\t\t\t\t} else {\n\t\t\t\t\tisMachine = false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisMachine = false;\n\t\t\t}\n\t\t}\n\t\treturn isMachine;\n\t}",
"public void setAvailable(boolean x){\n availabile = x;\n }",
"public static boolean isEquipmentDowntime(MachineDowntimeBean machineReqBean) {\n\t\tboolean isEquipment = false;\n\t\tif (null != machineReqBean.getMachineId()\n\t\t\t\t&& null != machineReqBean.getEquipmentId()) {\n\t\t\tif (null == machineReqBean.getMediaId()\n\t\t\t\t\t|| machineReqBean.getMediaId().isEmpty()) {\n\t\t\t\tisEquipment = true;\n\t\t\t} else {\n\t\t\t\tisEquipment = false;\n\t\t\t}\n\t\t}\n\t\treturn isEquipment;\n\n\t}",
"public boolean isUnused() {\n return this.binderySlotNumber == -9234;\n }",
"boolean requestPending(String barcode) {\n return currentRequests.contains(barcode);\n }"
] | [
"0.70995957",
"0.7091761",
"0.70106345",
"0.6998712",
"0.63954437",
"0.6376852",
"0.6294456",
"0.6213891",
"0.6213891",
"0.6213891",
"0.6213891",
"0.6172733",
"0.61360854",
"0.60908467",
"0.60903376",
"0.6068743",
"0.59664494",
"0.59242165",
"0.5914574",
"0.5907955",
"0.587434",
"0.587434",
"0.58015156",
"0.5776304",
"0.5771629",
"0.5766687",
"0.5753603",
"0.5743133",
"0.5742399",
"0.5734917",
"0.572811",
"0.57067764",
"0.5705859",
"0.5688281",
"0.5688281",
"0.56870365",
"0.5683551",
"0.56819797",
"0.5674542",
"0.56425416",
"0.5617379",
"0.5614003",
"0.5613834",
"0.55914426",
"0.5577805",
"0.55759335",
"0.55542153",
"0.55419266",
"0.55402553",
"0.55389404",
"0.5532031",
"0.5532031",
"0.55283105",
"0.5519132",
"0.55147916",
"0.5509059",
"0.5509059",
"0.5509059",
"0.5509059",
"0.5509059",
"0.5505353",
"0.54885304",
"0.547821",
"0.5474264",
"0.54381686",
"0.5419537",
"0.54120964",
"0.5406822",
"0.54051465",
"0.53913313",
"0.53764725",
"0.53727084",
"0.53717864",
"0.5371362",
"0.53681344",
"0.5351681",
"0.53465873",
"0.5342076",
"0.5334359",
"0.531971",
"0.53153783",
"0.5311481",
"0.5311114",
"0.5311114",
"0.5311046",
"0.5309",
"0.5290395",
"0.52885276",
"0.5288484",
"0.52862704",
"0.5285767",
"0.5272117",
"0.5268042",
"0.5264769",
"0.5262064",
"0.5258832",
"0.52562386",
"0.5255738",
"0.5255191",
"0.5253422"
] | 0.5679817 | 38 |
Get the enterprise that has reserved the machine or null if the machine is not reserved. | public Enterprise getOwnerEnterprise() {
if (!isReserved()) {
return null;
}
EnterpriseDto enterprise = context.getApi().getEnterpriseApi()
.getEnterprise(target.getIdFromLink(ParentLinkName.ENTERPRISE));
return wrap(context, Enterprise.class, enterprise);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getEnterpriseId() {\n return enterpriseId;\n }",
"public org.hl7.fhir.String getSoftware()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.String target = null;\n target = (org.hl7.fhir.String)get_store().find_element_user(SOFTWARE$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public EntityEquipment getEquipment ( ) {\n\t\treturn extract ( handle -> handle.getEquipment ( ) );\n\t}",
"public Employee getPurchaseEmployee() {\n Discount[] txnDiscounts = compositePOSTransaction.getDiscountsArray();\n if (txnDiscounts != null && txnDiscounts.length > 0) {\n for (int i = 0; i < txnDiscounts.length; i++) {\n if (txnDiscounts[i] instanceof CMSEmployeeDiscount) {\n return ((CMSEmployeeDiscount)txnDiscounts[i]).getEmployee();\n }\n }\n }\n return null;\n }",
"public Machine machine() {\n return machine;\n }",
"public EnigmaMachine getEnigmaMachine() {\r\n\t\treturn enigma;\r\n\t}",
"PhysicalMachine getPhysicalMachine() {\n return pm;\n }",
"public Reserve getReserve() {\n return reserve;\n }",
"private double getOEEAvailability(Batch batch, double stopTime) {\n double plannedProductionTime = (60.0 / ((double) batch.getMachineSpeed())) * (((double) batch.getAccepted()) + ((double) batch.getDefect()));\n double runtime = plannedProductionTime - stopTime;\n\n double availability = runtime / plannedProductionTime;\n\n return availability;\n }",
"public int getEquipment() throws java.rmi.RemoteException;",
"public final String getEquipment() {\n return equipment;\n }",
"public static Reservation getLatestReservation() {\n return RESERVATIONS.size() == 0 ? null : RESERVATIONS.iterator().next();\n }",
"public String getSoftware()\n\t{\n\t\treturn null;\n\t}",
"public java.lang.Boolean getPwrreserve() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.Boolean) __getCache(\"pwrreserve\")));\n }",
"public Inventory getEquipment() {\n return equipment;\n }",
"private com.hps.july.persistence.EquipmentSet ejbRef() throws java.rmi.RemoteException {\n if ( ejbRef == null )\n return null;\n if ( __ejbRef == null )\n __ejbRef = (com.hps.july.persistence.EquipmentSet) PortableRemoteObject.narrow(ejbRef, com.hps.july.persistence.EquipmentSet.class);\n\n return __ejbRef;\n }",
"private static AvailEntry getAvailEntry(String key) {\n AvailEntry ae = null;\n Map lcache = null;\n if (GET_AVAILABLE_CACHE != null) {\n lcache = (Map) GET_AVAILABLE_CACHE.get();\n if (lcache != null) {\n ae = (AvailEntry) lcache.get(key);\n }\n }\n\n if (ae == null) {\n ae = new AvailEntry(key);\n if (lcache == null) {\n lcache = new HashMap();\n lcache.put(key, ae);\n GET_AVAILABLE_CACHE = new SoftReference(lcache);\n } else {\n lcache.put(key, ae);\n }\n }\n\n return ae;\n }",
"public IronDome findFreeIronDome() {\n\t\tfor (IronDome ironDome : ironDomeArr) {\n\t\t\tif (!ironDome.getIsBusy())\n\t\t\t\treturn ironDome;\n\t\t}\n\n\t\treturn null;\n\t}",
"public double getMaximumAllowedEnergyInRoom() {\n\n\t\treturn this.maximumEnergyConsumptionAllowedInARoom; \n\t}",
"public Club employeur() {\n Embauche dernierEmbauche = myEmployees.get(myEmployees.size()-1);\n if(dernierEmbauche.estTerminee()){\n return null;\n }\n return dernierEmbauche.getEmployeur();\n }",
"@Override\n\tpublic boolean existEnterprise(Enterprise enterprise) {\n\t\treturn enterpriseDAO.existEnterprise(enterprise.getId(),enterprise.getLicense());\n\t}",
"EvergreenProvision getEvergreenProvision();",
"public Election getElectionDay() {\t\t\r\n\t\tOptional<Election> election = null;\r\n\t\tList<Election> electionList = DataDAO.getElectionList();\r\n\t\telection = electionList.stream().filter(e -> e.getElectionDate().equals(DateUtil.asDate(LocalDate.now()))).findFirst();\r\n\t\tif (election.isPresent()) {\r\n\t\t\treturn election.get();\r\n\t\t}else{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t}",
"public Seat bestAvailableSeat() {\r\n\t\tfor (Seat s : seats) {\r\n\t\t\tif (!s.reserved) {\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if no seats available return null\r\n\t\treturn null;\r\n\t}",
"public Long getEquipmentId() {\n return equipmentId;\n }",
"public int energy_consumed_GET()\n { return (int)((int) get_bytes(data, 29, 4)); }",
"public String getMachineId()\n\t{\n\t\treturn machineId;\n\t}",
"public BoundCodeDt<InstanceAvailabilityEnum> getAvailabilityElement() { \n\t\tif (myAvailability == null) {\n\t\t\tmyAvailability = new BoundCodeDt<InstanceAvailabilityEnum>(InstanceAvailabilityEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn myAvailability;\n\t}",
"public BoundCodeDt<InstanceAvailabilityEnum> getAvailabilityElement() { \n\t\tif (myAvailability == null) {\n\t\t\tmyAvailability = new BoundCodeDt<InstanceAvailabilityEnum>(InstanceAvailabilityEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn myAvailability;\n\t}",
"public boolean isReserved() {\n return target.searchLink(ParentLinkName.ENTERPRISE) != null;\n }",
"public final Device blockingGetEmulator() {\n Device emu = find(true);\n if (emu != null) {\n return emu;\n }\n EmulatorController emuController = EmulatorController.getInstance();\n if (emuController.getState() == State.NOT_RUNNING) {\n try {\n emuController.launch();\n } catch (IOException e) {\n System.err.println(\"Problem while launching emulator.\");\n e.printStackTrace(System.err);\n return null;\n }\n } else {\n System.out.println(\"Emulator is \" + emuController.getState() + \", which is not expected.\");\n }\n while (!Thread.currentThread().isInterrupted()) {\n if (emuController.getState() == State.NOT_RUNNING) {\n System.err.println(\"Error while starting the emulator. (\" + emuController.getState() + \")\");\n return null;\n }\n Device emu2 = find(true);\n if (emu2 != null) {\n return emu2;\n }\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e2) {\n System.err.println(\"Devices: interrupted in loop.\");\n return null;\n }\n }\n return null;\n }",
"public Room getExit(String roomName) {\n\t\tRoom room = null;\n\t\tRoom tempRooms;\n\t\tfor(int i = 0; i < Exits.size(); i++) {\n\t\t\ttempRooms = Exits.get(i);\n\t\t\tif (tempRooms.name.contains(roomName)) {\n\t\t\t\treturn tempRooms;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//TODO: Make this a proper exception thrown, \n\t\t//\t\totherwise this code will break if it meets this error \n\t\t//\t\tand this will be the only hint as to why\n\t\tSystem.out.println(\"ERROR: Could not find room\");\n\t\treturn room;\n\t}",
"public DescribeReservedInstancesOfferingsResponse describeReservedInstancesOfferings(\r\n \t\t\tDescribeReservedInstancesOfferings describeReservedInstancesOfferings) {\n \t\treturn null;\r\n \t}",
"@Override\n public Machine call() throws Exception {\n Machine selectedMachine = maasClient.allocateMachineById(systemId);\n if (selectedMachine == null) {\n return null;\n }\n do {\n Thread.sleep(MaasClientPollingService.POLLING_INTERVAL);\n } while (maasClient.getMachineById(systemId).getStatus() != Machine.ALLOCATED);\n\n // Put tags\n tags.forEach(tag -> {\n maasClient.createTagIfNotExists(tag.getName(), tag.getComment());\n maasClient.addTagToMachines(tag.getName(), systemId);\n });\n\n // Deploy OS\n selectedMachine = maasClient.deployMachine(systemId, userData);\n if (selectedMachine == null) {\n return null;\n }\n do {\n Thread.sleep(MaasClientPollingService.POLLING_INTERVAL);\n } while (maasClient.getMachineById(systemId).getStatus() != Machine.DEPLOYED);\n\n return selectedMachine;\n }",
"public Energy getEnergy() {\n return energy;\n }",
"public int getMachineID() {\n return machineID;\n }",
"@Override\n\tpublic CEAvailability getAvailability() {\n\t\treturn CEAvailability.Heal;\n\t}",
"public Emp selectEmp(int empno) {\n\t\treturn null;\n\t}",
"public java.lang.String getEquipmentState() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.String) __getCache(\"equipmentState\")));\n }",
"public SummitEntityImpl getEmpEO() {\r\n return (SummitEntityImpl)getEntity(1);\r\n }",
"java.lang.String getMachineId();",
"public Outage getOutage(final String name) {\n getReadLock().lock();\n try {\n for (final Outage out : getConfig().getOutageCollection()) {\n if (BasicScheduleUtils.getBasicOutageSchedule(out).getName().equals(name)) {\n return out;\n }\n }\n } finally {\n getReadLock().unlock();\n }\n return null;\n }",
"Employee getOldestEmployee() {\n\t}",
"public String getMerReserved() {\n\t\treturn merReserved;\n\t}",
"public Integer getReleaseDateMachine() {\r\n return releaseDateMachine;\r\n }",
"private Boolean isReserved(final EMail email) {\n return emailReservations.containsKey(email);\n }",
"public boolean isAvailable(){\r\n // return statement\r\n return (veh == null);\r\n }",
"public int getAvailability() {\r\n\t\treturn this.availability;\r\n\t}",
"public String getReserve() {\n return reserve;\n }",
"public double getCellReservePrice() {\r\n\t\treturn CellReservePrice;\r\n\t}",
"@NonNull\r\n public final Object getSeaLock() {\r\n return f_seaLock;\r\n }",
"public Expirator getAvailableExpirator() {\n \t\tExpirator available = null;\n \t\tfor(Expirator e : expirators) {\n \t\t\tif(!e.isBusy()) {\n \t\t\t\tavailable = e;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\treturn available;\n \t}",
"DeliverySystem getPseService();",
"static public int getGUEST() {\n return 2;\n }",
"@Override\r\n\tpublic Emp get(int eno) {\n\t\treturn null;\r\n\t}",
"private com.hps.july.persistence.EquipmentSetHome ejbHome() throws java.rmi.RemoteException, javax.naming.NamingException {\n return (com.hps.july.persistence.EquipmentSetHome) PortableRemoteObject.narrow(getHome(), com.hps.july.persistence.EquipmentSetHome.class);\n }",
"@Override\n\tpublic Enterprise findEnterpriseByUserName(String userName) {\n\t\treturn enterpriseDao.findEnterpriseByUserName(userName);\n\t}",
"public int getEnergie() {\r\n\t\treturn energie;\r\n\t}",
"public static boolean isEquipmentDowntime(MachineDowntimeBean machineReqBean) {\n\t\tboolean isEquipment = false;\n\t\tif (null != machineReqBean.getMachineId()\n\t\t\t\t&& null != machineReqBean.getEquipmentId()) {\n\t\t\tif (null == machineReqBean.getMediaId()\n\t\t\t\t\t|| machineReqBean.getMediaId().isEmpty()) {\n\t\t\t\tisEquipment = true;\n\t\t\t} else {\n\t\t\t\tisEquipment = false;\n\t\t\t}\n\t\t}\n\t\treturn isEquipment;\n\n\t}",
"@Override\n\tpublic Employee findPartner(String name) {\n\t\treturn null;\n\t}",
"public EmiEntity getEmiWithEmiNo(String personName, String bankName, int emiNo) {\n\n return emisWithEmiNoMap.get(personName + \"_\" + bankName + \"_\" + emiNo);\n }",
"public String getAvailability() {\n\t\treturn availability;\n\t}",
"public AvailabilityInformation availabilityInformation() {\n return this.innerProperties() == null ? null : this.innerProperties().availabilityInformation();\n }",
"private Machine getMachineOrFail(String machineId) {\n for (Machine machine : listMachines()) {\n if (machine.getId().equals(machineId)) {\n return machine;\n }\n }\n throw new NotFoundException(String.format(\"no machine with id '%s' found in cloud pool\", machineId));\n }",
"@Nullable\n public ExternalMeetingRegistrant get() throws ClientException {\n return send(HttpMethod.GET, null);\n }",
"public Reservation requestRoom(String guestName){\n\t\tfor (int i = 0; i<rooms.length; i++){\n\t\tif (rooms[i] == null){\n\t\t//then create a reservation for an empty room for the specified guest\n\t\t//and return the new Reservation;\n\t\t\trooms[i] = new Reservation(guestName, i);\n\t\t\treturn rooms[i];\n\t\t}\n\t\t}\n\t\t//Otherwise, add the guest into the end of waitList and return null\n\t\twaitList.add(guestName);\n\t\treturn null;\n\t}",
"public String getEU( ) {\r\n return eu;\r\n }",
"public String getIndustry() {\n return industry;\n }",
"public BoundCodeDt<InstanceAvailabilityEnum> getAvailability() { \n\t\tif (myAvailability == null) {\n\t\t\tmyAvailability = new BoundCodeDt<InstanceAvailabilityEnum>(InstanceAvailabilityEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn myAvailability;\n\t}",
"public BoundCodeDt<InstanceAvailabilityEnum> getAvailability() { \n\t\tif (myAvailability == null) {\n\t\t\tmyAvailability = new BoundCodeDt<InstanceAvailabilityEnum>(InstanceAvailabilityEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn myAvailability;\n\t}",
"public Inventory getEnderChest ( ) {\n\t\treturn extract ( handle -> handle.getEnderChest ( ) );\n\t}",
"public String getIndustry() {\n\t\treturn industry;\n\t}",
"public Equip getEquip(int type)\r\n {\r\n if (type==Equip.WEAPON)\r\n return weapon;\r\n else if (type == Equip.ARMOR)\r\n return armor;\r\n return null;\r\n }",
"public Manager getEmployee() {\n\t\treturn new Manager();\n\t}",
"T getOccupant();",
"public boolean isHighGuestMemSupported() {\r\n return highGuestMemSupported;\r\n }",
"public com.hps.july.persistence.Worker getExpeditor() throws java.rmi.RemoteException, javax.ejb.FinderException;",
"public java.lang.Integer getStoredem() throws java.rmi.RemoteException;",
"@Override\n\tpublic Enterprise get(Integer id) {\n\t\treturn enterpriseDAO.get(id);\n\t}",
"public com.hps.july.persistence.OrganizationAccessBean getOrganization() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n instantiateEJB();\n com.hps.july.persistence.Organization localEJBRef = ejbRef().getOrganization();\n if ( localEJBRef != null )\n return new com.hps.july.persistence.OrganizationAccessBean(localEJBRef);\n else\n return null;\n }",
"Offer getOffer();",
"public Room getRoom(String name) {\n\n if (room1.getGuest() != null && room1.getGuest().getName().equals(name)) { // If room 1 has a guest and that guest has the name of the guest being requested\n\n return room1;\n\n } else if(room2.getGuest() != null && room2.getGuest().getName().equals(name)) { // If room 2 has a guest and that guest has the name of the guest being requested\n\n return room2;\n\n }\n\n else return null; // If no guest with such name occupies room\n }",
"public void getBookAvailability() {\n getBookReservationEligibility();\n }",
"protected byte[] getOffTimerReservationSetting() {return null;}",
"DescribeReservedNodesOfferingsResult describeReservedNodesOfferings(DescribeReservedNodesOfferingsRequest describeReservedNodesOfferingsRequest);",
"private Ente gestioneEnte() {\n\t\tList<Ente> enti = enteDad.getEntiByCodiceAndCodiceSistemaEsterno(req.getCodiceEnte(), SistemaEsterno.FEL);\n\t\tif(enti == null || enti.isEmpty()) {\n\t\t\tthrow new UnmappedEnteException(ErroreCore.ENTITA_NON_TROVATA.getErrore(\"Ente\", \"codice \" + req.getCodiceEnte()));\n\t\t}\n\t\t// Dovrebbe essercene solo uno. Per sicurezza prendo solo il primo\n\t\treturn enti.get(0);\n\t}",
"public ExpoEAO getExpoEAO()\n {\n return expoEAO;\n }",
"public String getUnlocker();",
"@Override\n public byte getSubtype() {\n return SUBTYPE_MONETARY_SYSTEM_RESERVE_INCREASE;\n }",
"public final Device blockingGetHardware() {\n Device hardware = find(false);\n if (hardware != null) {\n return hardware;\n }\n while (!Thread.currentThread().isInterrupted()) {\n try {\n Thread.sleep(2000);\n Device hardware2 = find(false);\n if (hardware2 != null) {\n return hardware2;\n }\n } catch (InterruptedException e) {\n return null;\n }\n }\n return null;\n }",
"public MachineType getMachineType() {\n return machineType;\n }",
"@ComputerMethod\n private FloatingLong getEnergyUsage() {\n return getActive() ? energyContainer.getEnergyPerTick() : FloatingLong.ZERO;\n }",
"public E primero() {\n\t\tif(estaVacia()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn primero.getDato();\n\t}",
"public Equipment findEquipmentById(int id){\n Optional<Equipment> equipment = equipmentRepository.findById(id);\n return equipment.orElse(null);\n }",
"public Guest getGuest(String name) {\n\t\tString checkName = name.toUpperCase();\n for (Guest guest : guestList) {\n if (guest.getName().toUpperCase().equals(checkName)){\n return guest;\n }\n }\n return null;\n }",
"public String getSupEntIndustry() {\n return supEntIndustry;\n }",
"public String bkE() {\n return this.rE.bkA().getString(\"existing_instance_identifier\", \"\");\n }",
"int getSellCurrent();",
"public Maintenance recoveryMaintenanceOfEquip(Equipment equip) {\n\t\tString sql = \"select m.id, m.datemaintence,m.expiratedate, m.description from maintence m, equipment e \"\r\n\t\t\t\t+ \" where m.equip_id = e.id and e.id = ? order by m.datemaintence DESC limit 1 \";\r\n\t\tSystem.out.println(sql);\r\n\r\n\t\ttry {\r\n\t\t\tResultSet rs = dataBase.executeQuery(sql, equip.getId());\r\n\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tMaintenance maintenance = new Maintenance();\r\n\t\t\t\tmaintenance.setDateMaintenance(rs.getDate(\"datemaintence\"));\r\n\t\t\t\tmaintenance.setExpireDate(rs.getDate(\"expiratedate\"));\r\n\t\t\t\tmaintenance.setDescriptionMaintenance(rs\r\n\t\t\t\t\t\t.getString(\"description\"));\r\n\t\t\t\tmaintenance.setId(rs.getInt(\"id\"));\r\n\r\n\t\t\t\treturn maintenance;\r\n\t\t\t} else\r\n\t\t\t\treturn null;\r\n\t\t} catch (Exception ex) {\r\n\t\t\treturn null;\r\n\t\t} finally {\r\n\t\t\tdataBase.close();\r\n\t\t}\r\n\r\n\t}",
"public EnzymeCommissionNumber getEc() {\n return ec;\n }"
] | [
"0.57595676",
"0.5533754",
"0.53393227",
"0.52798855",
"0.52319556",
"0.5165722",
"0.5152972",
"0.5090484",
"0.5034733",
"0.5020808",
"0.502057",
"0.50181115",
"0.49555394",
"0.4952774",
"0.4946006",
"0.49341175",
"0.4929005",
"0.49160108",
"0.49104232",
"0.49040982",
"0.4885707",
"0.48832437",
"0.4874061",
"0.48580018",
"0.48413107",
"0.48357955",
"0.48353136",
"0.4834471",
"0.4834471",
"0.48050293",
"0.4804176",
"0.47903565",
"0.47863308",
"0.47849417",
"0.47797728",
"0.47786763",
"0.4777264",
"0.47737196",
"0.4772292",
"0.4766035",
"0.47639626",
"0.47618014",
"0.47605973",
"0.47531822",
"0.47443846",
"0.47382712",
"0.47190818",
"0.47108388",
"0.4709006",
"0.47082737",
"0.47004008",
"0.46977594",
"0.46916494",
"0.4689834",
"0.46893254",
"0.46720546",
"0.46622255",
"0.46562725",
"0.46548337",
"0.46539882",
"0.46508822",
"0.46478093",
"0.46429917",
"0.46388674",
"0.46322158",
"0.46295792",
"0.4611812",
"0.460685",
"0.46043307",
"0.46043307",
"0.4603476",
"0.45993242",
"0.45905432",
"0.45884708",
"0.45866856",
"0.45859572",
"0.45832193",
"0.45794463",
"0.45714116",
"0.4566666",
"0.4566183",
"0.45651856",
"0.45553687",
"0.4551819",
"0.45475802",
"0.45474285",
"0.4546217",
"0.45459592",
"0.45392147",
"0.45387426",
"0.4538154",
"0.45368445",
"0.4531405",
"0.45239624",
"0.45226404",
"0.45201942",
"0.45179874",
"0.45131573",
"0.45093763",
"0.4509334"
] | 0.6374129 | 0 |
getter setter ends execute method implementation | public String execute() {
try {
int i = getEmail().indexOf('@');
String checkuser = getEmail().substring(0, i);
checkuser.replace("_", "__");
checkuser.replace(".", "_");
date = new java.sql.Date(dob.getTime());
SimpleDateFormat formatter = new SimpleDateFormat("yyyy/MM/dd");
strDate = formatter.format(date);
strDate = strDate.replace('/', '-');
System.out.println("date show ==== " + strDate);
// Get the absolute path of file f
Connection con = DBConnection.getConnection(); // creating
// connection with
// data base
Statement st = (Statement) con.createStatement();
ResultSet rs = st.executeQuery("SELECT * FROM LOGIN WHERE email= '" + checkuser + "'");
if (!rs.next()) {
if (getPassword().equals(getConfirmpassword())) {
if (sendotp == 0) {
new Emailer().execute(email);
sendotp = 1;
return "1";
}
if (otp.equals(Checkotp.otporg)) {
System.out.println("otp sahi h +");
i = getEmail().indexOf('@');
setEmail(getEmail().substring(0, i));
setEmail(getEmail().replace("_", "__"));
setEmail(getEmail().replace(".", "_"));
inputStream = new FileInputStream(getProfilepic());
// creating
// connection with
PreparedStatement ps1 = (PreparedStatement) con.prepareStatement(
"insert into register(username,email,password,firstname,lastname,gender,dateofbirth,phone,address,profilepic) values(?,?,?,?,?,?,?,?,?,?)"); // Creating
// PreparedStatement
// object
ps1.setString(1, getUsername());
ps1.setString(2, getEmail());
ps1.setString(3, getPassword());
ps1.setString(4, getFirstname());
ps1.setString(5, getLastname());
ps1.setString(6, getGender());
ps1.setDate(7, date);
ps1.setLong(8, getPhone());
ps1.setString(9, getAddress());
ps1.setBinaryStream(10, inputStream);
ps1.executeUpdate();
PreparedStatement ps = (PreparedStatement) con.prepareStatement("insert into login values(?,?,?)"); // Creating PreparedStatement object
ps.setString(1, getUsername());
ps.setString(2, getEmail());
ps.setString(3, getPassword());
ps.executeUpdate(); // sending data of ps ( obj ) into database table named login
CurrentUserInfo.setEmail(getEmail());
CurrentUserInfo.setUsername(getUsername());
CurrentUserInfo.setPassword(getPassword());
System.out.println(CurrentUserInfo.getEmail());
DBCreateTableFollower.CreateFollowerTable(CurrentUserInfo.getEmail());
DBCreatePostTable.CreateTablePost(CurrentUserInfo.getEmail()); // Creating
// post
// table
// of
// Users
DBCreateNotify.CreateNotifyTable(CurrentUserInfo.getEmail());
DBCreateStoryTable.CreateTableStory(CurrentUserInfo.getEmail());
DBCreateInboxTable.CreateTableInbox(CurrentUserInfo.getEmail());
DBCreateInboxTable.addToAllChats(CurrentUserInfo.getEmail(), CurrentUserInfo.getUsername());
CurrentUserInfo.setEmail(getEmail());
CurrentUserInfo.setPassword(getPassword());
CurrentUserInfo.setUsername(getUsername());
// post
return "3"; // sends to the welcome page
} else {
AddUser.errorOTPDoesNotMatch = 1;
System.out.println("else chal raha");
sendotp = 0;
username = "";
email = "";
confirmpassword = "";
password = "";
gender = "";
address = "";
firstname = "";
lastname = "";
ccode = "";
dob = null;
setPhone(0);
strDate = "";
Logout.alert = 1;
return "1";
}
} else {
errorPasswordIsDifferent = 1;
System.out.println("password galat h");
return "1";
}
} else {
errorAlreadyHaveAnAccount = 1;
System.out.println("user already exist");
return "2";
}
} catch (Exception e) {
System.out.println("error aa rahi h");
System.out.println(e);
}
return "1";// sends to error pages
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Set method_1559();",
"@Override\r\n\tprotected void execute() {\r\n\t}",
"@Override\n protected void execute() {\n \n }",
"protected void execute() {\r\n }",
"protected void execute() {}",
"protected void execute() {\n\t\t\n\t}",
"protected void execute() {\n\n\t}",
"@Override\n public void Execute() {\n\n }",
"protected void execute()\n {\n }",
"protected void execute() {\n \t\n }",
"protected void execute() {\n \t\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"@Override\n protected void execute() {\n }",
"@Override\n protected void execute() {\n }",
"@Override\n protected void execute() {\n }",
"protected void execute()\n\t{\n\t}",
"protected void execute() {\n\t}",
"@Override\n protected void execute() {\n\n }",
"@Override\r\n\tpublic void run() {\n\t\tthis.get(set);\r\n\t\t\r\n\t}",
"String setValue();",
"public void setResult() {\n }",
"@Override\n\tpublic void execute() {\n\t\t\n\t}",
"@Override\r\n\tpublic void execute() {\n }",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"protected void execute() {\n\n\n \n }",
"public void setdat()\n {\n }",
"public void execute(){\n\t\t\n\t}",
"@Override\r\n\tpublic void execute() {\n\t}",
"@Override\r\n\tpublic void execute() {\n\t}",
"@Override\r\n\tpublic void execute() {\n\r\n\t}",
"public void execute() {\n\t\t\r\n\t}",
"public void execute() {\n\t\t\r\n\t}",
"public void execute() {\n\t\t\r\n\t}",
"public void execute() {\r\n\t\r\n\t}",
"@Override\n public void execute() {\n }",
"@Override\n public void execute() {}",
"private void assignment() {\n\n\t\t\t}",
"public void execute() {\n\t\t\n\t}",
"@Override\n\tpublic void execute() {\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\n protected void execute() {\n \n }",
"public void execute() {\n\n\t}",
"protected void execute() {\n //pitch.setSpeed(translator.getValue());\n }",
"@Pointcut(\"execution(* com.iamscratches.aopdemo.dao.*.set*(..))\")\n\tpublic void setter() {}",
"public void execute() {\n setExecuted(true);\n }",
"public void reloadData() {\n log.debug(\"Getting value from method {}\", method.getName());\n T fetchedValue = (T) executeMethod(instance, method, null);\n setData(fetchedValue);\n }",
"@Override\n public void onSetSuccess() {\n }",
"@Override\n public void onSetSuccess() {\n }",
"public void execute() {\n }",
"@Override\n public void setResult(Object result) throws EngineException {\n \n }",
"public void get() {\n }",
"protected void execute() {\n this.setSetpoint(OI.getAdjustedThrottle()*RobotMap.maxRPM);\n ScraperBike.debugToTable(\"PIDSetpoint\", OI.getAdjustedThrottle()*RobotMap.maxRPM);\n \n }",
"@Override\n\tpublic void set() {\n\t\tSystem.out.println(\"A==========set\");\n\t}",
"private void setData() {\n\n }",
"public void execute(){\n\n }",
"public void Execute() {\n\n }",
"@Override\n public void execute() {\n \n \n }",
"public void setExecute(ValueExpression execute) {\n this.execute = execute;\n }",
"@Override\r\n\tpublic void execute() throws Exception {\n\t\t\r\n\t}",
"@Override\n public void get() {}",
"protected abstract void execute();",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override // kotlin.jvm.functions.Function0\n public Unit invoke() {\n RdsInputItemPresenterImpl.access$setupNewValue(this.a, this.b, \"\", this.c);\n return Unit.INSTANCE;\n }",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tpublic void get() {\n\t\tSystem.out.println(\"this is get\");\n\t}",
"@Override\n\tpublic Object execute() {\n\n\t\treturn null;\n\t}",
"abstract protected void execute();",
"protected void execute() {\n \tif (setPoint != 0)\n \t\tshooterWheel.shooterWheelSpeedControllerAft.setSetPoint(setPoint);\n \tshooterWheel.driveAftWheel(shooterWheel.shooterWheelSpeedControllerAft.getControlOutput());\n \t\n }",
"public void execute();",
"public void execute();",
"public void execute();",
"public void execute();",
"@Override\n public void execute() {\n this.setMyReturnValue(myHandler.getXcor());\n }",
"@Override\r\n\tprotected void processExecute() {\n\r\n\t}",
"@Test\n public void testSetValue ()\n {\n System.out.println (\"setValue\");\n String name = \"\";\n QueryDatas instance = new QueryDatas (\"nom\", \"value\");\n instance.setValue (name);\n }",
"@Override\n protected void execute() {\n \n //get velocity from SmartDashboard\n double m_sideVelocity = SmartDashboard.getNumber(\"Side Velocity\", 0);\n double m_beltVelocity = SmartDashboard.getNumber(\"Belt velocity\", 0);\n // if velocity coefficients on SmartDashboard have changed, write new values to controller\n \n Robot.CD7.setSideMotor(m_sideVelocity);\n Robot.CD7.setBeltMotor(m_beltVelocity);\n }",
"@SuppressWarnings(\"unchecked\")\n public void execute() {\n execute(null, null);\n }",
"public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }",
"void doSet() throws NotConnectedException\n\t{\n\t\ttry\n\t\t{\n\t\t\tValueExp exp = null;\n\n\t\t\tif (!hasMoreTokens())\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"setCommand\")); //$NON-NLS-1$\n\t\t\telse\n\t\t\t{\n\t\t\t\t// pull the expression\n\t\t\t\tString s = restOfLine();\n\n\t\t\t\t// parse and eval which causes the assignment to occur...\n\t\t\t\tif ( (exp = parseExpression(s)) == null )\n\t\t\t\t\t; // failed parse\n\n\t\t\t\t// make sure contains assignment\n\n\t\t\t\telse if ( !exp.containsAssignment() )\n\t\t\t\t\tthrow new IllegalAccessException(\"=\"); //$NON-NLS-1$\n\n\t\t\t\telse\n\t\t\t\t\tevalExpression(exp);\n\t\t\t}\n\t\t}\n\t\tcatch(IllegalAccessException iae)\n\t\t{\n\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\targs.put(\"operator\", iae.getMessage()); //$NON-NLS-1$\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"missingOperator\", args)); //$NON-NLS-1$\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"couldNotEvaluate\")); //$NON-NLS-1$\n\t\t}\n\t}",
"V setValue(final V value) {\n\t setMethod.accept(value);\n\n\t return value;\n\t}",
"public Object call(Context cx, Scriptable xxx, Scriptable thisObj, Object[] args) {\n\t\t\t Object newValue = args[0];\n\t\t\t valueStorage = newValue;\n\t\t\t finalTarget.put(finalTargetProp, scope, newValue);\n\t\t\t return null;\n\t\t\t}",
"public abstract void execute();",
"public abstract void execute();",
"public abstract void execute();",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void execute() {\n\t\trecevier.doSomething();\n\t}",
"@Override\n public double execute() throws IllegalStateException {\n checkError();\n return getValue(X);\n }",
"@Override\n\tpublic String execute() throws Exception {\n\t\treturn super.execute();\n\t}",
"@Override\n\tpublic String execute() throws Exception {\n\t\treturn super.execute();\n\t}"
] | [
"0.6596706",
"0.64869857",
"0.6466574",
"0.6437173",
"0.64060766",
"0.6403728",
"0.6377941",
"0.6354832",
"0.6352669",
"0.63427645",
"0.63427645",
"0.63366556",
"0.63366556",
"0.63366556",
"0.63366556",
"0.63366556",
"0.63366556",
"0.63366556",
"0.63366556",
"0.63366556",
"0.63366556",
"0.63366556",
"0.63366556",
"0.6328867",
"0.6328867",
"0.6328867",
"0.62898785",
"0.62753874",
"0.62740016",
"0.62449956",
"0.6216187",
"0.61789536",
"0.6174016",
"0.61507684",
"0.6150227",
"0.6149857",
"0.6145406",
"0.613277",
"0.61313033",
"0.61313033",
"0.61245525",
"0.6123308",
"0.6123308",
"0.6123308",
"0.61114454",
"0.6091701",
"0.6073524",
"0.6058002",
"0.60571",
"0.60530967",
"0.60517585",
"0.6048527",
"0.60414404",
"0.60298747",
"0.6023352",
"0.6001301",
"0.5994392",
"0.59930795",
"0.59930795",
"0.5928517",
"0.59190935",
"0.5913414",
"0.59101295",
"0.58991706",
"0.5885405",
"0.5882979",
"0.58775806",
"0.58559984",
"0.5834672",
"0.57865417",
"0.5772379",
"0.57602656",
"0.5757615",
"0.57395023",
"0.5728982",
"0.5728982",
"0.5707162",
"0.56999093",
"0.5698548",
"0.56966394",
"0.56926376",
"0.56926376",
"0.56926376",
"0.56926376",
"0.5689539",
"0.56501645",
"0.56369793",
"0.56338006",
"0.5627356",
"0.5618727",
"0.56171274",
"0.5606677",
"0.5594657",
"0.55822957",
"0.55822957",
"0.55822957",
"0.55726093",
"0.5567587",
"0.55575126",
"0.5557081",
"0.5557081"
] | 0.0 | -1 |
int a = Integer.parseInt(pkgCode); | private String getOrderCode(int pkgCode){
int a = pkgCode ;
int b = a/10 ;
int c = b*10 ;
// System.out.println(c);
return c+"" ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getInt();",
"public static void main(String[] args) {\n\t\tString a=\"770\";\n\t\tint b=Integer.parseInt(a);\n\t\tSystem.out.println(b);\n\n\t}",
"public static void main(String[] args){\n String test = \" +3 21\";\n int value = atoi(test);\n System.out.println(\"Conversion result is: \" + value);\n }",
"public int getIntValue2(String b) {\n int c = Integer.parseInt(b);\n return c;\n }",
"public int getInt(String name)\n/* */ {\n/* 908 */ return getInt(name, 0);\n/* */ }",
"private int getInt(String next) {\n\t\ttry {\n\t\t\tint a = Integer.parseInt(next);\n\t\t\tif (a > 10) {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\treturn a;\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn 0;\n\t\t}\n\t}",
"int toInt(String a){\n\t\tint name=0;\r\n\t\tfor(int i=0;i<a.length();i++){\r\n\t\t\tname+=(int)a.charAt(i);\r\n\t\t}\r\n\t\treturn name;\r\n\t}",
"int getCodeValue();",
"private static int i(String s) {\n return Integer.parseInt(s);\n }",
"public static void main(String[] args) {\n\t\t\n\t\tString productCode=\"55\";\n\t\t\n\t\tint prodCode = Integer.parseInt(productCode);\n\t\t\n\t\tSystem.out.println(\"\\n Product Code: \"+ prodCode);\n\t}",
"private static int convertToB(final String a) {\r\n System.out.println(\"convertToB: \" + Thread.currentThread().getName());\r\n return Integer.parseInt(a);\r\n }",
"protected static final int m2868b(XmlPullParser xmlPullParser, String str) {\n String attributeValue = xmlPullParser.getAttributeValue(null, str);\n if (attributeValue != null) {\n try {\n return Integer.parseInt(attributeValue);\n } catch (NumberFormatException e) {\n throw new ako(e);\n }\n } else {\n throw new bdc(str);\n }\n }",
"int decodeInt();",
"private static int getIntValue(String s) {\n try {\n return Integer.parseInt(s, 16);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n return -1;\n }\n }",
"int getInt();",
"int getInt();",
"public static void main(String[] args) {\n\t\tString str = \"-12\";\n\t\tSystem.out.println(atoi(str));\n\t}",
"public static int getInt(String value)\r\n\t{\r\n\t\treturn getInt(value, 0);\r\n\t}",
"protected static final int m2866a(XmlPullParser xmlPullParser, String str) {\n String attributeValue = xmlPullParser.getAttributeValue(null, str);\n if (attributeValue == null) {\n return -1;\n }\n try {\n return Integer.parseInt(attributeValue);\n } catch (NumberFormatException e) {\n throw new ako(e);\n }\n }",
"private static int parseIntWithDefault(String p_78862_0_, int p_78862_1_) {\n/* */ try {\n/* 108 */ return Integer.parseInt(p_78862_0_.trim());\n/* */ }\n/* 110 */ catch (Exception var3) {\n/* */ \n/* 112 */ return p_78862_1_;\n/* */ } \n/* */ }",
"String getInt_lit();",
"private static int parseInt(String s) {\n int value;\n try {\n value = Integer.parseInt(s);\n } catch (NumberFormatException e) {\n value = 0;\n }\n return value;\n }",
"public static int convert3(String a)\r\n {\r\n HashMap<String,Integer> map = new HashMap<String,Integer>();\r\n \r\n map.put(\"ORADEA\", 0);\r\n\t\tmap.put(\"SIBIU\", 1);\r\n\t\tmap.put(\"ZERIND\", 2);\r\n\t\tmap.put(\"ARAD\", 3);\r\n\t\tmap.put(\"TIMISOARA\", 4);\r\n\t\tmap.put(\"LUGOJ\", 5);\r\n\t\tmap.put(\"MEHADIA\", 6);\r\n\t\tmap.put(\"DROBETA\", 7);\r\n\t\tmap.put(\"FAGARAS\", 8);\r\n\t\tmap.put( \"PITESTI\", 9);\r\n\t\tmap.put(\"CRAIOVA\", 10);\r\n\t\tmap.put(\"Giugiu\", 11);\r\n\t\tmap.put(\"Neamt\", 12);\r\n\t\tmap.put(\"Pitesti\", 13);\r\n\t\tmap.put(\"Rimnicu_Vikea\", 14);\r\n\t\tmap.put(\"Urziceni\", 15);\r\n\t\tmap.put(\"Valsui\", 16);\r\n\t\tmap.put( \"BUCHAREST\", 17);\r\n\t\tmap.put(\"LASI\",18);\r\n\t\tmap.put(\"EFORIE\", 19);\r\n\t\tmap.put(\"HIRSOVA\",20);\r\n \r\n return(map.get(a));\r\n \r\n }",
"public static int getInt() throws IOException {\n\t\nString s = getString();\nreturn Integer.parseInt(s);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Returns the integer in the string as an Int.\n\t\n}",
"public int getC_Conversion_UOM_ID() \n{\nInteger ii = (Integer)get_Value(\"C_Conversion_UOM_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"public static int getIntegerValue(String value)\n\t{\n\t\treturn Integer.parseInt(value);\n\t}",
"Integer getCode();",
"Integer getDataStrt();",
"int getInt(String key);",
"public int s2i(String key) throws AgentBuilderRuntimeException {\n\t\tint result = 0;\n\t\ttry {\n\t\t\tresult = Integer.parseInt(str(key));\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new AgentBuilderRuntimeException(e);\n\t\t} catch (AgentBuilderRuntimeException e) {\n\t\t\tthrow e;\n\t\t}\n\t\treturn result;\n\t}",
"private static int parseInt(String sn) {\n\t\treturn Integer.parseInt(sn.substring(2), 16);\n\t}",
"public static int parseInt(String S1){\n return Integer.parseInt(S1);\n }",
"public static int parseInt(String s){\r\n int v=-1;\r\n try{\r\n v = Integer.parseInt(s);\r\n }catch(NumberFormatException e){\r\n \r\n }\r\n return v;\r\n }",
"public static void main(String[] args) {\r\n\t\t\r\n\t\tString s = \"9123401\";\r\n\tint a =\tInteger.parseInt(String.valueOf(s.charAt(0)));\r\n\t\r\n\tint b = s.charAt(0) -'0';\r\n//\tSystem.out.println((int)'0');\r\n\tSystem.out.println(b);\r\n//\tSystem.out.println(a);\r\n\r\n\t}",
"private static int getSatFromLine(String line) {\n\t\treturn Integer.parseInt(line.split(\" \")[0]);\n\t}",
"public static int stringToInt(String numb) {\r\n\t\tint temp = 0;\r\n\t\t\r\n\t\t//Convert the string to an int. Set it to a value of zero if not a number.\r\n\t\ttry {\r\n\t\t\ttemp = Integer.parseInt(numb);\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\ttemp = 0;\r\n\t\t}\r\n\t\t\r\n\t\treturn temp;\r\n\t}",
"public int getC_Subscription_Delivery_ID() \n{\nInteger ii = (Integer)get_Value(\"C_Subscription_Delivery_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"public static void main(String[] args){\n\t\tSystem.out.println(atoi(\"-0\"));\n\t\tSystem.out.println(atoi(\"13434ag\"));\n\t\tSystem.out.println(atoi(\"-2343\"));\n\t\tSystem.out.println(atoi(\"-03435\"));\n\t\tSystem.out.println(atoi(\"-003435\"));//number starts with 0 is fine.\n\t\t\n\t}",
"public static void main(String[] args) {\n\n\n String a=\"95.244522094727\";\n int score = (int)Double.parseDouble(a);\n System.out.println(score);\n }",
"public static Integer getIntegerFromString(String value) {\n\n if (value == null) {\n return null;\n }\n\n Integer intVal = null;\n\n try {\n intVal = Integer.parseInt(value);\n } catch (RuntimeException exc) {\n // could not parse into int, null will be returned\n }\n return intVal;\n }",
"public int getInt(String key)\n {\n return getInt(key, 0);\n }",
"String intRead();",
"int leerCodigoIngreso(){\n\t\treturn Integer.parseInt(cboCodigoIngreso.getSelectedItem().toString());\n\t}",
"public static int getInt(String inputDialog) {\n return(Integer.parseInt(JOptionPane.showInputDialog(inputDialog)));\n }",
"public static int parseInt(String s){\r\n\t\tint a =0;\r\n\t\ttry {\r\n\t\t a = Integer.parseInt(s);\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t System.out.println(\"To use this function you have to enter string that is a number, otherwise it will return 0.\");\r\n\t\t}\r\n\t\treturn a;\r\n\t}",
"public static void main(String[] args) {\n\r\n\t\ttry {\r\n\t\t\tString str = \"ajmal\";\r\n\t\t\tint a=Integer.parseInt(str);\r\n\t\t\tSystem.out.println(a);\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tSystem.out.println(e+\" String is not converted to intger\");\r\n\r\n\t\t}\r\n\t}",
"private static Integer parseIntString( String valueString ) {\n return Integer.parseInt( valueString.replaceAll( \"[^0-9]\", \"\" ) );\n }",
"public int getInteger(String key) {\r\n try {\r\n return Integer.decode(getString(key)).intValue();\r\n }\r\n catch (Exception e) {\r\n return 0;\r\n }\r\n }",
"public static int toInt(String str){\r\n\t\tInteger i = toInteger(str);\r\n\t\treturn i==null?0:i;\r\n\t}",
"private static int getVal(String s) {\n int val = Integer.parseInt(s.split(\" \")[0]);\r\n return val;\r\n }",
"public int toInt(){\n\t\tString s = txt().trim();\n\t\tint i;\n\t\ttry{\n\t\t\ti = Integer.parseInt(s);\n\t\t}catch(NumberFormatException exp){\n\t\t\texp.printStackTrace();\n\t\t\treturn 0;\n\t\t}\n\t\treturn i;\t\n\t}",
"public int getInt(String name)\r\n throws NumberFormatException\r\n {\r\n return Integer.parseInt(getString(name));\r\n }",
"private static int extractInt(String str) {\n\n String num = \"\";\n for (int i = 0; i < str.length(); i++) {\n if (java.lang.Character.isDigit(str.charAt(i))) num += str.charAt(i);\n }\n return (num.equals(\"\")) ? 0 : java.lang.Integer.parseInt(num);\n\n }",
"public static int m2197ao(String str) {\n try {\n return Integer.valueOf(str).intValue();\n } catch (Exception e) {\n return -1;\n }\n }",
"public static int getInt(String key, int i) {\n\t\tString token = getSystemString(key);\n\t\tif (token == null) {\n\t\t\treturn i;\n\t\t}\n\t\treturn Integer.parseInt(token);\n\t}",
"public int getInt();",
"public int getProgramIdFromUI(String programName) throws ParseException;",
"public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t\n\t\tString num_str = \"12345\";\n\t\tSystem.out.println(\"Int 형 :\" + num_str);\n\t\t\n\t\t\n\t\tint str_num = Integer.parseInt(num_str);\n\t\t\n\t\tint str_num_1 = Integer.valueOf(num_str);\n\t\t\n\t\tSystem.out.println(\"Int 형_pars :\" + str_num);\n\t\tSystem.out.println(\"Int 형_valu :\" + str_num_1);\n\t\t\n\t\tString sum = num_str+10;\n\t\tint sum_1 = str_num+10;\n\t\t\n\t\tSystem.out.println(sum);\n\t\tSystem.out.println(sum_1);\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}",
"@Override\r\n\tpublic int getInt(String string) {\n\t\treturn 0;\r\n\t}",
"public static int readInt(){\n\t\tSystem.out.println();\n\t\tstringInput = readInput();\n\t\ttry{\n\t\t\tintInput = Integer.parseInt(stringInput);\n\t\t}\n\t\tcatch (NumberFormatException ex) {\n\t\t System.err.println(\"Not a valid number: \" + stringInput);\n\t\t}\n\t\treturn intInput; \t\t\n\t}",
"org.apache.xmlbeans.XmlInteger xgetNcbi8Aa();",
"public int getM_Locator_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Locator_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"int intValue();",
"public static int getInt (String ask)\r\n {\r\n boolean badInput = false;\r\n String input = new String(\"\");\r\n int value = 0;\r\n do {\r\n badInput = false;\r\n input = getString(ask);\r\n try {\r\n value = Integer.parseInt(input);\r\n }\r\n catch(NumberFormatException e){\r\n badInput = true;\r\n }\r\n }while(badInput);\r\n return value;\r\n }",
"Integer getSesscode();",
"public int getM_Product_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Product_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"public int getIntValue(String keyName)\n {\n return Integer.parseInt(getValue(keyName));\n }",
"public static int iVal( String psNum ) {\n return iVal( psNum, 0 );\n }",
"public static int readInt() {\n return Integer.parseInt(readString());\n }",
"static int convertToInt(String s){\n\n int value = -1;\n\n try{\n value = Integer.parseInt(s);\n return value;\n }\n catch(NumberFormatException e) {\n return value;\n }\n catch(NullPointerException e) {\n return value;\n }\n }",
"public int parseNumber(String str) {\r\n \r\n try {\r\n int i = Integer.parseInt(str);\r\n return i;\r\n } catch (Exception e) {\r\n \r\n }\r\n \r\n return 0;\r\n }",
"Integer getTxtOrent();",
"public static void main(String[] args)\r\n\t{\n\t\t\r\n\t\tInteger myint=3;\r\n\t\tDouble mydble=2.5;\r\n\t\tCharacter mychar='k';\r\n\t\t\r\n\t\tSystem.out.println(myint.intValue());\r\n\t\tSystem.out.println(mydble.doubleValue());\r\n\t\tSystem.out.println(mychar.charValue());\r\n\t\t\r\n\t\tString number=\"123\";\r\n\t\t\r\n\t\tint num=Integer.parseInt(number); //Parsing the string to int\r\n\t\t\r\n\t\tint num2=num+100; //Adding to check the parsed value\r\n\t\t\r\n\t\tSystem.out.println(num2); //Output\r\n\r\n\t}",
"public int getC_UOM_ID() \n{\nInteger ii = (Integer)get_Value(\"C_UOM_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"public static int parseInt(String value)\n\t{\n\t\treturn value.matches(\"-?\\\\d+\") ? Integer.parseInt(value) : 0;\n\t}",
"public static int atoi(String s)\n {\n return (int) atol(s);\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(N_8_String_to_Integer.myAtoi(\"-2147483649\"));\r\n\t\t//System.out.println(Integer.valueOf(\"-2147483649\"));\r\n\t}",
"int getCode();",
"int getCode();",
"int getCode();",
"public static int parseInt(String value) throws ServiceException {\n OMUtil.nullCheck(value);\n\n try {\n return Integer.parseInt(value);\n } catch (NumberFormatException ex) {\n throw new ServiceException(ServiceStatus.MALFORMED_REQUEST);\n }\n }",
"int getInt( String key, int def);",
"public static void main(String[] args) {\n\t\tSystem.out.println(myAtoi(\" -11919730356x\"));\n\t\t// System.out.println(Integer.parseInt(\"-123\"));\n\n\t}",
"private int getIntProperty(String p) {\n\t\tString propval=env.getProperty(p);\n\t\tint propvalint=Integer.parseInt(propval);\n\t\treturn propvalint;\n\t}",
"int toInteger(String value) {\n value = value.trim();\n if (\"9999\".equals(value)) value = \"\";\n return (!\"\".equals(value)\n ? new Integer(value).intValue()\n : Tables.INTNULL);\n }",
"private int parseAccountOrNum(String name) {\n \tint rtn;\n if (name.charAt(0) >= '0' && name.charAt(0) <= '9') {\n rtn = new Integer(name).intValue();\n }\n else {\n \trtn = parseAccount(name).readCache();\n }\n return rtn;\n }",
"public static int parseAsInt(java.lang.String r6, int r7) {\n /*\n r1 = 1;\n r0 = 0;\n if (r6 != 0) goto L_0x0005;\n L_0x0004:\n return r7;\n L_0x0005:\n r3 = r6.trim();\n r2 = r3.length();\n if (r2 == 0) goto L_0x0004;\n L_0x000f:\n if (r0 >= r2) goto L_0x0049;\n L_0x0011:\n r4 = r3.charAt(r0);\n r5 = 43;\n if (r4 != r5) goto L_0x0035;\n L_0x0019:\n r2 = r3.substring(r1);\n r1 = r2.length();\n L_0x0021:\n if (r0 >= r1) goto L_0x0040;\n L_0x0023:\n r3 = r2.charAt(r0);\n r4 = 57;\n if (r3 > r4) goto L_0x002f;\n L_0x002b:\n r4 = 48;\n if (r3 >= r4) goto L_0x003d;\n L_0x002f:\n r0 = parseDouble(r2);\t Catch:{ NumberFormatException -> 0x0045 }\n r7 = (int) r0;\n goto L_0x0004;\n L_0x0035:\n r5 = 45;\n if (r4 != r5) goto L_0x0049;\n L_0x0039:\n r0 = r1;\n r1 = r2;\n r2 = r3;\n goto L_0x0021;\n L_0x003d:\n r0 = r0 + 1;\n goto L_0x0021;\n L_0x0040:\n r7 = java.lang.Integer.parseInt(r2);\t Catch:{ NumberFormatException -> 0x0047 }\n goto L_0x0004;\n L_0x0045:\n r0 = move-exception;\n goto L_0x0004;\n L_0x0047:\n r0 = move-exception;\n goto L_0x0004;\n L_0x0049:\n r1 = r2;\n r2 = r3;\n goto L_0x0021;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.fasterxml.jackson.core.io.NumberInput.parseAsInt(java.lang.String, int):int\");\n }",
"public static int getInt(String key) throws UnknownID, ArgumentNotValid {\n\t\tString value = get(key);\n\t\ttry {\n\t\t\treturn Integer.parseInt(value);\n\t\t} catch (NumberFormatException e) {\n\t\t\tString msg = \"Invalid setting. Value '\" + value + \"' for key '\" + key\n\t\t\t\t\t+ \"' could not be parsed as an integer.\";\n\t\t\tthrow new ArgumentNotValid(msg, e);\n\t\t}\n\t}",
"String getFirstInt();",
"public static int cleanReleaseYear(Literal year) {\n String yearString;\n int yearInt = 0;\n if(year == null || \"\".equals(year.toString())) {\n yearString = \"0\";\n } else {\n yearString = year.toString();\n }\n Pattern p = Pattern.compile(\"\\\\d\\\\d\\\\d\\\\d\");\n Matcher m = p.matcher(yearString);\n if(m.find()) {\n yearString = m.group();\n yearInt = Integer.parseInt(yearString);\n }\n return yearInt;\n }",
"public int getM_Inventory_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Inventory_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"public int parsePrice(String goods) {\n return Integer.parseInt(goods.split(\"\\\\s+\")[2]);\n }",
"public int getInt(String key) throws AgentBuilderRuntimeException {\n\t\treturn getInteger(key).intValue();\n\t}",
"public int getInt(String key) {\n return Integer.parseInt(mMap.get(key));\n }",
"private int strToInt(String str) {\n\t\tif (str.equals(\"\")) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn Integer.parseInt(str);\n\t}",
"private int convertInteger(String val)\n\t{\n\t\tint value = 0;\n\t\ttry {\n\t\t\tvalue = Integer.parseInt(val);\n\t\t}\n\t\tcatch(NumberFormatException e) {\n\t\t\tSystem.err.print(\"\");\n\t\t}\n\t\treturn value;\n\t}",
"@Override\n public int strToInt(String source) {\n try {\n return Integer.parseInt(source);\n } catch (NumberFormatException nfe) {\n return 0;\n }\n }",
"private int getValue(final String name, final String key) {\n\t\treturn Integer.parseInt(bundleConstants.getString(name + SEPERATOR + key));\n\t}",
"public static int convert(String entry) throws InvalidInputException {\r\n\r\n\t\ttry {\r\n\t\t\tint x = Integer.parseInt(entry);\r\n\t\t\treturn x;\r\n\t\t}catch(NumberFormatException nf) {\r\n\t\t\tthrow new InvalidInputException(\"The input is not an integer\");\r\n\t\t}\r\n\t\t\r\n\t}",
"public static int getInt() throws IOException {\n String s = getString();\n return Integer.parseInt(s);\n }"
] | [
"0.6376507",
"0.628382",
"0.62821406",
"0.6216341",
"0.61853474",
"0.6136126",
"0.60377735",
"0.60345185",
"0.600725",
"0.5999679",
"0.5995854",
"0.59800124",
"0.5886722",
"0.5883386",
"0.58763367",
"0.58763367",
"0.5871137",
"0.5855295",
"0.5848819",
"0.58475685",
"0.5831949",
"0.5815323",
"0.5809695",
"0.5805292",
"0.5803877",
"0.5793986",
"0.5793853",
"0.5767054",
"0.57654184",
"0.5765352",
"0.5737597",
"0.5729959",
"0.57286286",
"0.5699561",
"0.5692594",
"0.5680428",
"0.56709826",
"0.56661314",
"0.5655104",
"0.5639447",
"0.5625306",
"0.5625252",
"0.5620875",
"0.56090236",
"0.5599176",
"0.5593648",
"0.55916697",
"0.5589118",
"0.55880696",
"0.55879426",
"0.5587888",
"0.55858505",
"0.557863",
"0.5561128",
"0.5548756",
"0.55441946",
"0.55439436",
"0.55331796",
"0.5529325",
"0.55237824",
"0.55220807",
"0.55217355",
"0.5511936",
"0.5502246",
"0.5500253",
"0.5495912",
"0.54912674",
"0.548533",
"0.5485106",
"0.54828143",
"0.54789263",
"0.54738796",
"0.5464683",
"0.5457482",
"0.54553366",
"0.54463696",
"0.54429215",
"0.543806",
"0.543806",
"0.543806",
"0.54380184",
"0.54372346",
"0.54344714",
"0.542994",
"0.5428168",
"0.5419171",
"0.54083765",
"0.5408087",
"0.5407103",
"0.54039913",
"0.54021347",
"0.5399575",
"0.5391205",
"0.5390857",
"0.53883404",
"0.5387523",
"0.53844815",
"0.5382686",
"0.5374464",
"0.53630203"
] | 0.61890596 | 4 |
Receive a parsing event and invoke the associated listener, if any. | public final void lineParsed(LineFormat format, int logicalLinecount,
int physicalLineCount, String[] values) throws AbortFFPException {
for (Iterator i = associatedLineFormats.iterator(); i.hasNext();) {
Association a = (Association) i.next();
if (format.equals(a.getLineFormat())) {
a.getListener().lineParsed(format, logicalLinecount,
physicalLineCount, values);
return;
}
}
if (!allowLostEvents)
throw new NoAssociatedListenerException(format, logicalLinecount,
physicalLineCount, values);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface IParseObjectListener {\n void onItemCLick(ParseObject parseObject);\n}",
"@Override\n public void onMessageReceived(MessageReceivedEvent event) {\n if (event.getAuthor().isBot()) {\n return ;\n }\n\n Parser.parse(event.getMessage().getContentRaw(), event);\n }",
"public void callReceiveEvent(PacketEvent event) {\n\t\tfor(PacketListener l : PACKET_IN_LISTENER) \n\t\t\tl.onEvent(event);\n\t}",
"public void parse() {\n }",
"public interface iOnParse {\n\tvoid onParse(String htmlEle);\n}",
"public interface ByteBufferParserListener {\n void onParsed(ByteBuffer buffer) throws InterruptedException, ExecutionException, ValidationError, IOException;\n}",
"public void parse(String uri, HandlerBase handler) throws SAXException,\n IOException {\n if (uri == null) {\n throw new IllegalArgumentException(\"uri must not be null\");\n }\n parse(new InputSource(uri), handler);\n }",
"public interface RecordListener {\n\t\t/**\n\t\t * Handles successfully parsed sample record.\n\t\t */\n\t\tvoid handleParsedRecord(SampleRecord record);\n\n\t\t/**\n\t\t * Handles input that could not be parsed due to a formatting problem.\n\t\t * @param line The line of text that could not be parsed.\n\t\t */\n\t\tvoid handleBadRecordFormat(String line);\n\t}",
"public void parse()\n\t{\n\t\ttry\n\t\t{\n\t\t\tstatus = program();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t}",
"public void handleMessageEvent(StunMessageEvent e) {\n delegate.processRequest(e);\n }",
"public void processEvent(Event event) {\n\t\t\n\t}",
"protected abstract boolean startParsing(String message);",
"public void parse()\n throws ClassNotFoundException, IllegalAccessException,\n\t InstantiationException, IOException, SAXException,\n\t ParserConfigurationException\n {\n\tSAXParser saxParser = SAXParserFactory.newInstance().newSAXParser();\n\txmlReader = saxParser.getXMLReader();\n\txmlReader.setContentHandler(this);\n\txmlReader.setEntityResolver(this);\n\txmlReader.setErrorHandler(this);\n\txmlReader.setDTDHandler(this);\n\txmlReader.parse(xmlSource);\n\t}",
"public void parse() {\n MessageBlockLexer lexer = new MessageBlockBailLexer(name, postNumber, CharStreams.fromString(raw));\n\n // remove ConsoleErrorListener\n lexer.removeErrorListeners();\n\n // create a buffer of tokens pulled from the lexer\n CommonTokenStream tokens = new CommonTokenStream(lexer);\n\n // create a parser that feeds off the tokens buffer\n MessageBlockParser parser = new MessageBlockParser(tokens);\n\n // remove ConsoleErrorListener\n parser.removeErrorListeners();\n\n // Create/add custom error listener\n MessageBlockErrorListener errorListener = new MessageBlockErrorListener(name, topic, postNumber);\n parser.addErrorListener(errorListener);\n\n // Begin parsing at the block rule\n ParseTree tree = parser.block();\n\n // Check for parsing errors\n errorListener.throwIfErrorsPresent();\n\n LOGGER.trace(tree.toStringTree(parser));\n\n // Walk the tree\n ParseTreeWalker walker = new ParseTreeWalker();\n walker.walk(new Listener(this), tree);\n }",
"@Override\n\tpublic void run() {\n\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(file)));\n\t\t\tString line = null;\n\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tString[] record = line.trim().split(\"@\");\n\t\t\t\tif (record.length != 2)\n\t\t\t\t\tcontinue;\n\t\t\t\tparse(record[0], record[1]);\n\n\t\t\t}\n\t\t\t// close buffer reader\n\t\t\tbr.close();\n\t\t\t// Debug catch An exception\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t}\n\t}",
"private void readEvent() {\n\t\t\t\n\t\t\thandlePacket();\n\t\t\t\n\t\t}",
"public void parse(XMLEventReader xmlReader) throws XMLStreamException, SAXException {\n while (xmlReader.hasNext()) {\n XMLEvent e = xmlReader.nextEvent();\n if (e.isStartDocument()) handler.startDocument();\n else if (e.isEndDocument()) handler.endDocument();\n else if (e.isStartElement()) emitSE(e.asStartElement());\n else if (e.isEndElement()) emitEE(e.asEndElement()); \n else if (e.isProcessingInstruction()) emitPi((ProcessingInstruction) e);\n else if (e.isCharacters()) emitChars(e.asCharacters());\n else if (e.isAttribute()) emitAttr((Attribute) e);\n else if (e.isEntityReference()) emitEnt((EntityDeclaration) e);\n else if (e.isNamespace()) emitNS((Namespace) e);\n else if (e instanceof Comment) emitComment((Comment) e);\n else if (e instanceof DTD) emitDTD((DTD) e);\n else {\n throw new SAXException(\"Unknown / unhandled event type \" + e);\n } \n }\n }",
"public void parse(String uri, DefaultHandler handler) throws SAXException,\n IOException {\n if (uri == null) {\n throw new IllegalArgumentException(\"uri must not be null\");\n }\n parse(new InputSource(uri), handler);\n }",
"public void parse(InfoflowAndroidConfiguration config) {\n\t\t// Parse the data\n\t\tSAXParserFactory pf = SAXParserFactory.newInstance();\n\t\ttry {\n\t\t\tSAXParser parser = pf.newSAXParser();\n\t\t\tparser.parse(xmlStream, new SAXHandler(config));\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void startParsing(InputSource source) {\r\n\t\ttry {\r\n\t\t\t_parser.parse(source, this);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\tLoggerUtilsServlet.logErrors(e);\r\n\t\t}\r\n\t}",
"public void parseEventString(String s) {\n String[] lines = s.split(Game.EVENT_END);\n for (String line : lines) {\n if (!line.isEmpty()) {\n StringTokenizer st = new StringTokenizer(line);\n char firstChar = line.charAt(0);\n if (firstChar == EventGroup.PUSH_TOKEN) {\n this.pushEventGroup(EventGroup.fromString(this, st));\n } else if (firstChar == EventGroup.POP_TOKEN) {\n this.popEventGroup();\n } else {\n Event e = EventFactory.fromString(this, st);\n this.processEvent(e);\n }\n }\n }\n }",
"public void parseOnChange(SourceFileInfo sourceFile, Text text, Consumer<SourceFileModel> onUpdatedModel) {\n\t\tscheduler.scheduleTask(\n\t\t\t\t\"parse\",\n\t\t\t\t\"Parse file \" + sourceFile.getFile().getName(),\n\t\t\t\tConstraint.CPU,\n\t\t\t\tsourceFile,\n\t\t\t\tfile -> {\n\t\t\t\t\tfinal SourceFileModel sourceFileModel = file.getLanguage().getParseableLanguage().parseAndResolveChangedFile(\n\t\t\t\t\t\t\tsourceFile.getPath(),\n\t\t\t\t\t\t\ttext.asString(),\n\t\t\t\t\t\t\tsourceFile.getResolvedTypes(),\n\t\t\t\t\t\t\tcodeMap);\n\n\t\t\t\t\treturn sourceFileModel;\n\t\t\t\t},\n\t\t\t\t(file, sourceFileModel) -> {\n\n\t\t\t\t\tparsedSourceFiles.put(sourceFile, sourceFileModel);\n\t\t\t\t\t\n\t\t\t\t\tonUpdatedModel.accept(sourceFileModel);\n\t\t\t\t});\n\t\t\n\t}",
"protected void parseElements(XmlElement processElement) {\n\n parseStartEvents(processElement);\n parseActivities(processElement);\n parseEndEvents(processElement);\n parseSequenceFlow(processElement);\n }",
"void parse();",
"@Override\n\tpublic void parse() throws IOException {\n\t}",
"public void onMessage(String message) {\n\t\t\t\t\tCometMessage msg = deserializeMessage(message);\n\t\t\t\t\tif(msg != null)\n\t\t\t\t\t\tlistener.onMessage(msg);\n\t\t\t\t}",
"public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException {\r\n\t\tSAXParserFactory spf = SAXParserFactory.newInstance();\r\n\t\t// Create the parser from the factory instance\r\n\t\t// two exceptions to the main method\r\n\t\tSAXParser sp = spf.newSAXParser();\r\n\r\n\t\t/*\r\n\t\t * Parse the XML document. Event based parsing it sends it to a handler . It need a\r\n\t\t * handler to Accepts 2 parameters. The file and the handler.\r\n\t\t */\r\n\t\t\r\n\t\t//set the file path and handler. The handler can implement certain interfaces. Throw exceptions to the mail\r\n\t\tsp.parse(\"C:/GitHub/MyJava/MyJavaProject/src/com/stoneriver/xml/validation/intro.xml\", new MyHandler());\r\n\r\n\t}",
"public void parse(XMLStreamReader xmlReader) throws XMLStreamException, SAXException {\n handler.setDocumentLocator(new LocatorConv(xmlReader));\n parse(xef.createXMLEventReader(xmlReader));\n }",
"public abstract void onTextReceived(String message);",
"public void runParser() throws Exception {\n\t\tparseXmlFile();\r\n\t\t\r\n\t\t//get each employee element and create a Employee object\r\n\t\tparseDocument();\r\n\t\t\r\n\t\t//Iterate through the list and print the data\r\n\t\t//printData();\r\n\t\t\r\n\t}",
"@Override\n\tpublic void onParser(JSONArray response) {\n\n\t}",
"public interface OnReceiveListener {\n\n /**\n * Called when client receives a message.\n * @param response received message.\n */\n void onReceive( String response );\n }",
"@Override\n\tpublic void parse(RtfReader source, RtfHandler listener)\n\t\t\tthrows IOException {\n\t\tthis.source = source;\n\t\tthis.handler = listener;\n\t\tthis.groupDepth = 0;\n\t\tthis.parsingHex = false;\n\t\tthis.buffer = new ByteBuffer();\n\n\t\tlistener.handleStartDocument();\n\n\t\tint ch;\n\t\tparsingHex = false;\n\n\t\twhile (true) {\n\n\t\t\tch = source.read();\n\t\t\tif (ch == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (groupDepth < 0) {\n\t\t\t\tthrow new IllegalStateException(\"Group stack underflow\");\n\t\t\t}\n\n\t\t\tswitch (ch) {\n\t\t\tcase '{': {\n\t\t\t\thandleGroupStart();\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase '}': {\n\t\t\t\thandleGroupEnd();\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase '\\\\': {\n\t\t\t\thandleCommand();\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase '\\r':\n\t\t\tcase '\\n': {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase '\\t': {\n\t\t\t\thandleCharacterData();\n\t\t\t\tlistener.handleCommand(RtfComands.tab, 0, false, false);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tdefault: {\n\t\t\t\thandleCharacterByte(ch);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (groupDepth < 0) {\n\t\t\tthrow new IllegalStateException(\"Group stack underflow\");\n\t\t}\n\n\t\tif (groupDepth > 0) {\n\t\t\tthrow new IllegalStateException(\"Unmatched brace\");\n\t\t}\n\n\t\tlistener.handleEndDocument();\n\t}",
"@Override\n public void onEvent(Event event) {\n if (event.getClass() != MessageReceivedEvent.class)\n return;\n MessageReceivedEvent msgEvent = (MessageReceivedEvent) event;\n\n String threadName = Thread.currentThread().getName();\n\n for (Command command : commands) {\n if (!command.match(msgEvent))\n continue;\n\n LOG.info(\"Dispatching event to command {}\", command);\n\n // Metrics\n METRICS_RUNNING.labels(command.toString(), threadName)\n .inc();\n Histogram.Timer timer = METRICS_LATENCY.labels(command.toString(), threadName)\n .startTimer();\n\n // Invoke\n Object ret = null;\n try {\n ret = command.getMethod().invoke(command.getInstance(), event);\n } catch (InvocationTargetException ex) {\n // Exception in listener's code\n //todo better logging\n LOG.error(ex.getTargetException());\n continue;\n } catch (IllegalAccessException ex) {\n // Should never happen\n throw new RuntimeException(ex);\n } finally {\n // Metrics\n Runnable endMetrics = () -> {\n LOG.debug(\"Finished dispatching event for {}\", command);\n METRICS_RUNNING.labels(command.toString(), threadName)\n .dec();\n timer.observeDuration();\n };\n\n if (ret instanceof CompletionStage) {\n CompletionStage<?> future = (CompletionStage<?>) ret;\n future.thenRunAsync(endMetrics);\n } else {\n endMetrics.run();\n }\n }\n }\n }",
"@EventName(\"receivedMessageFromTarget\")\n EventListener onReceivedMessageFromTarget(EventHandler<ReceivedMessageFromTarget> eventListener);",
"List<LoggingEvent> parse(String xml) throws ParseException;",
"void onReceive( String response );",
"public abstract void processEvent(Object event);",
"public void parse() throws Exception {\r\n\t\tToken token;\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\ttry {\r\n\t\t\t// Loop over each token until the end of file.\r\n\t\t\twhile (!((token = nextToken()) instanceof EofToken)) {\r\n\t\t\t\tTokenType tokenType = token.getType();\r\n\t\t\t\tif (tokenType != ERROR) {\r\n\t\t\t\t\t// Format each token.\r\n\t\t\t\t\tsendMessage(new Message(TOKEN, new Object[] {\r\n\t\t\t\t\t\t\ttoken.getLineNumber(), token.getPosition(),\r\n\t\t\t\t\t\t\ttokenType, token.getText(), token.getValue() }));\r\n\t\t\t\t} else {\r\n\t\t\t\t\terrorHandler.flag(token,\r\n\t\t\t\t\t\t\t(OracleErrorCode) token.getValue(), this);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Send the parser summary message.\r\n\t\t\tfloat elapsedTime = (System.currentTimeMillis() - startTime) / 1000f;\r\n\t\t\tsendMessage(new Message(PARSER_SUMMARY, new Number[] {\r\n\t\t\t\t\ttoken.getLineNumber(), getErrorCount(), elapsedTime }));\r\n\t\t} catch (java.io.IOException ex) {\r\n\t\t\terrorHandler.abortTranslation(IO_ERROR, this);\r\n\t\t}\r\n\t}",
"public interface JsonInputListener {\n\n\n void onArrival(String json);\n}",
"@Override\n\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\tInputEvent inputEvent = (InputEvent) event;\n\t\t\tString input = inputEvent.getValue();\n\t\t\tloadData(input);\n\t\t}",
"public void processEvent(GovernanceEngineEvent event)\n {\n if (listener != null)\n {\n // todo\n }\n }",
"private static void handleEvent(Object listener, Object event) {\n RxAnnotatedHandlerFinder.handleEvent(listener, event);\n }",
"public void onEvent(TCPReceiverThread receiverThread, Event event) throws IOException;",
"public interface EventParser {\n\n\t/**\n\t * Parses the given String for XML to extract the parameter and assign them\n\t * to the members.\n\t * \n\t * @param xml\n\t * XML-Content\n\t * @return List of logging events\n\t * @throws ParseException\n\t * if fails to parse\n\t */\n\tList<LoggingEvent> parse(String xml) throws ParseException;\n\n\t/**\n\t * Parses the given input stream for XML to extract the parameter and assign\n\t * them to the members.\n\t * \n\t * @param is\n\t * XML Content\n\t * @return List of logging events\n\t * @throws ParseException\n\t * if fails to parse\n\t */\n\tList<LoggingEvent> parse(InputStream is) throws ParseException;\n\n\t/**\n\t * Get header of the event list.\n\t * \n\t * @return the header\n\t */\n\tString getResponseHeader();\n\n\t/**\n\t * Get the response for given events back to log4js.\n\t * \n\t * @param state\n\t * state of logging.\n\t * @param message\n\t * possible error message\n\t * @param throwable\n\t * possible exception\n\t * @return the message for response.\n\t */\n\tString getResponse(String state, String message, Throwable throwable);\n\n}",
"@Override\n public void onResponse(String response) {\n if(null != listener){\n listener.onComplete(mRespHandler.parse(response));\n }\n }",
"public void onMessage(Message msg) \n {\n try {\n TextMessage update = (TextMessage)msg;\n\n /*\n * SAMPLE UPDATE XML:\n <updates>\n <update>\n <symbol>SUNW</symbol>\n <datetime>2006-09-20T13:59:25.993-04:00</datetime>\n <price>4.9500</price>\n </update>\n </updates>\n */\n\n // To preserve memory when running within a no-heap realtime thread\n // (NHRT) the XML String is walked manually, without the use of\n // a DOM or SAX parser that would otherwise create lots of objects\n //\n String sUpdate = update.getText();\n int start = 0;\n boolean fParse = true;\n while ( fParse )\n {\n int sBegin = sUpdate.indexOf(SYMBOL_TAG, start);\n if ( sBegin < 0 )\n break;\n \n int sEnd = sUpdate.indexOf(SYMBOL_END_TAG, sBegin);\n String symbol = sUpdate.substring(sBegin+(SYMBOL_TAG.length()), sEnd);\n\n int pBegin = sUpdate.indexOf(PRICE_TAG, start);\n int pEnd = sUpdate.indexOf(PRICE_END_TAG, pBegin);\n String price = sUpdate.substring(pBegin+(PRICE_TAG.length()), pEnd);\n start = pEnd;\n \n onUpdate(symbol, price );\n }\n }\n catch ( Exception e ) {\n e.printStackTrace();\n }\n\t}",
"public interface OnMessageReceived {\n\t\tpublic void messageReceived(String message);\n\t}",
"public void processEvent(Packet packet) {\r\n\t\tint eventCode = packet.eventCode;\r\n\t\t\r\n\t\tswitch(eventCode) {\r\n\t\t\tcase 0: registerPeer(packet);\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase 2: insertFile(packet);\r\n\t\t\t //forwardPacket(packet);\r\n\t\t\t break;\r\n\t\t\tcase 3: findFile(packet);\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase 4: processFileLocation(packet);\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase 5: fileTransferReq(packet);\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase 6: recFile(packet);\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase 7: passingDHT(packet);\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase 8: peerQuitting(packet);\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase 9: updateDHTPeerQuit(packet);\r\n\t\t\t\t\tbreak;\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void onEvent(Object e) {\n\t}",
"public void run()\n {\n Event event = request.getEvent();\n if (logger.isDebugEnabled())\n logger.debug(\"Processing event: \"\n + event.getClass().getSimpleName());\n\n EventStatus status = null;\n try\n {\n if (request.isCancelRequested())\n {\n // If the event is cancelled note it.\n status = new EventStatus(false, true, null);\n if (logger.isDebugEnabled())\n logger.debug(\"Skipped cancelled event: \"\n + event.getClass().getSimpleName());\n }\n else\n {\n // Mark the request as started and submit to state machine.\n request.started();\n sm.applyEvent(event);\n status = new EventStatus(true, false, null);\n if (logger.isDebugEnabled())\n logger.debug(\"Applied event: \"\n + event.getClass().getSimpleName());\n }\n }\n catch (InterruptedException e)\n {\n // Handle an interruption, which could happen if we are cancelled\n // while executing.\n status = new EventStatus(false, true, e);\n logger.debug(String.format(\"Failed to apply event %s, reason=%s\",\n event, e.getLocalizedMessage()));\n }\n catch (Throwable e)\n {\n // Handle a failure.\n status = new EventStatus(false, false, e);\n logger.debug(String.format(\"Failed to apply event %s, reason=%s\",\n event, e.getLocalizedMessage()));\n }\n finally\n {\n // We need to store the status and call the completion\n // listener, if any. This must happen regardless of any\n // exception that occurs.\n try\n {\n if (listener != null)\n request.setAnnotation(listener.onCompletion(event, status));\n }\n catch (InterruptedException e)\n {\n // Do nothing; this is the end of the road for this task.\n }\n catch (Throwable e)\n {\n logger.error(\"Unexpected failure while calling listener\", e);\n }\n finally\n {\n // Make sure we record the request state no matter what to\n // prevent hangs.\n request.setStatus(status);\n }\n }\n }",
"public void receive(MessageHandler handler) {\n this.tokenizer = new StreamTokenizer(handler);\n channel.read(readBuffer, this, this.readCompletionHandler);\n }",
"public void parse(InputStream in, RecordListener listener) throws IOException {\n\t\tif (in == null)\n\t\t\tthrow new NullPointerException(\"in\");\n\t\tif (listener == null)\n\t\t\tthrow new NullPointerException(\"listener\");\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\t\tString line = null;\n\t\tint count = -1; // Number of expected genotype calls per line.\n\t\twhile ((line = reader.readLine()) != null) {\n\t\t\ttry {\n\t\t\t\tSampleRecord record = new ParsedSampleRecord(line);\n\t\t\t\tlistener.handleParsedRecord(record);\n\t\t\t\tif (count == -1) { // Initialize count to number of calls in the first line.\n\t\t\t\t\tcount = record.getNumberOfAvailableGenotypeCalls();\n\t\t\t\t}\n\t\t\t\telse { // Kind of kludgy, but probably ok for now.\n\t\t\t\t\tif (count != record.getNumberOfAvailableGenotypeCalls()) {\n\t\t\t\t\t\tSystem.err.println(count);\n\t\t\t\t\t\tSystem.err.println(record.getNumberOfAvailableGenotypeCalls());\n\t\t\t\t\t\tSystem.err.println(line);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (RuntimeException e) {\n\t\t\t\tlistener.handleBadRecordFormat(line);\n\t\t\t}\n\t\t}\n\t\treader.close();\n\t}",
"Answer perform(final String event);",
"private static void handleParser(char c) {\n if(c == '\\n'){\r\n return;\r\n }\r\n switch (state){\r\n case OUT_OF_TAG:{\r\n if(c == '<'){\r\n if(SAXParsedData.innerText.trim().length() != 0) {\r\n parserHandler.innerText(SAXParsedData.innerText);\r\n }\r\n SAXParsedData.innerText = \"\";\r\n SAXParsedData.tagName = \"\";\r\n state = SAXParserState.BEGIN_START_OR_END_TAG;\r\n } else if (c == '>') {\r\n state = SAXParserState.SYNTAX_ERROR;\r\n } else {\r\n SAXParsedData.innerText += c;\r\n }\r\n break;\r\n }\r\n case BEGIN_START_OR_END_TAG:{\r\n if(c == '/') {\r\n SAXParsedData.tagName = \"\";\r\n state = SAXParserState.IN_END_TAG;\r\n }else if(c == '?' || c == '!'){\r\n state = SAXParserState.METADATA;\r\n }else{\r\n SAXParsedData.tagName += c;\r\n state = SAXParserState.IN_START_TAG;\r\n }\r\n break;\r\n }\r\n case IN_START_TAG:{\r\n if(c == ' '){\r\n state = SAXParserState.SPACE_IN_START_TAG;\r\n }else if(c == '>'){\r\n // callback startElement event;\r\n parserHandler.startElement(SAXParsedData.tagName, SAXParsedData.attributes);\r\n SAXParsedData.clear();\r\n state = SAXParserState.CLOSE_START_TAG;\r\n }else {\r\n SAXParsedData.tagName += c;\r\n }\r\n break;\r\n }\r\n case SPACE_IN_START_TAG:{\r\n if(SAXParsedData.tagName.length() > 0){\r\n if(c != ' '){\r\n SAXParsedData.attribKey += c;\r\n state = SAXParserState.IN_ATTRIB_KEY;\r\n }\r\n }\r\n break;\r\n }\r\n case IN_ATTRIB_KEY:{\r\n if(c == '='){\r\n state = SAXParserState.IN_ATTRIB_EQUAL;\r\n }else{\r\n SAXParsedData.attribKey += c;\r\n }\r\n break;\r\n }\r\n case IN_ATTRIB_EQUAL:{\r\n if(c == '\"'){\r\n state = SAXParserState.IN_ATTRIB_VALUE;\r\n }\r\n break;\r\n }\r\n case IN_ATTRIB_VALUE:{\r\n if(c == '\"'){\r\n SAXParsedData.newAttribute();\r\n state = SAXParserState.IN_START_TAG;\r\n }else{\r\n SAXParsedData.attribValue += c;\r\n }\r\n break;\r\n }\r\n case CLOSE_START_TAG:{\r\n if(c == '<') {\r\n state = SAXParserState.BEGIN_START_OR_END_TAG;\r\n }else{\r\n SAXParsedData.innerText += c;\r\n state = SAXParserState.OUT_OF_TAG;\r\n }\r\n break;\r\n }\r\n case IN_END_TAG:{\r\n if(c == '>'){\r\n // callback endElement event\r\n parserHandler.endElement(SAXParsedData.tagName);\r\n state = SAXParserState.CLOSE_END_TAG;\r\n }else{\r\n SAXParsedData.tagName += c;\r\n }\r\n break;\r\n }\r\n case CLOSE_END_TAG:{\r\n if(c == ' '){\r\n state = SAXParserState.OUT_OF_TAG;\r\n }else if(c == '<'){\r\n SAXParsedData.tagName = \"\";\r\n state = SAXParserState.BEGIN_START_OR_END_TAG;\r\n }\r\n break;\r\n }\r\n case METADATA:{\r\n if(c == '>'){\r\n state = SAXParserState.CLOSE_END_TAG;\r\n }\r\n break;\r\n }\r\n case SYNTAX_ERROR:{\r\n try {\r\n\t\t\t\t\tthrow new Exception();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n }\r\n }\r\n\r\n }",
"private void parse() throws XMLStreamException {\n while (reader.hasNext()) {\n if (reader.next() == START_ELEMENT) {\n handleElement();\n }\n }\n }",
"void onNewEvent(Event event);",
"public abstract void parse() throws IOException;",
"public synchronized void listen() {\n// synchronized (this) {\n try {\n String input;\n if ((input = in.readLine()) != null) {\n parseCommand(input);\n }\n } catch (IOException ex) {\n Logger.getLogger(ClientIO.class.getName()).log(Level.SEVERE, null, ex);\n }\n// }\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlisten();\n\t\t\t\t}",
"@Override\n public void parse(Reader source, Listener listener) throws ParseException\n {\n String content20 = xwiki10To20(source);\n\n // Generate the XDOM using 2.0 syntax parser\n this.xwiki20Parser.parse(new StringReader(content20), listener);\n }",
"public void process(WatchedEvent event) {\n\t\t\n\t}",
"public void run()\n {\n yyparse();\n }",
"public interface OnMessageReceived {\n void messageReceived(String message);\n }",
"public void on(String event, final Handler<JsonObject> handler, final Handler<Message<JsonObject>> extendedHandler) {\n String address = id + \":\" + namespace.getName() + \":\" + event;\n\n if (extendedHandler != null) {\n vertx.eventBus().registerHandler(address, extendedHandler);\n handlerMap.put(address, extendedHandler);\n } else {\n Handler<Message<JsonObject>> localHandler = new Handler<Message<JsonObject>>() {\n public void handle(Message<JsonObject> event) {\n handler.handle(event.body());\n }\n };\n vertx.eventBus().registerHandler(address, localHandler);\n handlerMap.put(address, localHandler);\n }\n\t}",
"public interface OnMessageReceived {\n public void messageReceived(String message);\n }",
"public void onFinishedParsingInput() {\n // To output line to file: outputLine(string);\n }",
"public void handleMessageEvent(StunMessageEvent e) {\n delegate.handleMessageEvent(e);\n }",
"public void handleMessageEvent(StunMessageEvent e) {\n delegate.handleMessageEvent(e);\n }",
"@Override\n\t\t\t\t\t\tpublic void onResponse(String response) {\n\t\t\t\t\t\t\tparseRespense(response);\n\t\t\t\t\t\t}",
"public void clientInputEvent(String xml);",
"public void parse(String systemId)\r\n throws SAXException, IOException {\r\n try {\r\n ((AbstractHandler)consumer).clearFlags(); // reset all tag flags to false\r\n producer.parse(systemId);\r\n } finally {\r\n ((AbstractHandler)consumer).clearBuffer();\r\n }\r\n }",
"public void parse(InputStream stream, HandlerBase handler)\n throws SAXException, IOException {\n if (stream == null) {\n throw new IllegalArgumentException(\"stream must not be null\");\n }\n parse(new InputSource(stream), handler);\n }",
"public void parse(Visitor v) {\n\t\tTransitionsParser.Transitions tr = new TransitionsParser.Transitions();\n\t\tStreamTokenizer st = new StreamTokenizer(reader);\n\t\tst.ordinaryChar('.');\n\t\ttr.parse(st, v);\n\t}",
"public void parse(InputSource inSource,\n MedlineHandler handler)\n throws IOException, SAXException {\n\n setHandler(handler);\n parse(inSource);\n }",
"@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tparseFile(\"english_file.txt\");\r\n\t\t\t\t}",
"public void parse() {\n if (commandSeparate.length == 1) {\n parseTaskType();\n } else if (commandSeparate.length == 2) {\n parseTaskType();\n index = commandSeparate[1];\n taskName = commandSeparate[1];\n } else {\n parseTaskType();\n parseTaskName();\n parseTaskDate();\n }\n }",
"void invoke(T event);",
"public E parse(String argument);",
"public interface OnReceive{\n void onReceive(String message);\n}",
"public void listener() {\n\t\tif (this.command.getMode().equals(Command.MODE_TRACK)) {\n\t\t\tFilterQuery filterQuery = new FilterQuery();\n\t\t\tfilterQuery.track(this.command.getKeywords().toArray(new String[this.command.getKeywords().size()]));\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.filter(filterQuery);\n\t\t} else if (this.command.getMode().equals(Command.MODE_SAMPLE)) {\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.sample();\n\t\t} else {\n\t\t\t// do search\n\t\t}\n\t}",
"public interface EventsHandler {\n\n /**\n * Receive a token value, even for a token that was\n * annotated with {@link Fragment} : the handler has\n * to check the state of the token value to process\n * it properly.\n *\n * @param value The token value\n */\n void receive(TokenValue<?> value);\n\n /**\n * Receive a rule start event, even for a rule that was\n * annotated with {@link Fragment} : the handler has\n * to check the state of the token value to process\n * it properly.\n *\n * @param ruleStart The rule start event\n */\n void receive(RuleStart ruleStart);\n\n /**\n * Receive a rule end event, even for a rule that was\n * annotated with {@link Fragment} : the handler has\n * to check the state of the token value to process\n * it properly.\n *\n * @param ruleEnd The rule end event\n */\n void receive(RuleEnd ruleEnd);\n\n /**\n * Return this event receiver as a rewindable handler.\n *\n * @return A handler with rewindable capabilities.\n *\n * @see Rewindable\n */\n default Handler asHandler() {\n return new HandlerBuffer(this);\n }\n\n /**\n * Event fired when a rule starts.\n *\n * @author Philippe Poulard\n */\n class RuleStart extends RuleEvent<Rule> {\n\n /**\n * Create a rule start event.\n *\n * @param rule The rule that is starting.\n * @param trackable The scanner from which the value was read.\n * If the scanner is a trackable scanner, informations\n * about the position of the value will be available.\n *\n * @see #getPosition()\n */\n public RuleStart(Rule rule, Trackable trackable) {\n super(rule, trackable);\n }\n\n @Override\n public void emit(EventsHandler handler) {\n handler.receive(this);\n }\n\n }\n\n /**\n * Event fired when a rule ends ; indicates whether\n * the rule was fulfilled or not.\n *\n * @author Philippe Poulard\n */\n class RuleEnd extends RuleEvent<Rule> {\n\n /**\n * Indicates whether this rule was fulfilled or not.\n */\n public boolean matched;\n\n /**\n * Create a rule end event.\n *\n * @param rule The rule that is ending.\n * @param trackable The scanner from which the value was read.\n * If the scanner is a trackable scanner, informations\n * about the position of the value will be available.\n * @param matched <code>true</code> for a rule\n * that matched the input, <code>false</code>\n * otherwise.\n *\n * @see #getPosition()\n */\n public RuleEnd(Rule rule, Trackable trackable, boolean matched) {\n super(rule, trackable);\n this.matched = matched;\n }\n\n @Override\n public void emit(EventsHandler handler) {\n handler.receive(this);\n }\n }\n\n /**\n * When a rule or token is matched while parsing.\n *\n * A token is somewhat atomic, but a rule is matched\n * in two phases : when entering the rule and when\n * exiting the rule ; on exit, a boolean indicates\n * whether the rule was fulfilled or not.\n *\n * @author Philippe Poulard\n *\n * @param <R> <code>Rule</code> or <code>Token</code>\n */\n abstract class RuleEvent<R extends Rule> implements Trackable {\n\n Optional<Position> pos;\n R rule;\n\n /**\n * Create a rule/token event.\n *\n * @param rule The actual rule or token.\n * @param trackable The scanner from which the value was read.\n * If the scanner is a trackable scanner, informations\n * about the position of the value will be available.\n *\n * @see #getPosition()\n */\n public RuleEvent(R rule, Trackable trackable) {\n this.rule = rule;\n this.pos = trackable.getPosition();\n }\n\n /**\n * Return the token/rule that built this value.\n *\n * @return The token/rule.\n */\n public R getRule() {\n return this.rule;\n }\n\n /**\n * A position is available if the scanner tracks it.\n *\n * @return The position, when available.\n *\n * @see TrackableScanner\n */\n @Override\n public Optional<Position> getPosition() {\n return this.pos;\n }\n\n /**\n * Emit this event to the target handler.\n *\n * @param handler The target handler.\n */\n public abstract void emit(EventsHandler handler);\n\n @Override\n public String toString() {\n return this.rule.getName();\n }\n\n }\n\n /**\n * A wrapper of a parsed value, the token that creates it,\n * and the position where the value was found when\n * available.\n *\n * @author Philippe Poulard\n *\n * @param <T> The type of the value.\n */\n class TokenValue<T> extends RuleEvent<Token> {\n\n T value;\n\n /**\n * Wrap a value that was read.\n *\n * @param token The token that create this value.\n * @param value The actual value.\n * @param trackable The scanner from which the value was read.\n * If the scanner is a trackable scanner, informations\n * about the position of the value will be available.\n *\n * @see #getPosition()\n */\n public TokenValue(Token token, T value, Trackable trackable) {\n super(token, trackable);\n this.value = value;\n }\n\n /**\n * Return the value that was read.\n *\n * @param <V> The type of the value.\n *\n * @return The value.\n */\n @SuppressWarnings(\"unchecked\")\n public <V> V getValue() {\n return (V) this.value;\n }\n\n @SuppressWarnings(\"unchecked\")\n public void setValue(Object value) {\n this.value = (T) value;\n }\n\n /**\n * Return the type of the value.\n *\n * @return The type.\n */\n public Class<?> getType() {\n return this.value.getClass();\n }\n\n @Override\n public String toString() {\n return this.value.toString();\n }\n\n @Override\n public void emit(EventsHandler handler) {\n handler.receive(this);\n }\n }\n\n /**\n * A string as the token value.\n *\n * @author Philippe Poulard\n */\n class StringValue extends TokenValue<String> {\n\n /**\n * Create a string token value.\n *\n * @param token The token in the grammar that produced that value.\n * @param value The actual value.\n * @param trackable The scanner from which the value was read.\n * If the scanner is a trackable scanner, informations\n * about the position of the value will be available.\n */\n public StringValue(Token token, String value, Trackable trackable) {\n super(token, value, trackable);\n }\n\n /**\n * Create a string token value.\n *\n * @param token The token in the grammar that produced that value.\n * @param value The actual value as a Unicode codepoint.\n * @param trackable The scanner from which the value was read.\n * If the scanner is a trackable scanner, informations\n * about the position of the value will be available.\n */\n public StringValue(Token token, int value, Trackable trackable) {\n super(token, new String(Character.toChars(value)), trackable);\n }\n\n /**\n * Create a string token value.\n *\n * @param value The actual value.\n * @param otherValue Get the token and the trackable from the\n * other value to set in this string value.\n */\n public StringValue(String value, TokenValue<?> otherValue) {\n super(otherValue.getRule(), value, otherValue);\n }\n\n /**\n * Create a string token value.\n *\n * @param value The actual value as a Unicode codepoint.\n * @param otherValue Get the token and the trackable from the\n * other value to set in this string value.\n */\n public StringValue(int value, TokenValue<?> otherValue) {\n super(otherValue.getRule(), new String(Character.toChars(value)), otherValue);\n }\n\n }\n\n /**\n * A number as the token value.\n *\n * @author Philippe Poulard\n */\n class NumberValue extends TokenValue<Number> {\n\n /**\n * Create a number token value.\n *\n * @param token The token in the grammar that produced that value.\n * @param value The actual value.\n * @param trackable The scanner from which the value was read.\n * If the scanner is a trackable scanner, informations\n * about the position of the value will be available.\n */\n public NumberValue(Token token, Number value, Trackable trackable) {\n super(token, value, trackable);\n }\n\n @Override\n public Class<Number> getType() {\n return Number.class;\n }\n\n }\n\n}",
"public void parse(InputStream stream, DefaultHandler handler)\n throws SAXException, IOException {\n parse(new InputSource(stream), handler);\n }",
"public interface Listener {\n \n /** Fires as each character is received */\n void onCharacter(Terminal terminal, char data);\n \n /** Fires when new data is received\n * @param numChars the number of chars received. May be negative if more characters were deleted than added.\n * @param input the input received since the last EOL\n */\n void onInput(Terminal terminal, int numChars, String current);\n \n /** Fires when an EOL is received */\n void onLine(Terminal terminal, String line);\n }",
"protected abstract void parse(String line);",
"public void on(String event, final Handler<JsonObject> handler) {\n\t\tString address = id + \":\" + namespace.getName() + \":\" + event;\n\t\tHandler<Message<JsonObject>> localHandler = new Handler<Message<JsonObject>>() {\n\t\t\tpublic void handle(Message<JsonObject> event) {\n\t\t\t\thandler.handle(event.body());\n\t\t\t}\n\t\t};\n\t\tvertx.eventBus().registerHandler(address, localHandler);\n\t\thandlerMap.put(address, localHandler);\n\t}",
"public void parse(String filename);",
"public void parseXML(String XML);",
"public void parse(Lexer lex);",
"public void parseDocument(File XMLInputFile) throws FunctionException {\r\n\t\t\t\r\n\t\t\tLog.log(\"XMLParser -> parseDocument started\");\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\t//get a factory\r\n\t\t\t\tSAXParserFactory spf = SAXParserFactory.newInstance();\r\n\t\t\t\t//get a new instance of parser\r\n\t\t\t\tSAXParser sp = spf.newSAXParser();\r\n\t\t\t\t//parse the file and also register this class for call backs\r\n\t\t\t\tsp.parse(XMLInputFile, this);\r\n\t\t\t}catch(SAXException se) {\r\n\t\t\t\tthrow new FunctionException(\"SAXException had occurred.\\n\"+se.getMessage());\r\n\t\t\t}catch(ParserConfigurationException pce) {\r\n\t\t\t\tthrow new FunctionException(\"ParserConfigurationException had occurred.\\n\"+pce.getMessage());\r\n\t\t\t}catch (IOException ie) {\r\n\t\t\t\tthrow new FunctionException(\"IOException had occurred.\\n\"+ie.getMessage());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tLog.log(\"XMLParser -> parseDocument completed\");\r\n\t\t}",
"private void delegate(MessageEvent event) throws IOException {\n MessageChannel channel = event.getChannel();\n BullyAlgorithmParticipantImpl.Message messageType = BullyAlgorithmParticipantImpl.Message.valueOf(event.getActionCommand());\n\n int senderProcessId = 0;\n try {\n senderProcessId = channel.readNextInt();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n switch(messageType) {\n case Election:\n self.onElectionMessage(senderProcessId);\n break;\n case Answer:\n self.onAnswerMessage(senderProcessId);\n break;\n case Victory:\n self.onVictoryMessage(senderProcessId);\n break;\n }\n }",
"public void parseOnChange(SourceFileInfo sourceFile, Text text, ResolvedTypes resolvedTypes, Consumer<SourceFileModel> onUpdatedModel) {\n\t\ttaskManager.scheduleTask(\n\t\t\t\t\"parse\",\n\t\t\t\t\"Parse file \" + sourceFile.getFile().getName(),\n\t\t\t\tConstraint.CPU,\n\t\t\t\tsourceFile,\n\t\t\t\tfile -> {\n\t\t\t\t\t\n\t\t\t\t\tfinal LanguageComponent languageComponent = languages.getLanguageComponent(file.getLanguage());\n\t\t\t\t\t\n\t\t\t\t\tfinal SourceFileModel sourceFileModel = languageComponent.getParseableLanguage().parseAndResolveChangedFile(\n\t\t\t\t\t\t\tsourceFile.getPath(),\n\t\t\t\t\t\t\ttext.asString(),\n\t\t\t\t\t\t\tresolvedTypes,\n\t\t\t\t\t\t\tcodeMap);\n\n\t\t\t\t\treturn sourceFileModel;\n\t\t\t\t},\n\t\t\t\t(file, sourceFileModel) -> {\n\n\t\t\t\t\tparsedSourceFiles.put(sourceFile, sourceFileModel);\n\t\t\t\t\t\n\t\t\t\t\tonUpdatedModel.accept(sourceFileModel);\n\t\t\t\t});\n\t\t\n\t}",
"public void onPacketReceived(Consumer<APINetworkPacket> consumer) {\n packetReceived.register(consumer);\n }",
"private void parseMessages() {\n\n // Find the first delimiter in the buffer\n int inx = rx_buffer.indexOf(DELIMITER);\n\n // If there is none, exit\n if (inx == -1)\n return;\n\n // Get the complete message\n String s = rx_buffer.substring(0, inx);\n\n // Remove the message from the buffer\n rx_buffer = rx_buffer.substring(inx + 1);\n\n // Send to read handler\n sendToReadHandler(s);\n\n // Look for more complete messages\n parseMessages();\n }",
"public void startParse(InputSource source) throws SAXException\n {\n if (fIncrementalParser==null)\n throw new SAXException(XMLMessages.createXMLMessage(XMLErrorResources.ER_STARTPARSE_NEEDS_SAXPARSER, null)); //\"startParse needs a non-null SAXParser.\");\n if (fParseInProgress)\n throw new SAXException(XMLMessages.createXMLMessage(XMLErrorResources.ER_STARTPARSE_WHILE_PARSING, null)); //\"startParse may not be called while parsing.\");\n\n boolean ok=false;\n\n try\n {\n ok = parseSomeSetup(source);\n }\n catch(Exception ex)\n {\n throw new SAXException(ex);\n }\n\n if(!ok)\n throw new SAXException(XMLMessages.createXMLMessage(XMLErrorResources.ER_COULD_NOT_INIT_PARSER, null)); //\"could not initialize parser with\");\n }",
"private static void addConsumer()\r\n\t{\r\n\t\tparsers++;\r\n\t\tParser consumer = new Parser();\r\n\t\tconsumer.start();\r\n\t}",
"void onAnything(String unformatedMessage);",
"void provideSAXEvents(ContentHandler handler) throws SAXException;",
"private interface ParseInterface {\n public void parse(String sentence);\n }",
"private void parse() {\n if (workingDirectory != null) {\n Parser.initConstants(this, workingDirectory, remainderFile);\n Parser.parseIt();\n workingDirectory = null;\n remainderFile = null;\n jbParse.setEnabled(false);\n }\n }",
"@Override\n public void parseXml(Element ele, LoadContext lc) {\n\n }"
] | [
"0.57324564",
"0.5640458",
"0.5576579",
"0.5571277",
"0.5552152",
"0.5361264",
"0.53400445",
"0.5317534",
"0.5315665",
"0.52671057",
"0.5254269",
"0.5237167",
"0.5209749",
"0.5181812",
"0.5180319",
"0.51676506",
"0.5161882",
"0.5148798",
"0.51454365",
"0.5135597",
"0.51109385",
"0.5107703",
"0.5086663",
"0.50478876",
"0.5034479",
"0.50216764",
"0.5021443",
"0.5012742",
"0.4982096",
"0.49810356",
"0.4978006",
"0.49773103",
"0.4960917",
"0.4957025",
"0.49522927",
"0.49509948",
"0.49500734",
"0.49464327",
"0.49454847",
"0.49422696",
"0.4925097",
"0.49163598",
"0.48909786",
"0.48884022",
"0.48864007",
"0.48849818",
"0.48836797",
"0.48796093",
"0.4875145",
"0.4867109",
"0.48644924",
"0.48563576",
"0.48512733",
"0.4851088",
"0.48454702",
"0.48415488",
"0.48414928",
"0.48284188",
"0.4828108",
"0.4806914",
"0.48016286",
"0.47981986",
"0.47795147",
"0.47721744",
"0.47719744",
"0.47718424",
"0.47699448",
"0.4769343",
"0.4769343",
"0.47668827",
"0.47586146",
"0.4757593",
"0.47541934",
"0.47506857",
"0.4746713",
"0.47436762",
"0.4743076",
"0.4740606",
"0.47382417",
"0.47330344",
"0.4726714",
"0.47265744",
"0.47224486",
"0.47188985",
"0.47150528",
"0.47103676",
"0.4706096",
"0.47037417",
"0.4693998",
"0.46932033",
"0.4690162",
"0.46892318",
"0.4685166",
"0.46835512",
"0.46792036",
"0.4674206",
"0.46701828",
"0.4666835",
"0.4655054",
"0.4653642",
"0.4653185"
] | 0.0 | -1 |
Recupera a postagem selecionada e passa a mesma para a outra activity | @Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Postagem postagem = listaDePostagens.get(position);
String idPodt = postagem.getIdPostagem();
Intent i = new Intent(getApplicationContext(), VisualizandoPostagensActivity.class);
i.putExtra("postagem", postagem);
i.putExtra("idPostagem", idPodt);
i.putExtra("usuario", dadosDoUsuario);
startActivity(i);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void obterDadosActivityLista() {\r\n bNnovo = getIntent().getExtras().getBoolean(\"novo\");\r\n }",
"@Override\n public void onClick(View view) {\n Post info_post = ControladoraPresentacio.getpost_perName(view.getContentDescription().toString());\n ControladoraPosts.settitle(info_post.getTitle());\n ControladoraPosts.setDescripcion(info_post.getDescription());\n ControladoraPosts.setuser(info_post.getUser());\n ControladoraPosts.setid(info_post.getId());\n ControladoraPosts.setdate(info_post.getTime());\n //Nos vamos a la ventana de VisualizeListOUser\n Intent intent = new Intent(PersonalPosts.this, VisualizePosts.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n //finish();\n }",
"public void postularse() {\n\t\t\n\t\ttry {\t\t\t\n\n\t\t\tPostulante postulante= new Postulante();\n\t\t\tpostulante.setLegajo(Integer.valueOf(this.txtLegajo.getText()));\n\t\t\tpostulante.setFamiliaresACargo(Integer.valueOf(this.txtFamiliaresACargo.getText()));\n\t\t\tpostulante.setNombre(txtNombre.getText());\n\t\t\tpostulante.setApellido(txtApellido.getText());\n\t\t\t//postulante.setFechaDeNacimiento(this.txtFechaDeNaciminto.getText());\n\t\t\tpostulante.setCarrera(this.cmbCarrera.getSelectedItem().toString());\n\t\t\tpostulante.setNacionalidad(this.txtNacionalidad.getText());\n\t\t\tpostulante.setLocalidad(this.txtLocalidad.getText());\n\t\t\tpostulante.setProvincia(this.txtProvincia.getText());\n\t\t\t//postulante.setSituacionSocial(this.txtSituacionSocial.getText());\n\t\t\tpostulante.setDomicilio(this.txtDomicilio.getText());\n\t\t\tpostulante.setCodigoPostal(this.txtCodigoPostal.getText());\n\t\t\tpostulante.setEmail(this.txtEmail.getText());\n\t\t\tpostulante.setTelefono(Long.valueOf(this.txtTelefono.getText()));\n\t\t\t\n\t\t\t\n\t\t\tint ingresos=0, miembrosEconomicamenteActivos = 0;\n\t\t\tfor(Familiar familiar: familiares) {\n\t\t\t\tingresos+=familiar.getIngresos();\n\t\t\t\tif(ingresos > 0) {\n\t\t\t\t\tmiembrosEconomicamenteActivos++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tpostulante.setCantidadDeFamiliares(familiares.size());\n\t\t\tdouble promedio = Math.random() * (61) + 30 ; \n\t\t\tpostulante.setPromedio((int) promedio);\n\t\t\t\n\t\t\t\n\t\t\tint pIngresos, pActLaboral = 0, pVivienda = 0, pSalud = 0, pDependencia, pPromedio, pRendimiento, pDesarrollo;\n\t\t\t\n\t\t\t//Puntaje Ingresos\n\t\t\tint canastaBasicaPostulante = familiares.size() * canastaBasicaPromedio; \n\t\t\tif(ingresos <= canastaBasicaPostulante) {\n\t\t\t\tpIngresos = 30;\n\t\t\t}\n\t\t\telse if(ingresos >= (2*canastaBasicaPostulante)) {\n\t\t\t\tpIngresos = 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpIngresos = (int) (30 - 0.15 * (familiares.size() - ingresos));\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Condicion Actividad Laboral\n\t\t\t\n\t\t\t\n\t\t\tint puntajeMiembros = 0;\n\t\t\t\n\t\t\tfor (Familiar familiar: familiares) {\n\t\t\t\t\tif(familiar.getIngresos() == 0) {\n\t\t\t\t\t\tpuntajeMiembros = puntajeMiembros + 5;\n\t\t\t\t\t}\n\t\t\t\t\telse if(familiar.getIngresos() < salarioMinimo) {\n\t\t\t\t\t\tpuntajeMiembros = puntajeMiembros + 3;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(miembrosEconomicamenteActivos>0) {\n\t\t\tpActLaboral = puntajeMiembros/miembrosEconomicamenteActivos;\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Vivienda - Extrae de cmbVivienda: 0 sin deudas - 1 con deudas - 2 sin propiedad\n\t\t\tint condicionVivienda = this.cmbVivienda.getSelectedIndex();\n\t\t\tswitch (condicionVivienda) {\n\t\t\tcase 0:\n\t\t\t\tpVivienda = 0;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tpVivienda = 3;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tpVivienda = 5;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Salud - Extrae de cmbSalud: 0 tiene obra - 1 cobertura parcial - 2 no tiene\n\t\t\tint condicionSalud = this.cmbSalud.getSelectedIndex();\n\t\t\tswitch (condicionSalud) {\n\t\t\tcase 0:\n\t\t\t\tpSalud = 0;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tpSalud = 3;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tpSalud = 5;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Dependencia\n\t\t\tif (familiares.size() - miembrosEconomicamenteActivos == 0) {\n\t\t\t\tpDependencia = 0;\n\t\t\t}\n\t\t\telse if(familiares.size() - miembrosEconomicamenteActivos > 2) {\n\t\t\t\tpDependencia = 5;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tpDependencia = 3;\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Rendimiento académico\n\t\t\tint materiasAprobadas = (int) (Math.random() * (11));\n\t\t\tif(materiasAprobadas == 0) {\n\t\t\t\tpRendimiento = 4;\n\t\t\t\tpPromedio = 14;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint materiasRegularizadas = (int) (Math.random() * (41 - materiasAprobadas));\n\t\t\t\tpRendimiento = materiasAprobadas/materiasRegularizadas * 10;\n\t\t\t//Puntaje Promedio: Se recuperaria del sysacad\n\t\t\t\tpPromedio = (int) (promedio/10 * 3.5);\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Plan Desarrollo: Evaluado por comisión local\n\t\t\tpDesarrollo = (int) (Math.random() * 5 + 1);\n\n\n\t\t\tpuntaje = pIngresos + pActLaboral + pVivienda + pSalud + pDependencia + pPromedio + pRendimiento + pDesarrollo;\n\t\t\tpostulante.setMatAprobadas(materiasAprobadas);\n\t\t\t\n\t\t\ttry{ \n\t\t\t\tcontroller.postular(postulante,puntaje); \n\t\t\t\tJOptionPane.showMessageDialog(null, \"Se postuló al alumno \"+postulante.getNombre()+\" \"+postulante.getApellido()+\".\", \"Postulación exitosa.\", JOptionPane.OK_OPTION);\n\t\t\t\tlimpiarCampos();\n\t\t\t} \n\t\t\tcatch(Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No se pudo postular el alumno\", \"Error\", JOptionPane.OK_OPTION);\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tJOptionPane.showMessageDialog(null, \"Datos incorrectos\", \"Error\", JOptionPane.OK_OPTION);\n\t\t}\n\t\t\n\t}",
"@Override\n public void onClick(View view) {\n\n TextView txtTitulo;\n Button btnGuardar;\n final TextInputEditText txtTituloPost;\n final TextInputEditText txtContenidoPost;\n\n dialogAgregarPost.setContentView(R.layout.activity_agregar);\n dialogAgregarPost.setCancelable(true);\n dialogAgregarPost.create();\n dialogAgregarPost.show();\n\n txtTitulo=dialogAgregarPost.findViewById(R.id.txtTitulo);\n btnGuardar=dialogAgregarPost.findViewById(R.id.btnGuardar);\n\n txtTituloPost=dialogAgregarPost.findViewById(R.id.titulo);\n txtContenidoPost=dialogAgregarPost.findViewById(R.id.contenido);\n\n\n //****** SE CREA UNA VARIABLE ESTÁTICA \"agregarEditar\" PARA VALIDAR Y CAMBIARLE EL TÍTULO AL DIALOG SEGÚN SEA INSERCION O ACTUALIZACION******//\n\n\n agregarEditar=\"AGREGAR\";\n\n if(PostActivity.agregarEditar==\"AGREGAR\")\n {\n txtTitulo.setText(\"AGREGAR POST\");\n }\n else\n {\n txtTitulo.setText(\"EDITAR POST\");\n }\n\n //****** EVENTO CLICK DE GUARDAR EN EL FORM DE INSERCION DE POSTS ******//\n\n btnGuardar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n //****** SE CREA LA URL ******//\n String url = \"https://jsonplaceholder.typicode.com/posts\";\n\n //****** SE CREA UNA SOLICITUD DE COLA DONDE SE LE MANDA EL MÉTODO \"POST\", LA URL Y SE CREAN LOS EVENTOS \"RESPONSE\" Y \"ON ERROR RESPONSE\" ******//\n\n StringRequest requestCrearPost = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n //****** SI LA SOLICITUD SE COMPLETA CORRECTAMENTE Y EL RESPONSE ES \"OK\", SE MUESTRA UN TOAST DE CONFIRMACIÓN Y SE RE-CREA LA ACTIVIDAD******//\n Toast.makeText(PostActivity.this, \"POST CREADO CORRECTAMENTE\", Toast.LENGTH_SHORT).show();\n recreate();\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n //****** SI LA SOLICITU NO SE COMPLETA CORRECTAMENTE, SE MUESTRA UN TOAST CON EL ERROR ******//\n Toast.makeText(getApplicationContext(), error.toString(), Toast.LENGTH_SHORT).show();\n\n }\n }) {\n\n //****** SE MAPEAN Y SE RETORNAN LOS PARÁMETROS MANDÁNDOLE EL NOMBRE (COMO LO PIDE EL SERVIDOR) Y EL VALOR ******//\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"title\", txtTituloPost.getText().toString());\n params.put(\"body\", txtContenidoPost.getText().toString());\n params.put(\"userId\", MainActivity.idUsuario);\n\n return params;\n }\n };\n //****** SE AGREGA A LA COLA DE SOLICITUDES LA SOLICITUD \"requestCrearPost\" ******//\n queue.add(requestCrearPost);\n }\n\n });\n\n }",
"public void recuperandoDadosUsuarioescolhido(){\n Bundle bundle = getIntent().getExtras();\n if (bundle != null){\n if (bundle.containsKey(\"usuarioSelecionado\")){\n dadosDoUsuario = (Usuario) bundle.getSerializable(\"usuarioSelecionado\");\n }\n }\n\n // Configurando Toolbar\n\n toolbar.setTitle(dadosDoUsuario.getNome());\n setSupportActionBar(toolbar);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n // Configurando Imagem\n if (dadosDoUsuario.getFoto() != null){\n if (!dadosDoUsuario.getFoto().isEmpty()){\n Uri url = Uri.parse(dadosDoUsuario.getFoto());\n Glide.with(getApplicationContext()).load(url).into(civFotoPerfil);\n }\n }\n\n // Configurando Seguidores Postagens e Seguindo\n\n //stPublicacao = String.valueOf(dadosDoUsuario.getPublicacoes());\n stSeguidores = String.valueOf(dadosDoUsuario.getSeguidores());\n stSeguindo = String.valueOf(dadosDoUsuario.getSeguindo());\n\n tvSeguindo.setText(stSeguindo);\n tvSeguidores.setText(stSeguidores);\n //tvPublicacao.setText(stPublicacao);\n\n // Configurando Referencia postagens Usuario Escolhido\n postagensUsuarioRef = ConfiguracaoFirebase.getFirebaseDatabase()\n .child(\"postagens\")\n .child(dadosDoUsuario.getId());\n\n // Inicializa o Universal Image Loader\n inicializarImageLoader();\n // Recupera as Postagens do nosso Banco de Dados\n carregarFotosPostagem();\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(context, ChatActivity.class);\n intent.putExtra(\"hisUid\", post.getRequester_UID());\n intent.putExtra(\"requestPost\", post);\n intent.putExtra(\"cplatformPost\", postData);\n context.startActivity(intent);\n activity.finish();\n }",
"private void postNewPost() {\n if (mIsReplyOnBulletin) {\n OperationManager operationManager = OperationManager.getInstance(NewPostActivity.this);\n operationManager.postNewReply(etNewPostMsg.getText().toString(),\n getIntent().getExtras().getLong(EXTRA_POST_ID), NewPostActivity.this);\n } else {\n OperationManager operationManager = OperationManager.getInstance(NewPostActivity.this);\n operationManager.postNewBulletin(etNewPostSubject.getText().toString()\n , etNewPostMsg.getText().toString(), mFilesAdapter.getData(), NewPostActivity.this);\n\n }\n finish();\n }",
"public void onClickPostBtn(View v){\n\t\tmProgressDialog = CustomProgressDialog.createDialog(this);\n\t\tmProgressDialog.show();\n\t\tmActor.postFeedback();\n\t}",
"@Override\n public void onClick(View v) {\n PopupMenu popup = new PopupMenu(PostActivity.this, tres_punts);\n Menu popupMenu = popup.getMenu();\n popup.getMenuInflater().inflate(R.menu.popup_menu, popupMenu);\n\n if (current) {\n popupMenu.findItem(R.id.report_post).setVisible(false);\n if (hidden) popupMenu.findItem(R.id.hide_post).setVisible(false);\n else popupMenu.findItem(R.id.show_post).setVisible(false);\n } else {\n if (reported) popupMenu.findItem(R.id.report_post).setVisible(false);\n if (hidden) popupMenu.findItem(R.id.hide_post).setVisible(false);\n else popupMenu.findItem(R.id.show_post).setVisible(false);\n popupMenu.findItem(R.id.editar_post).setVisible(false);\n\n }\n if (data_post_anterior()) {\n popupMenu.findItem(R.id.editar_post).setVisible(false);\n }\n else {\n popupMenu.findItem(R.id.reobrir_post).setVisible(false);\n }\n if(!isMod && !current) popupMenu.findItem(R.id.borrar_post).setVisible(false);\n\n //registering popup with OnMenuItemClickListener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n public boolean onMenuItemClick(MenuItem item) {\n Toast.makeText(\n PostActivity.this,\n R.string.msgYouClicked + item.getTitle().toString(),\n Toast.LENGTH_SHORT\n ).show();\n\n switch (item.getItemId()) {\n case R.id.reobrir_post:\n Intent intent1 = new Intent(getApplicationContext(), EditActivityActivity.class);\n intent1.putExtra(\"postId\", post_id);\n intent1.putExtra(\"post\", post);\n intent1.putExtra(\"editar\", \"no\");\n intent1.putExtra(\"postType\", post.getTipus());\n startActivity(intent1);\n break;\n\n case R.id.show_post:\n new ControladorPresentacioPostOpen(PostActivity.this, getApplicationContext());\n new ControladorPresentacioLoginActivity();\n new ControladorPresentacioLoginActivity(ControladorPresentacioLoginActivity.getActivityLogin(), getApplicationContext());\n ControladorPresentacioPostOpen.updateRemoveHiddenList(post.getId()\n , ControladorPresentacioLoginActivity.getUserSessio());\n Snackbar snackbar = Snackbar\n .make(coordinatorLayout, R.string.confShowPostAgain, Snackbar.LENGTH_LONG)\n .setAction(R.string.undo, new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //li.getCurrentUser().addHiddenPost(post.getId());\n new ControladorPresentacioPostOpen(PostActivity.this, getApplicationContext());\n new ControladorPresentacioLoginActivity();\n new ControladorPresentacioLoginActivity(ControladorPresentacioLoginActivity.getActivityLogin(), getApplicationContext());\n ControladorPresentacioPostOpen.updateAddHiddenList(post.getId()\n , ControladorPresentacioLoginActivity.getUserSessio());\n Snackbar snackbar2 = Snackbar.make(coordinatorLayout, \"Request canceled!\", Snackbar.LENGTH_SHORT);\n snackbar2.show();\n }\n });\n snackbar.show();\n break;\n case R.id.hide_post:\n //li.getCurrentUser().addHiddenPost(post.getId());\n new ControladorPresentacioPostOpen(PostActivity.this, getApplicationContext());\n new ControladorPresentacioLoginActivity();\n new ControladorPresentacioLoginActivity(ControladorPresentacioLoginActivity.getActivityLogin(), getApplicationContext());\n ControladorPresentacioPostOpen.updateAddHiddenList(post.getId()\n , ControladorPresentacioLoginActivity.getUserSessio());\n Snackbar snackbar3 = Snackbar\n .make(coordinatorLayout, R.string.confPostHidden, Snackbar.LENGTH_LONG)\n .setAction(R.string.undo, new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //li.getCurrentUser().removeHiddenPost(post.getId());\n new ControladorPresentacioLoginActivity();\n new ControladorPresentacioLoginActivity(ControladorPresentacioLoginActivity.getActivityLogin(), getApplicationContext());\n new ControladorPresentacioPostOpen(PostActivity.this, getApplicationContext());\n ControladorPresentacioPostOpen.updateRemoveHiddenList(post.getId()\n , ControladorPresentacioLoginActivity.getUserSessio());\n Snackbar snackbar4 = Snackbar.make(coordinatorLayout, \"Message is showed!\", Snackbar.LENGTH_SHORT);\n snackbar4.show();\n }\n });\n snackbar3.show();\n break;\n\n case R.id.report_post:\n cp.report_post(current_user, post_id);\n break;\n case R.id.borrar_post:\n onDelete();\n\n break;\n\n case R.id.editar_post:\n Intent intent2 = new Intent(getApplicationContext(), EditActivityActivity.class);\n intent2.putExtra(\"postId\", post_id);\n intent2.putExtra(\"post\", post);\n intent2.putExtra(\"editar\", \"si\");\n intent2.putExtra(\"postType\", post.getTipus());\n startActivity(intent2);\n break;\n\n case R.id.maps:\n Intent intent = new Intent(getApplicationContext(), MapsActivity.class);\n intent.putExtra(\"origin\", \"post\");\n intent.putExtra(\"lat\", post.getLat());\n intent.putExtra(\"lng\", post.getLng());\n startActivity(intent);\n break;\n\n case R.id.user_profile:\n Intent perfil = new Intent(getApplicationContext(), ProfileActivity.class);\n perfil.putExtra(\"profile_user\", post_user);\n startActivity(perfil);\n break;\n\n }\n return true;\n }\n });\n\n popup.show();\n }",
"@Override\n\tvoid postarComentario() {\n\n\t}",
"public void postButtonPressed(View view){\n if (isOnline()) {\n Toast.makeText(this, getResources().getString(R.string.sharing_facebook_toast), Toast.LENGTH_SHORT).show();\n mPendingAction = true;\n Session session = Session.getActiveSession();\n if (session == null) {\n session = new Session(getApplicationContext());\n Session.OpenRequest openSessionRequest = new Session.OpenRequest(this);\n }\n else{\n if (session.getState().equals(SessionState.CREATED)){\n // Session is not opened or closed, session is created but not opened.\n session = new Session(this);\n Session.setActiveSession(session);\n session.openForPublish(new Session.OpenRequest(this).setCallback(callback).setPermissions(PERMISSION));\n }\n else{\n onSessionStateChange(session, session.getState(), null);\n }\n }\n Session.setActiveSession(session);\n }else{\n Toast.makeText(this, getResources().getString(R.string.sharing_facebook_toast_no_internet), Toast.LENGTH_SHORT).show();\n\n }\n\n }",
"public void onClick(View v) {\n post.setTitle(titleEditText.getText().toString());\n post.setContent(descriptionEditText.getText().toString());\n post.setImageUrl((String) gallery.getSelectedItem());\n\n PostAction.curatePost(post, jsonForSelectedSharers(), PostCurateActivity.this, true, new PostAction.OnActionComplete() {\n\n @Override\n public void onActionComplete(Post in, Post out) {\n Intent i = new Intent();\n i.putExtra(\"postToAdd\", out);\n i.putExtra(\"postToRemove\", in);\n PostCurateActivity.this.setResult(TabPostsListActivity.RESULT_ADD_CURATED_AND_REMOVE_CURABLE, i);\n PostCurateActivity.this.finish();\n }\n });\n }",
"public void publishEvents() {\n Bundle params = new Bundle();\n params.putString(\"name\", \"Reserva Cancha Finder\");\n params.putString(\"caption\", \"CanchaFinder\");\n params.putString(\"description\", Seleccion);\n params.putString(\"link\", \"http://www.solweb.co/reservas/CanchaFinder/index.php\");\n params.putString(\"picture\",\"http://www.solweb.co/reservas/api_movil/ic_launcher.png\");\n\n WebDialog feedDialog = (new WebDialog.FeedDialogBuilder(this,currentSession, params))\n .setOnCompleteListener(new WebDialog.OnCompleteListener() {\n\n @Override\n public void onComplete(Bundle values,FacebookException error) {\n if (error == null) {\n // When the story is posted, echo the success\n // and the post Id.\n final String postId = values.getString(\"post_id\");\n if (postId != null) {\n // do some stuff\n } else {\n // User clicked the Cancel button\n Toast.makeText(getApplicationContext(),\n \"Publish cancelled\", Toast.LENGTH_SHORT).show();\n }\n } else if (error instanceof FacebookOperationCanceledException) {\n // User clicked the \"x\" button\n Toast.makeText(getApplicationContext(),\n \"Publish cancelled\", Toast.LENGTH_SHORT).show();\n } else {\n // Generic, ex: network error\n Toast.makeText(getApplicationContext(),\n \"Error posting story\", Toast.LENGTH_SHORT).show();\n }\n }\n\n }).setFrom(\"\").build();\n feedDialog.show();\n\n }",
"@Override\n public void onClick(View v) {\n String nom=editNom.getText().toString();\n String descripcio=editDesripcio.getText().toString();\n String estat=txtEstat.getText().toString();\n try{\n //fa la conexio a la base de dades amb els parametres que fica l'usuari per generar una ruta+\n if(!(nom.equals(\"\") && descripcio.equals(\"\") && estat.equals(\"\"))){\n String[] parametres={nom,descripcio, String.valueOf(usuari.getID()),rutaSTR,estatSTR};\n new PostGenerarRuta(context,progressBar).execute(parametres);\n }else {\n Toast.makeText(getApplicationContext(),\"Les dades no son valides\",Toast.LENGTH_SHORT).show();\n }\n }catch (Exception ex) {\n Toast.makeText(context, ex.getMessage(), Toast.LENGTH_SHORT).show();\n Log.i(\"errorPost\", ex.getMessage());\n }\n }",
"public void send(){\n JSONArray to = new JSONArray();\n\n\n //TODO\n\n for(String username:selected)to.put(username);\n\n\n\n Intent returnIntent = new Intent();\n //Util.showDialog(this,to.toString());\n returnIntent.putExtra(\"selected\",to.toString());\n setResult(Activity.RESULT_OK,returnIntent);\n\n finish();\n /*\n String title = getIntent().getStringExtra(\"title\");\n String content = getIntent().getStringExtra(\"content\");\n API.createPost(this,to,\"text\",title,content,new Response.Listener<JSONObject>(){\n public void onResponse(JSONObject response) {\n try {\n\n String status = response.getString(\"status\");\n if(status.equals(\"error\")){\n String msg = response.getString(\"message\");\n Util.showDialog(me, msg);\n }else{\n setResult(2);\n finish();\n }\n\n\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n });*/\n }",
"protected void newPost() {\n\t\tIntent intent = new Intent(this, EditTopicActivity.class);\n\t\tintent.putExtra(EditPostActivity.IS_NEW, true);\n\n\t\tstartActivity(intent);\n\t}",
"public String onPostPers() {\n \r\n JobOffer c=categoryMetier.findJobOfferById(idCategorySelected);\r\n filDiscussion.setCategory(c);\r\n filDiscussion.setDateDiscussion(new java.util.Date());\r\n\r\n this.filDiscussionMetier.update(this.filDiscussion);\r\n return\"Forum\";\r\n }",
"@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.btnPost:\n String s = mTxtPost.getText().toString().trim();\n post(s);\n }\n }",
"@Override\n public void onClick(View view) {\n startPosting();\n\n }",
"public void recuperarDados() {\n\n id = getArguments().getString(\"id\");\n nome = getArguments().getString(\"nome\");\n raca = getArguments().getString(\"raca\");\n idade = getArguments().getString(\"idade\");\n sexo = getArguments().getString(\"sexo\");\n cor = getArguments().getString(\"cor\");\n\n imgPerfil = getArguments().getString(\"imgPerfil\");\n img01 = getArguments().getString(\"img01\");\n img02 = getArguments().getString(\"img02\");\n img03 = getArguments().getString(\"img03\");\n tipo = getArguments().getString(\"tipo\");\n Log.e(\"id\", \"idedit\"+id);\n Log.e(\"nome\", \"nomeedit\"+nome);\n\n\n\n assert sexo != null;\n if (sexo.equals(\"Macho\")) {\n machoAnimal.setChecked(true);\n } else {\n femeaAnimal.setChecked(true);\n }\n\n nomeAnimal.setText(nome);\n idadeAnimal.setText(idade);\n corAnimal.setText(cor);\n\n\n if (imgPerfil != null)\n Picasso.get().load(imgPerfil).into(perfilImagem);\n\n /* if (img01 != null)\n Picasso.get().load(img01).into(imagem01);\n\n if (img02 != null)\n Picasso.get().load(img02).into(imagem02);\n\n if (img03 != null)\n Picasso.get().load(img03).into(imagem03);*/\n\n }",
"@Override\n public void handleMessage(android.os.Message msg) {\n super.handleMessage(msg);\n int type = msg.what;\n if (countTextView != null) {\n countTextView.setText(\"\");\n countTextView.setVisibility(View.GONE);\n }\n switch (type) {\n case 1:\n//\t\t\tshowDialog(\"User invitation sent\",true);\n Toast.makeText(BulkInvitationScreen.this, \"Invite sent\", Toast.LENGTH_SHORT).show();\n//\t\t\tif(inviteFromReg){\n//\t\t\t\tIntent intent = new Intent(BulkInvitationScreen.this, HomeScreen.class);\n//\t\t\t\tintent.putExtra(\"ADMIN_FIRST_TIME\", true);\n//\t\t\t\tstartActivity(intent);\n//\t\t\t\tfinish();\n//\t\t\t}\n//\t\t\telse\n//\t\t\t\trestartActivity(BulkInvitationScreen.this);\n break;\n case 2:\n//\t\t\tshowDialog(\"User already added.\",false);\n Toast.makeText(BulkInvitationScreen.this, \"Invite already sent!\", Toast.LENGTH_SHORT).show();\n break;\n case 3:\n//\t\t\tshowDialog(\"User already added in this domain.\",false);\n Toast.makeText(BulkInvitationScreen.this, \"Invite already sent!\", Toast.LENGTH_SHORT).show();\n break;\n }\n if (adapter != null) {\n adapter.removeSelectedItems();\n adapter.notifyDataSetChanged();\n }\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n\n MenuItem searchItem = menu.findItem(R.id.menu_buscador);\n\n final SearchView searchView = (SearchView) MenuItemCompat.getActionView(searchItem);\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n Toast.makeText(MainActivity.this, \"asd\", Toast.LENGTH_SHORT).show();\n\n try {\n\n\n /*\n Comprobar la disponibilidad de la Red\n */\n ConnectivityManager connMgr = (ConnectivityManager)\n getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n\n if (networkInfo != null && networkInfo.isConnected()) {\n // Iniciar Tarea asícrona\n new PostCommentTask().\n execute(\n new URL(\"http://invixion.com/insertar_medico.php\"));\n\n // Finalizar actividad\n// finish();\n Toast.makeText(MainActivity.this, \"falta el execute\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(MainActivity.this, \"Error de conexión\", Toast.LENGTH_LONG).show();\n }\n\n }\n catch (Exception e){\n e.printStackTrace();\n }\n //se oculta el EditText\n searchView.setQuery(\"\", false);\n searchView.setIconified(true);\n return true;\n }\n @Override\n public boolean onQueryTextChange(String newText) {\n textoBuscado.setText(\"asd:\" +newText);\n comment = newText;\n return true;\n }\n });\n\n MenuItemCompat.setOnActionExpandListener(searchItem, new OnActionExpandListener() {\n @Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true;\n }\n\n @Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n return true;\n }\n });\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id == R.id.action_send) {\n\n\n\n\n\n //Izprashtam Parse message\n SendParsePushMessagesAndParseObjects sendParse =\n new SendParsePushMessagesAndParseObjects();\n\n //zadavame tipa na saobshtenieto, ako ne e zadadeno veche, triabva da e samo text\n if(mMessageType == null) {\n mMessageType = ParseConstants.TYPE_TEXTMESSAGE;\n }\n\n String loveMessage = messageToSend.getText().toString();\n\n\n sendParse.send(ParseUser.getCurrentUser(),parseObjectIDs,parseUserNames,\n mMessageType,loveMessage,mMediaUri, this);\n\n\n //Message sent.Switch to main screen.\n Intent intent = new Intent(SendMessage.this,Main.class);\n //dobaviame flagove, za da ne moze usera da se varne pak kam toya ekran\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n\n }\n\n\n\n return super.onOptionsItemSelected(item);\n }",
"public void Post(View V) {\n Intent intent = new Intent(getApplicationContext(), PostActivity.class);\n startActivity(intent);\n }",
"public void enviarMensaje(View v) {\n if (edt_titulo.getText().toString().equals(\"\") == false && edt_mensaje.getText().toString().equals(\"\") == false) {\n String query = \"INSERT INTO Mensaje(Titulo,Contenido,Fecha,OrigenID,DestinatarioID) VALUES ('\" + edt_titulo.getText().toString() + \"','\" + edt_mensaje.getText().toString() + \"',\" + global.devolverFechaActual() + \",\" + global.getUSuario() + \",\" + listaID.get(sp_meds.getSelectedItemPosition()) + \")\";\n db.execSQL(query);\n Toast.makeText(this, \"Mensaje enviado.\", Toast.LENGTH_SHORT).show();\n finish();\n } else {\n Toast.makeText(this, \"Se deben rellenar tanto el título como el mensaje.\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n Intent sendIntent = new Intent();\n sendIntent.setAction(Intent.ACTION_SEND);\n sendIntent.putExtra(Intent.EXTRA_TEXT,\n \" Bonjour [Nom du destinataire] ! \" +\n \" \\n\\n Voici mon choix de parcours :\" +\n \" \\n \\n Semestre 1 \\n \\n\" +\n Connexion.CONNEXION.getSelectionUE().get(1) +\n \"\\n \\n Semestre 2 \\n \\n \"\n + Connexion.CONNEXION.getSelectionUE().get(2) +\n \" \\n \\n Semestre 3 \\n \\n\"\n + Connexion.CONNEXION.getSelectionUE().get(3) +\n \" \\n \\n Semestre 4 \\n \\n\"\n + Connexion.CONNEXION.getSelectionUE().get(4));\n sendIntent.setType(\"text/plain\");\n Intent shareIntent = Intent.createChooser(sendIntent, null);\n startActivity(shareIntent);\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic void onClick(View v) {\n\t\tif(v == cancel){\n\t\t\tLog.i(\"Newpost\", \"cancel\");\n\t\t} else if(v == send){\n\t\t\tEditText status = (EditText) findViewById(R.id.lulus_id_edit_newlulu);\n\t\t\tzuluContent = status.getText().toString();\n\t\t\tUpdateStatus task = new UpdateStatus();\n\t\t\ttask.execute();\n \tIntent myIntent = new Intent(NewZuluActivity.this, MyZulusActivity.class);\n \tNewZuluActivity.this.startActivity(myIntent);\n\t\t} else if(v == expire){\n\t\t\tLog.i(\"Newpost\", \"expire\");\n\t\t}\n\t}",
"public postevent(int flag) {\n byGetOrPost = flag;\n\n\n\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_item_tambah_bot) {\n// Intent bot = new Intent(MainActivity.this, DetailBot.class);\n// startActivity(bot);\n\n Message pesan = new Message(\"6285730595101\", \"Tes \" + Calendar.getInstance().getTimeInMillis(), \"wait\");\n db.collection(\"device\").document(token).collection(\"message\").add(pesan);\n // Do something\n return true;\n } else if (id == R.id.action_item_logout) {\n if(isMyServiceRunning(MessageService.class)){\n stopService(mServiceIntent);\n }\n mAuth.signOut();\n FirebaseMessaging.getInstance().unsubscribeFromTopic(\"news\");\n SharedPreferences.Editor editor = sharedpreferences.edit();\n editor.clear();\n editor.commit();\n Intent keluar = new Intent(MainActivity.this, LoginActivity.class);\n startActivity(keluar);\n finish();\n // Do something\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"public void onComplete(Bundle values) {\r\n\t\t final String postId = values.getString(\"post_id\");\r\n\t\t if (postId != null) {\r\n\t\t Log.d(\"FB Sample App\", \"Dialog Success! post_id=\" + postId);\r\n\t\t mAsyncRunner.request(postId, new WallPostRequestListener());\r\n\t\t } else {\r\n\t\t Log.d(\"FB Sample App\", \"No wall post made\");\r\n\t\t }\r\n\t\t \r\n\t\t Intent intent=new Intent(getActivity(), TelaPrincipal.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t}",
"@Override\n \tpublic void onClick (View v)\n \t{\n \t\tString status = editText.getText().toString();\n \t\tnew PostToTwitter().execute(status);\n \t}",
"@Override\n\tprotected boolean isCanFinish() {\n\t\tIntent intent = new Intent();\n\t\tintent.setAction(et.getText().toString().trim());\n\t\tsetResult(RESULT_OK, intent);\n\t\treturn true;\n\t}",
"private void queryPost() {\n tv_search.setText(\"Recently Added Posts:\");\n ParseQuery<Post> query = ParseQuery.getQuery(Post.class);\n query.include(Post.KEY_USER);\n query.setLimit(15);\n query.addDescendingOrder(Post.KEY_CREATED);\n query.findInBackground(new FindCallback<Post>() {\n @Override\n public void done(List<Post> posts, ParseException e) {\n if(e!= null){\n Log.e(tag, \"Issue with getting post\", e);\n return;\n }\n adaptor.clear();\n adaptor.addAll(posts);\n //allPost.addAll(posts);\n //adaptor.notifyDataSetChanged();\n //swipeRefreshLayout.setRefreshing(false);\n\n //user just created a post\n if (isJustCreatedNewPost == true)\n {\n //reset bool\n isJustCreatedNewPost = false;\n// //subscribe user to their new post channel\n// String postChannel = \"POST_\"+posts.get(0).getObjectId();\n// ParsePush.subscribeInBackground(postChannel);\n\n }\n }\n });\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int itemId = item.getItemId();\n if (itemId == R.id.menu_edit) {\n editTextTitle.setEnabled(true);\n editTextDesc.setEnabled(true);\n cancelEdit.setEnabled(true);\n acceptEdit.setEnabled(true);\n cancelEdit.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String title = getIntent().getExtras().getString(\"r_title\");\n String desc = getIntent().getExtras().getString(\"r_description\");\n editTextTitle.setText(title);\n editTextDesc.setText(desc);\n editTextTitle.setEnabled(false);\n editTextDesc.setEnabled(false);\n cancelEdit.setEnabled(false);\n acceptEdit.setEnabled(false);\n }\n });\n acceptEdit.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"Request\");\n String requestID = getIntent().getExtras().getString(\"r_id\");\n query.getInBackground(requestID, new GetCallback<ParseObject>() {\n @Override\n public void done(ParseObject object, ParseException e) {\n if (e == null) {\n object.put(\"request_title\", editTextTitle.getText().toString());\n object.put(\"request_desc\", editTextDesc.getText().toString());\n object.saveInBackground();\n }\n }\n });\n editTextTitle.setEnabled(false);\n editTextDesc.setEnabled(false);\n cancelEdit.setEnabled(false);\n acceptEdit.setEnabled(false);\n }\n });\n return true;\n\n } else if (itemId == R.id.menu_delete) {\n builder = new AlertDialog.Builder(this);\n builder.setMessage(\"¿Desea eliminar la tarea demandada?\");\n\n builder.setPositiveButton(\"Sí\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"Request\");\n String requestID = getIntent().getExtras().getString(\"r_id\");\n query.getInBackground(requestID, new GetCallback<ParseObject>() {\n @Override\n public void done(ParseObject object, ParseException e) {\n try {\n object.delete();\n } catch (ParseException parseException) {\n parseException.printStackTrace();\n }\n }\n });\n Intent intent = new Intent(getApplicationContext(), MainMenu.class);\n startActivity(intent);\n }\n });\n builder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n return true;\n\n } else if (itemId == R.id.menu_contact) {\n Intent intent = new Intent(getApplicationContext(), ChatActivity.class);\n String username = getIntent().getExtras().getString(\"r_username\");\n if (username.equals(ParseUser.getCurrentUser().getUsername())) {\n Toast.makeText(getApplicationContext(), \"No puedes contactar contigo mismo\", Toast.LENGTH_SHORT).show();\n } else {\n intent.putExtra(\"username_r\", username);\n startActivity(intent);\n }\n return true;\n\n } else if (itemId == R.id.menu_exchange) {\n Intent intent = new Intent(getApplicationContext(), TimeExchangeRequest.class);\n String username = getIntent().getExtras().getString(\"r_username\");\n if (username.equals(ParseUser.getCurrentUser().getUsername())) {\n Toast.makeText(getApplicationContext(), \"No puedes intercambiar tiempo contigo mismo\", Toast.LENGTH_SHORT).show();\n } else {\n intent.putExtra(\"r_id\", getIntent().getExtras().getString(\"r_id\"));\n intent.putExtra(\"r_username\", getIntent().getExtras().getString(\"r_username\"));\n intent.putExtra(\"r_title\", getIntent().getExtras().getString(\"r_title\"));\n startActivity(intent);\n }\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"public boolean isPost();",
"public boolean isPost();",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString tag=(String)inputView.getTag();\n\t\t\t\tString act,id,content;\n\t\t\t\tcontent=inputView.getText().toString();\n\t\t\t\tif(!content.contains(\"@\")){\n\t\t\t\t\ttag=null;\n\t\t\t\t}\n\t\t\t\tif(tag!=null){\n\t\t\t\t\tact=REPLY_COMMENT;\n\t\t\t\t\tid=tag;\n\t\t\t\t}else{\n\t\t\t\t\tact=COMMENT_POST;\n\t\t\t\t\tid=post.getPost_id();\n\t\t\t\t}\n\t\t\t\tfinal Map<String, String> reply = new HashMap<String, String>();\n\t\t\t\treply.put(\"app\", APP);\n\t\t\t\treply.put(\"mod\", MOD);\n\t\t\t\treply.put(\"act\", act);\n\t\t\t\treply.put(\"id\", id);\n\t\t\t\treply.put(\"content\", content);\n\t\t\t\treply.put(\"oauth_token\", OAUTH_TOKEN);\n\t\t\t\treply.put(\"oauth_token_secret\", OAUTH_TOKEN_SECRECT);\n\t\t\t\tnew Thread(new WeibaActionHelper(myHandler, mContext,\n\t\t\t\t\t\treply, COMMENT_OK)).start();\n\t\t\t}",
"@Override\n\tpublic void onClick(View v) {\n\t\tIntent intent;\n\t\tswitch (v.getId()) {\n\t\tcase R.id.line_back:\n\t\t\tonBackPressed();\n\t\t\tbreak;\n\t\tcase R.id.tv_tijiao:\n\t\t\tif (canPost()) {\n\t\t\t\tshowLoading();\n\t\t\t\ttijiaoHttpPost();\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_add_message_done) {\n Log.d(\"NewMessageActivity post string = \", \"posting\");\n if(mSending){\n return super.onOptionsItemSelected(item);\n }\n mSending = true;\n if(imageNameList.size() != 0){\n mCurrentUploadIndex = 0;\n mProgressBar.setVisibility(ProgressBar.VISIBLE);\n FileUploadTask uploadHead = (FileUploadTask) new FileUploadTask(mContext,mProgressBar,null,\"\", imageNameList.size(), 0, this)\n .execute(Environment.getExternalStorageDirectory() + \"/\" + Data.FOLDER + \"/\" + imageNameList.get(mCurrentUploadIndex),\"\");\n }\n else{\n try {\n postEvent();\n } catch (JSONException e) {\n mSending = false;\n e.printStackTrace();\n }\n }\n\n return true;\n }\n\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"private void publishQueston() {\n JSONObject job = new JSONObject();\n\n try {\n job.put(\"authent\", tools.getValue(Constants.AUTHENT));\n\n job.put(\"q_id\", getIntent().getStringExtra(\"id\"));\n job.put(\"content\", answer_content.getText().toString() + \"\");\n job.put(\"is_niming\", isAnonymity);\n if (imgList.size() > 0) {\n String str = gson.toJson(imgList);\n JSONArray jarr = new JSONArray(str);\n job.put(\"attachment\", jarr);\n }\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n MainBizImpl.getInstance()\n .onCirclModeRequest(myHandler, this, SEND_TASK_SUCESS,\n SEND_TASK_FIAL, job, \"questions/submitAnswer\");\n\n }",
"@SuppressWarnings(\"deprecation\")\n\tprotected void postToWall() {\n\t\tBundle parameters = new Bundle();\n\n\t\tparameters.putString(\"link\", link);\n\t\tfacebook.dialog(FacebookActivity.this, \"feed\", parameters,\n\t\t\t\tnew DialogListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onCancel() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tfinish();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onComplete(Bundle values) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\tfinish();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onError(DialogError e) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFacebookError(FacebookError e) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public boolean handleMessage(Message message) {\n String respuestPostMensaje=(String) message.obj;\n Log.d(\"RespuestaPost\",respuestPostMensaje.toString());\n\n if(respuestPostMensaje.contains(\"correctamente\"))\n {\n Log.d(\"SeGeneroUser\",respuestPostMensaje.toString());\n //mostrar mensaje\n Toast toast1 = Toast.makeText(vistaRegistro.getActividad(),\"Se creo el usuario\", Toast.LENGTH_SHORT);\n toast1.setGravity(Gravity.CENTER,0,500);\n toast1.show();\n vistaRegistro.getActividad().finish();\n\n } else\n {\n Log.d(\"No se puedo crear User\",\"No se puedo crear User\");\n Toast toast1 = Toast.makeText(vistaRegistro.getActividad(),\"No se puedo crear el usuario\", Toast.LENGTH_SHORT);\n toast1.setGravity(Gravity.CENTER,0,500);\n toast1.show();\n vistaRegistro.getActividad().finish();\n\n }\n\n\n return true;\n }",
"public void onClick(DialogInterface dialog, int which) {\n\n EditText Nombre = findViewById(R.id.editText);\n EditText Direccion = findViewById(R.id.editText2);\n EditText Telefono = findViewById(R.id.editText3);\n String nombre = Nombre.getText().toString();\n String direccion = Direccion.getText().toString();\n String telefono = Telefono.getText().toString();\n\n String[] correo = {getString(R.string.pedidos_mitienda_com)};\n String message = getString(R.string.pedido_de) + nombre;\n\n Intent intent2 = getIntent();\n String cantidadCafeSolo = intent2.getStringExtra(getString(R.string.cantidadCafeSolo));\n String cantidadCafeConLeche = intent2.getStringExtra(getString(R.string.cantidadCafeConLeche));\n String cantidadCafeCortado = intent2.getStringExtra(getString(R.string.cantidadCafeCortado));\n String modoEntrega = intent2.getStringExtra(getString(R.string.modoEntrega));\n String fecha = intent2.getStringExtra(getString(R.string._fecha));\n String time = intent2.getStringExtra(getString(R.string.time));\n\n String mensaje = getString(R.string.mi_pedido)\n + cantidadCafeConLeche + getString(R.string.cafes_con_leche)\n + cantidadCafeSolo + getString(R.string.cafes_solos)\n + cantidadCafeCortado + getString(R.string.cafes_cortados)\n + getString(R.string.la_fecha_de_entrega_es) + fecha + getString(R.string.y_la) + getString(R.string.hora_de_entrega) + time + \"\\n\"\n + getString(R.string.modo_de_entrega) + modoEntrega + \"\\n\"\n + getString(R.string.direccion) + direccion + \"\\n\"\n + getString(R.string.numero_de_telefono) + telefono + \"(\" + spinnerLabel + \")\";\n\n Intent sendIntent = new Intent();\n\n sendIntent.setAction(Intent.ACTION_SENDTO);\n sendIntent.setData(Uri.parse(getString(R.string.mailto)));\n sendIntent.putExtra(Intent.EXTRA_TEXT, mensaje);\n sendIntent.putExtra(Intent.EXTRA_EMAIL, correo);\n sendIntent.putExtra(Intent.EXTRA_SUBJECT, message);\n startActivity(sendIntent);\n }",
"private void getAndSetIncomingIntent(){\n if (getIntent().hasExtra(\"asso\")) {\n Log.d(TAG, getIntent().getStringExtra(\"asso\"));\n edt_asso_name.setText(getIntent().getStringExtra(\"asso\"));\n }\n if (getIntent().hasExtra(\"school\")) {\n edt_school.setText(getIntent().getStringExtra(\"school\"));\n }\n if (getIntent().hasExtra(\"purpose\")) {\n edt_purpose.setText(getIntent().getStringExtra(\"purpose\"));\n }\n if (getIntent().hasExtra(\"link\")) {\n edt_link.setText(getIntent().getStringExtra(\"link\"));\n }\n if (getIntent().hasExtra(\"type\")) {\n selectedSpinnerType = getIntent().getStringExtra(\"type\");\n }\n\n }",
"public void post(ActionEvent actionEvent) throws IOException, ClassNotFoundException {\n Post post;\n if (postPic != null) {\n post = new Post(thisUser.getUser().getUsername(), title.getText()\n , description.getText(), new Date(), thisUser.getUser().getProfileImage(), postPic);\n post.setPostPicAddress(file.toString());\n } else {\n post = new Post(thisUser.getUser().getUsername(), title.getText()\n , description.getText(), new Date(), thisUser.getUser().getProfileImage());\n post.setPostPicAddress(\"No postPic\");\n }\n\n post.setOwner(thisUser.getUser().getUsername());\n\n CommandSender commandSender = new CommandSender(CommandType.NEWPOST\n , post);\n\n Client.getObjectOutputStream().writeObject(commandSender);\n\n thisUser.setSearchedUser(thisUser.getUser());\n Main.loadAPage(actionEvent\n , \"../FXMLs/MyProfile.fxml\"\n , \"SBUgram - Your Profile\"\n );\n\n }",
"public void onClick(DialogInterface dialog,int id) {\n ref_number = userInput.getText().toString();\n new PostClass(context).execute();\n }",
"private void verificarMuerte() {\n if(vidas==0){\n if(estadoJuego==EstadoJuego.JUGANDO){\n estadoJuego=EstadoJuego.PIERDE;\n //Crear escena Pausa\n if(escenaMuerte==null){\n escenaMuerte=new EscenaMuerte(vistaHUD,batch);\n }\n Gdx.input.setInputProcessor(escenaMuerte);\n efectoGameOver.play();\n if(music){\n musicaFondo.pause();\n }\n }\n guardarPuntos();\n }\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tString textSubject=etopic.getText().toString();\n\t\t\t\t\t\t\t\t\t\tString textMsg=etext.getText().toString();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif (textMsg.isEmpty() || textSubject.isEmpty()) \n\t\t\t\t\t\t\t\t\t\t{ // CHECK IF ANY OF\n\t\t\t\t\t\t\t\t\t\t\t// THE TWO FIELD\n\t\t\t\t\t\t\t\t\t\t\t// IS EMPTY\n\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(AudioDoubt.this, \"Fill all the Fields...\",\n\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.count=5-AudioMainActivity.doubt.size();\n\t\t\t\t\t\t\t\t\t\t\t\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//Setting progressbar//\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\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\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\t\t\tebar.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\t\t\t\t\tesend.setVisibility(View.GONE);\n\t\t\t\t\t\t\t\t\t\t\t\t\tetopic.setEnabled(false);\n\t\t\t\t\t\t\t\t\t\t\t\t\tetext.setEnabled(false);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tsendTextRequest();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n public void onClick(View view) {\n // Get the clicked post\n int position = getAdapterPosition();\n // Valid Position\n if (position != RecyclerView.NO_POSITION) {\n Post post = posts.get(position);\n Intent intent = new Intent(context, DetailsActivity.class);\n // Doing the post parcelable means converting its attributes to a String\n intent.putExtra(\"postDetails\", Parcels.wrap(post));\n context.startActivity(intent);\n }\n }",
"public void btnApostarClick(View v) {\n\t\tString idAposta = (getIntent().getStringExtra(\"Usuari\") + getIntent()\r\n\t\t\t\t.getStringExtra(\"Circuit\"));\r\n\t\tAposta ap = new Aposta(idAposta, pr.getSelectedItem().toString(), sn\r\n\t\t\t\t.getSelectedItem().toString(), tr.getSelectedItem().toString(),\r\n\t\t\t\tqt.getSelectedItem().toString(), ce.getSelectedItem()\r\n\t\t\t\t\t\t.toString(), vr.getSelectedItem().toString());\r\n\r\n\t\tguardarAposta(ap);\r\n\r\n\t\tToast.makeText(this, \"Aposta Realitzada!\", Toast.LENGTH_SHORT).show();\r\n\r\n\t\tIntent i = new Intent(ApostaActivity.this, GPListActivity.class);\r\n\t\ti.putExtra(\"Usuari\", getIntent().getStringExtra(\"Usuari\"));\r\n\t\tstartActivity(i);\r\n\t}",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(Intent.ACTION_SEND);\n // se cambbia el tipo a texto plano\n i.setType(\"text/plain\");\n // se añade al intent el asunto\n i.putExtra(android.content.Intent.EXTRA_SUBJECT, R.string.listadelacompra);\n // Se crea la variable text1 que nos ayudara a concatenar los nombres de los atributos de la lista de productos\n String text1 = \"\";\n for (int x = 0 ; x < losproductos.size(); x++ ){\n String text = losproductos.get(x).getNombre() + losproductos.get(x).getDescripcion()+losproductos.get(x).getTalla()+losproductos.get(x).getPrecio()+ \"\\n\";\n text1 = text1 + text;\n }\n // cuando ya concatenamos todos los valores de la lista la añadimos al intent\n i.putExtra(android.content.Intent.EXTRA_TEXT,text1);\n // lanzamos el activity con el titulo\n startActivity(Intent.createChooser(i, getResources().getText(R.string.lista)));\n }",
"public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_share) {\n String tags = ((MultiAutoCompleteTextView) findViewById(R.id.share_tags)).getText().toString();\n new sharePost()\n .execute(postId,description.getText().toString(),\"Post\",ownerId,tags);\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public void onClick(View view)\n {\n Intent sendIntent = new Intent();\n // La accion es un envio a una aplicacion externa\n sendIntent.setAction(Intent.ACTION_SEND);\n // Enlace que vamos a enviar\n sendIntent.putExtra(Intent.EXTRA_TEXT, direccionAplicacion);\n // Se va a enviar un texto plano\n sendIntent.setType(\"text/plain\");\n\n // manda mensaje si no tiene aplicacion con la que compartir en el sistema\n Intent shareIntent = Intent.createChooser(sendIntent, \"no tengo aplicacion para compartir en emulador\");\n // Inicia la actividad compartir enlace de la noticia\n getContext().startActivity(shareIntent);\n }",
"@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tString [] str=(String [])msg.obj;\n\t\t\tfor(int i=0;i<6;i++)\n\t\t\t{System.out.println(str[i]);}\n\t\t\t if(mDialog.isShowing()==true){\n\t\t\t\t mDialog.dismiss(); \n\t\t\t }\n\t\t\t if(str[0].toString().equals(\"anyType{}\")==true){\n//\t\t\t \tSystem.out.println(str[0]);\n\t\t\t\t title.setText(str[1]);\n\t\t\t\t time.setText(str[2]);\n\t\t\t\t type.setText(str[3]);\n\t\t\t\t content.setText(str[4]);\n\t\t\t\t name.setText(str[5]);\n//\t\t\t Toast.makeText(getApplicationContext(),\"发布成功\",Toast.LENGTH_SHORT).show();\n\t\t\t }\n\t\t\t else{\n\t\t\t \tToast.makeText(getApplicationContext(),str[0],Toast.LENGTH_SHORT).show();\n\t\t\t }\n\t\t}",
"protected String getSecondoPost() {\n// String testoPost;\n// String testo = this.getTestoNew();\n// String summary = this.getSummary();\n//// String edittoken = this.getToken();\n//\n// if (testo != null && !testo.equals(\"\")) {\n// try { // prova ad eseguire il codice\n// testo = URLEncoder.encode(testo, \"UTF-8\");\n//\n// } catch (Exception unErrore) { // intercetta l'errore\n// }// fine del blocco try-catch\n// }// fine del blocco if\n// if (summary != null && !summary.equals(\"\")) {\n// try { // prova ad eseguire il codice\n// summary = URLEncoder.encode(summary, \"UTF-8\");\n// } catch (Exception unErrore) { // intercetta l'errore\n// }// fine del blocco try-catch\n// }// fine del blocco if\n//\n// testoPost = \"text=\" + testo;\n// testoPost += \"&bot=true\";\n// testoPost += \"&minor=true\";\n// testoPost += \"&summary=\" + summary;\n//// testoPost += \"&token=\" + edittoken;\n//\n return \"\";\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n final TextView kor = (TextView) findViewById(R.id.kor);\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_who) {\n Intent intent = new Intent(getApplicationContext(),Info.class);\n startActivity(intent);\n }else if(id==R.id.quiz) {\n int diff = korlist.size();\n if (diff > 0) {\n Intent intent = new Intent(getApplicationContext(), quiz.class);\n intent.putExtra(\"englist\", englist);\n intent.putExtra(\"korlist\", korlist);\n startActivity(intent);\n } else {\n Snackbar.make(getWindow().getDecorView(), \"먼저 단어장을 로드해주세요\", Snackbar.LENGTH_LONG).show();\n }\n }/*else if(id==R.id.adj) {\n CustomDialog dialog = new CustomDialog(this);\n dialog.setDialogListener(new CustomDialog.CustomDialogListener() {\n @Override\n public void Clicked(Float value) {\n }\n\n });\n dialog.show();\n }*/\n return super.onOptionsItemSelected(item);\n }",
"private void sendPost() {\n Map<String,Object> values = new HashMap<>();\n values.put(Constants.MANAGEMENT,management);\n values.put(Constants.GENERAL_INFORMATION,generalnformation);\n values.put(Constants.SYMPTOMS,symptoms);\n\n FireBaseUtils.mDatabaseDiseases.child(caseStudyUrl).child(url).updateChildren(values);\n Toast.makeText(DiseaseEditActivity.this, \"Item Posted\",LENGTH_LONG).show();\n finish();\n }",
"@Override\n public void onClick(View view) {\n if(nombredeLineaSeleccionada[0].equals(\"Todas\")){\n Toast.makeText(getActivity(), \"ERROR SELECCIONE SOLO UNA LINEA DE COMPETENCIA, ERROR EN: \"+nombredeLineaSeleccionada[0], Toast.LENGTH_SHORT).show();\n }else {\n agregarCanasta();\n }\n //Toast.makeText(getActivity(), nombredeLineaSeleccionada[0], Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n \t\n \tif ((findViewById(R.id.details).getVisibility() == View.GONE)){\n \t\t\n finish();\n \t}else{\n \t\t findViewById(R.id.details).setVisibility(View.GONE);\n \t\t findViewById(R.id.newsfeed).setVisibility(View.VISIBLE);\n \t}\n break;\n \n \n case R.id.action_addpost:\n \t \n \t \n \t Intent intentxx = new Intent(home.this, addpost.class);\n \t\t\tstartActivity(intentxx);\n \t \n \t \n \t break;\n \n \n default:\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t\t\t\t\t\tpublic boolean onLongClick(View arg0) {\n\t\t\t\t\tif (!bean.data.get(position).status.equals(\"3\") && !bean.data.get(position).status.equals(\"4\") && !bean.data.get(position).status.equals(\"5\") && !bean.data.get(position).status.equals(\"9\")) {\n\t\t\t\t\t\t\tBuilder ad = new Builder(MylogisticakActivity.this);\n\t\t\t\t\t\t\tad.setTitle(\"温馨提示\");\n\t\t\t\t\t\t\tad.setMessage(\"是否取消发布\");\n\t\t\t\t\t\t\tad.setNegativeButton(\"确认\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\t\t\t\tint iid=bean.data.get(position).recId;\n\t\t\t\t\t\t\t\t\taddPostResult(iid);\n//\t\t\t\t\t\t\t\t\tToastUtil.shortToast(context, \"查看报价\");;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tad.setPositiveButton(\"取消\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\t\t\t\targ0.dismiss();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tad.create().show();\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\tif(bean.data.get(position).status.equals(\"4\") || bean.data.get(position).status.equals(\"5\") || bean.data.get(position).status.equals(\"9\") || bean.data.get(position).status.equals(\"7\")){\n\t\t\t\t\t\tBuilder ad = new Builder(MylogisticakActivity.this);\n\t\t\t\t\t\tad.setTitle(\"温馨提示\");\n\t\t\t\t\t\tad.setMessage(\"是否删除此条记录\");\n\t\t\t\t\t\tad.setNegativeButton(\"确认\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\t\t\tint iid=bean.data.get(position).recId;\n\t\t\t\t\t\t\t\taddPostResult(iid);\n//\t\t\t\t\t\t\t\tToastUtil.shortToast(context, \"查看报价\");;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tad.setPositiveButton(\"取消\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\t\t\targ0.dismiss();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tad.create().show();\n\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}",
"boolean onPostMessage(@NonNull String message, @Nullable Bundle extras);",
"private void publishFeedDialog() {\n\t\tBundle postParams = new Bundle();\n postParams.putString(\"name\", \"Care Apps\");\n postParams.putString(\"description\", description);\n postParams.putString(\"picture\", profile_path);\n \n\t WebDialog feedDialog = (new WebDialog.FeedDialogBuilder(this,com.facebook.Session.getActiveSession(),postParams))\n\t .setOnCompleteListener(new OnCompleteListener() {\n\t @Override\n\t public void onComplete(Bundle values,\n\t FacebookException error) {\n\t if (error == null) {\n\t final String postId = values.getString(\"post_id\");\n\t if (postId != null) {\n\t Toast.makeText(FB_ShareActivity.this,\n\t \"Posted story, id: \"+postId,\n\t Toast.LENGTH_SHORT).show();\n\t onBackPressed();\n\t } else {\n\t Toast.makeText(FB_ShareActivity.this, \n\t \"Publish cancelled\", \n\t Toast.LENGTH_SHORT).show();\n\t onBackPressed();\n\t }\n\t } \n\t else if (error instanceof FacebookOperationCanceledException) {\n\t Toast.makeText(FB_ShareActivity.this, \n\t \"Publish cancelled\", \n\t Toast.LENGTH_SHORT).show();\n\t onBackPressed();\n\t } \n\t else {\n\t Toast.makeText(FB_ShareActivity.this, \n\t \"Error posting story\", \n\t Toast.LENGTH_SHORT).show();\n\t onBackPressed();\n\t }\n\t }\n\t })\n\t .build();\n\t feedDialog.show();\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\r\n Intent myIntent = new Intent(PostFinishAcvitity.this, PostFormActivity.class);\r\n myIntent.addFlags(FLAG_ACTIVITY_PREVIOUS_IS_TOP);\r\n startActivity(myIntent);\r\n finish(); // close this activity and return to preview activity (if there is any)\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public void onClick(View v) {\n doPostThatYeah();\n }",
"@Override\n public void onClick(View v) {\n //EditText vacìo.\n\n etCardName.setText(\"\");\n etCardCVV.setText(\"\");\n etCardNumber.setText(\"\");\n etCardValidThru.setText(\"\"); //esperame miro el codigo\n\n Toast.makeText(getApplicationContext(),\"Pagado Exitosamente\",Toast.LENGTH_SHORT).show();\n Toast.makeText(getApplicationContext(),\"Brindanos tus Comentarios Para Nuestras Mejoras\",Toast.LENGTH_SHORT).show();\n //aqui pegas el codigo para abrir la otra activity\n startActivity(new Intent(Pago.this,Coomentarios.class));\n finish();\n\n\n//si ya sale amigo solo le agregare un evento mas q me envie a una nueva actividad desde el mismo si\n\n\n }",
"@Override\n\tpublic void onMessage(Message m) {\n\t\t\t\ttry {\n\n\t\t\t\t\tTextMessage ms = (TextMessage) m;\n\n\t\t\t\t\tString linea = ms.getText();\n\n\t\t\t\t\tString args[] = linea.split(\" - \");\n\n\t\t\t\t\tif (args[0].equals(\"consulta2\")) {\n\t\t\t\t\t\t// Ver envios del usuario\n\t\t\t\t\t\tif (args[1].equals(\"1\")) {\t\t\t\t\t\n\t\t\t\t\t\t\t//registrarPedido(args[2], args[3], args[4], args[5]);\n\t\t\t\t\t\t}else if (args[1].equals(\"2\")) {\n\t\t\t\t\t\t\t//cambiarEstado(args[2], args[3]);\n\t\t\t\t\t\t}else if (args[1].equals(\"3\")) {\n\t\t\t\t\t\t\t//ArrayList<String> ejecuciones = consultarEjecucionDeEtapas(args[2], args[3], args[4]);\n\t\t\t\t\t\t\t//responderConEjecucionesDeEtapas(ejecuciones);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if (args[0].equals(\"respuesta2\")) {\n\t\t\t\t\t\t// Ver envios del usuario\n\n\t\t\t\t\t\tif ( args[1].equals(\"1\") || args[1].equals(\"2\") ) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else if( args[1].equals(\"3\") ){\n\t\t\t\t\t\t\tString[] data = linea.substring( 16, ( linea.length() - 1 ) ).split(\"-\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tArrayList<String> ejec = new ArrayList<String>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\t\t\t\t\t\tString data0 = data[i];\n\t\t\t\t\t\t\t\tejec.add(data0);\n\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t//Numero del Pedido\n//\t\t\t\t\t\t\t\tString numPedido = data0[0];\n//\t\t\t\t\t\t\t\t//Codigo de la EstaciÛn\n//\t\t\t\t\t\t\t\tString codEstacion = data0[1];\n//\t\t\t\t\t\t\t\t//Numero de ejecuciones\n//\t\t\t\t\t\t\t\tString numEjecuciones = data0[2];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\n\t\t\t\t}\n\t\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n /*if (id == android.R.id.home){\n //Intent intent = new Intent();\n setResult(Activity.RESULT_CANCELED);\n finish();\n\n overridePendingTransition(\n R.anim.left_to_right_in, R.anim.left_to_right_out);\n }*/\n\n if(id == R.id.action_save){\n\n objectId = extras.getString(\"ObjectId\");\n\n final ParseQuery<ParseObject> object = ParseQuery.getQuery(\"Materia\");\n object.whereEqualTo(\"objectId\", objectId);\n object.getInBackground(objectId, new GetCallback<ParseObject>() {\n @Override\n public void done(ParseObject object, ParseException e) {\n if (e == null) {\n String newSummary, newHour;\n\n newSummary = editSummary.getText().toString();\n newHour = values[editHours.getValue()];\n\n object.put(\"Clase\", newSummary);\n object.put(\"Hora\", newHour);\n object.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if (e != null) {\n Toast.makeText(getApplicationContext(),\n \"Error al intentar agregar materia. Intente de nuevo.\",\n Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n }\n });\n\n setResult(Activity.RESULT_OK);\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"public void recibir_estado_partida(){\n\n }",
"@Override\n public void processFinish(String sRespuesta) {\n\n if(sRespuesta.isEmpty()){\n Toast.makeText(getApplicationContext(),\"Datos incorrectos\", Toast.LENGTH_LONG).show ();\n\n }\n if(sRespuesta.contains (\"no-user\")){\n Toast.makeText(getApplicationContext(),\"Correo incorrecto\", Toast.LENGTH_LONG).show ();\n\n } else if(sRespuesta.contains (\"incorrect-info\")){\n Toast.makeText(getApplicationContext(),\"Contraseña incorreta\", Toast.LENGTH_LONG).show ();\n }\n else {\n showSplash ();\n getUserInformation (sRespuesta);\n PreferenceUtils.saveSession (false, this); //Session no-facebook\n Intent intent;\n intent = new Intent (AccessActivity.this, MainActivity.class);\n intent.putExtra (\"user\", user);\n startActivity (intent);\n }\n\n }",
"private void send() {\n ModelManager.putFeedBack(getCurrentActivity(),\n GlobalValue.myAccount.getId() + \"\", edtTitle.getText()\n .toString(), edtDes.getText().toString(),type, true,\n new ModelManagerListener() {\n\n @Override\n public void onSuccess(Object object) {\n // TODO Auto-generated method stub\n edtDes.setText(\"\");\n edtTitle.setText(\"\");\n MainUserActivity activity = (MainUserActivity) getCurrentActivity();\n activity.backFragment(new AccountFragment());\n }\n\n @Override\n public void onError(VolleyError error) {\n // TODO Auto-generated method stub\n Toast.makeText(self, ErrorNetworkHandler.processError(error), Toast.LENGTH_LONG).show();\n }\n });\n }",
"public void onClick(View view) {\n if(validate_info(newRecipe)) {\n\n String date = new Date().toString();\n newRecipe.posted = date;\n newRecipe.updateDB();\n // go to menu\n Intent intent = new Intent(PostActivity.this, MenuActivity.class);\n Toast.makeText(PostActivity.this, \"Post successful\", Toast.LENGTH_SHORT).show();\n startActivity(intent);\n\n //change intent?\n }\n else {\n\n }\n\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tIntent intent;\r\n\t\tswitch (item.getItemId()) {\r\n\t\tcase 0: // Launch post form\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\tcase 1: // refresh\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\tcase 2: // show settings dialog\r\n\t\t\tintent = new Intent();\r\n\t\t\tintent.setClass(this, ActivityTopicView.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t\treturn true;\r\n\t\tcase 4:\r\n\t\t\tfillSaxData();\r\n\t\t\treturn true;\r\n\t\tcase 5: \r\n\t\t\tintent = new Intent();\r\n\t\t\tintent.setClass(this, ActivityPreferences.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t\treturn true;\r\n\t\tcase 6:\r\n\t\t\tfinish();\r\n\t\t\treturn true;\t\t\t\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n \tswitch (item.getItemId()) {\n\t case R.id.menu3_add:\n\t \tif(ParseUser.getCurrentUser() == null){\n\t\t \tToast.makeText(getActivity(), \"Debes iniciar sesion para agregar Recetas\", Toast.LENGTH_SHORT).show();\n\t\t \treturn false;\n\n\t \t}\n\t \tIntent intent = new Intent(act.getApplicationContext(), ActivityNuevaReceta.class);\n\t \tstartActivity(intent);\n\t \t//}else{Toast.makeText(this, \"Debes iniciar sesión\", Toast.LENGTH_SHORT);act.onBackPressed();}\n\t \t\n\t return true;\n\t \n\t \n\t \n\t default:\n\t return super.onOptionsItemSelected(item);\n }\n\t}",
"@Override\n public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n setContentView(R.layout.enviar_msg);\n etMensaje = (EditText)findViewById(R.id.etMensaje);\n \n //Interceptamos valor de la pila del activity anterior\n Intent intento = this.getIntent();\n destino = intento.getStringExtra(\"destino\");\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_fresh:\n //Judging if current page is the first page to resend request\n if (mPageNum == 1) {\n send_info.clear();//Clearing the list info\n cur_position = 0;\n total_pos = 0;\n new ChatAsyncTask().execute();\n listView.setSelection(listView.getCount() - 1);//Let listview show the bottom item\n } else {\n mPageNum = 1;//Reset the page num to 1, in case after refreshing current page is not 1\n send_info.clear();\n cur_position = 0;\n total_pos = 0;\n new ChatAsyncTask().execute();\n listView.setSelection(listView.getCount() - 1);//Let listview show the bottom item\n }\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(isAdded()){\n\t\t\t\t\tif(comment.getText().length()>0){\n\n\t\t\t\t\t\t//\t\t\t\t\t\tcommentSubject=subject.getText().toString().trim();\n\t\t\t\t\t\tcommentStr=comment.getText().toString().trim();\n\t\t\t\t\t\tif(sharedImagePath==null){\n\t\t\t\t\t\t\tAlertHomeFragment dialog=new AlertHomeFragment(HomeFragment.this,\"Info\",\"Image not added to post.\\n\\nNote: Sharing your image with your status is recommended.\",\"Proceed Anyway\",\"Cancel\",false,\"not_added\");\n\t\t\t\t\t\t\tdialog.setCancelable(true);\n\t\t\t\t\t\t\tdialog.show(fm, \"post\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tmyPrefs = getActivity().getSharedPreferences(\"myPrefs\",getActivity().MODE_PRIVATE);\n\t\t\t\t\t\t\tdoPostCommentsActions(myPrefs);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tAlertHomeFragment dialog=new AlertHomeFragment(HomeFragment.this,\"Warning\",\"All fields are mandatory to be filled.\",\"OK\",\"Proceed\",true,\"field_check\");\n\t\t\t\t\t\tdialog.setCancelable(true);\n\t\t\t\t\t\tdialog.show(fm, \"field\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tstatusAlert.dismiss();\n\t\t\t\t\tToast.makeText(getActivity(), \"Something went wrong.Try sharing your updates again.\", 1000).show();\n\t\t\t\t}\n\t\t\t}",
"@Override\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n System.out.println(\"Has Match Status : One \");\n if (intent.hasExtra(\"matchStatus\")){\n System.out.println(\"Has Match Status : Two \");\n sessionManager.setRefreshChatFragment(true);\n viewPager.setCurrentItem(2,true);\n }\n }",
"public void displayRespuesta(){\n final Dialog customDialog = new Dialog(this);\n customDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n customDialog.setCancelable(false);\n customDialog.setContentView(ar.com.klee.marvinSimulator.R.layout.dialog_sms_respond);\n customDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n\n actualDialog = customDialog;\n\n Typeface fontBold = Typeface.createFromAsset(getApplicationContext().getAssets(),\"Bariol_Bold.otf\");\n Typeface fontRegular = Typeface.createFromAsset(getApplicationContext().getAssets(),\"Bariol_Bold.otf\");\n\n answer = (EditText) customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.contenido);\n answer.setTypeface(fontRegular);\n\n TextView textFor = (TextView) customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.textFor);\n textFor.setTypeface(fontRegular);\n\n TextView contact = (TextView) customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.contact);\n TextView phone = (TextView) customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.phone);\n\n if(!mensaje.getContactName().equals(mensaje.getPhoneNumber())) {\n contact.setText(mensaje.getContactName());\n contact.setTypeface(fontBold);\n phone.setText(mensaje.getPhoneNumber());\n phone.setTypeface(fontRegular);\n }else{\n contact.setText(mensaje.getPhoneNumber());\n contact.setTypeface(fontBold);\n phone.setText(\"Número no agendado\");\n phone.setTypeface(fontRegular);\n }\n\n\n customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.cancelar).setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View view){\n STTService.getInstance().setIsListening(false);\n commandHandlerManager.setNullCommand();\n customDialog.dismiss();\n }\n });\n customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.enviar).setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View view) {\n String smsBody=answer.getText().toString();\n if(smsBody.equals(\"\"))\n Toast.makeText(getApplicationContext(), \"Ingresá un mensaje\", Toast.LENGTH_LONG).show();\n else {\n try {\n\n SmsManager smsManager = SmsManager.getDefault();\n smsManager.sendTextMessage(mensaje.getPhoneNumber(), null, smsBody, null, null);\n if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT)\n saveInOutbox(mensaje.getPhoneNumber(), smsBody);\n Toast.makeText(getApplicationContext(), \"SMS enviado\", Toast.LENGTH_LONG).show();\n\n } catch (Exception e) {\n Toast.makeText(getApplicationContext(), \"El envío falló. Reintentá luego\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n STTService.getInstance().setIsListening(false);\n commandHandlerManager.setNullCommand();\n customDialog.dismiss();\n }\n }\n });\n customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.leer).setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View view)\n {\n final boolean isListening = STTService.getInstance().getIsListening();\n STTService.getInstance().setIsListening(false);\n\n String smsBody = answer.getText().toString();\n\n if(smsBody.equals(\"\"))\n Toast.makeText(getApplicationContext(), \"Ingresá un mensaje\", Toast.LENGTH_LONG).show();\n else {\n\n customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.cancelar).setEnabled(false);\n customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.leer).setEnabled(false);\n customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.enviar).setEnabled(false);\n\n int delay = commandHandlerManager.getTextToSpeech().speakTextWithoutStart(smsBody);\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n STTService.getInstance().setIsListening(isListening);\n customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.cancelar).setEnabled(true);\n customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.leer).setEnabled(true);\n customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.enviar).setEnabled(true);\n }\n }, delay);\n }\n }\n });\n\n customDialog.show();\n\n }",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (NetworkUtil.isNetworkConnected(Meeting.this)) {\n if (id == R.id.action_home) { //메인 화면\n Intent intent = new Intent(Meeting.this, MainActivity.class);\n startActivity(intent);\n overridePendingTransition(R.anim.anim_slide_in_left, R.anim.anim_slide_out_right);\n finish();\n } else if (id == R.id.action_notice) { //공지사항\n Intent intent = new Intent(Meeting.this, Notice.class);\n intent.putExtra(\"idx\", psMidx); //조회 키 값을 넘겨준다\n intent.putExtra(\"id\", psMid);\n intent.putExtra(\"name\", psMname);\n intent.putExtra(\"path\", psMpath);\n intent.putExtra(\"dept\", psMdept);\n startActivityForResult(intent, 1); // Sub_Activity 호출\n overridePendingTransition(R.anim.anim_slide_in_left, R.anim.anim_slide_out_right);\n finish();\n } else if (id == R.id.action_member) { //직원 조회\n Intent intent = new Intent(Meeting.this, Staff.class);\n intent.putExtra(\"idx\", psMidx);\n intent.putExtra(\"id\", psMid);\n intent.putExtra(\"name\", psMname);\n intent.putExtra(\"path\", psMpath);\n intent.putExtra(\"dept\", psMdept);\n intent.putExtra(\"sTelephone\", sTelephone);\n startActivityForResult(intent, 1);\n overridePendingTransition(R.anim.anim_slide_in_left, R.anim.anim_slide_out_right);\n finish();\n } else if (id == R.id.action_meeting) { //회의실 예약\n Intent intent = new Intent(Meeting.this, Meeting.class);\n intent.putExtra(\"idx\", psMidx);\n intent.putExtra(\"id\", psMid);\n intent.putExtra(\"name\", psMname);\n intent.putExtra(\"path\", psMpath);\n intent.putExtra(\"dept\", psMdept);\n intent.putExtra(\"sTelephone\", sTelephone);\n startActivityForResult(intent, 1); // Sub_Activity 호출\n overridePendingTransition(R.anim.anim_slide_in_left, R.anim.anim_slide_out_right);\n finish();\n } else if (id == R.id.action_leave) { //휴가 조회\n Intent intent = new Intent(Meeting.this, Leave.class);\n intent.putExtra(\"idx\", psMidx);\n intent.putExtra(\"id\", psMid);\n intent.putExtra(\"name\", psMname);\n intent.putExtra(\"path\", psMpath);\n intent.putExtra(\"dept\", psMdept);\n intent.putExtra(\"sTelephone\", sTelephone);\n startActivityForResult(intent, 1);\n overridePendingTransition(R.anim.anim_slide_in_left, R.anim.anim_slide_out_right);\n finish();\n } else if (id == R.id.action_map) { //회사 위치\n Intent intent = new Intent(Meeting.this, Map.class);\n intent.putExtra(\"idx\", psMidx);\n intent.putExtra(\"id\", psMid);\n intent.putExtra(\"name\", psMname);\n intent.putExtra(\"path\", psMpath);\n intent.putExtra(\"dept\", psMdept);\n intent.putExtra(\"sTelephone\", sTelephone);\n startActivityForResult(intent, 1);\n overridePendingTransition(R.anim.anim_slide_in_left, R.anim.anim_slide_out_right);\n finish();\n } else {\n Log.e(\"Error\", \"예외 발생\");\n }\n }else{\n Toast.makeText(Meeting.this, R.string.network_error_chk,Toast.LENGTH_SHORT).show();\n }\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\n public void onClick(View v) {\n Referinta.Verset = v.getId();\n\n Intent intent = new Intent(getContext(), TextActivity.class);\n // 2. put key/value data\n\n // intent.putExtra(\"referinta\", referinta );\n // intent.putExtra(\"message\", capitole[1]);\n\n // 3. or you can add data to a bundle\n\n\n // 5. start the activity\n startActivity(intent);\n // finish();\n\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n Intent share=new Intent(android.content.Intent.ACTION_SEND);\n\n share.setType(\"text/plain\");\n share.putExtra(android.content.Intent.EXTRA_SUBJECT,news.getTitle());\n share.putExtra(android.content.Intent.EXTRA_TEXT,\"Follow the link : \"+MainActivity.base_url+news.getAbsolute_url()+\" to read more\");\n startActivity(Intent.createChooser(share,\"Share via\"));\n\t\t\t\t\t\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n switch(id) {\r\n //noinspection SimplifiableIfStatement\r\n case R.id.action_settings:\r\n return true;\r\n\r\n case R.id.ajouter_aliment_au_rayon:\r\n\r\n // custom dialog\r\n final Dialog dialog = new Dialog(this);\r\n dialog.setContentView(R.layout.layout_ajout_aliment_au_rayon);\r\n dialog.setTitle(\"Mettre en rayon\");\r\n dialog.show();\r\n return true;\r\n\r\n case R.id.check_aliments:\r\n ArrayList<Aliment> allAliments= dataAdapter.allAliments; //recuperation de tous les aliments\r\n //recuperation des aliments non coches\r\n ArrayList<Integer> alimentsRestants= new ArrayList<Integer>();\r\n for(int i= 0 ; i < allAliments.size(); ++i){\r\n Aliment al= allAliments.get(i);\r\n if(!al.isSelected()){\r\n alimentsRestants.add(i);\r\n }\r\n }\r\n StringBuffer responseText = new StringBuffer();\r\n int nb_aliments_manquants= alimentsRestants.size();\r\n if(nb_aliments_manquants == 0){\r\n responseText.append(\"Votre liste est complete, a la caisse !\");\r\n } else if(nb_aliments_manquants == 1) {\r\n responseText.append(\"Il vous manque cet aliment : \" + allAliments.get(alimentsRestants.get(0)).getNom());\r\n } else {\r\n responseText.append(\"Il vous manque ces \" + alimentsRestants.size() + \" aliments :\\n\");\r\n for(int i= 0 ; i < alimentsRestants.size(); ++i){\r\n Integer indice_aliment_restant= alimentsRestants.get(i);\r\n Aliment al= allAliments.get(indice_aliment_restant);\r\n responseText.append(\"\\n\" + al.getNom());\r\n }\r\n }\r\n\r\n Toast.makeText(getApplicationContext(),\r\n responseText, Toast.LENGTH_LONG).show();\r\n return true;\r\n\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public void onClick(View v) {\n Intent intent = PostEditActivity.newIntent(contex);\n intent.putExtra(\"PostKey\", postKey);\n contex.startActivity(intent);\n }",
"private void sendDataToServerDialog(){\n String text = getString(R.string.title_recogida);\n if (mViewPager.getCurrentItem() == 1){\n text = getString(R.string.title_entrega);\n }\n AlertDialog d = new AlertDialog.Builder(MainActivity.this)\n .setTitle(text)\n .setIcon(android.R.drawable.ic_menu_save)\n .setMessage(\"¿Desea Enviar los datos al FTP?\")\n .setPositiveButton(\"Si\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n JSONObject json = null;\n switch (mViewPager.getCurrentItem()){\n case 0:\n json = recogidaFragment.getData();\n break;\n case 1:\n json = entregaFragment.getData();\n break;\n default:\n }\n if (json != null){\n WriteToFileThread writeToFileThread = new WriteToFileThread(json, mViewPager.getCurrentItem());\n writeToFileThread.start();\n }\n dialog.dismiss();\n pd = new ProgressDialog(MainActivity.this);\n pd.setTitle(R.string.title_sending);\n pd.setMessage(getString(R.string.title_wait));\n pd.setCancelable(false);\n pd.setIndeterminate(true);\n pd.show();\n }\n })\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n }).create();\n d.show();\n }",
"@Override\n public void onClick(View v) {\n ParseUser currentUser = ParseUser.getCurrentUser();\n String currentUserUsername = currentUser.getUsername();\n\n\n //get the status user has enteretd, conver it to a string\n String newStatus = UsertxtFieldmsg.getText().toString();\n\n //Save the status in parse\n ParseObject statusObject = new ParseObject(\"Messages\");\n statusObject.put(\"Message\",newStatus);\n statusObject.put(\"user\", currentUserUsername);\n statusObject.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if(e == null){\n //succesfully stored the new status in parse\n Toast.makeText(User_SendMessage.this, \"Message Sent!\", Toast.LENGTH_LONG).show();\n\n //take user home\n Intent takeUserHome =new Intent(User_SendMessage.this, UserActivityPage.class);\n startActivity(takeUserHome);\n\n\n }else{\n //there was a problem storn new status, advice user\n AlertDialog.Builder builder = new AlertDialog.Builder(User_SendMessage.this);\n builder.setMessage(e.getMessage());\n builder.setTitle(\"Sorry\");\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n }\n });\n\n }",
"private void aumentarPuntos() {\r\n this.puntos++;\r\n this.form.AumentarPuntos(this.puntos);\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tputExtra();\n\t\t\t\t\n\t\t\t}",
"public void validarPostagem() {\n\t\t// validando se o nome motorista ou carona foram preenchidos\n\t\tint verif = 0;\n\t\ttry {\n\t\t\tif (txtCarona.getText() == null\n\t\t\t\t\t|| txtCarona.getText().trim().equals(\"\")) {\n\n\t\t\t\tverif++;\n\n\t\t\t}\n\t\t\tif (txtMotorista.getText() == null\n\t\t\t\t\t|| txtMotorista.getText().trim().equals(\"\")) {\n\n\t\t\t\tverif++;\n\n\t\t\t}\n\t\t\tif (verif == 2) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\n\t\t\tif (txtDestino.getText() == null\n\t\t\t\t\t|| txtDestino.getText().trim().equals(\"\")) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tJOptionPane\n\t\t\t\t\t.showMessageDialog(\n\t\t\t\t\t\t\tnull,\n\t\t\t\t\t\t\t\"Para postar no quadro é necessário informar nome (motorista ou passageiro) \"\n\t\t\t\t\t\t\t\t\t+ \"\t\t\t\t\t\t\te local. \\n Por favor certifique se os campos foram preenchidos e tente novamente.\");\n\t\t}\n\n\t}",
"@Override\n public void onClick(View view) {\n CreatePost createPost = new CreatePost(context, selectedPic);\n createPost.execute(title.getText().toString(), description.getText().toString());\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case R.id.clear_basket:\n dialog = new MyDialog();\n dialog.show(getFragmentManager(), \"MyFragment\");\n return true;\n\n case R.id.shareText:\n Intent sendIntent = new Intent();\n sendIntent.setAction(Intent.ACTION_SEND);\n\n int countList = listView.getCount();\n String share = \"\";\n\n for (int i = countList - 1; i >= 0; i--) {\n share = fAdapter.getItem(i)+ \", \"+share;\n }\n\n sendIntent.putExtra(Intent.EXTRA_TEXT, share);\n sendIntent.setType(\"text/plain\");\n startActivity(sendIntent);\n\n\n\n return true;\n\n case R.id.action_settings:\n Intent i = new Intent(this,SettingsActivity.class);\n startActivityForResult(i, 1);\n return true;\n\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which){\n guardarEmpleado();\n }",
"public void onClick(View v) {\n String itemString = newItem.getText().toString();\n String descString = newDesc.getText().toString();\n String contactString = newContact.getText().toString();\n String categoryString = newCategory.getSelectedItem().toString();\n // get the bitmap from the imageview\n Bitmap bitmap = ((BitmapDrawable)postImageView.getDrawable()).getBitmap();\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n // Compress image to lower quality scale 1\n bitmap.compress(Bitmap.CompressFormat.WEBP, 1, stream);\n byte[] image = stream.toByteArray();\n // if the image exceeds the allowable number of bytes\n if (image.length >= max)\n {\n // set byte array to default image\n image = noImg;\n // give appropriate comment to user\n // Code from:\n // http://developer.android.com/guide/topics/ui/notifiers/toasts.html\n Context context = getApplicationContext();\n CharSequence text = \"Image too big. Go to My Posts and choose another!\";\n int duration = Toast.LENGTH_LONG;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n\n }\n // Construct new post\n Posts newPost = new Posts(itemString, descString, categoryString, image, contactString);\n // Push post to parse\n parse.pushPost(newPost);\n finish();\n }",
"@Override\n public void onNotificationPosted(StatusBarNotification sbn) {\n int notificationCode = matchNotificationCode(sbn);\n String pack = \"\";\n Bundle extras = null;\n String title = \"\";\n String text = \"\";\n String subtext = \"\";\n String key = \"\";\n try {\n pack = sbn.getPackageName();\n extras = sbn.getNotification().extras;\n //Prendo i dati della notifica\n title = extras.getString(\"android.title\");\n //Parso il titolo\n if (title.contains(\"(\") && title.contains(\")\") && (title.contains((\"messaggi\")) || title.contains(\"messaggio\"))) {\n int posA = title.lastIndexOf('(');\n title = title.substring(0, posA - 1);\n }\n text = extras.getCharSequence(\"android.text\").toString();\n subtext = \"\";\n } catch (Exception ex) {\n Log.d(\"WHATSAPP RIGA 100\", \"Conv fallita\");\n }\n if (matchNotificationCode(sbn) != InterceptedNotificationCode.OTHER_NOTIFICATIONS_CODE) {\n if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)) {\n //EDIT\n /* Used for SendBroadcast */\n try {\n Parcelable b[] = (Parcelable[]) extras.get(Notification.EXTRA_MESSAGES);\n String content;\n if (b != null) {\n content = \"\";\n for (Parcelable tmp : b) {\n key = String.valueOf(tmp.hashCode());\n Bundle msgBundle = (Bundle) tmp;\n subtext = msgBundle.getString(\"text\");\n //content = content + msgBundle.getString(\"text\") + \"\\n\";\n }\n /*Toast.makeText(getApplicationContext(), content,\n Toast.LENGTH_LONG).show();*/\n }\n if (subtext.isEmpty()) {\n subtext = text;\n }\n } catch (Exception e) {\n Log.d(\"ERRORE RIGA 90 WHATSAPP\", \"Probabilmente la notifica è sballata\");\n }\n Notifica nuovaNotifica = new Notifica();\n\n if (subtext != null) {\n if (!text.contains(\"nuovi messaggi\") && !text.contains(\"WhatsApp Web is currently active\") && !text.contains(\"WhatsApp Web login\") && !title.toLowerCase().equals(\"whatsapp\")) {\n try {\n DateFormat df = new SimpleDateFormat(\"ddMMyyyyHHmmss\");\n String date = df.format(Calendar.getInstance().getTime());\n nuovaNotifica = new Notifica(key, pack, title, subtext, date);\n } catch (Exception ex) {\n Log.d(\"WHATSAPP RIGA 100\", \"Conversione fallita\");\n }\n try {\n //Parso il messaggio se viene da instagram\n if (matchNotificationCode(sbn) == InterceptedNotificationCode.INSTAGRAM_CODE) {\n //Elimino l'username nel messaggio\n if (subtext.contains(\":\"))\n subtext = subtext.substring(subtext.indexOf(':') + 2, subtext.length());\n else {\n if (subtext.contains(title)) {\n int ind = subtext.indexOf(title);\n subtext = subtext.replace(title, \"\");\n subtext = subtext.substring(1, subtext.length());\n }\n }\n }\n } catch (Exception ex) {\n Log.d(\"WHATSAPP RIGA 160\", \"Parser fallito\");\n }\n //Controllo che non abbia già ricevuto il messaggio\n String contatto = title + matchNotificationCode(sbn);\n int posizioneContatto = TrovaContattoInUltimiMessaggi(contatto);\n boolean daInviare = true;\n //Se ho trovato il contatto, controllo il valore se è diverso aggiungo e invio\n //Altrimenti modifico e non invio\n //Se non lo trovo lo registro e invio\n if (posizioneContatto != -1) {\n String strV = UltimiMessaggi.get(posizioneContatto).UltimoMessaggio;\n if (strV.equals(subtext)) {\n daInviare = false;\n } else {\n SettaUltimoMessaggio(posizioneContatto, subtext);\n }\n } else {\n //Aggiungo il contatto e il messaggio nella lista\n UltimiMessaggi.add(new ContattoAC(contatto, subtext));\n }\n //Invio la notifica alla mainActivity\n if (daInviare) {\n Intent intent = new Intent(\"ricevitoreNotifiche\");\n try {\n /*//LOG\n Log.d(\"Notifica KEY\", key);\n Log.d(\"Contatto\", title);\n Log.d(\"Messaggio\", subtext);*/\n intent.putExtra(\"ID\", nuovaNotifica.getID());\n intent.putExtra(\"Applicazione\", nuovaNotifica.getApplicazione());\n intent.putExtra(\"Titolo\", nuovaNotifica.getTitolo());\n intent.putExtra(\"Testo\", nuovaNotifica.getTesto());\n intent.putExtra(\"DateTime\", nuovaNotifica.getDateTime());\n sendBroadcast(intent);\n } catch (Exception ex) {\n Log.d(\"ERROR RIGA 103 WHATSAPP\", \"Non riesco a inviare in broadcast\");\n }\n }\n }\n /* End Used for Toast */\n }\n }\n }\n\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_post, container, false);\r\n\r\n\r\n Button connect = view.findViewById(R.id.button3);\r\n Button sinscrire = view.findViewById(R.id.button);\r\n Button abonne = view.findViewById(R.id.button4);\r\n creer = view.findViewById(R.id.button5);\r\n titreChamp = view.findViewById(R.id.editText8);\r\n descriptionChamp = view.findViewById(R.id.editText7);\r\n categorieSpinner = view.findViewById(R.id.spinner2);\r\n categorieSpinner.setOnItemSelectedListener(this);\r\n\r\n\r\n abonne.setVisibility(view.INVISIBLE);\r\n\r\n checkInfo();\r\n\r\n sinscrire.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n\r\n Intent i = new Intent(getActivity(),SignInActivity.class);\r\n startActivity(i);\r\n }\r\n });\r\n connect.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n\r\n Intent i = new Intent(getActivity(),LogInActivity.class);\r\n startActivity(i);\r\n }\r\n });\r\n abonne.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n sendSubscription();\r\n }\r\n });\r\n\r\n\r\n\r\n\r\n\r\n //si l'utilisateur est déjà connecté\r\n if((SessionManager.getInstance(getActivity()).isLoggedIn())){\r\n\r\n\r\n connect.setVisibility(view.INVISIBLE);\r\n sinscrire.setVisibility(view.INVISIBLE);\r\n if((SessionManager.getInstance(getActivity()).isSubscribed()))\r\n { abonne.setVisibility(view.INVISIBLE);\r\n descriptionChamp.setVisibility(view.VISIBLE);\r\n categorieSpinner.setVisibility(view.VISIBLE);\r\n titreChamp.setVisibility(view.VISIBLE);\r\n creer.setVisibility(view.VISIBLE);\r\n\r\n creerAnnonce(view); }\r\n else {\r\n abonne.setVisibility(view.VISIBLE);\r\n descriptionChamp.setVisibility(view.INVISIBLE);\r\n categorieSpinner.setVisibility(view.INVISIBLE);\r\n titreChamp.setVisibility(view.INVISIBLE);\r\n creer.setVisibility(view.INVISIBLE);\r\n\r\n }\r\n\r\n }\r\n else {\r\n descriptionChamp.setVisibility(view.INVISIBLE);\r\n categorieSpinner.setVisibility(view.INVISIBLE);\r\n titreChamp.setVisibility(view.INVISIBLE);\r\n creer.setVisibility(view.INVISIBLE);\r\n\r\n if(SessionManager.getInstance(getActivity()).getToken() != null){\r\n //mettre à jour token\r\n token = SessionManager.getInstance(getActivity()).getToken().getToken();\r\n }\r\n }\r\n\r\n\r\n\r\n return view;\r\n\r\n\r\n\r\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n Intent returnIntent = new Intent();\n returnIntent.putParcelableArrayListExtra(\"palautettu_opeteltavat\", opeteltavatsanat);\n returnIntent.putExtra(\"jatketaanko\",false);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }",
"public void vistaApoyo (View view){\n Intent interfaz = new Intent(this,MainApoyo.class);\n Intent enviar = new Intent( view.getContext(), MainNivelesReto.class );\n //Metodo que me permite crear variable\n enviar.putExtra(\"IdCategoria\", getIntent().getStringExtra(\"IdCategoria\") );\n startActivity(interfaz);\n finish();\n }",
"public CustomDialog(Activity context, String monto, String mensaje1, String mensaje2, String mensaje3, String mensaje4, String aprobacion, String typeMoney, Runnable aceptar){\n dialog = new Dialog(context, android.R.style.Theme_Black_NoTitleBar_Fullscreen);\n dialog.setCanceledOnTouchOutside(false);\n dialog.setContentView(R.layout.dialog_pago_realizado);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));\n AutoResizeTextView tvMonto = dialog.findViewById(R.id.importeEntero);\n\n tvMonto.setText(\"$ \"+monto+\" \"+ typeMoney);\n\n TextView tvAprobacion = dialog.findViewById(R.id.tvAprob);\n tvAprobacion.setText(\"No. de Aprobación: \"+aprobacion);\n\n TextView tvMensaje = dialog.findViewById(R.id.tvMensaje);\n\n //tvMensaje.setText(Html.fromHtml(mensaje1 + \"<br><font color='#0abaee'>\" + mensaje2 + \"</font><br>\" + mensaje3 + \"<font color='#0abaee'>\" + mensaje4 + \"</font>\"));\n Button tvAceptar = dialog.findViewById(R.id.tvAceptar2);\n tvAceptar.setOnClickListener(v -> {\n context.runOnUiThread(aceptar);\n dialog.dismiss();\n });\n }",
"@Override\n public void onClick(View v) {\n String mensaje = input.getText().toString();\n\n //Si el mensaje esta vacio...\n if(mensaje.trim().equals(\"\")){\n //Mostramos un error\n Toast.makeText(MainActivity.this,\n R.string.error_vacio,\n Toast.LENGTH_SHORT).show();\n //Y no hacemos nada\n return;\n }\n //Crear un intent hacia el Activity OtroActivity\n Intent myIntent = new Intent(MainActivity.this,\n OtroActivity.class);\n\n //Se envia el mensaje por medio de LLAVE_TEXTO\n myIntent.putExtra(Constantes.LLAVE_TEXTO, mensaje);\n\n //Se envia el intent\n startActivity(myIntent);\n }",
"public void onClick(DialogInterface dialog, int which) {\n mHolder.helper.deletePosting(Integer.parseInt(p.getPosting_id()));\n\n // delete the posting from server db\n myClickHandler(p.getPosting_id());\n }",
"public void facebookWallPost()\n\t{\n\t\tPreferences preferences = new Preferences(getActivity());\n\t\tString accessToken = preferences.getFacebookAccessToken();\n\t\tlong expiration = preferences.getFacebookAccessExpiration();\n\n\t\tif(accessToken != null) mFacebook.setAccessToken(accessToken);\n\t\tif(expiration != 0) mFacebook.setAccessExpires(expiration);\n\t\t\n\t\tif(mFacebook.isSessionValid())\n\t\t{\n\t\t\t// parameters\n\t\t\tBundle bundle = new Bundle();\n\t\t\t//bundle.putString(\"to\", \"123456789\");\n\t\t\tbundle.putString(\"name\", \"Name\");\n\t\t\tbundle.putString(\"description\", \"Description\");\n\t\t\tbundle.putString(\"picture\", \"http://placedog.com/200/200\");\n\t\t\tbundle.putString(\"link\", \"http://example.com\");\n\t\t\t\n\t\t\tmFacebook.dialog(getActivity(), \"feed\", bundle, new DialogListener()\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic void onComplete(Bundle values)\n\t\t\t\t{\n\t\t\t\t\t// TODO: run callbacks in TaskFragment.runTaskCallback()\n\t\t\t\t\t\n\t\t\t\t\tLogcat.d(\"Fragment.facebookWallPost().onComplete(): \" + mFacebook.getAccessToken());\n\t\t\t\t}\n\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onFacebookError(FacebookError e)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookWallPost().onFacebookError(): \" + e.getErrorType() + \" / \" + e.getLocalizedMessage() + \" / \" + e.getMessage());\n\t\t\t\t\t\n\t\t\t\t\t// toast\n\t\t\t\t\tif(e.getMessage()!=null) Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onError(DialogError e)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookWallPost().onError(): \" + e.getLocalizedMessage() + \" / \" + e.getMessage());\n\t\t\t\t\t\n\t\t\t\t\t// toast\n\t\t\t\t\tif(e.getMessage()!=null) Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onCancel()\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookWallPost().onCancel()\");\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\telse\n\t\t{\n\t\t\tToast.makeText(getActivity(), \"You are logged out.\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.post, menu);\n return super.onCreateOptionsMenu(menu);\n }"
] | [
"0.6069823",
"0.60106224",
"0.5741972",
"0.5673725",
"0.56398505",
"0.56278527",
"0.5600269",
"0.5582414",
"0.55464727",
"0.55292606",
"0.551197",
"0.547795",
"0.5437233",
"0.5409188",
"0.5397773",
"0.5396029",
"0.5374756",
"0.53400844",
"0.53368795",
"0.5323712",
"0.5303999",
"0.5279645",
"0.52749497",
"0.5232953",
"0.5217008",
"0.52165115",
"0.5190419",
"0.51787704",
"0.5178699",
"0.517522",
"0.5149199",
"0.51479405",
"0.5133364",
"0.51307535",
"0.5124312",
"0.5124312",
"0.5124012",
"0.512399",
"0.5118672",
"0.511619",
"0.51063526",
"0.5101884",
"0.50926816",
"0.50892067",
"0.5088264",
"0.50872487",
"0.50859886",
"0.5076306",
"0.5070288",
"0.5066442",
"0.5066343",
"0.5055614",
"0.5053769",
"0.50413775",
"0.50389063",
"0.50380826",
"0.50319606",
"0.5027884",
"0.50275457",
"0.5027322",
"0.5013728",
"0.49922717",
"0.49918446",
"0.49876302",
"0.4985274",
"0.49852046",
"0.4971305",
"0.4970959",
"0.4968762",
"0.4961392",
"0.49611703",
"0.49576452",
"0.49501064",
"0.49431083",
"0.49413645",
"0.49314293",
"0.49308547",
"0.4926911",
"0.49253783",
"0.49226883",
"0.4914298",
"0.49137142",
"0.4902125",
"0.49000156",
"0.48971155",
"0.48959386",
"0.4895034",
"0.48932508",
"0.48920718",
"0.48851836",
"0.48763198",
"0.48738644",
"0.48726627",
"0.48697424",
"0.486775",
"0.48657674",
"0.486404",
"0.48630884",
"0.4861586",
"0.48565382",
"0.48556918"
] | 0.0 | -1 |
Recuperar dados do Firebase | @Override
public void onDataChange(@NonNull DataSnapshot snapshot) {
dadosDoUsuarioLogado = snapshot.getValue(Usuario.class);
seguindoUserLogado = dadosDoUsuarioLogado.getSeguindo();
// Verifica se seguimos o usuario
verificaSeSegueUsuarioAmigo();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void iniciarBaseDeDatos(){\n db_reference = FirebaseDatabase.getInstance().getReference();\n\n }",
"private void iniciarFirebase(){\n FirebaseApp.initializeApp(getApplicationContext());\n firebaseDatabase = FirebaseDatabase.getInstance();\n databaseReference = firebaseDatabase.getReference();\n }",
"private void cargarDatosFirebase(){\n dbRef = FirebaseDatabase.getInstance().getReference().child(\"jugadores\");\n\n //añadimos el evento que no va a devolver los valores\n valueEventListener = new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n listaJugadores.clear();\n for (DataSnapshot jugadoresDataSnapshot: dataSnapshot.getChildren()){\n cargarListView(jugadoresDataSnapshot);\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Log.e(\"ActivityParte2\", \"DATABASE ERROR\");\n }\n };\n //asignamos el evento para que sea a tiempo real\n dbRef.addValueEventListener(valueEventListener);\n }",
"private void GetDataFromFirebase() {\n Query query = myRef.child(\"student\");\n\n query.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n ClearAll();\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n Students student = new Students();\n if (snapshot.child(\"url\").getValue() == null) {\n student.setImageUrl(snapshot.child(\"imageUrl\").getValue().toString());\n } else {\n student.setImageUrl(snapshot.child(\"url\").getValue().toString());\n\n }\n student.setName(snapshot.child(\"name\").getValue().toString());\n students.add(student);\n }\n recyclerAdapter = new GradingRecyclerAdapter(getApplicationContext(), students);\n recyclerView.setAdapter(recyclerAdapter);\n recyclerAdapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"private void initFirebase() {\n //инициализируем наше приложение для Firebase согласно параметрам в google-services.json\n // (google-services.json - файл, с настройками для firebase, кот. мы получили во время регистрации)\n FirebaseApp.initializeApp(this);\n //получаем точку входа для базы данных\n database = FirebaseDatabase.getInstance();\n myRef = database.getReference();\n\n }",
"private void subirDispositivo(){\n DatabaseReference subir_data = db_reference.child(\"Dispositivo\");\n Map<String, String> dataDispositivo = new HashMap<String, String>();\n dataDispositivo.put(\"Evento\", etNombreCurso.getText().toString());\n dataDispositivo.put(\"Latitud1\", disp_Lat1);\n dataDispositivo.put(\"Longitud1\", disp_Long1);\n dataDispositivo.put(\"Latitud2\", disp_Lat2);\n dataDispositivo.put(\"Longitud2\", disp_Long2);\n subir_data.push().setValue(dataDispositivo);\n }",
"private void initFirebase() {\n database = FirebaseDatabase.getInstance();\n user = FirebaseAuth.getInstance().getCurrentUser();\n dRef = database.getReference(\"Trails\");\n }",
"@Override\n public void obtenerQuedadas(final ObtenerQuedadasCallback callback) {\n\n\n QuedadasRef.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n\n quedada = dataSnapshot.getValue(Quedada.class);\n Log.i(\"Quedada_OBTENIDA\", quedada.toString());\n\n // Log.i(\"FECHA ACTUAL\", dateFormat.format(date));\n String fecha_obtenida= \"\"+quedada.getFecha()+ \" \"+quedada.getHora();\n if(compararFechaActualCon(fecha_obtenida)) {\n\n if(quedada.getPlazas().equals(\"0\")) {\n Log.i(\"Quedada_OBTENIDA\", \"PLAZAS NULAS\");\n\n }else{\n Log.i(\"Quedada_OBTENIDA\", \"FECHA VALIDA\");\n listaQuedadasGeneral.add(quedada);\n }\n }\n\n\n callback.onQuedadasObtenidas(listaQuedadasGeneral);\n\n //listaQuedadasGeneral= new ArrayList<>();\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n callback.onQuedadasObtenidasError();\n }\n });\n\n }",
"public void recorrerUsuarios(String rut){\n list = new ArrayList<>();\n\n FirebaseDatabase database1 = FirebaseDatabase.getInstance();\n DatabaseReference myRef1 = database1.getReference(\"Encargado\");\n myRef1.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n int i=0;\n if (dataSnapshot.exists()) {\n list.clear();\n for (DataSnapshot ds : dataSnapshot.getChildren()) {\n Encargado encargado = ds.getValue(Encargado.class);\n list.add(encargado);\n }\n for (Encargado u : list) {\n if (rut.equals(u.getRut())) {\n i++;\n break;\n }\n }\n }\n if (i>0){\n Toast.makeText(getApplicationContext(),\"El rut ya esta registrado\",Toast.LENGTH_LONG).show();\n }else{\n crearusuario();\n }\n }\n @Override\n public void onCancelled(DatabaseError error) {\n }\n });\n }",
"private void subirLista(){\n DatabaseReference db_lista = db_reference.child(\"Asistencias\");\n HashMap<String, String> dataLista = new HashMap<String, String>();\n dataLista.put(\"evento\",etNombreCurso.getText().toString());\n dataLista.put(\"fecha\", etFecha.getText().toString());\n dataLista.put(\"lista\", \"-\");\n db_lista.push().setValue(dataLista);\n }",
"private void sendGuideRegDataToFireBase(){\n }",
"private void readFromFirebase(){\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference reference = FirebaseDatabase.getInstance().getReference().child(\"users\").child(user.getUid());\n reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n User profile = dataSnapshot.getValue(User.class);\n score = profile.getScore();\n credits = profile.getCredits();\n correct = profile.getCorrect();\n wrong = profile.getIncorrect();\n filmPlayed = profile.getFilmPlayed();\n genknoPlayed = profile.getGenknoPlayed();\n geogPlayed = profile.getGeogPlayed();\n litPlayed = profile.getLitPlayed();\n mathsPlayed = profile.getMathsPlayed();\n sciencePlayed = profile.getSciencePlayed();\n techPlayed = profile.getTechPlayed();\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Log.w(\"Home\", \"Failed to read data: \", databaseError.toException());\n }\n });\n }",
"public void recuperarMovimentacao(){\n movimentacaoRef = databaseReference.child(\"movimentacoes\")\n .child(idUsuario)\n .child(mesAnoSelecionado);\n\n valueEventListenerMovimentacoes = movimentacaoRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n movimentacoes.clear();\n for (DataSnapshot dados: dataSnapshot.getChildren()){\n Movimentacao movimentacao = dados.getValue(Movimentacao.class);\n movimentacao.setKey(dados.getKey());\n movimentacoes.add(movimentacao);\n\n }\n adapterMovimentacao.notifyDataSetChanged();\n }\n\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"private void initFirebase() {\n FirebaseApp.initializeApp(this);\n firebaseDatabase = FirebaseDatabase.getInstance();\n databaseReference = firebaseDatabase.getReference();\n storageReference = FirebaseStorage.getInstance().getReference();\n }",
"@Override\n public void crearQuedada(final Quedada quedada, final CrearQuedadaCallback callback) {\n user = mAuth.getCurrentUser();\n\n //optenemos el usuario actual para cargar el nombre al crear la quedada\n UsuariosRef.child(user.getUid()).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String nombre = dataSnapshot.child(\"nombre\").getValue(String.class);\n String apellidos = dataSnapshot.child(\"apellidos\").getValue(String.class);\n String correo = dataSnapshot.child(\"correo\").getValue(String.class);\n String biografia = dataSnapshot.child(\"biografia\").getValue(String.class);\n String aficiones = dataSnapshot.child(\"aficiones\").getValue(String.class);\n usuarioActual = new Usuario(nombre, apellidos, correo, biografia, aficiones);\n\n Log.i(\"OBTENER USUARIO FIRE\", \"SUCCESFUL -- \" + usuarioActual);\n quedada.setAutor(\"\" + usuarioActual.getNombre() + \", \" + usuarioActual.getApellidos());\n quedada.setAutor_uid(\"\"+ user.getUid());\n\n //se sube la quedada la quedada\n UsuariosRef.child(user.getUid()).child(\"Quedadas\").push().setValue(quedada).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n\n Log.i(\"CREAR_QUEDADA_FIRE1\", \"EXITO\");\n QuedadasRef.push().setValue(quedada).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n\n Log.i(\"CREAR_QUEDADA_FIRE2\", \"EXITO\");\n callback.onQuedadaCreada();\n } else {\n Log.i(\"CREAR_QUEDADA_FIRE\", \"ERROR\");\n callback.onQuedadaCreadaError();\n }\n }\n });\n\n } else {\n Log.i(\"CREAR_QUEDADA_FIRE\", \"ERROR\");\n callback.onQuedadaCreadaError();\n }\n }\n });\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n callback.onQuedadaCreadaError();\n Log.i(\"OBTENER USUARIO FIRE\", \"ERROR -- \" + usuarioActual);\n }\n });\n\n }",
"@Override\n public void obtenerQuedadasUsuario(final ObtenerQuedadasCallback callback) {\n user = mAuth.getCurrentUser();\n UsuariosRef.child(user.getUid()).child(\"Quedadas\").addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n\n quedada = dataSnapshot.getValue(Quedada.class);\n Log.i(\"Quedada_OBTENIDA\", quedada.toString());\n listaQuedadasUsuario.add(quedada);\n\n callback.onQuedadasObtenidas(listaQuedadasUsuario);\n //listaQuedadasUsuario= new ArrayList<>();\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n callback.onQuedadasObtenidasError();\n }\n });\n }",
"public void leerBaseDatos(){\n if(connected == true){\n final FirebaseDatabase database = FirebaseDatabase.getInstance();\n\n DatabaseReference ref = database.getReference().child(\"kitDeSensores\").child(id);\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n kitSensoresDatos post = dataSnapshot.getValue(kitSensoresDatos.class);\n if(post ==null){\n fuego.setText(\"El sensor no tiene datos para mostrar\");\n temperatura.setText(\"El sensor no tiene datos para mostrar\");\n humedad.setText(\"El sensor no tiene datos para mostrar\");\n humo.setText(\"El sensor no tiene datos para mostrar\");\n Log.d(\"Humedad obtenidad\", String.valueOf(humo));\n }else{\n String fuegoExiste;\n if(String.valueOf(post.getFuego()).equals(\"0\")){\n fuegoExiste = \"No\";\n }else{\n fuegoExiste = \"Si\";\n }\n fuego.setText(fuegoExiste);\n temperatura.setText(String.valueOf(post.getTemperatura()) + \" °C\");\n humo.setText(String.valueOf(post.getGas()) + \" ppm\");\n humedad.setText(String.valueOf(post.getHumedad()) + \" %\");\n }\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }else{\n fuego.setText(\"No tienes conexion a internet\");\n temperatura.setText(\"No tienes conexion a internet\");\n humedad.setText(\"No tienes conexion a internet\");\n humo.setText(\"No tienes conexion a internet\"); }\n }",
"private void Reader(View view){\n DatabaseReference ref = mainRef.child(\"management\").child(\"staff\");\n\n // Reading The Reference\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull @NotNull DataSnapshot snapshot) {\n for (DataSnapshot d1 : snapshot.getChildren()){\n //\n String id = \"\";\n String username = \"\";\n String password = \"\";\n String name = \"\";\n String phone = \"\";\n String address = \"\";\n String position = \"\";\n String salary = \"\";\n String email = \"\";\n int lvl = 99;\n //\n for (DataSnapshot d2 : d1.getChildren()){\n if (d2.getKey().equals(\"id\")){ id = d2.getValue().toString();}\n if (d2.getKey().equals(\"username\")){ username = d2.getValue().toString();}\n if (d2.getKey().equals(\"password\")){ password = d2.getValue().toString();}\n if (d2.getKey().equals(\"name\")){ name = d2.getValue().toString();}\n if (d2.getKey().equals(\"phone\")){ phone = d2.getValue().toString();}\n if (d2.getKey().equals(\"address\")){ address = d2.getValue().toString();}\n if (d2.getKey().equals(\"position\")){ position = d2.getValue().toString();}\n if (d2.getKey().equals(\"salary\")){ salary = d2.getValue().toString();}\n if (d2.getKey().equals(\"email\")){ email = d2.getValue().toString();}\n if (d2.getKey().equals(\"lvl\")){ lvl = Integer.parseInt(d2.getValue().toString());}\n }\n //\n Staff tempMem = new Staff(\"\"+id, \"\"+username, \"\"+password, \"\"+name, \"\"+phone,\"\"+address,\"\"+position\n ,\"\"+salary,\"\"+email, lvl);\n //\n tempMem.setStaRef(d1.getRef());\n AddMember(tempMem);\n }\n setRecyclerView(view);\n }\n\n @Override\n public void onCancelled(@NonNull @NotNull DatabaseError error) { }});\n }",
"private void getData() {\n //bikin array untuk nampung hasil looping dari firebase\n final ArrayList<Makanan> data = new ArrayList<>();\n\n final Makanan m = new Makanan();\n\n myRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n // This method is called once with the initial value and again\n // whenever data at this location is updated.\n for (DataSnapshot dataSnapshot1 : dataSnapshot.getChildren()) {\n\n\n Makanan makan = dataSnapshot1.getValue(Makanan.class);\n m.setName(makan.name);\n m.setRestoran(makan.restoran);\n m.setHarga(makan.harga);\n\n\n //masukin data object dari firebase ke array\n data.add(m);\n }\n //array masukin k adapter\n MyAdapter adapter = new MyAdapter(data);\n //adapter masukin k recyclerview\n recyclerview.setAdapter(adapter);\n //settin layout manager\n recyclerview.setLayoutManager(new LinearLayoutManager(MainActivity.this));\n\n\n //recyclerview\n\n Log.d(\"data firebse\", data.toString());\n\n\n // Log.d(TAG, \"Value is: \" + value);\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n // Log.w(TAG, \"Failed to read value.\", error.toException());\n }\n });\n\n }",
"private void registrarVehiculo(String placa, String tipo, String color, String numdoc) {\n miVehiculo = new Vehiculo(placa,tipo,color, numdoc);\n\n showProgressDialog();\n\n //empresavehiculo\n //1. actualizar el reference, empresavehiculo\n //2. mDatabase.child(\"ruc\").child(\"placa\").setValue\n\n mDatabase.child(placa).setValue(miVehiculo).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n hideProgressDialog();\n if (task.isSuccessful()) {\n Toast.makeText(getApplicationContext(),\"Se registro Correctamente...!\",Toast.LENGTH_LONG).show();\n //\n setmDatabase(getDatabase().getReference(\"empresasvehiculos\"));\n //\n mDatabase.child(GestorDatabase.getInstance(getApplicationContext()).obtenerValorUsuario(\"ruc\")).setValue(miVehiculo).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n hideProgressDialog();\n if (task.isSuccessful()) {\n Toast.makeText(getApplicationContext(),\"Se registro Correctamente...!\",Toast.LENGTH_LONG).show();\n\n } else {\n Toast.makeText(getApplicationContext(), \"Error intente en otro momento...!\", Toast.LENGTH_LONG).show();\n }\n }\n });\n\n } else {\n Toast.makeText(getApplicationContext(), \"Error intente en otro momento...!\", Toast.LENGTH_LONG).show();\n }\n }\n });\n }",
"private void fetchDenuncia() {\n //CRIA UMA REFERENCIA PARA A COLEÇÃO DE POSTOS\n FirebaseFirestore.getInstance().collection(\"/denuncias\")\n .addSnapshotListener(new EventListener<QuerySnapshot>() {\n @Override\n public void onEvent(@Nullable QuerySnapshot queryDocumentSnapshots, @Nullable FirebaseFirestoreException e) {\n //VERIFICANDO SE ENCONTROU ALGUMA EXCEÇÃO CAPAZ DE IMPEDIR A EXECUÇÃO, CASO ENCONTRE, PARE A APLICAÇÃO\n if (e != null) {\n Log.e(\"TESTE\", \"Erro: \", e);\n return;\n }\n\n //REFERÊNCIA PARA TODOS POSTOS DA BASE\n List<DocumentSnapshot> documentos = queryDocumentSnapshots.getDocuments();\n\n\n for (DocumentSnapshot doc : documentos) {\n Denuncia denuncia = doc.toObject(Denuncia.class);\n Log.d(\"TESTE\", denuncia.getPosto() + \"denunciado!\");\n denunciasNaBase.add(denuncia);\n }\n }\n });\n }",
"void getDataFromFirebase(){\n //Firebase Read Listener\n mTasksDatabaseReference.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n //Running Foreach loop\n for(DataSnapshot d : dataSnapshot.getChildren()) {\n //Getting Value from 1 to 10 in ArrayList(tasks)\n tasks.add(d.getValue().toString());\n }\n\n //Putting key & tasks(ArrayList) in HashMap\n itemsMap.put(dataSnapshot.getKey(),tasks);\n\n headersList.add(dataSnapshot.getKey());\n\n tasks=new ArrayList<>();\n\n Log.d(TAG, \"onChildAdded: dataSnapshot.getChildren: \"+dataSnapshot.getChildren());\n Log.d(TAG, \"onChildAdded: KEY\"+dataSnapshot.getKey()+\" value \"+dataSnapshot.getValue().toString());\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n Log.d(TAG, \"onChildChanged: \"+dataSnapshot.getValue().toString());\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n //task.remove(\"\" + dataSnapshot.getValue());\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n // mTasksDatabaseReference.addChildEventListener(mChildEventListener);\n }",
"private void retrieveData(){\n databaseReference.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n Teacher teacher = dataSnapshot.getValue(Teacher.class);\n\n if (teacher==null){\n saveData();\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n toast(getString(R.string.retrieve_failed));\n }\n });\n }",
"void loadBioData_online(String fireID){\n\n String all_users = getResources().getString(R.string.all_users);\n tv_verify_status.setText(getResources().getString(R.string.logging_in));\n\n DatabaseReference all_user_ref = FirebaseDatabase.getInstance().getReference(all_users);\n\n all_user_ref.child(fireID).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n User_Class userBio = dataSnapshot.getValue(User_Class.class);\n\n if (userBio != null){\n try {\n klinDB.addUser(userBio);\n toDashboard();\n }catch (Exception e){\n Toast.makeText(getApplicationContext(),\"Error loading online data \"\n +e.toString(),Toast.LENGTH_LONG).show();\n\n }\n }\n\n all_user_ref.removeEventListener(this);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n }",
"@Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n ArrayList<Usuario> usuarioArrayList = new ArrayList<>();\n for (DataSnapshot child : dataSnapshot.getChildren()) {\n Usuario usuario = child.getValue(Usuario.class);\n usuarioArrayList.add(usuario);\n }\n\n // Comparar cedula del usuario nuevo con la de usuarios registrados\n for (int i = 0; i < usuarioArrayList.size(); i++) {\n String docu = usuarioArrayList.get(i).getDocumentoIdentidad();\n if (estudiante.getDocumentoIdentidad().equals(docu)) {\n estaRegistrado = true;\n break;\n }\n }\n\n // Verificar si el usuario cumple los requisitos para ser registrado\n if (!nombre.equals(\"\") && !codigo.equals(\"\") && !documentoIdentidad.equals(\"\") && !estaRegistrado &&\n !clave.equals(\"\") && clave.equals(confirmarClave) && condicionesRButton.isChecked()) {\n FirebaseDatabase.getInstance().getReference().child(\"estudiantes\").child(id).setValue(estudiante);\n Intent i = new Intent(RegistroActivity.this, MenuActivity.class);\n\n // Pasar usuario a la siguiente actividad\n i.putExtra(\"usuario\", estudiante);\n\n // Cerrar actividades anteriores\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n\n startActivity(i);\n } else if (!clave.equals(confirmarClave)) {\n runOnUiThread(\n () -> {\n Toast.makeText(RegistroActivity.this, \"Las claves no coinciden\", Toast.LENGTH_SHORT).show();\n }\n );\n } else if (estaRegistrado) {\n runOnUiThread(\n () -> {\n Toast.makeText(RegistroActivity.this, \"El usuario ya está registrado\", Toast.LENGTH_SHORT).show();\n }\n );\n } else {\n runOnUiThread(\n () -> {\n Toast.makeText(RegistroActivity.this, \"Rellene los campos y acepte los términos y condiciones\", Toast.LENGTH_SHORT).show();\n }\n );\n }\n }",
"@Override\n public void onCancelled(FirebaseError firebaseError) {\n System.out.println(\"The read failed: \" + firebaseError.getMessage());\n }",
"@Override\n public void onCancelled(FirebaseError firebaseError) {\n System.out.println(\"The read failed: \" + firebaseError.getMessage());\n }",
"@Override\n public void onCancelled(FirebaseError firebaseError) {\n System.out.println(\"The read failed: \" + firebaseError.getMessage());\n }",
"@Override\n public void onCancelled(FirebaseError firebaseError) {\n System.out.println(\"The read failed: \" + firebaseError.getMessage());\n }",
"private void recoverUser(){\n if(auth.getCurrentUser()!=null){\n String id= auth.getCurrentUser().getUid();\n\n //Solo la igualo para poder sacarla del metodo\n idU=id;\n\n //Buscamos el id del usuario logueado en la rama contactos\n db.getReference().child(\"contactos/\" + id).addValueEventListener(\n new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot data) {\n\n adapter.clear();\n\n for(DataSnapshot child: data.getChildren()){\n Contacto contacto=child.getValue(Contacto.class);\n adapter.addContacto(contacto);\n }\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n\n }\n }\n );\n }\n }",
"@Override\n public void obtenerPeticionesRecibidasQuedadas(final ObtenerPeticionesRecibidasQuedadasCallback callback) {\n user = mAuth.getCurrentUser();\n final int numero_deQuedadas_BD = 0;\n listaPeticionesRecibidasQuedadasUsuario= new ArrayList<>();\n callback.onSolicitudesQuedadasObtenidas(listaPeticionesRecibidasQuedadasUsuario);\n\n UsuariosRef.child(user.getUid()).child(\"Peticiones recibidas\").addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n\n peticionQuedadaRecibida = dataSnapshot.getValue(PeticionQuedada.class);\n listaPeticionesRecibidasQuedadasUsuario.add(peticionQuedadaRecibida);\n Log.i(\"PETICIONES_REC_OBTENIDA\", \"Peticion recibida: \"+peticionQuedadaRecibida.toString());\n\n callback.onSolicitudesQuedadasObtenidas(listaPeticionesRecibidasQuedadasUsuario);\n\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n callback.onSolicitudesQuedadasObtenidasError();\n }\n });\n\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n for (DataSnapshot dataSnapshot1 : dataSnapshot.getChildren()) {\n\n\n Makanan makan = dataSnapshot1.getValue(Makanan.class);\n m.setName(makan.name);\n m.setRestoran(makan.restoran);\n m.setHarga(makan.harga);\n\n\n //masukin data object dari firebase ke array\n data.add(m);\n }\n //array masukin k adapter\n MyAdapter adapter = new MyAdapter(data);\n //adapter masukin k recyclerview\n recyclerview.setAdapter(adapter);\n //settin layout manager\n recyclerview.setLayoutManager(new LinearLayoutManager(MainActivity.this));\n\n\n //recyclerview\n\n Log.d(\"data firebse\", data.toString());\n\n\n // Log.d(TAG, \"Value is: \" + value);\n }",
"private void ReservarCita(String horaini,String horafin)\n {\n progressDialog=new ProgressDialog(HorasCitasActivity.this);\n progressDialog.setTitle(\"Agregado horario\");\n progressDialog.setMessage(\"cargando...\");\n progressDialog.show();\n progressDialog.setCancelable(false);\n String key = referenceehoras.push().getKey();\n\n // para gaurar el nodo Citas\n // sadfsdfsdfsd1212sdss\n Horario objecita =new Horario(key,idespecialidad,horaini,horafin,nombreespecialidad );\n //HorarioAtencion\n // reference=FirebaseDatabase.getInstance().getReference(\"HorarioAtencion\");\n // referenceCitas= FirebaseDatabase.getInstance().getReference(\"CitasReservadas\").child(user_id);\n referenceehoras.child(key).setValue(objecita).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()){\n Toast.makeText(HorasCitasActivity.this, \"Agregado\", Toast.LENGTH_SHORT).show();\n progressDialog.dismiss();\n }\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(HorasCitasActivity.this, \"Error :\" +e.getMessage(), Toast.LENGTH_SHORT).show();\n\n }\n });\n }",
"private void RetrieveChildAddedEventWithURL(JSONArray data) {\n //\n \tString strURL = String.format(\"https://%s.firebaseio.com\", appName); // = \"https://%@.firebaseio.com\" + appName;\n\n if ( data.length() >= 1 )\n {\n \ttry {\n\t\t\t\tstrURL = data.getString(0);\n\t\t\t} catch (JSONException e) {\n\t\t\t\tPluginResult pluginResult = new PluginResult(Status.ERROR, e.getMessage());\n\t\t\t\tmCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n }\n else{\n \tPluginResult pluginResult = new PluginResult(Status.ERROR, \"RetrieveChildAddedEventWithURL : Parameter Error\");\n \tmCallbackContext.sendPluginResult(pluginResult);\n \treturn;\n }\n\n Firebase myChildRef = new Firebase(strURL);\n if(isUsed != true)\n isUsed = true;\n // Retrieve new posts as they are added to the database\n myChildRef.addChildEventListener(new ChildEventListener() {\n\t\t\t@Override\n\t\t\tpublic void onChildAdded(DataSnapshot arg0, String arg1) {\n\t\t //[result setKeepCallback:[NSNumber numberWithBool:YES]];\n System.out.println(arg0.getValue());\n JSONObject resultObj;\n\t\t\t\ttry {\n\t\t\t\t\tresultObj = new JSONObject(arg0.getValue().toString());\n\t PluginResult pluginResult = new PluginResult(Status.OK, resultObj);\n\t //pluginResult.setKeepCallback(true);\n\t mCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\tPluginResult pluginResult = new PluginResult(Status.ERROR, e.getMessage());\n\t\t\t\t\tmCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onCancelled(FirebaseError arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onChildMoved(DataSnapshot arg0, String arg1) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onChildRemoved(DataSnapshot arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onChildChanged(DataSnapshot arg0, String arg1) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\t\t});\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Firebase read \", \"Failed to read value.\", error.toException());\n }",
"public static DatabaseReference getFirebaseDatabase() {\n if (referenciaFirebase == null) {\n referenciaFirebase = FirebaseDatabase.getInstance().getReference();\n }\n return referenciaFirebase;\n }",
"private void carregarAlunosTurma() {\n AcessoFirebase.getFirebase().addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n getUidUsuariosTurma(dataSnapshot);\n montandoArrayListUsuarios(dataSnapshot);\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n }",
"@Override\n public void onCancelled(DatabaseError firebaseError) {\n }",
"public void firebaseAdd(HashMap hashMap){\n DatabaseReference myref = FirebaseDatabase.getInstance().getReference(hashMap.get(\"CafeId\").toString()).child(\"Menu\").child(hashMap.get(\"MenuKatagori\").toString()).child(hashMap.get(\"KatagoriId\").toString());\n myref.child(\"Fiyat\").setValue(hashMap.get(\"YeniDeger\").toString());\n\n\n }",
"void getPersonalInfo() {\n databaseReference = FirebaseDatabase.getInstance().getReference();\n // listener add karaa diyaa yahan par\n databaseReference.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n\n // data ko change kr k vps db me bhi to store krana hoga naa\n // to vo data snapshot me ae gaa jis me User ka table hai\n // aur us k childs hain 3 jis me name last name aur email address hain\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n user_id = firebaseAuth.getCurrentUser().getUid();\n U_Email = firebaseAuth.getCurrentUser().getEmail();\n\n for (DataSnapshot dataSnapshot1 : dataSnapshot.getChildren()) {\n if(dataSnapshot1.child(user_id).child(\"firstn\").getValue(String.class) != null) {\n U_Fname = dataSnapshot1.child(user_id).child(\"firstn\").getValue(String.class);\n }\n if(dataSnapshot1.child(user_id).child(\"lastn\").getValue(String.class) != null) {\n U_LName = dataSnapshot1.child(user_id).child(\"lastn\").getValue(String.class);\n }\n// U_Email = dataSnapshot1.child(user_id).child(\"email_id\").getValue(String.class);\n\n if (dataSnapshot1.child(user_id).child(\"url\").exists())\n {\n // child hai jis me URL ki value get karaa re hain\n U_pic = dataSnapshot1.child(user_id).child(\"url\").getValue(String.class);\n\n }\n\n }\n\n\n\n // data set karayaa\n // jo heading par likhna hai .. us k liey bho ae ga ye\n edt_name.setText(U_Fname);\n edt_lastname.setText(U_LName);\n edt_email.setText(U_Email);\n userNameDisplay.setText(U_Fname +\" \"+ U_LName);\n userEmailDisplay.setText(U_Email);\n if (!(U_pic.isEmpty())) {\n\n // glide ki lib use hoi hai yahan\n Glide.with(Edit_Profile.this).load(U_pic).into(userPicture);\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"private DataManager() {\n ref = FirebaseStorage.getInstance().getReference();\n }",
"private void fetchPostos() {\n //CRIA UMA REFERENCIA PARA A COLEÇÃO DE POSTOS\n\n FirebaseFirestore.getInstance().collection(\"/postos\")\n .addSnapshotListener(new EventListener<QuerySnapshot>() {\n @Override\n public void onEvent(@Nullable QuerySnapshot queryDocumentSnapshots, @Nullable FirebaseFirestoreException e) {\n //VERIFICANDO SE ENCONTROU ALGUMA EXCEÇÃO CAPAZ DE IMPEDIR A EXECUÇÃO, CASO ENCONTRE, PARE A APLICAÇÃO\n if (e != null) {\n Log.e(\"TESTE\", \"Erro: \", e);\n return;\n }\n //REFERÊNCIA PARA TODOS POSTOS DA BASE\n List<DocumentSnapshot> documentos = queryDocumentSnapshots.getDocuments();\n\n\n for (DocumentSnapshot doc : documentos) {\n Posto posto = doc.toObject(Posto.class);\n int cont = 0;\n for (int i = 0; i < denunciasNaBase.size(); i++) {\n\n if (denunciasNaBase.get(i).getPosto().equalsIgnoreCase(posto.getCnpj())) {\n Log.d(\"TESTE\", \"Posto \" + posto.getCnpj() + \"denuncia \" + denunciasNaBase.get(i).getPosto());\n cont++;\n }\n }\n if (cont > 0) {\n adapter.add(new DenunciaItem(posto, cont));\n }\n }\n\n }\n });\n }",
"public void entraTexto(String miTab) {\n //instancia la base de datos de firebase\n DatabaseReference dbEnviar = FirebaseDatabase.getInstance().getReference().child(miTab);\n //crea una lista con datos del usuario y el mensaje introducido\n Map<String, String> envio = new HashMap<>();\n\n\n //selecciona una de las 3 cajas de entrada (una por pestaña) segun la pestaña y pone el valor\n //en el array\n switch (miTab) {\n case \"Sugerencia\":\n envio.put(\"Correo\", correo);\n envio.put(\"Nombre\", b.getString(\"nombre\"));\n envio.put(\"Mensaje\", inChat.getText().toString());\n //vacia la caja de entrada de arrayTexto\n inChat.setText(\"\");\n break;\n case \"Incidencia\":\n envio.put(\"Correo\", correo);\n envio.put(\"Descripcion\", inDescripcion.getText().toString());\n envio.put(\"Equipo\", inEquipo.getText().toString());\n envio.put(\"Fecha\", txtFecha.getText().toString());\n envio.put(\"Titulo\", inTitulo.getText().toString());\n break;\n case \"Consulta\":\n envio.put(\"Correo\", correo);\n envio.put(\"Nombre\", b.getString(\"nombre\"));\n envio.put(\"Mensaje\", inChat3.getText().toString());\n //vacia la caja de entrada de arrayTexto\n inChat3.setText(\"\");\n break;\n default:\n break;\n }\n\n //sube el arrayTexto entrado a firebase, al nodo del usuario\n // dbMensajes.child(txtEmail.getText().toString()).push().setValue(inChat.getText().toString());\n dbEnviar.push().setValue(envio);\n\n }",
"private void getData() {\n serviceReference = mFirebaseInstance.getReference(\"Service\");\n serviceReference.child(Common.barbershopSelected).child(Common.serviceSelected)\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Service currentService = dataSnapshot.getValue(Service.class);\n\n service = currentService.getNama();\n totalharga = currentService.getHarga();\n txtTotal.setText(totalharga);\n txtService.setText(service);\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n // get reference to 'barberman'\n barbermanReference = mFirebaseInstance.getReference(\"Barberman\");\n barbermanReference.child(Common.barbershopSelected).child(Common.barbermanSelected)\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Barberman currentBarberman = dataSnapshot.getValue(Barberman.class);\n\n barberman = currentBarberman.getNama();\n txtBarberman.setText(barberman);\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n // get 'jadwal'\n jadwal = Common.jadwalSelected;\n txtJadwal.setText(jadwal);\n\n// jadwalReference = mFirebaseInstance.getReference(\"Jadwal\");\n// jadwalReference.child(Common.barbershopSelected).child(Common.jadwalSelected)\n// .addValueEventListener(new ValueEventListener() {\n// @Override\n// public void onDataChange(DataSnapshot dataSnapshot) {\n// Jadwal currentJadwal = dataSnapshot.getValue(Jadwal.class);\n//\n// jadwal = currentJadwal.getWaktu();\n// txtJadwal.setText(jadwal);\n//\n// }\n//\n// @Override\n// public void onCancelled(DatabaseError databaseError) {\n//\n// }\n// });\n\n // get reference to 'barbershop'\n barbershopReference = mFirebaseInstance.getReference(\"Barbershop\");\n barbershopReference.child(Common.barbershopSelected)\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Barbershop currentBarbershop = dataSnapshot.getValue(Barbershop.class);\n\n barbershop = currentBarbershop.getNama();\n phoneBarbershop = currentBarbershop.getPhone();\n\n txtBarbershop.setText(barbershop);\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n // get reference to 'user'\n barbershopReference = mFirebaseInstance.getReference(\"Users\");\n barbershopReference.child(userId)\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n User currentUser = dataSnapshot.getValue(User.class);\n\n phoneUser = currentUser.getPhone();\n\n txtBarbershop.setText(barbershop);\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n }",
"private void RetrieveChildChangedEventWithURL(JSONArray data) {\n //\n \tString strURL = String.format(\"https://%s.firebaseio.com\", appName); // = \"https://%@.firebaseio.com\" + appName;\n\n if ( data.length() >= 1 )\n {\n \ttry {\n\t\t\t\tstrURL = data.getString(0);\n\t\t\t} catch (JSONException e) {\n\t\t\t\tPluginResult pluginResult = new PluginResult(Status.ERROR, e.getMessage());\n\t\t\t\tmCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n }\n else{\n \tPluginResult pluginResult = new PluginResult(Status.ERROR, \"RetrieveChildAddedEventWithURL : Parameter Error\");\n \tmCallbackContext.sendPluginResult(pluginResult);\n \treturn;\n }\n\n Firebase myChildRef = new Firebase(strURL);\n if(isUsed != true)\n isUsed = true;\n // Retrieve new posts as they are added to the database\n myChildRef.addChildEventListener(new ChildEventListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onChildChanged(DataSnapshot arg0, String arg1) {\n\t\t\t\t//[result setKeepCallback:[NSNumber numberWithBool:YES]];\n System.out.println(arg0.getValue());\n JSONObject resultObj;\n\t\t\t\ttry {\n\t\t\t\t\tresultObj = new JSONObject(arg0.getValue().toString());\n\t PluginResult pluginResult = new PluginResult(Status.OK, resultObj);\n\t //pluginResult.setKeepCallback(true);\n\t mCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\tPluginResult pluginResult = new PluginResult(Status.ERROR, e.getMessage());\n\t\t\t\t\tmCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onCancelled(FirebaseError arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onChildAdded(DataSnapshot arg0, String arg1) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onChildMoved(DataSnapshot arg0, String arg1) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onChildRemoved(DataSnapshot arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\t\t});\n }",
"public void getSectorsDataFromFirebase () {\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"Home\").child(\"specialties\");\n ref.addListenerForSingleValueEvent(\n new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n //Get map of sectors in datasnapshot\n getSectorsDataFromMap((Map<String,Object>) dataSnapshot.getValue());\n sectorsAdapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n //handle databaseError\n }\n });\n ref.keepSynced(true);\n\n\n }",
"@Override\n public void cambiarEstadoQuedada(final PeticionQuedada peticionQuedada, final CambiarEstadoCallback callback) {\n listaPeticionesRecibidasQuedadasUsuario= new ArrayList<>();\n user = mAuth.getCurrentUser();\n Query query = UsuariosRef.child(user.getUid()).child(\"Peticiones recibidas\").orderByChild(\"id_peticion\")\n .equalTo(peticionQuedada.getId_peticion());\n\n query.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n dataSnapshot.getRef().child(\"estado\").setValue(peticionQuedada.getEstado());\n Query query2 = UsuariosRef.child(peticionQuedada.getAutor_peticion()).child(\"Peticiones enviadas\").orderByChild(\"id_peticion\")\n .equalTo(peticionQuedada.getId_peticion());\n Log.i(\"CAMBIO ESTADO\",\"1\");\n query2.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n dataSnapshot.getRef().child(\"estado\").setValue(peticionQuedada.getEstado());\n Query query3 = QuedadasRef.orderByChild(\"id\")\n .equalTo(peticionQuedada.getId());\n Log.i(\"CAMBIO ESTADO\",\"2\");\n\n query3.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n final String plazasActualizadas=\"\"+(Integer.parseInt(peticionQuedada.getPlazas())\n - Integer.parseInt(peticionQuedada.getNum_plazas_solicitadas()));\n dataSnapshot.getRef().child(\"plazas\").setValue(plazasActualizadas);\n\n Query query4 = UsuariosRef.child(user.getUid()).child(\"Quedadas\").orderByChild(\"id\")\n .equalTo(peticionQuedada.getId());\n Log.i(\"CAMBIO ESTADO\",\"3\");\n\n query4.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n dataSnapshot.getRef().child(\"plazas\").setValue(plazasActualizadas);\n Log.i(\"CAMBIO ESTADO\",\"4\");\n\n callback.onEstadoCambiado();\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n callback.onEstadoCambiadoError();\n\n }\n });\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n callback.onEstadoCambiadoError();\n\n }\n });\n\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n callback.onEstadoCambiadoError();\n }\n });\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n callback.onEstadoCambiadoError();\n }\n });\n\n }",
"private void setupFirebase() {\r\n mFirebaseDatabase = FirebaseDatabase.getInstance();\r\n mFirebaseDatabaseReference = mFirebaseDatabase.getReference().child(Constants.ROOM_DATABASE_REFERENCE);\r\n mQuery = mFirebaseDatabaseReference.orderByChild(Constants.ROOM_INT_REFERENCE).startAt(Utils.convertHallStart(mHallStart)).endAt(Utils.convertHallEnd(mHallEnd));\r\n }",
"@Override\n public void onDataChange(com.google.firebase.database.DataSnapshot dataSnapshot) {\n list = new ArrayList<canchas>();\n for (com.google.firebase.database.DataSnapshot dataSnapshot1 : dataSnapshot.getChildren()) {\n\n canchas value = dataSnapshot1.getValue(canchas.class);\n canchas fire = new canchas();\n\n String distrito = value.getDistrito();\n String local = value.getLocal();\n String nombre = value.getNombre();\n String foto = value.getFoto();\n\n String localid = value.getLocalid();\n String canchaid = value.getCanchaid();\n\n fire.setDistrito(distrito);\n fire.setLocal(local);\n fire.setNombre(nombre);\n fire.setFoto(foto);\n\n fire.setLocalid(localid);\n fire.setCanchaid(canchaid);\n\n list.add(fire);\n\n\n Canchasadapter canchasadapter = new Canchasadapter(list, Seleccionarcanchas.this);\n RecyclerView.LayoutManager recyce = new GridLayoutManager(Seleccionarcanchas.this, 1);\n /// RecyclerView.LayoutManager recyce = new LinearLayoutManager(MainActivity.this);\n // recycle.addItemDecoration(new GridSpacingItemDecoration(2, dpToPx(10), true));\n recycle.setLayoutManager(recyce);\n recycle.setItemAnimator(new DefaultItemAnimator());\n recycle.setAdapter(canchasadapter);\n\n }\n }",
"private void addDatatoFirebase(String name, String phone, String address) {\n employeeInfo.setstartUpName(name);\n employeeInfo.setpotential(phone);\n employeeInfo.setbuildTime(address);\n String id = databaseReference.push().getKey();\n\n\n assert id != null;\n\n databaseReference.child(id).setValue(employeeInfo);\n\n\n\n\n\n // we are use add value event listener method\n // which is called with database reference.\n// databaseReference.addValueEventListener(new ValueEventListener() {\n// @Override\n// public void onDataChange(@NonNull DataSnapshot snapshot) {\n// // inside the method of on Data change we are setting\n// // our object class to our database reference.\n// // data base reference will sends data to firebase.\n// databaseReference.setValue(employeeInfo);\n//\n// // after adding this data we are showing toast message.\n// Toast.makeText(MainActivity.this, \"data added\", Toast.LENGTH_SHORT).show();\n// }\n//\n//\n// @Override\n// public void onCancelled(@NonNull DatabaseError error) {\n// // if the data is not added or it is cancelled then\n// // we are displaying a failure toast message.\n// Toast.makeText(MainActivity.this, \"Fail to add data \" + error, Toast.LENGTH_SHORT).show();\n// }\n// });\n }",
"public void onAccountCreate()\n {\n //Object ne=new Object();\n Log.d(\"stupid\", \"onAccountCreate: \");\n fName=firstName.getText().toString();\n lName=lastName.getText().toString();\n con=contact.getText().toString();\n addr=address.getText().toString();\n bGrp=bloodGroup.getText().toString();\n\n mRef2 = FirebaseDatabase.getInstance().getReference().child(\"donordata\").getRef();\n\n Map<String,Object> donorMap=new HashMap<String, Object>();\n Map<String,Object> x= new HashMap<String, Object>();\n\n\n String id= mRef2.push().getKey();\n Log.d(\"keyTAG\", \"onAccountCreate: \"+mRef2.push().getKey());\n x.put(\"id\",id);\n x.put(\"firstname\", fName);\n x.put(\"lastname\", lName);\n x.put(\"address\", addr);\n x.put(\"bloodgroup\", bGrp);\n x.put(\"contact\", con);\n\n\n\n donorMap.put(fName,x);\n\n mRef2.updateChildren(donorMap);\n Toast.makeText(BloodDonorsActivity.this,\"Your account has been successfully created. Thank you!\",Toast.LENGTH_LONG).show();\n Intent backToLogin=new Intent(BloodDonorsActivity.this,LoginActivity.class);\n startActivity(backToLogin);\n\n\n //mRef2.setValue(donorMap);\n\n\n\n //Toast.makeText(BloodDonorsActivity.this, \"Your details are not valid!\", Toast.LENGTH_LONG).show();\n\n\n\n }",
"private void getTasks(){\n\n currentFirebaseUser = FirebaseAuth.getInstance().getCurrentUser();\n if(currentFirebaseUser !=null){\n Log.e(\"Us\", \"onComplete: good\");\n } else {\n Log.e(\"Us\", \"onComplete: null\");\n }\n\n\n mDatabaseReference.child(currentFirebaseUser.getUid())\n .addValueEventListener(new ValueEventListener() {\n //если данные в БД меняются\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (mTasks.size() > 0) {\n mTasks.clear();\n }\n for (DataSnapshot postSnapshot : dataSnapshot.getChildren()) {\n Task task = postSnapshot.getValue(Task.class);\n mTasks.add(task);\n if (mTasks.size()>2){\n\n }\n }\n setAdapter(taskId);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n\n });\n }",
"public void readUserMap(){\n DatabaseReference usersRef = FirebaseDatabase.getInstance().getReference().child(\"users\");\n usersRef.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n GenericTypeIndicator<HashMap<String, User>> hash = new GenericTypeIndicator<HashMap<String, User>>() {};\n users = dataSnapshot.getValue(hash);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }",
"private void loadDataAsync() {\n\n FirebaseHandler.userRef.child(\"preferences\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n Dictionary<String,String> preferences = null;\n\n for (DataSnapshot child : dataSnapshot.getChildren()) {\n preferences.put(child.getKey()+\"\",child.getValue()+\"\");\n }\n\n if(listener != null) {\n Log.d(\"fuck\", dataSnapshot+\"\");\n listener.onPreferencesRetrieved(preferences);\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n }",
"private void loadDataFromFirebase() {\n\n db.collection(\"users\").document(userId).collection(\"sleep\")\n .orderBy(\"dateTime\", Query.Direction.ASCENDING)\n .get()\n .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n\n for (QueryDocumentSnapshot querySnapshot : task.getResult()) {\n\n timestampToDate = querySnapshot.getTimestamp(\"dateTime\").toDate();\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\", Locale.ENGLISH);\n dayDate = sdf.format(timestampToDate);\n sensorPressure = querySnapshot.getBoolean(\"sensorPressure\");\n sleepDateTimeData.add(new SleepDateTimeData(dayDate, sensorPressure, timestampToDate));\n i++;\n }\n\n accumulateData();\n\n }\n\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(SleepActivity.this, \"Problem ---1---\", Toast.LENGTH_SHORT).show();\n Log.w(\"!---1---\", e.getMessage());\n }\n });\n }",
"public static DatabaseReference getFirebaseDataBase(){\n if(firebase==null){\n firebase = FirebaseDatabase.getInstance().getReference();\n }\n return firebase;\n }",
"public void getUsers(final boolean onCreate){\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference nDatabase = database.getReference(\"Users\");\n uid.clear();\n userName.clear();\n nDatabase.addListenerForSingleValueEvent(\n new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n for(DataSnapshot snapshot:dataSnapshot.getChildren()){\n uid.add(snapshot.getKey());\n userName.add(snapshot.child(\"name\").getValue().toString());\n if(onCreate){\n setList(getView());\n Log.d(\"size\",userName.size()+\"\" );\n }\n }\n\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n }",
"public void queryDevices(){\r\n\r\n\r\n reportsDb.get().addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\r\n\r\n\r\n\r\n\r\n\r\n @Override\r\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\r\n if(task.isSuccessful()){\r\n\r\n\r\n //Gets the snapshot of the database and added into a map data structure\r\n for (QueryDocumentSnapshot doc: task.getResult()){\r\n\r\n\r\n\r\n Map<String, Object> queryData = doc.getData();\r\n\r\n deviceID.add(doc.getId());\r\n deviceNames.add(queryData.get(\"Name\").toString());\r\n\r\n\r\n\r\n }\r\n\r\n //Passing in data into the recycler from the query, to create a list like view\r\n initialiseRecycler(deviceID, deviceNames);\r\n\r\n\r\n\r\n\r\n }\r\n\r\n }\r\n });\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n }",
"public void basicReadWrite() {\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference myRef = database.getReference(\"message\");\n\n myRef.setValue(\"Hello, World!\");\n // [END write_message]\n\n // [START read_message]\n // Read from the database\n myRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n // This method is called once with the initial value and again\n // whenever data at this location is updated.\n String value = dataSnapshot.getValue(String.class);\n Log.d(TAG, \"Value is: \" + value);\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }\n });\n // [END read_message]\n }",
"public void basicReadWrite() {\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference myRef = database.getReference(\"message\");\n\n myRef.setValue(\"Hello, World!\");\n // [END write_message]\n\n // [START read_message]\n // Read from the database\n myRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n // This method is called once with the initial value and again\n // whenever data at this location is updated.\n String value = dataSnapshot.getValue(String.class);\n Log.d(TAG, \"Value is: \" + value);\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }\n });\n // [END read_message]\n }",
"private void setupFirebase(){\n FirebaseAuth firebaseAuth = FirebaseAuth.getInstance();\n FirebaseUser user = firebaseAuth.getCurrentUser();\n\n FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();\n if (user!=null){\n databaseReference = firebaseDatabase.getReference(\"Users\").child(user.getUid()).child(\"teacher\");\n }\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_datadiri);\n\n /* Sintaks untuk menghubungkan dengan antarmuka (UI) */\n tvNamaTop = findViewById(R.id.tv_nama_top);\n tvNamaSiswa = findViewById(R.id.tv_nama_siswa);\n tvAlamat = findViewById(R.id.tv_alamat);\n tvNoHp = findViewById(R.id.tv_noHp);\n tvNamaOrtu = findViewById(R.id.tv_nama_ortu);\n tvEmail = findViewById(R.id.tv_nama_email);\n\n /* Sintaks untuk mendapatkan id unser sesuai yang ada di database */\n String id = FirebaseAuth.getInstance().getCurrentUser().getUid();\n\n /* Program mengakses data di database (firebase) sesuai id ortu / pengguna */\n refData = FirebaseDatabase.getInstance().getReference(\"ortu\").child(id);\n\n /* Method di bawah merupakan method untuk mendapatkan data / value dari database.\n * Method ini menggunakan proses Instantiation.\n * Instantiation di bawah merupakan penerapan konsep Inheritance (ditandai dengan keyword : new) */\n refData.addValueEventListener(new ValueEventListener() {\n\n /* Override method di bawah merupakan penerapan konsep Polymorphism */\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n Ortu ortu = dataSnapshot.getValue(Ortu.class);\n assert ortu != null;\n tvNamaTop.setText(ortu.getNamaAnak());\n tvNamaSiswa.setText(\": \" + ortu.getNamaAnak());\n tvAlamat.setText(\": \" + ortu.getAlamat());\n tvEmail.setText(\": \" + ortu.getEmail());\n tvNamaOrtu.setText(\": \" + ortu.getNamaOrtu());\n tvNoHp.setText(\": \" + ortu.getNoHp());\n\n }\n\n /* Override method di bawah merupakan penerapan konsep Polymorphism */\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"@Override\n public void onChildAdded(DataSnapshot snapshot, String previousChildKey) {\n DataBaseUsers user = snapshot.getValue(DataBaseUsers.class);\n //System.out.println(user.getEmail());\n userList.add(user);\n }",
"private void sendUserData() {\n FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();\n DatabaseReference myref = firebaseDatabase.getReference(Objects.requireNonNull(firebaseAuth.getUid()));\n UserProfile userProfile = new UserProfile(name, email, post, 0);\n myref.setValue(userProfile);\n }",
"void CheckFirebase(String bks)\n {\n DBR = FDB.getReference(\"Books\");\n //DBR.orderByChild(\"NAME\").equals(b);\n b = bks.split(\",\");\n i=0;\n DBR.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n //if(data.NAME.equals(b))\n\n // Toast.makeText(ViewBooksActivity.this, \"***\"+dataSnapshot.getKey(), Toast.LENGTH_SHORT).show();\n if(dataSnapshot.getKey().equals(b[i]) && i<b.length)\n {\n MyDataSetGet data = dataSnapshot.getValue(MyDataSetGet.class);\n // Toast.makeText(ViewBooksActivity.this, \"value aded\"+i, Toast.LENGTH_SHORT).show();\n listData.add(data);\n i++;\n\n }\n rv2.setAdapter(adapter);\n }\n\n\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }",
"public RecipeDatabase() {\n\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference AllRecipeRef = database.getReference(\"allRecipes\");\n DatabaseReference newRecipeRef = AllRecipeRef.push();\n newRecipeRef.setValue(new Recipe(\"Pizza\", 1.0, \"gn_logo\", \"Italian\", \"5\", \"instr\", \"ingredients\"));\n AllRecipeRef.push().setValue(new Recipe(\"Sushi Rolls\", 2.0, \"mkp_logo\", \"Japanese\", \"5\", \"instr\", \"ingredients\"));\n AllRecipeRef.push().setValue(new Recipe(\"Crepe\", 3.5, \"mt_logo\", \"French\", \"5\", \"instr\", \"ingredients\"));\n AllRecipeRef.push().setValue(new Recipe(\"Baked Salmon\", 0, \"pb_logo\", \"American\", \"5\", \"1. prep ingredients\\n2.cook food\\n3.eat your food\", \"ingredients1 ingredient 2 ingredient3\"));\n }",
"private void inicializar() {\n mAuth = FirebaseAuth.getInstance();\n //Iniciamos firebase usuario\n FirebaseUser firebaseUser = mAuth.getCurrentUser();\n Query consulta = refDireccion.orderByChild(\"correo\").equalTo(firebaseUser.getEmail());\n\n FloatingActionButton fab_agregar= findViewById(R.id.btn_agregar);\n listaDireccion = findViewById(R.id.ListaDireccion);\n\n // Cuando el usuario haga clic en la lista (para editar registro)\n listaDireccion.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Intent intent = new Intent(getBaseContext(), AgregarDireccion.class);\n\n intent.putExtra(\"accion\",\"e\"); // Editar\n intent.putExtra(\"key\", direcciones.get(i).getKey());\n intent.putExtra(\"nombre\",direcciones.get(i).getNombre_direccion());\n intent.putExtra(\"direccion\",direcciones.get(i).getDireccion());\n intent.putExtra(\"correo\",direcciones.get(i).getCorreo());\n startActivity(intent);\n }\n });\n\n // Cuando el usuario hace un LongClic (clic sin soltar elemento por mas de 2 segundos)\n // Es por que el usuario quiere eliminar el registro\n listaDireccion.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {\n @Override\n public boolean onItemLongClick(AdapterView<?> adapterView, View view, final int position, long l) {\n\n // Preparando cuadro de dialogo para preguntar al usuario\n // Si esta seguro de eliminar o no el registro\n AlertDialog.Builder ad = new AlertDialog.Builder(ActividadDireccion.this);\n ad.setMessage(\"Está seguro de eliminar la direccion?\")\n .setTitle(\"Confirmación\");\n\n ad.setPositiveButton(\"Si\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n ActividadDireccion.refDireccion\n .child(direcciones.get(position).getKey()).removeValue();\n\n Toast.makeText(ActividadDireccion.this,\n \"Registro borrado!\", Toast.LENGTH_SHORT).show();\n finish();\n startActivity(getIntent());\n }\n });\n ad.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Toast.makeText(ActividadDireccion.this,\n \"Operación de borrado cancelada!\", Toast.LENGTH_SHORT).show();\n }\n });\n\n ad.show();\n return true;\n }\n });\n\n fab_agregar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // Cuando el usuario quiere agregar un nuevo registro\n Intent i = new Intent(getBaseContext(), AgregarDireccion.class);\n i.putExtra(\"accion\",\"a\"); // Agregar\n i.putExtra(\"key\",\"\");\n i.putExtra(\"nombre\",\"\");\n i.putExtra(\"direccion\",\"\");\n i.putExtra(\"correo\",firebaseUser.getEmail());\n startActivity(i);\n }\n });\n\n direcciones = new ArrayList<>();\n\n // Cambiarlo refProductos a consultaOrdenada para ordenar lista\n consulta.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n // Procedimiento que se ejecuta cuando hubo algun cambio\n // en la base de datos\n // Se actualiza la coleccion de personas\n direcciones.removeAll(direcciones);\n for (DataSnapshot dato : dataSnapshot.getChildren()) {\n Direccion direccion = dato.getValue(Direccion.class);\n direccion.setKey(dato.getKey());\n direcciones.add(direccion);\n }\n\n AdaptadorDireccion adapter = new AdaptadorDireccion(ActividadDireccion.this,\n direcciones);\n listaDireccion.setAdapter(adapter);\n\n if(adapter.getCount() == 0){\n txDireccion.setText(\"No tiene ninguna direccion registrada\");\n }else {\n txDireccion.setText(\"Direcciones registradas\");\n }\n\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n }",
"@Override\n public void onCancelled(FirebaseError firebaseError) {\n }",
"private void firebaseReyclerViewAdapter() {\n options = new FirebaseRecyclerOptions.Builder<DataModels>()\n // Referensi Database yang akan digunakan beserta data Modelnya\n .setQuery(reference.child(\"KucingPutih\"), DataModels.class)\n .setLifecycleOwner((LifecycleOwner) getActivity()) //Untuk menangani perubahan siklus hidup pada Activity/Fragment\n .build();\n\n // Digunakan untuk menghubungkan View dengan data Models\n recyclerAdapter = new FirebaseRecyclerAdapter<DataModels, RecyclerAdapter>(options) {\n\n @Override\n protected void onBindViewHolder(@NonNull RecyclerAdapter holder, int position, @NonNull DataModels model) {\n //Mendapatkan data dari Database yang akan ditampilkan pada RecyclerView\n holder.setDisplayImage(model.getImage_url(), getActivity());\n\n progressBar.setVisibility(View.GONE);\n }\n\n @NonNull\n @Override\n public RecyclerAdapter onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\n //Mengubungkan adapter dengan Layout yang akan digunakan\n return new RecyclerAdapter(LayoutInflater.from(parent.getContext())\n .inflate(R.layout.recycler_layout, parent, false));\n }\n };\n recyclerView.setAdapter(recyclerAdapter);\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n direcciones.removeAll(direcciones);\n for (DataSnapshot dato : dataSnapshot.getChildren()) {\n Direccion direccion = dato.getValue(Direccion.class);\n direccion.setKey(dato.getKey());\n direcciones.add(direccion);\n }\n\n AdaptadorDireccion adapter = new AdaptadorDireccion(ActividadDireccion.this,\n direcciones);\n listaDireccion.setAdapter(adapter);\n\n if(adapter.getCount() == 0){\n txDireccion.setText(\"No tiene ninguna direccion registrada\");\n }else {\n txDireccion.setText(\"Direcciones registradas\");\n }\n\n }",
"public static void initialize() {\n //Get Firebase auth instance\n GlobalData.auth = FirebaseAuth.getInstance();\n\n GlobalData.u = new User();\n GlobalData.u.setId(\"Hh7qGadAgPeRUJYAEGjvRu845DC3\");//\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n /**\n * Start Firebase!\n */\n FirebaseCore.start();\n// User u = new User();\n// u.setId(\"6ZxSGeHS4DOoFHEE2McBcGH7XHP2\");\n//\n// try {\n// u = DUser.crud(u, true);\n// } catch (Exception e) {\n// e.printStackTrace();\n// }\n// Log.e(\"Test\", u.getEmail());\n//\n// Message m = new Message();\n// m.setMessage(\"Hello \" + System.currentTimeMillis());\n// m.setBlobname(null);\n// m.setBlob(null);\n// m.setTimestamp(System.currentTimeMillis());\n//\n// try {\n// m.setOrder(DAutoIncrement.order(DAutoIncrement.MESSAGE));\n//\n// m = DMessage.crud(m, false, false);\n// Message m2 = new Message();\n// m2.setId(m.getId());\n// m2 = DMessage.crud(m2, true, false);\n//// Log.w(\"Message\",m2.getId());\n// Message m3 = new Message();\n// m3.setId(m.getId());\n//// DMessage.crud(m3,false, true);\n//// Log.w(\"Message2\",m3.getId());\n// DMessageList.crd(u, u, m, false, false);\n//\n// final ArrayList<Message> messages = DMessageList.crd(u, u, null, true, false);\n// for (Message mes : messages\n// ) {\n// DMessage.crud(mes, true, false); // Fill the message with data\n//\n// }\n// // Sorting require all messages element to be filled, otherwise, it won't work\n// Collections.sort(messages);\n// for (Message mes : messages\n// ) {\n// Log.e(mes.getId(), mes.getMessage());\n//\n// }\n//\n// RunnableDataSnapshot rds = new RunnableDataSnapshot() {\n// @Override\n// public void run(DataSnapshot dataSnapshot, Object object) {\n// ArrayList<Message> messages2 = (ArrayList<Message>) object;\n// Collections.sort(messages2);\n// for (int i = messages.size(); i < messages2.size(); i++) {\n// Log.e(\"New Input\", messages2.get(i).getId());\n// messages.add(messages2.get(i));\n// }\n// Log.e(\"Data change\", \"Data is changing\");\n// }\n// };\n// DMessageList.nonblockRead(u, u, rds);\n// User u2 = new User();\n// u2.setId(\"Hh7qGadAgPeRUJYAEGjvRu845DC3\");\n// ArrayList<User> users = new ArrayList<User>();\n// users.add(u2);\n// HashMap<String, ArrayList<User>> hm = new HashMap<String, ArrayList<User>>();\n// hm.put(\"Group 1\", users);\n// DBroadcast.uBroadcastPushorDelete(u, hm, true);\n// ArrayList<User> users2 = new ArrayList<User>();\n// users2.add(u);\n// users2.add(u2); // it add itself which must be avoided!\n// HashMap<String, ArrayList<User>> hm2 = new HashMap<String, ArrayList<User>>();\n// hm.put(\"Group 2\", users2);\n// DBroadcast.uBroadcastPushorDelete(u2, hm2, true);\n// } catch (Exception e) {\n// e.printStackTrace();\n// }\n }\n });\n t.start();\n\n }",
"public void buscarPabellon(String idPabellon)\n {\n TxtPabellon=(TextView)findViewById(R.id.txt_pabellon);\n database.getReference(Constants.FIREBASE_LOCATION_PABELLON).child(idPabellon).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Pabellon pabellon = dataSnapshot.getValue(Pabellon.class);\n latPabellon=pabellon.getLatitud();\n longPabellon=pabellon.getLongitud();\n nombrePabellon=pabellon.getNombre();\n TxtPabellon.setText(nombrePabellon);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Log.w(\"getUser:onCancelled\", databaseError.toException());\n }\n });\n }",
"void save_Online(String firebase_id){\n\n DatabaseReference records_ref =\n FirebaseDatabase.getInstance().getReference(getResources().getString(R.string.records_ref));\n DatabaseReference all_users_ref =\n FirebaseDatabase.getInstance().getReference(getResources().getString(R.string.all_users));\n\n User_Class klinuser = common.userBundle(registration_bundle);\n\n if (klinuser != null){\n String cell_number = \"0\"+String.valueOf(klinuser.getNumber());\n records_ref.child(cell_number).child(\"uid\").setValue(klinuser.getFirebaseID());\n\n //save user details to All_Users/Biography/Uid\n all_users_ref.child(firebase_id).setValue(klinuser);\n loadBioData_online(firebase_id);\n }\n\n\n }",
"@Override\n public void obtenerSolicitudesQuedadas(final ObtenerSolicitudesQuedadasCallback callback) {\n user = mAuth.getCurrentUser();\n UsuariosRef.child(user.getUid()).child(\"Peticiones enviadas\").addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n\n peticionQuedada = dataSnapshot.getValue(PeticionQuedada.class);\n Log.i(\"PETICIONES_OBTENIDA\", peticionQuedada.toString());\n listaPeticionesQuedadasUsuario.add(peticionQuedada);\n\n callback.onSolicitudesQuedadasObtenidas(listaPeticionesQuedadasUsuario);\n\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n callback.onSolicitudesQuedadasObtenidasError();\n }\n }) ;\n }",
"private void getInfo() {\n mDatabaseReference.child(studentID).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n\n student = dataSnapshot.getValue(Student.class);\n student.setStuID(dataSnapshot.getKey().toString());\n bus.setID(dataSnapshot.child(\"busID\").getValue().toString());\n busStop.setBusStopID(dataSnapshot.child(\"busID\").getValue().toString());\n parent.setPatentID(dataSnapshot.child(\"parentID\").getValue().toString());\n getBusList();\n showInfo();\n } else {\n progressBar.dismiss();\n Toast.makeText(getActivity(), R.string.error_database, Toast.LENGTH_SHORT).show();\n }\n }\n\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n if (databaseError != null) {\n Toast.makeText(getActivity(), R.string.error_database, Toast.LENGTH_SHORT).show();\n }\n\n }\n });\n\n }",
"private void writeAndReadFromDatabase() {\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference myRef = database.getReference(\"message\");\n DatabaseReference locationRef = database.getReference(\"Emerald Location\");\n\n myRef.setValue(\"Yay this is working!!!\");\n // Read from the database\n myRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n // This method is called once with the initial value and again\n // whenever data at this location is updated.\n String value = dataSnapshot.getValue(String.class);\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n Log.w(\"Amy\", \"Failed to read value.\", error.toException());\n }\n });\n }",
"private void populateDatabase(final FirebaseDatabase database, final DatabaseReference sessionRef) {\n cityName = getIntent().getStringExtra(\"cityName\");\n\n DatabaseReference citiesRef = database.getReference(\"Cities\");\n Log.d(\"Sean\", \"citiesRef: \" + database.getReference(\"Cities\").child(cityName).toString());\n\n citiesRef.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Log.d(\"Sean\", \"Restaurants: \" + dataSnapshot.child(cityName).child(\"Restaurants\").getValue().toString());\n Map<String, Restaurant> restaurants = new HashMap();\n for (DataSnapshot restaurantData : dataSnapshot.child(cityName).child(\"Restaurants\").getChildren()) {\n restaurants.put(restaurantData.getKey(), restaurantData.getValue(Restaurant.class));\n }\n DatabaseReference restaurantsRef = sessionRef.child(\"Restaurants\");\n restaurantsRef.setValue(restaurants);\n\n Log.d(\"Sean\", \"Food Items: \" + dataSnapshot.child(cityName).child(\"Food Items\").getValue().toString());\n Log.d(\"Sean\", \"Food Items Class: \" + dataSnapshot.child(cityName).child(\"Food Items\").getClass().toString());\n\n ArrayList<Object> foodItems = (ArrayList) dataSnapshot.child(cityName).child(\"Food Items\").getValue();\n DatabaseReference foodItemsRef = sessionRef.child(\"Food Items\");\n foodItemsRef.setValue(foodItems);\n\n populateLocalData(sessionRef, dataSnapshot);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Log.d(\"Sean\", \"The database failed to read: \" + databaseError.getCode());\n }\n });\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n myprojects.clear();\n projectList.clear();\n for (DataSnapshot data : dataSnapshot.getChildren())\n myprojects.add(data.getKey());\n\n for (final String key : myprojects) {\n myRef.child(\"ProjectList\").child(key).addListenerForSingleValueEvent(\n new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n // Get Project value\n\n Project project = dataSnapshot.getValue(Project.class);\n project.setKey(key);\n projectList.add(project);\n adapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n }\n );\n }\n }",
"private void obtenerAnimales() {\n // final ArrayList<String> lista = new ArrayList<>();\n //Para obtener datos de la base de datos\n refAnimales.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n long size = dataSnapshot.getChildrenCount();\n ArrayList<String> animalesFirebase = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n\n String code = dataSnapshot.child(\"\" + i).child(\"codigo\").getValue(String.class);\n String nombre = dataSnapshot.child(\"\" + i).child(\"nombre\").getValue(String.class);\n String tipo = dataSnapshot.child(\"\" + i).child(\"tipo\").getValue(String.class);\n String raza = dataSnapshot.child(\"\" + i).child(\"raza\").getValue(String.class);\n String animal = code + \" | \" + nombre + \" | \" + tipo + \" | \" + raza;\n\n animalesFirebase.add(animal);\n }\n\n adaptar(animalesFirebase);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"@Override\n public void onEvent(@Nullable final QuerySnapshot value, @Nullable FirebaseFirestoreException e) {\n if (value.size() > 0) {\n\n /*Recorrido de datos*/\n for (DocumentSnapshot doc : value) {\n Log.i(\"Datos reco Descripcion \" , doc.getString(\"Descripcion\"));\n\n /*Se agrega datos de servicio a arraylist*/\n services.add(new Servicios_worker(doc.getId(), doc.getString(\"Descripcion\"), doc.getString(\"Servicio\"), doc.getString(\"Direccion\"), doc.getString(\"Min\")));\n adapter.notifyDataSetChanged();\n }\n\n recycler.setAdapter(adapter);\n\n /*Se oculta ProgressBar*/\n materialProgressBar.setIndeterminate(false);\n materialProgressBar.setVisibility(View.GONE);\n\n }\n else\n {\n /*Se oculta ProgressBar*/\n materialProgressBar.setIndeterminate(false);\n materialProgressBar.setVisibility(View.GONE);\n\n /*Mostrar mensaje de exito*/\n Toast.makeText (PostularseActivity.this, \"No existen servicios.\", Toast.LENGTH_SHORT).show ();\n }\n\n }",
"public static void readEventos(){\n\n //Cojemos el dni del trabajador logado\n dni_trabajador = DatosUsuario.getDNI();\n\n //Inicializamos\n db = FirebaseFirestore.getInstance();\n listaEventos = new ArrayList<RecyclerViewCalTrabajador>();\n listaEventosDias = new ArrayList<RecyclerViewCalTrabajador>();\n\n //Leemos todos y los metemos en un array\n db.collection(\"Evento\")\n .whereEqualTo(\"Trabajador\", dni_trabajador)\n .get()\n .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n if (task.isSuccessful()) {\n for (QueryDocumentSnapshot document : task.getResult()) {\n /*Cogemos el dato fecha de la bbdd y hacemos el casting\n * a millisegundos para darselo a el evento.*/\n\n\n // Timestamp f = (Timestamp) document.get(\"Fecha\");\n Fecha = document.getString(\"Fecha\");\n System.out.println(Fecha);\n Log.d(Values.tag_log, \"Fecha: \" + document.get(\"Fecha\"));\n //Date f1 = f.toDate();\n Log.d(Values.tag_log, \"Fecha: \" );\n\n try {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy hh:mm:ss.SSS\");\n parsedDate = dateFormat.parse(Fecha);\n timestamp = new java.sql.Timestamp(parsedDate.getTime());\n } catch(Exception e) { //this generic but you can control another types of exception\n // look the origin of excption\n }\n\n\n listaEventos.add(new RecyclerViewCalTrabajador(timestamp,document.get(\"Titulo\").toString(),\n document.get(\"Trabajador\").toString(),document.get(\"Adress\").toString()));\n //Date f1 = f.toDate();\n Log.d(Values.tag_log, \"Fecha: \" + d);\n\n\n /* listaEventos.add(new RecyclerViewCalTrabajador(d,document.get(\"Titulo\").toString(),\n document.get(\"Trabajador\").toString(),document.get(\"Adress\").toString()));*/\n }\n } else {\n Log.d(TAG, \"Error getting documents: \", task.getException());\n }\n }\n });\n\n }",
"private void queryStartingAtValueChildKey(JSONArray data) {\n \tString strURL = String.format(\"https://%s.firebaseio.com\", appName); // = \"https://%@.firebaseio.com\" + appName;\n \tString strChildKey;\n \tObject objStartValue;\n\n if ( data.length() >= 3 )\n {\n \ttry {\n\t\t\t\tstrURL = data.getString(0);\n\t\t\t\tobjStartValue = data.get(1);\n\t\t\t\tstrChildKey = data.getString(2);\n\t\t\t} catch (JSONException e) {\n\t\t\t\tPluginResult pluginResult = new PluginResult(Status.ERROR, e.getMessage());\n\t\t\t\tmCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n }\n else{\n \tPluginResult pluginResult = new PluginResult(Status.ERROR, \"queryStartingAtValueChildKey : Parameter Error\");\n \tmCallbackContext.sendPluginResult(pluginResult);\n \treturn;\n }\n\n Firebase urlRef = new Firebase(strURL);\n\n if(isUsed != true)\n isUsed = true;\n ValueEventListener listener = new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot snapshot) {\n JSONObject resultObj;\n\t\t\t\ttry {\n HashMap result = snapshot.getValue(HashMap.class);\n if (result == null)\n resultObj = new JSONObject();\n else\n resultObj = new JSONObject(result);\n\t PluginResult pluginResult = new PluginResult(Status.OK, resultObj);\n\t //pluginResult.setKeepCallback(true);\n\t mCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tPluginResult pluginResult = new PluginResult(Status.ERROR, e.getMessage());\n\t\t\t\t\tmCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n }\n\n @Override\n public void onCancelled(FirebaseError firebaseError) {\n System.out.println(\"queryStartingAtValueChildKey().addListenerForSingleValueEvent failed: \" + firebaseError.getMessage());\n PluginResult pluginResult = new PluginResult(Status.ERROR, \"queryStartingAtValueChildKey failded: \" + firebaseError.getMessage());\n mCallbackContext.sendPluginResult(pluginResult);\n }\n };\n\n // Read data and react to changes\n if( objStartValue.getClass() == Double.class )\n \turlRef.startAt(((Double)objStartValue).doubleValue(), strChildKey).addListenerForSingleValueEvent(listener);\n else if(objStartValue.getClass() == Boolean.class )\n \turlRef.startAt(((Boolean)objStartValue).booleanValue(), strChildKey).addListenerForSingleValueEvent(listener);\n else if( objStartValue.getClass() == String.class )\n \turlRef.startAt((String)objStartValue, strChildKey).addListenerForSingleValueEvent(listener);\n else\n \turlRef.startAt(objStartValue.toString(), strChildKey).addListenerForSingleValueEvent(listener);\n }",
"public void onDataChange(DataSnapshot snapshot) {\n progressDialog.dismiss();\n\n //iterating through all the values in database\n for (DataSnapshot postSnapshot : snapshot.getChildren()) {\n Upload upload = postSnapshot.getValue(Upload.class);\n uploads.add(upload);\n }\n }",
"private void readSubscriptions() {\n DatabaseReference reference = FirebaseDatabase.getInstance(\"https://projectsub-9f668-default-rtdb.europe-west1.firebasedatabase.app\")\n .getReference(\"users/\"+user.getUid()+\"/subscriptions\");\n\n reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull @NotNull DataSnapshot dataSnapshot) {\n mSubscriptions.clear();\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n Subscription subscription = snapshot.getValue(Subscription.class);\n\n savedSubs.add(subscription);\n mSubscriptions.add(subscription);\n }\n\n adapter.notifyDataSetChanged();\n\n }\n\n @Override\n public void onCancelled(@NonNull @NotNull DatabaseError error) {\n // TODO\n }\n });\n }",
"private void getData(){\n //It is suppose to be initialize at the top\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"contacts\")\n .get()\n .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n if (task.isSuccessful()) {\n\n //QueryDocumentSnapshot replaced.\n for (DocumentSnapshot document : task.getResult()) {\n addArray.add(document.getLong(\"ContactNo\").intValue());\n //Log.d(TAG, document.getId() + \" => \" + document.getString(\"ContactNo\"));\n }\n } else {\n Log.d(TAG, \"Error getting documents: \", task.getException());\n }\n }\n });\n }",
"public DatabaseReference open() {\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n myPokemonDbRef = database.getReference(PokemonDataTag);\n return myPokemonDbRef;\n }",
"public static DatabaseReference getFirebaseDatabase(){\n\n if (firebase == null){\n firebase = FirebaseDatabase.getInstance().getReference();\n }\n return firebase;\n }",
"private void dispositivoGPS(String nameDisp){\n DatabaseReference db_dispositivo = db_reference.child(\"Registros\");\n\n db_dispositivo.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n Boolean existe = false;\n HashMap<String, String> info_disp = null;\n\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n if (snapshot!=null && snapshot.getKey().equals(edtDispositivo.getText().toString())){\n System.out.println(nameDisp+\"hola\");\n info_disp =(HashMap<String, String>) snapshot.getValue();\n existe = true;\n break;\n }\n }\n if (existe && info_disp!=null) {\n System.out.println(existe);\n DatabaseReference db_dispo = db_dispositivo.child(nameDisp);\n db_dispo.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n HashMap<String, String> info_dps = null;\n String key = null;\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n info_dps =(HashMap<String, String>) dataSnapshot.getValue();\n key=snapshot.getKey();\n break;\n }\n if (info_dps!=null && key!=null) {\n\n DatabaseReference base = db_dispo.child(key);\n base.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n HashMap<String, String> info =null;\n HashMap<String, String> punto =null;\n Boolean nulidad = false;\n String keydato = null;\n for (DataSnapshot snapshot : dataSnapshot.getChildren()){\n info = (HashMap<String, String>) dataSnapshot.getValue();\n if (info!=null) {\n if (!info.get(\"lat\").equals(\"0\")) {\n punto = (HashMap<String, String>) dataSnapshot.getValue();\n nulidad = true;\n keydato = dataSnapshot.getKey();\n System.out.println(keydato);\n break;\n }\n System.out.println(\"no existe\");\n }\n }\n if (punto!=null && nulidad && keydato!=null){\n System.out.println(info);\n System.out.println(\"aki\");\n if (numDispositivo == 1) {\n disp_Lat1 = punto.get(\"lat\");\n disp_Long1 = punto.get(\"long\");\n estadoBateria = punto.get(\"estBateria\");\n System.out.println(numDispositivo);\n System.out.println(numDispositivo);\n System.out.println(disp_Lat1 + \"-\" + disp_Long1);\n System.out.println(disp_Lat2 + \"-\" + disp_Long2);\n Toast.makeText(FormularioCurso.this, \"La bateria de su dispositivo es: \" + estadoBateria, Toast.LENGTH_SHORT).show();\n DatabaseReference eliminar = db_reference.child(\"Registros\").child(nameDisp);\n eliminar.child(keydato).removeValue();\n }\n if (numDispositivo == 2) {\n disp_Lat2 = punto.get(\"lat\");\n disp_Long2 = punto.get(\"long\");\n estadoBateria = punto.get(\"estBateria\");\n System.out.println(numDispositivo);\n System.out.println(disp_Lat1 + \"-\" + disp_Long1);\n System.out.println(disp_Lat2 + \"-\" + disp_Long2);\n Toast.makeText(FormularioCurso.this, \"La bateria de su dispositivo es: \" + estadoBateria, Toast.LENGTH_SHORT).show();\n DatabaseReference eliminar = db_reference.child(\"Registros\").child(nameDisp);\n eliminar.child(keydato).removeValue();\n }\n Guardar();\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Log.e(TAG, \"Error!\", databaseError.toException());\n }\n });\n\n }else{\n System.out.println(\"falla disp\");\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Log.e(TAG, \"Error!\", databaseError.toException());\n }\n });\n\n }else{\n Toast.makeText(FormularioCurso.this, \"El codigo o nombre del dispositivo ingresado no existe.\", Toast.LENGTH_SHORT).show();\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Log.e(TAG, \"Error!\", databaseError.toException());\n }\n });\n }",
"@Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n mPlants.clear();\n\n //aici baga key value din real time database\n for(DataSnapshot postSnapshot : snapshot.getChildren()){\n Plants plant = postSnapshot.getValue(Plants.class);\n plant.setKey(postSnapshot.getKey());\n\n Log.d(\"TAG\", \"plant.key \" + plant.getKey() );\n mPlants.add(plant);\n }\n\n mAdapter.notifyDataSetChanged();\n }",
"private void send(){\n String n = name.getText().toString();\n String b = bg.getText().toString();\n String d = dob.getText().toString();\n String l = loc.getText().toString();\n String i = id.getText().toString();\n String m = mob.getText().toString();\n\n if(TextUtils.isEmpty(n) || TextUtils.isEmpty(b) || TextUtils.isEmpty(d) || TextUtils.isEmpty(l) || TextUtils.isEmpty(i)\n || TextUtils.isEmpty(m)){\n //if any of the field remains empty, no data will be send\n Toast.makeText(this, \"Details incomplete!!\", Toast.LENGTH_SHORT).show();\n }\n else{\n //sending data\n String id = root.push().getKey();//key given by the firebase itself\n \n //creating new person object for each data\n Person person = new Person(b,d,i,l,m,n);\n root.child(id).setValue(person);//sending data\n }\n }",
"public void carregarFotosPostagem(){\n postagensUsuarioRef.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n // Limpando Lista de postagens\n listaDePostagens.clear();\n listaDeUrl.clear();\n\n\n // Configurar tamanho do grid\n // recuperamos o tamanho da tela do usuario e dividimos por 3\n int tamanhoGrid = getResources().getDisplayMetrics().widthPixels;\n int tamanhoGridPadding = tamanhoGrid - 20;\n int tamanhoImagem = tamanhoGridPadding/3;\n gridPerfilAmigo.setColumnWidth(tamanhoImagem);\n gridPerfilAmigo.setVerticalSpacing(2);\n gridPerfilAmigo.setHorizontalSpacing(2);\n\n for (DataSnapshot ds: snapshot.getChildren()){\n Postagem postagem = ds.getValue(Postagem.class);\n\n listaDePostagens.add(postagem);\n listaDeUrl.add(postagem.getFoto());\n }\n tvPublicacao.setText(String.valueOf(listaDePostagens.size()));\n\n // Configurando Adapter para o GridView\n adapterGridAmigo = new AdapterGridAmigo(getApplicationContext(), R.layout.adapter_grid, listaDeUrl);\n gridPerfilAmigo.setAdapter(adapterGridAmigo);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n\n }",
"@Override\n public void onComplete(DatabaseError databaseError, DatabaseReference databaseReference) {\n myRef.updateChildren(allCategories, new DatabaseReference.CompletionListener() {\n @Override\n public void onComplete(DatabaseError databaseError, DatabaseReference databaseReference) {\n Gson gson = new Gson();\n String subCategoriesJSON = gson.toJson(allCategories);\n Log.d(\"pruebaJsonCat\", subCategoriesJSON);\n Log.d(\"pruebaJsonCat\", category);\n appPreferences.saveDataString(Utils.KEY_CATEGORY, category);\n appPreferences.saveDataString(Utils.KEY_SUBCATEGORY, subCategoriesJSON);\n\n startActivity(new Intent(ProfileActivity.this, TabsPublication.class)\n .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK));\n }\n });\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Log.d(\"data \", dataSnapshot.toString());\n }",
"private void loaddata(){\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n FirebaseDatabase database =FirebaseDatabase.getInstance();\n\n //Obtengo la referencia a la lista de pares del usuario.\n final DatabaseReference myRef = database.getReference(FirebaseReferences.LIST_PAIRS_REFERENCE).child(user.getUid()).child(FirebaseReferences.PAIR_REFERENCE);\n\n myRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n pairs.removeAll(pairs);\n\n for(DataSnapshot snapshot :dataSnapshot.getChildren()){\n\n Pair pair = snapshot.getValue(Pair.class);\n pairs.add(pair);\n }\n groupbyPairs(pairs);\n pairsAdapter.setPairs2List(pairsOrdered);\n\n btcInfo=pairsAdapter.getBtcInfo();\n if(btcInfo != null){\n getBalance();\n Log.e(\"Balance\", \"Balance Cargado\");\n }else {\n Log.e(\"Balance\", \"Sin balance\");\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n list = new ArrayList<Model>();\n for(DataSnapshot dataSnapshot1 :dataSnapshot.getChildren()){\n\n Model value = dataSnapshot1.getValue(Model.class);\n Model fire = new Model();\n String name = value.getDescription();\n String address = value.getTitle();\n String email = value.getImage();\n Log.e(\"asvdgs\",name);\n fire.setDescription(name);\n fire.setImage(email);\n fire.setTitle(address);\n list.add(fire);\n\n }\n\n }",
"private void SaveVisitors() {\n\n if(deceasedKey!=null)\n {\n @SuppressLint(\"SimpleDateFormat\") DateFormat df = new SimpleDateFormat(\"EEE, d MMM yyyy, HH:mm\");\n date = df.format(Calendar.getInstance().getTime());\n\n reference=database.getReference(\"Deceaceds\").child(deceasedKey).child(\"Visitors\");\n reference.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n final Map<String,String> newMap= new HashMap<>();\n newMap.put(\"Date\", date + \" \"+\"Tarihinde \" + VisitorName + \" \" + VisitorSurname+\" \"+Fullname+\" profilini ziyaret etti\");\n String VisitorKey = reference.push().getKey();\n reference.child(VisitorKey).setValue(newMap);\n\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n\n }\n\n }",
"@Override\n public void onDataChange(DataSnapshot snapshot) {\n }",
"private void queryEqualToValueChildKey(JSONArray data) {\n \tString strURL = String.format(\"https://%s.firebaseio.com\", appName); // = \"https://%@.firebaseio.com\" + appName;\n \tString strChildKey;\n \tObject objValue;\n\n if ( data.length() >= 3 )\n {\n \ttry {\n\t\t\t\tstrURL = data.getString(0);\n\t\t\t\tobjValue = data.get(1);\n\t\t\t\tstrChildKey = data.getString(2);\n\t\t\t} catch (JSONException e) {\n\t\t\t\tPluginResult pluginResult = new PluginResult(Status.ERROR, e.getMessage());\n\t\t\t\tmCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n }\n else{\n \tPluginResult pluginResult = new PluginResult(Status.ERROR, \"queryEqualToValueChildKey : Parameter Error\");\n \tmCallbackContext.sendPluginResult(pluginResult);\n \treturn;\n }\n\n Firebase urlRef = new Firebase(strURL);\n\n if(isUsed != true)\n isUsed = true;\n ValueEventListener listener = new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot snapshot) {\n JSONObject resultObj;\n\t\t\t\ttry {\n HashMap result = snapshot.getValue(HashMap.class);\n if (result == null)\n resultObj = new JSONObject();\n else\n resultObj = new JSONObject(result);\n\t PluginResult pluginResult = new PluginResult(Status.OK, resultObj);\n\t //pluginResult.setKeepCallback(true);\n\t mCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tPluginResult pluginResult = new PluginResult(Status.ERROR, e.getMessage());\n\t\t\t\t\tmCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n }\n\n @Override\n public void onCancelled(FirebaseError firebaseError) {\n System.out.println(\"queryEqualToValueChildKey().addListenerForSingleValueEvent failed: \" + firebaseError.getMessage());\n PluginResult pluginResult = new PluginResult(Status.ERROR, \"queryEqualToValueChildKey failded: \" + firebaseError.getMessage());\n mCallbackContext.sendPluginResult(pluginResult);\n }\n };\n\n // Read data and react to changes\n if( objValue.getClass() == Double.class )\n \turlRef.equalTo(((Double)objValue).doubleValue(), strChildKey).addListenerForSingleValueEvent(listener);\n else if(objValue.getClass() == Boolean.class )\n \turlRef.equalTo(((Boolean)objValue).booleanValue(), strChildKey).addListenerForSingleValueEvent(listener);\n else if( objValue.getClass() == String.class )\n \turlRef.equalTo((String)objValue, strChildKey).addListenerForSingleValueEvent(listener);\n else\n \turlRef.equalTo(objValue.toString(), strChildKey).addListenerForSingleValueEvent(listener);\n }",
"private void allDeliveryInformation() {\n DatabaseReference deliveryFeeRef = FirebaseDatabase.getInstance().getReference().child(\"Delivery Details\");\n deliveryFeeRef.child(\"personnelDelivery\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()){\n if (dataSnapshot.hasChild(\"amount\")){\n personnelDeliveryFee = dataSnapshot.child(\"amount\").getValue().toString();\n }\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n deliveryFeeRef.child(\"postBoxDelivery\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()){\n if (dataSnapshot.hasChild(\"amount\")){\n postBoxDeliveryFee = dataSnapshot.child(\"amount\").getValue().toString();\n }\n\n if (dataSnapshot.hasChild(\"InnerMessage\")){\n postBoxDeliveryMessage = dataSnapshot.child(\"InnerMessage\").getValue().toString();\n }\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }",
"private void populatePersonalBoardList() {\n final DatabaseReference database;\n database = FirebaseDatabase.getInstance().getReference();\n\n database.child(\"PersonalBoard\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n DatabaseReference personalBoardDBRef = null;\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n if(snapshot.hasChild(email.split(\"@\")[0])){\n dataSnapshot = snapshot.child(email.split(\"@\")[0]);\n personalBoardDBRef = database.child(\"PersonalBoard\").child(snapshot.getKey()).child(email.split(\"@\")[0]);\n break;\n }\n }\n\n if(personalBoardDBRef != null) {\n for(DataSnapshot snapshot : dataSnapshot.getChildren()) {\n for(DataSnapshot subsnapshot : snapshot.getChildren()) {\n personalBoardList.add(subsnapshot.getKey().toString());\n }\n }\n } else {\n personalBoardList.add(\"My Board\");\n }\n arrayAdapterPersonalBoard.notifyDataSetChanged();\n }\n\n @Override\n public void onCancelled(DatabaseError d) {\n Log.d(\"Login DbError Msg ->\", d.getMessage());\n Log.d(\"Login DbError Detail ->\", d.getDetails());\n }\n });\n }",
"public void chargerLesParcours() {\n refParcours.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n Log.d(\"PARCOURS ADDED (snap)\", dataSnapshot.getKey()+\"\");\n addParcoursFromFirebase(evenementFactory.parseParcours(dataSnapshot));\n }\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {}\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {}\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {}\n @Override\n public void onCancelled(DatabaseError databaseError) {}\n });\n }"
] | [
"0.7753662",
"0.7582195",
"0.7483214",
"0.7090578",
"0.6981089",
"0.6951031",
"0.69419956",
"0.6863143",
"0.68332404",
"0.68161327",
"0.66992706",
"0.66504276",
"0.6562217",
"0.6556582",
"0.64909637",
"0.64729476",
"0.64725006",
"0.64709765",
"0.64653987",
"0.64148235",
"0.6400907",
"0.63377035",
"0.633523",
"0.6253634",
"0.6251861",
"0.62446994",
"0.62446994",
"0.62446994",
"0.62446994",
"0.62007356",
"0.6198321",
"0.6189533",
"0.6169005",
"0.6156088",
"0.61490226",
"0.61458886",
"0.6140126",
"0.6120877",
"0.6120015",
"0.6116912",
"0.6110575",
"0.61045593",
"0.60903794",
"0.607864",
"0.6075092",
"0.6050043",
"0.6048597",
"0.6037045",
"0.60348475",
"0.6034659",
"0.60263264",
"0.60255",
"0.600598",
"0.6000651",
"0.60001755",
"0.59956723",
"0.59896314",
"0.5984071",
"0.59631824",
"0.59631824",
"0.5938984",
"0.59384924",
"0.5932157",
"0.5929933",
"0.5921787",
"0.59183013",
"0.59105736",
"0.5909133",
"0.59067243",
"0.5901697",
"0.5901662",
"0.58977395",
"0.5888568",
"0.58835983",
"0.5880829",
"0.5879223",
"0.585809",
"0.5855759",
"0.5852178",
"0.5850886",
"0.58477247",
"0.5847216",
"0.5841674",
"0.5838221",
"0.5833454",
"0.58305347",
"0.5824744",
"0.5821573",
"0.58110464",
"0.5805789",
"0.5804218",
"0.57870466",
"0.57829857",
"0.5771341",
"0.5758302",
"0.57582474",
"0.5754991",
"0.5747476",
"0.5744056",
"0.5742547",
"0.57413"
] | 0.0 | -1 |
recuperando dados do usuario | public void recuperandoDadosUsuarioescolhido(){
Bundle bundle = getIntent().getExtras();
if (bundle != null){
if (bundle.containsKey("usuarioSelecionado")){
dadosDoUsuario = (Usuario) bundle.getSerializable("usuarioSelecionado");
}
}
// Configurando Toolbar
toolbar.setTitle(dadosDoUsuario.getNome());
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
// Configurando Imagem
if (dadosDoUsuario.getFoto() != null){
if (!dadosDoUsuario.getFoto().isEmpty()){
Uri url = Uri.parse(dadosDoUsuario.getFoto());
Glide.with(getApplicationContext()).load(url).into(civFotoPerfil);
}
}
// Configurando Seguidores Postagens e Seguindo
//stPublicacao = String.valueOf(dadosDoUsuario.getPublicacoes());
stSeguidores = String.valueOf(dadosDoUsuario.getSeguidores());
stSeguindo = String.valueOf(dadosDoUsuario.getSeguindo());
tvSeguindo.setText(stSeguindo);
tvSeguidores.setText(stSeguidores);
//tvPublicacao.setText(stPublicacao);
// Configurando Referencia postagens Usuario Escolhido
postagensUsuarioRef = ConfiguracaoFirebase.getFirebaseDatabase()
.child("postagens")
.child(dadosDoUsuario.getId());
// Inicializa o Universal Image Loader
inicializarImageLoader();
// Recupera as Postagens do nosso Banco de Dados
carregarFotosPostagem();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void cargarDatosUsuario() {\n this.textUsuario.setText(this.usuarioCargado.getUsuario());\n this.textContraseña.setText(this.usuarioCargado.getContraseña());\n this.textNombre.setText(this.usuarioCargado.getNombre());\n this.textApellido.setText(this.usuarioCargado.getApellido());\n this.textDocumento.setText(String.valueOf(this.usuarioCargado.getDocumento()));\n this.textTelefono.setText(String.valueOf(this.usuarioCargado.getTelefono()));\n this.textDireccion.setText(this.usuarioCargado.getDireccion());\n this.textoIdUsuairo.setText(String.valueOf(this.usuarioCargado.getId()));\n\n }",
"protected void accionUsuario() {\n\t\t\r\n\t}",
"private void recogerDatos() {\n\t\ttry {\n\t\t\tusuSelecc.setId(etId.getText().toString());\n\t\t\tusuSelecc.setName(etNombre.getText().toString());\n\t\t\tusuSelecc.setFirstName(etPApellido.getText().toString());\n\t\t\tusuSelecc.setLastName(etSApellido.getText().toString());\n\t\t\tusuSelecc.setEmail(etCorreo.getText().toString());\n\t\t\tusuSelecc.setCustomFields(etAuth.getText().toString());\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n\t\t\tmostrarException(e.getMessage());\n\t\t}\n\t}",
"public Usuarios(String Cedula){ //método que retorna atributos asociados con la cedula que recibamos\n conexion = base.GetConnection();\n PreparedStatement select;\n try {\n select = conexion.prepareStatement(\"select * from usuarios where Cedula = ?\");\n select.setString(1, Cedula);\n boolean consulta = select.execute();\n if(consulta){\n ResultSet resultado = select.getResultSet();\n if(resultado.next()){\n this.Cedula= resultado.getString(1);\n this.Nombres= resultado.getString(2);\n \n this.Sexo= resultado.getString(3);\n this.Edad= resultado.getInt(4);\n this.Direccion= resultado.getString(5);\n this.Ciudad=resultado.getString(6);\n this.Contrasena=resultado.getString(7);\n this.Estrato=resultado.getInt(8);\n this.Rol=resultado.getString(9);\n }\n resultado.close();\n }\n conexion.close();\n } catch (SQLException ex) {\n System.err.println(\"Ocurrió un error: \"+ex.getMessage().toString());\n }\n}",
"public UsuarioDTO conocerUsuario(String usuario) {\n UsuarioDTO u = null;\n Conexion c = new Conexion();\n ResultSet rs = null;\n PreparedStatement ps = null;\n String sql = \"SELECT * FROM usuario WHERE usuario.usuario = ?\";\n try {\n ps = c.getConexion().prepareStatement(sql);\n u = new UsuarioDTO();\n ps.setString(1, usuario);\n rs = ps.executeQuery();\n while (rs.next()) {\n u.setID(rs.getInt(1));\n u.setNombre(rs.getString(2));\n u.setApellido(rs.getString(3));\n u.setDescripcion(rs.getString(4));\n u.setTelefono(rs.getString(5));\n u.setDireccion(rs.getString(6));\n u.setUsuario(rs.getString(7));\n u.setEmail(rs.getString(8));\n u.setPassword(rs.getString(9));\n u.setFecha_Nacimiento(rs.getString(10));\n u.setFecha_Creacion(rs.getString(11));\n u.setSexo(rs.getString(12));\n u.setImagen(rs.getAsciiStream(13));\n }\n\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n } finally {\n try {\n ps.close();\n rs.close();\n c.cerrarConexion();\n } catch (Exception ex) {\n }\n }\n return u;\n }",
"public List<Usuario> getAll(){\n String sql = \"SELECT * FROM usuarios \" +\n \" INNER JOIN ciudades ON ciudades.id = usuarios.id_ciudad\" +\n \" INNER JOIN provincias ON provincias.id = usuarios.id_provincia\" +\n \" INNER JOIN paises ON paises.id = usuarios.id_pais\";\n try {\n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(sql);\n List<Usuario> usuarios = new ArrayList<Usuario>();\n while (rs.next()){\n Ciudad ciudad = new Ciudad(rs.getInt(\"ciudades.id\"),rs.getString(\"ciudades.nombre\"));\n\n Provincia provincia = new Provincia(rs.getInt(\"provincias.id\"),rs.getString(\"provincias.nombre\"));\n\n Pais pais = new Pais(rs.getInt(\"paises.id\"),rs.getString(\"paises.nombre\"));\n\n Usuario usuario = new Usuario(rs.getString(\"nombre\"),rs.getString(\"apellido\"),\n rs.getString(\"direccion\"), rs.getString(\"telefono\"),\n ciudad, provincia, pais, rs.getString(\"email\"),\n rs.getString(\"username\"), rs.getString(\"contrasena\"));\n usuario.setId(rs.getInt(\"usuarios.id\"));\n usuarios.add(usuario);\n }\n return usuarios;\n }catch (SQLException e){\n e.printStackTrace();\n }\n return null;\n }",
"public void inicializarDatos(aplicacion.Usuario u){\n //Pestaña Informacion\n this.usuario=fa.obtenerUsuarioVivo(u.getIdUsuario());\n ModeloTablaBuenasAcciones mba;\n mba = (ModeloTablaBuenasAcciones) tablaBA.getModel();\n mba.setFilas(usuario.getBuenasAcciones());\n ModeloTablaPecados mp;\n mp = (ModeloTablaPecados) tablaPecados.getModel();\n mp.setFilas(usuario.getPecados());\n textoNombre.setText(usuario.getNombre());\n textoUsuario.setText(usuario.getNombreUsuario());\n textoContrasena.setText(usuario.getClave());\n textoLocalidad.setText(usuario.getLocalidad());\n textoFechaNacimiento.setText(String.valueOf(usuario.getFechaNacimiento()));\n //PestañaVenganzas\n ModeloTablaUsuarios mu;\n mu = (ModeloTablaUsuarios) tablaUsuarios.getModel();\n mu.setFilas(fa.consultarUsuariosMenos(usuario.getIdUsuario(), textoNombreBusqueda.getText()));\n ModeloTablaVenganzas mv;\n mv = (ModeloTablaVenganzas) tablaVenganzas.getModel();\n mv.setFilas(fa.listaVenganzas());\n }",
"public usuarios Cargar_Usuario(int cedula) {\r\n base_datos_Usuarios ae_db = new base_datos_Usuarios();\r\n usuarios informacion_usuario = ae_db.Buscar_Usuario_DB(cedula);\r\n return informacion_usuario;\r\n }",
"public Usuario buscarUsuario(String usuario) {\n Usuario usuario1 = new Usuario();\n try{\n\t\tString seleccion = \"SELECT usuario, nombre, clave FROM usuarios where usuario=? \";\n\t\tPreparedStatement ps = con.prepareStatement(seleccion);\n ps.setString(1, usuario);\n \n\t\t//Savepoint sp1 = con.setSavepoint(\"SAVE_POINT_ONE\");\n \n\t\tResultSet rs = ps.executeQuery();\n\t\tcon.commit();\n\t\twhile(rs.next()){\n usuario1.setUsuario(rs.getString(\"usuario\")); \n usuario1.setNombre(rs.getString(\"nombre\")); \n usuario1.setClave(rs.getString(\"clave\")); \n return usuario1;\n\t\t} \n \n }catch(Exception e){\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n return null; \n\n }",
"public List<Usuario> listar() {\n List<Usuario> listaUsuarios = new ArrayList<>();\n String consulta = \"select tipoDocumento, documento, nombre, apellido, password, correo, tipoUsuario from Usuario\";\n Cursor temp = conex.ejecutarSearch(consulta);\n if (temp.moveToFirst()) {\n do {\n Usuario usuario = new Usuario(temp.getString(0), Integer.parseInt(temp.getString(1)), temp.getString(2), temp.getString(3), temp.getString(4), temp.getString(5), temp.getString(6));\n listaUsuarios.add(usuario);\n } while (temp.moveToNext());\n }\n return listaUsuarios;\n }",
"public List<Usuario> findAllUsuarios(){\n\t\t\t List<Usuario> listado;\n\t\t\t Query q;\n\t\t\t em.getTransaction().begin();\n\t\t\t q=em.createQuery(\"SELECT u FROM Usuario u ORDER BY u.idUsr\");\n\t\t\t listado= q.getResultList();\n\t\t\t em.getTransaction().commit();\n\t\t\t return listado;\n\t\t\t \n\t\t\t}",
"@Override\n\tpublic Usuario mostrar() {\n\t\tLOG.info(\"Mostrar los datos del usuario\");\n\t\treturn usuario;\n\t}",
"List<Usuario> obtenerUsuarios() throws Exception;",
"@Override\n\t/*Método que se va a usar para comprobar el saldo del usuario que esté logueado nada más entrar en el panel del usuario*/\n\tpublic String comprobarDatos(String nombreusuario) {\n\t\tDBConnection con = new DBConnection();\n\t\tString sql =\"SELECT * from usuarios where nombreusuario LIKE '\"+nombreusuario+\"'\"; //consulta para obtener el saldo\n\t\tString datos=\"\";\n\t\ttry {\n\t\t\tStatement st = con.getConnection().createStatement();\n\t\t\tResultSet rs=st.executeQuery(sql);\n\t\t\twhile(rs.next()) {\n\t\t\t\tString saldo=Float.toString(rs.getFloat(\"saldo\")); //cojo el saldo de la consulta y haco la conversion de float a string\n\t\t\t\tString nombre=rs.getString(\"nombre\");\n\t\t\t\tString apellidos=rs.getString(\"apellidos\");\n\t\t\t\tString clave=rs.getString(\"clave\");\n\t\t\t\tString email=rs.getString(\"email\");\n\t\t\t\tString premium=rs.getString(\"premium\");\n\t\t\t\t\n\t\t\t\tdatos=nombre+\",\"+apellidos+\",\"+clave+\",\"+email+\",\"+premium+\",\"+saldo; //se almacenan los datos obtenidos en la cadena que se va a devolver\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tst.close();\n\t\t\treturn datos; //devuelvo todos los datos que se han obtenido\n\t\t}catch(Exception e) {\n\t\t\treturn e.getMessage();\n\t\t}finally {\n\t\t\tcon.desconectar();\n\t\t\t}\n\t\t\n\t}",
"private void cargarUsuario() {\n try {\n rol = null;\n if (usuario != null && usuario.getUsuario() != null) {\n for (SsRoles rols : usuario.getUsuario().getSsRolesList()) {\n for (String rl : ROL) {\n if (rols.getCodigoRol().equalsIgnoreCase(rl)) {\n rol = new SsRoles();\n rol = rols;\n }\n }\n }\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic List<ControlAcceso> registroUsers(String fecha, int codigo) {\n\t\treturn controlA.registroUsers(fecha, codigo);\n\t}",
"public List<Usuario> listarUsuario() {\n \n List<Usuario> lista = usuarioDAO.findAll();\n return lista;\n \n \n\n }",
"public HashMap<String, String> getDadosDoUsuario() {\n\n // Use hashmap to store user credentials\n HashMap<String, String> user = new HashMap<String, String>();\n\n user.put(CHAVE_MATRICULA, pref.getString(CHAVE_MATRICULA, null));\n\n user.put(CHAVE_SENHA, pref.getString(CHAVE_SENHA, null));\n\n user.put(CHAVE_NOME, pref.getString(CHAVE_NOME, null));\n\n user.put(CHAVE_NUCLEO,pref.getString(CHAVE_NUCLEO,null));\n\n // return user\n return user;\n }",
"public void popoulaRepositorioUsuarios(){\n Usuario usuario1 = new Usuario();\n usuario1.setUsername(\"EliSilva\");\n usuario1.setEmail(\"elineide.silva.inf@gmail.com\");\n usuario1.setSenha(\"123\");\n usuario1.setNome(\"Elineide Silva\");\n usuario1.setCPF(\"12345678\");\n\n\n\n Usuario usuario2 = new Usuario();\n usuario2.setUsername(\"gustavo\");\n usuario2.setEmail(\"gustavo@gmail.com\");\n usuario2.setSenha(\"12345\");\n usuario2.setNome(\"Gustavo\");\n usuario2.setCPF(\"666\");\n\n Usuario usuario3 = new Usuario();\n usuario1.setUsername(\"peixe\");\n usuario1.setEmail(\"peixe@gmail.com\");\n usuario1.setSenha(\"1111\");\n usuario1.setNome(\"quem dera ser um peixe\");\n usuario1.setCPF(\"1111\");\n\n Usuario usuario4 = new Usuario();\n usuario1.setUsername(\"segundo\");\n usuario1.setEmail(\"2@gmail.com\");\n usuario1.setSenha(\"123\");\n usuario1.setNome(\"Elineide Silva\");\n usuario1.setCPF(\"12345678\");\n\n inserir(usuario1);\n inserir(usuario2);\n inserir(usuario3);\n inserir(usuario4);\n }",
"private void mostrarUsuario(Usuario usuario) {\n\t\tSystem.out.println(usuario.getId()+\" - \"+usuario.getNombre()+\" \"+usuario.getApellido()+\" / \"+usuario.getEdad()+\" / \"+usuario.getDni()+\" / \"+usuario.getFecha_nac());\r\n\t}",
"public List<Usuario> ultimosUsuariosCadastrados(){\r\n List<Usuario> users = new ArrayList<Usuario>();\r\n try{\r\n PreparedStatement ps = bd.prepareStatement(\"SELECT * FROM usuarios ORDER BY id DESC\");\r\n ResultSet rs = ps.executeQuery();\r\n while(rs.next()){\r\n Usuario u = new Usuario();\r\n u.setId(rs.getInt(\"id\"));\r\n u.setUsuario(rs.getString(\"usuario\"));\r\n u.setNome(rs.getString(\"nome\"));\r\n u.setEmail(rs.getString(\"email\"));\r\n u.setSenha(rs.getString(\"senha\"));\r\n u.setPin(rs.getString(\"pin\"));\r\n u.setUrlfoto(rs.getString(\"urlfoto\"));\r\n u.setAcesso(rs.getTimestamp(\"acesso\"));\r\n u.setAdmin(rs.getInt(\"admin\"));\r\n users.add(u);\r\n }\r\n rs.close();\r\n ps.close();\r\n ConexaoBD.fechar(bd);\r\n } catch(SQLException sqle){\r\n System.out.println(\"Erro ao apresentar os ultimos usuarios cadastrados: \"+sqle.getMessage());\r\n }\r\n return users;\r\n }",
"public void CargarDatosUsuario(String nickname, String mail, String nombre, String pass, DataDireccion direccion, String apellido, Date fechaNacimiento, String rutaImagen);",
"private void cargaUsuarios() {\n //Abre la conexion\n Connection con = Star.conAbrBas(true, false);\n \n //Declara variables de la base de datos \n java.sql.Statement st;\n java.sql.ResultSet rs; \n String sQ;\n /*Obtiene todos los datos del usuario*/\n try\n {\n sQ = \"SELECT estac FROM estacs WHERE estac <> '\" + Login.sUsrG + \"' AND admcaj <= (SELECT admcaj FROM estacs WHERE estac = '\" + Login.sUsrG + \"')\";\n st = con.createStatement();\n rs = st.executeQuery(sQ);\n /*Si hay datos*/\n while(rs.next())\n {\n /*Obtiene los datos y cargalos en sus campos*/\n jcmbUsuarios.addItem(rs.getString(\"estac\"));\n }\n //si ingreso usuarios al combo, jalo los permisos del primer usuario\n// if(jcmbUsuarios.getItemCount() > 0){\n// cargaPermisos(jcmbUsuarios.getSelectedItem().toString());\n// }\n \n }catch(SQLException expnSQL)\n {\n //Procesa el error y regresa\n Star.iErrProc(this.getClass().getName() + \" \" + expnSQL.getMessage(), Star.sErrSQL, expnSQL.getStackTrace(), con); \n }\n }",
"public ArrayList<Usuario> getUsuarios(Usuario creador){\r\n ArrayList<Usuario> al= new ArrayList<>();\r\n if (creador.isAdmin()){\r\n try {\r\n String sql= \"Select * from sistemasEM.usuarios\";\r\n Statement s= connection.createStatement();\r\n ResultSet rs = s.executeQuery(sql);\r\n Usuario u;\r\n while(rs.next()){\r\n TipoDescuento td = this.getTipoDescuento(rs.getInt(\"permisosDescuento\"));\r\n TipoPersonal tp = this.getTipoPersonal(rs.getInt(\"permisosPersonal\"));\r\n al.add( new Usuario(rs.getInt(\"id\"), rs.getString(\"nombre\"), rs.getString(\"mostrar\"),rs.getBoolean(\"admin\"),tp,td,rs.getBoolean(\"notas\"),rs.getBoolean(\"habilitacion\"),rs.getBoolean(\"profesor\"),rs.getInt(\"ciProfesor\"),rs.getBoolean(\"cambiarContra\")));\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n return al;\r\n }",
"@Override\r\n\tpublic List<Usuario> listarUsuario() {\n\t\treturn iUsuario.listarUsuarios();\r\n\t}",
"public ArrayList <Usuario>listaUsuario(){\r\n\t\treturn loja.getUsuarios();\r\n\t}",
"public List<Usuario> getAllUsuarios(){\r\n List<Usuario> users = new ArrayList<Usuario>();\r\n try{\r\n PreparedStatement ps = bd.prepareStatement(SQLALL);\r\n ResultSet rs = ps.executeQuery();\r\n while(rs.next()){\r\n Usuario u = new Usuario();\r\n u.setId(rs.getInt(\"id\"));\r\n u.setUsuario(rs.getString(\"usuario\"));\r\n u.setNome(rs.getString(\"nome\"));\r\n u.setEmail(rs.getString(\"email\"));\r\n u.setSenha(rs.getString(\"senha\"));\r\n u.setPin(rs.getString(\"pin\"));\r\n u.setUrlfoto(rs.getString(\"urlfoto\"));\r\n u.setAcesso(rs.getTimestamp(\"acesso\"));\r\n u.setAdmin(rs.getInt(\"admin\"));\r\n users.add(u);\r\n }\r\n rs.close();\r\n ps.close();\r\n ConexaoBD.fechar(bd);\r\n } catch(SQLException sqle){\r\n System.out.println(\"Erro no getAllUsuarios no DAO: \" + sqle.getMessage());\r\n }\r\n return users;\r\n }",
"@Override\r\n public List<User> darUsers() {\r\n Query q = em.createQuery(\"SELECT u FROM UserEntity u\");\r\n List<UserEntity> l = q.getResultList();\r\n List<User> ltr = new ArrayList();\r\n for(UserEntity te: l)\r\n {\r\n ltr.add(TransformadorEntityDto.getInstance().entityADtoUser(te));\r\n }\r\n return ltr;\r\n }",
"public List<Usuarios> getUsuarios(){ //retorna una lista con todos los Usuarios en la database\n List<Usuarios> listaUsuarios = new ArrayList<Usuarios>();\n conexion = base.GetConnection();\n try{\n String consulta = \"select Cedula from usuarios\";\n PreparedStatement select = conexion.prepareStatement(consulta);\n boolean r = select.execute();\n if(r){\n ResultSet result = select.getResultSet();\n while(result.next()){\n Usuarios usuario = new Usuarios(result.getString(1));\n System.out.println(usuario);\n listaUsuarios.add(usuario);\n }\n result.close();\n }\n conexion.close();\n }catch(SQLException ex){\n System.out.println(ex.toString());\n }\n return listaUsuarios;\n}",
"private void cargaInfoEmpleado(){\r\n Connection conn = null;\r\n Conexion conex = null;\r\n try{\r\n if(!Config.estaCargada){\r\n Config.cargaConfig();\r\n }\r\n conex = new Conexion();\r\n conex.creaConexion(Config.host, Config.user, Config.pass, Config.port, Config.name, Config.driv, Config.surl);\r\n conn = conex.getConexion();\r\n if(conn != null){\r\n ArrayList<Object> paramsIn = new ArrayList();\r\n paramsIn.add(txtLogin);\r\n QryRespDTO resp = new Consulta().ejecutaSelectSP(conn, IQryUsuarios.NOM_FN_OBTIENE_INFO_USUARIOWEB, paramsIn);\r\n System.out.println(\"resp: \" + resp.getRes() + \"-\" + resp.getMsg());\r\n if(resp.getRes() == 1){\r\n ArrayList<ColumnaDTO> listaColumnas = resp.getColumnas();\r\n for(HashMap<String, CampoDTO> fila : resp.getDatosTabla()){\r\n usuario = new UsuarioDTO();\r\n \r\n for(ColumnaDTO col: listaColumnas){\r\n switch(col.getIdTipo()){\r\n case java.sql.Types.INTEGER:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Integer.parseInt(fila.get(col.getEtiqueta()).getValor().toString().replaceAll(\",\", \"\").replaceAll(\"$\", \"\").replaceAll(\" \", \"\")));\r\n break;\r\n \r\n case java.sql.Types.DOUBLE:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Double.parseDouble(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.FLOAT:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.DECIMAL:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.VARCHAR:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n \r\n case java.sql.Types.NUMERIC:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n default:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n } \r\n }\r\n }\r\n sesionMap.put(\"UsuarioDTO\", usuario);\r\n }else{\r\n context.getExternalContext().getApplicationMap().clear();\r\n context.getExternalContext().redirect(\"index.xhtml\");\r\n }\r\n }\r\n }catch(Exception ex){\r\n System.out.println(\"Excepcion en la cargaInfoEmpleado: \" + ex);\r\n }finally{\r\n try{\r\n conn.close();\r\n }catch(Exception ex){\r\n \r\n }\r\n }\r\n }",
"private void controladorUser(Controlador controlador){\n this.contUserCrearProyecto = controlador.getUserCrearProyecto();\n inicioUser.setControlCrearProyecto(contUserCrearProyecto);\n \n this.contUserCrearColectivo = controlador.getUserCrearColectivo();\n inicioUser.setControlCrearColectivo(contUserCrearColectivo);\n\n this.contInformes = controlador.getInformes();\n inicioUser.setControlSolicitarInformes(contInformes); \n \n this.contFiltrar = controlador.getFiltrar();\n inicioUser.setControlFiltrar(contFiltrar);\n\n this.contLimpiar = controlador.getLimpiarFiltro();\n inicioUser.setControlLimpiarFiltro(contLimpiar);\n }",
"public List<Usuario> getUsuario() {\r\n return usuarios;\r\n }",
"public void setUsuario(String usuario) {\r\n this.usuario = usuario;\r\n \r\n }",
"public void setUsuario(String usuario) {\r\n this.usuario = usuario;\r\n }",
"public void setUsuario(String usuario) {\r\n this.usuario = usuario;\r\n }",
"public static String[] leerUsuarios() {\n int cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM usuarios\");\n while (result.next()) {\n cont++;\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //matriz para guardar los registros\n String[] usuarios = new String[cont];\n cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM usuarios\");\n while (result.next()) {\n //leolos registros y los guardo cada uno en un renglon de la matriz\n System.out.println(\"ResultSet: \" + result.getString(1));\n usuarios[cont] = result.getString(1);\n cont++;\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //regreso reporte completo\n return usuarios;\n }",
"@Override\r\n\tpublic void analizarUsuario() {\n\t\tfor(IAsesoria ia : usuarios) {\r\n\t\t\tia.analizarUsuario();\r\n\t\t}\t\r\n\t}",
"public UsuarioTable getUsuarioLogueado() {\n String usuario = FacesContext.getCurrentInstance().getExternalContext().getRemoteUser();\n return getUsuarioFacade().obtenerIDPorNombre(usuario);\n }",
"@Override\n\tpublic Map<String, Object> datos(String username) {\n\t\tString SQL=\"select u.idusuario,p.nombre,p.apellidos,p.edad,p.telefono,p.correo,p.dni,r.nomrol from persona as p, usuario as u, trabajador as t,rol as r where u.idusuario=t.idusuario and t.idrol =r.idrol and p.idpersona =u.idpersona and u.username = ? \";\n\t\t\t\tMap<String,Object> map = jdbc.queryForMap(SQL,username);\n\t\treturn map;\n\t}",
"private void CargarUsuarios(){\n administradores.clear();\n usuariosList.clear();\n for (String i: BienvenidaActivity.UsuariosRegistrados.keySet()) {\n if(EsAdmin(i)){\n administradores.add(BienvenidaActivity.UsuariosRegistrados.get(i));\n }else{\n usuariosList.add(BienvenidaActivity.UsuariosRegistrados.get(i));\n }\n }\n String admins_string = \"\";\n for(Usuario admin : administradores){\n admins_string += admin.getUsername() + \" -> \" + admin.getNombre() + \" \" + admin.getApellido() + \"\\n\";\n }\n\n String users_string = \"\";\n for(Usuario userss : usuariosList){\n users_string += userss.getUsername() + \" -> \" + userss.getNombre() + \" \" + userss.getApellido() + \"\\n\";\n }\n\n // Finalmente se coloca en la actividad\n\n txtvw_contadmin.setText(String.valueOf(administradores.size()));\n txtvw_contusers.setText(String.valueOf(usuariosList.size()));\n txtvw_admins.setText(admins_string);\n txtvw_users.setText(users_string);\n }",
"public List<Usuario> obtenerListaUsuariosActivos(){\n return usuarioBean.obtenerListaUsuariosActivos();\n }",
"public List<Usuario> buscarTodos(){\n\t\tList<Usuario> listarUsuarios = new ArrayList<>();\n\t\t\n\t\tString sql = \"Select * from usuario\";\n\t\tUsuario usuario = null ;\n\t\t\n\t\ttry(PreparedStatement preparedStatement = con.prepareStatement(sql)) {\n\t\t\t\n\t\t\tResultSet result = preparedStatement.executeQuery();\n\t\t\t\n\t\t\t/*\n\t\t\t * Dentro do while estou verificando se tem registro no banco de dados, enquanto tiver registro vai \n\t\t\t * adcionando um a um na lista e no final fora do while retorna todos os registro encontrados. \n\t\t\t */\n\t\t\twhile(result.next()){\n\t\t\t\tusuario = new Usuario();\n\t\t\t\tusuario.setIdUsuario(result.getInt(\"idUsuario\"));\n\t\t\t\tusuario.setNome(result.getString(\"Nome\"));\n\t\t\t\tusuario.setLogin(result.getString(\"Login\"));\n\t\t\t\tusuario.setSenha(result.getString(\"senha\"));\n\t\t\t\t\n\t\t\t\t// Adcionando cada registro encontro, na lista .\n\t\t\t\tlistarUsuarios.add(usuario);\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listarUsuarios;\n\t}",
"public void insereUsuario( Usuario usuario ) {\n\t\ttry {\n\t\t\t// le dados antigos\n\t\t\tArrayList<Usuario> usuarios = new ArrayList<Usuario>();\n\t\t\tusuarios = leUsuarios();\n\t\t\t\n\t\t\tFileOutputStream arq = new FileOutputStream(\"database/usuarios.dat\");\n\t\t\tObjectOutputStream out = new ObjectOutputStream(arq);\n\t\t\t\n\t\t\t// reescreve dados antigos\n\t\t\tboolean existe = false;\n\t\t\tfor ( int i = 0; i < usuarios.size() ; i++ ) {\n\t\t\t\tUsuario aux = usuarios.get(i);\n\t\t\t\t// Não cadastra usuário se login ou crm não for único\n\t\t\t\tif ( aux.getLogin().equals(usuario.getLogin()) || aux.getCrm().equals(usuario.getCrm()) ) {\n\t\t\t\t\texiste = true;\n\t\t\t\t}\n\t\t\t\tout.writeObject(aux);\n\t\t\t\tout.flush();\n\t\t\t}\n\t\t\t\n\t\t\t// insere novo usuário abaixo dos antigos usuários\n\t\t\tif ( !existe ) {\n\t\t\t\tUsuario aux = new Usuario(usuario.getNome(), usuario.getCrm(), \n\t\t\t\t\t\t\t\t\t\t\tusuario.getLogin(), usuario.getSenha());\n\t\t\t\tout.writeObject(aux);\n\t\t\t\tout.flush();\n\t\t\t\tSystem.out.println(\"Usuário cadastrado com sucesso\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Login ou CRM já cadastrada.\");\n\t\t\t}\n\t\t\t\t\n\t\t\tout.close();\t\n\t\t}\n\t\tcatch( IOException exc ) {\n\t\t\t\n\t\t\tSystem.out.println(\"Erro ao gravar arquivo.\");\n\t\t}\n\t}",
"private void actualizaUsuario() {\n\t\t\n\t\tInteger edad=miCoordinador.validarEdad(campoEdad.getText().trim());\n\t\t\n\t\tif (edad!=null) {\n\t\t\t\n\t\t\tUsuarioVo miUsuarioVo=new UsuarioVo();\n\t\t\t//se asigna cada dato... el metodo trim() del final, permite eliminar espacios al inicio y al final, en caso de que se ingresen datos con espacio\n\t\t\tmiUsuarioVo.setDocumento(campoDocumento.getText().trim());\n\t\t\tmiUsuarioVo.setNombre(campoNombre.getText().trim());\n\t\t\tmiUsuarioVo.setEdad(Integer.parseInt(campoEdad.getText().trim()));\n\t\t\tmiUsuarioVo.setProfesion(campoProfesion.getText().trim());\n\t\t\tmiUsuarioVo.setTelefono(campoTelefono.getText().trim());\n\t\t\tmiUsuarioVo.setDireccion(campoDireccion.getText().trim());\n\t\t\t\n\t\t\tString actualiza=\"\";\n\t\t\t//se llama al metodo validarCampos(), este retorna true o false, dependiendo de eso ingresa a una de las opciones\n\t\t\tif (miCoordinador.validarCampos(miUsuarioVo)) {\n\t\t\t\t//si se retornó true es porque todo está correcto y se llama a actualizar\n\t\t\t\tactualiza=miCoordinador.actualizaUsuario(miUsuarioVo);//en registro se almacena ok o error, dependiendo de lo que retorne el metodo\n\t\t\t}else{\n\t\t\t\tactualiza=\"mas_datos\";//si validarCampos() retorna false, entonces se guarda la palabra mas_datos para indicar que hace falta diligenciar los campos obligatorios\n\t\t\t}\n\t\t\t\n\t\t\t//si el registro es exitoso muestra un mensaje en pantalla, sino, se valida si necesita mas datos o hay algun error\n\t\t\tif (actualiza.equals(\"ok\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \" Se ha Modificado Correctamente \",\"Confirmación\",JOptionPane.INFORMATION_MESSAGE);\t\t\t\n\t\t\t}else{\n\t\t\t\tif (actualiza.equals(\"mas_datos\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Debe Ingresar los campos obligatorios\",\"Faltan Datos\",JOptionPane.WARNING_MESSAGE);\t\t\t\n\t\t\t\t}else{\n\t\t JOptionPane.showMessageDialog(null, \"Error al Modificar\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\tJOptionPane.showMessageDialog(null, \"Debe ingresar una edad Valida!!!\",\"Advertencia\",JOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t\t\t\t\n\t}",
"public Usuario verificarDatos(String usuario, String password) throws Exception{\n Usuario us = new Usuario(usuario, password);\n try {\n Session session = HibernateUtil.getSessionFactory().openSession();\n String hql = \"from Usuario where usuario = '\" + usuario\n + \"' and password = '\" + password + \"'\";\n Query query = session.createQuery(hql);\n \n if(!query.list().isEmpty()) {\n us = (Usuario) query.list().get(0);\n } \n } catch (Exception e){\n throw e;\n }\n return us;\n /*\n desde el if se cambia\n query.setParameter(\"usuario\", usuario);\n query.setParameter(\"password\", password);\n us = (Usuario) query.uniqueResult();\n \n \n */\n }",
"public Usuario iniciarSesion(Usuario u) {\n Usuario user = null;\n\n try {\n if (this.em.isOpen()) {\n user = (Usuario) this.em.createNamedQuery(\"Usuario.findByUsernamePass\")\n .setParameter(\"username\", u.getUsername())\n .setParameter(\"password\", u.getPassword()).getSingleResult();\n em.refresh(user);\n }\n\n } catch (Exception e) {\n //e.printStackTrace();\n\n }\n\n return (user);\n }",
"public List<UsuarioDTO> consultarUsuarios();",
"public List<UsuarioDTO> consultarUsuarios();",
"public List<UsuarioDTO> obtener() throws ReizzelException;",
"public void consultarUsuario (List<Aeropuerto> mundoA,List<Ruta> mundoR, String n4Origen, String n4Destino){\n\t\t\n\t\t String paisAux = n4Origen;\n\t\t String paisOrigen = '\"' + paisAux + '\"';\n\t\t System.out.println(\" \");\n\t\t origen = dameAeropuertos(paisOrigen, mundoA);\n\t\t \n\t\t System.out.println(\" \");\n\t\t \n\t\t \n\t\t paisAux = n4Destino;\n\t\t String paisDestino = '\"' + paisAux + '\"';\n\t\t System.out.println(\" \");\n\t\t destino = dameAeropuertos(paisDestino,mundoA);\n\t\t \n\t\t //Ruta\n\t\t System.out.println(\" \");\n\t\t System.out.println(origen.getNombre() + \" ---> \" + destino.getNombre());\n\t\t dibujarRuta(origen,destino,mundoA,mundoR);\n\t\t \n\t }",
"public List selectAllFromUsuario() throws IOException {\n erro = false;\n List usuarios = null;\n try {\n usuarios = con.query(\"Select * from usuario\", new BeanPropertyRowMapper(Usuario.class));\n } catch (CannotGetJdbcConnectionException ex) {\n logger.gravarDadosLog(\"ERRO\", \"SELECT\" , \"Não foi possivel realizar a consulta dos usuário cadastrados.\" + Arrays.toString(ex.getStackTrace()));\n erro = true;\n }\n \n if(!erro){\n logger.gravarDadosLog(\"INFO\", \"SELECT\" , \"A busca de usuários cadastrados foi realizada com sucesso.\");\n }\n erro = false;\n return usuarios;\n }",
"public List<User> user_list() throws HibernateException \r\n\t{ \r\n\t\tList <User> Lista_usuarios = null; \r\n\t \r\n\t try \r\n\t { \r\n\t iniciaOperacion(); //IMPORTANTE la query: se pide la clase realmnete Cliente! no la tabla que se ha creado\r\n\t Lista_usuarios= sesion.createQuery(\"FROM User\").list(); //creamos consulta de la tabla clientes (en plural)!\r\n\t }finally \r\n\t { \r\n\t sesion.close(); \r\n\t } \r\n\t return Lista_usuarios; \r\n\t}",
"public List<User> ObtenerTodosUsuarios() throws BLException;",
"public DataUsuario obtenerUsuario(String nickName) throws Exception;",
"public void subeUsuario() {\n\t\tEditText nicknameText = (EditText) findViewById(R.id.nicknameEditText);\n\t\tstrNickname = nicknameText.getText().toString().trim();\n\t\t\n\t\tif (strNickname.equals(\"\")) {\n\t\t\tToast.makeText(this, \"Nickname no puede estar vacío\",Toast.LENGTH_LONG).show();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tguardarPreferences();\n\t\t\n\t\t//lanzamos un uploadService\n\t\tIntent uploadService = new Intent(getApplicationContext(),UploadUserService.class);\n\t\t\n\t\tuploadService.putExtra(\"id\", userId);\n\t\tuploadService.putExtra(\"nickname\", strNickname);\n\t\tuploadService.putExtra(\"mail\", strEmail);\n\t\tuploadService.putExtra(\"dob\", dayOfBirth);\n\t\tuploadService.putExtra(\"pass\", strPassword);\n\t\tuploadService.putExtra(\"genero\", gender);\n\t\tuploadService.putExtra(\"avatar\", strAvatar);\n\t\t\n\t\tstartService(uploadService);\n\t}",
"public void setUsuario(Usuario usuario) {\n this.usuario = usuario;\n }",
"public void setUsuario(Usuario usuario) {\n this.usuario = usuario;\n }",
"public List<Usuario> listarTodos() {\n List<Usuario> r = new ArrayList<>();\n try {\n try (Connection cnx = bd.obtenerConexion(Credenciales.BASE_DATOS, Credenciales.USUARIO, Credenciales.CLAVE);\n Statement stm = cnx.createStatement();\n ResultSet rs = stm.executeQuery(CMD_LISTAR2)) {\n while (rs.next()) {\n r.add(new Usuario(\n rs.getString(\"cedula\"),\n rs.getString(\"apellido1\"),\n rs.getString(\"apellido2\"),\n rs.getString(\"nombre\")\n ));\n }\n }\n } catch (SQLException ex) {\n System.err.printf(\"Excepción: '%s'%n\",\n ex.getMessage());\n }\n return r;\n }",
"protected String getUsuario() {\n return this.usuario;\n }",
"public VOUsuario obtenerdatosUsuario(String[] val, String[] tipo) throws RemoteException {\n VOUsuario usu = null;\n if(tipo.length==val.length)\n try {\n FileReader fr = new FileReader(datos);\n BufferedReader entrada = new BufferedReader(fr);\n String s;\n String texto[]=new String[11];\n\n int n, l=0;\n int campo[]=new int[tipo.length];\n boolean encontrado=false;\n for(int i=0; i<tipo.length; i++) {\n if(tipo[i].compareTo(\"id\")==0) campo[i]=0;\n if(tipo[i].compareTo(\"nombre\")==0) campo[i]=4;\n if(tipo[i].compareTo(\"apellido\")==0) campo[i]=5;\n if(tipo[i].compareTo(\"nomuser\")==0) campo[i]=1;\n if(tipo[i].compareTo(\"email\")==0) campo[i]=7;\n if(tipo[i].compareTo(\"rut\")==0) campo[i]=6;\n if(tipo[i].compareTo(\"pass\")==0) campo[i]=3;\n }\n while((s = entrada.readLine()) != null && !encontrado) {\n texto=s.split(\" \");\n int j=0;\n boolean seguir=true;\n while(j<campo.length && seguir) {\n if(texto[campo[j]].toLowerCase().compareTo(val[j].toLowerCase())!=0) {\n seguir=false;\n j++;\n } else {\n j++;\n }\n }\n if(seguir) {\n encontrado=true;\n }\n l++;\n }\n if(encontrado) {\n int area[] = new int[texto[10].split(\"-\").length];\n String ar[]=texto[10].split(\"-\");\n for(int i=0; i<area.length; i++) {\n area[i]=Integer.parseInt(ar[i]);\n }\n usu=new VOUsuario(\n texto[0],\n texto[1],\n this.quitaGuiones(texto[2]),\n texto[3],\n this.quitaGuiones(texto[4]),\n this.quitaGuiones(texto[5]),\n this.quitaGuiones(texto[6]),\n this.quitaGuiones(texto[7]),\n this.quitaGuiones(texto[8]),\n this.quitaGuiones(texto[9]),\n area);\n entrada.close();\n }\n } catch (FileNotFoundException e) {\n System.err.println(\"FileStreamsTest: \" + e);\n } catch (IOException e) {\n System.err.println(\"FileStreamsTest: \" + e);\n }\n return usu;\n }",
"public String getUsuario() {\r\n return usuario;\r\n }",
"public String getUsuario() {\r\n return usuario;\r\n }",
"public Usuario recuperarUsuario(long ID) throws AbadiaException {\r\n String sSQL = \"Select * From usuario Where USUARIOID = ?\";\r\n PreparedStatement ps = null;\r\n ResultSet rs = null;\r\n try {\r\n ps = con.prepareStatement(sSQL);\r\n ps.setLong(1, ID);\r\n rs = ps.executeQuery();\r\n if (rs.next()) {\r\n // añadir la clase\r\n Usuario usuario = new Usuario();\r\n usuario.setIdDeUsuario(rs.getInt(\"USUARIOID\")); // El nick ya existe\r\n usuario.setNombre(rs.getString(\"NOMBRE\"));\r\n usuario.setPrimerApellido(rs.getString(\"APELLIDO1\"));\r\n usuario.setSegundoApellido(rs.getString(\"APELLIDO2\"));\r\n usuario.setNick(rs.getString(\"NICK\"));\r\n usuario.setEmail(rs.getString(\"EMAIL\"));\r\n usuario.setIdDeIdioma(rs.getShort(\"IDIOMAID\"));\r\n usuario.setContrasena(rs.getString(\"CONTRASENA\"));\r\n usuario.setAdministrador(rs.getLong(\"USUARIO_TIPO\"));\r\n usuario.setRegistrado(rs.getLong(\"REGISTRADO\"));\r\n usuario.setBloqueado(getBloqueado(usuario.getIdDeUsuario()));\r\n usuario.setCongelado(rs.getShort(\"Abadia_congelada\"));\r\n usuario.setPais(rs.getInt(\"PAIS\"));\r\n usuario.setEdad(rs.getInt(\"EDAD\"));\r\n usuario.setFecha_alta(rs.getString(\"FECHAALTA\"));\r\n usuario.setAceptaNormas(rs.getBoolean(\"ACEPTA_NORMAS\"));\r\n // añadirlo a la session???\r\n return usuario;\r\n } else {\r\n throw new UsuarioNoEncontradoException(\"No se ha encontrado el usuario\", null, log);\r\n }\r\n } catch (SQLException e) {\r\n throw new AbadiaSQLException(\"adUsuario. recuperarUsuario. SQLException.\", e, log);\r\n } finally {\r\n DBMSUtils.cerrarObjetoSQL(rs);\r\n DBMSUtils.cerrarObjetoSQL(ps);\r\n }\r\n }",
"@Override\n\t@Transactional\n\tpublic List<Usuario> ListaUsuarios() {\n\t\ttry {\n\t\t\tQuery query = manager.createQuery(\"from Usuario\");\n\t\t\tList<Usuario> usuarios = query.getResultList();\n\t\t\treturn usuarios;\n\t\t}catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tthrow new RuntimeException(e);\t\t\t\n\t\t} finally {\n\t\t\t// TODO: handle finally clause\n\t\t\tmanager.close();\n\t\t}\n\t}",
"public List<NguoiNhap> getAllUsers() throws SQLException {\r\n rs = connectionAdmin(\"SELECT * FROM USER\");\r\n List<NguoiNhap> listUsers;\r\n if (rs != null) {\r\n\r\n listUsers = new ArrayList<NguoiNhap>() {\r\n {\r\n while (rs.next()) {\r\n add(new NguoiNhap(rs.getString(\"username\"), rs.getString(\"password\"), rs.getString(\"ten\"), rs.getString(\"gioitinh\"), rs.getString(\"ngaysinh\")));\r\n }\r\n rs.close();\r\n stm.close();\r\n con.close();\r\n }\r\n };\r\n\r\n return listUsers;\r\n }\r\n\r\n return null;\r\n }",
"public ArrayList<DataUsuario> listarUsaurios();",
"private void mostrarUsuarios(ArrayList<Usuario> usuarios) {\n\t\tSystem.out.println(\"Id - Nombre Apellidos / Edad / DNI / Fecha_nac\\n\");\r\n\t\tIterator<Usuario> i=usuarios.iterator();\r\n\t\twhile(i.hasNext()){\r\n\t\t\tmostrarUsuario(i.next());\r\n\t\t}\r\n\t}",
"public HashMap<String, String> getDadosUsuario(){\n HashMap<String, String> dadosUsuarios = new HashMap<>();\n\n dadosUsuarios.put(CHAVE_NOME, preferencias.getString(CHAVE_NOME, null));\n dadosUsuarios.put(CHAVE_TELEFONE, preferencias.getString(CHAVE_TELEFONE, null));\n dadosUsuarios.put(CHAVE_TOKEN, preferencias.getString(CHAVE_TOKEN, null));\n\n return dadosUsuarios;\n }",
"public Usuario ObtenerUsuario(String nombre)\n {\n /*creamos una instancia de la clase usuario que sera donde almacenaremos la informacion\n del usuario que deseemos analizar*/\n Usuario jugador = new Usuario(); \n //encerramos todo en un try para manejar los errores\n try\n {\n //si no hay ninguna conexion entonces generamos una\n if(con == null)\n con = Conexion_Sql.getConexion();\n \n String sql = \"SELECT * FROM puntajes WHERE nombre = ?\"; \n PreparedStatement statement = con.prepareStatement(sql);\n statement.setString(1, nombre);\n ResultSet result = statement.executeQuery();\n \n result.next();\n //agregamos toda la informacion obtenida a la instancia del objeto\n jugador = new Usuario(result.getString(1),result.getInt(2)); \n }\n catch(SQLException ex)\n {\n ex.printStackTrace();\n }\n \n //retornamos dicho producto o instancia\n return jugador;\n }",
"private void cargarDatos()\n {\n // Pantalla carga\n showProgress(true, mView, mProgressView, getContext());\n Comando login = new LoginComando(KPantallas.PANTALLA_PERFIL);\n String email = UtilUI.getEmail(getContext());\n String password = UtilUI.getPassword(getContext());\n login.ejecutar(email,password);\n }",
"public ArrayList< UsuarioVO> listaDePersonas() {\r\n\t ArrayList< UsuarioVO> miUsuario = new ArrayList< UsuarioVO>();\r\n\t Conexion conex= new Conexion();\r\n\t \r\n\t try {\r\n\t PreparedStatement consulta = conex.getConnection().prepareStatement(\"SELECT * FROM usuarios\");\r\n\t ResultSet res = consulta.executeQuery();\r\n\t while(res.next()){\r\n\t\t UsuarioVO persona= new UsuarioVO();\r\n\t persona.setCedula_usuario(Integer.parseInt(res.getString(\"cedula_usuario\")));\r\n\t persona.setEmail_usuario(res.getString(\"email_usuario\"));\r\n\t persona.setNombre_usuario(res.getString(\"nombre_usuario\"));\r\n\t persona.setPassword(res.getString(\"password\"));\r\n\t persona.setUsuario(res.getString(\"usuario\"));\r\n\t \r\n\t \r\n\t miUsuario.add(persona);\r\n\t }\r\n\t res.close();\r\n\t consulta.close();\r\n\t conex.desconectar();\r\n\t \r\n\t } catch (Exception e) {\r\n\t JOptionPane.showMessageDialog(null, \"no se pudo consultar la Persona\\n\"+e);\r\n\t }\r\n\t return miUsuario;\r\n\t }",
"public void setUsuario(Usuario usuario) {\r\n\t\tthis.usuario = usuario;\r\n\t}",
"@Override\n\tpublic Usuario read(String nomuser) {\n\t\tString SQL = \"SELECT * FROM usuario WHERE username=?\";\n\t\treturn jdbc.queryForObject(SQL, new Object[] {nomuser}, new BeanPropertyRowMapper<Usuario>(Usuario.class));\n\n\t}",
"public ListaUsuario() {\n initComponents();\n\n exibir();\n }",
"public java.lang.String getUsuario();",
"public UsuarioBean Buscar(String cod_usuario){\n UsuarioBean bean = null;\n MiConexion con = new MiConexion(contexto, null, null, 1);\n SQLiteDatabase sql = con.getReadableDatabase();\n Cursor cur = sql.rawQuery(\"SELECT * FROM Tb_Usuario where cod_usuario=?\",\n new String[]{cod_usuario});\n\n if(cur.moveToNext()){\n bean = new UsuarioBean();\n bean.setId_cargo(cur.getString(0));\n bean.setNom_usuario(cur.getString(1));\n bean.setApe_usuario(cur.getString(2));\n bean.setTip_usuario(cur.getString(3));\n bean.setEmail_usuario( cur.getString(4));\n bean.setPwd_usuario(cur.getString(5));\n bean.setId_cargo(cur.getString(6));\n }\n return bean;\n }",
"public void setUsuario(String usuario) {\n\t\tthis.usuario = usuario;\n\t}",
"public static void main(String[] args) throws SQLException, ClassNotFoundException {\n CtrlUsuarios us = new CtrlUsuarios(); \n //instancia de un objeto Usuario, para almacenar el usuario obtenido\n Usuarios user = null;\n //Para probar el código solo deben mandar a llamar al método correspondiente creado para la funcionalidad\n //En este caso imprimo el resultado obtenido y el código creado es correcto\n user = us.obtenerPorId(Conexion.conectar(),1);\n System.out.println(user.toString());\n \n //de aquí en seguida podemos seguir agragando las demas prubas...\n }",
"public void setUsuario(Usuario usuario) {\n\t\tthis.usuario = usuario;\n\t}",
"public void grabarUsuario(UsuarioDto dto){\n\t\tUsuario usuario = new Usuario();\n\t\t\n\t\t// Setarle los valores que vienen del dto\n\t\tusuario.setNombre(dto.getNombre());\n\t\tusuario.setApellido(dto.getApellido());\n\t\t\n\t\t// Grabo el producto\n\t\tusuarioDao.saveOrUpdate(usuario);\n\t\t\n\t\tlog.info(\"Se grabó el producto: \" + usuario.getId());\n\t\t\n\t\t// Le seto el id en el dto\n\t\tdto.setId(usuario.getId());\n\t}",
"public void cadastrarUsuario(View view){\n String textoNome= campoNome.getText().toString();\n String textoEmail= campoEmail.getText().toString();\n String textoSenha= campoSenha.getText().toString();\n\n\n if(!textoNome.isEmpty()){\n if(!textoEmail.isEmpty()){\n if(!textoSenha.isEmpty()){\n Usuario usuario = new Usuario();\n usuario.setNome(textoNome);\n usuario.setEmail(textoEmail);\n usuario.setSenha(textoSenha);\n salvarUsuario(usuario);\n\n home();\n finish();\n }else{ exibirMensagem(\"preencha sua senha\"); }\n }else{ exibirMensagem(\"preencha seu email\"); }\n }else{ exibirMensagem(\"Digite seu nome\"); }\n }",
"public User getUser(String nombre) {\n User u = new User();\n try {\n PreparedStatement pstm = null;\n ResultSet rs = null;\n String query = \"SELECT *FROM user WHERE name= ?\";\n pstm = con.prepareStatement(query);\n pstm.setString(1, nombre);\n rs = pstm.executeQuery();\n while (rs.next()) {\n u.setName(rs.getString(\"name\"));\n u.setEmail(rs.getString(\"email\"));\n u.setPicture(rs.getString(\"imagen_user\"));\n u.setPassword(rs.getString(\"password\"));\n u.setId_role(rs.getInt(\"ID_Rol\"));\n }\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n return u;\n }",
"public Usuario getUsuario(Usuario creador, int id){\r\n Usuario u=null;\r\n if (creador.isAdmin() || creador.getId()==id){\r\n try {\r\n String sql= \"Select * from sistemasEM.usuarios where id=\"+id;\r\n Statement s= connection.createStatement();\r\n ResultSet rs = s.executeQuery(sql);\r\n while(rs.next()){\r\n TipoDescuento td = this.getTipoDescuento(rs.getInt(\"permisosDescuento\"));\r\n TipoPersonal tp = this.getTipoPersonal(rs.getInt(\"permisosPersonal\"));\r\n u= new Usuario(rs.getInt(\"id\"), rs.getString(\"nombre\"), rs.getString(\"mostrar\"),rs.getBoolean(\"admin\"),tp,td,rs.getBoolean(\"notas\"),rs.getBoolean(\"habilitacion\"),rs.getBoolean(\"profesor\"),rs.getInt(\"ciProfesor\"),rs.getBoolean(\"cambiarContra\"));\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n return u;\r\n }",
"public void altaUsuario();",
"public Usuario getUsuario() {\n return usuario;\n }",
"public Usuario getUsuario() {\n return usuario;\n }",
"@Override\r\n\tprotected final void objectDataMapping() throws BillingSystemException{\r\n\t\tString[][] data=getDataAsArray(USER_DATA_FILE);\r\n\t\tif(validateData(data,\"Authorised User\",COL_LENGTH)){\r\n\t\tList<User> listUser=new ArrayList<User>();\r\n\t\t\r\n\t\tfor(int i=0;i<data.length;i++){\r\n\t \t\r\n\t \tUser usr=new User();\r\n\t \t\t\r\n\t \tusr.setUsername(data[i][0]);\r\n\t \tusr.setPassword(data[i][1]);\r\n\t \tusr.setRole(getRoleByCode(data[i][2]));\r\n\t \t\r\n\t \tlistUser.add(usr);\t\r\n\t }\r\n\r\n\t\t\r\n\t\tthis.listUser=listUser;\r\n\t\t}\r\n\t}",
"public User getAllUser(String email) {\n String[] columns = {\n COLUMN_USER_ID,\n COLUMN_USER_USERNAME,\n COLUMN_USER_PASSWORD,\n COLUMN_USER_EMAIL,\n COLUMN_USER_NUME,\n COLUMN_USER_PRENUME,\n COLUMN_USER_AGE\n };\n String sortOrder =\n COLUMN_USER_NUME + \" ASC\";//ordine de sortare\n List<User> userList = new ArrayList<User>();\n String selection = COLUMN_USER_EMAIL+ \"=?\";//coloana de selectie\n String[] selectionArgs = {email};//argumentul de selectie\n\n //SELECT id, nume, prenume, username, email, password FROM useri ORDER BY nume;\n Cursor cursor = db.query(TABLE_USER, //tabel pentru query\n columns, //coloane de returnat\n selection, //coloane pentru clauza WHERE\n selectionArgs, //valori pentru clauza WHERE\n null, //grupare randuri\n null, //filtrare dupa gruparea randurilor\n sortOrder); //ordinea de sortare\n User user = new User();\n if (cursor.moveToFirst()) {// traversare randuri si adaugare in lista\n do {\n user.setId(parseInt(cursor.getString(cursor.getColumnIndex(COLUMN_USER_ID))));\n user.setUsername(cursor.getString(cursor.getColumnIndex(COLUMN_USER_USERNAME)));\n user.setEmail(cursor.getString(cursor.getColumnIndex(COLUMN_USER_EMAIL)));\n user.setPassword(cursor.getString(cursor.getColumnIndex(COLUMN_USER_PASSWORD)));\n user.setNume(cursor.getString(cursor.getColumnIndex(COLUMN_USER_NUME)));\n user.setPrenume(cursor.getString(cursor.getColumnIndex(COLUMN_USER_PRENUME)));\n user.setAge(cursor.getInt(cursor.getColumnIndex(COLUMN_USER_AGE)));\n\n } while (cursor.moveToNext());\n }\n cursor.close();\n return user;//returnare lista\n }",
"public List<Usuario> getData(String hint) {\n\t\tUsuarioDao dao = DaoFactory.getUsuarioDao();\n\t\ttry {\n\t\t\treturn dao.getUsers(hint);\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"public String getUsuario() {\r\n return Usuario;\r\n }",
"public Usuario obtenerUsuario(int idUsuario) throws SQLException {\n PreparedStatement preSt = connection.prepareStatement(BUSCAR_USUARIO);\n preSt.setInt(1, idUsuario);\n ResultSet result = preSt.executeQuery();\n\n Usuario usuario = null;\n\n while (result.next()) {\n usuario = new Usuario(\n result.getInt(Usuario.USUARIO_ID_DB_NAME),\n result.getString(Usuario.NOMBRE_DB_NAME),\n result.getString(Usuario.PROFESION_DB_NAME),\n result.getString(Usuario.PASSWORD_DB_NAME)\n );\n }\n return usuario;\n }",
"public Usuario buscarUsuario(String cedula) {\n\n usuario = usuarioDAO.read(cedula);\n\n return usuario;\n\n }",
"public Usuario(){\n nombre = null;\n apellidos = null;\n dni = null;\n email = null;\n tlf = null;\n nombreUsuario = null;\n tarjetaCredito = null;\n hashPasswd = null; \n fotoPerfil = null;\n direccion = null;\n valoracionMedia = -1;\n }",
"private void recoverUser(){\n if(auth.getCurrentUser()!=null){\n String id= auth.getCurrentUser().getUid();\n\n //Solo la igualo para poder sacarla del metodo\n idU=id;\n\n //Buscamos el id del usuario logueado en la rama contactos\n db.getReference().child(\"contactos/\" + id).addValueEventListener(\n new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot data) {\n\n adapter.clear();\n\n for(DataSnapshot child: data.getChildren()){\n Contacto contacto=child.getValue(Contacto.class);\n adapter.addContacto(contacto);\n }\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n\n }\n }\n );\n }\n }",
"private void todos(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n Connection con = null;//Objeto para la conexion\r\n Statement sentencia = null;//Objeto para definir y ejecutar las consultas sql\r\n ResultSet resultado = null;//Objeto para obtener los resultados de las consultas sql\r\n String sql = \"\";\r\n try {\r\n con = conBD.getCConexion();\r\n //Definición de Sentencia SQL\r\n //sql = \"SELECT semail,sclave,nestado,snombre,sapellido,stelefono,sgenero,nidPerfil FROM usuarios\";\r\n sql = \"SELECT semail,sclave,nestado,usuarios.snombre,sapellido,stelefono,sgenero,nidPerfil,\"\r\n + \"(case WHEN nestado=0 THEN 'Inactivo' ELSE 'Activo' END) AS sestado,\"\r\n + \"(case WHEN sgenero=0 THEN 'Femenino' ELSE 'Masculino' END) AS desgenero,\"\r\n + \"perfiles.snombre \"\r\n + \"FROM usuarios,perfiles \"\r\n + \"where usuarios.nidPerfil=perfiles.idPerfil \"\r\n + \"order by usuarios.snombre\";\r\n\r\n //Ejecutar sentencia\r\n sentencia = con.createStatement();\r\n resultado = sentencia.executeQuery(sql);\r\n\r\n //arreglo donde se gurdaran los usuarios encontrados en la BD\r\n ArrayList Usuarios = new ArrayList();\r\n while (resultado.next()) //si el resultado tiene datos empezar a guardarlos.\r\n {\r\n Usuario e = new Usuario(resultado.getString(1), resultado.getString(2),\r\n resultado.getString(4), resultado.getString(5), resultado.getString(6), resultado.getString(7),\r\n resultado.getInt(8), resultado.getInt(3));\r\n //agregamos las descripciones al objeto.\r\n e.setDescripcionEstado(resultado.getString(9));\r\n e.setDescripcionGenero(resultado.getString(10));\r\n e.setDescripcionPerfil(resultado.getString(11));\r\n //Agregamos el estudiante al arrelo\r\n Usuarios.add(e);\r\n }\r\n // Agregar el arreglo de estudiantes a la solicitud\r\n request.setAttribute(\"usuarios\", Usuarios);\r\n //redirigir la solicitu a la página JSP\r\n request.getRequestDispatcher(\"/ListaUsuarios.jsp\").include(request, response);\r\n //cerrar la conexion\r\n //con.close();\r\n } catch (SQLException ex) {\r\n System.out.println(\"No se ha podido establecer la conexión, o el SQL esta mal formado \" + sql);\r\n request.getRequestDispatcher(\"/Error.jsp\").forward(request, response);\r\n }\r\n }",
"@Override\n\tpublic List<Usuario> listUsuario() {\n\t\treturn null;\n\t}",
"public static void imprimeUsuarios( ) {\n\t\ttry {\n\t\t\tFileInputStream arq = new FileInputStream(\"database/usuarios.dat\");\n\t\t\tObjectInputStream in = new ObjectInputStream(arq);\n\t\t\tint i = 0;\n\t\t\n\t\t\tArrayList<Usuario> usuarios = new ArrayList<Usuario>();\n\t\t\t\n\t\t\ttry {\n\t\t\t for (;;) {\n\t\t\t \tUsuario aux;\n\t\t\t\t\taux = (Usuario) in.readObject();\n\t\t\t\t\tSystem.out.println(i + \"=\" + aux.getNome() + \";\" + aux.getCrm() + \";\" \n\t\t\t\t\t\t\t\t\t\t+ aux.getLogin() + \";\" + aux.getSenha());\n\t\t\t\t\tusuarios.add(aux);\n\t\t\t\t\ti++;\n\t\t\t }\n\t\t\t}\n\t\t\tcatch (EOFException exc) {\n\t\t\t // end of stream\n\t\t\t}\n\t\t\tcatch (IOException exc) {\n\t\t\t // some other I/O error: print it, log it, etc.\n\t\t\t exc.printStackTrace(); // for example\n\t\t\t}\n\t\t\t\t\n\t\t\tin.close();\n\t\t}\n\t\tcatch ( IOException exc2 ) {\n\t\t\tSystem.out.println(\"Erro ao ler o arquivo.\");\t\t\t\n\t\t}\n\t\tcatch ( ClassNotFoundException cnfex ) {\n\t\t\tSystem.out.println(\"Não achou a classe.\");\n\t\t}\n\t}",
"@Override\r\n\tpublic Usuario read(String nomuser) {\n\t\tString SQL = \"select *from usuario where nomuser=?\";\r\n\t\treturn jdbctemplate.queryForObject(SQL, new Object[] {nomuser},new BeanPropertyRowMapper<Usuario>(Usuario.class));\r\n\t}",
"ParUsuarios selectByPrimaryKey(Integer id);",
"public Vector<Usuario> getUsuario() {\n\t\treturn usuario;\n\t}"
] | [
"0.7313724",
"0.72538984",
"0.72171015",
"0.714788",
"0.7066201",
"0.69987476",
"0.6982764",
"0.6967358",
"0.6958028",
"0.6939324",
"0.6910425",
"0.6910343",
"0.6837416",
"0.6823821",
"0.68167114",
"0.6801721",
"0.6788748",
"0.6779832",
"0.6773648",
"0.67683077",
"0.6763573",
"0.6759858",
"0.67435086",
"0.67355734",
"0.6733118",
"0.67019594",
"0.6692221",
"0.66922116",
"0.6687382",
"0.6683369",
"0.6678647",
"0.6676676",
"0.6633732",
"0.66249985",
"0.66249985",
"0.66174346",
"0.6617281",
"0.6614322",
"0.66064054",
"0.6605075",
"0.6604057",
"0.66025734",
"0.65984386",
"0.6596774",
"0.6590519",
"0.65902394",
"0.65863276",
"0.65863276",
"0.6580312",
"0.6576103",
"0.6565453",
"0.65626854",
"0.65482867",
"0.6544849",
"0.65379304",
"0.6537151",
"0.6537151",
"0.6531637",
"0.65316",
"0.6529912",
"0.65292764",
"0.65292764",
"0.6522453",
"0.6517824",
"0.6510729",
"0.6490793",
"0.6483713",
"0.64772654",
"0.6472779",
"0.6458672",
"0.64565736",
"0.6455647",
"0.6451759",
"0.6438484",
"0.6437069",
"0.6434893",
"0.6430517",
"0.6422245",
"0.6413639",
"0.6409704",
"0.64057595",
"0.6402662",
"0.6401626",
"0.6399556",
"0.63987017",
"0.63987017",
"0.63982123",
"0.6391178",
"0.63839877",
"0.63774467",
"0.63620424",
"0.63606006",
"0.6355512",
"0.6350185",
"0.63498443",
"0.63430417",
"0.633325",
"0.63320816",
"0.63267815",
"0.6326245"
] | 0.71878195 | 3 |
Recupera as fotos postadas pelo usuario | public void carregarFotosPostagem(){
postagensUsuarioRef.addListenerForSingleValueEvent(new ValueEventListener() {
@Override
public void onDataChange(@NonNull DataSnapshot snapshot) {
// Limpando Lista de postagens
listaDePostagens.clear();
listaDeUrl.clear();
// Configurar tamanho do grid
// recuperamos o tamanho da tela do usuario e dividimos por 3
int tamanhoGrid = getResources().getDisplayMetrics().widthPixels;
int tamanhoGridPadding = tamanhoGrid - 20;
int tamanhoImagem = tamanhoGridPadding/3;
gridPerfilAmigo.setColumnWidth(tamanhoImagem);
gridPerfilAmigo.setVerticalSpacing(2);
gridPerfilAmigo.setHorizontalSpacing(2);
for (DataSnapshot ds: snapshot.getChildren()){
Postagem postagem = ds.getValue(Postagem.class);
listaDePostagens.add(postagem);
listaDeUrl.add(postagem.getFoto());
}
tvPublicacao.setText(String.valueOf(listaDePostagens.size()));
// Configurando Adapter para o GridView
adapterGridAmigo = new AdapterGridAmigo(getApplicationContext(), R.layout.adapter_grid, listaDeUrl);
gridPerfilAmigo.setAdapter(adapterGridAmigo);
}
@Override
public void onCancelled(@NonNull DatabaseError error) {
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"fotos(){}",
"@Override\n\tvoid postarFoto() {\n\n\t}",
"private void getImagesFromServer() {\n trObtainAllPetImages.setUser(user);\n trObtainAllPetImages.execute();\n Map<String, byte[]> petImages = trObtainAllPetImages.getResult();\n Set<String> names = petImages.keySet();\n\n for (String petName : names) {\n byte[] bytes = petImages.get(petName);\n Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, Objects.requireNonNull(bytes).length);\n int index = user.getPets().indexOf(new Pet(petName));\n user.getPets().get(index).setProfileImage(bitmap);\n ImageManager.writeImage(ImageManager.PET_PROFILE_IMAGES_PATH, user.getUsername() + '_' + petName, bytes);\n }\n }",
"@GetMapping(\"/{id}/photos\")\n public GenericResponse getUserPhotos(@PathVariable(value = \"id\") String fbId) {\n // lookup user separately, so that exception is thrown when user does not exist\n userRepository.findById(fbId)\n .orElseThrow(() -> new ResourceNotFoundException(\"User\", \"fbId\", fbId));\n return new GenericResponse(photoRepository.findAllByUserId(fbId).orElse(new ArrayList<>()));\n }",
"public void seleccionarFotoPerfil(View v) {\n //Crea un Intent\n Intent intent = new Intent();\n //con intent.setType(\"image/*\") indicamos que en la nueva actividad solo se mostraran imagenes\n intent.setType(\"image/*\");\n //Muestra contenido que el usuario puede escoger, y que devolvera una URI resultante\n intent.setAction(Intent.ACTION_GET_CONTENT);\n //Inicia una nueva actividad que mostrara el seleccionador de imagenes\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"private void retrieveFavoritePhotos() {\n showProgress(this.mProgressBar, this.mRlContent);\n this.mFavoritePhotosViewModel.retrievePhotos();\n }",
"@GET\n @Path(\"/mostrarOrdenadasFS\")\n @Produces({\"application/json\"})\n public List<Fotografia> fotoUsuarioOrdenadaFS(){\n int idUser = 1;\n return fotografiaEJB.FotoUsuarioOrdenadasFS(idUser);\n }",
"List<Photo> homePagePhotos();",
"@RequestMapping(value = \"/{userID}\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<Photo> getPhotos(@PathVariable long userID) {\n\t\treturn photoServices.getPhotos(userID);\n\t}",
"public void downloadImages(){\n\n\n //.makeText(getActivity(), \"Registered!!!\", Toast.LENGTH_SHORT).show();\n //from Constats class\n final StringRequest stringRequest = new StringRequest(Request.Method.POST, Constants.ALL_PEOPLE_PHOTO,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n if(!response.contains(\"No friends have posted photos!!!\")) {\n\n\n\n\n try {\n\n JSONArray jsonArray = new JSONArray(response);\n\n Toast.makeText(getApplicationContext(), jsonArray.length()+\"\", Toast.LENGTH_SHORT).show();\n\n\n\n for (int i = 0; i<jsonArray.length(); i++) {\n\n JSONArray arr = jsonArray.getJSONArray(i);\n String person = arr.getString(0);\n String photoarray = arr.getString(1);\n\n byte[] downloadByteImg = Base64.decode(photoarray, Base64.DEFAULT);\n\n downloadedBitmap = BitmapFactory.decodeByteArray(downloadByteImg, 0, downloadByteImg.length);\n\n if (downloadedBitmap == null) {\n\n Toast.makeText(getApplicationContext(), response, Toast.LENGTH_SHORT).show();\n\n } else {\n\n\n\n postsArraylist.add(new Post(person,downloadedBitmap));\n\n\n\n }\n\n\n\n // Toast.makeText(getApplicationContext(), \"data arrived\" + name, Toast.LENGTH_SHORT).show();\n }\n\n\n\n\n }catch (JSONException e) {\n Toast.makeText(getApplicationContext(), \"data not arrived\", Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n\n }\n\n adapter = new PostAdapter(getApplicationContext(), R.layout.row, postsArraylist);\n\n if(photoListView != null){\n // mListView.setAdapter(mArrayAdapter);\n photoListView.setAdapter(adapter);\n }\n\n\n\n\n }else{\n\n photosStatus.setText(response);\n photosStatus.setVisibility(View.VISIBLE);\n\n\n }\n\n\n\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n if (error instanceof TimeoutError) {\n Toast.makeText(getApplicationContext(), \"Timeout Error!!!\", Toast.LENGTH_SHORT).show();\n } else if (error instanceof NoConnectionError) {\n Toast.makeText(getApplicationContext(), \"No Connection Error!!!\", Toast.LENGTH_SHORT).show();\n } else if (error instanceof AuthFailureError) {\n Toast.makeText(getApplicationContext(), \"Authentication Failure Error!!!\", Toast.LENGTH_SHORT).show();\n } else if (error instanceof NetworkError) {\n Toast.makeText(getApplicationContext(), \"Networl Error!!!\", Toast.LENGTH_SHORT).show();\n } else if (error instanceof ServerError) {\n Toast.makeText(getApplicationContext(), \"Server Error!!!\", Toast.LENGTH_SHORT).show();\n } else if (error instanceof ParseError) {\n Toast.makeText(getApplicationContext(), \"JSON Parse Error!!!\", Toast.LENGTH_SHORT).show();\n }\n\n }\n }) {\n\n\n\n // and this sending to db for more security accessing\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<>();\n headers.put(\"User-Agent\", \"MyTestApp\");\n return headers;\n }\n\n\n };\n\n MySingleton.getInstance(getApplicationContext()).addToRequestQueue(stringRequest);\n\n\n }",
"void addPhoto(User user, Photo photo);",
"@GET\n @Path(\"/mostrarOrdenadasFT\")\n @Produces({\"application/json\"})\n public List<Fotografia> fotoUsuarioOrdenadaFT(){\n int idUser = 1;\n return fotografiaEJB.FotoUsuarioOrdenadasFT(idUser);\n }",
"private void getPhotos(final View view ) {\r\n final String placeId = Detail.getInstance().getPlaceId();\r\n final Task<PlacePhotoMetadataResponse> photoMetadataResponse = mGeoDataClient.getPlacePhotos(placeId);\r\n photoMetadataResponse.addOnCompleteListener(new OnCompleteListener<PlacePhotoMetadataResponse>() {\r\n @Override\r\n public void onComplete(@NonNull Task<PlacePhotoMetadataResponse> task) {\r\n try {\r\n // Get the list of photos.\r\n PlacePhotoMetadataResponse photos = task.getResult();\r\n // Get the PlacePhotoMetadataBuffer (metadata for all of the photos).\r\n PlacePhotoMetadataBuffer photoMetadataBuffer = photos.getPhotoMetadata();\r\n // Get the first photo in the list.\r\n final LinearLayout ll = (LinearLayout) view.findViewById(R.id.photos_table);\r\n if (photoMetadataBuffer == null) {\r\n Toast.makeText(mContext, \"No photos found\", Toast.LENGTH_SHORT);\r\n\r\n pm.setText(\"No photos found!\");\r\n return;\r\n }\r\n\r\n for ( int i=0; i < photoMetadataBuffer.getCount(); i++ ){\r\n PlacePhotoMetadata photoMetadata = photoMetadataBuffer.get(i).freeze();\r\n // Get the attribution text.\r\n CharSequence attribution = photoMetadata.getAttributions();\r\n // Get a full-size bitmap for the photo.\r\n Task<PlacePhotoResponse> photoResponse = mGeoDataClient.getPhoto(photoMetadata);\r\n photoResponse.addOnCompleteListener(new OnCompleteListener<PlacePhotoResponse>() {\r\n @Override\r\n public void onComplete(@NonNull Task<PlacePhotoResponse> task) {\r\n PlacePhotoResponse photo = task.getResult();\r\n Bitmap bitmap = photo.getBitmap();\r\n System.out.println(\"Photo url: \" + bitmap);\r\n photoURLs.add(bitmap);\r\n ImageView img = new ImageView(mContext);\r\n LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(1000, 1000);\r\n\r\n lp.setMargins(10, 5, 10, 5);\r\n img.setLayoutParams(lp);\r\n img.setImageBitmap(bitmap);\r\n //img.getLayoutParams().width = 1000;\r\n //img.setMaxWidth(1000);\r\n ll.addView(img);\r\n }\r\n });\r\n\r\n }\r\n\r\n\r\n System.out.println(\"Total number of photos: \"+ photoURLs.size());\r\n photoMetadataBuffer.release();\r\n pm.setText(\"No photos found!\");\r\n\r\n } catch ( Exception e) {\r\n pm.setText(\"No photos found!\");\r\n }\r\n }\r\n });\r\n }",
"private void fetchPostos() {\n //CRIA UMA REFERENCIA PARA A COLEÇÃO DE POSTOS\n\n FirebaseFirestore.getInstance().collection(\"/postos\")\n .addSnapshotListener(new EventListener<QuerySnapshot>() {\n @Override\n public void onEvent(@Nullable QuerySnapshot queryDocumentSnapshots, @Nullable FirebaseFirestoreException e) {\n //VERIFICANDO SE ENCONTROU ALGUMA EXCEÇÃO CAPAZ DE IMPEDIR A EXECUÇÃO, CASO ENCONTRE, PARE A APLICAÇÃO\n if (e != null) {\n Log.e(\"TESTE\", \"Erro: \", e);\n return;\n }\n //REFERÊNCIA PARA TODOS POSTOS DA BASE\n List<DocumentSnapshot> documentos = queryDocumentSnapshots.getDocuments();\n\n\n for (DocumentSnapshot doc : documentos) {\n Posto posto = doc.toObject(Posto.class);\n int cont = 0;\n for (int i = 0; i < denunciasNaBase.size(); i++) {\n\n if (denunciasNaBase.get(i).getPosto().equalsIgnoreCase(posto.getCnpj())) {\n Log.d(\"TESTE\", \"Posto \" + posto.getCnpj() + \"denuncia \" + denunciasNaBase.get(i).getPosto());\n cont++;\n }\n }\n if (cont > 0) {\n adapter.add(new DenunciaItem(posto, cont));\n }\n }\n\n }\n });\n }",
"@Override\n public void done(List<ParseObject> objects, ParseException e) {\n if( e == null) {\n //...and objects returned is greater than 0...\n if(objects.size() > 0) {\n //loop through all objects that were returned\n for(ParseObject object : objects) {\n //create a parseFile file, get the the object i.e. the current image on the loop, and assign it to the created parseFile file.\n ParseFile file = (ParseFile) object.get(\"profilepicture\");\n //convert the image to a bitmap file.\n file.getDataInBackground(new GetDataCallback() {\n @Override\n public void done(byte[] data, ParseException e) {\n if(e == null && data != null) {\n Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length);\n\n imageView.setImageBitmap(bitmap);\n } else {\n Toast.makeText(getActivity().getApplicationContext(), \"Error!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n //if the object.size returned from the server is less than or equal to 0, tell the user that the user does not have any pictures\n } else {\n Toast.makeText(getActivity().getApplicationContext(),\"This User has no Pictures\" ,Toast.LENGTH_LONG).show();\n }\n //if the exception is not equal to null, tell the user the reason.\n } else {\n Toast.makeText(getActivity().getApplicationContext(),e.getMessage() ,Toast.LENGTH_SHORT).show();\n }\n }",
"private void loadImages(FollowersResponse response) throws IOException {\n for(User user : response.getFollowers()) {\n byte [] bytes = ByteArrayUtils.bytesFromUrl(user.getImageUrl());\n user.setImageBytes(bytes);\n }\n }",
"private void loadPosts(final List<AnipalAbstractPost> posts){\n Query q1 = FirebaseDatabase.getInstance().getReference(\"UserPosts\")\n .child(MainActivity.currentUser.getUserUUID()).orderByChild(\"timestamp\")\n .limitToLast(5);\n q1.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n AnipalAbstractPost post ;\n for(DataSnapshot snap : dataSnapshot.getChildren()){\n if(snap.hasChild(\"photoURL\")){\n // Photo post\n post = snap.getValue(AnipalPhotoPost.class);\n post.findUser(post.getUserUUID());\n }else{\n // Donation post\n post = snap.getValue(AnipalDonationPost.class);\n post.findUser(post.getUserUUID());\n }\n posts.add(post);\n }\n\n Collections.reverse(posts);\n postAdapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n }",
"private void cacheUserImages() {\n User user = User.getLoggedInUser(this);\n if (user != null) {\n ImageView view = new ImageView(this);\n Picasso.with(this).load(user.getBannerImageUrl()).into(view);\n\n ImageView view2 = new ImageView(this);\n Picasso.with(this).load(user.getProfileImageUrl()).into(view2);\n }\n }",
"private void getUserImage(){\r\n \t//setProgressBarIndeterminateVisibility(true);\r\n \t\r\n \tusername=null;\r\n \tfor(int i=0; i<senderList.size(); i++) {\t// kovetkezo felhasznalo kepe\r\n \t\tString str=senderList.get(i);\r\n \t\tif (!userImage.containsKey(str)) {\r\n \t\t\tusername=str;\r\n \t\t\tbreak;\r\n \t\t}\r\n \t}\r\n \t\r\n \tif (username==null) return;\r\n \t\r\n\t String url = \"ImageDownload?size=medium&username=\" + username +\r\n\t \t\t\t\t\t\t \"&ssid=\" + UserInfo.getSSID();\r\n\t downloadUserImage = new HttpGetByteConnection(url, mHandler, TASK_GETUSERIMAGE);\r\n\t downloadUserImage.start();\r\n }",
"private void afficherImage() {\n\n //get the link of the storage reference of the user\n StorageReference st = stm.child(\"users/\" + auth.getCurrentUser().getUid());\n try {\n File localFile = File.createTempFile(\"image\", \"png\");\n st.getFile(localFile).addOnSuccessListener(taskSnapshot -> st.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n //load the picture in the activity\n Picasso.with(getActivity()).load(uri).into(image);\n }\n }));\n } catch (IOException e) {\n Log.e(getClass().getName(), e.toString());\n }\n\n\n }",
"private void fetchPopularPhotos() {\n\n String url = \"https://api.instagram.com/v1/media/popular?client_id=\" + CLIENT_ID;\n\n AsyncHttpClient client = new AsyncHttpClient();\n client.get(url, null, new JsonHttpResponseHandler(){\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n Log.i(PhotosActivity.APP_TAG, \"Reloading new data success!\");\n aPhotos.clear();\n JSONArray photosJSON = null;\n try {\n photosJSON = response.getJSONArray(\"data\");\n if (photosJSON != null) {\n for (int i=0; i < photosJSON.length(); i++) {\n JSONObject photoJSON = photosJSON.getJSONObject(i);\n InstagramPhoto photo = new InstagramPhoto();\n // Map the property\n // https://instagram.com/developer/endpoints/media/#get_media_popular\n photo.username = photoJSON.getJSONObject(\"user\").getString(\"username\");\n if (photoJSON.has(\"user\") && photoJSON.getJSONObject(\"user\").has(\"profile_picture\")) {\n photo.userProfilePictureUrl = photoJSON.getJSONObject(\"user\").getString(\"profile_picture\");\n }\n if (photoJSON.has(\"caption\") &&\n photoJSON.optJSONObject(\"caption\") != null && photoJSON.getJSONObject(\"caption\").has(\"text\")) {\n try {\n photo.caption = photoJSON.getJSONObject(\"caption\").getString(\"text\");\n } catch (Exception ev){\n photo.caption = \"\";\n }\n }\n photo.imageUrl = photoJSON.getJSONObject(\"images\").getJSONObject(\"standard_resolution\")\n .getString(\"url\");\n photo.imageHeight = photoJSON.getJSONObject(\"images\").getJSONObject(\"standard_resolution\")\n .getInt(\"height\");\n photo.likesCount = photoJSON.getJSONObject(\"likes\").getInt(\"count\");\n // comments count\n photo.commentCounts = photoJSON.getJSONObject(\"comments\").getInt(\"count\");\n if (photo.commentCounts > 0){\n // iterate for each comments for this media and get the last 2\n // need to get the last 2 entry\n JSONArray commentsData = photoJSON.getJSONObject(\"comments\").getJSONArray(\"data\");\n photo.comments = new ArrayList<InstagramComment>();\n for (int j = commentsData.length() - 1;j >= 0 && photo.comments.size() < 2; j--){\n JSONObject jsonComment = commentsData.getJSONObject(j);\n InstagramComment comment = new InstagramComment();\n comment.createdTime = jsonComment.getLong(\"created_time\");\n comment.fromUserFullName = jsonComment.getJSONObject(\"from\").getString(\"username\");\n comment.fromUserProfilePic = jsonComment.getJSONObject(\"from\").getString(\"profile_picture\");\n comment.text = jsonComment.getString(\"text\");\n photo.comments.add(comment);\n }\n }\n // get the rest of the comments\n photo.createdDate = photoJSON.getLong(\"created_time\");\n // media id\n photo.id = photoJSON.getString(\"id\");\n\n // add to main arrayList\n photos.add(photo);\n }\n }\n } catch (JSONException ev){\n Log.d(PhotosActivity.APP_TAG, \"Fail on \" + photosJSON.toString());\n ev.printStackTrace();\n }\n\n Log.d(APP_TAG, \"Total photos : \" + photos.size());\n\n // callback (once this proces done, need to notify adapter)\n aPhotos.notifyDataSetChanged();\n // to signal refresh finished (on swiperefreshlayout)\n swipeContainer.setRefreshing(false);\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n }\n });\n\n }",
"Receta getByIdWithImages(long id);",
"public static List<Image> findImagesByUserId(Integer userId){\n return finder.where().eq(\"user_id\", userId).findList();\n }",
"public void onCompleted(GraphResponse response) {\n JSONArray postArray = null;\n try {\n postArray = response.getJSONObject().getJSONArray(\"data\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n int postLimit = 10;\n if(postArray.length()<10) {postLimit=postArray.length();}\n\n for (int i=0; i<postLimit; i++) {\n String postId;\n try {\n postId = postArray.getJSONObject(i).getString(\"id\");\n\n final int finalI = i;\n final JSONArray finalPostArray = postArray;\n\n // se non esiste in DB\n if(DBManager.getDBManager(context).getPostById(postId)==null) {\n Log.e(\"FB POST MANAGER\", \"New post found\");\n\n new GraphRequest(\n AccessToken.getCurrentAccessToken(),\n \"/\" + postId + \"/attachments\",\n null,\n HttpMethod.GET,\n new GraphRequest.Callback() {\n public void onCompleted(GraphResponse response) {\n /* handle the result */\n try {\n FbPost p = FbPostParser.parseFbPostResponse(finalPostArray.getJSONObject(finalI), response.getJSONObject().getJSONArray(\"data\"));\n if (p != null && DBManager.getDBManager(context).getPostById(p.getId()) == null) {\n postList.add(p);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }\n ).executeAndWait();\n }\n else {\n Log.e(\"FB POST MANAGER\", \"Post skipped\");\n totalImages--;\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }",
"@Override\n public List<String> getUserImages(User user) {\n List<Image> images = user.getImageList();\n List<String> paths = new ArrayList<>();\n for (Image image : images) {\n paths.add(image.getImagePath());\n }\n return paths;\n }",
"private void showPhoto(String objectId) {\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"UserPhoto\");\n\t\tquery.whereEqualTo(\"objectId\", objectId);\n\t\tquery.getFirstInBackground(new GetCallback<ParseObject>() {\n\n\t\t\t@Override\n\t\t\tpublic void done(ParseObject object, ParseException e) {\n\t\t\t\tif (object != null) {\n\t\t\t\t\t// Get image file data\n\t\t\t\t\tParseFile file = (ParseFile) object.get(\"imageFile\");\n\t\t\t\t\tfile.getDataInBackground(new GetDataCallback() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(byte[] data, ParseException e) {\n\t\t\t\t\t\t\tif (e == null) {\n\t\t\t\t\t\t\t\t// Show photo in image view\n\t\t\t\t\t\t\t\tfinal ImageView imageView = (ImageView) findViewById(R.id.imageView1);\n\t\t\t\t\t\t\t\tBitmap bmp = BitmapFactory.decodeByteArray(data,0,data.length);\n\t\t\t\t\t\t\t\timageView.setImageBitmap(bmp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tLog.d(\"Image file load error\", e.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t \n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t \n\t\t});\n\t}",
"public void recuperandoDadosUsuarioescolhido(){\n Bundle bundle = getIntent().getExtras();\n if (bundle != null){\n if (bundle.containsKey(\"usuarioSelecionado\")){\n dadosDoUsuario = (Usuario) bundle.getSerializable(\"usuarioSelecionado\");\n }\n }\n\n // Configurando Toolbar\n\n toolbar.setTitle(dadosDoUsuario.getNome());\n setSupportActionBar(toolbar);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n // Configurando Imagem\n if (dadosDoUsuario.getFoto() != null){\n if (!dadosDoUsuario.getFoto().isEmpty()){\n Uri url = Uri.parse(dadosDoUsuario.getFoto());\n Glide.with(getApplicationContext()).load(url).into(civFotoPerfil);\n }\n }\n\n // Configurando Seguidores Postagens e Seguindo\n\n //stPublicacao = String.valueOf(dadosDoUsuario.getPublicacoes());\n stSeguidores = String.valueOf(dadosDoUsuario.getSeguidores());\n stSeguindo = String.valueOf(dadosDoUsuario.getSeguindo());\n\n tvSeguindo.setText(stSeguindo);\n tvSeguidores.setText(stSeguidores);\n //tvPublicacao.setText(stPublicacao);\n\n // Configurando Referencia postagens Usuario Escolhido\n postagensUsuarioRef = ConfiguracaoFirebase.getFirebaseDatabase()\n .child(\"postagens\")\n .child(dadosDoUsuario.getId());\n\n // Inicializa o Universal Image Loader\n inicializarImageLoader();\n // Recupera as Postagens do nosso Banco de Dados\n carregarFotosPostagem();\n }",
"public List<Photo> getPhotos() {\n return photos;\n }",
"@GET\n @Produces(\"application/json\")\n public List<Photos> getPhotos() {\n \tPhotosDAO dao = new PhotosDAO();\n List photos = dao.getPhotos();\n return photos;\n }",
"private void loadPostInfo() {\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"Posts\");\n Query query = ref.orderByChild(\"pId\").equalTo(postId);\n query.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n //keep checking post until get the required post\n for (DataSnapshot ds: dataSnapshot.getChildren()){\n pVideo = \"\"+ ds.child(\"pVideo\").getValue();\n String pVideoCover = \"\"+ ds.child(\"videoCover\").getValue();\n pLikes = \"\"+ ds.child(\"pLikes\").getValue();\n String pTimestamp = \"\"+ ds.child(\"pTime\").getValue();\n hisDp = \"\"+ ds.child(\"uImage\").getValue();\n hisUid = \"\"+ ds.child(\"uid\").getValue();\n hisName = \"\"+ ds.child(\"uName\").getValue();\n String commentCount = \"\"+ ds.child(\"pComments\").getValue();\n\n //convert timestamp\n Calendar cal = Calendar.getInstance(Locale.FRENCH);\n cal.setTimeInMillis(Long.parseLong(pTimestamp));\n String pTime = DateFormat.format(\"dd/MM/yyyy HH:mm \",cal).toString();\n\n uNameTv.setText(hisName);\n pLikesTv.setText(pLikes + getString(R.string.like));\n pTimeTv.setText(pTime);\n pCommentTv.setText(commentCount + \" \"+getString(R.string.comment));\n\n HttpProxyCacheServer proxy = getProxy(getApplicationContext());\n proxyUrl = proxy.getProxyUrl(pVideo);\n\n prepareVideoPlayer(proxyUrl);\n\n Glide.with(getApplicationContext())\n .asBitmap()\n .load(pVideoCover)\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(video_cover);\n\n //set User image\n Glide.with(getApplicationContext())\n .asBitmap()\n .load(hisDp)\n .placeholder(R.drawable.profile_image)\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(uPictureIv);\n\n shareBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n sharePostVideoOnly(pVideo,postId);\n\n }\n });\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n playVideo.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n prepareVideoPlayer(proxyUrl);\n }\n });\n }",
"public void crearRutaImgPublicacion(){\n \n servletContext=(ServletContext) contexto.getExternalContext().getContext();\n String ruta=\"\";\n //Ruta real hasta la carpeta uploads\n ruta=servletContext.getRealPath(\"/upload/\");\n //Obtener el codigo del usuario de la sesion actual\n //este es utilizado para ubicar la carpeta que le eprtenece\n String codUsuario=String.valueOf(new SessionLogica().obtenerUsuarioSession().getCodUsuario());\n //Concatenamiento de directorios internos\n ruta+=File.separatorChar+\"img\"+File.separatorChar+\"post\"+File.separatorChar+codUsuario+File.separatorChar+\"all\"+File.separatorChar;\n //Asignacion de la ruta creada\n this.rutaImgPublicacion=ruta;\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if(resultCode == RESULT_OK){\n Bitmap imagem = null;\n try {\n switch (requestCode){\n case SELECAO_GALERIA:\n Uri localImage = data.getData();\n imagem = MediaStore.Images.Media.getBitmap(getContentResolver(), localImage);\n break;\n }\n if(imagem != null){\n //configuração da imagem em Bitmap\n imageView.setImageBitmap(imagem);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n imagem.compress(Bitmap.CompressFormat.JPEG, 70, baos);\n byte[] dadosImagem = baos.toByteArray();\n\n //referência para pasta no Storage\n final StorageReference imagemRef = storageReference\n .child(\"imagens\")\n .child(\"servicos\")\n .child(idUserLogado)\n .child(imagem + \"jpeg\");\n\n //upload dos bytes da imagem\n UploadTask uploadTask = imagemRef.putBytes(dadosImagem);\n uploadTask.addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(NovoProdutoEmpresaActivity.this,\n \"Erro ao fazer o upload da imagem\", Toast.LENGTH_SHORT).show();\n }\n }).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(NovoProdutoEmpresaActivity.this,\n \"Sucesso ao fazer o upload da imagem\", Toast.LENGTH_SHORT).show();\n }\n });\n\n //recupera o link de download da imagem\n Task<Uri> urlTask = uploadTask.continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n if (!task.isSuccessful()){\n throw task.getException();\n }\n return imagemRef.getDownloadUrl();\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if(task.isSuccessful()){\n Uri downloadUri = task.getResult();\n\n //salva a url na string\n urlImagemSelecionada = downloadUri.toString();\n }\n }\n });\n\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n }",
"private void GetPictureFacebook(String faceBookId, final String nombre)\n {\n try\n {\n String url = \"http://graph.facebook.com/\" + faceBookId + \"/picture?type=large\";\n\n // Realizamos la obtención de la imagen\n cliente.get(url, new BinaryHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, byte[] binaryData)\n {\n try {\n // Procesamos los bytes de la imagen recibida\n Bitmap imagen = BitmapFactory.decodeByteArray(binaryData, 0, binaryData.length);\n\n // Obtenemos la ruta donde guardaremos la imagen\n String szRuta = Helpers.ImagenFotoPerfil(getActivity());\n\n // Si existe el archivo lo eliminamos\n if (new File(szRuta).exists()) new File(szRuta).delete();\n\n try {\n // Guardamos la imagen\n FileOutputStream fOut = new FileOutputStream(szRuta);\n imagen.compress(Bitmap.CompressFormat.JPEG, 100, fOut);\n fOut.flush();\n fOut.close();\n\n // Ahora subimos la imagen\n SubirFotoUsuario(Helpers.BitmapToByte(imagen), nombre);\n }\n catch (IOException ioe)\n {\n Log.e(getString(R.string.error), ioe.getMessage());\n }\n } catch (Exception ex) {\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] binaryData, Throwable error) {\n }\n });\n }\n catch (Exception ex)\n {\n }\n }",
"private void SubirFotoUsuario(byte[] bDatos, String nombre)\n {\n // Si no hay datos, salimos\n if (bDatos == null)\treturn ;\n\n // Establecemos los parametros\n RequestParams params = new RequestParams();\n params.put(\"archivo\", new ByteArrayInputStream(bDatos), \"imagen.jpg\");\n params.put(\"directorio\", \"Usuarios\");\n params.put(\"nombre\", nombre);\n\n // Realizamos la petición\n cliente.post(getActivity(), Helpers.URLApi(\"subirimagen\"), params, new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n // Obtenemos el objeto JSON\n JSONObject objeto = Helpers.ResponseBodyToJSON(responseBody);\n\n // Si está OK\n if (objeto.isNull(\"Error\"))\n {\n // Si tenemos el Google Play Services\n if (GCMRegistrar.checkPlayServices(getActivity()))\n // Registramos el ID del Google Cloud Messaging\n GCMRegistrar.registrarGCM(getActivity());\n\n // Abrimos la ventana de los ofertas\n Helpers.LoadFragment(getActivity(), new Ofertas(), \"Ofertas\");\n }\n else\n {\n try {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), objeto.getString(\"Error\"));\n }\n catch (Exception ex) { }\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), getString(R.string.failuploadphoto));\n }\n });\n }",
"public void refreshPhotos() {\n\t\tif(AccessibleUsersList.masterUserList.getUsers() != null) {\n\t\t\tforceListRefreshOn(PhotoListDisplay);\n\t\t\tPhotoListDisplay.setItems(listOfPhotos);\n\t\t}\n\t}",
"private void ObtenerImagenUsuario(String nombre)\n {\n // Realizamos la obtención de la imagen\n ImageLoader.getInstance().loadImage(Helpers.URLImagenes(\"Usuarios/\" + nombre + \".jpg\"), new SimpleImageLoadingListener() {\n @Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n super.onLoadingComplete(imageUri, view, loadedImage);\n\n try {\n // Procesamos los bytes de la imagen recibida\n Bitmap imagen = loadedImage;\n\n try {\n // Guardamos la imagen\n FileOutputStream fOut = new FileOutputStream(Helpers.ImagenFotoPerfil(getActivity()));\n imagen.compress(Bitmap.CompressFormat.JPEG, 100, fOut);\n fOut.flush();\n fOut.close();\n } catch (IOException ioe) {\n }\n }\n catch (Exception ex) { }\n\n // Limpiamos la opción de espera\n m_Espera.dismiss();\n\n // Si tenemos el Google Play Services\n if (GCMRegistrar.checkPlayServices(getActivity()))\n // Registramos el ID del Google Cloud Messaging\n GCMRegistrar.registrarGCM(getActivity());\n\n // Cargamos los ofertas\n Helpers.LoadFragment(getActivity(), new Ofertas(), \"Ofertas\");\n }\n\n @Override\n public void onLoadingFailed(String imageUri, View view, FailReason failReason) {\n super.onLoadingFailed(imageUri, view, failReason);\n\n // Limpiamos la opción de espera\n m_Espera.dismiss();\n\n // Si tenemos el Google Play Services\n if (GCMRegistrar.checkPlayServices(getActivity()))\n // Registramos el ID del Google Cloud Messaging\n GCMRegistrar.registrarGCM(getActivity());\n\n // Cargamos los ofertas\n Helpers.LoadFragment(getActivity(), new Ofertas(), \"Ofertas\");\n }\n });\n }",
"public void bind(Post post) {\n\n tvUsername.setText(post.getUser().getUsername());\n\n ParseFile userProfilePic = (ParseFile) post.getUser().get(\"profile_picture\");\n\n Log.i(\"PostsAdapter\", \"user profile \" + userProfilePic);\n\n if(userProfilePic != null) {\n Glide.with(context).load(userProfilePic.getUrl())\n .placeholder(R.drawable.defaultavatar)\n .circleCrop()\n .into(ivProfileImage);\n\n }\n\n ivProfileImage.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent i = new Intent(context, UserPageActivity.class);\n Bundle bundle = new Bundle();\n\n String username = post.getUser().getUsername();\n String userpic = ((ParseFile) post.getUser().get(\"profile_picture\")).getUrl();\n ParseUser parseUser = post.getUser();\n\n bundle.putString(\"username\", username);\n bundle.putString(\"userpic\", userpic);\n bundle.putParcelable(\"parseUser\", parseUser);\n\n i.putExtras(bundle);\n context.startActivity(i);\n }\n });\n\n tvUsername.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent i = new Intent(context, UserPageActivity.class);\n Bundle bundle = new Bundle();\n\n String username = post.getUser().getUsername();\n String userpic = ((ParseFile) post.getUser().get(\"profile_picture\")).getUrl();\n ParseUser parseUser = post.getUser();\n\n bundle.putString(\"username\", username);\n bundle.putString(\"userpic\", userpic);\n bundle.putParcelable(\"parseUser\", parseUser);\n\n i.putExtras(bundle);\n context.startActivity(i);\n }\n });\n\n if (post.getResultType().equals(\"Artist\")) {\n tvResultType.setText(post.getResultType());\n tvResultName.setText(post.getResultName());\n tvResultBullet.setText(\"\");\n tvResultArtist.setText(\"\");\n\n Glide.with(context)\n .asBitmap()\n .load(post.getResultImageUrl())\n .circleCrop()\n .into(ivResultImage);\n\n } else if (post.getResultType().equals(\"Album\")) {\n tvResultType.setText(post.getResultType());\n tvResultName.setText(post.getResultName());\n tvResultBullet.setText(\"•\");\n tvResultArtist.setText(post.getResultArtist());\n\n Glide.with(context)\n .asBitmap()\n .load(post.getResultImageUrl())\n .transform(new CenterCrop(),new RoundedCorners(10))\n .into(ivResultImage);\n\n } else if (post.getResultType().equals(\"Track\")) {\n tvResultType.setText(post.getResultType());\n tvResultName.setText(post.getResultName());\n tvResultBullet.setText(\"•\");\n tvResultArtist.setText(post.getResultArtist());\n\n Glide.with(context)\n .asBitmap()\n .load(post.getResultImageUrl())\n .transform(new CenterCrop(),new RoundedCorners(10))\n .into(ivResultImage);\n\n }\n\n ratingBar.setRating(post.getRating());\n ratingBar.setIsIndicator(true);\n tvReviewTitle.setText(post.getReviewTitle());\n tvReviewDescription.setText(post.getDescription());\n\n if (!post.isLikedByUser) {\n checkIsLikedByUser(post);\n //mLikeAnim.toggleLikeOutline(context);\n Drawable heartDrawable = context.getDrawable(R.drawable.ic_like_outline);\n ivLikeHeart.setImageDrawable(heartDrawable);\n if (post.numOfLikes == 0) {\n tvNumLikes.setText(\"\");\n }\n else if (post.numOfLikes == 1) {\n tvNumLikes.setText(post.numOfLikes + \" like\");\n }\n else if (post.numOfLikes > 1) {\n tvNumLikes.setText(post.numOfLikes + \" likes\");\n }\n } else {\n mLikeAnim.toggleLikeFilled(context);\n if (post.numOfLikes == 0) {\n tvNumLikes.setText(\"\");\n }\n else if (post.numOfLikes == 1) {\n tvNumLikes.setText(post.numOfLikes + \" like\");\n }\n else if (post.numOfLikes > 1) {\n tvNumLikes.setText(post.numOfLikes + \" likes\");\n }\n }\n\n ivLikeHeart.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // if post is already liked get rid of the like\n // else like the post\n if (post.isLikedByUser) {\n removeLike(post);\n } else {\n likePost(post);\n }\n }\n });\n\n ivComment.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Bundle bundle = bundleData(post);\n bundle.putString(\"scroll\",\"scroll\");\n sendToReviewPost(bundle);\n }\n });\n\n if (post.numOfComments == 0) {\n tvNumComments.setText(\"\");\n }\n else if (post.numOfComments == 1) {\n tvNumComments.setText(post.numOfComments + \" comment\");\n }\n else if (post.numOfComments > 1) {\n tvNumComments.setText(post.numOfComments + \" comments\");\n }\n }",
"@GET(\"/tags/{query}/media/recent\" + CLIENT_ID)\n public void searchPhotos(@Path(\"query\") String query, Callback<WebResponse<ArrayList<InstagramPhoto>>> callback);",
"public List<ImageFile> getUserImage(int userID) {\n List<ImageFile> listOfImages = null;\n Session session = sessionFactory.openSession();\n // Try to return the user by the given nickname\n try {\n session.beginTransaction();\n \n // if mode equals MINE then get just users ID\n Criteria criteria = session.createCriteria(ImageFile.class);\n criteria.add(Restrictions.eq(\"ownerUser.userID\", userID));\n listOfImages = (List<ImageFile>) criteria.list();\n \n session.getTransaction().commit();\n session.flush();\n } \n catch (HibernateException e) { e.printStackTrace(); return null;} \n finally { session.close(); }\n // Return userID if seted\n return listOfImages;\n }",
"public MailRUPhoto getPhoto(String aid, String pid){\n try {\n List<Parameter> parameters = new ArrayList<Parameter>();\n parameters.add(new Parameter(\"method\", \"photos.get\"));\n parameters.add(new Parameter(\"aid\", aid));\n parameters.add(new Parameter(\"pids\", pid));\n parameters.add(new Parameter(\"app_id\", APP_ID));\n parameters.add(new Parameter(\"session_key\", getSessionKey()));\n parameters.add(new Parameter(\"uid\", getUid()));\n\n Signature signature = MailRUOAuthUtils.getSignature(\n getUid(),\n parameters,\n MailRU.PRIVATE_KEY);\n parameters.add(new Parameter(\"sig\", signature.getSignature()));\n\n String data = sendPost(DEFAULT_API_HOST, PATH_API, parameters);\n if (data.contains(\"error\")){\n //Map<String, String> result =getDataAsMap(URLDecoder.decode(data, OAuthUtils.ENC));\n return null;\n }\n List<MailRUPhoto> mailRUPhotos = PhotoTrackerGson.get().getGson().fromJson(data, new TypeToken<ArrayList<MailRUPhoto>>() {}.getType());\n if (Utils.isNull(mailRUPhotos) || mailRUPhotos.isEmpty()) {\n // wrong response - no photoid\n throw new Exception(\"No photoid element in response getPhoto: \" + data);\n }\n MailRUPhoto mailRUPhoto = mailRUPhotos.get(0);\n // success\n return mailRUPhoto;\n } catch (Exception ex) {\n Writer writer = new StringWriter();\n ex.printStackTrace(new PrintWriter(writer));\n String errDescription = \"Failed to parse JSON.\" + \"\\n\" + ex.toString() + \"\\n\" + writer.toString();\n Log.e(TAG, errDescription);\n return null;\n }\n }",
"@Override\n public FlickrResponse searchPhoto(String tags) throws IOException {\n return flickrService.searchPhoto(tags);\n }",
"@Override\n protected Bitmap doInBackground(Void... params) {\n\n try {\n final String USER_IMAGE_URL = Network.forDeploymentIp + \"meetmeup/uploads/users/\" + this.filename;\n\n Log.d(\"Image\", USER_IMAGE_URL);\n\n URLConnection connection = new URL(USER_IMAGE_URL).openConnection();\n connection.setConnectTimeout(1000 * 30);\n\n return BitmapFactory.decodeStream((InputStream) connection.getContent(), null, null);\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }",
"@GetMapping(\"images/album/{idOrTitle}/photos\")\n\tprivate List<PhotoEntity> getImagesFromAlbum(@PathVariable String idOrTitle) {\n\t\tList<PhotoEntity> list = new ArrayList<PhotoEntity>();\n\t\tPhotosetEntity photoset = null;\n\t\t\n\t\tlog.info(\"Request to retrieve photos from photoset...\");\n\t\t\n\t\t// Authorize edel-read or do not retrieve anything\n\t\tif (util.authEdelRead() != null) {\n\t\t\t\n\t\t\tphotoset = service.getPhotosetByIdOrTitle(idOrTitle);\n\t\t\t\n\t\t\t// If photoset is not null, set the list of PhotoEntity\n\t\t\tif (photoset != null) {\n\t\t\t\tlist = service.getPhotosFromPhotoset(photoset);\n\t\t\t\tlog.info(\"Request completed with photoset.\");\n\t\t\t} else {\n\t\t\t\tlog.warn(\"Request completed with no photoset.\");\n\t\t\t}\n\t\t} else {\n\t\t\tlog.warn(\"Request completed with failed Authorization.\");\n\t\t}\n\t\t\n\t\treturn list;\n\t}",
"@GetMapping(\"/allUsersPosts\")\n public ResponseEntity<List<PostResource>> retrieveAllPostsForAllUsers() {\n //first we will retrieve all users to get their ids\n List<Long> userIds = externalService.retrieveAllUserIds();\n\n //then we will search for every post based on userId\n List<PostResource> postResources = new ArrayList<>();\n for (Long userId : userIds) {\n postResources.addAll(externalService.retrievePostsForUser(userId));\n }\n\n return new ResponseEntity<>(postResources, HttpStatus.ACCEPTED);\n }",
"public VotoRespuesta findVoto(Usuario user, Respuesta respuesta);",
"private void postImageToFacebook() {\n Session session = Session.getActiveSession();\n final String extraText = postTextView.getText().toString();\n if (session.isPermissionGranted(\"publish_actions\")){\n Bundle param = new Bundle();\n\n // Add the image\n try {\n Drawable myDrawable = getResources().getDrawable(extrasIntent.getInt(\"image\"));\n Bitmap bitmap = ((BitmapDrawable) myDrawable).getBitmap();\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);\n byte[] byteArrayData = stream.toByteArray();\n param.putByteArray(\"picture\", byteArrayData);\n } catch (Exception ioe) {\n // The image that was send through is now not there?\n Assert.assertTrue(false);\n }\n\n // Add the caption\n param.putString(\"message\", extraText);\n Request request = new Request(session,\"me/photos\", param, HttpMethod.POST, new Request.Callback() {\n @Override\n public void onCompleted(Response response) {\n addNotification(getString(R.string.photo_post), response.getGraphObject(), response.getError());\n\n }\n }, null);\n RequestAsyncTask asyncTask = new RequestAsyncTask(request);\n asyncTask.execute();\n finish();\n }\n }",
"private void queryAndSetPicture() {\n StorageReference storageRef = mStorage.getReference().child(user.getId());\n final long ONE_MEGABYTE = 1024 * 1024;\n storageRef.getBytes(ONE_MEGABYTE).addOnSuccessListener(new OnSuccessListener<byte[]>() {\n @Override\n public void onSuccess(byte[] bytes) {\n // Data for \"images/island.jpg\" is returns, use this as needed\n mImageByteArray = bytes;\n mImageBitmap = BitmapFactory.decodeByteArray(mImageByteArray, 0, mImageByteArray.length);\n mUserimage.setImageBitmap(mImageBitmap);\n mUserimage.setBackgroundColor(80000000);\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception exception) {\n // Handle any errors\n// mUserimage.setBackgroundColor(80000000);\n }\n });\n\n }",
"public void addPicture() {\n FileChooser chooser = new FileChooser();\n chooser.setTitle(\"Upload your pic for this post\");\n file = chooser.showOpenDialog(null);\n if (file != null) {\n\n Image profilePicImage = new Image(file.toURI().toString());\n try {\n this.postPic = new FileInputStream(file).readAllBytes();\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n postImage.setImage(profilePicImage);\n }\n }",
"public static File[] getFollowerImages(String username) {\n File[] followFiles = ImageFactory.getFollowerFilePaths(username);\n\n String[] followImageURLs = new String[followFiles.length];\n for(int i = 0; i < followFiles.length; i++) {\n followImageURLs[i] = followFiles[i].toURI().toString();\n }\n\n return followFiles;\n }",
"public void printPhotos() {\n\t\t//System.out.println(\"Loading photos: \" + AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum());\n\t\t\n\t\tif(AccessibleUsersList.masterUserList.getUsers() != null) {\n\t\t\t//System.out.println(listOfPhotos);\n\t\t\tlistOfPhotos.clear();\n\t\t\tlistOfPhotos = FXCollections.observableArrayList();\n\t\t\tPhotoListDisplay.setItems(listOfPhotos);\n\t\t\t\n\t\t\tfor(Photo phot: AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum()) {\n\t\t\t\t//System.out.println(\"displaying photo\");\n\t\t\t\tString path = phot.getPathToPhoto(); \n\t\t\t\t//Pass to FileInputStream \n\t\t\t\tFileInputStream inputstream = null;\n\t\t\t\ttry {\n\t\t\t\t\tinputstream = new FileInputStream(path);\n\t\t\t\t} catch (FileNotFoundException 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\t//Instantiate an Image object \n\t\t\t\tImage image1 = new Image(inputstream);\n\t\t\t\t\n\t\t\t\t//Image image1 = photo.photo;\n\t\t\t\tImageView pic = new ImageView();\n\t\t\t\tpic.setFitWidth(340);\n\t\t\t\tpic.setFitHeight(180);\n\t\t\t\tpic.setImage(image1);\n\t\t\t\tlistOfPhotos.add(pic);\n\t\t\t\tphot.setImage(pic);\n\t\t\t\t//System.out.println(\"after adding: \" + listOfPhotos);\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(\"after if stmt: \" + listOfPhotos);\n\t\t\tPhotoListDisplay.setItems(listOfPhotos);\n\t\t\t\n\t\t\t//System.out.println(\"after setitems: \" + listOfPhotos);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tserializeUsers(AccessibleUsersList.masterUserList);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//System.out.println(listOfPhotos);\n\t}",
"private static CopyOnWriteArrayList<String> getListOfImages(String username){\r\n\t\treturn getUser(username).getImageList();\r\n\t}",
"public StreamedContent getPhoto(Patient p) {\n FacesContext context = FacesContext.getCurrentInstance();\n if (context.getRenderResponse()) {\n return new DefaultStreamedContent();\n } else if (p == null) {\n return new DefaultStreamedContent();\n } else {\n if (p.getId() != null && p.getBaImage() != null) {\n //////System.out.println(\"giving image\");\n InputStream targetStream = new ByteArrayInputStream(p.getBaImage());\n StreamedContent str = DefaultStreamedContent.builder().contentType(p.getFileType()).name(p.getFileName()).stream(() -> targetStream).build();\n return str;\n// return new DefaultStreamedContent(new ByteArrayInputStream(p.getBaImage()), p.getFileType(), p.getFileName());\n } else {\n return new DefaultStreamedContent();\n }\n }\n\n }",
"void actualizarCuenta()\n {\n RestApiAdapter restApiAdapter = new RestApiAdapter();\n Gson gsonMediaRecent = restApiAdapter.construyeGsonDeserializadorDatosUsuario();\n EndpointsApi endpointsApi = restApiAdapter.establecerConexionRestApiInstagram(gsonMediaRecent);\n String username = etCuentaUsuario.getText().toString();\n final Call<UsuarioResponse> usuarioResponseCall= endpointsApi.getUserInfo(username);\n usuarioResponseCall.enqueue(new Callback<UsuarioResponse>() {\n @Override\n public void onResponse(Call<UsuarioResponse> call, Response<UsuarioResponse> response) {\n\n Log.i(\"Nelson\", \"Entre\");\n /*UsuarioResponse usuarioResponse = response.body();\n ArrayList<Usuario> usuarios = usuarioResponse.getUsuarios();\n Log.i(\"NelsonUser\", usuarios.get(0).getUserID());\n Log.i(\"NelsonFotoPerfil\", usuarios.get(0).getUrlFotoPerfil());\n */\n\n }\n\n @Override\n public void onFailure(Call<UsuarioResponse> call, Throwable t) {\n //Log.i(\"Nelson\", t.getMessage());\n Log.i(\"Nelson\", \"Fallo\");\n\n }\n });\n\n }",
"@RequestMapping(value = \"/posts/user/{posterName}\", method = RequestMethod.GET)\n @ResponseStatus(value = HttpStatus.OK)\n public List<Post> findPostListByPosterName(@PathVariable String posterName);",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_profile, container, false);\n\n //init firebase\n firebaseAuth = FirebaseAuth.getInstance();\n user = firebaseAuth.getCurrentUser();\n firebaseDatabase = FirebaseDatabase.getInstance();\n databaseReference = firebaseDatabase.getReference(\"Users\");\n\n storageReference = FirebaseStorage.getInstance().getReference(); //Firebase Storage Reference\n\n //init layout views\n avatar = view.findViewById(R.id.avatar);\n coverPhoto = view.findViewById(R.id.coverPhoto);\n nameTxt = view.findViewById(R.id.nameTxt);\n emailTxt = view.findViewById(R.id.emailTxt);\n descTxt = view.findViewById(R.id.descTxt);\n fab = view.findViewById(R.id.fab);\n recyclerview_posts = view.findViewById(R.id.recyclerview_posts);\n\n //init progress dialog\n pd = new ProgressDialog(getActivity());\n\n //izin arrayleri\n cameraPermissions = new String[]{Manifest.permission.CAMERA, Manifest.permission.WRITE_EXTERNAL_STORAGE};\n storagePermissions = new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE};\n\n //tıklanan kullanıcın gönderilerini almak için uid'sini al\n Intent intent = new Intent();\n uid = intent.getStringExtra(\"uid\");\n\n\n /* giriş yapan kullanıcıların bilgilerini email yada uid kullanarak çekmek zorundayız\n Kullanıcı detaylarını email adreslerini kullanarak çekicez\n orderbyChild query kullanarak giriş yapılan email ile email key ini eşleştirerek kullanıcı detaylarına ulaşılıyor\n */\n Query query = databaseReference.orderByChild(\"email\").equalTo(user.getEmail());\n query.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n //gerekli veriler gelene kadar kontrol et\n for (DataSnapshot ds: snapshot.getChildren()){\n //verileri almak için\n String name = \"\"+ ds.child(\"name\").getValue();\n String email = \"\"+ ds.child(\"email\").getValue();\n String desc = \"\"+ ds.child(\"desc\").getValue();\n String image = \"\"+ ds.child(\"image\").getValue();\n String cover = \"\"+ ds.child(\"cover\").getValue();\n\n //set data\n nameTxt.setText(name);\n emailTxt.setText(email);\n descTxt.setText(desc);\n Log.d(TAG, \"onDataChange: \\nName: \"+name+\" email: \"+ email);\n\n try {\n // resim alınırsa ayarla\n Picasso.get().load(image).into(avatar);\n } catch (Exception e){\n // resim alınırken herangi bir sıkıntı varsa varsayılan olarak ayarla\n Picasso.get().load(R.drawable.add_photo_foreground).into(avatar);\n }\n\n try {\n // kapak resimi alınırsa ayarla\n Picasso.get().load(cover).into(coverPhoto);\n } catch (Exception e){\n // kapak resmi alınırken herangi bir sıkıntı varsa varsayılan olarak ayarla\n Picasso.get().load(R.drawable.default_cover_photo).into(coverPhoto);\n }\n }\n Log.d(TAG, \"onDataChange: Data is empty\");\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.d(TAG, \"onCancelled: \"+error);\n }\n });\n\n //fab button onClick özelliği ekleme\n fab.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //edit profile dialog göster\n showEditProfileDialog();\n }\n });\n\n postList = new ArrayList<>();\n uid = user.getUid();\n\n checkUserStatus();\n loadMyPosts();\n\n\n return view;\n }",
"private String getImages() {\n //Keep track of a string for the response from the server\n String responseString = null;\n\n //HttpClient performs all HTTP operations which is used for communication between the server\n //and client\n HttpClient httpclient = new DefaultHttpClient();\n //Create a new HTTP post request to the server URL (Check the Config file for these URLs)\n HttpPost httppost = new HttpPost(Config.IMAGE_ACCESS_URL);\n\n try {\n //MultipartEntity which can package multiple body parts to be sent thru the post request\n AndroidMultipartEntity entity = new AndroidMultipartEntity(\n new AndroidMultipartEntity.ProgressListener() { //Includes a progress listener used to publishProgress to a ProgressDialog\n\n @Override\n public void transferred(long num) {\n publishProgress((int) ((num / (float) totalSize) * 100));\n }\n });\n //Adds a StringBody (the user's email address) in the entity\n entity.addPart(\"email\", new StringBody(email));\n\n //Total size of the image file (\"content length\")\n totalSize = entity.getContentLength();\n //Prepares the entity to be sent thru the post request\n httppost.setEntity(entity);\n\n // Makes server call and obtains a response\n HttpResponse response = httpclient.execute(httppost);\n //Entity received from the response\n HttpEntity r_entity = response.getEntity();\n //Prints out the size of the entity through Android's Log feature\n Log.d(TAG, String.valueOf(r_entity.getContentLength()));\n //Sets the entity content to an input stream of bytes\n InputStream is = r_entity.getContent();\n //Output stream to collect the data\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n //Reads buffer from input stream to write to the output stream and collect the image data\n //from the server\n byte[] buffer = new byte[1024];\n int len = 0;\n try {\n while ((len = is.read(buffer)) != -1) {\n baos.write(buffer, 0, len);\n }\n baos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n byte[] b = baos.toByteArray();\n //Converts the resultant byte array into an image bitmap using the BitmapFactory class\n Bitmap bmp = BitmapFactory.decodeByteArray(b, 0, b.length);\n //Adds this bitmap to the ArrayList of bitmaps\n bitmaps.add(bmp);\n //img.setImageBitmap(bmp);\n //Status code upon communicating with the server\n int statusCode = response.getStatusLine().getStatusCode();\n //200 means the response was good\n if (statusCode == 200) {\n // Server response - set this response to a string\n responseString = EntityUtils.toString(r_entity);\n } else {\n //If the response wasn't good, set the response string as unsuccesful\n responseString = \"Error occurred! Http Status Code: \"\n + statusCode;\n }\n\n } catch (ClientProtocolException e) {\n responseString = e.toString();\n } catch (IOException e) {\n responseString = e.toString();\n }\n\n return responseString;\n }",
"public void downloadImages(String orderBy){\n\n int itemsPerPage = 20;\n\n // Set Toolbar subtitle\n try {\n ((MainActivity)getActivity()).getSupportActionBar().setSubtitle(orderBy.substring(0,1).toUpperCase() + orderBy.substring(1));\n }catch (Exception e){\n Log.e(TAG, \"downloadImages: Exception \" + e );\n }\n\n // Retrofit connect\n WallpaperApi.Factory.getInstance().getWallpapers(orderBy, itemsPerPage, page,WallpaperApi.API_KEY).enqueue(new Callback<List<Wallpaper>>() {\n @Override\n public void onResponse(Call<List<Wallpaper>> call, Response<List<Wallpaper>> response) {\n /*for(Wallpaper wallpaper:response.body()){\n Log.d(TAG, wallpaper.getUser().getName());\n }*/\n imageListAdapter.addImages(response.body());\n isLoading = false;\n loadingLayout.setVisibility(View.INVISIBLE);\n loadingLayout.startAnimation(slide_down);\n EventBus.getDefault().post(EVENTBUSKEY_REFRESH_PAGER_ADAPTER);\n }\n @Override\n public void onFailure(Call<List<Wallpaper>> call, Throwable t) {\n Log.e(TAG, \"Failed \" + t.getMessage());\n isLoading = false;\n // reduce page by 1 as page failed to load\n page--;\n imageRecyclerView.setVisibility(View.GONE);\n\n Glide.with(mContext)\n .load(R.drawable.no_connection)\n .asGif()\n .into(noConnectionGif);\n connectionLost.setVisibility(View.VISIBLE);\n }\n });\n }",
"public static List getAllImgs() {\n List polovniautomobili = new ArrayList<>();\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT imgUrl FROM polovni\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ResultSet result = ps.executeQuery();\n while (result.next()) {\n String imgUrl = result.getString(\"imgUrl\");\n polovniautomobili.add(imgUrl);\n }\n\n ps.close();\n CONNECTION.close();\n }\n CONNECTION.close();\n } catch (SQLException ex) {\n Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);\n }\n return polovniautomobili;\n }",
"private void allpost() {\n final Query SortAgentPost = LikesRef.orderByChild(currentUserid);\n SortAgentPost.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()){\n\n FirebaseRecyclerOptions<UstazJB> options = new FirebaseRecyclerOptions.Builder<UstazJB>().setQuery(SortAgentPost, UstazJB.class).build();\n\n\n\n FirebaseRecyclerAdapter<UstazJB,PostsViewHolder> adapter = new FirebaseRecyclerAdapter<UstazJB, PostsViewHolder>(options)\n {\n @Override\n protected void onBindViewHolder(@NonNull final PostsViewHolder holder, final int position, @NonNull UstazJB model)\n {\n\n final String PostKey = getRef(position).getKey();\n dbUstaz.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n dbUstaz.child(PostKey).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.exists()){\n String name = dataSnapshot.child(\"name\").getValue().toString();\n String kelulusan = dataSnapshot.child(\"kelulusan\").getValue().toString();\n String image = dataSnapshot.child(\"image\").getValue().toString();\n\n holder.from.setText(name);\n holder.message.setText(kelulusan);\n\n\n //set image circle\n if (!TextUtils.isEmpty(image)) {\n Glide.with(getApplicationContext()).load(image)\n .thumbnail(0.5f)\n .crossFade()\n .transform(new CircleTransform(getApplicationContext()))\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(holder.imgProfile);\n holder.imgProfile.setColorFilter(null);\n holder.iconText.setVisibility(View.GONE);\n } else {\n holder.imgProfile.setImageResource(R.drawable.bg_circle);\n\n holder.iconText.setVisibility(View.VISIBLE);\n }\n\n holder.vl.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(getApplicationContext(),UstazProfile.class);\n intent.putExtra(\"ustazKey\",PostKey);\n startActivity(intent);\n }\n });\n\n\n holder.itemView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view)\n {\n //Untuk dpat id user\n //String PostKey = getSnapshots().get(position).getUid();\n\n // Untuk dpat Id dalam table post\n String PostKey = getSnapshots().getSnapshot(position).getKey();\n String ustazName = getSnapshots().get(position).getName();\n\n\n /* Intent click_post = new Intent(getActivity(),Agency_Details.class);\n click_post.putExtra(\"PostKey\", PostKey);\n //click_post.putExtra(\"Agencyname\", Agencyname);\n startActivity(click_post);*/\n\n\n }\n });\n\n holder.setLikeButtonStatus(PostKey);\n //holder.setDisLikeButtonStatus(PostKey);\n\n holder.iconImp.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view)\n {\n LikeChecker = true;\n\n LikesRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot)\n {\n Log.e(\"tengok\",LikeChecker.toString()+\" --> \"+PostKey);\n if(LikeChecker.equals(true))\n {\n String b = dataSnapshot.child(PostKey).child(currentUserid).getValue().toString();\n Log.e(\"tengok11\",b);\n\n LikesRef.child(PostKey).child(currentUserid).removeValue();\n LikeChecker = false;\n\n\n\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError)\n {\n\n }\n });\n }\n });\n }else{\n\n }\n\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n\n\n //Glide.with(MyAgencyPost.this).load(model.getPostImage()).into(holder.productimage);\n\n\n\n\n\n }\n\n @NonNull\n @Override\n public PostsViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i)\n {\n View view = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.message_list_row, viewGroup, false);\n PostsViewHolder viewHolder = new PostsViewHolder(view);\n\n return viewHolder;\n }\n };\n\n postList.setAdapter(adapter);\n adapter.startListening();\n\n }else {\n Toast.makeText(getApplicationContext(),\"No Favourite Ustaz Found\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n\n\n\n\n\n\n\n }",
"public Result list(Http.Request request, Long userId) {\n return request.session()\n .getOptional(AUTHORIZED)\n .map(loggedInUserId -> {\n\n Profile user = profileRepository.findById(userId);\n\n if (user != null && user.getPhotoGallery() != null) {\n return ok(Json.toJson(user.getPhotoGallery()));\n }\n\n return badRequest(ApiError.badRequest(Errors.PROFILE_NOT_FOUND));\n })\n .orElseGet(() -> unauthorized(ApiError.unauthorized())); // User is not logged in\n }",
"private void retrieveUsersLikedMedia() {\n UserService service = ServiceFactory.getInstagramUserService();\n service.getUsersLikedMedia(mAccessToken)\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Subscriber<Response<MediaResponse<ArrayList<Media>>>>() {\n @Override\n public void onCompleted() {\n }\n\n @Override\n public void onError(Throwable e) {\n Log.e(MY_USER_FRAGMENT, e.getLocalizedMessage());\n }\n\n @Override\n public void onNext(Response<MediaResponse<ArrayList<Media>>> response) {\n ResponseBody errorBody = response.errorBody();\n if (!response.isSuccessful() && errorBody != null) {\n try {\n Converter<ResponseBody, MediaResponse> errorConverter = ServiceFactory.getRetrofit().responseBodyConverter(MediaResponse.class, new Annotation[0]);\n MediaResponse mediaError = errorConverter.convert(response.errorBody());\n Toast.makeText(getContext(), mediaError.getMeta().getErrorMessage(), Toast.LENGTH_LONG).show();\n\n if (mediaError.getMeta().getErrorType().equals(getString(R.string.o_auth_error))) {\n oauthEventFired = true;\n EventBus.getDefault().post(new ExpiredOAuthEvent(true));\n }\n } catch (IOException e) {\n Log.e(MY_USER_FRAGMENT, \"There was a problem parsing the error response.\");\n }\n } else {\n showUsersLikedMedia(response.body().getData());\n }\n }\n });\n }",
"void updateProfilePhoto(int userId, String filename);",
"@Override\n public void onPeticionesRecibidasObtenidas(List<PeticionQuedada> peticionesQuedadas) {\n this.lista_peticiones= peticionesQuedadas;\n lista_peticionesRecibidas=new ArrayList<>();\n\n\n progressDialog.show();\n Log.i(\"ADAPTADOR\", \"+++++++++ LISTA PETICIONES RECIBIDAS ++++++++\\n\" + peticionesQuedadas.toString());\n\n PeticionQuedada mPeticionQuedada= peticionesQuedadas.get(peticionesQuedadas.size()-1);\n\n Log.i(\"ADAPTADOR\", \"+++++++++ OBTENIENDO FOTO ++++++++\\n\" + mPeticionQuedada.toString());\n\n presenter.obtenerFotoUsuario(mPeticionQuedada.getAutor_peticion(),mPeticionQuedada);\n\n\n }",
"@Override\n protected void queryPosts() {\n ParseQuery<Post> query = ParseQuery.getQuery(Post.class);\n query.include(Post.KEY_USER);\n query.whereEqualTo(Post.KEY_USER, ParseUser.getCurrentUser());\n Log.d(TAG, \"ParseUser\" + ParseUser.getCurrentUser().toString());\n query.setLimit(20);\n query.addDescendingOrder(Post.KEY_CREATED_AT);\n query.findInBackground(new FindCallback<Post>() {\n @Override\n public void done(List<Post> posts, ParseException e) {\n if (e != null){\n Log.e(TAG, \"Issue with getting posts\", e);\n return;\n }\n for (Post post: posts){\n Log.i(TAG, \"Post: \" + post.getDescription() + \", username: \" + post.getUser().getUsername());\n }\n allPosts.addAll(posts);\n adapter.notifyDataSetChanged();\n }\n });\n }",
"@Override\n public void done(List<Post> queryPosts, ParseException e) {\n // There is an error\n if(e != null) {\n Log.e(TAG, \"Error in getting posts\");\n return;\n }\n for(Post post : queryPosts) {\n // post.getUser() gets the Id... post.getUser().getUsername() gets the Username associated to the id of getUser in User's table\n Log.i(TAG, \"Post \" + post.getDescription() + \" username: \" + post.getUser().getUsername());\n }\n posts.addAll(queryPosts);\n adapter.notifyDataSetChanged();\n }",
"public void cargarImagenes() {\n try {\n\n variedad = sp.getString(\"variedad\", \"\");\n gDia = sp.getFloat(\"gDia\", 0);\n dia = sp.getInt(\"dia\", 0);\n idVariedad = sp.getLong(\"IdVariedad\", 0);\n idFinca = sp.getLong(\"IdFinca\",0);\n\n\n\n imageAdmin iA = new imageAdmin();\n List<fenologiaTab> fi = forGradoloc(dia, gDia, idVariedad);\n\n path = getExternalFilesDir(null) + File.separator;\n String path2 = \"/storage/emulated/0/Pictures/fenologias/\"+idFinca+\"/\";\n\n iA.getImage(path2,jpgView1, idVariedad, fi.get(0).getImagen());\n datos(txt1, fi.get(0).getDiametro_boton(), fi.get(0).getLargo_boton(), fi.get(0).getGrados_dia(), fi.get(0).getImagen());\n\n iA.getImage(path2,jpgView2, idVariedad, fi.get(1).getImagen());\n datos(txt2, fi.get(1).getDiametro_boton(), fi.get(1).getLargo_boton(), fi.get(1).getGrados_dia(), fi.get(1).getImagen());\n\n iA.getImage(path2,jpgView3, idVariedad, fi.get(2).getImagen());\n datos(txt3, fi.get(2).getDiametro_boton(), fi.get(2).getLargo_boton(), fi.get(2).getGrados_dia(), fi.get(2).getImagen());\n\n iA.getImage(path2,jpgView4, idVariedad, fi.get(3).getImagen());\n datos(txt4, fi.get(3).getDiametro_boton(), fi.get(3).getLargo_boton(), fi.get(3).getGrados_dia(), fi.get(3).getImagen());\n } catch (Exception e) {\n Toast.makeText(getApplicationContext(), \"Error \\n\" + e, Toast.LENGTH_LONG).show();\n }\n }",
"public ArrayList<Moto> getMotos()\r\n {\r\n return motos;\r\n }",
"public void uploadPic(View view) {\n Intent si=new Intent();\n si.setType(\"image/*\");\n si.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(si,1);\n\n\n }",
"public ArrayList<AshirBlogPostingHelper> getAllPots() {\n String query = \"SELECT * FROM \" + NAME_OF_TABLE;\n ArrayList<AshirBlogPostingHelper> ashirPostsList = new ArrayList<AshirBlogPostingHelper>();\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(query, null);\n if (c != null) {\n while (c.moveToNext()) {\n String post = c.getString(c.getColumnIndex(Col_2));\n try {\n byte[] getImageFromDb = c.getBlob(c.getColumnIndex(Col_3));\n AshirBlogPostingHelper postHelper = new AshirBlogPostingHelper();\n\n postHelper.setDataPost(post);\n postHelper.setImage(getImageFromDb);\n\n ashirPostsList.add(postHelper);\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n }\n\n db.close();\n return ashirPostsList;\n\n }",
"protected void queryPosts()\n {\n ParseQuery<Post> query = ParseQuery.getQuery(Post.class);\n query.include(Post.KEY_USER);\n query.whereEqualTo(Post.KEY_USER, ParseUser.getCurrentUser());\n query.setLimit(20);\n query.addDescendingOrder(Post.KEY_CREATED_AT);\n query.findInBackground(new FindCallback<Post>() {\n @Override\n public void done(List<Post> posts, ParseException e)\n {\n if(e != null)\n {\n Log.e(TAG, \"Issue with getting posts\", e);\n }\n for(Post post : posts)\n {\n Log.i(TAG, \"Post: \" + post.getDescription() + \", username\" + post.getUser().getUsername());\n }\n adapter.clear();\n allPosts.addAll(posts);\n swipeContainer.setRefreshing(false);\n adapter.notifyDataSetChanged();\n\n }\n });\n }",
"private void uploadPhoto() {\n // Get the data from an ImageView as bytes\n ImageView imageView = (ImageView)findViewById(R.id.imgView);\n imageView.setDrawingCacheEnabled(true);\n imageView.buildDrawingCache();\n Bitmap bitmap = imageView.getDrawingCache();\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos);\n byte[] data = baos.toByteArray();\n\n FirebaseStorage storage = FirebaseStorage.getInstance();\n\n // Create a storage reference from our app\n StorageReference storageRef = storage.getReferenceFromUrl(Config.FIREBASE_STORAGE_URL);\n\n // Create a reference to 'images/profile/userNodeId.jpg'\n StorageReference mountainImagesRef = storageRef.child(\"images/profile/\"+currentUser.getFireUserNodeId()+\".jpg\"); // set image name as userid.jpg which is unique\n\n UploadTask uploadTask = mountainImagesRef.putBytes(data);\n uploadTask.addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(Exception exception) {\n // Handle unsuccessful uploads\n Toast.makeText(getApplicationContext(),\"Photo upload failed!\",Toast.LENGTH_SHORT).show();\n }\n }).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n // taskSnapshot.getMetadata() contains file metadata such as size, content-type, and download URL.\n Toast.makeText(getApplicationContext(),\"Photo uploaded successfully!\",Toast.LENGTH_SHORT).show();\n }\n });\n }",
"@Override\n public String getProfilePhoto(String userId) throws Exception {\n return null;\n }",
"@Override\n public List<UserCirclePostPojo> getUserCirclePostFavouritesList(Map<String, Object> params) {\n return yourFavouritesDetaildao.getUserCirclePostFavouritesList(params);\n }",
"public static void afficherProfil(Context activityUtilisateur,\r\n\t\t\tJSONObject response, HashMap listEditText, ImageView photoProfil)\r\n\t\t\tthrows JSONException {\r\n\r\n\t\t/* Edit TExt de l'activity Utilisateur */\r\n\t\tEditText nom = (EditText) listEditText.get(\"nom\");\r\n\t\tEditText prenom = (EditText) listEditText.get(\"prenom\");\r\n\t\tEditText email = (EditText) listEditText.get(\"email\");\r\n\t\tEditText dateNaissance = (EditText) listEditText.get(\"dateDeNaissance\");\r\n\t\tEditText civilite = (EditText) listEditText.get(\"civilite\");\r\n\t\tEditText password = (EditText) listEditText.get(\"password\");\r\n\t\tEditText adresse = (EditText) listEditText.get(\"adresse\");\r\n\t\tEditText ville = (EditText) listEditText.get(\"ville\");\r\n\t\tEditText telephone = (EditText) listEditText.get(\"telephone\");\r\n\t\tEditText disponibilite = (EditText) listEditText.get(\"disponibilite\");\r\n\t\tEditText description = (EditText) listEditText.get(\"description\");\r\n\t\tEditText tarifHoraire = (EditText) listEditText.get(\"tarifHoraire\");\r\n\r\n\t\t/* On pré-remplit les champs du profil avec la réponse du serveur */\r\n\t\ttry {\r\n\t\t\tnom.setText(response.getString(\"nom\"));\r\n\t\t\tprenom.setText(response.getString(\"prenom\"));\r\n\t\t\temail.setText(response.getString(\"email\"));\r\n\t\t\tdateNaissance.setText(response.getString(\"dateDeNaissance\"));\r\n\t\t\tpassword.setText(response.getString(\"password\"));\r\n\t\t\tcivilite.setText(response.getString(\"civilite\"));\r\n\t\t\tadresse.setText(response.getString(\"adresse\"));\r\n\t\t\tville.setText(response.getString(\"ville\"));\r\n\t\t\ttelephone.setText(response.getString(\"telephone\"));\r\n\t\t\tdescription.setText(response.getString(\"descriptionPrestation\"));\r\n\t\t\ttarifHoraire.setText(response.getString(\"tarifHoraire\"));\r\n\t\t\tdisponibilite.setText(response.getString(\"disponibilite\"));\r\n\t\t} catch (JSONException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t/* Affichage de la photo à partir de l'URL */\r\n\t\tString urlPhoto = UrlServer.getServerUrl()\r\n\t\t\t\t+ response.getString(\"cheminPhoto\");\r\n\r\n\t\tgetImageFromUrl(urlPhoto, photoProfil, activityUtilisateur);\r\n\t}",
"public void OnPhotos (View View)\n {\n \tIntent intent = new Intent(this, EditPhotos.class);\n \tintent.putExtra(EXTRA_URI, uri);\n \t\tstartActivity(intent);\n }",
"@Override\n public List<Post> postList() {\n List<Post> savedPosts = (List<Post>) postRepository.findAll();\n Set<Long> userIdList = savedPosts.stream().map(Post::getUserId).collect(Collectors.toSet());\n\n User[] rateResponse = sender.getUsersByUserId(userIdList);\n\n HashMap<Long, User> userHashMap = new LinkedHashMap<>();\n for (User user : rateResponse) {\n userHashMap.put(user.getUserId(), user);\n }\n for (Post savedPost : savedPosts) {\n savedPost.setUser(userHashMap.get(savedPost.getUserId()));\n }\n return savedPosts;\n }",
"@GetMapping(\"/profilepicture\")\n public ModelAndView viewUploadImage() {\n ModelAndView model = new ModelAndView();\n Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n Users user = userService.findByUsername(authentication.getName());\n Person getPerson = personService.findOne(user.person.getIdPerson()).get();\n\n\n System.out.println(getPerson.getImage().toString());\n\n\n\n //byte[] encoded = Base64.getEncoder().encode(getPerson.getImage().getBytes());\n\n model.addObject(\"person\", personService.findOne(user.person.getIdPerson()).get());\n model.setViewName(\"upload/profileimageupload\");\n return model;\n }",
"public int getPhotos() {\n return photos;\n }",
"public Result fetch(Http.Request request, Long personalPhotoId, Boolean getThumbnail) {\n return request.session()\n .getOptional(AUTHORIZED)\n .map(userId -> {\n\n PersonalPhoto personalPhoto = personalPhotoRepository.findById(personalPhotoId);\n\n if (personalPhoto == null)\n return notFound(ApiError.notFound());\n\n if (personalPhoto.getPublic())\n return getImageResult(personalPhoto.getPhoto(), getThumbnail);\n\n Profile loggedInUser = profileRepository.findById(Long.valueOf(userId));\n Profile owner = personalPhoto.getProfile();\n\n if (loggedInUser == null) {\n return notFound(ApiError.notFound(Errors.PROFILE_NOT_FOUND));\n }\n if(AuthenticationUtil.validUser(loggedInUser, owner)) {\n return getImageResult(personalPhoto.getPhoto(), getThumbnail);\n }\n\n return forbidden(ApiError.forbidden());\n }).orElseGet(() -> unauthorized(ApiError.unauthorized()));\n }",
"public void CargarDatosUsuario(String nickname, String mail, String nombre, String pass, DataDireccion direccion, String[] rutaImagen) throws Exception;",
"@Override\n public void onComplete(@NonNull Task<PlacePhotoMetadataResponse> task) {\n try{\n PlacePhotoMetadataResponse photos = task.getResult();\n\n // Get the PlacePhotoMetadataBuffer (metadata for all of the photos).\n photoMetadataBuffer = photos.getPhotoMetadata();\n MyAdapter.photoMetadataBuffer = photos.getPhotoMetadata();\n\n Log.d(\"MainActivity\",photoMetadataBuffer.toString());\n\n Log.d(\"MainActivity\", \" Number of photos \" + photoMetadataBuffer.getCount());\n\n\n // Get the first photo in the list.\n MyAdapter.myPhotos = null;\n if(photoMetadataBuffer.getCount() == 0){\n getYelpReviews();\n MyAdapter.myPhotos = null;\n }\n else{\n myPhotos = new Bitmap[photoMetadataBuffer.getCount()];\n Log.d(\"MainActivity\", \" Number of photos \" + photoMetadataBuffer.getCount());\n\n int i = 0;\n for(i=0;i<photoMetadataBuffer.getCount();i++){\n PlacePhotoMetadata photoMetadata = photoMetadataBuffer.get(i);\n // Get a full-size bitmap for the photo.\n Task<PlacePhotoResponse> photoResponse = mGeoDataClient.getPhoto(photoMetadata);\n\n final int finalI = i;\n photoResponse.addOnCompleteListener(new OnCompleteListener<PlacePhotoResponse>() {\n @Override\n public void onComplete(@NonNull Task<PlacePhotoResponse> task) {\n PlacePhotoResponse photo = task.getResult();\n myPhotos[finalI] = photo.getBitmap();\n Log.d(\"MainActivity\",\"Completed\" + finalI);\n if(finalI == photoMetadataBuffer.getCount()-1){\n getYelpReviews();\n\n }\n }\n });\n\n MyAdapter.myPhotos = myPhotos;\n }\n }\n } catch (Exception e){\n Log.d(\"MainActivity\",\"Some Error Occured\" + e.toString());\n }\n\n }",
"@Override\n protected List<GallleryItem.GalleryItem> doInBackground(Void... voids) {\n if(mQuery == null) {\n return new FlickrFetchr().fetchRecentPhotos();\n } else {\n return new FlickrFetchr().searchPhotos(mQuery);\n }\n\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == PICK_IMAGE_REQUEST && resultCode == RESULT_OK && data != null && data.getData() != null) {\n\n //Obtiene la URI de la imagen\n Uri uri = data.getData();\n\n //Declara un InputStream\n InputStream inputStream = null;\n try {\n //Inicializa el InputStream utilizando como fuente de datos la URI de la imagen\n inputStream = getContentResolver().openInputStream(uri);\n\n //Obtiene una referencia al almacen de Firebase\n StorageReference storageReference = FirebaseStorage.getInstance().getReference();\n //Situa la referencia en la ruta donde se almacena la imagen de perfil del usuario\n storageReference = storageReference.child(\"usuarios\").child(usuario.getId()).child(\"perfil.png\");\n //Crea un objeto UploadTask, utilizado para subir la imagen al almacen de Firebase\n UploadTask uploadTask;\n //Inicializa el UploadTask haciendo una llamada al metodo putStream del objeto StorageReference\n //y pasandole por parametro el InputStream\n uploadTask = storageReference.putStream(inputStream);\n //Añade escuchadores al UploadTask que recibiran los eventos de operacion exitosa u operacion\n //fallida\n uploadTask.addOnFailureListener(new OnFailureListener() {\n /**\n * onFailure: se ejecuta si la operacion fallo\n * @param e\n */\n @Override\n public void onFailure(@NonNull Exception e) {\n //Muestra un Snackbar informando al usuaario del error\n Snackbar.make(ivFotoPerfil,\"Error al subir la imagen al servidor: \"\n + e.getMessage(),\n Snackbar.LENGTH_LONG).show();\n }\n }).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n /**\n * onSuccess: se ejecuta si la operacion se realizo exitosamente\n * @param taskSnapshot\n */\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n\n //Etiqueta para evitar que el IDE se queje de que el metodo getDownloadUrl\n //solo deberia ser visible por tests o en un ambito private\n @SuppressWarnings(\"VisibleForTests\")\n //Obtiene del TaskSnapShot la URI de la imagen\n Uri uri = taskSnapshot.getDownloadUrl();\n //Establece la URL de la imagen de usuario en el objeto Usuario con la nueva URL\n usuario.setImagenUrl(uri.toString());\n\n //Obtiene una referencia a la base de datos\n DatabaseReference databaseReference = FirebaseDatabase.getInstance().getReference();\n //Almacena en la base de datos el objeto Usuario actualizado\n databaseReference.child(\"usuarios\").child(usuario.getId()).setValue(usuario);\n\n //Carga la nueva imagen en el ImageView\n Glide.with(getApplicationContext())\n .load(uri)\n .apply(new RequestOptions().placeholder(R.drawable.iconouser).centerCrop())\n .into(ivFotoPerfil);\n }\n });\n } catch (FileNotFoundException e) {\n //Si no se encontro la imagen, se muestra un Snackbar informando del error al usuario\n //y termina la ejecucion del metodo mediante return\n Snackbar.make(ivFotoPerfil,\"No se ha podido cargar la imagen: \"\n + e.getMessage(),\n Snackbar.LENGTH_LONG).show();\n\n }\n\n }\n }",
"@Override\n public void done(List<Post> queryPosts, ParseException e) {\n // There is an error\n if(e != null) {\n Log.e(TAG, \"Error in getting posts\");\n return;\n }\n for(Post post : queryPosts) {\n // post.getUser() gets the Id... post.getUser().getUsername() gets the Username associated to the id of getUser in User's table\n Log.i(TAG, \"Post \" + post.getDescription() + \" username: \" + post.getUser().getUsername());\n }\n\n adapter.clear();\n adapter.addAll(queryPosts);\n }",
"@Override\n\t\t\t\t\t\t\tpublic void success(Collection<Photo> result) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"public static List<PNMedia> discoveryFlickrImages(String[] tags) throws Exception{\r\n\t\tif(tags != null && tags.length > 0){\r\n\t\t\tList<PNMedia> flickrPhotosList = new ArrayList<PNMedia>();\r\n\t\t\t\t\r\n\t\t\tFlickr flickr = new Flickr(flickrApiKey, flickrSharedSecret, new REST());\r\n\t\t\tFlickr.debugStream = false;\r\n\t\t\t\r\n\t\t\tSearchParameters searchParams=new SearchParameters();\r\n\t\t searchParams.setSort(SearchParameters.INTERESTINGNESS_ASC);\r\n\t\t \r\n\t\t searchParams.setTags(tags);\r\n\t\t \r\n\t\t PhotosInterface photosInterface = flickr.getPhotosInterface();\r\n\t\t PhotoList<Photo> photoList = photosInterface.search(searchParams, 10, 1); // quantidade de fotos retornadas (5)\r\n\t\t \r\n\t\t if(photoList != null){\r\n\t\t for(int i=0; i<photoList.size(); i++){\r\n\t\t Photo photo = (Photo)photoList.get(i);\r\n\t\t PNMedia media = new PNMedia();\r\n\t\t \r\n\t\t String description = photo.getDescription();\r\n\t\t if(description == null)\r\n\t\t \t description = photo.getTitle();\r\n\t\t media.setMediaURL(photo.getLargeUrl()); media.setMediaURLAux(photo.getSmallSquareUrl()); media.setMediaCaption(photo.getTitle()); media.setMediaInfo(description);\r\n\t\t flickrPhotosList.add(media);\r\n\t\t }\r\n\t\t }\r\n\t\t \r\n\t\t return flickrPhotosList;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tthrow new Exception(\"Null tags or tags is empty. \");\r\n\t\t}\r\n\t}",
"public void downloadImages(Vector<BasePin> pins) {\n\t\tVector<Long> uids = new Vector<Long>();\n\t\tBoolean b;\n\t\tfor (int i = 0; i < pins.size(); i++) {\n\t\t\tBasePin p = pins.get(i);\n\t\t\tlong uid = p.getUid();\n\t\t\t\n\t\t\tif (pins.get(i).getType() != BasePin.CATEGORY_NEWS) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tFile f = new File(context.getExternalFilesDir(null), uid + \".jpg\");\n\t\t\tif (f.exists()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tuids.add(p.getUid());\n\t\t}\n\t\t\n\t\tif (uids.size() > 0) {\n\t\t\tLongDownloadNewsImages d = new LongDownloadNewsImages();\n\t\t\td.execute(uids);\n\t\t}\n\t}",
"public void fetchData()\n {\n Call<InstagramDataSearch> call911 = RestClient.getRetrofitService().getSelfMedia(access_token);\n call911.enqueue(new Callback<InstagramDataSearch>()\n {\n @Override\n public void onResponse(Call<InstagramDataSearch> call, Response<InstagramDataSearch> response)\n {\n Log.d(\"onResponse\", \"on response\" + response.raw());\n if (response.body() != null)\n {\n Log.d(\"onResponse\", \"body non null, nb found=\" + response.body().getData().length);\n if (response.body().getData().length == 0)\n Toast.makeText(activity_own_flow.this, \"No post found\", Toast.LENGTH_LONG).show();\n for(int i = 0; i < response.body().getData().length; i++)\n {\n Log.d(\"\", response.body().getData()[i].getImages().getStandard_resolution().getUrl());\n data.add(response.body().getData()[i].getImages().getStandard_resolution().getUrl());\n }\n ownFlowAdapter.notifyDataSetChanged();\n }\n }\n @Override\n public void onFailure(Call<InstagramDataSearch> call, Throwable t)\n {\n Toast.makeText(getApplicationContext(), t.toString(), Toast.LENGTH_LONG).show();\n }\n });\n }",
"public void creaRutaImgPerfil(){\n servletContext=(ServletContext) contexto.getExternalContext().getContext();\n String ruta=\"\";\n //Ruta real hasta la carpeta de uploads\n ruta=servletContext.getRealPath(\"/upload/\");\n \n //Concatenamiento de directorios internos\n ruta+=File.separatorChar+\"img\"+File.separatorChar+\"users\"+File.separatorChar;\n \n //Asignacion de la ruta creada\n this.rutaImgPerfil=ruta;\n }",
"public RealmResults<PhotoGalleryModel> getPhotos( ) {\n return realm.where(PhotoGalleryModel.class).findAll();\n\n }",
"@GetMapping(\"/feed\")\n private ResponseEntity<List<Post>> getPosts() {\n User user = getCurrentUser();\n logger.info(\"Not null \" + (user == null));\n List<Post> posts = postService.findAllByUser(user);\n return new ResponseEntity<>(posts, HttpStatus.OK);\n }",
"@Override\n public void addLovePhoto(User user, Image image) {\n user.addLoveImage(image);\n }",
"private void getImagesList()\n {\n try\n {\n final LoadFragment load = new LoadFragment();\n\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"arrayList\", list);\n load.setArguments(bundle);\n new Handler().post(new Runnable()\n {\n public void run()\n {\n getFragmentManager().beginTransaction().replace(R.id.fragment_container,\n load).addToBackStack(null).commit();\n }\n });\n }\n catch (Exception e)\n {\n Log.w(\"getImagesList\", \"uploadToCloud.uploadTask:failure\", e);\n Toast.makeText(getActivity(), \"Error Occurred: \"\n + e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n fotoReferencia.getDownloadUrl()\n .addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n Mensaje mensajeFoto = new Mensaje\n (nombreUsuario,\n \"Ha enviado una foto\",\n FirebaseAuth.getInstance().getCurrentUser()\n .getPhotoUrl().toString(),\n \"2\",\n DateFormat.getTimeInstance().format\n (Timestamp.now().toDate()),\n uri.toString(),\n idUsuario,\n idVeterinario);\n db.collection(\"chat\")\n .document(idChat)\n .collection(\"mensajes\")\n .add(mensajeFoto);\n }\n });\n }",
"@Override\n\t\tpublic List<String> getPhotos() throws RemoteException {\n\t\t\treturn null;\n\t\t}",
"List<Post> getPostForUser(String email) throws Exception;",
"public static File[] getUserImages(String username) {\n File[] userFiles = ImageFactory.getFilePaths(username);\n\n String[] userImageURLs = new String[userFiles.length];\n for(int i = 0; i < userFiles.length; i++) {\n userImageURLs[i] = userFiles[i].toURI().toString();\n }\n\n return userFiles;\n }",
"private void postImage(String fid, final String fileName) {\n\t\tJSONObject jsObject = new JSONObject();\n\t\tSharedPreferences myPrefs = getActivity().getSharedPreferences(\"myPrefs\",getActivity().MODE_PRIVATE);\n\t\ttry {\n\n\t\t\tjsObject.put(\"field_image\", new JSONObject().put(\"und\", new JSONArray().put(0, new JSONObject().put(\"fid\", fid))));\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcd = new ConnectionDetector(getActivity());\n\n\t\t// Check if Internet present\n\t\tif (!cd.isConnectingToInternet()) {\n\t\t\t// Internet Connection is not present\n\t\t\talert.showAlertDialog(getActivity(),\n\t\t\t\t\t\"Internet Connection Error\",\n\t\t\t\t\t\"Please connect to working Internet connection\", false);\n\t\t\t// stop executing code by return\n\t\t\treturn;\n\t\t}else{\n\t\t\tnew UpdateLike(jsObject,myPrefs){\n\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\tAppUtil.initializeProgressDialog(getActivity(), \"Finalizing post...\", progressDialog);\n\t\t\t\t};\n\t\t\t\tprotected void onPostExecute(String result) {\n\t\t\t\t\tAppUtil.cancelProgressDialog();\n\t\t\t\t\tinfalteImageOnCoverPhoto(fileName);\n\t\t\t\t};\n\t\t\t}.execute(\"http://www1.kitchengardens.in/svc/node/\"+garden_node_id);\n\t\t}\n\t}",
"private List<Owner> updatePhotos(List<Task> phoneTasks) throws Exception {\n List<Owner> result = new ArrayList<>();\n /*List<Task> filterTasks = adTasks.stream()\n .filter(el -> result.stream().noneMatch(e -> e.getId().equals(el.getId())))\n .collect(Collectors.toList());*/\n\n List<Task> resultList = RequestManager.execute(token, phoneTasks);\n result.addAll(OlxParser.parsePhones(resultList));\n\n return result;\n }",
"@Override\n\tpublic List<URL> getPhotos() {\n\t\timages.clear(); //vide la liste des images\n\t\t\n\t\t\n\t\tList<URL> allImagesURL = new ArrayList<URL>();\n\t\t\n\t\t/* On initialise la liste de toutes les images */\n\t\tList<String> filelocations = null;\n\t\t\n\t\t/*Nous allons retrouver les fichiers images présent dans le répertoire et tous ses sous-répertoires*/\n\t\tPath start = Paths.get(path); //détermine le point de départ \n\t\ttry (Stream<Path> stream = Files.walk(start, Integer.MAX_VALUE)) {\n\t\t filelocations = stream\n\t\t .map(String::valueOf) //transforme les Path en string\n\t\t .filter(filename -> filename.contains(\".jpg\") || filename.contains(\".png\")) //ne prend que les images jpg et png\n\t\t .collect(Collectors.toList());\n\t\t \n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t/* Pour chaque fichier retrouvé, on essaie de retrouver son chemin absolu pour le stocker dans le allImagesURL */\n\t\tfor (String filelocation : filelocations) {\n\t\t\tString relativeLocation = filelocation.replace(path+\"/\", \"\"); // Pour ne pas partir de src mais de la classe courante\n\t\t\trelativeLocation = relativeLocation.replace(windowspath+\"\\\\\", \"\");\n\t\t\tallImagesURL.add(this.getClass().getResource(relativeLocation)); //on ajoute le chemin absolu dans la liste\n\t\t}\n\t\t\n\t\t\n\t\treturn allImagesURL; //on retourne la liste\n\t}"
] | [
"0.7045853",
"0.6280929",
"0.6265338",
"0.59744066",
"0.5932783",
"0.59161925",
"0.58809155",
"0.58704776",
"0.582118",
"0.5812004",
"0.57804376",
"0.5741388",
"0.57255834",
"0.5687445",
"0.566515",
"0.5648864",
"0.56446415",
"0.5624881",
"0.5581476",
"0.5571255",
"0.5556334",
"0.5531059",
"0.5496211",
"0.5491593",
"0.5455616",
"0.54269725",
"0.54184324",
"0.54110014",
"0.5395816",
"0.5373707",
"0.5370814",
"0.5365651",
"0.5360662",
"0.5357993",
"0.53551996",
"0.5352884",
"0.5336428",
"0.5324315",
"0.53107667",
"0.5310432",
"0.53098994",
"0.5309486",
"0.530691",
"0.5306305",
"0.53055483",
"0.5280918",
"0.5278964",
"0.5266498",
"0.5259241",
"0.52451116",
"0.5237634",
"0.5233138",
"0.5232874",
"0.5232202",
"0.5225388",
"0.52222496",
"0.52192974",
"0.52188665",
"0.52065766",
"0.5200504",
"0.51928174",
"0.517826",
"0.5175602",
"0.5174849",
"0.5173742",
"0.51687586",
"0.5164028",
"0.5162365",
"0.51611847",
"0.5160196",
"0.5160178",
"0.5149324",
"0.5142942",
"0.51305944",
"0.5129431",
"0.512543",
"0.5122227",
"0.5118758",
"0.51178867",
"0.511697",
"0.5115691",
"0.51042014",
"0.5100906",
"0.5096306",
"0.5095209",
"0.5090942",
"0.50839937",
"0.50788754",
"0.50751746",
"0.50739574",
"0.5073134",
"0.5067977",
"0.5062809",
"0.5060741",
"0.50604266",
"0.50602615",
"0.50592816",
"0.5058716",
"0.50583315",
"0.50552773"
] | 0.6117862 | 3 |
Limpando Lista de postagens | @Override
public void onDataChange(@NonNull DataSnapshot snapshot) {
listaDePostagens.clear();
listaDeUrl.clear();
// Configurar tamanho do grid
// recuperamos o tamanho da tela do usuario e dividimos por 3
int tamanhoGrid = getResources().getDisplayMetrics().widthPixels;
int tamanhoGridPadding = tamanhoGrid - 20;
int tamanhoImagem = tamanhoGridPadding/3;
gridPerfilAmigo.setColumnWidth(tamanhoImagem);
gridPerfilAmigo.setVerticalSpacing(2);
gridPerfilAmigo.setHorizontalSpacing(2);
for (DataSnapshot ds: snapshot.getChildren()){
Postagem postagem = ds.getValue(Postagem.class);
listaDePostagens.add(postagem);
listaDeUrl.add(postagem.getFoto());
}
tvPublicacao.setText(String.valueOf(listaDePostagens.size()));
// Configurando Adapter para o GridView
adapterGridAmigo = new AdapterGridAmigo(getApplicationContext(), R.layout.adapter_grid, listaDeUrl);
gridPerfilAmigo.setAdapter(adapterGridAmigo);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<PostInfo> getPostList();",
"public TableModelPosto(ArrayList<Posto> listPostos) {\n postos = listPostos;\n }",
"public Post()\n {\n nachrichten = new ArrayList<Nachricht>();\n }",
"public void initNegPosts(){\n\t\t\tdbAdapter = new DBAdapter(getActivity());\n\t\t\tdbAdapter.open();\n\t\t\tCursor c = dbAdapter.getNegPosts();\n\t\t\tSimpleCursorAdapter cursorAdapter = new SimpleCursorAdapter(\n\t\t\t\t\tgetActivity(), R.layout.postitem, c, new String[] {\n\t\t\t\t\t\t\t\"titel\", \"dato\", \"beloeb\" }, new int[] { R.id.titel,\n\t\t\t\t\t\t\tR.id.dato, R.id.beloeb});\n\t\t\tsetListAdapter(cursorAdapter);\n\t\t}",
"@Override\n\tpublic List<Post> list() {\n\t\treturn null;\n\t}",
"public void setPosts(List<Post> posts){\n this.posts = posts;\n }",
"public ArrayList<Posto> getPostos() {\n return postos;\n }",
"public void initAllPosts(){\n\t\tdbAdapter = new DBAdapter(getActivity());\n\t\tdbAdapter.open();\n\t\tCursor c = dbAdapter.getAllPosts();\n\t\tSimpleCursorAdapter cursorAdapter = new SimpleCursorAdapter(\n\t\t\t\tgetActivity(), R.layout.postitem, c, new String[] {\n\t\t\t\t\t\t\"titel\", \"dato\", \"beloeb\" }, new int[] { R.id.titel,\n\t\t\t\t\t\tR.id.dato, R.id.beloeb});\n\t\tsetListAdapter(cursorAdapter);\n\t\t\n\t}",
"public List<BlogPost> getPosts();",
"public void initPosPosts(){\n\t\tdbAdapter = new DBAdapter(getActivity());\n\t\tdbAdapter.open();\n\t\tCursor c = dbAdapter.getPosPosts();\n\t\tSimpleCursorAdapter cursorAdapter = new SimpleCursorAdapter(\n\t\t\t\tgetActivity(), R.layout.postitem, c, new String[] {\n\t\t\t\t\t\t\"titel\", \"dato\", \"beloeb\" }, new int[] { R.id.titel,\n\t\t\t\t\t\tR.id.dato, R.id.beloeb});\n\t\tsetListAdapter(cursorAdapter);\n\t}",
"@Override\n public List<Post> postList() {\n List<Post> savedPosts = (List<Post>) postRepository.findAll();\n Set<Long> userIdList = savedPosts.stream().map(Post::getUserId).collect(Collectors.toSet());\n\n User[] rateResponse = sender.getUsersByUserId(userIdList);\n\n HashMap<Long, User> userHashMap = new LinkedHashMap<>();\n for (User user : rateResponse) {\n userHashMap.put(user.getUserId(), user);\n }\n for (Post savedPost : savedPosts) {\n savedPost.setUser(userHashMap.get(savedPost.getUserId()));\n }\n return savedPosts;\n }",
"public List<Post> getPosts(){return this.posts;}",
"@Override\n public void modifyPost(List<Post> posts, int type) {\n\n\t}",
"private void initializeData() {\n posts = new ArrayList<>();\n posts.add(new Posts(\"Emma Wilson\", \"23 years old\", R.drawable.logo));\n posts.add(new Posts(\"Lavery Maiss\", \"25 years old\", R.drawable.star));\n posts.add(new Posts(\"Lillie Watts\", \"35 years old\", R.drawable.profile));\n }",
"private void assignPosts(List<Post> posts) {\n\t\ttextPosts = Lists.newArrayList();\n\t\tphotoPosts = Lists.newArrayList();\n\t\tvideoPosts = Lists.newArrayList();\n\t\tfor (Post post : posts) {\n\t\t\tif (post instanceof TextPost) {\n\t\t\t\ttextPosts.add((TextPost)post);\n\t\t\t} else if (post instanceof PhotoPost) {\n\t\t\t\tphotoPosts.add((PhotoPost)post);\n\t\t\t} else if (post instanceof VideoPost) {\n\t\t\t\tvideoPosts.add((VideoPost)post);\n\t\t\t}\n\t\t}\n\t}",
"List<Post> getAllPost() throws Exception;",
"private List<Text> getPosts() {\n\t\tList<Text> result = new ArrayList<>();\n\t\tObservableList<Post> postList = PostDAO.searchPosts(String.valueOf(friendsID));\n\t\tfor(Post post : postList) {\n\t\t\tString postTime = post.getPostTime();\n\t\t\tString content = post.getPostContent();\n\t\t\tString editTime = post.getEditTime();\n\t\t\tString toPost;\n\t\t\tif(editTime != null) {\n\t\t\t\ttoPost = \"Post on \" + postTime + \" Last edit on \" + editTime + \"\\n\" + content + \"\\n\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttoPost = \"Post on \" + postTime + \"\\n\" + content + \"\\n\";\n\t\t\t}\n\t\t\tText text = new Text(toPost);\n\t\t\tresult.add(text);\n\t\t}\n\t\treturn result;\n\t}",
"public VentanaListaPosts(List<Post> posts, List<Post> posts2) {\n\t \n\t\tsetSize(620, 480);\n\t\tsetTitle(\"Lista de posts\");\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tsetResizable(false);\n\t\tgetContentPane().setLayout(null);\n\t\tsetLocationRelativeTo(null);\n\t\t\n\t\ttextBuscarPost = new JTextField();\n\t\ttextBuscarPost.setBounds(23, 11, 397, 20);\n new TextPrompt(\"Introduce usuario para buscar sus posts\", textBuscarPost);\n getContentPane().add(textBuscarPost);\n \n JButton btnBuscar = new JButton(\"Buscar\");\n btnBuscar.setBounds(467, 11, 100, 24);\n getContentPane().add(btnBuscar);\n\t\t\n\t\tJPanel panelListaPost= new JPanel();\n\t\tpanelListaPost.setBounds(10, 46, 594, 350);\n getContentPane().add(panelListaPost);\n \n JTextArea textoPost = new JTextArea();\n textoPost.setColumns(50);\n textoPost.setRows(20);\n textoPost.setEditable(false);\n \n Font font1 = new Font(\"Arial\", Font.ITALIC, 12);\n textoPost.setFont(font1);\n textoPost.setBounds(10, 46, 594, 229);\n scroll = new JScrollPane(textoPost);\n\t\tscroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tpanelListaPost.add(scroll);\n\t\t\n\t\tJButton btnPisos = new JButton(\"Pisos\");\n\t\tbtnPisos.setBounds(20, 417, 89, 23);\n\t\tgetContentPane().add(btnPisos);\n\t\t\n\t\tJButton btnInicio = new JButton(\"Inicio\");\n\t\tbtnInicio.setBounds(208, 417, 89, 23);\n\t\tgetContentPane().add(btnInicio);\n\t\t\n\t\t\n\t\tif(posts2.size() > 0) {\n\t\t\ttextoPost.setText(\"Titulo: \" + posts2.get(0).getTitulo().toUpperCase() + \"\\n\" + \"Descripción: \" + posts2.get(0).getContenido() +\"\\n\" + \"Autor: \" + posts2.get(0).getAutor() + \"\\n\" + \"Likes: \" + posts2.get(0).getLikes() +\"\\n\\n\");\n\t\t\tfor(int i = 1; i < posts2.size(); i++) {\n\t\t\t\ttextoPost.append(\"Titulo: \" + posts2.get(i).getTitulo().toUpperCase() + \"\\n\" + \"Descripción: \" + posts2.get(i).getContenido() +\"\\n\" + \"Autor: \" + posts2.get(i).getAutor() + \"\\n\" + \"Likes: \" + posts2.get(i).getLikes() +\"\\n\\n\");\n\t\t\t}\n\t\t}else {\n \tscroll.setVisible(false);\n \tpanelListaPost.setVisible(false);\n \tJLabel labelNoPost = new JLabel(\"No se encontró ningun post.\");\n \tlabelNoPost.setBounds(200, 50, 200, 50);\n \tgetContentPane().add(labelNoPost);\n }\n\t\tbtnPisos.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tList<Piso> pisos = new ArrayList<Piso>();\n\t\t\t\tpisos = Controller.getInstance().getPisos();\n\t\t\t\tnew VentanaListaPisos(pisos, pisos);\n\t\t\t\tdispose();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnInicio.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tList<Post> posts = new ArrayList<Post>();\n\t\t\t\tposts = Controller.getInstance().getPost();\n\t\t\t\tnew VentanaListaPosts(posts, posts);\n\t\t\t\tdispose();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnBuscar.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n \t\tnew VentanaListaPosts(posts, m.buscarPosts(textBuscarPost.getText(), posts));\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\ttextoPost.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\t@Override\n \t public void mousePressed(MouseEvent e) {\n\t\t\t\tif(e.getClickCount() == 2) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tint line = textoPost.getLineOfOffset( textoPost.getCaretPosition());\n\t\t\t\t\t\tint start = textoPost.getLineStartOffset( line );\n\t\t\t\t\t\tint end = textoPost.getLineEndOffset( line );\n\t\t\t\t\t\tString text = textoPost.getDocument().getText(start, end - start).toLowerCase();\n\t\t\t\t\t\tif(text.contains(\"titulo\")) {\n\t\t\t\t\t\t\tnew VentanaInfoPost(m.obtenerPost(text, posts));\n\t\t\t\t\t\t\tdispose();\n\t\t\t\t\t\t}else if(text.contains(\"descripción\")) {\n\t\t\t\t\t\t\tline = line - 1;\n\t\t\t\t\t\t\tstart = textoPost.getLineStartOffset( line );\n\t\t\t\t\t\t\tend = textoPost.getLineEndOffset( line );\n\t\t\t\t\t\t\ttext = textoPost.getDocument().getText(start, end - start).toLowerCase();\n\t\t\t\t\t\t\tnew VentanaInfoPost(m.obtenerPost(text, posts));\n\t\t\t\t\t\t\tdispose();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else if(text.contains(\"autor\")) {\n\t\t\t\t\t\t\tline = line - 2;\n\t\t\t\t\t\t\tstart = textoPost.getLineStartOffset( line );\n\t\t\t\t\t\t\tend = textoPost.getLineEndOffset( line );\n\t\t\t\t\t\t\ttext = textoPost.getDocument().getText(start, end - start).toLowerCase();\n\t\t\t\t\t\t\tnew VentanaInfoPost(m.obtenerPost(text, posts));\n\t\t\t\t\t\t\tdispose();\n\t\t\t\t\t\t}else if(text.contains(\"likes\")) {\n\t\t\t\t\t\t\tline = line - 3;\n\t\t\t\t\t\t\tstart = textoPost.getLineStartOffset( line );\n\t\t\t\t\t\t\tend = textoPost.getLineEndOffset( line );\n\t\t\t\t\t\t\ttext = textoPost.getDocument().getText(start, end - start).toLowerCase();\n\t\t\t\t\t\t\tnew VentanaInfoPost(m.obtenerPost(text, posts));\n\t\t\t\t\t\t\tdispose();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (BadLocationException e1) {\n\t\t\t\t\t\t\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tsetVisible(true);\n\t\t\n\t}",
"private void loadPosts(final List<AnipalAbstractPost> posts){\n Query q1 = FirebaseDatabase.getInstance().getReference(\"UserPosts\")\n .child(MainActivity.currentUser.getUserUUID()).orderByChild(\"timestamp\")\n .limitToLast(5);\n q1.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n AnipalAbstractPost post ;\n for(DataSnapshot snap : dataSnapshot.getChildren()){\n if(snap.hasChild(\"photoURL\")){\n // Photo post\n post = snap.getValue(AnipalPhotoPost.class);\n post.findUser(post.getUserUUID());\n }else{\n // Donation post\n post = snap.getValue(AnipalDonationPost.class);\n post.findUser(post.getUserUUID());\n }\n posts.add(post);\n }\n\n Collections.reverse(posts);\n postAdapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n }",
"public ArrayList<String> loadPosts() {\n\t\tSAVE_FILE = PUSH_POSTS;\n\t\tArrayList<String> posts = loadIds();\n\t\treturn posts;\n\t}",
"public void setupArticlesList();",
"public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }",
"@Override\n public void done(List<Post> posts, ParseException e) {\n if (e != null) {\n Log.e(TAG, \"Issue with getting posts\", e);\n return;\n }\n\n for (Post post : posts) {\n Log.i(TAG, \"Post: \" + post.getDescription() + \", username: \" + post.getUser().getUsername());\n }\n adapter.clear();\n allPosts.addAll(posts);\n adapter.notifyDataSetChanged();\n }",
"@Override\n public void done(List<Post> posts, ParseException e) {\n if (e != null) {\n Log.e(TAG, \"issue with getting posts\", e);\n return;\n }\n //iterate through each post and log each of them\n for (Post post : posts) {\n Log.i(TAG, \"Post: \" + post.getDescription() + \" \" + post.getUser().getUsername());\n }\n //clear here before adding posts\n mAllPosts.clear();\n mAllPosts.addAll(posts);\n mAdapter.notifyDataSetChanged();\n mSwipeContainer.setRefreshing(false);\n }",
"@Override\n public void done(List<Post> posts, ParseException e) {\n if (e != null) {\n Log.e(TAG, \"issue with getting posts\", e);\n return;\n }\n //iterate through each post and log each of them\n for (Post post : posts) {\n Log.i(TAG, \"Post: \" + post.getDescription() + \" \" + post.getUser().getUsername());\n }\n //clear here before adding posts\n mAllPosts.clear();\n mAllPosts.addAll(posts);\n mAdapter.notifyDataSetChanged();\n mSwipeContainer.setRefreshing(false);\n }",
"private static List<Article> createArticleList() {\n List<Article> articles = new ArrayList();\n articles.add(new Article(1l, \"Ball\", new Double(5.5), Type.TOY));\n articles.add(new Article(2l, \"Hammer\", new Double(250.0), Type.TOOL));\n articles.add(new Article(3l, \"Doll\", new Double(12.75), Type.TOY));\n return articles;\n }",
"public List<Blog> list();",
"@Override\n\tpublic List<Post> getNewPosts(int number) throws Exception {\n\t\treturn null;\n\t}",
"public myList<T> my_postorder();",
"public ListaDuplamenteEncadeada(){\r\n\t\t\r\n\t}",
"private LinkedList<NewsDetail> populateList(NewsResultsResponse resultsResponse) {\n LinkedList<NewsDetail> newsDetails = new LinkedList<>();\n for (int i=0; i<resultsResponse.getPosts().size(); i++) {\n newsDetails.add(new NewsDetail( i+1,\n resultsResponse.getPosts().get(i).getTitle(),\n resultsResponse.getPosts().get(i).getThread().getMainImage(),\n resultsResponse.getPosts().get(i).getText(),\n dataUpdateChecker.getFormattedDate(resultsResponse.getPosts().get(i).getPublished())));\n }\n return newsDetails;\n }",
"protected void populateFeed() {\n ParseQuery<Post> query = ParseQuery.getQuery(Post.class);\n query.include(Post.KEY_USER);\n query.addDescendingOrder(Post.CREATED_AT);\n query.setLimit(20);\n query.findInBackground(new FindCallback<Post>() {\n // Result of the call to Parse\n @Override\n public void done(List<Post> queryPosts, ParseException e) {\n // There is an error\n if(e != null) {\n Log.e(TAG, \"Error in getting posts\");\n return;\n }\n for(Post post : queryPosts) {\n // post.getUser() gets the Id... post.getUser().getUsername() gets the Username associated to the id of getUser in User's table\n Log.i(TAG, \"Post \" + post.getDescription() + \" username: \" + post.getUser().getUsername());\n }\n posts.addAll(queryPosts);\n adapter.notifyDataSetChanged();\n }\n });\n }",
"public void populateList() {\n }",
"public Iterable<Post> listAllPosts();",
"private static List<Post> parseResults(ResultSet results) throws SQLException {\r\n\tList<Post> postList = new LinkedList<Post>();\r\n\r\n\twhile (results.next()) {\r\n\t Post p = new Post();\r\n\r\n\t p.id = results.getInt(\"id\");\r\n\t p.author = results.getString(\"author\");\r\n\t \r\n\t long date = results.getInt(\"date\") * 1000L; // milliseconds\r\n\t p.date = new Date(date);\r\n\t \r\n\t p.isPublic = results.getInt(\"isPublic\") == 1;\r\n\t p.setContent(results.getString(\"content\"));\r\n\r\n\t postList.add(p);\r\n\t}\r\n\r\n\treturn postList;\r\n }",
"public abstract ObjectId[] prenota(List<T> listToAdd, ObjectId idVolo) throws FlightNotFoundException, SeatsSoldOutException;",
"private Posts() {\n }",
"@Override\n public void done(List<Post> posts, ParseException e) {\n if (e != null) {\n Log.e(TAG, \"Issue with getting posts\", e);\n return;\n }\n\n if (posts.size() == 0) {\n Toast.makeText(getContext(), \"You've reached the end of all posts!\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n for (Post post : posts) {\n Log.i(TAG, \"Post: \" + post.getDescription() + \", username: \" + post.getUser().getUsername());\n }\n allPosts.addAll(posts);\n adapter.notifyDataSetChanged();\n }",
"private void initList() {\n\n }",
"public List getUnfinishedPostList(Object obj) throws SQLException {\n\t\treturn dao.getUnfinishedPostList(obj);\n\t}",
"private void readPosts() {\n FirebaseDatabase.getInstance().getReference().child(\"Posts\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n postList.clear();\n for(DataSnapshot dataSnapshot:snapshot.getChildren())\n {\n Post post = dataSnapshot.getValue(Post.class);\n for(String id : followingList)\n {\n if(post.getPublisher().equals(id))\n {\n postList.add(post);\n }\n }\n }\n postAdapter.notifyDataSetChanged();\n\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }",
"private static List<Billetes> generarBilletes(String fecha, Pasajero p){\n\t\tList<Billetes> billetes = new ArrayList<>();\n\t\t\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tBilletes billete = new Billetes();\n\t\t\tbillete.setId(i);\n\t\t\tbillete.setFecha(fecha);\n\t\t\t\n\t\t\tchar c1 = (char)new Random().nextInt(50);\n\t\t\tchar c2 = (char)new Random().nextInt(50);\n\t\t\t\n\t\t\t/*\n\t\t\t * \n\t\t\t */\n\t\t\tbillete.setAsiento(\"\" + c1 + c2 + new Random().nextInt(100) + new Random().nextInt(50));\n\t\t\tbillete.setPasajero(p); \n\t\t\tbillete.setVuelo(p.getVuelos().get(new Random().nextInt(p.getVuelos().size())));\n\t\t\t\n\t\t\tbilletes.add(billete);\n\t\t}\n\t\t\n\t\treturn billetes;\n\t}",
"public void showPosts() {\n\t\tpostsList.getItems().clear();\n\t\tList<Text> toPost = getPosts();\n\t\tfor(Text text : toPost) {\n\t\t\tSystem.out.println(text);\n\t\t\ttext.wrappingWidthProperty().bind(postsList.widthProperty());\n\t\t\tpostsList.getItems().add(text);\n\t\t}\n\t}",
"private void restList() {\n for (Processus tmp : listOfProcess) {\n tmp.resetProcess();\n }\n }",
"@Override\r\n\tpublic List<Post> latastPosts(int bankuaihao) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tList<Post> list=new ArrayList<Post>();\r\n\t\treturn postDao.latastPosts(bankuaihao);\r\n\t\t\r\n\t}",
"public ArrayList<AshirBlogPostingHelper> getAllPots() {\n String query = \"SELECT * FROM \" + NAME_OF_TABLE;\n ArrayList<AshirBlogPostingHelper> ashirPostsList = new ArrayList<AshirBlogPostingHelper>();\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(query, null);\n if (c != null) {\n while (c.moveToNext()) {\n String post = c.getString(c.getColumnIndex(Col_2));\n try {\n byte[] getImageFromDb = c.getBlob(c.getColumnIndex(Col_3));\n AshirBlogPostingHelper postHelper = new AshirBlogPostingHelper();\n\n postHelper.setDataPost(post);\n postHelper.setImage(getImageFromDb);\n\n ashirPostsList.add(postHelper);\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n }\n\n db.close();\n return ashirPostsList;\n\n }",
"protected <ELEMENT> List<ELEMENT> newReferrerList() { // overriding to import\r\n return new ArrayList<ELEMENT>();\r\n }",
"private void fetchPostos() {\n //CRIA UMA REFERENCIA PARA A COLEÇÃO DE POSTOS\n\n FirebaseFirestore.getInstance().collection(\"/postos\")\n .addSnapshotListener(new EventListener<QuerySnapshot>() {\n @Override\n public void onEvent(@Nullable QuerySnapshot queryDocumentSnapshots, @Nullable FirebaseFirestoreException e) {\n //VERIFICANDO SE ENCONTROU ALGUMA EXCEÇÃO CAPAZ DE IMPEDIR A EXECUÇÃO, CASO ENCONTRE, PARE A APLICAÇÃO\n if (e != null) {\n Log.e(\"TESTE\", \"Erro: \", e);\n return;\n }\n //REFERÊNCIA PARA TODOS POSTOS DA BASE\n List<DocumentSnapshot> documentos = queryDocumentSnapshots.getDocuments();\n\n\n for (DocumentSnapshot doc : documentos) {\n Posto posto = doc.toObject(Posto.class);\n int cont = 0;\n for (int i = 0; i < denunciasNaBase.size(); i++) {\n\n if (denunciasNaBase.get(i).getPosto().equalsIgnoreCase(posto.getCnpj())) {\n Log.d(\"TESTE\", \"Posto \" + posto.getCnpj() + \"denuncia \" + denunciasNaBase.get(i).getPosto());\n cont++;\n }\n }\n if (cont > 0) {\n adapter.add(new DenunciaItem(posto, cont));\n }\n }\n\n }\n });\n }",
"public ListaEtiquetas() {\n this.listaEtiquetas = new ArrayList<>();\n }",
"private static ArrayList<Posts> extractFeatureFromJson(String postJSON) {\n if (TextUtils.isEmpty(postJSON)) {\n\n //Toast.makeText(this , \"null json string\", Toast.LENGTH_SHORT).show();\n return null;\n }\n ArrayList<Posts> posts = new ArrayList<>();\n\n try {\n JSONObject baseJsonResponse = new JSONObject(postJSON);\n JSONArray feed = baseJsonResponse.getJSONArray(\"posts\");\n\n JSONObject c = feed.getJSONObject(0);\n JSONObject insta = c.getJSONObject(\"instagram\");\n JSONArray profile = insta.getJSONArray(\"profile_posts\");\n\n JSONObject f = profile.getJSONObject(0);\n\n JSONObject entry =f.getJSONObject(\"entry_data\");\n JSONArray ProfilePage = entry.getJSONArray(\"ProfilePage\");\n JSONObject d= ProfilePage.getJSONObject(0);\n JSONObject user = d.getJSONObject(\"user\");\n\n JSONObject media = user.getJSONObject(\"media\");\n JSONArray nodes = media.getJSONArray(\"nodes\");\n\n for(int i=0;i<nodes.length();i++)\n {\n JSONObject ca = nodes.getJSONObject(i);\n\n\n String text= ca.getString(\"caption\");\n String time = ca.getString(\"date\");\n posts.add(new Posts(time, text));\n\n }\n\n } catch (JSONException e) {\n Log.e(LOG_TAG, \"Problem parsing the posts JSON results\", e);\n }\n return posts;\n }",
"public List<TagPregunta> getTagsPopulares(int limit);",
"public void setSearchOperation(List<Post> newList)\n {\n notifyDataSetChanged();\n }",
"private List<Node<T>> auxiliarRecorridoPost(Node<T> nodo, List<Node<T>> lista) {\r\n\t\tif (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> hijos = nodo.getChildren();// Hijos\r\n\t\t\tfor (int i = 1; i <= hijos.size(); i++) {\r\n\t\t\t\tauxiliarRecorridoPost(hijos.get(i), lista);// Recursividad\r\n\t\t\t}\r\n\t\t}\r\n\t\tlista.add(nodo);// Aņade a la lista\r\n\t\treturn lista;// Devuelve lista\r\n\t}",
"private void prepareTheList()\n {\n int count = 0;\n for (String imageName : imageNames)\n {\n RecyclerUtils pu = new RecyclerUtils(imageName, imageDescription[count] ,images[count]);\n recyclerUtilsList.add(pu);\n count++;\n }\n }",
"public static ArrayList<Post> ParsePosts(JSONObject jsonTotalObject)\n {\n ArrayList<Post> posts = new ArrayList<>();\n try\n {\n JSONArray postArray = jsonTotalObject.getJSONArray(\"posts\");\n for(int i = 0 ;i<postArray.length();i++)\n {\n JSONObject object = postArray.getJSONObject(i);\n Post post = new Post();\n // Notice,use \"opt\" instead of \"get\" to avoid null value exception\n post.setTitle(object.optString(\"title\"));\n post.setId(object.optInt(\"id\"));\n post.setThumbnailUrl(Settings.DEFAULT_THUMBNAIL_URL);\n post.setUrl(object.optString(\"url\"));\n // Set to zero if there's no comment.\n post.setCommentCount(object.optInt(\"comment_count\", 0));\n post.setDate(object.optString(\"date\", \"N/A\"));\n post.setExcerpt(object.optString(\"excerpt\",\"N/A\"));\n post.setContent(object.optString(\"content\",\"N/A\"));\n // Care that author is not a String,it is a JSONObject\n JSONObject author = object.getJSONObject(\"author\");\n post.setAuthor(author.optString(\"name\", \"N/A\"));\n // if the post has it's thumbnail image,use it,or just keep default\n JSONObject featuredImages = object.optJSONObject(\"thumbnail_images\");\n if(featuredImages != null)\n {\n post.setFeaturedImageUrl(featuredImages.optJSONObject(\"full\")\n .optString(\"url\", Settings.DEFAULT_THUMBNAIL_URL));\n }\n posts.add(post);\n }\n return posts;\n }\n catch (JSONException e)\n {\n Log.e(TAG,\"JSONException when loading Posts\",e);\n e.printStackTrace();\n return null;\n }\n }",
"private void setUpList() {\n\n\n Contents s1 = new Contents(R.drawable.bishist,\"Bishisht Bhatta\",\"+977-9849849525\", Color.parseColor(\"#074e87\"));\n list.add(s1);\n Contents s2 = new Contents(R.drawable.sagar,\"Sagar Pant\",\"+977-9865616888\",Color.parseColor(\"#074e87\"));\n list.add(s2);\n Contents s3 = new Contents(R.drawable.rabins,\"Rabin Nath\",\"+977-9848781007\",Color.parseColor(\"#074e87\"));\n list.add(s3);\n\n\n }",
"@Inject\n public LocalApiImpl() {\n entityList= new ArrayList<>();\n for (int i=0; i<10; i++){\n PostEntity postEntity = new PostEntity();\n postEntity.setPostId(i);\n entityList.add(postEntity);\n }\n }",
"@Override\r\n\tpublic List<Post> hotPosts() {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tList<Post> list=new ArrayList<Post>();\r\n\t\treturn postDao.hotPosts();\r\n\t\t\r\n\t}",
"@Override\n public void done(List<Post> queryPosts, ParseException e) {\n // There is an error\n if(e != null) {\n Log.e(TAG, \"Error in getting posts\");\n return;\n }\n for(Post post : queryPosts) {\n // post.getUser() gets the Id... post.getUser().getUsername() gets the Username associated to the id of getUser in User's table\n Log.i(TAG, \"Post \" + post.getDescription() + \" username: \" + post.getUser().getUsername());\n }\n\n adapter.clear();\n adapter.addAll(queryPosts);\n }",
"public Adaptador_Puntuaciones(ArrayList<Puntuacion> puntuaciones) {\n listaPuntuaciones = puntuaciones;\n }",
"public void addAll(List<Post> postList) {\n posts.addAll(postList);\n notifyDataSetChanged();\n }",
"protected <ELEMENT> List<ELEMENT> newReferrerList() { // overriding to import\n return new ArrayList<ELEMENT>();\n }",
"public void help (ArrayList<Post> post)\n {\n adminRecView = findViewById(R.id.adminRecView);\n posts = post;\n ModRecAdapter adapt = new ModRecAdapter(posts, this);\n adminRecView.setAdapter(adapt);\n adminRecView.setLayoutManager(new LinearLayoutManager(this));\n }",
"private void populatepets(){\r\n\t\tpets.add(new Cat(\"UnNamed\"));\r\n\t\tpets.add(new Cow(\"UnNamed\"));\r\n\t\tpets.add(new Dog(\"UnNamed\"));\r\n\t\tpets.add(new Rabbit(\"UnNamed\"));\r\n\t\tpets.add(new Rat(\"UnNamed\"));\r\n\t\tpets.add(new Velociraptor(\"UnNamed\"));\r\n\t}",
"public LlistaPistes() {\n _llistaPistes = new ArrayList();\n }",
"public List<PostDto> displayPostList(UserDto user);",
"@Override\r\n\tpublic List<Post> getAllPost() {\n\t\tString hql = \"from Post\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql);\r\n\t}",
"public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }",
"@Override\n public ArrayList<MultipleItemEntity> convert() {\n\n ArrayList<MultipleItemEntity> dataList = new ArrayList<>();\n\n final int status = JSON.parseObject(getJsonData()).getInteger(\"status\");\n switch (status){\n case 0:\n final int pageNum = JSON.parseObject(getJsonData()).getJSONObject(\"data\").getInteger(\"pageNum\");\n final JSONObject object = JSON.parseObject(getJsonData()).getJSONObject(\"data\");\n\n final JSONArray dataArray = object.getJSONArray(\"list\");\n\n final int size = dataArray.size();\n if (pageNum == 1) {\n mCommentId.clear();\n }\n for (int i = 0;i<size;i++){\n final JSONObject data = dataArray.getJSONObject(i);\n final int id = data.getInteger(\"id\");\n mCommentId.add(id);\n final String avatar = data.getString(\"avatar\");\n final int userId = data.getInteger(\"userId\");\n final String userName = data.getString(\"username\");\n final String content = data.getString(\"content\");\n// final Date createTime= data.getDate(\"createTime\");\n final String createTime= data.getString(\"createTime\");\n\n\n final MultipleItemEntity entity = MultipleItemEntity.builder()\n .setField(MultipleFields.ITEM_TYPE, ItemType.COMMENT_PROMO)\n .setField(MultipleFields.ID,id)\n .setField(MultipleFields.USER_ID,userId)\n .setField(MultipleFields.USER_NAME,userName)\n .setField(MultipleFields.AVATAR,avatar)\n .setField(MultipleFields.CREATE_TIME,createTime)\n .setField(MultipleFields.CONTENT,content)\n .build();\n\n dataList.add(entity);\n }\n break;\n default:\n final String message = JSON.parseObject(getJsonData()).getString(\"msg\");\n Toast.makeText(Higo.getApplicationContext(),message,Toast.LENGTH_LONG).show();\n HigoLogger.d(\"DATALIST\",dataList);\n break;\n }\n\n return dataList;\n }",
"@GetMapping(\"\")\n public ResponseEntity <List<Post>>listAllPosts() {\n return ResponseEntity.ok(postService.listAllPosts());\n }",
"@Override\n public void done(List<Post> queryPosts, ParseException e) {\n // There is an error\n if(e != null) {\n Log.e(TAG, \"Error in getting posts\");\n return;\n }\n for(Post post : queryPosts) {\n // post.getUser() gets the Id... post.getUser().getUsername() gets the Username associated to the id of getUser in User's table\n Log.i(TAG, \"Post \" + post.getDescription() + \" username: \" + post.getUser().getUsername());\n }\n posts.addAll(queryPosts);\n adapter.notifyDataSetChanged();\n }",
"NewsMakerList() {\n\t\tthis.newsMakers = new ArrayList<NewsMaker>();\n\t}",
"private void initList() {\n\n\t\tfor (int i = 0; i < lstPool.size(); i++) {\n\t\t\tpoolList.add(createPool(\"nomPool\", lstPool.get(i).getNomPool()));\n\t\t}\n\t}",
"public List<PlanPostpago> mostrarPlanesPost()\n\t{\n\t\tPlan p;\n\t\tif (planes != null)\n\t\t{\n\t\t\tListIterator<Plan> it = planes.listIterator(0);\n\t\t\tList<PlanPostpago> li = new ArrayList<PlanPostpago>();\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\tp = it.next();\n\t\t\t\tif(p instanceof PlanPostpago)\n\t\t\t\t\tli.add((PlanPostpago)p);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tCollections.sort(li, new CompararNombresPlan());\n\t\t\t\n\t\t\treturn li;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n\tpublic void getAll() {\n\t\tArrayList<Post> list = new ArrayList<Post>();\n\t\tlist = dao.selectAll();\n\t\t\n\t\tfor (Post p : list) {\n\t\t\tSystem.out.println(p.getPostId() + \".\" + p.getPostName() + \" 작성자:\" + p.getMemberId());\n\t\t}\n\t}",
"List<ParqueaderoEntidad> listar();",
"public void borrarListas() {\n\n\t\tthis.jugadoresEnMesa = new ArrayList<Jugador>();\n\t\tListaJugadores.jugadoresRetirados = new ArrayList<Jugador>();\n\n\t}",
"public void addAll(List<Post> list) {\n posts.addAll(list);\n notifyDataSetChanged();\n }",
"public void addAll(List<Post> list) {\n posts.addAll(list);\n notifyDataSetChanged();\n }",
"public void addAll(List<Post> list) {\n posts.addAll(list);\n notifyDataSetChanged();\n }",
"public void addAll(List<Post> list) {\n posts.addAll(list);\n notifyDataSetChanged();\n }",
"public FeedCustomAdapter(List<Post> dataSet) {\n outfitDataSet = dataSet;\n }",
"public LinkedList lerPosts(String nomeUsuario){\n LinkedList linkedLst = new LinkedList();\n try {\n linkedLst = gerenciadorArq.lerPosts(nomeUsuario);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(ControllerGeral.class.getName()).log(Level.SEVERE, null, ex);\n }\n return linkedLst;\n }",
"private List<DBFeedModel> parseResult(ConnectionResult connectionResult) {\n try {\n JSONObject response = new JSONObject(connectionResult.getResult());\n JSONArray posts = response.optJSONArray(\"posts\");\n List<DBFeedModel> feedsList = new ArrayList<>();\n\n for (int i = 0; i < posts.length(); i++) {\n JSONObject post = posts.optJSONObject(i);\n DBFeedModel item = new DBFeedModel();\n item.setViewType(Constants.FEED_VIEW_TYPE_LEFT);\n item.setTitle(post.optString(\"title\"));\n item.setThumb(post.optString(\"thumbnail\"));\n item.setUrl(\"http://m.dantri.com.vn/xa-hoi/hai-phong-yeu-cau-thao-do-rong-vang-dau-pikachu-gay-tranh-cai-20170108172552427.htm\");\n feedsList.add(item);\n }\n\n return feedsList;\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return null;\n }",
"public void prepareList()\n {\n listImg = new ArrayList<Drawable>();\n for(int i=0;i<n;i++)\n {\n \ta.moveToPosition(i);\n \tString immagine = a.getString(0);\n \tCaricaImmagine caricaImmagineAsync = new CaricaImmagine();\n \t\tcaricaImmagineAsync.execute(new String[]{immagine});\n }\n }",
"public void addAll(List<Post> newList) {\n posts.addAll(newList);\n notifyDataSetChanged();\n }",
"public List<Post> getCreatedPosts() {\n return createdPosts;\n }",
"@SuppressWarnings(\"unchecked\")\r\n public void createList() {\r\n items = new int[MAX_LIST];\r\n NumItems = 0;\r\n }",
"public void addAll(int index, List<Post> list) {\n posts.addAll(index, list);\n notifyItemInserted(index);\n //notifyDataSetChanged();\n }",
"@Override\n protected void onPostExecute(ArrayList<Recipe> result) {\n super.onPostExecute(result);\n a.clear();\n for (Recipe r : result) {\n a.add(r);\n }\n swipe.setRefreshing(false);\n }",
"protected <ELEMENT> List<ELEMENT> newReferrerList() {\r\n return new ArrayList<ELEMENT>();\r\n }",
"@Override\n public List<UserCirclePostPojo> getUserCirclePostFavouritesList(Map<String, Object> params) {\n return yourFavouritesDetaildao.getUserCirclePostFavouritesList(params);\n }",
"public PersonalityList()\n {\n pList= new ArrayList<Personality>();\n }",
"public List<Post> retriveAllPosts()\n\t {\n\t\t List<Post> Posts =(List<Post>) Postrepository.findAll();\n\t\t \n\t\t for(Post Post :Posts)\n\t\t {\n\t\t\t //l.info(\"Post +++ :\" +Post);\n\t\t }\n\t\t return Posts;\n\t\t\t \n\t }",
"public List<Pregunta> getPreguntasMasVotadas(int limit);",
"public List<New> list();",
"public void limpaPontos() {\n\t\tthis.pontos = new ArrayList<Point>();\n\t}",
"public List<Post> getPostByName(String search) {\n\t\treturn pm.getPostByName(search);\r\n\t}",
"public void initializeList() {\n listitems.clear();\n int medicationsSize = Medications.length;\n for(int i =0;i<medicationsSize;i++){\n Medication Med = new Medication(Medications[i]);\n listitems.add(Med);\n }\n\n }",
"public synchronized List<Post> getGroupPostsWithMoreInfo(int count, int start) {\n try {\n this.connect();\n Group.GroupPosts groupPosts = linkedin.restOperations().getForObject(\n \"http://api.linkedin.com/v1/groups/{group-id}/posts\" +\n \":(creation-timestamp,title,summary,id,\" +\n \"creator:(first-name,last-name))?\" +\n \"count=\" + count +\n \"&start=\" + start +\n \"&order=recency\",\n Group.GroupPosts.class, groupId);\n return groupPosts.getPosts();\n } catch (Exception e) {\n log.debug(\"Exception occured when reading posts from group: \" + groupId);\n }\n return null;\n }",
"public ArrayList<PostInfo> getPost() throws SQLException {\n ArrayList<PostInfo> postInfoList = new ArrayList<>();\n String sql = \"SELECT * FROM `post` WHERE `status` = 1 ORDER BY `post_time` DESC\";\n statement = connection.createStatement();\n resultSet = statement.executeQuery(sql);\n while (resultSet.next()) {\n postInfoList.add(new PostInfo(resultSet.getInt(\"post_id\"), resultSet.getInt(\"place_id\"), resultSet.getString(\"post_text\"),\n resultSet.getDate(\"post_time\"), resultSet.getInt(\"status\"), resultSet.getInt(\"user_id\"), resultSet.getInt(\"editor_id\")));\n }\n return postInfoList;\n }"
] | [
"0.68832386",
"0.65059566",
"0.6399692",
"0.63955784",
"0.63948977",
"0.6352551",
"0.6233599",
"0.62221956",
"0.6016117",
"0.59672827",
"0.5921431",
"0.5916476",
"0.5888213",
"0.5876542",
"0.58526903",
"0.5828243",
"0.5821546",
"0.5820014",
"0.5759951",
"0.57347894",
"0.5709951",
"0.569186",
"0.5670789",
"0.5660603",
"0.5660603",
"0.56370705",
"0.5595656",
"0.5574799",
"0.5565745",
"0.5557965",
"0.55492353",
"0.55222964",
"0.54834247",
"0.5480472",
"0.54710346",
"0.5466619",
"0.5461235",
"0.54548305",
"0.54500914",
"0.54347944",
"0.54326904",
"0.5426951",
"0.54243815",
"0.5414929",
"0.54078466",
"0.54014266",
"0.53956324",
"0.53937656",
"0.5386785",
"0.5382952",
"0.5370558",
"0.53692347",
"0.5368906",
"0.5366714",
"0.53625935",
"0.53593713",
"0.5358742",
"0.53580225",
"0.5355816",
"0.5352447",
"0.53505075",
"0.5348384",
"0.533953",
"0.53325737",
"0.5324276",
"0.53230244",
"0.5320509",
"0.5317108",
"0.53156227",
"0.53153557",
"0.53152716",
"0.5302836",
"0.5296524",
"0.52960676",
"0.5291696",
"0.5287062",
"0.52863044",
"0.528551",
"0.528551",
"0.528551",
"0.528551",
"0.5278483",
"0.5267294",
"0.52639514",
"0.52590144",
"0.5249493",
"0.524932",
"0.5228878",
"0.522232",
"0.52222013",
"0.51947904",
"0.5194505",
"0.51939774",
"0.51934594",
"0.5192239",
"0.51916987",
"0.5184182",
"0.51839495",
"0.5183352",
"0.517948",
"0.5177522"
] | 0.0 | -1 |
String cusName = request.getParameter("cusName"); | @Override
public void execute(HttpServletRequest request,Document document) throws Exception {
Font FontChinese = WordUtil.font;//加入document:
/** 创建文档主体内容 */
document.add(new Paragraph("First page of the document."));// Paragraph添加文本
document.add(new Paragraph("我们是害虫", FontChinese));
/** 创建章节对象 */
Paragraph title1 = new Paragraph("第一章", FontChinese);
Chapter chapter1 = new Chapter(title1, 1);
chapter1.setNumberDepth(0);
/** 创建章节中的小节 */
Paragraph title11 = new Paragraph("表格的添加", FontChinese);
Section section1 = chapter1.addSection(title11);
/** 创建段落并添加到小节中 */
Paragraph someSectionText = new Paragraph("下面展示的为3 X 2 表格.",
FontChinese);
section1.add(someSectionText);
/** 创建表格对象(包含行列矩阵的表格) */
Table t = new Table(3, 2);// 2行3列
t.setBorderColor(new Color(220, 255, 100));
t.setPadding(5);
t.setSpacing(5);
t.setBorderWidth(1);
Cell c1 = new Cell(new Paragraph("第一格", FontChinese));
t.addCell(c1);
c1 = new Cell("Header2");
t.addCell(c1);
c1 = new Cell("Header3");
t.addCell(c1);
// 第二行开始不需要new Cell()
t.addCell("1.1");
t.addCell("1.2");
t.addCell("1.3");
section1.add(t);
/** 创建章节中的小节 */
Paragraph title13 = new Paragraph("列表的添加", FontChinese);
Section section3 = chapter1.addSection(title13);
/** 创建段落并添加到小节中 */
Paragraph someSectionText3 = new Paragraph("下面展示的为列表.", FontChinese);
section3.add(someSectionText3);
/** 创建列表并添加到pdf文档中 */
List l = new List(true, true, 10);// 第一个参数为true,则创建一个要自行编号的列表,
// 如果为false则不进行自行编号
l.add(new ListItem("First item of list"));
l.add(new ListItem("第二个列表", FontChinese));
section3.add(l);
document.add(chapter1);
/** 创建章节对象 */
Paragraph title2 = new Paragraph("第二章", FontChinese);
Chapter chapter2 = new Chapter(title2, 1);
chapter2.setNumberDepth(0);
/** 创建章节中的小节 */
Paragraph title12 = new Paragraph("png图片添加", FontChinese);
Section section2 = chapter2.addSection(title12);
/** 添加图片 */
section2.add(new Paragraph("图片添加: 饼图", FontChinese));
Image png = Image.getInstance("D:/pie.png");//图片的地址
section2.add(png);
document.add(chapter2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getParameter(HttpServletRequest req, String name) {\n String value = req.getParameter(name);\n return value == null ? \"\" : value.trim();\n }",
"private String getParameter(String name, HttpServletRequest request) {\r\n String value = request.getParameter(name);\r\n if (value == null || \"\".equals(value)) {\r\n return null;\r\n\r\n } else {\r\n return value;\r\n }\r\n }",
"String getParameter(HttpServletRequest request, String name) throws ValidationException;",
"public String getParameter(String name) throws IOException {\n if(form == null) {\n form = builder.getInstance();\n }\n return form.get(name);\n }",
"@Override\n\tpublic Object getParameter(HttpServletRequest request) {\n\t\tString dentifyId=request.getParameter(\"curid\");\n\t\tString curstomName=request.getParameter(\"curname\");\n\t\tString curstomage=request.getParameter(\"curage\");\n\t\tString curstomAdress=request.getParameter(\"curaddress\");\n\t\tString Curstomphone=request.getParameter(\"curphone\");\n\t\treturn new Curstom(dentifyId,curstomName,curstomage,curstomAdress,Curstomphone);\n\t}",
"protected String getStringParam(HttpServletRequest request, String name) {\r\n String[] p = request.getParameterValues(name);\r\n \r\n if (p == null) {\r\n return null;\r\n } else {\r\n return p[0];\r\n }\r\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\nthrows ServletException, IOException {\nString userName = request.getParameter(\"username\");\n// retrieve the PrintWriter object and use it to output the greeting\nresponse.setContentType(\"text/html;charset=UTF-8\");\nPrintWriter out = response.getWriter();\ntry{\nout.println(\"<html>\");\nout.println(\"<head><title>GetParameter Servlet</title></head>\");\nout.println(\"<body>\");\nout.println(\"<h1>\");\nout.println(\"HELLO, \" + userName + \"!\");\nout.println(\"</h1>\");\nout.println(\"</body>\");\nout.println(\"</html>\");\n}\nfinally{\nout.close();\n}\n}",
"public String getPara(String name) {\n\t\treturn request.getParameter(name);\n\t}",
"protected String getEntryName( HttpServletRequest request )\n {\n return (String) request.getParameter( ENTRY_NAME_HTTP_PARAM );\n }",
"public static String getUserNameCurrent(HttpServletRequest request) {\n \tObjectMapper mapper = new ObjectMapper(); \n PayLoadBean bean = new PayLoadBean(); \n try { \n bean = mapper.readValue(descifrarBase64(obtenerTokenAcceso(request)), PayLoadBean.class);\n } catch (Exception e) {\n // TODO: handle exception\n return null;\n }\n return bean.getSub().toLowerCase().trim(); \n }",
"private String getValueFromRequest(String key, HttpServletRequest request) {\n if (!StringUtils.isEmpty(key) && null != request) {\n return request.getParameter(key);\n }\n return null;\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException \n {\n String act = request.getParameter(\"act\");\n \n if (act!=null && act.equalsIgnoreCase(\"doAddTransaction\")){// show page with form to obtain client name\n doPost(request, response);\n }else{// put client name into a bean\n RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(\"/addtransaction.jsp\");\n dispatcher.forward(request, response);\n }\n }",
"protected String getParamFromRequest(HttpServletRequest request, String key) {\n return request.getParameter(key);\n }",
"public static String getParameter(MCRServletJob job, String name) {\n String value = job.getRequest().getParameter(name);\n return value == null ? \"\" : value.trim();\n }",
"public String getParameter(String name) {\n String[] values = getParameterValues(name);\n if (values != null && values.length > 0) {\n return values[0];\n }\n else {\n return null;\n }\n }",
"public String getParameterFromP();",
"private String getCookieValue(HttpServletRequest request, String name) {\n Cookie[] cookies = request.getCookies();\n\n if (cookies != null) { //Stupid servlet API!\n for (Cookie cookie : cookies) {\n if (name.equals(cookie.getName())) {\n return cookie.getValue();\n }\n }\n }\n\n return \"\";\n }",
"String getCookie(HttpServletRequest request, String name) throws ValidationException;",
"private static String getHTTPRequestParameter(PortletRequest request,\n String name) {\n String value = request.getParameter(name);\n if (value == null) {\n String portalInfo = request.getPortalContext().getPortalInfo()\n .toLowerCase();\n if (portalInfo.contains(\"liferay\")) {\n value = getLiferayHTTPRequestParameter(request, name);\n } else if (portalInfo.contains(\"gatein\")) {\n value = getGateInHTTPRequestParameter(request, name);\n }\n }\n return value;\n }",
"String getRequest();",
"String getUserCnName(String userName);",
"ChangeName.Req getChangeNameReq();",
"public String getParameter(String name) {\n String[] values = getParameterValues(name);\n return (values != null) ? values[0] : null;\n }",
"private void getEditCustomer(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t//int id=Integer.parseInt(request.getParameter(\"id\"));\n\t\tCustomer c=cr.getCustomer(1);\n\t\tSystem.out.println(c);\n\t\trequest.setAttribute(\"c\", c);\n\t\tRequestDispatcher rd=request.getRequestDispatcher(\"editCus.jsp\");\n\t\trd.forward(request, response);\n\t\t\n\t}",
"@Override\r\nprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tPrintWriter a=resp.getWriter();\r\n\tint aid=Integer.parseInt(req.getParameter(\"aid\"));\r\n\tString name=req.getParameter(\"anames\");\r\n\ta.println(\"welcome \"+name);\r\n}",
"private String getParameter(HttpServletRequest request, String name, String defaultValue) {\n String value = request.getParameter(name);\n if (value == null) {\n return defaultValue;\n }\n return value;\n }",
"@RequestMapping(\"/processForm\")\n public String processForm(HttpServletRequest request, Model model) {\n String studentName = request.getParameter(\"studentName\");\n String convertedName = studentName != null ? studentName.toUpperCase() : null;\n String result = \"Yo! \" + convertedName;\n model.addAttribute(\"message\", result);\n\n return \"helloWorld\";\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\r\n PrintWriter writer = response.getWriter();\r\n String userName = request.getParameter(\"userName\");\r\n HttpSession session = request.getSession();\r\n if (userName != \"\" && userName != null){\r\n \r\n session.setAttribute(\"savedUserName\", userName);\r\n }\r\n \r\n writer.println(\" Request parameter has username as \" + userName);\r\n writer.println(\" Session parameter has username \" + (String) session.getAttribute(\"savedUserName\"));\r\n //out.println(\"Hello \" + userName);\r\n \r\n }",
"private void query(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString name = req.getParameter(\"name\");\n\t\tString phone = req.getParameter(\"phone\");\n\t\tString address = req.getParameter(\"address\");\n\t\t\n\t\t//2. encapsulate parameters into a CriteriaCustomer object\n\t\tCriteriaCustomer cc = new CriteriaCustomer(name, address, phone);\n\t\t//3. call customerDAO.getListByCriteria() to retrieve a list of all the customers\n\t\tList<Customer> customers = customerDAO.getListByCriteria(cc);\n\t\t//4. put the list into request\n\t\treq.setAttribute(\"customers\", customers);\n\t\t//5. forward to index.jsp\n\t\treq.getRequestDispatcher(\"/index.jsp\").forward(req, resp);\n\t}",
"java.lang.String getFormName();",
"@RequestMapping(\"/processFormVersionTwo\")\npublic String letsShoutDude(HttpServletRequest request ,Model model )\n{\n\t// read request parameter from html form\n\tString theName = request.getParameter(\"studentName\");\n\t//convert data to all caps \n\ttheName = theName.toUpperCase();\n\t//create the message\n\tString result = \"YO YO !! \" +theName;\n\t// add msg to model\n\tmodel.addAttribute(\"message\",result);\n\n return\"helloworld\";\n \n}",
"String getRequestParam(HttpServletRequest request, String param)\n {\n\t if (request != null) \n { \n\t String paramVal = request.getParameter(param); \n\t\t return paramVal;\n\t }\n\t return null;\n }",
"protected String getDispatchParameter( HttpServletRequest request )\n {\n return request.getParameter( DISPATCH_HTTP_PARAM );\n }",
"@Override\n\t\tpublic String getParameter(String name) {\n\t\t\treturn null;\n\t\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 }",
"@Override\n\tpublic String getParameter(String name) {\n\t\treturn null;\n\t}",
"protected Object getSingleValueFromRequest(HttpServletRequest request_p, String strID_p)\r\n {\r\n return request_p.getParameter(strID_p);\r\n }",
"String getParameter(String key);",
"public String extractRequestParamerter(HttpServletRequest request, String parameterName, String logicalName, boolean validate) {\n String parameterValue = request.getParameter(parameterName);\n if (!validate)\n return parameterValue;\n\n if (StringUtils.isBlank(parameterValue)) {\n String name = logicalName != null ? logicalName : parameterName;\n throw new UserNDotException(name + \" not Supplied or is Empty\");\n }\n\n\n parameterValue = parameterValue.trim();\n return parameterValue;\n }",
"public String getParameterFromX();",
"@Override \n public String getParameter(String name) { \n \t// System.out.println(\"The original name received from getParameter() is:\"+name); \n String value = super.getParameter(encodeXSS(name)); \n //the following sentences will be replaced by logging sentence in actual project \n //System.out.println(\"The original value received from getParameter() is:\"+value); \n if (value != null) { \n value = encodeXSS(value); \n } \n \n //the following sentences will be replaced by logging sentence in actual project \n //System.out.println(\"After handling XSS ,the actual value is:\"+value); \n //System.out.println(); \n return value; \n }",
"@RequestMapping(\"/processFormVersionThree\")\npublic String processFormVersionThree(@RequestParam(\"studentName\")String theName ,Model model )\n{\n\ttheName = theName.toUpperCase();\n\t//create the message\n\tString result = \" I love \" +theName;\n\t// add msg to model\n\tmodel.addAttribute(\"message\",result);\n\n return\"helloworld\";\n \n}",
"private void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\tjava.util.Hashtable<String, String> resul = BusinessDAO.queryByCif(request.getParameter(\"cif\"));\n\t\t\tif (resul==null) {\n\t\t\t\t//No existe, asi que lo creo\n\t\t\t\tBusiness auxBusiness = new Business();\n\t\t\t\t\t\t\t\t\n\t\t\t\tauxBusiness.setMail(request.getParameter(\"mail\"));\n\t\t\t\tauxBusiness.setPassword(request.getParameter(\"password\"));\n\t\t\t\tauxBusiness.setCif(request.getParameter(\"cif\"));\n\t\t\t\tauxBusiness.setName(request.getParameter(\"name\"));\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tBusinessDAO.save(auxBusiness);\n\t\t\t\t} catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t }\n\n\t\t\t\t//Se informa al usuario y se reenvia al login\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Su cuenta ha sido creada con éxito\", \"Cuenta creada\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\tresponse.sendRedirect(\"/ScienLink\");\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//Muestra mensaje de error\n\t\t JOptionPane.showMessageDialog(null, \"Ya existe una cuenta registrada con este CIF\", \"Error: CIF ya registrado\", JOptionPane.INFORMATION_MESSAGE);\n\t\t response.sendRedirect(\"/ScienLink/view/businessRegister/businessRegisterView.jsp\");\n\t\t\t}\n\t\t\t\n\t\t}",
"@RequestMapping(\"/showDetails{email}\")\npublic String applyLgeave(@RequestParam String email,HttpServletRequest request)\n{\n\tEmployeeRegmodel employeeobj = ergserv.findByEmailIdh(email);\n\tString name= employeeobj.getEmployee_fullname();\n\tint id=employeeobj.getEmployee_id();\n\tString emailadd=employeeobj.getEmail();\n\tString father = employeeobj.getEmployee_fname();\n\tString date = employeeobj.getEmployee_dob();\n\tlong phone = employeeobj.getEmployee_phoneno();\n\tString add = employeeobj.getEmployee_address();\n\tString password = employeeobj.getEmployee_password();\n\tSystem.out.println(name);\n\t\n\t\n\trequest.setAttribute(\"father\", father);\n\trequest.setAttribute(\"name\", name);\n\trequest.setAttribute(\"id\", id);\n\trequest.setAttribute(\"mail\", emailadd);\n\trequest.setAttribute(\"dt\", date);\n\trequest.setAttribute(\"ph\", phone);\n\trequest.setAttribute(\"address\", add);\n\trequest.setAttribute(\"pass\", password);\n\t\n\treturn \"profile.jsp\";\n\t\n}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t\tString name=request.getParameter(\"name\");\r\n\t\tICustomerDAO dao=new CustomerDAO();\t\r\n\t\t\r\n\t\tCustomer customer=new Customer();\r\n\t\tcustomer.setName(name);\r\n\t\t\r\n\t\tdao.create(customer);\r\n\r\n\t\t\r\n\t\tRequestDispatcher vista=request.getRequestDispatcher(LIST_CUSTOMER);\r\n\t\trequest.setAttribute(\"customers\", dao.reader());\r\n\t\tvista.forward(request, response);\r\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n String unm = request.getParameter(\"usernm\");\r\n String ps = request.getParameter(\"password\");\r\n //String cpcth = request.getParameter(\"captcha\"); This goes in filter and filter directs to the servlet\r\n /*DTOloginReg lg=new DTOloginReg(); //DTO\r\n lg.setUsernm(unm);\r\n lg.setPassword(ps);\r\n DAOloginReg ra=new DAOloginReg(); */ //DAO\r\n //boolean bt=ra.loginCheck(lg);\r\n \r\n PrintWriter pw = response.getWriter();\r\n pw.println(\"hello \"+ ps);\r\n \r\n \r\n }",
"String getHeader(HttpServletRequest request, String name) throws ValidationException;",
"protected void setParameters(HttpServletRequest request)\n\t{\n\t\t\n\t\tfullname = request.getParameter(\"fullname\");\n\t\tdisplayName = request.getParameter(\"displayName\").toLowerCase();\n\t\temail = request.getParameter(\"email\");\n\t\tpassword = request.getParameter(\"password\");\n\t\tconfirm = request.getParameter(\"confirm\");\n\t}",
"@Override\n public String getUserRealName(HttpServletRequest request) {\n String result = null;\n String userName = (String) request.getSession().getAttribute(\"userName\");\n if (userName != null && !userName.equals(\"\")) {\n CrUser user = userRepo.findByUserName(userName);\n if (user != null) {\n result = user.getRealName();\n }\n }\n return result;\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n String nombreParametro=null;\n String[]valoresParametro=null;\n Iterator it;\n String nombre= request.getParameter(\"nombre\");\n String cadena = request.getParameter(\"telefono\") ;\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet registro</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<form action=\\\"registro\\\" method=\\\"post\\\">\");\n \n if (nombre == \"\"){\n \n out.println(\" <p><label for=\\\"nombre\\\"> Nombre </label> \");\n out.println( \"<input type=\\\"text\\\" id value= \\\"\"+nombre+\"\\\" > \");\n out.println(\"</br>\");\n \n \n }else{\n out.println(\" <p><label for=\\\"nombre\\\"> Nombre </label> \");\n out.println(request.getParameter(\"nombre\"));\n }\n if (request.getParameter(\"apellido\")==\"\"){\n \n out.println(\" <p><label for=\\\"apellido\\\"> Apellido </label> \");\n out.println( \"<input type=\\\"text\\\" id value= \\\"\"+request.getParameter(\"apellido\")+\"\\\" > \");\n out.println(\"</br>\");\n \n \n }else{\n out.println(\" <p><label for=\\\"nombre\\\"> Apellido </label> \");\n out.println(request.getParameter(\"apellido\"));\n }\n \n if (request.getParameter(\"usuario\")==\"\"){\n out.println(\" <p><label for=\\\"usuario\\\"> Usuario </label> \");\n out.println( \"<input type=\\\"text\\\" id value= \\\"\"+request.getParameter(\"usuario\")+\"\\\" > \");\n out.println(\"</br>\");\n }else{\n out.println(\" <p><label for=\\\"usuario\\\"> Usuario </label> \");\n out.println(request.getParameter(\"usuario\"));\n }\n \n if (request.getParameter(\"contrasena\")==\"\"){\n out.println(\" <p><label for=\\\"contraseña\\\"> Contraseña </label> \");\n out.println( \"<input type=\\\"text\\\" id value= \\\"\"+request.getParameter(\"contrasena\")+\"\\\" > \");\n out.println(\"</br>\");\n }else{\n out.println(\" <p><label for=\\\"contraseña\\\"> Contraseña </label> \");\n out.println(request.getParameter(\"contrasena\"));\n }\n \n if (cadena.length() != 9 || !cadena.startsWith(\"6\") || !cadena.startsWith(\"7\") || !cadena.startsWith(\"9\")) {\n out.println(\" <p><label for=\\\"telefono\\\"> Telefono </label> \");\n out.println( \"<input type=\\\"text\\\" id value= \\\"\"+request.getParameter(\"telefono\")+\"\\\" > \");\n out.println(\"</br>\");\n }else{\n out.println(\" <label for=\\\"telefono\\\"> Telefono </label> \");\n out.println(request.getParameter(\"telefono\")); \n }\n if (request.getParameter(\"sexo\")==null){\n out.println(\"<label>Sexo :</label> \");\n out.println(\"<label>Hombre :</label> \");\n out.println(\"<input type=\\\"radio\\\" name=\\\"sexo\\\" value=\\\"hombre\\\" >\");\n out.println(\"<label>Mujer :</label> \");\n out.println(\"<input type=\\\"radio\\\" name=\\\"sexo\\\" value=\\\"mujer\\\" >\");\n \n }else{\n out.println(\" <p><label for=\\\"sexo\\\"> sexo </label> \");\n out.println(request.getParameter(\"sexo\"));\n }\n \n if (request.getParameter(\"preferencia\")==null){\n out.println(\"<label>Preferencias :</label> \");\n out.println(\"<label>Deporte</label> \");\n out.println(\"<input type=\\\"checkbox\\\" name=\\\"preferencia\\\" value=\\\"Deporte\\\">\");\n out.println(\"<label>Lectura</label> \");\n out.println(\"<input type=\\\"checkbox\\\" name=\\\"preferencia\\\" value=\\\"Lectura\\\">\");\n out.println(\"<label>Cine</label> \");\n out.println(\"<input type=\\\"checkbox\\\" name=\\\"preferencia\\\" value=\\\"Cine\\\">\");\n out.println(\"<label>Deporte</label> \");\n out.println(\"<input type=\\\"checkbox\\\" name=\\\"preferencia\\\" value=\\\"Viajes\\\">\");\n \n }else{\n out.println(\" <p><label for=\\\"preferencias\\\"> preferencias </label> \");\n out.println(request.getParameter(\"preferencia\"));\n }\n \n out.println(\"<input type=\\\"submit\\\" name=\\\"enviar\\\" value=\\\"Enviar\\\">\");\n out.println(\"<input type=\\\"reset\\\" name=\\\"borrar\\\" value=\\\"borrar\\\">\");\n out.println(\"</form>\");\n \n out.println(\"<h1>Servlet registro at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n \n }\n }",
"public void initIstance(HttpServletRequest request) {\n \tname = request.getParameter(\"name\");\n priceMin = request.getParameter(\"priceMin\");\n priceMax = request.getParameter(\"priceMax\");\n code = request.getParameter(\"code\");\n description = request.getParameter(\"description\");\n String hiddenStr = request.getParameter(\"hidden\");\n hidden = hiddenStr != null;\n typeIdes = request.getParameterValues(\"type\");\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tString pro=req.getParameter(\"pro\");\r\n\t\t\r\n\t\tString citys=service.getCitys(pro);\r\n\t\t\r\n\t\tresp.setContentType(\"text/html\");\r\n\t\tresp.setCharacterEncoding(\"utf-8\");\r\n\t\t\r\n\t\tPrintWriter out=resp.getWriter();\r\n\t\t\r\n\t\tout.println(citys);\r\n\t\tout.flush();\r\n\t\tout.close();\r\n\t\t\r\n\t\t\r\n\t}",
"public static String getParameter( HttpServletRequest request, String paramName, boolean emptyStringsOK ) {\n String temp = request.getParameter(paramName);\n if( temp != null ) {\n if( temp.equals(\"\") && !emptyStringsOK ) {\n return null;\n }\n else {\n return temp;\n }\n }\n else {\n return null;\n }\n }",
"public static String getParameter( HttpServletRequest request, String paramName, boolean emptyStringsOK ) {\n String temp = request.getParameter(paramName);\n if( temp != null ) {\n if( temp.equals(\"\") && !emptyStringsOK ) {\n return null;\n }\n else {\n return temp;\n }\n }\n else {\n return null;\n }\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n\t{\n\t\t//获取数据\n\t\trequest.setCharacterEncoding(\"utf-8\");\n\t\tString username = \"\";\n\t\tString password = \"\";\n\t\tusername = request.getParameter(\"name\");\n\t\tpassword = request.getParameter(\"pwd\");\n\n\t try { \n\t \n\t \t Connection con=null;\n\t \t Statement stmt=null;\n\t \t ResultSet rs1=null;\n\t \t Class.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");\n\t \t con=DriverManager.getConnection(\"jdbc:sqlserver://localhost:1433; DatabaseName=dbToH\",\"sa\",\"123\");\n\t \t String SQL=\"select * from users where Phone='\"+ username + \"'\";\n\t \t stmt=con.createStatement();\n\t \t rs1=stmt.executeQuery(SQL);\n\t \t System.out.print(username);\n\n\t \n\t if (rs1.next()) { \n\t // 说明用户是存在的 \n\t \t\n\t \tresponse.sendRedirect(\"../index.jsp?Name=\"+username);\n\t \n\t } else { \n\t // 说明用户名不存在 \n\t \tresponse.sendRedirect(\"../login.jsp\");\n\t } \n\t } catch (Exception ex) { \n\t ex.printStackTrace(); \n\t \n\t } \n\t\t\t\t\n\t\t// 跳转\n\t\t\n\t}",
"public static String getRequestParameter(String key) {\r\n\t\treturn FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(key);\r\n\t}",
"private Customer parseNewCustomer(HttpServletRequest request, int cust_id){\n\t\t//parse new customer from request\n\t\tCustomer cust = new Customer();\n\t\tcust.setID(cust_id);\n\t\tcust.setFirstName(request.getParameter(\"first_name\"));\n\t\tcust.setLastName(request.getParameter(\"last_name\"));\n\t\tcust.setAddress(request.getParameter(\"address\"));\n\t\tcust.setCity(request.getParameter(\"city\"));\n\t\tcust.setState(request.getParameter(\"state\"));\n\t\tcust.setPhoneNumber(request.getParameter(\"phone\"));\n\t\treturn cust;\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\r\n PrintWriter out = response.getWriter();\r\n //String userName = request.getParameter(\"userName\");\r\n //String fullName = request.getParameter(\"fullName\");\r\n //out.println(\"Hello welcome to the web application \" + userName + \" We know your full name is \" + fullName);\r\n // String prof = request.getParameter(\"prof\");\r\n //out.println(\"you are a \" + prof);\r\n // String location = request.getParameter(\"location\");\r\n String [] location = request.getParameterValues(\"location\");\r\n // length is a method \r\n out.println(\"you are at \" + location.length + \" places\");\r\n \r\n for(int i=0; i<location.length; i++){\r\n out.println(location [i]);\r\n }\r\n \r\n }",
"private void NameShow(HttpServletRequest request, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString find = request.getParameter(\"find\") == \"\" ? \"^^^^\" : request.getParameter(\"find\");\r\n\t\tSystem.out.println(find);\r\n\t\tint page = request.getParameter(\"page\") == \"\" || request.getParameter(\"page\") == null ? 1\r\n\t\t\t\t: Integer.valueOf(request.getParameter(\"page\"));\r\n\t\tList<Notice> list = service.selectByName(find);\r\n\t\trequest.setAttribute(\"count\", list.size());\r\n\t\trequest.setAttribute(\"list\", list);\r\n\t\trequest.setAttribute(\"nameshow\", \"nameshow\");\r\n\t\trequest.getRequestDispatcher(\"/WEB-INF/jsp/GongGaoGuanLi.jsp\").forward(request, resp);\r\n\t}",
"com.uzak.inter.bean.test.TestRequest.TestBeanRequest getRequest();",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tlog.info(\"Servlet is accesssed via GET method\");\r\n\t\tlog.info(\"Preparing the response!\");\r\n\t\tPrintWriter out = response.getWriter();\r\n\t\tString name = request.getParameter(\"name\");\r\n\t\tif(name==null || name.trim().length()<1) {\r\n\t\t\tlog.warn(\"The Name parameter was absent!\");\r\n\t\t\tname=\"Unknown\";\r\n\t\t}\r\n\t\tlog.error(\"The random error!\");\r\n\t\tout.close();\r\n\t}",
"private void getParameters(HttpServletRequest request) {\n\t\t// Recoger datos\n\t\tconcepto = request.getParameter(\"concepto\");\n\t\tString importeTexto = request.getParameter(\"importe\");\n\t\ttry {\n\t\t\timporte = Double.parseDouble(importeTexto);\n\n\t\t} catch (NumberFormatException e) {\n\t\t\timporte = (double) 0;\n\t\t}\n\t\tLong idCoche = Long.parseLong(request.getParameter(\"id_coche\"));\n\t\tc = daoCoche.getBYId(idCoche);\n\t\tidAgente = Long.parseLong(request.getParameter(\"id_agente\"));\n\t}",
"public Object getVariable(HttpServletRequest request, String name) {\n\t\tObject obj = request.getParameter(name);\n\t\tif (obj == null) {\n\t\t\tobj = request.getAttribute(name);\n\t\t\tif (obj == null) {\n\t\t\t obj = request.getSession().getAttribute(name);\n\t\t\t if (obj == null) {\n\t\t\t obj = getCookie(request, name);\n\t\t\t if (obj == null) {\n\t\t\t\t obj = getServletContext().getAttribute(name);\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\treturn obj;\n\t}",
"@RequestMapping(\"/processFormVersion2\")\n public String letShoutDude(HttpServletRequest request, Model model)\n {\n //read the request paramether\n String theName=request.getParameter(\"studentName\");\n //convert data to uppercase\n theName=theName.toUpperCase();\n //create message\n String rezult=\"Yo \"+theName+\" !\";\n //add message to the model\n model.addAttribute(\"message\",rezult);\n return \"helloworld\";\n }",
"Object getParameter(String name);",
"protected Object findInRequest(final ServletRequest request, final String attributName) {\r\n\r\n Object attr = request.getParameter(attributName);\r\n if (attr == null) {\r\n attr = request.getAttribute(attributName);\r\n }\r\n return attr;\r\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws \r\n\t\tServletException, IOException{\r\n\t\t \r\n\t\t String name = request.getParameter(\"name\"); //// Parameter pass from browser as request. ex: http://localhost:8080/login.do?name=ehsan\r\n\t\t String password = request.getParameter(\"password\");\r\n\t\t \r\n\t\t boolean isuservalid = uservalidationservice.isUserValid(name, password);\r\n\t\t if(isuservalid) {\r\n\t\t\t request.getSession().setAttribute(\"Name\", name); // setAttribute(\"name of atribute\", value of name)/(String name, Object obj)\r\n\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t//// setting an atribut into request. servlet take the parameter and put it as atribute into request so Jsp can see it.\r\n\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t response.sendRedirect(\"/list-todos.do\"); \r\n\t\t }\r\n\t\t else {\r\n\t\t\t// request.setAttribute(\"errorMessage\", \"Sorry Worng Craditioal, Try Again!!!\");\r\n\t\t\t request.getRequestDispatcher(\"/WEB-INF/views/login.jsp\").forward(request, response);\r\n\t\t }\r\n\t }",
"public static String getParameter( HttpServletRequest request, String paramName ) {\n return getParameter( request, paramName, false );\n }",
"public static String getParameter( HttpServletRequest request, String paramName ) {\n return getParameter( request, paramName, false );\n }",
"protected String getParameter(ActionMapping mapping, ActionForm form,\n HttpServletRequest request, HttpServletResponse response)\n throws Exception {\n\n return mapping.getParameter();\n\n }",
"public String getParameterFromH();",
"static String getCourseName() {\n\t\tScanner s = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter course name: \");\n\t\tString cn = s.nextLine();\n\t\treturn cn;\n\t}",
"@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t\tBufferedReader br = request.getReader();\n\t\t\n\t\tSystem.out.println(br.readLine());\n\t\t\n\t\tSystem.out.println(request.getParameter(\"name\"));\n//\t\t\n\t\tPrintWriter pw = response.getWriter();\n\t\t\n\t\tpw.println(\"ajaxTest8return\");\n\t\t\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n String title = \"Reading All Request Parameters\";\n\n\tout.println(\"<head><title>ShowParameters Servlet</title></head>\");\n\n out.println(\"<BODY BGCOLOR=\\\"#FDF5E6\\\">\\n\" +\n \"<H1 ALIGN=CENTER>\" + title + \"</H1>\\n\" +\n \"<TABLE BORDER=1 ALIGN=CENTER>\\n\" +\n \"<TR BGCOLOR=\\\"#FFAD00\\\">\\n\" +\n \"<TH>Parameter Name<TH>Parameter Value(s)\");\n\n Enumeration paramNames = request.getParameterNames();\n\n \twhile(paramNames.hasMoreElements())\n \t{\n \t \tString paramName = (String)paramNames.nextElement();\n \t \tout.print(\"<TR><TD>\" + paramName + \"<TD>\");\n\n \t\tString[ ] paramValues = request.getParameterValues(paramName);\n\n \t\tif (paramValues.length == 1)// array is one entry long? contains only empty string\n \t\t{\n \t\tString paramValue = paramValues[0];\n \t\tif (paramValue.length() == 0)\t//parameter has no value\n \t\t\t out.println(\"<I>No Value</I>\"); //displays in italic\n \t\telse\n \t\t\tout.println(paramValue);\n \t\t}\n \t\telse\t\t\t//parameter has multiple values\n \t\t{\n \t\tout.println(\"<UL>\");\n \t\tfor(int i=0; i<paramValues.length; i++)\n \t\t{\n \t\t\tout.println(\"<LI>\" + paramValues[i]);\t\t//values are dislayed\n \t\t}\n\n \t\tout.println(\"</UL>\");\n \t\t}\n \t}\n\n \tout.println(\"</TABLE>\\n</BODY></HTML>\");\n } finally { \n out.close();\n }\n }",
"protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n String lastName = req.getParameter(\"lastName\");\n// String age = req.getParameter(\"age\");\n\n if (LAST_NAME.equals(lastName)) {\n HttpSession session = req.getSession(true);\n session.setAttribute(\"user_in\", lastName);\n } else {\n JOptionPane.showMessageDialog(null, \"Only one user registered: Tagirov\");\n }\n res.sendRedirect(\"index.jsp\");\n }",
"@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n PrintWriter writer = resp.getWriter();\n\n if (req.getParameter(\"name\") == null) {\n resp.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n return;\n }\n\n writer.println(\"<!DOCTYPE html>\");\n writer.println(\"<html>\");\n writer.println(\"<body>\");\n writer.println(\"Hello \" + req.getParameter(\"name\") + \"!<br />\");\n writer.println(\"</body>\");\n writer.println(\"</html>\");\n\n// if (req.getParameter(\"name\").equals(user.getName()))\n// writer.println(\"Hello \" + req.ge);\n// else {\n// writer.println\n// }\n }",
"public void setCname(String cname) {\n this.cname = cname;\n }",
"public String getParameter( String name )\n {\n return getParameter(VAL, name, null, false);\n }",
"public String getPara(String name, String defaultValue) {\n\t\tString result = request.getParameter(name);\n\t\treturn result != null && !\"\".equals(result) ? result : defaultValue;\n\t}",
"public String getParameter(String name) throws IllegalArgumentException {\n\t if ( LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"getParameter() \" \n\t\t+ name);\n Via via=(Via)sipHeader;\n \n if (name == null) throw new\n IllegalArgumentException(\"JAIN-EXCEPTION: null argument\");\n return via.getParameter(name);\n }",
"public static String getParam(String paramName) {\n \treturn FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(paramName);\n }",
"@Override\r\n public void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n throws ServletException, IOException {\n Map<String, String> messages = new HashMap<String, String>();\r\n req.setAttribute(\"messages\", messages);\r\n County county = null;\r\n CovidByDate covidbydate = null;\r\n // Retrieve county and validate.\r\n String countyname = req.getParameter(\"countyname\");\r\n String statename = req.getParameter(\"statename\");\r\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n String stringDate = req.getParameter(\"date\");\r\n if (countyname == null || countyname.trim().isEmpty() || statename == null || statename.trim().isEmpty() || stringDate == null) {\r\n messages.put(\"success\", \"Please enter a valid County and State name pair and valid Date.\");\r\n } else {\r\n \tDate date;\r\n java.sql.Date sqlDate;\r\n try {\r\n date = dateFormat.parse(stringDate);\r\n sqlDate = new java.sql.Date(date.getTime());\r\n } catch (ParseException e) {\r\n e.printStackTrace();\r\n throw new IOException(e);\r\n }\r\n try {\r\n county = countyDao.getCountyByCountyNameAndStateName(countyname, statename);\r\n if (county == null) {\r\n messages.put(\"success\", \"County and State name pair does not exist. Could not locate COVID-19 Data entry.\");\r\n } else {\r\n covidbydate = covidByDateDao.getCovidByDateByCountyAndDate(county, sqlDate);\r\n if (covidbydate == null) {\r\n messages.put(\"success\", \"CovidByDate entry does not exist.\");\r\n }\r\n }\r\n req.setAttribute(\"covidbydate\", covidbydate);\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n throw new IOException(e);\r\n }\r\n }\r\n req.getRequestDispatcher(\"/CovidByDateUpdate.jsp\").forward(req, resp);\r\n }",
"private void searchCou(HttpServletRequest request, HttpServletResponse response) {\n\r\n\t\tString courseid = request.getParameter(\"courseid\");\r\n\r\n\t\ttry {\r\n\t\t\tif (courseid == null || courseid.equals(\"\")) {\r\n\t\t\t\trequest.setAttribute(\"msg\", \"课程号不能为空!\");\r\n\t\t\t\tlistCou(request, response);\r\n\t\t\t} else {\r\n\t\t\t\tCourse cou = course.findByCode(courseid);\r\n\t\t\t\tif (cou != null) {\r\n\t\t\t\t\trequest.setAttribute(\"CourseInfo\", cou);\r\n\t\t\t\t\trequest.getRequestDispatcher(\"CourseInfo/listOneCou.jsp\").forward(request, response);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trequest.setAttribute(\"msg\", \"找不到\");\r\n\t\t\t\t\tlistCou(request, response);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\r\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n /* TODO output your page here. You may use following sample code. */\r\n UserDAO userdao = new DaoImpl();\r\n int dsid = Integer.parseInt(request.getParameter(\"txtid\").trim());\r\n System.out.println(\"dsid is \"+dsid);\r\n String dData[]=userdao.getDisease(dsid);\r\n request.setAttribute(\"dsid\", dData[0]);\r\n request.setAttribute(\"dname\", dData[1]);\r\n request.setAttribute(\"symp\", dData[2]);\r\n request.setAttribute(\"prev\", dData[3]);\r\n request.setAttribute(\"cure\", dData[4]);\r\n \r\n RequestDispatcher rd = request.getRequestDispatcher(\"viewdisease.jsp\");\r\n rd.forward(request, response);\r\n \r\n }\r\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n /* TODO output your page here. You may use following sample code. */\n\n // CHECK OR NOT?\n String[] facility_list = request.getParameterValues(\"facility\");\n System.out.println(facility_list == null);\n int hawkercentre_check = 0;\n int childcare_check = 0;\n int chasclinic_check = 0;\n int mrtstation_check = 0;\n int primaryschool_check = 0;\n int shoppingcentre_check = 0;\n for (int p = 0; p < facility_list.length; p++) {\n String facility_name = facility_list[p];\n if (facility_name.equals(\"hawkercentre\")) {\n hawkercentre_check = 1;\n }\n if (facility_name.equals(\"childcare\")) {\n childcare_check = 1;\n }\n if (facility_name.equals(\"chasclinic\")) {\n chasclinic_check = 1;\n }\n if (facility_name.equals(\"mrtstation\")) {\n mrtstation_check = 1;\n }\n if (facility_name.equals(\"primaryschool\")) {\n primaryschool_check = 1;\n }\n if (facility_name.equals(\"shoppingcentre\")) {\n shoppingcentre_check = 1;\n }\n }\n\n // IF CHECK, HOW MANY?\n// String num_hawkercentre_str = String.valueOf(request.getParameter(\"num_hawkercentre\"));\n// String num_childcare_str = String.valueOf(request.getParameter(\"num_childcare\"));\n// String num_chasclinic_str = String.valueOf(request.getParameter(\"num_chasclinic\"));\n//\n// int num_hawkercentre = 1;\n// if (!num_hawkercentre_str.equals(\"null\")) {\n// num_hawkercentre = Integer.parseInt(num_hawkercentre_str);\n// }\n// int num_childcare = 1;\n// if (!num_childcare_str.equals(\"null\")) {\n// num_childcare = Integer.parseInt(num_childcare_str);\n// }\n// int num_chasclinic = 1;\n// if (!num_chasclinic_str.equals(\"null\")) {\n// num_chasclinic = Integer.parseInt(num_chasclinic_str);\n// }\n// int[] num_list = new int[3];\n// num_list[0] = num_hawkercentre;\n// num_list[1] = num_childcare;\n// num_list[2] = num_chasclinic;\n // IMPORTANCE / WEIGHT\n int hawkercentre_weight = Integer.parseInt(String.valueOf(request.getParameter(\"hawkercentre_select\")));\n int childcare_weight = Integer.parseInt(String.valueOf(request.getParameter(\"childcare_select\")));\n int chasclinic_weight = Integer.parseInt(String.valueOf(request.getParameter(\"chasclinic_select\")));\n int mrtstation_weight = Integer.parseInt(String.valueOf(request.getParameter(\"mrtstation_select\")));\n int primaryschool_weight = Integer.parseInt(String.valueOf(request.getParameter(\"primaryschool_select\")));\n int shoppingcentre_weight = Integer.parseInt(String.valueOf(request.getParameter(\"shoppingcentre_select\")));\n\n int[] weight_list = new int[6];\n weight_list[0] = hawkercentre_weight;\n weight_list[1] = childcare_weight;\n weight_list[2] = chasclinic_weight;\n weight_list[3] = mrtstation_weight;\n weight_list[4] = primaryschool_weight;\n weight_list[5] = shoppingcentre_weight;\n\n // REAL STUFF\n HexagonDAO hdao = new HexagonDAO();\n\n // retrieve all hexagons\n ArrayList<Hexagon> result = hdao.retrieve(facility_list);\n // pretty print and convert to string\n JsonArray hexagonList = hdao.toJSON(result, facility_list, weight_list);\n // get score distribution threshold\n double total_80 = hdao.return_80();\n double total_60 = hdao.return_60();\n double total_40 = hdao.return_40();\n double total_20 = hdao.return_20();\n // pretty print string\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String json = gson.toJson(hexagonList);\n\n // SEND RESULT BACK\n request.setAttribute(\"accessibility_result\", json);\n\n // ALSO, INCLUDE THRESHOLD VALUES FOR COLOUR SCHEME\n request.setAttribute(\"total_80\", total_80);\n request.setAttribute(\"total_60\", total_60);\n request.setAttribute(\"total_40\", total_40);\n request.setAttribute(\"total_20\", total_20);\n\n request.setAttribute(\"hawkercentre_check\", hawkercentre_check);\n request.setAttribute(\"childcare_check\", childcare_check);\n request.setAttribute(\"chasclinic_check\", chasclinic_check);\n request.setAttribute(\"mrtstation_check\", mrtstation_check);\n request.setAttribute(\"primaryschool_check\", primaryschool_check);\n request.setAttribute(\"shoppingcentre_check\", shoppingcentre_check);\n\n request.setAttribute(\"hawkercentre_weight\", hawkercentre_weight);\n request.setAttribute(\"childcare_weight\", childcare_weight);\n request.setAttribute(\"chasclinic_weight\", chasclinic_weight);\n request.setAttribute(\"mrtstation_weight\", mrtstation_weight);\n request.setAttribute(\"primaryschool_weight\", primaryschool_weight);\n request.setAttribute(\"shoppingcentre_weight\", shoppingcentre_weight);\n\n // SEND\n RequestDispatcher rd = request.getRequestDispatcher(\"Accessibility.jsp\");\n rd.forward(request, response);\n\n } catch (Exception e) {\n\n // Send error (if any) back to homepage\n request.setAttribute(\"error\", \"Please select at least one facility!\");\n RequestDispatcher rd = request.getRequestDispatcher(\"Accessibility.jsp\");\n rd.forward(request, response);\n } finally {\n out.close();\n }\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}",
"protected Object findInRequest(final HttpServletRequest request, final String attributName) {\r\n\r\n Object attr = request.getParameter(attributName);\r\n if (attr == null) {\r\n attr = request.getAttribute(attributName);\r\n }\r\n return attr;\r\n }",
"public final String getParameter(String name) {\n return getParameter(name, false);\n }",
"private void userRegister(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString name=request.getParameter(\"name\");\r\n\t\tString loginid=request.getParameter(\"loginid\");\r\n\t\tString pwd=request.getParameter(\"pwd\");\r\n\t\tString email=request.getParameter(\"email\");\r\n\t\tString addr=request.getParameter(\"address\");\r\n\t\tString phno=request.getParameter(\"phno\");\r\n\t\tUser u=new User(name,loginid,pwd,email,addr,phno);\r\n\t\tUserFunctions uf=new UserFunctionsImpl();\r\n\t\tString username=uf.register(u);\r\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"successregi.jsp\");\r\n\t\trequest.setAttribute(\"name\", username); \r\n dispatcher.forward(request, response);\r\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String name = (String)request.getAttribute(\"name\");\n if(name==null){\n RequestDispatcher rd1 = request.getRequestDispatcher(\"/Login.jsp\");\n rd1.forward(request, response);\n }\n List<Notes> notes;\n try{\n ArrayOfNotes notesobj = getNotes(name);\n notes = notesobj.getNotes(); \n }\n catch(Exception e){\n notes=null;\n }\n \n \n request.setAttribute(\"notes\", notes);\n request.setAttribute(\"name\", name);\n RequestDispatcher rd = request.getRequestDispatcher(\"/Home.jsp\");\n rd.forward(request, response);\n }",
"public String getParameter(String pname) {\n\t\treturn getParameter(pname, null);\n\t}",
"public abstract String toFORMParam();",
"public static DataBean getParameters(HttpServletRequest req) {\n DataBean result = new DataBean();\n\n Enumeration parameterNames = req.getParameterNames();\n\n if (parameterNames != null) {\n String tStr;\n String vStr;\n while (parameterNames.hasMoreElements()) {\n tStr = parameterNames.nextElement().toString();\n vStr = req.getParameter(tStr);\n\n if (vStr != null) {\n result.setValue(tStr, vStr);\n }\n }\n }\n\n return (result);\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t\trequest.setCharacterEncoding(\"utf-8\");\r\n\t\tString course=request.getParameter(\"course\");\r\n\t\tCoursedao dao=new CourseDaoImpl();\r\n\t\tList<Course> list=new ArrayList<Course>();\r\n\t\t list=dao.findCourse(course);\r\n\t\t System.out.println(course);\r\n\t\t\r\n\t\t request.getSession().setAttribute(\"list\", list);\r\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"/index.jsp\");\r\n\t\tdispatcher.forward(request, response);\r\n\t\t\t\r\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n\t\tPrintWriter out = resp.getWriter();\n\t\tresp.setContentType(\"text/html\");\n\t\tEnumeration<String> parametrNames = req.getParameterNames();\n\n\t\twhile (parametrNames.hasMoreElements()) {\n\t\t\tString parameterName = parametrNames.nextElement();\n\n\t\t\tif (\"subjects\".equals(parameterName)) {\n\t\t\t\tString paramValueArr[] = req.getParameterValues(parameterName);\n\n\t\t\t\tString vals = String.join(\",\", paramValueArr);\n\n\t\t\t\tout.println(\"<b>\" + parameterName + \"</b>--\" + vals + \"<br/>\");\n\t\t\t\tcontinue;\n\n\t\t\t}\n\n\t\t\tString paramValue = req.getParameter(parameterName);\n\n\t\t\tout.println(\"<b>\" + parameterName + \"</b>--\" + paramValue + \"<br/>\");\n\t\t}\n\t\t\n\t\tSimpleDateFormat ft = \n\t\t\t new SimpleDateFormat (\"E yyyy.MM.dd 'at' hh:mm:ss.S a zzz\");\n\t\t\n\t\tout.println(\"<b>Form submitted at: </b>\"+ft.format(new Date()));\n\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here---value-\");\n processRequest(request, response);\n \n }",
"private String getAppCookieValue(HttpServletRequest request) {\n Cookie[] cookies = request.getCookies();\n if (cookies != null) {\n for (Cookie cookie : cookies) {\n if(cookie.getName().equals(\"costsManager\"))\n return cookie.getValue();\n }\n }\n return \"\";\n }",
"public String getRequestName ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"getRequestName\", true);\n $in = _invoke ($out);\n String $result = $in.read_string ();\n return $result;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n return getRequestName ( );\n } finally {\n _releaseReply ($in);\n }\n }",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String celsius = req.getParameter(\"celsius\");\n\n try {\n double celsiusDouble = Double.parseDouble(celsius);\n double farenheit = 1.8 * celsiusDouble + 32;\n\n BigDecimal resultat = BigDecimal.valueOf(farenheit);\n resultat = resultat.setScale(2, RoundingMode.HALF_UP);\n\n //J'encapsule le resultat dans la requete en tant qu'attribut\n req.setAttribute(\"resultat\", resultat);\n } catch (NumberFormatException e) {\n req.setAttribute(\"error\", \"Erreur de saisie\");\n } finally {\n doGet(req, resp);\n }\n }",
"SearchUser.Req getSearchUserReq();",
"public void setCname(String cname) {\r\n this.cname = cname == null ? null : cname.trim();\r\n }"
] | [
"0.6663104",
"0.65345037",
"0.6397635",
"0.602725",
"0.5906632",
"0.5904827",
"0.5871605",
"0.5732176",
"0.56411856",
"0.5639123",
"0.5624434",
"0.5619733",
"0.56177455",
"0.55973583",
"0.55686116",
"0.5561156",
"0.5539737",
"0.553281",
"0.55315834",
"0.5531543",
"0.55057013",
"0.5476266",
"0.54719484",
"0.54681146",
"0.5456908",
"0.5455361",
"0.5441821",
"0.5420152",
"0.5346689",
"0.53351516",
"0.53271",
"0.53217214",
"0.5316335",
"0.53140265",
"0.53123754",
"0.5297339",
"0.5257519",
"0.5256742",
"0.52520007",
"0.52498764",
"0.52347845",
"0.5216749",
"0.52053887",
"0.5196746",
"0.51905304",
"0.5187032",
"0.51786494",
"0.5178374",
"0.5170969",
"0.5169247",
"0.5162424",
"0.5132459",
"0.5125169",
"0.5125169",
"0.5124702",
"0.5123865",
"0.51202846",
"0.51170415",
"0.5111456",
"0.510395",
"0.5103878",
"0.51013225",
"0.510024",
"0.51000494",
"0.50961375",
"0.5091723",
"0.50914955",
"0.50887835",
"0.50887835",
"0.5076357",
"0.5067477",
"0.50554097",
"0.5054591",
"0.5053655",
"0.5048246",
"0.50466037",
"0.50303787",
"0.5029648",
"0.5024694",
"0.50223064",
"0.5018369",
"0.5012427",
"0.5007256",
"0.50027287",
"0.49986687",
"0.49978298",
"0.49955392",
"0.49937138",
"0.49930328",
"0.49785545",
"0.49722466",
"0.49650297",
"0.49643144",
"0.49630305",
"0.4961923",
"0.49581748",
"0.49528003",
"0.49523374",
"0.4949991",
"0.49427512",
"0.49413708"
] | 0.0 | -1 |
Generate a string that lists all parameters. Subclasses should override this to add their own parameters. | public String toString() {
String contents = "";
if (scenario != null) {
if (controller.getWorld().getHasScenarios()) {
contents += "Scenario: " + scenario + "\n";
}
contents += "Number of runs: " + numOfRuns + "\n";
contents += "Trial duration: " + trialDuration + "\n";
contents += "Number of trials: " + numOfTrials + "\n";
}
return contents;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString(){\r\n\t\t\r\n\t\tString x =\"\";\r\n\t\t\r\n\t\tfor(int i=0; i < param.size() ; i++ ){\r\n\t\t\t\r\n\t\t\tx += param.get(i) + \"\\n\" ; \r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn x;\r\n\t}",
"public String toString() {\n return getClass().getName() + \"[\" + paramString() + \"]\";\n }",
"public String parameterListToString(){\n StringBuilder sb = new StringBuilder();\n for (String parameter : parameterList){\n sb.append(parameter);\n if (!parameter.equals(parameterList.get(parameterList.size() - 1))){\n sb.append(\", \");\n }\n }\n return sb.toString();\n }",
"protected String paramString() {\n return super.paramString() + \",\" + \"caretColor=\" + caretColor + \",\"\n + \"disabledTextColor=\" + disabledTextColor + \",\" + \"editable=\"\n + isEditable + \",\" + \"margin=\" + margin + \",\"\n + \"selectedTextColor=\" + selectedTextColor + \",\"\n + \"selectionColor=\" + selectionColor;\n\n }",
"public String toString() {\n\t\treturn this.getName() + m_parameterString;\n\t}",
"public String paramString() {\n\t\tString tail = super.paramString();\n\t\ttail = tail.substring(tail.indexOf(')') + 1);\n\t\treturn \"points=\" + points + \", lineWidth=\" + getLineWidth() + tail;\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getParameterGroupName() != null) sb.append(\"ParameterGroupName: \" + getParameterGroupName() + \",\");\n if (getMaxRecords() != null) sb.append(\"MaxRecords: \" + getMaxRecords() + \",\");\n if (getMarker() != null) sb.append(\"Marker: \" + getMarker() + \",\");\n if (getTagKeys() != null) sb.append(\"TagKeys: \" + getTagKeys() + \",\");\n if (getTagValues() != null) sb.append(\"TagValues: \" + getTagValues() );\n sb.append(\"}\");\n return sb.toString();\n }",
"public String getScriptOfParameters() {\r\n\t\tString str = \"\";\r\n\r\n\t\tfor (DataVariable var : dataTestModel) {\r\n\t\t\tstr += var.getName() + \",\";\r\n\t\t}\r\n\t\tif (str.endsWith(\",\")) {\r\n\t\t\tstr = str.substring(0, str.length() - 1);\r\n\t\t}\r\n\t\treturn str;\r\n\t}",
"protected String paramString() {\n String horizontalAlignmentString;\n if (horizontalAlignment == LEFT) {\n\t horizontalAlignmentString = \"LEFT\";\n\t} else if (horizontalAlignment == CENTER) {\n\t horizontalAlignmentString = \"CENTER\";\n\t} else if (horizontalAlignment == RIGHT) {\n\t horizontalAlignmentString = \"RIGHT\";\n\t} else if (horizontalAlignment == LEADING) {\n\t horizontalAlignmentString = \"LEADING\";\n\t} else if (horizontalAlignment == TRAILING) {\n\t horizontalAlignmentString = \"TRAILING\";\n\t} else horizontalAlignmentString = \"\";\n String commandString = (command != null ?\n\t\t\t\tcommand : \"\");\n\n return super.paramString() +\n \",columns=\" + columns +\n \",columnWidth=\" + columnWidth +\n \",command=\" + commandString +\n \",horizontalAlignment=\" + horizontalAlignmentString;\n }",
"@Override\n public String toString()\n {\n final StringBuilder sb = new StringBuilder(12);\n sb.append('(');\n sb.append(this.parameter.toString());\n sb.append(\")%\");\n return sb.toString();\n }",
"@Override\r\n public String toString() {\r\n return \"Parameter Code: \" + this.code + \"\\nDescription: \" + this.description + \"\\nCategory Description: \" + this.categoryDescription;\r\n }",
"public String getParameters() {\r\n\t\t\r\n\t\tString strLength = String.valueOf(length);\r\n\t\tString strWidth = String.valueOf(width);\r\n\t\tString strHeight = String.valueOf(height);\r\n\t\t\r\n\t\treturn \"Length: \" + strLength + \"\\nWidth: \" + strWidth + \"\\nHeight: \" + strHeight;\r\n\t}",
"String getParamsAsString();",
"public String toString() {\r\n\r\n StringBuffer sb = new StringBuffer();\r\n sb.append('(');\r\n for (int i = 0; i < parameterCount; i++) {\r\n if (i != 0)\r\n sb.append(\", \");\r\n\r\n if (returnType == null) {\r\n // This is a PROCEDURE. We only want to print the\r\n // parameter mode (ex. \"IN\", \"OUT\", \"INOUT\") for procedures--\r\n // we don't do it for functions since use of the \"IN\" keyword\r\n // is not part of the FUNCTION syntax.\r\n sb.append(parameterMode(parameterModes[i]));\r\n sb.append(' ');\r\n }\r\n if (parameterNames[i] != null) {\r\n sb.append(parameterNames[i]);\r\n sb.append(' ');\r\n }\r\n sb.append(parameterTypes[i].getSQLstring());\r\n }\r\n sb.append(')');\r\n\r\n if (returnType != null) {\r\n // this a FUNCTION, so syntax requires us to append the return type.\r\n sb.append(\" RETURNS \" + returnType.getSQLstring());\r\n }\r\n\r\n sb.append(\" LANGUAGE \");\r\n sb.append(language);\r\n\r\n if (parameterStyle != null) {\r\n sb.append(\" PARAMETER STYLE \" );\r\n sb.append(parameterStyle);\r\n }\r\n \r\n if (deterministic) { \r\n sb.append(\" DETERMINISTIC \"); \r\n }\r\n\r\n if (definersRights) { \r\n sb.append(\" EXTERNAL SECURITY DEFINER\"); \r\n }\r\n\r\n if (sqlAllowed != null) {\r\n sb.append(\" \");\r\n sb.append(sqlAllowed.getSQL());\r\n }\r\n if ((returnType == null) &&\r\n (dynamicResultSets != 0)) {\r\n // Only print dynamic result sets if this is a PROCEDURE\r\n // because it's not valid syntax for FUNCTIONs.\r\n sb.append(\" DYNAMIC RESULT SETS \");\r\n sb.append(dynamicResultSets);\r\n }\r\n\r\n if (returnType != null) {\r\n // this a FUNCTION, so append the syntax telling what to\r\n // do with a null parameter.\r\n sb.append(calledOnNullInput ? \" CALLED \" : \" RETURNS NULL \");\r\n sb.append(\"ON NULL INPUT\");\r\n }\r\n \r\n return sb.toString();\r\n }",
"public abstract String paramsToString();",
"public String dumpServiceParameters() {\n String[] arr = this.getParameterArr();\n StringBuffer buf = new StringBuffer();\n buf.append(this.className);\n if (arr.length > 0) buf.append(',');\n\n char ch = ',';\n for (int i=0; i< arr.length; i++) {\n buf.append(arr[i]);\n if (ch == ',') ch ='='; else ch = ',';\n if (i !=arr.length-1) buf.append(ch);\n }\n return buf.toString();\n }",
"public String getParamDefs() {\r\n return super.getParamDefs() + \", \" + SampledPolicy.paramNameTypes;\r\n }",
"@JsonIgnore\r\n\tpublic String getParameterValuesAsString() {\r\n\t\tif (parameterValues == null || parameterValues.isEmpty()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tIterator it = parameterValues.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tString aValue = (String) it.next();\r\n\t\t\tbuffer.append(aValue);\r\n\t\t\tif (it.hasNext()) {\r\n\t\t\t\tbuffer.append(\";\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn buffer.toString();\r\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getHeaderParameters() != null)\n sb.append(\"HeaderParameters: \").append(getHeaderParameters()).append(\",\");\n if (getQueryStringParameters() != null)\n sb.append(\"QueryStringParameters: \").append(getQueryStringParameters()).append(\",\");\n if (getBodyParameters() != null)\n sb.append(\"BodyParameters: \").append(getBodyParameters());\n sb.append(\"}\");\n return sb.toString();\n }",
"private String createBasicParameterRepresentation(\n BaseSignatureTestData baseData) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"<dl>\");\n sb.append(createDescription(\"Input file\", baseData.getPdfFile()));\n sb.append(createDescription(\"Output file\", baseData.getOutputFile()));\n sb.append(createDescription(\"Signature profile\", baseData.getProfilID()));\n sb.append(createDescription(\"Connector Type\", baseData\n .getConnectorData().getConnectorType()));\n if (baseData.getConnectorData().getConnectorParameters().size() > 0) {\n StringBuilder connectorParameters = new StringBuilder();\n connectorParameters.append(\"<dl class=\\\"dl-horizontal\\\">\");\n for (Entry<String, String> e : baseData.getConnectorData()\n .getConnectorParameters().entrySet())\n connectorParameters.append(createDescription(e.getKey(),\n e.getValue()));\n connectorParameters.append(\"</dl>\");\n sb.append(createDescription(\"Connector Parameters\",\n connectorParameters.toString()));\n }\n sb.append(createDescription(\"Test Type\", getTestType()));\n sb.append(\"</dl>\");\n return sb.toString();\n }",
"public String getParamDefs() {\n return super.getParamDefs() + \", \" + PlainValueFunction.paramNameTypes;\n }",
"ParameterList getParameters();",
"private static String actualParametersToString(Class[] pts) {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < pts.length; i++) {\n result.append(\"p\").append(i);\n if (i < pts.length - 1)\n result.append(\",\");\n }\n return result.toString();\n }",
"private void listParameters(JavaSamplerContext context)\n {\n if (getLogger().isDebugEnabled())\n {\n Iterator argsIt = context.getParameterNamesIterator();\n while (argsIt.hasNext())\n {\n String name = (String) argsIt.next();\n getLogger().debug(name + \"=\" + context.getParameter(name));\n }\n }\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn MoreObjects.toStringHelper(this) //\r\n\t\t\t\t.add(\"id\", getId()) //\r\n\t\t\t\t.add(\"parameter\", getParameter()) //\r\n\t\t\t\t.add(\"value\", getValue()) //\r\n\t\t\t\t.add(\"hieraAddress\", getHieraAddress()) //\r\n\t\t\t\t.toString();\r\n\t}",
"private String buildParams(){\n HashMap<String,String> items = new HashMap<>();\n if(paramValid(param1name,param1value))\n items.put(param1name,param1value);\n if(paramValid(param2name,param2value))\n items.put(param2name,param2value);\n if(paramValid(param3name,param3value))\n items.put(param3name,param3value);\n return JsonOutput.toJson(items);\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getInvalidLabels() != null)\n sb.append(\"InvalidLabels: \").append(getInvalidLabels()).append(\",\");\n if (getParameterVersion() != null)\n sb.append(\"ParameterVersion: \").append(getParameterVersion());\n sb.append(\"}\");\n return sb.toString();\n }",
"@Override\n public String getParameters() {\n return parameters;\n }",
"public String toString()\r\n {\r\n StringBuffer buffer = new StringBuffer(30);\r\n\r\n buffer.append(this.url);\r\n\r\n if (this.parameters.size() > 0)\r\n {\r\n buffer.append('?');\r\n Set parameterSet = this.parameters.entrySet();\r\n\r\n Iterator iterator = parameterSet.iterator();\r\n\r\n while (iterator.hasNext())\r\n {\r\n Map.Entry entry = (Map.Entry) iterator.next();\r\n\r\n Object key = entry.getKey();\r\n Object value = entry.getValue();\r\n\r\n if (value == null)\r\n {\r\n buffer.append(key).append('='); // no value\r\n }\r\n else if (value.getClass().isArray())\r\n {\r\n Object[] values = (Object[]) value;\r\n for (int i = 0; i < values.length; i++)\r\n {\r\n if (i > 0)\r\n {\r\n buffer.append(TagConstants.AMPERSAND);\r\n }\r\n\r\n buffer.append(key).append('=').append(values[i]);\r\n }\r\n }\r\n else\r\n {\r\n buffer.append(key).append('=').append(value);\r\n }\r\n\r\n if (iterator.hasNext())\r\n {\r\n buffer.append(TagConstants.AMPERSAND);\r\n }\r\n }\r\n }\r\n\r\n if (this.anchor != null)\r\n {\r\n buffer.append('#');\r\n buffer.append(this.anchor);\r\n }\r\n\r\n return buffer.toString();\r\n }",
"@Override\r\n\tpublic java.lang.String toString()\r\n\t{\r\n\t\treturn \"appendParamToUrl\";\r\n\t}",
"@Override\n\tprotected String getParameters()\n\t{\n\t\tString fields = \" ?, ?, ?, ?, ? \";\n\t\treturn fields;\n\t}",
"@Override\n\tprotected String getParameters()\n\t{\n\t\tString fields = \" ?, ?, ?, ?, ?, ? \";\n\t\treturn fields;\n\t}",
"java.util.List<gen.grpc.hospital.examinations.Parameter> \n getParameterList();",
"public String getAllParam() { return this.allParam; }",
"@Override\n public String toString() {\n if (this.map.getMap().isEmpty()) return \"\";\n final StringBuilder param = new StringBuilder(this.map.getMap().size() * 40);\n for (final Map.Entry<String, String> entry: entrySet()) {\n param.append(MultiProtocolURL.escape(entry.getKey()))\n .append('=')\n .append(MultiProtocolURL.escape(entry.getValue()))\n .append('&');\n }\n param.setLength(param.length() - 1);\n return param.toString();\n }",
"private static String formalParametersToString(Class[] pts) {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < pts.length; i++) {\n result.append(getTypeName(pts[i])).append(\" p\").append(i);\n if (i < pts.length - 1)\n result.append(\",\");\n }\n return result.toString();\n }",
"public final String getKeys() {\n StringBuilder sb = new StringBuilder();\n boolean append = false;\n for (Key key : this.parameters.keySet()) {\n if (append)\n sb.append(\",\");\n sb.append(key);\n append = true;\n }\n return sb.toString();\n }",
"public String getParamString() {\n\t\tStringBuilder s = new StringBuilder();\n\t\tif (!((image instanceof SATImage ) ||\n\t\t\t\t(image instanceof IMAImage ))) {\n\t\t\ts.append(super.getParamString());\n\t\t} \n\t\ts.append(stringShort);\n\t\ts.append(\"(\");\n\t\ts.append(\")\");\n\t\treturn s.toString();\n\t}",
"public List<String> getParametersLabel() {\n\t\treturn PARAMETERS;\n\t}",
"public synchronized String toString() {\n StringBuffer oBuffer = new StringBuffer();\n\n oBuffer\n .append(\"Preprocessing params: \").append(this.oPreprocessingParams).append(\"\\n\")\n .append(\"Feature extraction params: \").append(this.oFeatureExtractionParams).append(\"\\n\")\n .append(\"Classification params: \").append(this.oClassificationParams);\n\n return oBuffer.toString();\n }",
"List<PowreedCommandParameter> getParameters();",
"public String getParameters() {\n if (parameters == null) {\n return null;\n }\n return new JSONObject(parameters).toString();\n }",
"public String getParameters() {\n return this.Parameters;\n }",
"String getExampleParameters();",
"String [] getParameters();",
"public String toString() {\n final StringBuffer sb = new StringBuffer();\n sb.append(\"\\n [ Id: \" + id + \" ]\");\n sb.append(\"\\n [ ClassName: \" + className + \" ]\");\n sb.append(\"\\n [ MethodName : \" + methodName + \" ]\");\n if (bextraInfo) {\n for (int i = 0; i < extraInfo.length; i++) {\n sb.append(\n \"\\n [ Parameter \" + i + \" : \" + extraInfo[i]\n + \" ]\");\n }\n }\n sb.append(\"\\n [ Calendar: \" + cal + \" ]\");\n sb.append(\"\\n [ TimeMillis: \" + timeMillis + \" ] \");\n sb.append(\"\\n \");\n return sb.toString();\n }",
"public String parameterDetails()\r\n\t{\r\n\t\treturn m_ls.parameterDetails();\r\n\t}",
"private void printParams(Object... params) {\n if (params != null) {\n String paramsStr = \"\";\n for (Object o : params) {\n if (o == null) {\n paramsStr += \"null;\";\n } else {\n paramsStr += (o.toString() + \";\");\n }\n }\n logger.debug(\"PARAMETERS=[\" + paramsStr + \"]\");\n }\n }",
"java.util.List<datawave.webservice.query.QueryMessages.QueryImpl.Parameter> getParametersList();",
"private String constructGeneralArgs() {\n StringBuilder cmd = new StringBuilder();\n\n cmd.append(size).append(ExternalExecutor.TOKEN_SEP);\n\n cmd.append(writeDataPipeFile).append(ExternalExecutor.TOKEN_SEP);\n cmd.append(readDataPipeFile).append(ExternalExecutor.TOKEN_SEP);\n\n cmd.append(writePipeFiles.length).append(ExternalExecutor.TOKEN_SEP);\n for (int i = 0; i < writePipeFiles.length; ++i) {\n cmd.append(writePipeFiles[i]).append(ExternalExecutor.TOKEN_SEP);\n }\n\n cmd.append(readPipeFiles.length).append(ExternalExecutor.TOKEN_SEP);\n for (int i = 0; i < readPipeFiles.length; ++i) {\n cmd.append(readPipeFiles[i]).append(ExternalExecutor.TOKEN_SEP);\n }\n\n return cmd.toString();\n }",
"java.util.List<com.google.cloud.commerce.consumer.procurement.v1.Parameter> getParametersList();",
"public void printParameterListToOut(Vector<ProcedureParameter> list) {\r\n\t\tfinal char delimiter = ':';\r\n\t\tfor (ProcedureParameter procedureParameter : list) {\r\n\t\t\tSystem.out.println(paramTag + procedureParameter.name + delimiter\r\n\t\t\t\t\t+ procedureParameter.dataType + delimiter\r\n\t\t\t\t\t+ procedureParameter.defaultvalue);\r\n\t\t}\r\n\r\n\r\n\t\t//\t\tEnumeration<ProcedureParameter> en = list.elements();\r\n\t\t//\t\twhile (en.hasMoreElements()) {\r\n\t\t//\t\t\tProcedureParameter procedureParameter = (ProcedureParameter) en\r\n\t\t//\t\t\t\t\t.nextElement();\r\n\t\t//\t\t\tSystem.out.println(paramTag + procedureParameter.name + delimiter\r\n\t\t//\t\t\t\t\t+ procedureParameter.dataType + delimiter\r\n\t\t//\t\t\t\t\t+ procedureParameter.defaultvalue);\r\n\t\t//\t\t}\r\n\t}",
"public String generateQueryParams() {\n if (petition.getParamsMap().entrySet().size() == 0)\n return \"\";\n else {\n boolean first = true;\n StringBuffer queryParams = new StringBuffer(\"?\");\n Iterator<Map.Entry<String, String>> it = petition.getParamsMap()\n .entrySet().iterator();\n // just iterate the map and fill the httpParams with its content\n while (it.hasNext()) {\n if (!first)\n queryParams.append(\"&\");\n else\n first = false;\n Map.Entry<String, String> e = (Entry<String, String>) it.next();\n String key = URLEncoder.encode(e.getKey());\n String value = URLEncoder.encode(e.getValue());\n queryParams.append(String.format(\"%s=%s\", key, value));\n\n }\n return queryParams.toString();\n }\n }",
"private String createCustomInfoString() {\r\n String CustomInfo = \"\";\r\n Iterator<String> iterator = mCustomParameters.keySet().iterator();\r\n while (iterator.hasNext()) {\r\n String CurrentKey = iterator.next();\r\n String CurrentVal = mCustomParameters.get(CurrentKey);\r\n CustomInfo += CurrentKey + \" = \" + CurrentVal + \"\\n\";\r\n }\r\n return CustomInfo;\r\n }",
"public void logParameters() {\n logWriter.add(\"Particle Swarm Optimization Algorithm\");\n logWriter.add(\"Parameters\");\n logWriter.add((String)(\"MAX_LENGTH/N: \"+MAX_LENGTH));\n logWriter.add((String)(\"STARTING_POPULATION: \"+pso.getParticleCount()));\n logWriter.add((String)(\"MAX_EPOCHS: \"+pso.getMaxEpoch()));\n logWriter.add((String)(\"MAX_VELOCITY: \"+pso.getVmax()));\n logWriter.add((String)(\"MINIMUM_SHUFFLES: \"+pso.getShuffleMin()));\n logWriter.add((String)(\"MAXIMUM_SHUFFLES: \"+pso.getShuffleMax()));\n logWriter.add(\"\");\n\t}",
"public String printList() {\n\n\t\treturn plan.toString();\n\t}",
"private void listParameters(String methodName, JavaSamplerContext context) {\n\t\tIterator<String> iter = context.getParameterNamesIterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tString name = iter.next();\n\t\t\tlog.debug(\"inside {}, name {} = {}\",\n\t\t\t\t\tnew Object[] { methodName, name, context.getParameter(name) });\n\t\t}\n\t}",
"private String getJobContextParams(Set<Entry<String, Object>> params) {\n\n\t\tStringBuilder protocol = new StringBuilder();\n\t\tprotocol.append(\"Contenxt Parameters: \\n\");\n\t\tfor (Entry<String, Object> entry : params) {\n\t\t\tprotocol.append(\" \").append(entry.getKey()).append(\"=\").append(entry.getValue()).append(\"\\n\");\n\t\t}\n\n\t\tprotocol.append(\"+++++++++++++++++++++++++++++++++++++++++++++++++++++++ \\n\");\n\n\t\treturn protocol.toString();\n\t}",
"@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(accessType.toString());\n if(staticMethod)\n builder.append(\" static \");\n else\n builder.append(\" \");\n builder.append(returnTypeName);\n builder.append(\" \");\n builder.append(name);\n builder.append(\"(\");\n if(arguments != null) {\n Iterator<String> it = arguments.iterator();\n if(it.hasNext()) {\n builder.append(it.next());\n }\n while(it.hasNext()) {\n builder.append(\", \");\n builder.append(it.next());\n }\n }\n builder.append(\")\");\n return builder.toString().trim();\n }",
"private String addOptions() {\n\t\tStringBuilder tag = new StringBuilder();\n\t\tint OptionsNumber = Integer.parseInt(parameters[0]);\n\t\t// Nine Parameters: OptionsNumber, Option1, Option1Tag, Option2, Option2Tag, Option3, Option3Tag, Option4, Option4Tag\n\t\t// Minimum Three Parameters, Maximum Nine\n\t\t// If OptionsNumber = 1, Use Option1 and Option1Tag only. If OptionsNumber = 2, Use Option1 and Option2.\n\t\ttag.append(\"options:[\");\n\t\ttag.append(\"[\" + parameters[1] + \"|\" + parameters[2] + \"]\");\n\t\tif (OptionsNumber > 1) {\n\t\t\ttag.append(\", [\" + parameters[3] + \"|\" + parameters[4] + \"]\");\n\t\t}\n\t\tif (OptionsNumber > 2) {\n\t\t\ttag.append(\", [\" + parameters[5] + \"|\" + parameters[6] + \"]\");\n\t\t}\n\t\tif (OptionsNumber > 3) {\n\t\t\ttag.append(\", [\" + parameters[7] + \"|\" + parameters[8] + \"]\");\n\t\t}\n\t\ttag.append(\"]\");\n\t\treturn tag.toString();\n\n\t}",
"public String getParameters() {\n\t\treturn this.appTda_.getParameters();\n\t}",
"java.lang.String getParameterValue();",
"public Collection<String> getParamNames();",
"@Override\n\tpublic String toString() {\n\t\treturn \"{\" + Strings.join(\",\", keyValuePair) + \"}\";\n\t}",
"public String[] getParameters() {\r\n return parameters;\r\n }",
"@Override\n protected String getName() {return _parms.name;}",
"public String getVariablesInternal() {\n StringBuilder b = new StringBuilder();\n JTable table = m_table.getTable();\n int numRows = table.getModel().getRowCount();\n\n for (int i = 0; i < numRows; i++) {\n String paramName = table.getValueAt(i, 0).toString();\n String paramValue = table.getValueAt(i, 1).toString();\n if (paramName.length() > 0 && paramValue.length() > 0) {\n b.append(paramName).append(SetVariables.SEP2).append(paramValue);\n }\n if (i < numRows - 1) {\n b.append(SetVariables.SEP1);\n }\n }\n\n return b.toString();\n }",
"public ArrayList<String> getParameterValues() { return this.params; }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getFilterId() != null)\n sb.append(\"FilterId: \").append(getFilterId()).append(\",\");\n if (getColumn() != null)\n sb.append(\"Column: \").append(getColumn()).append(\",\");\n if (getValue() != null)\n sb.append(\"Value: \").append(getValue()).append(\",\");\n if (getParameterName() != null)\n sb.append(\"ParameterName: \").append(getParameterName()).append(\",\");\n if (getTimeGranularity() != null)\n sb.append(\"TimeGranularity: \").append(getTimeGranularity());\n sb.append(\"}\");\n return sb.toString();\n }",
"public List getParameterValuesDescription() {\r\n\t\treturn parameterValuesDescription;\r\n\t}",
"public String[] getParameters() {\n return parameters;\n }",
"@Override\n public String toString() {\n return Helper.concat(this.getClass().getName(), \"{\",\n \"id:\", getId(),\n \", name:\", getName(),\n \", positions:\", positions,\n \", resourceRoles:\", resourceRoles,\n \"}\");\n }",
"@Override\n public String toString() { \n return super.getName() + getP1().toString() + \", \" + getP2().toString() \n + \", \" + getP3().toString();\n }",
"private String getSuperMethodCallParameters(ExecutableElement sourceMethod) {\n return sourceMethod\n .getParameters()\n .stream()\n .map(parameter -> parameter.getSimpleName().toString())\n .collect(Collectors.joining(\", \"));\n }",
"public String toString(){ \n //--------------------------------------------------------------------------- \n StringBuffer buffer=new StringBuffer(\"*****GeneratorProperties:\"); \n buffer.append(\"\\tdatabaseDriver\"+databaseDriver); \n buffer.append(\"\\turlString\"+urlString); \n buffer.append(\"\\tuserName=\"+userName); \n buffer.append(\"\\tpassword=\"+password); \n buffer.append(\"\\tpackageName=\"+packageName); \n buffer.append(\"\\toutputDirectory=\"+outputDirectory); \n buffer.append(\"\\tjarFilename=\"+jarFilename); \n buffer.append(\"\\twhereToPlaceJar=\"+whereToPlaceJar); \n buffer.append(\"\\ttmpWorkDir=\"+tmpWorkDir); \n buffer.append(\"\\taitworksPackageBase=\"+aitworksPackageBase); \n buffer.append(\"\\tincludeClasses=\"+includeClasses); \n buffer.append(\"\\tincludeSource=\"+includeSource); \n buffer.append(\"\\tgeneratedClasses=\"+generatedClasses); \n return buffer.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getName() != null)\n sb.append(\"Name: \").append(getName()).append(\",\");\n if (getOptional() != null)\n sb.append(\"Optional: \").append(getOptional()).append(\",\");\n if (getKey() != null)\n sb.append(\"Key: \").append(getKey()).append(\",\");\n if (getNoEcho() != null)\n sb.append(\"NoEcho: \").append(getNoEcho()).append(\",\");\n if (getQueryable() != null)\n sb.append(\"Queryable: \").append(getQueryable()).append(\",\");\n if (getDescription() != null)\n sb.append(\"Description: \").append(getDescription());\n sb.append(\"}\");\n return sb.toString();\n }",
"public String[] getParameters() {\n\t\treturn parameters;\n\t}",
"public String toString() {\n \t\tStringBuffer retval = new StringBuffer();\r\n \t\tretval.append(address.toString());\r\n \t\tif ( parameters.size() != 0 ) retval.append(\";\").append(parameters.toString());\r\n \t\treturn retval.toString();\r\n \t}",
"@Override\n public String toString() {\n return \"DatasetParameterPK[units=\" + units + \", name=\" + name + \", datasetId=\" + datasetId + \"]\";\n }",
"public String getParams() {\r\n\t\treturn this.params;\r\n\t}",
"default String toHelpString() {\n // Builder\n StringBuilder builder = new StringBuilder();\n // Name\n builder.append(ChatColor.RED).append(getName()).append(\" \");\n // Parameter\n Iterator<PowreedCommandParameter> iterator = this.getParameters().iterator();\n while (iterator.hasNext()) {\n PowreedCommandParameter next = iterator.next();\n\n if (next.isRequired()) {\n builder.append(ChatColor.GOLD).append(\"<\").append(next.getName()).append(\">\");\n } else {\n builder.append(ChatColor.DARK_GRAY).append(\"[\").append(next.getName()).append(\"]\");\n }\n\n if (iterator.hasNext()) {\n builder.append(\" \");\n }\n }\n // Description\n builder.append(ChatColor.RED).append(\": \").append(ChatColor.GRAY).append(getDescription());\n // Return to string\n return builder.toString();\n }",
"java.util.List<com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCParameter> \n getParamsList();",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getInput() != null)\n sb.append(\"Input: \").append(getInput()).append(\",\");\n if (getOutput() != null)\n sb.append(\"Output: \").append(getOutput());\n sb.append(\"}\");\n return sb.toString();\n }",
"public String toString() {\n\t\tboolean first = true;\n\t\tStringWriter buf = new StringWriter();\n\t\tbuf.append('[');\n\t\tfor(String value : values) {\n\t\t\tif(first) { first = false; } else { buf.append(\",\"); }\n\t\t\tbuf.append(value);\n\t\t}\n\t\tbuf.append(']');\n\t\treturn buf.toString();\t\t\n\t}",
"private static final List<ParameterImpl> createParameters() {\n\t\tParameterImpl initialize = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Initialize\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"INITIALIZE\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"true\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl run = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Run\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"RUN\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"true\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl duration = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Duration (minutes)\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"DURATION\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"number\")\n\t\t\t\t.setDefaultValue(\"0\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl retrieveData = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Retrieve Data\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"RETRIEVE_DATA\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"true\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl cleanup = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Cleanup\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"CLEANUP\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"true\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl cancel = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Cancel\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"CANCEL\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"false\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\treturn Arrays.asList(initialize, run, duration, retrieveData, cleanup, cancel);\n\t}",
"public String toString() {\n\t\tString str = \"(\";\n\t\tif (this.title != null)\n\t\t\tstr += this.title;\n\t\telse if (this.varName != null)\n\t\t\tstr += this.varName;\n\t\tif (this.minVal != null)\n\t\t\tstr += \",\" + this.minVal;\n\t\tif (this.curVal != null)\n\t\t\tstr += \",\" + this.curVal;\n\t\tif (this.maxVal != null)\n\t\t\tstr += \",\" + this.maxVal;\n\t\tstr += \")\";\n\t\treturn str;\n\t}",
"private static String buildParamsId(List<String> params){\n return String.join(\"#\", params);\n }",
"public void genC(PW pw) {\n \tfor(Variable var: paramList) {\r\n \t\tpw.print(var.getType().getCname() + \" _\" + var.getName());\r\n \t\tif(var != paramList.get(getSize() - 1)) {\r\n \t\t\tpw.print(\", \");\r\n \t\t}\r\n \t}\r\n }",
"public String toString()\n {\n StringBuffer buffer = new StringBuffer();\n buffer.append(getClass().getName());\n buffer.append(\"[name=\").append(name);\n buffer.append(\";failed=\").append(failed);\n buffer.append(\";inQuestion=\").append(inQuestion);\n buffer.append(\";results={\").append(list).append(\"}]\");\n return buffer.toString();\n }",
"public String toString() {\n StringBuffer buf = new StringBuffer();\n\n // Append context-path\n buf.append(contextPath);\n\n // Append real path (path besides control params, think \"niceuri\")\n if (realPath != null) {\n buf.append(realPath);\n }\n\n // Append \"control-parameters\"\n if (!pathParams.isEmpty()) {\n buf.append(\"/\");\n for (Iterator iter = pathParams.keySet().iterator(); iter.hasNext();) {\n String name = (String) iter.next();\n String[] values = (String[]) pathParams.get(name);\n buf.append(name);\n buf.append(\"/\");\n buf.append(PathParser.encodeValues(values));\n\n if (iter.hasNext()) {\n buf.append(\"/\");\n }\n }\n }\n\n // Append servlet-path (infoglue-action)\n if (webWorkAction != null) {\n buf.append(\"/\");\n buf.append(webWorkAction);\n }\n\n // Append query-parameters\n if (!queryParams.isEmpty()) {\n buf.append(\"?\");\n for (Iterator iter = queryParams.keySet().iterator(); iter.hasNext();) {\n // Iterating over names\n String name = (String) iter.next();\n String[] values = (String[]) queryParams.get(name);\n for (int i = 0; i < values.length; i++) {\n // Iterating over values\n buf.append(name);\n buf.append(\"=\");\n buf.append(values[i]);\n if (i < values.length - 1) {\n buf.append(\"&\");\n }\n }\n if (iter.hasNext()) {\n buf.append(\"&\");\n }\n }\n }\n\n // Append local navigation (reference)\n if (local != null && local.length() > 0) {\n buf.append(\"#\");\n buf.append(local);\n }\n if (log.isDebugEnabled()) {\n log.debug(\"Generated URL: \" + buf.toString());\n }\n return buf.toString();\n }",
"public String toString() {\n String output = this.name + \"(\";\n for (int i = 0; i < attributes.size(); i++) {\n output = output + attributes.get(i) + \":\" + domains.get(i);\n // Don't add a comma on the last key, value pair\n if (i < attributes.size() - 1)\n output = output + \",\";\n }\n return output + \")\";\n }",
"@Override\n\t\tpublic Enumeration getParameterNames() {\n\t\t\treturn null;\n\t\t}",
"public Map getParameters();",
"public Parameters getParameters();",
"public ArrayList getParameters() {\n return parameters;\n }",
"public List<Parameter> getParamters() {\r\n return this.lstParameters;\r\n }",
"public String toString()\r\n\t{\r\n\t\tStringBuffer strBuffer = new StringBuffer();\r\n\t\tstrBuffer.append(\"{\");\r\n\t\tstrBuffer.append(\"criteriaType:\");\r\n\t\tstrBuffer.append(getCriteriaType());\r\n\t\tstrBuffer.append(\",criteriaValues:\");\r\n\t\tstrBuffer.append(getCriteriaValues());\r\n\t\tstrBuffer.append(\"}\");\r\n\t\treturn strBuffer.toString();\r\n\t}",
"@Override\n public String toString()\n {\n return id + \"*\" + name + \"|\" + lat + \"&\"+lon + \"\\n\";\n }",
"void compileParameterList() {\n tagBracketPrinter(PAR_LIST_TAG, OPEN_TAG_BRACKET);\n try {\n compileParameterListHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(PAR_LIST_TAG, CLOSE_TAG_BRACKET);\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getBatchSize() != null)\n sb.append(\"BatchSize: \").append(getBatchSize()).append(\",\");\n if (getCredentials() != null)\n sb.append(\"Credentials: \").append(getCredentials()).append(\",\");\n if (getMaximumBatchingWindowInSeconds() != null)\n sb.append(\"MaximumBatchingWindowInSeconds: \").append(getMaximumBatchingWindowInSeconds()).append(\",\");\n if (getServerRootCaCertificate() != null)\n sb.append(\"ServerRootCaCertificate: \").append(getServerRootCaCertificate()).append(\",\");\n if (getVpc() != null)\n sb.append(\"Vpc: \").append(getVpc());\n sb.append(\"}\");\n return sb.toString();\n }",
"@Override\n\tpublic String toString()\n\t{\n\t\tfinal AppendingStringBuffer buffer = new AppendingStringBuffer();\n\t\tboolean first = true;\n\t\tfor (Map.Entry<String, Object> entry : entrySet())\n\t\t{\n\t\t\tif (first == false)\n\t\t\t{\n\t\t\t\tbuffer.append(' ');\n\t\t\t}\n\t\t\tfirst = false;\n\n\t\t\tbuffer.append(entry.getKey());\n\t\t\tbuffer.append(\" = \\\"\");\n\t\t\tfinal Object value = entry.getValue();\n\t\t\tif (value == null)\n\t\t\t{\n\t\t\t\tbuffer.append(\"null\");\n\t\t\t}\n\t\t\telse if (value.getClass().isArray())\n\t\t\t{\n\t\t\t\tbuffer.append(Arrays.asList((Object[])value));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuffer.append(value);\n\t\t\t}\n\n\t\t\tbuffer.append('\\\"');\n\t\t}\n\t\treturn buffer.toString();\n\t}"
] | [
"0.7629322",
"0.7583556",
"0.7404943",
"0.7334076",
"0.72639424",
"0.7234267",
"0.71103317",
"0.69427896",
"0.6891062",
"0.68561155",
"0.6789724",
"0.67854005",
"0.6752342",
"0.6741777",
"0.6732299",
"0.67209995",
"0.6699936",
"0.6682494",
"0.6677843",
"0.6672702",
"0.66448176",
"0.6622828",
"0.6587006",
"0.65448195",
"0.65431726",
"0.65207005",
"0.65167725",
"0.64863676",
"0.64758813",
"0.6408422",
"0.64023024",
"0.6381984",
"0.63585556",
"0.63480043",
"0.63461524",
"0.6336852",
"0.6310231",
"0.6297982",
"0.62730837",
"0.62397534",
"0.6218394",
"0.62102306",
"0.6209749",
"0.6198543",
"0.61250013",
"0.6104811",
"0.6096607",
"0.6092686",
"0.6071703",
"0.60491776",
"0.6046301",
"0.6044729",
"0.600299",
"0.59937114",
"0.5991996",
"0.59726506",
"0.5963613",
"0.59610975",
"0.5947109",
"0.59312826",
"0.592834",
"0.5927022",
"0.5920217",
"0.5917745",
"0.59166914",
"0.5914596",
"0.5910587",
"0.5904284",
"0.5876311",
"0.5873712",
"0.58618915",
"0.5855319",
"0.5847943",
"0.584087",
"0.583691",
"0.58311284",
"0.582085",
"0.5806247",
"0.57972795",
"0.5797019",
"0.5795177",
"0.57950175",
"0.5786054",
"0.57857287",
"0.5785221",
"0.57625985",
"0.57546633",
"0.5749804",
"0.57485807",
"0.5738771",
"0.57335633",
"0.5730442",
"0.5718498",
"0.5711041",
"0.5707498",
"0.5694326",
"0.5690849",
"0.5689545",
"0.5681923",
"0.56716955",
"0.5669265"
] | 0.0 | -1 |
Save all parameters to parameters.txt | public void saveSelf() {
CRFileIOHelper.stringToFile(this.toString(), controller.getReportController().getCurrentFilePath() + "parameters");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveParameters(File paramFile) throws IOException {\r\n String xml = pui.toXML();\r\n Files.write(paramFile.toPath(), xml.getBytes(), StandardOpenOption.CREATE);\r\n }",
"private static void saveSettings() {\n try {\n File settings = new File(\"settings.txt\");\n FileWriter writer = new FileWriter(settings);\n //Options\n writer.append(defaultSliderPosition + \"\\n\");\n writer.append(isVerticalSplitterPane + \"\\n\");\n writer.append(verboseCompiling + \"\\n\");\n writer.append(warningsEnabled + \"\\n\");\n writer.append(clearOnMethod + \"\\n\");\n writer.append(compileOptions + \"\\n\");\n writer.append(runOptions + \"\\n\");\n //Colors\n for(int i = 0; i < colorScheme.length; i++) \n writer.append(colorScheme[i].getRGB() + \"\\n\");\n writer.append(theme + \"\\n\");\n\n writer.close(); \n } catch (IOException i) {\n println(\"IO exception when saving settings.\", progErr);\n }\n }",
"public String saveParameters(){\n String saveData = new String();\n \n saveData = highT + \" \" + lowT + \" \" + rescaleText.getText();\n return saveData;\n }",
"public void writeParameters(String fileName) {\n String dirName = \"simulation_outputs\";\n File dir = new File(dirName);\n if (!dir.exists()) {\n dir.mkdir();\n }\n\n Writer writer = null;\n long steps = station.schedule.getSteps();\n LocalDateTime now = LocalDateTime.now();\n try {\n writer = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(dirName + \"/\" + fileName), \"utf-8\"));\n writer.write(\"<html><head><title>Parameters</title></head><body><p><h2>Parameter Settings</h2>\");\n writer.write(\"<h3>\" + \"Simulation runModel on \" +\n now.getDayOfWeek() + \" \" + now.getDayOfMonth() + \" \" + now.getMonth() + \" \" + now.getYear() +\n \" at \" + now.getHour() + \":\" + now.getMinute() + \":\" + now.getSecond() +\n \"</h3>\");\n writer.write(\"<p>\" + \"Person Size : \" + station.getPersonSize() + \"</p>\");\n writer.write(\"<p>\" + \"Number of People: \" + station.getNumPeople() + \"</p>\");\n writer.write(\"<p>\" + \"Number of Entrances: \" + station.getNumEntrances() + \"</p>\");\n writer.write(\"<p>\" + \"Size of Entrances: \" + station.getEntranceSize() + \"</p>\");\n writer.write(\"<p>\" + \"Number of Exits: \" + station.getNumExits() + \"</p>\");\n writer.write(\"<p>\" + \"Size of Exits: \" + station.getExitSize() + \"</p>\");\n //writer.write(\"<p>\" + \"Exit choice probability: \" + station.getExitProb() + \"</p>\");\n writer.write(\"<p>\" + \"Person Size : \" + station.getPersonSize() + \"</p>\");\n writer.write(\"<p>\" + \"Seed : \" + station.seed() + \"</p>\");\n writer.write(\"<h3>\" + \"Entrance to exit assignments\" + \"</h3>\");\n ArrayList<Entrance> entrances = station.getEntrances();\n for (int i = 0; i < entrances.size(); i++) {\n writer.write(\"<p>\" + entrances.get(i) + \" - \" + ((Entrance) entrances.get(i)).getExit() + \"</p>\");\n }\n writer.write(\"</body></html>\");\n\n\n } catch (IOException ex) {\n System.out.println(\"Error writing to file\");\n } finally {\n try {\n writer.close();\n } catch (Exception ex) {\n System.out.println(\"Error closing file\");\n }\n }\n }",
"public static void saveSettings() {\n\n Writer output = null;\n try {\n output = new BufferedWriter(new FileWriter(getConfigFile()));\n final Set<String> set = m_Settings.keySet();\n final Iterator<String> iter = set.iterator();\n while (iter.hasNext()) {\n final String sKey = iter.next();\n final String sValue = m_Settings.get(sKey);\n output.write(sKey + \"=\" + sValue + \"\\n\");\n }\n }\n catch (final IOException e) {\n Sextante.addErrorToLog(e);\n }\n finally {\n if (output != null) {\n try {\n output.close();\n }\n catch (final IOException e) {\n Sextante.addErrorToLog(e);\n }\n }\n }\n\n }",
"private void saveValues() {\r\n this.pl_expert.setParam(\"displayNodeDegree\", (String) this.nodeDegreeSpinner.getValue());\r\n this.pl_expert.setParam(\"displayEdges\", (String) this.displayEdgesSpinner.getValue());\r\n this.pl_expert.setParam(\"scale\", (String) this.scaleSpinner.getValue());\r\n this.pl_expert.setParam(\"minWeight\", (String) this.minweightSpinner.getValue());\r\n this.pl_expert.setParam(\"iterations\", (String) this.iterationsSpinner.getValue());\r\n this.pl_expert.setParam(\"mutationParameter\", this.mutationParameter.getSelection().getActionCommand());\r\n this.pl_expert.setParam(\"Update_param\", this.Update_param.getSelection().getActionCommand());\r\n this.pl_expert.setParam(\"vote_value\", (String) this.vote_value.getValue());\r\n this.pl_expert.setParam(\"keep_value\", (String) this.keep_value.getValue());\r\n this.pl_expert.setParam(\"mut_value\", (String) this.mut_value.getValue());\r\n this.pl_expert.setParam(\"only_sub\", new Boolean(this.only_sub.isSelected()).toString());\r\n\r\n this.is_alg_started = false;\r\n }",
"public void writeSettings(String name){\r\n try{\r\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(name + \"_EMSettings.txt\")));\r\n out.println(\"Minim Method\\t\"+jComboBox1.getSelectedIndex()); \r\n\r\n if(jTextField1.getText().equals(\"\")){\r\n out.println(\"Step Size\\t0\");\r\n }\r\n else{\r\n out.println(\"Step Size\\t\"+jTextField1.getText().trim());\r\n }\r\n\r\n if(jTextField2.getText().equals(\"\")){\r\n out.println(\"Numsteps\\t0\");\r\n }\r\n else{\r\n out.println(\"Numsteps\\t\"+jTextField2.getText().trim());\r\n }\r\n\r\n if(jTextField3.getText().equals(\"\")){\r\n out.println(\"Convergence\\t0\");\r\n }\r\n else{\r\n out.println(\"Convergence\\t\"+jTextField3.getText().trim());\r\n }\r\n\r\n if(jTextField4.getText().equals(\"\")){\r\n out.println(\"Interval\\t0\");\r\n }\r\n else{\r\n out.println(\"Interval\\t\"+jTextField4.getText().trim());\r\n } \r\n out.close();\r\n \r\n }\r\n catch(Exception e){\r\n System.out.println(\"Exception caught writting settings\");\r\n e.printStackTrace();\r\n }\r\n \r\n }",
"public void logParameters() {\n logWriter.add(\"Particle Swarm Optimization Algorithm\");\n logWriter.add(\"Parameters\");\n logWriter.add((String)(\"MAX_LENGTH/N: \"+MAX_LENGTH));\n logWriter.add((String)(\"STARTING_POPULATION: \"+pso.getParticleCount()));\n logWriter.add((String)(\"MAX_EPOCHS: \"+pso.getMaxEpoch()));\n logWriter.add((String)(\"MAX_VELOCITY: \"+pso.getVmax()));\n logWriter.add((String)(\"MINIMUM_SHUFFLES: \"+pso.getShuffleMin()));\n logWriter.add((String)(\"MAXIMUM_SHUFFLES: \"+pso.getShuffleMax()));\n logWriter.add(\"\");\n\t}",
"private void addParametersToWriter() {\n Set<Map.Entry<String, String>> set = params.entrySet();\n for (Map.Entry<String, String> me : set) {\n writer.append(\"--\" + boundary).append(LINE_FEED);\n writer.append(\"Content-Disposition: form-data; name=\\\"\" + me.getKey() + \"\\\"\")\n .append(LINE_FEED);\n writer.append(\"Content-Type: text/plain; charset=\" + super.charset).append(\n LINE_FEED);\n writer.append(LINE_FEED);\n writer.append(me.getValue()).append(LINE_FEED);\n writer.flush();\n }\n }",
"public static void SavePreferences()\n {\n try\n {\n StartSaveAnimation();\n PrintWriter writer = new PrintWriter(preferences_file_name, \"UTF-8\");\n \n writer.print(Utilities.BoolToInt(MusicManager.enable_music) + \"\\r\\n\");\n writer.print(Utilities.BoolToInt(PassiveDancer.englishMode) + \"\\r\\n\");\n \n writer.close();\n }\n catch(Exception e) { System.out.println(\"Problem writing in the file \" + preferences_file_name + \".\"); }\n }",
"private void saveSettings()\n {\n try\n {\n // If remember information is true then save the ip and port\n // properties to the projects config.properties file\n if ( rememberLoginIsSet_ )\n {\n properties_.setProperty( getString( R.string.saved_IP ), mIP_ );\n properties_.setProperty( getString( R.string.saved_Port ),\n mPort_ );\n }\n\n // Always save the remember login boolean\n properties_.setProperty( getString( R.string.saveInfo ),\n String.valueOf( rememberLoginIsSet_ ) );\n\n File propertiesFile =\n new File( this.getFilesDir().getPath().toString()\n + \"/properties.txt\" );\n FileOutputStream out =\n new FileOutputStream( propertiesFile );\n properties_.store( out, \"Swoop\" );\n out.close();\n }\n catch ( Exception ex )\n {\n System.err.print( ex );\n }\n }",
"public void saveParameter(){\r\n \tif(editParameter != null){\r\n \t\tint id = editParameter.getId();\r\n \t\tif(id == 0){\r\n \t\t\tthis.getLog().info(\" addParameter()\");\r\n \t\t\talgorithmList.addNewAlgorithmParameterToDB(editParameter, getSelectedAlgorithm().getId());\r\n \t }else{\r\n \t\t\tthis.getLog().info(\" updateParameter(\" + id + \")\");\r\n \t\t\talgorithmList.updateAlgorithmParameterToDB(editParameter, getSelectedAlgorithm().getId());\r\n \t\t}\r\n \t\t\r\n \t\ttry {\r\n \t\t\tthis.getSelectedAlgorithm().setParameters(ConnectionFactory.createConnection().getAlgorithmParameterArray(getSelectedAlgorithm().getId()));\r\n\t\t\t} catch (DataStorageException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n }",
"public void save(String filename) throws IOException {\r\n String newline = System.getProperty(\"line.separator\");\r\n FileWriter out = new FileWriter(filename);\r\n Enumeration e = keyvaluepairs.keys();\r\n while (e.hasMoreElements()) {\r\n String key = (String) e.nextElement();\r\n out.write(key + \"=\" + (String) keyvaluepairs.get(key) + newline);\r\n }\r\n out.close();\r\n }",
"public void save() {\n // Convert the settings to a string\n String output = readSettings();\n \n try {\n // Make sure the file exists\n if (!settingsFile.exists()) {\n File parent = settingsFile.getParentFile();\n parent.mkdirs();\n settingsFile.createNewFile(); \n }\n \n // Write the data into the file\n BufferedWriter writer = new BufferedWriter(new FileWriter(settingsFile));\n writer.write(output);\n writer.close(); \n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public static void saveSettings( JFormattedTextField[] tf_verotiedot, \n\t\t\t \t\t\t\t JFormattedTextField[] tf_lisat,\n\t \t\t\t\t \t\t JCheckBox[] cb_omalisa,\n\t \t\t\t\t \t\t JFormattedTextField[] tf_omalisa) {\n \t\n \t// CREATE A STRING FROM VALUES THAT IS SAVED TO THE FILE\n \tString str = \"\";\n \t\n \ttry {\n\t \t// VEROTIEDOT\n\t \tfor(int i=0; i<8; i++)\n\t \t\tstr = str + tf_verotiedot[i].getText() + dataSep;\n\t \t\n\t \t// LISÄT\n\t \tfor(int i=0; i<13; i++) \n \t\t\tstr = str + tf_lisat[i].getText() + dataSep;\n\t \t\n\t \t// OMALISÄ PÄIVÄT\n\t \tfor(int i=0; i<7; i++) \n\t \t\tstr = str + Boolean.toString( cb_omalisa[i].isSelected() ) + dataSep;\n\t \t\n\t \t// OMALISÄ MUUT\n\t \tfor(int i=0; i<3; i++) \n\t \tstr = str + tf_omalisa[i].getText() + dataSep;\n\t \tstr = str + Boolean.toString( cb_omalisa[7].isSelected() );\n\t \t\n\t \t\n\t \tstr = str.replace(',', '.');\n\t \t\n \t} catch (Exception e) {\n \t\tsysMsg.newErrorMessage(\tnull,\n \t\t\t\t\t\t\t\t\"Tietojen tallentaminen ei onnistunut\" , \n\t\t\t\t\t\t\t\t\t\"VIRHE: Verotiedot\");\n \t}\n \t\n \t\n \t// SAVE STRING TO A FILE\n \tBufferedWriter bw;\n \t\n\t\ttry {\n\t\t\tbw = new BufferedWriter( new FileWriter(\"cfg\\\\saved.dat\"));\n\t\t\tbw.write(str);\n\t\t\tbw.close();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tsysMsg.newErrorMessage(\tnull,\n\t\t\t\t\t\t\t\t\t\"Tietojen tallentaminen ei onnistunut\" , \n\t\t\t\t\t\t\t\t\t\"VIRHE: Verotiedot\");\n\t\t}\n\n }",
"public void save() {\n try {\n FileOutputStream fos = new FileOutputStream(file);\n properties.store(fos, \"Preferences\");\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public static void save(){\n\t\ttry{\n\t\t\tFile f=new File(Constants.PATH+\"\\\\InitializeData\\\\battlesavefile.txt\");\n\t\t\tPrintWriter pw=new PrintWriter(f);\n\t\t\tpw.println(turn);\n\t\t\tpw.println(opponent.toString());\n\t\t\tfor(Unit u:punits){\n\t\t\t\tpw.println(u.toString());\n\t\t\t}\n\t\t\tpw.println(\"End Player Units\");\n\t\t\tfor(Unit u:ounits){\n\t\t\t\tpw.println(u.toString());\n\t\t\t}\n\t\t\tpw.println(\"End Opponent Units\");\n\t\t\tpw.println(priorities);\n\t\t\tpw.println(Arrays.asList(xpgains));\n\t\t\tpw.println(spikesplaced+\" \"+numpaydays+\" \"+activeindex+\" \"+activeunit.getID()+\" \"+weather+\" \"+weatherturn);\n\t\t\tpw.println(bfmaker.toString());\n\t\t\tpw.close();\n\t\t}catch(Exception e){e.printStackTrace();}\n\t}",
"public abstract Map<String, GalaxyFile> saveSearchGUIParameters(SearchParameters searchParameters, boolean editMode);",
"void savePreferences() throws OntimizeJEERuntimeException;",
"private void saveProperties() throws IOException {\r\n\t\tsetProperties();\r\n\t\tOutputStream outputStream;\r\n\t\toutputStream = new FileOutputStream(configFile);\r\n\t\tconfigProps.store(outputStream, \"Lot Data Mapper Application\");\r\n\t\tString msg = \"SAVING PROPERTIES WITH VALUES: \\n\\t 1 \\t\" + dt.Root+\"\\n \\t 2 \\t\" + dt.Map+\" \\n\\t 3 \\t\" + dt.Out+\" \\n\\t 4 \\t\" + Trans.ReportTypeName+\" \\n\\t 5 \\t\"+Trans.ReportedByPersonName+\" \\n\\t 6\\t\"+Trans.ReportedDate + \"\\n PROPERTIIES SAVED\";\r\n\t\tlg.l(msg);\r\n\t\toutputStream.close();\r\n\t}",
"public static void saveConfig(File fi){\n\t\ttry {\n\n\t\t\tPrintStream ps = new PrintStream(fi);\n\n\t\t\tps.println(\"Name = \" + name);\n\t\t\tps.println(\"PrepositionLength = \" + prepositionLength);\n\t\t\tps.println(\"PrepositionDelay = \" + prepositionDelay);\n\t\t\tps.println(\"Strings = \" + setOfStrings.length);\n\t\t\tfor(int i = 0; i < setOfStrings.length; i++){\n\t\t\t\tps.println(\"LowNote = \" + setOfStrings[i].lowNote);\n\t\t\t\tps.println(\"HighNote = \" + setOfStrings[i].highNote);\n\t\t\t\tString output = \"\";\n\t\t\t\tfor(int j = 0; j < setOfStrings[i].interval.length;j++){\n\t\t\t\t\toutput += setOfStrings[i].interval[j] + \", \";\n\t\t\t\t}\n\t\t\t\tps.println(output);\n\t\t\t\tps.close();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"void saveKeys() throws IOException;",
"public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}",
"public static void save()\n {\n try\n {\n FileOutputStream fOS = new FileOutputStream(propsFile); \n props.store(fOS, \"\");\n fOS.close();\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n }",
"public void Save() {\n try {\n ObjectOutputStream objUt = new ObjectOutputStream(\n new FileOutputStream(\"sparfil.txt\"));\n objUt.writeObject(this);\n } catch(Exception e) {\n System.out.println(e);}\n }",
"private void saveProperties()\n {\n PSConfigUtils.saveObjectToFile(m_props, getPropertiesFile());\n }",
"public static void writeToParamsFile(String FILENAME, String contentToWrite) {\n\n BufferedWriter bw = null;\n BufferedReader br = null;\n FileWriter fw = null;\n FileReader fr = null;\n\n try {\n\n String content = contentToWrite;\n bw = new BufferedWriter(new FileWriter(FILENAME, true));\n bw.write(System.getProperty(\"line.separator\"));\n bw.write(content);\n } catch (IOException e) {\n\n e.printStackTrace();\n\n } finally {\n\n try {\n\n if (bw != null) {\n bw.close();\n }\n\n if (fw != null) {\n fw.close();\n }\n\n } catch (IOException ex) {\n\n ex.printStackTrace();\n\n }\n\n }\n\n }",
"void save(String fileName);",
"public void saveText() {\n\t\t\tapp.saveStrings(\"./data/exports/ID_Order.txt\", saveIDOrder);\n\t\t\t//Saving the new name text\n\t\t\tapp.saveStrings(\"./data/exports/Name_Order.txt\", saveNameOrder);\n\t\t\t//Saving the new breed text\n\t\t\tapp.saveStrings(\"./data/exports/Breed_Order.txt\", saveBreedOrder);\n\t\t\t//Saving the new date text\n\t\t\tapp.saveStrings(\"./data/exports/Date_Order.txt\", saveDateOrder);\n\t\t\n\t}",
"public void save() throws FileNotFoundException, IOException\n {\n settings.store(new FileOutputStream(FILE), \"N3TPD Config File\");\n }",
"private void save() {\n Vector<Vector> dataVector = getTableModel().getDataVector();\n constantsList.clear();\n dataVector.stream().forEach((dataRow) -> {\n String name = (String) dataRow.get(0);\n String type = (String) dataRow.get(1);\n Object value = dataRow.get(2);\n ValuedParameterDescriptor newParam = new ValuedParameterDescriptor(name, type, value);\n constantsList.add(newParam);\n });\n constantsProperty.setValueAndUpdate(constantsList); // almost certainly redundant\n }",
"public synchronized static void saveSettings() {\n try {\n ObjectOutputStream objectOutputStream = null;\n try {\n objectOutputStream = new ObjectOutputStream(new FileOutputStream(settingsfile));\n objectOutputStream.writeUnshared(transferITModel.getProperties());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getHostHistory());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getUsernameHistory());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getPasswordHistory());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getUsers());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getUserRights());\n objectOutputStream.reset();\n objectOutputStream.flush();\n } catch (IOException ex1) {\n Logger.getLogger(TransferIT.class.getName()).log(Level.SEVERE, null, ex1);\n }\n objectOutputStream.close();\n } catch (IOException ex) {\n Logger.getLogger(TransferIT.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@Override\r\n protected void saveStrings() {\r\n \r\n settings.setProperty(\"mfile\" , mfile);\r\n settings.setProperty( \"rmode\", rmode);\r\n settings.setProperty( \"cmap\" , cmap );\r\n settings.setProperty(\"cmapMin\", Double.toString( cmapMin ) ); \r\n settings.setProperty(\"cmapMax\", Double.toString( cmapMax ) ); \r\n \r\n }",
"public static void saveProperties() {\n try {\n try (FileOutputStream out = new FileOutputStream(propFile)) {\n properties.store(out, \"BitcoinWallet Properties\");\n }\n } catch (Exception exc) {\n Main.logException(\"Exception while saving application properties\", exc);\n }\n }",
"public void writeDefaultSettings(){\r\n try{\r\n File propFile;\r\n CodeSource codeSource = EMSimulationSettingsView.class.getProtectionDomain().getCodeSource();\r\n File jarFile = new File(codeSource.getLocation().toURI().getPath());\r\n File jarDir = jarFile.getParentFile();\r\n propFile = new File(jarDir, \"default_EMSettings.txt\");\r\n\r\n // Does the file already exist \r\n if(!propFile.exists()){ \r\n try{ \r\n // Try creating the file \r\n propFile.createNewFile(); \r\n }\r\n catch(IOException ioe) { \r\n ioe.printStackTrace(); \r\n } \r\n }\r\n try{\r\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(propFile)));\r\n out.println(\"Minim Method\\t\"+jComboBox1.getSelectedIndex()); \r\n\r\n if(jTextField1.getText().equals(\"\")){\r\n out.println(\"Step Size\\t0\");\r\n }\r\n else{\r\n out.println(\"Step Size\\t\"+jTextField1.getText().trim());\r\n }\r\n\r\n if(jTextField2.getText().equals(\"\")){\r\n out.println(\"Numsteps\\t0\");\r\n }\r\n else{\r\n out.println(\"Numsteps\\t\"+jTextField2.getText().trim());\r\n }\r\n\r\n if(jTextField3.getText().equals(\"\")){\r\n out.println(\"Convergence\\t0\");\r\n }\r\n else{\r\n out.println(\"Convergence\\t\"+jTextField3.getText().trim());\r\n }\r\n\r\n if(jTextField4.getText().equals(\"\")){\r\n out.println(\"Interval\\t0\");\r\n }\r\n else{\r\n out.println(\"Interval\\t\"+jTextField4.getText().trim());\r\n } \r\n out.close();\r\n }\r\n catch(Exception e){\r\n System.out.println(\"Exception caught writting settings\");\r\n e.printStackTrace();\r\n }\r\n }\r\n catch(Exception e){\r\n System.out.println(\"Exception caught writting settings\");\r\n e.printStackTrace();\r\n }\r\n \r\n }",
"protected abstract void appendAlgorithmParameters(CommandLine commandLine);",
"void save(String filename);",
"private void persist() {\n \t\ttry {\n \t\t\tproblemFile = File.createTempFile(\"p2Encoding\", \".opb\"); //$NON-NLS-1$//$NON-NLS-2$\n \t\t\tBufferedWriter w = new BufferedWriter(new FileWriter(problemFile));\n \t\t\tint clauseCount = tautologies.size() + dependencies.size() + constraints.size();\n \n \t\t\tint variableCount = variables.size();\n \t\t\tw.write(\"* #variable= \" + variableCount + \" #constraint= \" + clauseCount + \" \"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n \t\t\tw.newLine();\n \t\t\tw.write(\"*\"); //$NON-NLS-1$\n \t\t\tw.newLine();\n \n \t\t\tif (variableCount == 0 && clauseCount == 0) {\n \t\t\t\tw.close();\n \t\t\t\treturn;\n \t\t\t}\n \t\t\tw.write(objective);\n \t\t\tw.newLine();\n \t\t\tw.newLine();\n \n \t\t\tw.write(explanation + \" ;\"); //$NON-NLS-1$\n \t\t\tw.newLine();\n \t\t\tw.newLine();\n \n \t\t\tfor (Iterator iterator = dependencies.iterator(); iterator.hasNext();) {\n \t\t\t\tw.write((String) iterator.next());\n \t\t\t\tw.newLine();\n \t\t\t}\n \t\t\tfor (Iterator iterator = constraints.iterator(); iterator.hasNext();) {\n \t\t\t\tw.write((String) iterator.next());\n \t\t\t\tw.newLine();\n \t\t\t}\n \t\t\tfor (Iterator iterator = tautologies.iterator(); iterator.hasNext();) {\n \t\t\t\tw.write((String) iterator.next());\n \t\t\t\tw.newLine();\n \t\t\t}\n \t\t\tw.close();\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}",
"private void saveToFile(){\n this.currentMarkovChain.setMarkovName(this.txtMarkovChainName.getText());\n saveMarkovToCSVFileInformation();\n \n //Save to file\n Result result = DigPopGUIUtilityClass.saveDigPopGUIInformationSaveFile(\n this.digPopGUIInformation,\n this.digPopGUIInformation.getFilePath());\n }",
"public void saveInfoToFile(File file) {\n PrintWriter printFile = null;\n try {\n printFile = new PrintWriter(file);\n } catch (FileNotFoundException e) {\n e.getStackTrace();\n return;\n }\n ArrayList<Passenger> reservedPas = airplane.getAllReservedPas(false);\n reservedPas.addAll(airplane.getAllReservedPas(true));\n\n for (Passenger k : reservedPas) {\n String info = getReservedPassInfo(k);\n printFile.println(info);\n }\n printFile.close();\n }",
"private void savePreferences() {\n SharedPrefStatic.mJobTextStr = mEditTextJobText.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobSkillStr = mEditTextSkill.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobLocationStr = mEditTextLocation.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobAgeStr = mEditTextAge.getText().toString().replace(\" \", \"\");\n\n SharedPreferences sharedPref = getSharedPreferences(AppConstants.PREF_FILENAME, 0);\n SharedPreferences.Editor editer = sharedPref.edit();\n editer.putString(AppConstants.PREF_KEY_TEXT, SharedPrefStatic.mJobTextStr);\n editer.putString(AppConstants.PREF_KEY_SKILL, SharedPrefStatic.mJobSkillStr);\n editer.putString(AppConstants.PREF_KEY_LOCATION, SharedPrefStatic.mJobLocationStr);\n editer.putString(AppConstants.PREF_KEY_AGE, SharedPrefStatic.mJobAgeStr);\n\n // The commit runs faster.\n editer.apply();\n\n // Run this every time we're building a query.\n SharedPrefStatic.buildUriQuery();\n SharedPrefStatic.mEditIntentSaved = true;\n }",
"public void saveGame(){\n updateProperties();\n try {\n output = new FileOutputStream(fileName);\n properties.store(output, null); //saving properties to file\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO SAVE GAME ---\");\n e.printStackTrace();\n } finally {\n if (output != null) {\n try {\n output.close();\n System.out.println(\"--- GAME SAVED ---\");\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE OUTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }",
"public void setParameters(String parameters);",
"public abstract void saveToFile(PrintWriter out);",
"public static void save()\n {\n try {\n \n \n PrintWriter fich = null;\n \n fich = new PrintWriter(new BufferedWriter(new FileWriter(\"bd.pl\", true)));\n\t\t\t//true c'est elle qui permet d'écrire à la suite des donnée enregistrer et non de les remplacé \n \n for(String auto : GestionController.listApp)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listDetFact)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listFact)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listType)\n {\n \n fich.println(auto);\n }\n fich.println();\n fich.close();\n } catch (Exception e1) {\n printStrace(e1);\n\t\t}\n }",
"@Override\n\tpublic void saveSettings() {\n\n\t}",
"public static void write(int[] fields){\n\t\ttry {\n\t\t\t// get current working dir\n\t\t\tFile dir = new File(System.getProperty(\"user.dir\"));\n\t\t\tFileOutputStream fileout = new FileOutputStream(dir+\"/settings.ser\");\n\t\t\tObjectOutputStream out = new ObjectOutputStream(fileout);\n\t\t\tout.writeObject(fields);\n\t\t\tout.close();\n\t\t\tfileout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public String dumpServiceParameters() {\n String[] arr = this.getParameterArr();\n StringBuffer buf = new StringBuffer();\n buf.append(this.className);\n if (arr.length > 0) buf.append(',');\n\n char ch = ',';\n for (int i=0; i< arr.length; i++) {\n buf.append(arr[i]);\n if (ch == ',') ch ='='; else ch = ',';\n if (i !=arr.length-1) buf.append(ch);\n }\n return buf.toString();\n }",
"public void writeParametersToTextFile(FileWriter jOut, TreePopulation oPop)\n throws IOException {\n \n boolean[] p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n String sVal;\n int i, iRow, iCol; \n \n jOut.write(\"\\n\" + m_sDescriptor + \"\\n\");\n \n //Write out function choices\n for (i = 0; i < p_bAppliesTo.length; i++) p_bAppliesTo[i] = true;\n Object[] p_oHeader = Behavior.formatSpeciesHeaderRow(p_bAppliesTo, oPop);\n jOut.write(p_oHeader[0].toString());\n for (iCol = 1; iCol < p_oHeader.length; iCol++) jOut.write(\"\\t\" + p_oHeader[iCol].toString());\n jOut.write(\"\\n\");\n \n Object[][] p_oTableData = null;\n p_oTableData = Behavior.formatDataForTable(p_oTableData, getWhatAdultHDFunction());\n p_oTableData = Behavior.formatDataForTable(p_oTableData, getWhatSaplingHDFunction());\n p_oTableData = Behavior.formatDataForTable(p_oTableData, getWhatSeedlingHDFunction());\n p_oTableData = Behavior.formatDataForTable(p_oTableData, getWhatAdultCRDFunction());\n p_oTableData = Behavior.formatDataForTable(p_oTableData, getWhatSaplingCRDFunction());\n p_oTableData = Behavior.formatDataForTable(p_oTableData, getWhatAdultCDHFunction());\n p_oTableData = Behavior.formatDataForTable(p_oTableData, getWhatSaplingCDHFunction());\n \n for (iRow = 0; iRow < p_oTableData.length; iRow++) {\n sVal = String.valueOf(p_oTableData[iRow][0]);\n //If a combo box - strip out the text\n if (sVal.startsWith(\"&&\")) {\n sVal = EnhancedTable.getComboValue(sVal);\n }\n jOut.write(sVal);\n for (iCol = 1; iCol < p_oTableData[iRow].length; iCol++) {\n sVal = String.valueOf(p_oTableData[iRow][iCol]);\n //If a combo box - strip out the text\n if (sVal.startsWith(\"&&\")) {\n sVal = EnhancedTable.getComboValue(sVal);\n }\n jOut.write(\"\\t\" + sVal);\n }\n jOut.write(\"\\n\");\n }\n \n //Write the rest of the parameters \n ArrayList<BehaviorParameterDisplay> p_oAllObjects = formatDataForDisplay(oPop);\n if (null == p_oAllObjects || p_oAllObjects.size() == 0) {\n jOut.write(\"\\n\" + m_sDescriptor + \"\\nNo parameters.\\n\");\n return;\n }\n \n \n for (BehaviorParameterDisplay oDisp : p_oAllObjects) {\n jOut.write(\"\\n\" + oDisp.m_sBehaviorName + \"\\n\");\n jOut.write(oDisp.m_sAppliesTo + \"\\n\");\n \n for (TableData oTable : oDisp.mp_oTableData) {\n //Header row\n jOut.write(oTable.mp_oHeaderRow[0].toString());\n for (iCol = 1; iCol < oTable.mp_oHeaderRow.length; iCol++) {\n jOut.write(\"\\t\" + oTable.mp_oHeaderRow[iCol].toString());\n }\n jOut.write(\"\\n\");\n \n //Write each row\n for (iRow = 0; iRow < oTable.mp_oTableData.length; iRow++) {\n sVal = String.valueOf(oTable.mp_oTableData[iRow][0]);\n //If a combo box - strip out the text\n if (sVal.startsWith(\"&&\")) {\n sVal = EnhancedTable.getComboValue(sVal);\n }\n jOut.write(sVal);\n for (iCol = 1; iCol < oTable.mp_oTableData[iRow].length; iCol++) {\n sVal = String.valueOf(oTable.mp_oTableData[iRow][iCol]);\n //If a combo box - strip out the text\n if (sVal.startsWith(\"&&\")) {\n sVal = EnhancedTable.getComboValue(sVal);\n }\n jOut.write(\"\\t\" + sVal);\n }\n jOut.write(\"\\n\");\n }\n }\n }\n }",
"public static void read_paramenters() {\n\t\ttry {\n\t\t // TODO CA: check that this work on Windows!\n String home = System.getProperty(\"user.home\");\n File parametersFile = new File(home + \"/\" + parametersFilename);\n\t\t\tScanner sc = new Scanner(parametersFile);\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tinitialize_parameters(sc.nextLine());\n\t\t\t}\n\t\t\tsc.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Error: File \" + parametersFilename + \" not found!\");\n\t\t\tSystem.out.println(\"Make sure that file \" + parametersFilename + \" is in the correct format!\");\n\t\t\tSystem.out.println(\"The format of the file is:\");\n\t\t\tSystem.out.println(\"host ap-dev.cs.ucy.ac.cy\");\n\t\t\tSystem.out.println(\"port 43\");\n\t\t\tSystem.out.println(\"cache res/\");\n\t\t\tSystem.out.println(\"access_token <api_key> \" +\n \"[The API key has be generated based on your google account through the anyplace architect]\");\n\t\t\t// TODO CA: when this error is shown, prompt, with Y or N to initialize that file with defaults\n // if yes, then read parameters again\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}",
"public void save (File argFile) throws IOException;",
"public void write() throws IOException {\n // No pairs to write\n if(map.size() == 0 || !isDirty) {\n System.err.println(\"preferences is already updated..\");\n return;\n }\n\n try(BufferedWriter bufferedWriter = Files.newBufferedWriter(fileName,\n StandardOpenOption.TRUNCATE_EXISTING,\n StandardOpenOption.CREATE))\n {\n for(Map.Entry<String, String> entry : map.entrySet()) {\n String key = entry.getKey();\n String value = entry.getValue();\n\n // Writes the current pair value in the format of 'key=value'\n bufferedWriter.write(String.format(\"%s=%s\\n\", key, value));\n }\n }\n\n isDirty = false;\n }",
"private LODEParameters(){\n prefsFile=new File(LODEConstants.PARAMS_FILE);\n }",
"private void saveIt(String text, File file) {\n String[] line = text.split(\"\\n\");\n System.out.println(\"the size of string array is \" + line.length );\n if (file == null) {\n logger.debug(\"Null return because Closed the save stage\");\n return;\n }\n try {\n logger.info(\"saving file...\");\n PrintStream stream = new PrintStream(file);\n stream.write(text.getBytes());\n } catch(IOException io) {\n logger.error(io.getMessage());\n }\n logger.info(\"saved\");\n }",
"private void getParameters() {\r\n\t\ttry {\r\n\t\t\tp_encoding = \"ISO-8859-1\";\r\n\t\t\tp_page_encoding = \"utf-8\";\r\n\t\t\tp_labels_data_file = \"resources/units/labels.txt\";\r\n\t\t\tp_multiplier_data_file = \"resources/units/muldata.txt\";\r\n\t\t\tp_category_data_file = \"resources/units/catdata.txt\";\r\n\t\t\tp_unit_data_file = \"resources/units/unitdata.txt\";\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treadDataFile(0, p_multiplier_data_file); //read data from external text file\r\n\t\treadDataFile(1, p_category_data_file); //read data from external text file\r\n\t\treadDataFile(2, p_unit_data_file); //read data from external text file\r\n\t\treadDataFile(3, p_labels_data_file); //read data from external text file\r\n\t}",
"void setParameters() {\n\t\t\n\t}",
"private void saveDBValues() {\r\n this.pl_DB.setParam(\"Hostname\", this.rhostfield.getText());\r\n this.pl_DB.setParam(\"Port\", this.rportfield.getText());\r\n this.pl_DB.setParam(\"Username\", this.ruserfield.getText());\r\n\r\n String pw = \"\";\r\n for (int i = 0; i < this.rpasswdfield.getPassword().length; i++) {\r\n pw += this.rpasswdfield.getPassword()[i];\r\n }\r\n this.pl_DB.setParam(\"Password\", pw);\r\n this.pl_DB.setParam(\"Database\", this.rdatabasefield.getText());\r\n this.pl_DB.setParam(\"nodeTableName\", this.rtablename1efield.getText());\r\n this.pl_DB.setParam(\"nodeColIDName\", this.colnodeIdfield.getText());\r\n this.pl_DB.setParam(\"nodeColLabelName\", this.colnodeLabelfield.getText());\r\n this.pl_DB.setParam(\"edgeTableName\", this.rtablename2efield.getText());\r\n this.pl_DB.setParam(\"edgeCol1Name\", this.coledge1field.getText());\r\n this.pl_DB.setParam(\"edgeCol2Name\", this.coledge2field.getText());\r\n this.pl_DB.setParam(\"edgeColWeightName\", this.colweightfield.getText());\r\n this.pl_DB.setParam(\"resultTableName\", this.otablenamefield.getText());\r\n\r\n this.is_alg_started = false;\r\n this.is_already_read_from_DB = false;\r\n this.is_already_renumbered = false;\r\n }",
"public static void saveProperties() {\n //if(debug_flag) \n //System.out.println(Util.asctime() + \" Saving properties to \" + propfilename + \" nkeys=\" + prop.size());\n try {\n try (FileOutputStream o = new FileOutputStream(propfilename)) {\n prop.store(o, propfilename + \" via Util.saveProperties() cp=\"\n + System.getProperties().getProperty(\"java.class.path\"));\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"Could not write properties to \" + propfilename);\n System.exit(1);\n } catch (IOException e) {\n System.out.println(\"Write error on properties to \" + propfilename);\n System.exit(1);\n }\n }",
"public static void save() {\n Game.save(UI.askNgetString(\"Filename for this save file?\")+\".xml\");\n }",
"public void save() {\r\n IniReader.write(FILE_NAME, \"x\", x, \"y\", y, \"fullscreen\", fullscreen, \"controlType\", controlType, \"vol\", volMul,\r\n \"keyUpMouse\", getKeyUpMouseName(), \"keyDownMouse\", getKeyDownMouseName(), \"keyUp\", getKeyUpName(), \"keyDown\", keyDownName,\r\n \"keyLeft\", keyLeftName, \"keyRight\", keyRightName, \"keyShoot\", keyShootName, \"keyShoot2\", getKeyShoot2Name(),\r\n \"keyAbility\", getKeyAbilityName(), \"keyEscape\", getKeyEscapeName(), \"keyMap\", keyMapName, \"keyInventory\", keyInventoryName,\r\n \"keyTalk\", getKeyTalkName(), \"keyPause\", getKeyPauseName(), \"keyDrop\", getKeyDropName(), \"keySellMenu\", getKeySellMenuName(),\r\n \"keyBuyMenu\", getKeyBuyMenuName(), \"keyChangeShipMenu\", getKeyChangeShipMenuName(), \"keyHireShipMenu\", getKeyHireShipMenuName());\r\n }",
"public void writeKeysToFile(){\n if(d == null){\n calculateKeypair();\n }\n FileHandler fh = new FileHandler();\n fh.writeFile(sbPrivate.toString(), \"sk.txt\");\n fh.writeFile(sbPublic.toString(), \"pk.txt\");\n }",
"private void saveConfiguration() {\r\n\tnew File(PROPERTIES_FILE).getParentFile().mkdirs();\r\n\tProperties props = new Properties();\r\n\ttry {\r\n\t props.setProperty(KEY_LAST_SOURCE_DIR, lastSourceDir);\r\n\t props.setProperty(KEY_LAST_TARGET_DIR, lastTargetDir);\r\n\t logger.debug(\"Speichere \" + props + \" nach \" + PROPERTIES_FILE);\r\n\t FileOutputStream stream = new FileOutputStream(PROPERTIES_FILE);\r\n\r\n\t props.store(stream, \"Do not change!\");\r\n\t stream.close();\r\n\t} catch (IOException e) {\r\n\t logger.error(\"Konfiguration konnte nicht gespeichert werden!\", e);\r\n\t}\r\n }",
"public void updateParameters(){\n\t\tp = RunEnvironment.getInstance().getParameters();\n\t\tmaxFlowerNectar = (double)p.getValue(\"maxFlowerNectar\");\n\t\tlowMetabolicRate = (double)p.getValue(\"lowMetabolicRate\");\n\t\thighMetabolicRate = (double)p.getValue(\"highMetabolicRate\");\n\t\tcolonySize = (int)p.getValue(\"colonySize\");\n\t}",
"public void setOutputFile(File params) {\n outputFile = params;\n }",
"public void savePreferences() {\n\t\tfinal IEclipsePreferences prefs = getPreferences();\n\t\ttry {\n\t\t\tprefs.flush();\n\t\t} catch (BackingStoreException e) {\n\t\t\tgetILog().log(createStatus(IStatus.ERROR, e));\n\t\t}\n\t}",
"void save(File file);",
"public boolean saveTo(String fileName) {\n\t\tfor(int i=0;i<m_trackerIPAddress.length;i++) {\r\n\t\t\tm_settings.setValue(\"Robot Tracker \" + (i + 1) + \" IP Address\", m_trackerIPAddress[i].getHostAddress(), \"Settings\");\r\n\t\t}\r\n\t\tm_settings.setValue(\"Port\", m_port, \"Settings\");\r\n\t\tm_settings.setValue(\"Autosave on Exit\", m_autoSaveOnExit, \"Settings\");\r\n\t\tm_settings.setValue(\"Ignore Ping Pong Signals\", m_ignorePingPongSignals, \"Settings\");\r\n\t\tm_settings.setValue(\"Ignore Position Signals\", m_ignorePositionSignals, \"Settings\");\r\n\t\tm_settings.setValue(\"Signal Debug Level\", SignalDebugLevel.toString(m_signalDebugLevel), \"Settings\");\r\n\t\tm_settings.setValue(\"Auto-scroll Console Window\", m_autoScrollConsoleWindow, \"Settings\");\r\n\t\tm_settings.setValue(\"Max Console History\", m_maxConsoleHistory, \"Settings\");\r\n\t\tm_settings.setValue(\"Number of Trackers\", m_numberOfTrackers, \"Settings\");\r\n\t\tm_settings.setValue(\"Webcam Resolution\", m_webcamResolution.width + \", \" + m_webcamResolution.height, \"Settings\");\r\n\t\t\r\n\t\t// group the settings by categories\r\n\t\tm_settings.sort();\r\n\t\t\r\n\t\treturn m_settings.writeTo(fileName);\r\n\t}",
"private static void saveTranscations() {\n\t\tSystem.out.println(\"All Transcations saved in a File named transcation.txt \");\n\t}",
"private static void persistSettings() {\n\t\ttry {\n\t\t\tBufferedWriter userConf = new BufferedWriter(new FileWriter(\n\t\t\t\t\tconf.getAbsolutePath()));\n\t\t\tproperties.store(userConf, null);\n\t\t\t// flush and close streams\n\t\t\tuserConf.flush();\n\t\t\tuserConf.close();\n\t\t} catch (IOException e) {\n\t\t\tlog.severe(\"Couldn't save config file.\");\n\t\t}\n\t}",
"protected ParametersBuilder getSaveParameters(){\r\n return new ParametersBuilder(\r\n saveOrUpdateParameters(),\r\n getStartUser(),\r\n getDescription()\r\n );\r\n }",
"public void save()\r\n {\r\n \tfc=new JFileChooser();\r\n\t fc.setCurrentDirectory(new File(\"\"));\r\n\t if(fc.showSaveDialog(this)==JFileChooser.APPROVE_OPTION)\r\n\t \t//Try-Catch Block\r\n\t try\r\n\t {\r\n\t pw=new PrintWriter(new FileWriter(fc.getSelectedFile()+\".txt\")); //Print to the user-selected file\r\n\t\t \tfor(Organism o: e.getTree()) //IN PROGESS\r\n\t\t \t{\r\n\t\t\t\t\tint[] genes=o.getGenes(); //Getting genes from \r\n\t\t\t\t\tfor(int i=0; i<genes.length; i++)\r\n\t\t\t\t\t\tpw.print(genes[i]+\" \"); //Print each gene value in a line\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tpw.println(); //Starts printing on a new line\r\n\t\t\t\t}\r\n\t\t\t\tpw.close(); //Closes the File\r\n\t }\r\n\t catch (Exception ex) //Catch Any Exception\r\n\t {\r\n\t ex.printStackTrace();\r\n\t }\r\n }",
"public void saveTimingInformation()\n\t{\n\t\ttry\n\t\t{\n\t\t\tFile saveFile = new File(\"asdasda.save\");\n\t\t\tPrintWriter writer = new PrintWriter(saveFile);\n\t\t\tif(saveFile.exists())\n\t\t\t{\n\t\t\t\tfor(QueryInfo current : queryList)\n\t\t\t\t{\n\t\t\t\t\twriter.println(current.getQuery());\n\t\t\t\t\twriter.println(current.getQueryTime());\n\t\t\t\t}\n\t\t\t\twriter.close();\n\t\t\t\tJOptionPane.showMessageDialog(getAppFrame(), queryList.size() + \" QueryInfo objects were saved\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(getAppFrame(), \"File not present. No QueryInfo objects saved\");\n\t\t\t}\n\t\t}\n\t\tcatch(IOException currentError)\n\t\t{\n\t\t\tdataController.displayErrors(currentError);\n\t\t}\n\t}",
"public void save() {\n\t\tBufferedWriter bw = null;\n\t\tFileWriter fw = null;\n\t\ttry {\n\t\t\tFile file = new File(\"fileSave.txt\");\n\t\t\tif(!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t\tfw = new FileWriter(file);\n\t\t\tbw = new BufferedWriter(fw);\n\t\t\t//string to hold text to write on new file\n\t\t\tString text = textArea.getText();\n\t\t\t//write file\n\t\t\tif (text != null) {\n\t\t\t\tbw.write(text);\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ie) {\n\t\t\tie.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif (bw != null) {\n\t\t\t\t\tbw.close();\n\t\t\t\t\tfw.close();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (IOException ie2) {\n\t\t\t\tie2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private void exportSettings() {\n\t\t\tfinal JFileChooser chooser = new JFileChooser(System.getProperty(\"user.home\"));\n\t\t\tint returnVal = chooser.showSaveDialog(null);\n\t\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\tFile saved = chooser.getSelectedFile();\n\t\t\t\ttry {\n\t\t\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(saved));\n\t\t\t\t\twriter.write(mySettings);\n\t\t\t\t\twriter.close();\n\t\t\t\t} catch (IOException 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 }\n\t}",
"void save();",
"void save();",
"void save();",
"public void saveProgramToFile(ArrayList<String> programNameList, File file) throws IOException {\n\t\tsqlDb.saveProgramToFile(programNameList, file);\n\t}",
"public static void saveFile(State state) throws Exception{\n\n buildDoc();\n writePreferences(state.language, state.background, state.pastTurtles.size());\n\n writeTurtles(state.pastTurtles);\n writeLines(state.pastLines);\n\n createFile(STATE_FILE);\n\n }",
"public void writeToFile(){\n\t\ttry {\r\n\t\t\tFile f = new File(\"E:\\\\Study\\\\Course\\\\CSE215L\\\\ProjectModify\\\\src\\\\Railway.txt\");\r\n\t\t\tFileWriter fw = new FileWriter(f);\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < persons.length; i++){\r\n\t\t\t\tif(persons[i] != null){\r\n\t\t\t\t\tfw.write(\"Name :\" +persons[i].getName());\r\n\t\t\t\t\tfw.write(\"\\n\");\r\n\t\t\t\t\tfw.write(\"Phone Number :\"+persons[i].getPhn()); \r\n\t\t\t\t\tfw.write(\"\\n\");\r\n\t\t\t\t\tfw.write(\"Age :\"+persons[i].getAge());\r\n\t\t\t\t\tfw.write(\"\\n\");\r\n\t\t\t\t\tfw.write(\"Train Name :\"+persons[i].getStrain());\r\n\t\t\t\t\tfw.write(\"\\n\");\r\n\t\t\t\t\tfw.write(\"Destination :\"+persons[i].getDestination());\r\n\t\t\t\t\tfw.write(\"\\n\");\r\n\t\t\t\t\tfw.write(\"Starting Point :\"+persons[i].getStpoint());\r\n\t\t\t\t\tfw.write(\"\\n\");\r\n\t\t\t\t\tfw.write(\"Seat Class :\"+persons[i].getSclass());\r\n\t\t\t\t\tfw.write(\"\\n\");\r\n\t\t\t\t\tfw.write(\"Fare :\"+persons[i].getFare());\r\n\t\t\t\t\tfw.write(\"\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfw.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}",
"public void saveBack() {\n\t\tmodified = false;\n\n\t\t// set basics\n\t\tRubyHelper.setNum(object, \"@code\", id);\n\t\tRubyHelper.setNum(object, \"@indent\", indent);\n\n\t\t// set parameters\n\t\tRubyArray para = (RubyArray) object.getInstanceVariable(\"@parameters\");\n\t\tpara.clear();\n\n\t\tfor (IRubyObject r : parameters) {\n\t\t\tpara.add(r);\n\t\t}\n\t}",
"public void save () {\r\n\t\tlog.debug(\"TunnelList:save()\");\r\n\t\tlog.info(\"Saving to file\");\r\n\t\tFileTunnel.saveTunnels(this);\r\n\t}",
"void saveToFile(String filename) throws IOException;",
"String [] getParameters();",
"public static void save() throws IOException {\n FileOutputStream f_out = new\n FileOutputStream(settingsFile);\n ObjectOutputStream o_out = new\n ObjectOutputStream(f_out);\n SettingsSaver s = new SettingsSaver();\n o_out.writeObject(s);\n o_out.close();\n f_out.close();\n }",
"public void setParameters(Object[] parameters) throws IOException {\r\n if (parameters == null)\r\n return;\r\n for (int i = 0; i < parameters.length - 1; i += 2) {\r\n setParameter(parameters[i].toString(), parameters[i + 1]);\r\n }\r\n }",
"private void writeAll(){\n try (BufferedWriter ignored = new BufferedWriter(new FileWriter(this.fileName))) {\n Iterable<E> values=entities.values();\n values.forEach(this::writeToFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void writeInfoToFile() {\n createInfoFile(\"infoList.txt\", fwExMessage);\n outFile.println(\"منشی\");\n outFile.println(username);\n outFile.println(password);\n outFile.println(\" \");\n outFile.close();\n }",
"public void save(String fileName) throws IOException;",
"public void save () {\n preference.putBoolean(\"sound effect\", hasSoundOn);\n preference.putBoolean(\"background music\", hasMusicOn);\n preference.putFloat(\"sound volume\", soundVolume);\n preference.putFloat(\"music volume\", musicVolume);\n preference.flush(); //this is called to write the changed data into the file\n }",
"public void save() {\n\t\tInputManager.resetWriter(false);\n\t\tInputManager.writer(InputManager.newDelimeterOne + \" \" + InputManager.newDelimeterTwo);\n\t\tfor(Row r: rows) {\n\t\t\tInputManager.writer(r.toString());\n\t\t}\n\t}",
"public void save(List<Task> list) throws IOException {\n FileWriter writer = new FileWriter(file);\n StringBuilder output = new StringBuilder();\n for (Task t : list) {\n output.append(formatTask(t));\n output.append(\"\\n\");\n }\n writer.write(output.toString());\n writer.close();\n }",
"public void saveGame() {\r\n\t\t//separator used by system\r\n\t\tString separator = System.getProperty(\"file.separator\");\r\n\t\t//path to where files will be saved\r\n\t\tString path = System.getProperty(\"user.dir\") + separator + \"src\" + separator + \"GameFiles\" + separator;\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//Save the world objects\r\n\t\t\tString world_objects_name = EnvironmentVariables.getTitle() + \"WorldObjects\";\r\n\t\t\t//create a new file with name given by user with added text for identification\r\n\t\t\tFile world_objects_file = new File(path + world_objects_name + \".txt\");\r\n\t\t\tFileOutputStream f_world_objects = new FileOutputStream(world_objects_file);\r\n\t\t\tObjectOutputStream o_world_objects = new ObjectOutputStream(f_world_objects);\r\n\r\n\t\t\t//loop through list and write each object to file\r\n\t\t\tfor(GameObject obj: EnvironmentVariables.getWorldObjects()) {\r\n\t\t\t\to_world_objects.writeObject(obj);\r\n\t\t\t}\r\n\r\n\t\t\to_world_objects.flush();\r\n\t\t\to_world_objects.close();\r\n\t\t\tf_world_objects.flush();\r\n\t\t\tf_world_objects.close();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//Save terrain is done the same ass world objects but we create a new file \r\n\t\t\t//with different added text\r\n\t\t\tString terrain_name = EnvironmentVariables.getTitle() + \"Terrain\";\r\n\t\t\tFile terrain_file = new File(path + terrain_name + \".txt\");\r\n\t\t\tFileOutputStream f_terrain = new FileOutputStream(terrain_file);\r\n\t\t\tObjectOutputStream o_terrain = new ObjectOutputStream(f_terrain);\r\n\r\n\t\t\tfor(GameObject obj: EnvironmentVariables.getTerrain()) {\r\n\t\t\t\to_terrain.writeObject(obj);\r\n\t\t\t}\r\n\r\n\t\t\to_terrain.flush();\r\n\t\t\to_terrain.close();\r\n\t\t\tf_terrain.flush();\r\n\t\t\tf_terrain.close();\r\n\t\t\t\r\n\t\t\t//Save main player, given own file but just a single object\r\n\t\t\tString main_player_name = EnvironmentVariables.getTitle() + \"MainPlayer\";\r\n\t\t\tFile main_player_file = new File(path + main_player_name + \".txt\");\r\n\t\t\tFileOutputStream f_main_player = new FileOutputStream(main_player_file);\r\n\t\t\tObjectOutputStream o_main_player = new ObjectOutputStream(f_main_player);\r\n\r\n\t\t\to_main_player.writeObject(EnvironmentVariables.getMainPlayer());\r\n\r\n\t\t\to_main_player.flush();\r\n\t\t\to_main_player.close();\r\n\t\t\tf_main_player.flush();\r\n\t\t\tf_main_player.close();\r\n\t\t\t\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\t\t}\r\n\t\tcatch (IOException e) {\r\n\t\t\tSystem.out.println(\"Error initializing stream\");\r\n\t\t} \r\n\t\t\r\n\t\t//saving the environment variables\r\n\t\ttry {\r\n\t\t\tString env_name = EnvironmentVariables.getTitle() + \"EnvVariables\";\r\n\t\t\tFile env_file = new File(path + env_name + \".txt\");\r\n\t\t\t\r\n\t\t\tif(!env_file.exists()) {\r\n\t\t\t\tenv_file.createNewFile();\r\n\t\t }\r\n\t\t\t \r\n\t\t\t//FileWriter fw = new FileWriter(env_file);\r\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(env_file));\r\n\t\t\t//write each variable to a new line as a string\r\n\t\t\tbw.write(EnvironmentVariables.getTitle()); bw.newLine();\r\n\t\t\tbw.write(Float.toString(EnvironmentVariables.getWidth())); bw.newLine();\r\n\t\t\tbw.write(Float.toString(EnvironmentVariables.getHeight())); bw.newLine();\r\n\t\t\tbw.write(EnvironmentVariables.getPlanet()); bw.newLine();\r\n\t\t\tbw.write(Float.toString(EnvironmentVariables.getMass())); bw.newLine();\r\n\t\t\tbw.write(Float.toString(EnvironmentVariables.getRadius())); bw.newLine();\r\n\t\t\tbw.write(Float.toString(EnvironmentVariables.getAirDensity())); bw.newLine();\r\n\t\t\tbw.write(Float.toString(EnvironmentVariables.getMeter())); bw.newLine();\r\n\r\n\t\t\t\r\n\t\t\t//bw.flush();\r\n\t\t\tbw.close();\r\n\t\t\t\r\n\t\t}catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Error initializing stream\");\r\n\t\t}\r\n\t\t\r\n\t\tEnvironmentVariables.getTerrain().clear();\r\n\t\tEnvironmentVariables.getWorldObjects().clear();\r\n\t}",
"public void save() {\n savePrefs();\n }",
"void save_to_file() {\n\t\tthis.setAlwaysOnTop(false);\n\t\t\n\t\t/**\n\t\t * chose file with file selector \n\t\t */\n\t\t\n\t\tFileDialog fd = new FileDialog(this, \"Choose a save directory\", FileDialog.SAVE);\n\t\t\n\t\t//default path is current directory\n\t\tfd.setDirectory(System.getProperty(\"user.dir\"));\n\t\tfd.setFile(\"*.cmakro\");\n\t\tfd.setVisible(true);\n\t\t\n\t\t\n\t\tString filename = fd.getFile();\n\t\tString path = fd.getDirectory();\n\t\tString file_withpath = path + filename;\n\t\t\n\t\tif (filename != null) {\n\t\t\t System.out.println(\"save path: \" + file_withpath);\n\t\t\t \n\t\ttry {\n\t\t\tObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(file_withpath));\n\n\t\t\tout.writeObject(Key_Lists);\n\t\t\t\n\t\t\tout.close();\n\t\t\t\n\t\t\tinfo_label.setForeground(green);\n\t\t\tinfo_label.setText(\"file saved :D\");\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tthis.setAlwaysOnTop(true);\n\t\t\n\t}",
"private static void saveAllFeatures(List<Feature> features,\n\t\t\tString allFeaturesFilePath) throws IOException {\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(allFeaturesFilePath));\n\t\tCSVPrinter featurePrinter = new CSVPrinter(bw, CSVFormat.DEFAULT.toBuilder().withRecordSeparator(\"\\n\").build());\n\t\tprintHeader(featurePrinter);\n\t\t\n\t\tfor(Feature feature : features) {\n\t\t\tprintFeature(featurePrinter, feature);\t\n\t\t}\n\t\t\n\t\tfeaturePrinter.close();\n\t\tbw.close();\n\t}",
"public SaveParametersTest(String name) {\n\t\tsuper(name);\n\t}",
"private void saveProps() {\n FileOutputStream out;\n \n try {\n out = new FileOutputStream(\"gamesettings.properties\");\n props.store(out, null);\n } catch (FileNotFoundException ex) {\n try {\n out = new FileOutputStream(new File(\"gamesettings.properties\"));\n props.store(out, null);\n } catch (FileNotFoundException ex1) {\n System.out.println(\"Saving failed!\");\n } catch (IOException ex1) {\n System.out.println(\"Saving failed!\");\n }\n } catch (IOException ex) {\n try {\n out = new FileOutputStream(new File(\"gamesettings.properties\"));\n props.store(out, null);\n } catch (FileNotFoundException ex1) {\n System.out.println(\"Saving failed!\");\n } catch (IOException ex1) {\n System.out.println(\"Saving failed!\");\n }\n }\n }",
"public void save() throws Exception{\n\t\tFileOutputStream saveFile = new FileOutputStream(Config.languageModelFile);\n\t\tObjectOutputStream save = new ObjectOutputStream(saveFile);\n\t\tsave.writeObject(lm_);\n\t\tsave.close();\n\t}",
"public void saveFile() {\n\t\tPrintWriter output = null;\n\t\ttry {\n\t\t\toutput = new PrintWriter(\"/Users/katejeon/Documents/Spring_2020/CPSC_35339/avengers_project/game_result.txt\");\n\t\t\toutput.println(textArea.getText());\n\t\t\toutput.flush();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"File doesn't exist.\");\n\t\t} finally {\n\t\t\toutput.close();\n\t\t}\n\t}"
] | [
"0.66500217",
"0.6518991",
"0.6493093",
"0.6436197",
"0.6149076",
"0.6136114",
"0.6078537",
"0.60074896",
"0.597779",
"0.5908057",
"0.58834934",
"0.579863",
"0.5764559",
"0.5717788",
"0.5711327",
"0.5696851",
"0.56608415",
"0.56569403",
"0.5646422",
"0.5637754",
"0.56176347",
"0.55630267",
"0.5556433",
"0.5552306",
"0.5544463",
"0.5475407",
"0.54743946",
"0.5449426",
"0.5407228",
"0.5407174",
"0.5405124",
"0.540378",
"0.53483737",
"0.5343836",
"0.53268254",
"0.5325111",
"0.53220314",
"0.53210574",
"0.53194064",
"0.5311603",
"0.53008085",
"0.5300636",
"0.5294792",
"0.52899754",
"0.52899265",
"0.527537",
"0.52747285",
"0.5273473",
"0.52674025",
"0.5255996",
"0.52500194",
"0.5246647",
"0.523446",
"0.5234286",
"0.5226587",
"0.52233046",
"0.5219976",
"0.52081555",
"0.5204929",
"0.51940435",
"0.5186831",
"0.51839066",
"0.51755315",
"0.51694715",
"0.5168995",
"0.51682216",
"0.51608676",
"0.51576155",
"0.51530236",
"0.5148555",
"0.51474226",
"0.5146285",
"0.51421064",
"0.5141374",
"0.51402885",
"0.51402885",
"0.51402885",
"0.5139595",
"0.5139297",
"0.51355916",
"0.512903",
"0.512459",
"0.51231664",
"0.5116572",
"0.51111054",
"0.5111037",
"0.51082927",
"0.510565",
"0.5105043",
"0.51046836",
"0.51014566",
"0.50969166",
"0.50953805",
"0.5084906",
"0.5076723",
"0.50757337",
"0.50755537",
"0.5073302",
"0.5071639",
"0.50706106"
] | 0.63863015 | 4 |
Check that all parameters have been set. Subclasses should override this to add their own checks. | public boolean checkSelf() {
boolean ok = true;
if (controller == null) {
System.err.println("CRParameters :: controller not set");
ok = false;
}
if (scenario.length() == 0 && controller.getWorld().getHasScenarios()) {
System.err.println("CRParameters :: scenario not set");
ok = false;
}
if (reportFolderName.length() == 0) {
System.err.println("CRParameters :: report folder not set");
ok = false;
}
if (trialDuration <= 0) {
System.err.println("CRParameters :: trial duration not set or 0");
ok = false;
}
if (numOfRuns <= 0) {
System.err.println("CRParameters :: number of runs not set or 0");
ok = false;
}
if (numOfTrials <= 0) {
System.err.println("CRParameters :: number of trials not set or 0");
ok = false;
}
return ok;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void checkParameters() {\n }",
"private void checkParams() throws InvalidParamException{\r\n String error = svm.svm_check_parameter(this.problem, this.param);\r\n if(error != null){\r\n throw new InvalidParamException(\"Invalid parameter setting!\" + error);\r\n }\r\n }",
"@Override\n\tprotected boolean validateRequiredParameters() throws Exception {\n\t\treturn true;\n\t}",
"@Override\n\tprotected void validateParameterValues() {\n\t\t\n\t}",
"private void validateInputParameters(){\n\n }",
"public void validateNamedParameters() {\n if (namedParameters != null) {\n for (Map.Entry<String, Object> e : namedParameters.entrySet()) {\n if (e.getValue() == null) {\n throw log.queryParameterNotSet(e.getKey());\n }\n }\n }\n }",
"public boolean isSetParams() {\n return this.params != null;\n }",
"private void checkParameters()\n\t\tthrows DiameterMissingAVPException {\n\t\tDiameterClientRequest request = getRequest();\n\t\tDiameterAVPDefinition def = ShUtils.getUserIdentityAvpDefinition(getVersion());\n\t\tif (request.getDiameterAVP(def) == null) {\n\t\t\tthrow new DiameterMissingAVPException(def.getAVPCode());\n\t\t}\n\t\tdef = ShUtils.getDataReferenceAvpDefinition(getVersion());\n\t\tif (request.getDiameterAVP(def) == null) {\n\t\t\tthrow new DiameterMissingAVPException(def.getAVPCode());\n\t\t}\n\t}",
"protected abstract boolean checkedParametersAppend();",
"private void performSanityCheck()\n\t{\n\t\tif (variableNames != null && domainSizes != null\n\t\t\t\t&& propositionNames != null)\n\t\t{\n\t\t\tcheckStateSizes();\n\t\t\tcheckDomainSizes();\n\t\t}\n\t}",
"private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }",
"public boolean isSetParams() {\n return this.params != null;\n }",
"public boolean isSetParams() {\n return this.params != null;\n }",
"public boolean isSetParams() {\n return this.params != null;\n }",
"public boolean isSetParams() {\n return this.params != null;\n }",
"public boolean isSetParams() {\n return this.params != null;\n }",
"private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }",
"private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }",
"private ErrorCode checkParameters() {\n\t\t\n\t\t// Check Batch Size\n\t\ttry {\n\t\t\tInteger.parseInt(batchSizeField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.BatchSize;\n\t\t}\n\t\t\n\t\t// Check confidenceFactor\n\t\ttry {\n\t\t\tDouble.parseDouble(confidenceFactorField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.ConfidenceFactor;\n\t\t}\n\t\t\n\t\t// Check minNumObj\n\t\ttry {\n\t\t\tInteger.parseInt(minNumObjField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.MinNumObj;\n\t\t}\n\t\t\n\t\t// Check numDecimalPlaces\n\t\ttry {\n\t\t\tInteger.parseInt(numDecimalPlacesField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumDecimalPlaces;\n\t\t}\n\t\t\n\t\t// Check numFolds\n\t\ttry {\n\t\t\tInteger.parseInt(numFoldsField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumFolds;\n\t\t}\n\t\t\n\t\t// Check seed\n\t\ttry {\n\t\t\tInteger.parseInt(seedField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.Seed;\n\t\t}\n\t\t\n\t\treturn ErrorCode.Fine;\n\t\t\n\t}",
"boolean hasParameters();",
"private void checkParameters(List actualParameters)\n throws AbnormalTerminationException {\n if (actualParameters.size() != this._formalParameters.size()) {\n throw new AbnormalTerminationException(\"Ongeldig aantal parameters in \" + this.getName() + \"!\");\n }\n }",
"public boolean allParametersForAdvanceAccountingLinesSet() {\n // not checking the object code because that will need to be set no matter what - every advance accounting line will use that\n return (!StringUtils.isBlank(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT, KFSConstants.EMPTY_STRING)) &&\n !StringUtils.isBlank(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART, KFSConstants.EMPTY_STRING)));\n }",
"private boolean validateArguments() {\n return !isEmpty(getWsConfig()) && !isEmpty(getVirtualServer()) && !isEmpty(getVirtualServer()) && !isEmpty(getAppContext()) && !isEmpty(getWarFile()) && !isEmpty(getUser()) && !isEmpty(getPwdLocation());\n }",
"private boolean validateParams(int amount) {\n\t\tString paramArray[] = {param1,param2,param3,param4,param5,param6};\r\n\t\tfor(int i = 0; i < amount; i++) {\r\n\t\t\tif(paramArray[i] == null) {\r\n\t\t\t\t//Error\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean isValidParameterCount(int parameterCount) {\n return parameterCount> 0;\r\n }",
"@Override\n\t\tpublic void checkPreconditions() {\n\t\t}",
"private void validateOptionalParams(StringBuilder errors) throws Exception {\n // Validate RECON_PARTIAL_TRIGGER Option configuration.\n String paramValue = inputParams.getProperty(\"RECON_PARTIAL_TRIGGER\");\n if(paramValue!=null && !paramValue.trim().isEmpty()){\n StringTokenizer tokens = new StringTokenizer(paramValue, Constants.TOKEN_SEPARATOR);\n while(tokens.hasMoreElements()){\n try{\n PartialTriggerOptions.valueOf(tokens.nextToken());\n }catch(Exception ex){\n errors.append(\"Invalid Parameter Configuration for RECON_PARTIAL_TRIGGER. Please correct.\"\n + System.getProperty(\"line.separator\"));\n }\n }\n }\n // Validate TARGET_SHARED_IDSTORE_SEARCHBASE\n paramValue = inputParams.getProperty(\"TARGET_SHARED_IDSTORE_SEARCHBASE\");\n if(paramValue==null || paramValue.trim().isEmpty()){\n Logger.getLogger(IdentityReconciliationProcessor.class.getName()).log(Level.INFO, \n \"Parameter [Optional] TARGET_SHARED_IDSTORE_SEARCHBASE not configured. \" +\n \"Highly recommended to configure this parameter. Note that - This may result in performance issue.\");\n }\n paramValue = inputParams.getProperty(Constants.BATCH_SIZE_ATTR);\n if(paramValue!=null && !paramValue.trim().isEmpty()){\n try{\n getBatchSize(paramValue);\n }catch(Exception ex){\n errors.append(\"Invalid Parameter Configuration for Batch Size. Please correct.\"\n + System.getProperty(\"line.separator\"));\n }\n }\n }",
"private boolean CheckAllRequiredFields() {\n\t\tboolean res = true;\n\t\tres &= CheckParkSelection();\n\t\tres &= CheckDateSelection();\n\t\tres &= CheckVisitorHour();\n\t\tres &= CheckEmail();\n\t\tres &= CheckPhoneNumber();\n\t\treturn res;\n\t}",
"protected void checkParams(Signature signature, CriteriaSet trustBasisCriteria) throws SecurityException {\n\n if (signature == null) {\n throw new SecurityException(\"Signature was null\");\n }\n if (trustBasisCriteria == null) {\n throw new SecurityException(\"Trust basis criteria set was null\");\n }\n if (trustBasisCriteria.isEmpty()) {\n throw new SecurityException(\"Trust basis criteria set was empty\");\n }\n }",
"public void checkExistingParameter() {\n parameterList.clear();\n if (!attribute[13].equalsIgnoreCase(\"NA\")) {\n parameterList.add(parameterStore.getParameterWithCode(\"HB000\"));\n }\n\n if (!attribute[14].equalsIgnoreCase(\"NA\")) {\n parameterList.add(parameterStore.getParameterWithCode(\"WBC00\"));\n }\n\n if (!attribute[15].equalsIgnoreCase(\"NA\")) {\n parameterList.add(parameterStore.getParameterWithCode(\"PLT00\"));\n }\n\n if (!attribute[16].equalsIgnoreCase(\"NA\")) {\n parameterList.add(parameterStore.getParameterWithCode(\"RBC00\"));\n }\n\n if (!attribute[20].equalsIgnoreCase(\"NA\")) {\n parameterList.add(parameterStore.getParameterWithCode(\"IgGAN\"));\n }\n }",
"private void validateInitialParams() throws IllegalArgumentException {\n if (StringUtils.isBlank(this.apiKey)) {\n throw new IllegalArgumentException(\"API key is not specified!\");\n }\n if (StringUtils.isBlank(this.baseUrl)) {\n throw new IllegalArgumentException(\"The Comet base URL is not specified!\");\n }\n }",
"private void validateParameters(CustomMap<String, CustomList<String>> parameters) {\n /* Verify if the parameters are the students number. */\n if(parameters == null || parameters.size() > 3){\n errorValidator.addError(\"name\", \"This parameter must exist.\");\n errorValidator.addError(\"num\", \"This parameter must exist.\");\n errorValidator.addError(\"email\", \"This parameter must exist.\");\n return;\n }\n\n /* Verify if the parameters are correct. */\n CustomList nameAux = parameters.get(\"name\"), numAux = parameters.get(\"num\"), emailAux = parameters.get(\"email\");\n\n if(nameAux == null)\n errorValidator.addError(\"name\", \"This parameter must exist.\");\n\n if(numAux == null)\n errorValidator.addError(\"num\", \"This parameter must exist.\");\n\n if(emailAux == null)\n errorValidator.addError(\"email\", \"This parameter must exist.\");\n\n if(errorValidator.hasError())\n return;\n\n /* Verify num, pid email and name parameters type. */\n num = numAux.getVerifiedInt(0, errorValidator, \"num\");\n email = emailAux.getVerifiedString(0, errorValidator, \"email\");\n name = nameAux.getVerifiedString(0, errorValidator, \"name\");\n }",
"private void checkRequiredFields() {\n // check the fields which should be non-null\n if (configFileName == null || configFileName.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configFileName' should not be null.\");\n }\n if (configNamespace == null || configNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configNamespace' should not be null.\");\n }\n if (searchBundleManagerNamespace == null\n || searchBundleManagerNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'searchBundleManagerNamespace' should not be null.\");\n }\n if (entityManager == null) {\n throw new DAOConfigurationException(\n \"The 'entityManager' should not be null.\");\n }\n }",
"private boolean checkParams(String[] params){\r\n\t\tfor(String param:params){\r\n\t\t\tif(param == \"\" || param == null || param.isEmpty()){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"protected void setupParameters() {\n \n \n\n }",
"protected void checkComponents() throws Exception {\r\n if (InitialData == null) {\r\n throw new Exception(\"Initial data not set.\");\r\n }\r\n if (Oracle == null) {\r\n throw new Exception(\"Oracle not set.\");\r\n }\r\n if (SearchSpace == null) {\r\n throw new Exception(\"Search space not set.\");\r\n }\r\n if (ObjectiveFunction == null) {\r\n throw new Exception(\"Ranker not set.\");\r\n }\r\n }",
"private static boolean verifyProperties(Properties pProperties){\n boolean completeParams = false;\n if (pProperties.getProperty(UtilsConnection.CONSUMER_KEY) != null &&\n pProperties.getProperty(UtilsConnection.CONSUMER_SECRET) != null &&\n pProperties.getProperty(UtilsConnection.ACCESS_TOKEN) != null &&\n pProperties.getProperty(UtilsConnection.ACCESS_TOKEN_SECRET) != null )\n completeParams = true;\n return completeParams;\n }",
"private static boolean arePostRequestParametersValid(String title, String description,\n String imageUrl, String releaseDate, String runtime, String genre, String directors,\n String writers, String actors, String omdbId) {\n return isParameterValid(title, MAX_TITLE_CHARS) && isParameterValid(description, MAX_CHARS)\n && isParameterValid(imageUrl, MAX_CHARS) && isParameterValid(releaseDate, MAX_CHARS)\n && isParameterValid(runtime, MAX_CHARS) && isParameterValid(genre, MAX_CHARS)\n && isParameterValid(directors, MAX_CHARS) && isParameterValid(writers, MAX_CHARS)\n && isParameterValid(actors, MAX_CHARS) && isParameterValid(omdbId, MAX_CHARS);\n }",
"private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n Preconditions.checkArgument(\n !(this.validationRegex != null && this.valueOptions != null && this.valueOptionsMustMatch),\n \"Cant have regexp validator and matching options at the same time\");\n\n if (required == null)\n {\n /*\n If a property has a default value, the common case is that it's required.\n However, we need to allow for redundant calls of required(): defaultOf(x).required();\n and for unusual cases where a property has a default value but it's optional: defaultOf(x).required(false).\n */\n required = this.defaultValue != null;\n }\n\n if (description == null)\n description = \"Property name: \" + name + \", required = \" + required;\n\n if (valueOptions != null && defaultValue != null)\n {\n for (PropertySpec.Value v : valueOptions)\n {\n if (v.value.equals(defaultValue.value))\n v.isDefault = true;\n }\n }\n\n if (dependsOn != null)\n {\n if (category == null)\n throw new IllegalArgumentException(\"category required when dependsOn is set \" + name);\n\n if (!dependsOn.isOptionsOnly())\n throw new IllegalArgumentException(\n \"Invalid dependsOn propertySpec (must be optionsOnly) \" + dependsOn.name());\n }\n }",
"void setParameters() {\n\t\t\n\t}",
"private static void checkParameters(MultipleCategorySeries dataset, DefaultRenderer renderer) {\n if (dataset == null || renderer == null\n || !checkMultipleSeriesItems(dataset, renderer.getSeriesRendererCount())) {\n throw new IllegalArgumentException(\n \"Titles and values should be not null and the dataset number of items should be equal to the number of series renderers\");\n }\n }",
"protected void missingParams() {\r\n throw new IllegalStateException(\r\n \"Function is missing parameters: \" + getName());\r\n }",
"@Override\n public boolean isReady() {\n //at least one parameter estimtion must be enabled\n return (mPositionEstimationEnabled || mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled) &&\n //if position estimation is disabled, an initial position must be provided\n !(!mPositionEstimationEnabled && mInitialPosition == null) &&\n //if transmitted power estimation is disabled, an initial transmitted power must be provided\n !(!mTransmittedPowerEstimationEnabled && mInitialTransmittedPowerdBm == null) &&\n //readings must also be valid\n areValidReadings(mReadings);\n }",
"private void checkForEmptyLine() throws OutmatchingParametersToMethodCall {\n if (this.params.isEmpty() && method.getParamAmount() != 0) {\n throw new OutmatchingParametersToMethodCall();\n } else if (method.getParamAmount() == 0 && !this.params.isEmpty()) {\n throw new OutmatchingParametersToMethodCall();\n }\n }",
"private void fillMandatoryFields() {\n\n }",
"@Test\n\tpublic void correctParameters() {\n\t\tassertEquals(startTime, circle.startTime);\n\t\tassertEquals(duration, circle.duration);\n\t\tassertEquals(type, circle.type);\n\t\tassertEquals(height, circle.height, 0);\n\t}",
"@Test\n public void verifyParametersInput() {\n // act\n book.setISBN(isbn);\n book.setAuthors(array);\n book.setPublisher(publisher);\n // verify\n verify(book).setISBN(isbn);\n verify(book).setAuthors(array);\n verify(book).setPublisher(publisher);\n }",
"protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (name.equals(\"AD_Client_ID\"))\n\t\t\t\tm_AD_Client_ID = 1000000;\n\t\t\telse if (name.equals(\"AD_Org_ID\"))\n\t\t\t\tm_AD_Org_ID = 1000000;\n\t\t\telse if (name.equals(\"DeleteOldImported\"))\n\t\t\t;//\tm_deleteOldImported = \"Y\".equals(para[i].getParameter());\n\t\t\telse if (name.equals(\"DocAction\"))\n\t\t;//\t\tm_docAction = (String)para[i].getParameter();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t}",
"@Override\r\n public void validateParameters(PluginRequest request) {\n }",
"protected void validate()\r\n\t{\r\n\t\tif( this.mapper==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the Mapper of this dataset.\");\r\n\t\tif( this.input_format==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the InputFormat of this dataset.\");\r\n\t\tif( this.inputs==null || this.inputs.size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the input path(s) of this dataset\");\r\n\t\tif ( this.getSchema()==null || this.getSchema().size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the schema of this dataset first\");\r\n\t}",
"private static void checkParameters(XYMultipleSeriesDataset dataset,\n XYMultipleSeriesRenderer renderer) {\n if (dataset == null || renderer == null\n || dataset.getSeriesCount() != renderer.getSeriesRendererCount()) {\n throw new IllegalArgumentException(\n \"Dataset and renderer should be not null and should have the same number of series\");\n }\n }",
"@Value.Check\n default void checkPreconditions()\n {\n RangeCheck.checkIncludedInInteger(\n this.feedback(),\n \"Feedback\",\n RangeInclusiveI.of(0, 7),\n \"Valid feedback values\");\n\n RangeCheck.checkIncludedInInteger(\n this.transpose(),\n \"Transpose\",\n RangeInclusiveI.of(-24, 24),\n \"Valid transpose values\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR1Level(),\n \"Pitch R1 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR1Rate(),\n \"Pitch R1 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR2Level(),\n \"Pitch R2 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR2Rate(),\n \"Pitch R2 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR3Level(),\n \"Pitch R3 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR3Rate(),\n \"Pitch R3 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR4Level(),\n \"Pitch R4 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR4Rate(),\n \"Pitch R4 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoPitchModulationDepth(),\n \"LFO Pitch Modulation Depth\",\n RangeInclusiveI.of(0, 99),\n \"Valid pitch modulation depth values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoPitchModulationSensitivity(),\n \"LFO Pitch Modulation Sensitivity\",\n RangeInclusiveI.of(0, 7),\n \"Valid pitch modulation sensitivity values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoAmplitudeModulationDepth(),\n \"LFO Amplitude Modulation Depth\",\n RangeInclusiveI.of(0, 99),\n \"Valid amplitude modulation depth values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoSpeed(),\n \"LFO Speed\",\n RangeInclusiveI.of(0, 99),\n \"Valid LFO speed values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoDelay(),\n \"LFO Delay\",\n RangeInclusiveI.of(0, 99),\n \"Valid LFO delay values\");\n }",
"void check()\n {\n checkUsedType(responseType);\n checkUsedType(requestType);\n }",
"private void checkMandatoryArgs(UserResource target, Errors errors) {\n final String proc = PACKAGE_NAME + \".checkMandatoryArgs.\";\n final String email = target.getEmail();\n final String password = target.getPassword();\n final String lastName = target.getLastName();\n\n logger.debug(\"Entering: \" + proc + \"10\");\n\n if (TestUtils.isEmptyOrWhitespace(email)) {\n errors.rejectValue(\"email\", \"user.email.required\");\n }\n logger.debug(proc + \"20\");\n\n if (TestUtils.isEmptyOrWhitespace(password)) {\n errors.rejectValue(\"password\", \"user.password.required\");\n }\n logger.debug(proc + \"30\");\n\n if (TestUtils.isEmptyOrWhitespace(lastName)) {\n errors.rejectValue(\"lastName\", \"userLastName.required\");\n }\n logger.debug(\"Leaving: \" + proc + \"40\");\n }",
"@Override\n public void afterPropertiesSet() {\n validateProperties();\n }",
"public void validate() throws ParameterValuesException {\n\t\tif (txtTenTaiSan.getText().isEmpty())\n\t\t\tthrow new ParameterValuesException(\"Bạn cần nhập tên tài sản\", null);\n\t}",
"public void checkParameters(ArrayList<String> parameters) throws IncompatibleTypeException {\r\n\t\tTypeBoolean booleanTester =new TypeBoolean(true, false, false, true);\r\n\t\tboolean isCompatible;\r\n\t\tfor (String parameter: parameters) {\r\n\t\t\tisCompatible = booleanTester.compatibleWith(parameter);\r\n\t\t\tif (!isCompatible) {\r\n\t\t\t\tVariable lastAppearance = findVariable(parameter);\r\n\t\t\t\tif (lastAppearance == null) {\r\n\t\t\t\t\tthrow new IncompatibleTypeException();\r\n\t\t\t\t}\r\n\t\t\t\tisCompatible = booleanTester.compatibleWith(lastAppearance);\r\n\t\t\t\tif (!isCompatible || !lastAppearance.isInitialized()) {\r\n\t\t\t\t\tthrow new IncompatibleTypeException();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null)\n\t\t\t\t;\n\t\t\telse if (name.equals(\"M_Requisition_ID\"))\n\t\t\t\tp_M_RequisitionFrom_ID = ((BigDecimal)para[i].getParameter()).intValue();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t}",
"protected boolean checkEmpty(String[] parameters) {\n return parameters == null || parameters.length == 0;\n }",
"private void checkMandatoryArguments() throws ArgBoxException {\n\t\tfinal List<String> errors = registeredArguments.stream()\n\t\t\t\t.filter(arg -> arg.isMandatory())\n\t\t\t\t.filter(arg -> !parsedArguments.containsKey(arg))\n\t\t\t\t.map(arg -> String.format(\"The argument %1s is required !\", arg.getLongCall()))\n\t\t\t\t.collect(Collectors.toList());\n\t\tthrowException(() -> !errors.isEmpty(), getArgBoxExceptionSupplier(\"Some arguments are missing !\", errors));\n\t}",
"private void validateParameter(){\n\t\tif(hrNum > upperBound){\n\t\t\thrNum = upperBound;\n\t\t}\n\t\telse if(hrNum < lowerBound){\n\t\t\thrNum = lowerBound;\n\t\t}\n\t}",
"@Override\r\n\tpublic boolean CheckConditions() {\n\t\treturn true;\r\n\t}",
"public boolean isValidSetup() {\n\t\tif(!rowCheck())\n\t\t\treturn false;\n\t\tif(!columnCheck())\n\t\t\treturn false;\n\t\tif(!subGridCheck())\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"protected void validateAndSetValues()\n\t\t{\n\t\t\tif (null == eventDispatcher)\n\t\t\t{\n\t\t\t\teventDispatcher = new DefaultEventDispatcher();\n\t\t\t}\n\t\t\tif (null == sessionAttributes)\n\t\t\t{\n\t\t\t\tsessionAttributes = new HashMap<String, Object>();\n\t\t\t}\n\t\t\tif (null == reconnectPolicy)\n\t\t\t{\n\t\t\t\treconnectPolicy = ReconnectPolicy.NO_RECONNECT;\n\t\t\t}\n\t\t\tcreationTime = System.currentTimeMillis();\n\t\t}",
"@Override\n\tprotected void initParams() {\n\t\t\n\t}",
"public boolean isSetParam() {\n return this.param != null;\n }",
"public static boolean isSetParamFinal()\n {\n read_if_needed_();\n \n return _is_set_param_final;\n }",
"@PostConstruct\n protected void checkInitialization() {\n ValidationUtility.checkNotNullNorEmpty(profileTaskCheckers, \"profileTaskCheckers\",\n ProfileActionConfigurationException.class);\n ValidationUtility.checkNotNullElements(profileTaskCheckers, \"profileTaskCheckers\",\n ProfileActionConfigurationException.class);\n }",
"public void setInitialParameters() {\n /** DO NOTHING */\n }",
"@Override\n\tprotected void setParameterValues() {\n\t}",
"boolean hasParameterValue();",
"private void validate() {\n\n if (this.clsname == null)\n throw new IllegalArgumentException();\n if (this.dimension < 0)\n throw new IllegalArgumentException();\n if (this.generics == null)\n throw new IllegalArgumentException();\n }",
"public boolean checkAllNull() {\n return (locationFilterCriteria == null || locationFilterCriteria.checkAllNull()) &&\n minPricePerM2 == null && maxPricePerM2 == null &&\n sizeInM2LowerBound == null &&\n sizeInM2UpperBound == null && roofed == null &&\n leasingTimeFrom == null && leasingTimeTo == null &&\n keywords == null && electricity == null && water == null &&\n high == null && glassHouse == null;\n }",
"public boolean isParameterProvided();",
"protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null)\n\t\t\t\t;\n\t\t\telse if (name.equals(\"SRI_Authorization_ID\"))\n\t\t\t\tp_SRI_Authorization_ID = para[i].getParameterAsInt();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\t\n\t\tm_AD_Client_ID = getAD_Client_ID();\n\t\t\n\t\tif (p_SRI_Authorization_ID == 0)\n\t\t\tp_SRI_Authorization_ID = getRecord_ID();\n\n\t}",
"private void validateProperties() throws BuildException {\r\n if (this.port == null || this.port.length() == 0) {\r\n throw new BuildException(\"Attribute 'port' must be set.\");\r\n }\r\n if (this.depotPath == null || this.depotPath.length() == 0) {\r\n throw new BuildException(\"Attribute 'repositoryUrl' must be set.\");\r\n }\r\n if (this.userName == null || this.userName.length() == 0) {\r\n throw new BuildException(\"Attribute 'userName' must be set.\");\r\n }\r\n if (this.password == null || this.password.length() == 0) {\r\n throw new BuildException(\"Attribute 'password' must be set.\");\r\n }\r\n if (this.depotPath == null || this.depotPath.length() == 0) {\r\n throw new BuildException(\"Attribute 'repositoryUrl' must be set.\");\r\n }\r\n if (this.p4ExecutablePath == null || this.p4ExecutablePath.length() == 0) {\r\n throw new BuildException(\"Attribute 'p4ExecutablePath' must be set.\");\r\n }\r\n File p4Executable = new File(this.p4ExecutablePath);\r\n if (!p4Executable.exists()) {\r\n throw new BuildException(\"Attribute 'p4ExecutablePath' \" + this.p4ExecutablePath +\r\n \" does not appear to point to an actual file.\");\r\n }\r\n \r\n // If default* is specified, then all should be specified. \r\n if (((this.defaultHackystatAccount != null) || \r\n (this.defaultHackystatPassword != null) ||\r\n (this.defaultHackystatSensorbase != null)) &&\r\n ((this.defaultHackystatAccount == null) || \r\n (this.defaultHackystatPassword == null) ||\r\n (this.defaultHackystatSensorbase == null))) {\r\n throw new BuildException (\"If one of default Hackystat account, password, or sensorbase \" +\r\n \"is specified, then all must be specified.\");\r\n }\r\n \r\n // Check to make sure that defaultHackystatAccount looks like a real email address.\r\n if (!ValidateEmailSyntax.isValid(this.defaultHackystatAccount)) {\r\n throw new BuildException(\"Attribute 'defaultHackystatAccount' \" + this.defaultHackystatAccount\r\n + \" does not appear to be a valid email address.\");\r\n }\r\n \r\n // If fromDate and toDate not set, we extract commit information for the previous day.\r\n if (this.fromDateString == null && this.toDateString == null) {\r\n Day previousDay = Day.getInstance().inc(-1);\r\n this.fromDate = new Date(previousDay.getFirstTickOfTheDay() - 1);\r\n this.toDate = new Date(previousDay.getLastTickOfTheDay());\r\n }\r\n else {\r\n try {\r\n if (this.hasSetToAndFromDates()) {\r\n this.fromDate = new Date(Day.getInstance(this.dateFormat.parse(this.fromDateString))\r\n .getFirstTickOfTheDay() - 1);\r\n this.toDate = new Date(Day.getInstance(this.dateFormat.parse(this.toDateString))\r\n .getLastTickOfTheDay());\r\n }\r\n else {\r\n throw new BuildException(\r\n \"Attributes 'fromDate' and 'toDate' must either be both set or both not set.\");\r\n }\r\n }\r\n catch (ParseException ex) {\r\n throw new BuildException(\"Unable to parse 'fromDate' or 'toDate'.\", ex);\r\n }\r\n\r\n if (this.fromDate.compareTo(this.toDate) > 0) {\r\n throw new BuildException(\"Attribute 'fromDate' must be a date before 'toDate'.\");\r\n }\r\n }\r\n }",
"public boolean hasParameters() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasParameters()\");\n Via via=(Via)sipHeader;\n \n return via.hasParameters();\n }",
"public void validate() throws org.apache.thrift.TException {\n if (bindingParams != null) {\n bindingParams.validate();\n }\n }",
"@Override\n protected boolean hasValidNumberOfArguments(int numberOfParametersEntered) {\n return numberOfParametersEntered == 3;\n }",
"protected void prepare()\r\n\t{\r\n\t\tProcessInfoParameter[] para = getParameter();\r\n\t\tfor (int i = 0; i < para.length; i++)\r\n\t\t{\r\n\t\t\tString name = para[i].getParameterName();\r\n\t\t\tif (name.equals(\"DeleteOldImported\"))\r\n\t\t\t\tp_deleteOldImported = \"Y\".equals(para[i].getParameter());\r\n\t\t\telse if (name.equals(\"IsValidateOnly\"))\r\n\t\t\t\tp_IsValidateOnly = para[i].getParameterAsBoolean();\r\n\t\t\telse\r\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\r\n\t\t}\r\n\r\n\t\tm_AD_Client_ID = getProcessInfo().getAD_Client_ID();\r\n\r\n\t}",
"public final void validateRetrieveInputs() throws Exception {\n if (getDBTable() == null) throw new Exception(\"getDBTable missing\");\n if (getColumnForPrimaryKey() == null) throw new Exception(\"WHERE ID missing\");\n }",
"protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify a configuration\");\n else {\n \t\t//TODO add more checks\n \t\tok();\n }\n }",
"private boolean checkingAllArguments() {\n\t\t\n\t\t// test if the four player types have been selected\n\t\tfor(int i=0;i<allButtons.size();i++) {\n\t\t\tif(allButtons.get(i)==null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// test if the seed is in the correct format\n\t\tif(!(seed.textProperty().get().isEmpty())){\n\t\t\ttry {\n\t\t\t\tgameSeed = Long.parseLong(seed.getText());\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\tmenuMessage.setText(\"Given seed is not a valid number\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t// test if for each of the players the given arguments are correct\n\t\tfor(int i = 0; i < allButtons.size(); ++i) {\n\t\t\tchar playerType = allButtons.get(i).getText().charAt(0);\n\t\t\tString argument = texts.get(2 * i + 1).getText();\n\t\t\t\n\t\t\tif(!argument.isEmpty()) {\n\t\t\t\tswitch(playerType) {\n\t\t\t\t\n\t\t\t\tcase 'S' : \n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlong l = Long.parseLong(texts.get(2 * i + 1).getText());\n\t\t\t\t\t\tif(l < 9) {\n\t\t\t\t\t\t\tmenuMessage.setText(\"The iteration value must be at least 9\");\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\tmenuMessage.setText(\"One of the iteration number is not a valid number\");\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'R' :\n\t\t\t\t\t\n\t\t\t\t\tString[] parts = StringSerializer.split(\"\\\\.\", argument); \n\t\t\t\t\t\n\t\t\t\t\tif (parts.length != 4) { \n\t\t\t\t\t\tmenuMessage.setText(\"One of the IP Address is not a valid address\");\n\t\t\t\t\t\treturn false; \n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tfor (String str : parts) { \n\t\t\t\t\t\tint j = Integer.parseInt(str); \n\t\t\t\t\t\tif ((j < 0) || (j > 255)) { \n\t\t\t\t\t\t\tmenuMessage.setText(\"One of the IP Address is not a valid address\");\n\t\t\t\t\t\t\treturn false; \n\t\t\t\t\t\t} \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}\n\t\treturn true;\n\t}",
"private boolean validParams(Platform platform, String name, String company) {\n\t\treturn platform != null && validParams(name, company);\n\t}",
"public void checkValid() throws StyxException\n {\n if (this.getJSAPParameter() instanceof Option)\n {\n Option op = (Option)this.getJSAPParameter();\n if (this.valueSet)\n {\n if (this.param.getInputFile() != null)\n {\n // This parameter represents an input file. See if this is a URL\n // and if so, download it\n // TODO: if this is not a URL, check that it exists\n String str = this.getParameterValue();\n if (str.startsWith(URL_PREFIX))\n {\n // This could be a URL\n String urlStr = str.substring(URL_PREFIX.length());\n try\n {\n URL url = new URL(urlStr);\n File urlPath = new File(url.getPath());\n // TODO: be cleverer about file names, particularly\n // watching out for name clashes\n String name = urlPath.getName().equals(\"\") ? \"random.dat\" : urlPath.getName();\n this.instance.downloadFrom(url, name);\n // Now set the contents of this file to the new file name\n this.setParameterValue(name);\n }\n catch(MalformedURLException mue)\n {\n throw new StyxException(urlStr + \" is not a valid URL\");\n }\n }\n }\n }\n else\n {\n // A value hasn't been set\n if (op.required())\n {\n throw new StyxException(this.name + \" is a required parameter:\" +\n \" a value must be set\");\n }\n }\n }\n }",
"protected int checkParam(Object o, String name)\n {\n if (o == null) {\n System.err.println(format(\"Parameter %s is not set\", name));\n return 1;\n }\n return 0;\n }",
"private static void checkParameters(CategorySeries dataset, DefaultRenderer renderer) {\n if (dataset == null || renderer == null\n || dataset.getItemCount() != renderer.getSeriesRendererCount()) {\n throw new IllegalArgumentException(\n \"Dataset and renderer should be not null and the dataset number of items should be equal to the number of series renderers\");\n }\n }",
"private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}",
"private void assertValidity() {\n if (latitudes.size() != longitudes.size()) {\n throw new IllegalStateException(\"GIS location needs equal number of lat/lon points.\");\n }\n if (!(latitudes.size() == 1 || latitudes.size() >= 3)) {\n throw new IllegalStateException(\"GIS location needs either one point or more than two.\");\n }\n }",
"@Override\n\tprotected void prepare() {\n\t\t\n\t\t\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null);\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Client_ID\"))\n\t\t\t\tp_AD_Client_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Org_ID\"))\n\t\t\t\tp_AD_Org_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param01\"))\n\t\t\t\tparam_01 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param02\"))\n\t\t\t\tparam_02 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param03\"))\n\t\t\t\tparam_03 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param04\"))\n\t\t\t\tparam_04 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param05\"))\n\t\t\t\tparam_05 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param06\"))\n\t\t\t\tparam_06 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_User_ID\"))\n\t\t\t\tp_AD_User_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"Report\"))\n\t\t\t\tp_Report = (int)para[i].getParameterAsInt();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\t\n\t\t\n\t}",
"protected void validateParameter(String... param) throws NavigationException {\r\n\t\tif (param.length > 0){\r\n\t\t\tfor(int i = 0; i < param.length; i++){\r\n\t\t\t\tif (param[i] != null && param[i].isEmpty()) {\r\n\t\t\t\t\tthrow new NavigationException(\"parametro no enviado\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic boolean isHaveParam() {\n\t\treturn param !=null;\n\t}",
"private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"private void checkNoGettersSetters() {\n if (getters != null || setters != null)\n throw new AnalysisException(\"Unexpected getter/setter value!\");\n }",
"@Override\n\tpublic boolean hasParameterGuard() {\n\t\treturn true;\n\t}",
"public void updateParameters(){\n\t\tp = RunEnvironment.getInstance().getParameters();\n\t\tmaxFlowerNectar = (double)p.getValue(\"maxFlowerNectar\");\n\t\tlowMetabolicRate = (double)p.getValue(\"lowMetabolicRate\");\n\t\thighMetabolicRate = (double)p.getValue(\"highMetabolicRate\");\n\t\tcolonySize = (int)p.getValue(\"colonySize\");\n\t}",
"protected boolean onlyUsesTheseParameters(Set<TypeParameter> parameters) {\n if (isParameterized()) {\n if (isFullyInstantiated()) return true;\n\n for (ModifiedType modifiedType : getTypeParameters()) {\n Type parameter = modifiedType.getType();\n if (parameter instanceof TypeParameter typeParameter) {\n if (!parameters.contains(typeParameter)) return false;\n } else if (!parameter.onlyUsesTheseParameters(parameters)) return false;\n }\n }\n\n return true;\n }",
"void validateProperties() {\n super.validateProperties();\n validatePropertySet(\"token\", getToken());\n }",
"private boolean checkFields() {\n if (editTxtName.getText().equals(\"\")) return false;//name\n if (editTxtDesc.getText().equals(\"\")) return false;//desc\n if (editClrColor.getValue() == null) return false;//color\n if (oldEnvironment == null) return false;//environment is null\n return true;//everything is valid\n }",
"private static void verifyArgs()\r\n\t{\r\n\t\tif(goFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input GO file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(annotFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input annotation file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(goSlimFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input GOslim file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(slimAnnotFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an output file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t}"
] | [
"0.7787702",
"0.7121558",
"0.70760775",
"0.6825936",
"0.68144596",
"0.665194",
"0.6626342",
"0.6609821",
"0.65786386",
"0.6574006",
"0.65653956",
"0.6560069",
"0.6560069",
"0.6560069",
"0.6560069",
"0.6560069",
"0.655008",
"0.65088546",
"0.6491504",
"0.64825845",
"0.64766246",
"0.6418077",
"0.6402047",
"0.63991773",
"0.629738",
"0.6291031",
"0.62908435",
"0.624539",
"0.6239867",
"0.6239755",
"0.62345934",
"0.61978334",
"0.61923915",
"0.6159902",
"0.6131523",
"0.610119",
"0.6094428",
"0.6091772",
"0.60795474",
"0.60688853",
"0.60588926",
"0.6050271",
"0.6035043",
"0.6029992",
"0.6021004",
"0.59708875",
"0.5966367",
"0.59629196",
"0.5948725",
"0.5947084",
"0.5945449",
"0.5938245",
"0.5928046",
"0.5925943",
"0.5917489",
"0.58906406",
"0.5870985",
"0.58700407",
"0.5867351",
"0.5840803",
"0.5833747",
"0.58336157",
"0.583359",
"0.5828625",
"0.582788",
"0.5811046",
"0.58068156",
"0.5806429",
"0.5801189",
"0.5798949",
"0.57896465",
"0.5780216",
"0.5778646",
"0.57763666",
"0.5767037",
"0.57662106",
"0.5765148",
"0.57628286",
"0.575236",
"0.574326",
"0.57419515",
"0.5741166",
"0.57276976",
"0.5726318",
"0.57174975",
"0.57118183",
"0.5688954",
"0.56805104",
"0.567674",
"0.56704944",
"0.5669906",
"0.5667052",
"0.566483",
"0.56640047",
"0.5637377",
"0.5635871",
"0.5632726",
"0.5615185",
"0.56111616",
"0.5602925"
] | 0.6310373 | 24 |
For use in tests | public ScriptExpressionEvaluatorFactory(ScriptExpressionFactory scriptExpressionFactory,
SecurityContextManager securityContextManager, PrismContext prismContext) {
this.scriptExpressionFactory = scriptExpressionFactory;
this.securityContextManager = securityContextManager;
this.prismContext = prismContext;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"private void test() {\n\n\t}",
"private stendhal() {\n\t}",
"private ProtomakEngineTestHelper() {\r\n\t}",
"private test5() {\r\n\t\r\n\t}",
"@Override\n @Before\n public void setUp() throws IOException {\n }",
"private JacobUtils() {}",
"private Util() { }",
"@Override\n public void test() {\n \n }",
"@Before\n\t public void setUp() {\n\t }",
"private ReportGenerationUtil() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"protected void onFirstUse() {}",
"@Override\n protected void setup() {\n }",
"@Override\n public void perish() {\n \n }",
"public void testSetBasedata() {\n }",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"public void testGetInsDyn() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Before\n public void setup() {\n }",
"@Before\n\tpublic void setup() {\n\t\t\n\t\t\n\t}",
"private Mocks() { }",
"private OMUtil() { }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"protected void setupLocal() {}",
"@Before\n\tpublic void setUp() {\n\t}",
"@Before\r\n\tpublic void setup() {\r\n\t}",
"@Before\n public void setup() {\n }",
"@Before\n public void setup() {\n }",
"@Before\n public void setup() {\n }",
"protected TestBench() {}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public void testGetBasedata() {\n }",
"private void init() {\n\n\t}",
"private MetallicityUtils() {\n\t\t\n\t}",
"protected void setup() {\r\n }",
"@Before\n public void setUp () {\n }",
"@Test\n public void testGetProductInfo() throws Exception {\n }",
"public void mock(){\n\n }",
"public void testLoadOrder() throws Exception {\n }",
"@Override\n\tpublic void test() {\n\t\t\n\t}",
"@Override\n public void setUp() throws Exception {}",
"@Override\n protected void initialize() {\n\n \n }",
"private void getStatus() {\n\t\t\n\t}",
"@Before public void setUp() { }",
"@Override\n public void setUp() {\n }",
"@Before\r\n\tpublic void setUp() {\n\t}",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }",
"@Override\n public void setup() {\n }",
"@Override\n public void setup() {\n }",
"private BuilderUtils() {}",
"@Before\n public void setUp() {\n }",
"@Override\n protected void init() {\n }",
"@Before\n\tpublic void setUp() throws Exception {\n\t\t\n\t}",
"@Test\r\n\tpublic void contents() throws Exception {\n\t}",
"protected void initialize() {}",
"protected void initialize() {}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}",
"protected Doodler() {\n\t}",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Override\n public void runTest() {\n }",
"@Before\n public void setUp() throws Exception {\n\n }",
"private void init() {\n }",
"public final void mo51373a() {\n }",
"@Test\r\n\tpublic void testSanity() {\n\t}",
"@Override\n\tpublic void beforeClassSetup() {\n\t\t\n\t}",
"private ProcessorUtils() { }",
"@Before\n public void setUp() throws Exception {\n }",
"@Before\n public void setUp() throws Exception {\n }",
"@Before\r\n public void setUp()\r\n {\r\n }",
"@Before\r\n public void setUp()\r\n {\r\n }"
] | [
"0.6315484",
"0.62910306",
"0.62089396",
"0.59769475",
"0.5923137",
"0.58382624",
"0.58243227",
"0.57882816",
"0.577634",
"0.575917",
"0.5757698",
"0.5750651",
"0.5750651",
"0.5750651",
"0.5750651",
"0.5750651",
"0.5750651",
"0.5749724",
"0.5735744",
"0.5721228",
"0.57055783",
"0.56569487",
"0.56569487",
"0.56569487",
"0.56569487",
"0.56489223",
"0.56238663",
"0.56178033",
"0.56118464",
"0.5606769",
"0.55998814",
"0.55962265",
"0.5593884",
"0.5591632",
"0.5581012",
"0.5579901",
"0.5579901",
"0.5579901",
"0.55630577",
"0.556231",
"0.5558945",
"0.55565584",
"0.5556429",
"0.5555775",
"0.55525285",
"0.5542739",
"0.5536735",
"0.55364656",
"0.5536276",
"0.55359846",
"0.5531323",
"0.5514585",
"0.5507",
"0.5506705",
"0.55054325",
"0.54991305",
"0.54991305",
"0.54991305",
"0.54991305",
"0.54991305",
"0.5498136",
"0.5498136",
"0.54967445",
"0.54923475",
"0.54909134",
"0.54893166",
"0.5489104",
"0.5483652",
"0.5483652",
"0.54819804",
"0.5468278",
"0.5467462",
"0.54663515",
"0.54663515",
"0.54663515",
"0.54663515",
"0.54663515",
"0.54663515",
"0.54663515",
"0.54663515",
"0.54663515",
"0.54663515",
"0.54663515",
"0.54663515",
"0.54663515",
"0.54663515",
"0.54663515",
"0.54663515",
"0.54663515",
"0.54663515",
"0.5464329",
"0.5463372",
"0.5457536",
"0.5455221",
"0.5453609",
"0.54532903",
"0.54528654",
"0.54504",
"0.54504",
"0.54476595",
"0.54476595"
] | 0.0 | -1 |
recorremos la lista de actividades | private void comprobarActividades(List<DetectedActivity> actividadesProvables){
for( DetectedActivity activity : actividadesProvables) {
//preguntamos por el tipo
switch( activity.getType() ) {
case DetectedActivity.IN_VEHICLE: {
//preguntamos por la provabilidad de que sea esa actividad
//si es mayor de 75 (de cien) mostramos un mensaje
if(activity.getConfidence()>75){
Log.i("samsoftRecAct","En vehiculo");
}
break;
}
case DetectedActivity.ON_BICYCLE: {
if(activity.getConfidence()>75){
Log.i("samsoftRecAct","En bici");
}
break;
}
case DetectedActivity.ON_FOOT: {
//este lo dejamos vacio por que va implicito en correr y andar
break;
}
case DetectedActivity.RUNNING: {
if(activity.getConfidence()>75){
Log.i("samsoftRecAct","Corriendo");
}
break;
}
case DetectedActivity.WALKING: {
if(activity.getConfidence()>75){
Log.i("samsoftRecAct","Andando");
}
break;
}
case DetectedActivity.STILL: {
if(activity.getConfidence()>75){
Log.i("samsoftRecAct","Quieto");
}
break;
}
case DetectedActivity.TILTING: {
if(activity.getConfidence()>75){
Log.i("samsoftRecAct","Tumbado");
}
break;
}
case DetectedActivity.UNKNOWN: {
//si es desconocida no decimos nada
break;
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Oficios> buscarActivas();",
"public String[] getActivations(){\n return activations;\n }",
"@Override\r\n\tpublic List<EquipoCompetencia> listarActivos() {\n\t\treturn null;\r\n\t}",
"public List<ActividadEntitie> LoadAllActividades() {\r\n\t\t\r\n\t\tCursor cursor = this.myDatabase.query(ActividadTablaEntidad.nombre_tabla,\r\n\t\t\t\t new String[] {ActividadTablaEntidad.id,ActividadTablaEntidad.actividad_codigo,ActividadTablaEntidad.actividad_descripcion}, \r\n\t\t\t\t null,null,null,null,ActividadTablaEntidad.actividad_codigo);\r\n\t\t\r\n\t\tcursor.moveToFirst();\r\n\t\t\r\n\t\tActividadEntitie datos = null;\r\n\t\tArrayList<ActividadEntitie> actividadList = null;\r\n\t\t\r\n\t\tif (cursor != null ) {\r\n\t\t\t\r\n\t\t\tactividadList = new ArrayList<ActividadEntitie>();\r\n\t\t\t\r\n\t\t\t\r\n\t\t if (cursor.moveToFirst()) {\r\n\t\t do {\r\n\t\t \t\r\n\t\t \tdatos = new ActividadEntitie();\r\n\t\t \tdatos.set_codigoActividad(cursor.getString(cursor.getColumnIndex(ActividadTablaEntidad.actividad_codigo)));\r\n\t\t \tdatos.set_descripcionActividad(cursor.getString(cursor.getColumnIndex(ActividadTablaEntidad.actividad_descripcion)));\r\n\t\t \tdatos.set_id(cursor.getLong(cursor.getColumnIndex(ActividadTablaEntidad.id)));\r\n\t\t \t\r\n\t\t \tactividadList.add(datos);\r\n\t\t \t\r\n\t\t }while (cursor.moveToNext());\r\n\t\t }\r\n\t\t}\r\n\t\t\r\n\t\tif(cursor != null)\r\n cursor.close();\r\n\t\t\r\n\t\treturn actividadList;\r\n\t}",
"public List<Permiso> obtenerTodosActivos();",
"@Override\n\tpublic List<TipoAsiento> listaTipoAsientosActivas() throws Exception {\n\t\treturn null;\n\t}",
"public List<ActDetalleActivo> listarPorSerial(String serial,String amie, int estado,Integer anio,int estadoActivo);",
"@Override\r\n\tpublic ArrayList<Activitat> getAll() {\r\n\t\tint i = 0;\r\n\t\tqueryString = \"SELECT * FROM \" + ACTIVITATTABLENAME;\r\n\t\tArrayList<Activitat> llistaActivitats = null;\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\tResultSet rs = s.executeQuery();\r\n\t\t\tllistaActivitats = new ArrayList<Activitat>();\r\n\t\t\tActivitatFactory af = af = new ActivitatFactory();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tCalendar cal = new GregorianCalendar();\r\n\t\t\t\tcal.setTime(rs.getDate(4));\r\n\t\t\t\t\r\n\t\t\t\tllistaActivitats.add(af.creaActivitat(rs.getString(2), rs.getString(3), cal, rs.getTimestamp(5),rs.getString(6),rs.getBoolean(7)));\r\n\t\t\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn llistaActivitats;\r\n\t}",
"@Override\n\tpublic String[] getActividades() {\n\t\treturn this.actividades;\n\t}",
"public List<SistemaActividadHumana> obtenerActividadesConfiguradas(List<SistemaActividadHumana> actividades){\n\t\treturn null;\n\t}",
"public LinkedList Actividades () {\r\n LinkedList lista = new LinkedList();\r\n String query = \"SELECT id_salida FROM actividad WHERE eliminar = false\";\r\n try {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(query);\r\n while (rs.next()) { \r\n lista.add(rs.getString(\"id_salida\"));\r\n }\r\n st.close();\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PSocio.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return lista;\r\n }",
"public List<Usuario> obtenerListaUsuariosActivos(){\n return usuarioBean.obtenerListaUsuariosActivos();\n }",
"public List<Pair> getListActividad() {\n return this.listActividad;\n }",
"@Override\n\tpublic List<ActividadesMejora> leerActividad() {\n\n\t\tConnection con = null;\n\t\tStatement stm = null;\n\t\tResultSet rs = null;\n\n\t\tString sql = \"SELECT idactividadmejora, actividadesmejora.nombre as nombre, fechainicio, fechatermino, estado, detalle, profesional_id_profesional, cliente_id_cliente, profesional.nombre || ' ' || apellido as profesional, nombreempresa as cliente FROM actividadesmejora INNER JOIN profesional ON profesional_id_profesional=id_profesional INNER JOIN cliente ON cliente_id_cliente=id_cliente\";\n\n\t\tList<ActividadesMejora> listaActividades = new ArrayList<ActividadesMejora>();\n\n\t\ttry {\n\t\t\tcon = ConexionSingleton.getConnection();\n\t\t\tstm = con.createStatement();\n\t\t\trs = stm.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\tActividadesMejora c = new ActividadesMejora();\n\t\t\t\tc.setIdActMejora(rs.getInt(\"idactividadmejora\"));\n\t\t\t\tc.setNombre(rs.getString(\"nombre\"));\n\t\t\t\tc.setFechaInicio(rs.getString(\"fechainicio\"));\n\t\t\t\tc.setFechaTermino(rs.getString(\"fechatermino\"));\n\t\t\t\tc.setEstado(rs.getString(\"estado\"));\n\t\t\t\tc.setDetalle(rs.getString(\"detalle\"));\n\t\t\t\tc.setProfesional(rs.getString(\"profesional\"));\n\t\t\t\tc.setCliente(rs.getString(\"cliente\"));\n\t\t\t\tlistaActividades.add(c);\n\t\t\t}\n\t\t\tstm.close();\n\t\t\trs.close();\n\t\t\tcon.close();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Error: Clase ActividadesMejoraDao, metodo leerActividad \");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn listaActividades;\n\t}",
"public static ArrayList<Actividad> selectActividadesProyecto(int idProyecto) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String query = \"SELECT * FROM Actividades a, Fases f, Proyectos p WHERE a.idFase=f.id AND f.idProyecto=p.id AND f.id=? ORDER BY a.anoInicio, a.mesInicio, a.diaInicio ASC\";\n ArrayList<Actividad> actividades = new ArrayList<Actividad>();\n try {\n ps = connection.prepareStatement(query);\n ps.setInt(1, idProyecto);\n rs = ps.executeQuery();\n while (rs.next()) {\n String fechaInicio = String.format(\"%02d/%02d/%04d\", rs.getInt(6), rs.getInt(7), rs.getInt(8));\n String fechaFin = String.format(\"%02d/%02d/%04d\", rs.getInt(9), rs.getInt(10), rs.getInt(11));\n Actividad a = new Actividad(rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4), rs.getInt(5), fechaInicio, fechaFin, rs.getInt(12), rs.getString(13).charAt(0), rs.getInt(14));\n actividades.add(a);\n }\n rs.close();\n ps.close();\n pool.freeConnection(connection);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return actividades;\n }",
"public void setListActividad(List<Pair> listActividad) {\n this.listActividad = listActividad;\n }",
"public ArrayList<FormularioServ> listaFServActivos(){\n\t\tArrayList<FormularioServ> listFServ = new ArrayList<FormularioServ>();\n\t\ttry{\n\t\t\tc = PoolConexion.getConnection();\n\t\t\tps = c.prepareStatement(\"select * from public.\\\"formularioServ\\\" where estado<>3\", ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE, ResultSet.HOLD_CURSORS_OVER_COMMIT);\n\t\t\trs = ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tFormularioServ Fserv = new FormularioServ();\n\t\t\t\tFserv.setIdFormulario(rs.getInt(\"idFormulario\"));\n\t\t\t\tFserv.setIdServ(rs.getInt(\"idServ\"));\n\t\t\t\tFserv.setNombreUsuario(rs.getString(\"nombreUsuario\"));\n\t\t\t\tFserv.setEmail(rs.getString(\"email\"));\n\t\t\t\tFserv.setCuerpoEmail(rs.getString(\"cuerpoEmail\"));\n\t\t\t\tFserv.setNumerotelefono(rs.getString(\"numerotelefono\"));\n\t\t\t\tFserv.setfCreacion(rs.getTimestamp(\"fcreacion\"));\n\t\t\t\tFserv.setEstado(rs.getInt(\"estado\"));\n\t\t\t\t\n\t\t\t\tlistFServ.add(Fserv);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tSystem.out.println(\"DATOS: ERROR EN LISTAR Formularios \"+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally{\n\t\t\ttry {\n\t\t\t\tif(rs != null){\n\t\t\t\t\trs.close();\n\t\t\t\t}\n\t\t\t\tif(ps != null){\n\t\t\t\t\tps.close();\n\t\t\t\t}\n\t\t\t\tif(c != null){\n\t\t\t\t\tPoolConexion.closeConnection(c);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn listFServ;\n\t}",
"public List<Beheerder> selectActive(){\n ArrayList<Beheerder> beheerders = new ArrayList<>();\n Connection connection = createConnection();\n try {\n PreparedStatement preparedStatement = connection.prepareStatement(\"SELECT * FROM gebruiker WHERE isactief = true ORDER BY id;\");\n ResultSet resultSet = preparedStatement.executeQuery();\n beheerders = fillListFromResultSet(resultSet, beheerders);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n closeConnection(connection);\n return beheerders;\n }",
"public static ArrayList<Actividad> selectActividades(String login) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String query = \"SELECT * FROM Actividades WHERE login=?\";\n ArrayList<Actividad> actividades = new ArrayList<Actividad>();\n try {\n ps = connection.prepareStatement(query);\n ps.setString(1, login);\n rs = ps.executeQuery();\n while (rs.next()) {\n String fechaInicio = String.format(\"%04d-%02d-%02d\", rs.getInt(8), rs.getInt(7), rs.getInt(6));\n String fechaFin = String.format(\"%04d-%02d-%02d\", rs.getInt(11), rs.getInt(10), rs.getInt(9));\n Actividad a = new Actividad(rs.getInt(1), login, rs.getString(3), rs.getString(4), rs.getInt(5), fechaInicio, fechaFin, rs.getInt(12), rs.getString(13).charAt(0), rs.getInt(14));\n actividades.add(a);\n }\n rs.close();\n ps.close();\n pool.freeConnection(connection);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return actividades;\n }",
"public List<New> listByActiveCiteria(String active);",
"public List<Activity> getAllActivities();",
"List<User> getActivatedUserList();",
"private List<Task> tasks2Present(){\n List<Task> tasks = this.taskRepository.findAll();\n// de taken verwijderen waar user eerder op reageerde\n tasks2React(tasks);\n// taken op alfabetische volgorde zetten\n sortTasks(tasks);\n// opgeschoonde lijst aan handler geven\n return tasks;\n }",
"public void obtenerLista(){\n listaInformacion = new ArrayList<>();\n for (int i = 0; i < listaPersonales.size(); i++){\n listaInformacion.add(listaPersonales.get(i).getId() + \" - \" + listaPersonales.get(i).getNombre());\n }\n }",
"public List<PeriodoLetivo> listAllActive() {\n EntityManager em = super.entityManager;\n CriteriaBuilder cb = em.getCriteriaBuilder();\n CriteriaQuery<PeriodoLetivo> criteriaQuery = cb.createQuery(this.type);\n Root<PeriodoLetivo> root = criteriaQuery.from(this.type);\n \n Predicate ativeCondition = cb.equal(root.get(PeriodoLetivo.PROP_SITUACAO), SITUACAO_ATIVO);\n \n criteriaQuery.where(ativeCondition);\n \n TypedQuery<PeriodoLetivo> query = em.createQuery(criteriaQuery);\n return query.getResultList();\n }",
"public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}",
"private void listarEntidades() {\r\n\t\tsetListEntidades(new ArrayList<EntidadDTO>());\r\n\t\tgetListEntidades().addAll(entidadController.encontrarTodos());\r\n\t\tif (!getListEntidades().isEmpty()) {\r\n\t\t\tfor (EntidadDTO entidadDTO : getListEntidades()) {\r\n\t\t\t\t// Conversión de decimales.\r\n\t\t\t\tDouble porcentaje = entidadDTO.getPorcentajeValorAsegurable() * 100;\r\n\t\t\t\tdouble por = Math.round(porcentaje * Math.pow(10, 2)) / Math.pow(10, 2);\r\n\t\t\t\tentidadDTO.setPorcentajeValorAsegurable(por);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n public List<Item> getActiveTasks() {\n Session session = this.factory.openSession();\n List<Item> list = session.createQuery(\"from Item where status = 0\").list();\n session.close();\n return list;\n }",
"protected List<String> getActives() {\n\t\treturn myActives;\n\t}",
"public List<Activo> _queryCuentaContable_ActivoList(Long cuentacontable_id) {\n synchronized (this) {\n if (cuentaContable_ActivoListQuery == null) {\n QueryBuilder<Activo> queryBuilder = queryBuilder();\n queryBuilder.where(Properties.Cuentacontable_id.eq(null));\n cuentaContable_ActivoListQuery = queryBuilder.build();\n }\n }\n Query<Activo> query = cuentaContable_ActivoListQuery.forCurrentThread();\n query.setParameter(0, cuentacontable_id);\n return query.list();\n }",
"public List<Usuarios> findAllActive() throws javax.persistence.NoResultException {\r\n return EM.createNamedQuery(Usuarios.FIND_ALL_ACTIVE_USUARIOS)\r\n .setParameter(\"p2\", Estados.ACTIVO)\r\n .getResultList();\r\n }",
"@Override\r\n\tpublic List<Tramite_presentan_info_impacto> lista() {\n\t\treturn tramite.lista();\r\n\t}",
"private void obterDadosActivityLista() {\r\n bNnovo = getIntent().getExtras().getBoolean(\"novo\");\r\n }",
"@RequestMapping(value = \"/active\", method = RequestMethod.GET)\r\n\tpublic static ClearList getActiveList() {\r\n\t\tClearList clist = new ClearList();\r\n\t\tArrayList<ClearList> lists = new ArrayList<>();\r\n\t\tlists.addAll(ClearListController.getAllClearlists());\r\n\t\tfor (ClearList list:lists) {\r\n\t\t\tif(list.isActive() == true) {\r\n\t\t\t\tclist = list;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn clist;\r\n\t}",
"ArrayList<Actor> getActors();",
"public List<Activo> _queryResponsable_ActivoList(Long responsable_id) {\n synchronized (this) {\n if (responsable_ActivoListQuery == null) {\n QueryBuilder<Activo> queryBuilder = queryBuilder();\n queryBuilder.where(Properties.Responsable_id.eq(null));\n responsable_ActivoListQuery = queryBuilder.build();\n }\n }\n Query<Activo> query = responsable_ActivoListQuery.forCurrentThread();\n query.setParameter(0, responsable_id);\n return query.list();\n }",
"public List<Activo> _queryUbicacion_ActivoList(Long ubicacion_id) {\n synchronized (this) {\n if (ubicacion_ActivoListQuery == null) {\n QueryBuilder<Activo> queryBuilder = queryBuilder();\n queryBuilder.where(Properties.Ubicacion_id.eq(null));\n ubicacion_ActivoListQuery = queryBuilder.build();\n }\n }\n Query<Activo> query = ubicacion_ActivoListQuery.forCurrentThread();\n query.setParameter(0, ubicacion_id);\n return query.list();\n }",
"public List<Brand> findActives( )\n {\n List<Brand> result;\n\n //region Instrumentation\n _logger.debug( \"Entrando a BrandDAO.findActives\");\n //endregion\n\n try\n {\n CriteriaQuery<Brand> query = _builder.createQuery( Brand.class );\n Root<Brand> root = query.from( Brand.class );\n\n query.select( root );\n query.where( _builder.equal( root.get( \"_status\" ), MasterStatus.ACTIVE ) );\n\n result = _em.createQuery( query ).getResultList();\n }\n catch ( Exception e )\n {\n throw new FindAllException( e, e.getMessage() );\n }\n\n //region Instrumentation\n _logger.debug( \"Saliendo de BrandDAO.findActives result {}\", result );\n //endregion\n\n return result;\n }",
"private void carregaLista() {\n listagem = (ListView) findViewById(R.id.lst_cadastrados);\n dbhelper = new DBHelper(this);\n UsuarioDAO dao = new UsuarioDAO(dbhelper);\n //Preenche a lista com os dados do banco\n List<Usuarios> usuarios = dao.buscaUsuarios();\n dbhelper.close();\n UsuarioAdapter adapter = new UsuarioAdapter(this, usuarios);\n listagem.setAdapter(adapter);\n }",
"public ArrayList<Activity> getActivities(){\r\n return activities;\r\n }",
"public List<TaskDescription> getActiveTasks();",
"public abstract List<TipoActividad> getTiposActividadAdm() throws PersistenceException, ClassNotFoundException;",
"public void listadoCarreras() {\r\n try {\r\n this.sessionProyecto.getCarreras().clear();\r\n this.sessionProyecto.getFilterCarreras().clear();\r\n this.sessionProyecto.getCarreras().addAll(sessionUsuarioCarrera.getCarreras());\r\n this.sessionProyecto.setFilterCarreras(this.sessionProyecto.getCarreras());\r\n } catch (Exception e) {\r\n }\r\n }",
"private void getObsequios(){\n mObsequios = estudioAdapter.getListaObsequiosSinEnviar();\n //ca.close();\n }",
"private void cargarAutorizaciones() {\r\n\t\tif (parametros_empresa != null) {\r\n\t\t\tif (parametros_empresa.getTrabaja_autorizacion()) {\r\n\t\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\t\tparametros.put(\"tipo_hc\", \"\");\r\n\t\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\t\tadmision_seleccionada);\r\n\r\n\t\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\t\tIRutas_historia.PAGINA_AUTORIZACIONES,\r\n\t\t\t\t\t\t\"AUTORIZACIONES\", parametros);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static ArrayList<Comida> obtenerComidasDisponibles(){\n\t\tArrayList<Comida> comidasDisponibles = new ArrayList<Comida>();\n\t\tfor(Map.Entry<String, Comida> c : Comida.menuComidas.entrySet()) {\n\t\t\tComida comida = c.getValue();\n\t\t\tif(comida.getDisponible().equals(\"true\")) {\n\t\t\t\tcomidasDisponibles.add(comida);\n\t\t\t}\n\t\t}\n\t\treturn comidasDisponibles;\n\t}",
"private void listadoEstados() {\r\n sessionProyecto.getEstados().clear();\r\n sessionProyecto.setEstados(itemService.buscarPorCatalogo(CatalogoEnum.ESTADOPROYECTO.getTipo()));\r\n }",
"public static ArrayList<Actividad> selectActividadesInforme(String login, String fechaI, String fechaF) throws ParseException {\n //Comprobar que la fecha de Inicio no es posterior a hoy\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n java.util.Date fechaIU = formatter.parse(fechaI);\n Date hoy = Calendar.getInstance().getTime();\n if (fechaIU.compareTo(hoy) > 0) {\n return null;\n } else {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n //Selecciona actividades de fase de proyectos \"En Curso\" de determinado usuario;\n String query = \"SELECT * FROM Actividades a,Fases f,Proyectos p WHERE a.idFase=f.id AND f.idProyecto=p.id AND p.estado='E' AND a.login=?\";\n ArrayList<Actividad> actividades = new ArrayList<Actividad>();\n try {\n ps = connection.prepareStatement(query);\n ps.setString(1, login);\n rs = ps.executeQuery();\n while (rs.next()) {\n String fechaInicio = String.format(\"%04d-%02d-%02d\", rs.getInt(8), rs.getInt(7), rs.getInt(6));\n String fechaFin = String.format(\"%04d-%02d-%02d\", rs.getInt(11), rs.getInt(10), rs.getInt(9));\n\n Actividad a = new Actividad(rs.getInt(1), login, rs.getString(3), rs.getString(4), rs.getInt(5), fechaInicio, fechaFin, rs.getInt(12), rs.getString(13).charAt(0), rs.getInt(14));\n\n //Comprobar si la actividad obtenida está entre el rango de fechas introducido por el usuario\n if (comprobarFechaEntreFechas(fechaI, fechaF, a)) {\n actividades.add(a);\n }\n }\n rs.close();\n ps.close();\n pool.freeConnection(connection);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return actividades;\n }\n }",
"public void limpiarCamposActividadesYRecord() {\r\n try {\r\n opcionTableroControlSeguim = \"\";\r\n estadoPanelMisActivid = false;\r\n estadoPanelMisRecordat = false;\r\n estadoPanelActividAsign = false;\r\n estadoPanelRecordatAsign = false;\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".limpiarCamposCita()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }",
"public abstract List<TipoActividad> getTiposActividad() throws PersistenceException, ClassNotFoundException;",
"public List<Individual> getListOfActiveIndividuals(){\n List<Individual> individualList = new ArrayList<>();\n\t\tList<Individual> activeIndividualList = new ArrayList<>();\n\t\tindividualList = (new TeamsJsonReader()).getListOfIndividuals();\n\t\tIndividual individual = null;\n\t\tint size, counter;\n\t\tfor (size = 0; size < individualList.size(); size++) {\n\t\t\tcounter = 0;\n\n\t\t\tindividual = individualList.get(size);\n\n\t\t\tif (individual.isActive()) {\n\t\t\t\tcounter = 1;\n\n\t\t\t\tactiveIndividualList.add(individual);\n\n\t\t\t}\n\t\t}\n\n\t\treturn activeIndividualList;\n\n }",
"@Override\n public Retorno_MsgObj obtenerLista() {\n PerManejador perManager = new PerManejador();\n\n return perManager.obtenerLista(\"Inscripcion.findAll\", null);\n }",
"@Override\r\n\tpublic ArrayList<Activitat> getAllNoSenior() {\r\n\t\tint i = 0;\r\n\t\tqueryString = \"SELECT * FROM \" + ACTIVITATTABLENAME + \" WHERE SENIOR = FALSE\";\r\n\t\tArrayList<Activitat> llistaActivitats = null;\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\tResultSet rs = s.executeQuery();\r\n\t\t\tllistaActivitats = new ArrayList<Activitat>();\r\n\t\t\tActivitatFactory af = af = new ActivitatFactory();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tCalendar cal = new GregorianCalendar();\r\n\t\t\t\tcal.setTime(rs.getDate(4));\r\n\t\t\t\t\r\n\t\t\t\tllistaActivitats.add(af.creaActivitat(rs.getString(2), rs.getString(3), cal, rs.getTimestamp(5),rs.getString(6),rs.getBoolean(7)));\r\n\t\t\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn llistaActivitats;\r\n\t}",
"private void listaContatos() throws SQLException {\n limpaCampos();\n BdLivro d = new BdLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\");\n\n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }",
"private void addActiveCourseListToCourseList() {\n courseList.addCoursesToList(activeCourseList);\n activeCourseList = new ArrayList<>();\n System.out.println(\"Added and Cleared!\");\n }",
"public List<DeclarationNaissance> getAllActe();",
"public void Listar() {\n try {\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n this.listaApelaciones.clear();\n setListaApelaciones(apelacionesDao.cargaApelaciones());\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public JFPrincipioActivo() {\n initComponents();\n this.activarControles(false);\n this.listarPrincipiosActivos();\n }",
"private void cargaComonentes() {\n\t\trepoInstituciones = new InstitucionesRepository(session);\n\t\trepoInstitucion_usuario = new Institucion_UsuariosRepository(session);\n\t\tList upgdsList = null;\n\t\tif(mainApp.getUsuarioApp().getPer_Usu_Id().equalsIgnoreCase(\"Alcaldia\")){\n\t\t\tupgdsList = repoInstituciones.listByMunicipio(mainApp.getUsuarioApp().getMun_Usu_Id());\n\t\t\tInstituciones instiL=new Instituciones();\n\t\t\tIterator iter = upgdsList.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tinstiL=(Instituciones) iter.next();\n\t\t\t\tinstitucionesList.add(instiL);\n\t\t\t}\n\t\t}else{\n\t\t\tInstitucion_Usuarios institucion_usuario = new Institucion_Usuarios();\n\t\t\tupgdsList = repoInstitucion_usuario.getListIpsByUsuario(mainApp.getUsuarioApp().getUsu_Id());\n\t\t\tIterator iter = upgdsList.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tinstitucion_usuario = (Institucion_Usuarios) iter.next();\n\t\t\t\tinstitucionesList.add(repoInstituciones.findById(institucion_usuario.getIps_Ipsu_Id()));\n\t\t\t}\n\t\t}\n\t\t\n\t\tinstitucionesBox.setItems(institucionesList);\n\t\tinstitucionesBox.setValue(mainApp.getInstitucionApp());\n\n\t\tinstitucionesBox.valueProperty().addListener(new ChangeListener<Instituciones>() {\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Instituciones> observable, Instituciones oldValue,\n\t\t\t\t\tInstituciones newValue) {\n\t\t\t\tmainApp.setInstitucionApp(newValue);\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public List listar() {\n return instalaciones.getAll();\n }",
"private void getAll(){\n if (!LOADED_ALL) {\n Message msg_getpersons = Message.obtain(getPersonsHandlerThread.getHandler());\n msg_getpersons.what = GetPersonsHandlerThread.TASK_GET_PERSONS;\n int table1 = TABLE_ALL;\n msg_getpersons.arg1 = table1;\n Log.d(TAG, \"DbOperationsRunnable: run(): preparing message msg_getperson with following attributes:\");\n Log.d(TAG, \"DbOperationsRunnable: run(): msg_getpersons.what = \" + msg_getpersons.what);\n Log.d(TAG, \"DbOperationsRunnable: run(): msg_getpersons.arg1 = \" + msg_getpersons.arg1);\n Log.d(TAG, \"DbOperationsRunnable: run(): sending message...\");\n msg_getpersons.sendToTarget();\n while (true) {\n if (DONE_TASK_GETPERSONS) {\n DONE_TASK_GETPERSONS = false;\n break;\n }\n }\n LOADED_ALL = true;\n } else {\n persons_list.clear();\n persons_list.addAll(all_list);\n }\n }",
"public void notificarTodos(){\n for (Observer observer : list) {\n observer.notificar();\n }\n }",
"private void carregarPacienteAtivoList() {\n\t\tthis.setPacienteList(new ArrayList<Paciente>());\n\t\tthis.getPacienteList().addAll(this.getPacienteDAO().getPacienteAtivoList());\n\t}",
"public void displayActivations(){\n for (int i = 0; i < neurons.size(); i++){\n System.out.println(\"Neuron \" + i + \": \" + neurons.get(i).getActivation());\n }\n }",
"public List<User> getActiveUsers(boolean active);",
"public List<ActDetalleActivo> listarDetalleActivoLaboratorio(long codigoSalaLaboratorio,long codigoTipo,String amie, int estado,int anio);",
"@Override\n\tpublic String describirActividades() {\n\t\treturn (\"Soy el secretario, recibo documentos, atiendo llamadas telefónicas y atiendo visitas\");\n\t}",
"@Override\n\tpublic String describirActividades() {\n\t\treturn (\"Soy el secretario, recibo documentos, atiendo llamadas telefónicas y atiendo visitas\");\n\t}",
"protected void listActivities(Schedule schedule) {\n List<Activity> activities = schedule.getActivities();\n List<String> list = new ArrayList<>();\n\n for (Activity activity : activities) {\n list.add(activity.getName());\n }\n listItem(list);\n }",
"private void cargarAutos() {\n Auto autos[]={\n new Auto(\"Bocho\",\"1994\"),\n new Auto(\"Jetta\",\"1997\"),\n new Auto(\"Challenger\",\"2011\"),\n new Auto(\"Ferrari\",\"2003\")\n };\n for (Auto auto : autos) {\n cboAutos.addItem(auto);\n \n }\n spnIndice.setModel(new SpinnerNumberModel(0, 0, autos.length-1, 1));\n }",
"private void loadAttractions(){\n final List<Attraction> list = MainActivity.db.attractionDAO().getAttractionList();\n ListView lv = view.findViewById(R.id.lvAttractions);\n AttractionListAdapter adapter = new AttractionListAdapter(getContext(), R.layout.layout_attraction, list);\n lv.setAdapter(adapter);\n\n lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Attraction attraction = list.get(position);\n Intent intent = new Intent(getContext(), AttractionDetailActivity.class);\n intent.putExtra(\"attraction\", attraction);\n startActivity(intent);\n }\n });\n }",
"Activite getActiviteCourante();",
"public void cargaComentPersonal(){\n List<Comentarios> list = new ArrayList<>();\n list.add(new Comentarios(Config.nombre_cli, comentario_ind[0], comentario_ind[1]));\n AdapterComentarios adpt_coment = new AdapterComentarios(list,InfoFragment.vistaInf.getContext());\n InfoFragment.listViewCP.setAdapter(adpt_coment);\n }",
"@Override\r\n public List<ActiveStatusModel> listActiveStatus() {\r\n return jdbcTemplate.query(SQL_SELECT, new ActiveStatusHelper());\r\n }",
"TaskList getList();",
"private void getEncParticipantes() {\n mEncuestasParticipantes = estudioAdapter.getListaEncuestaParticipantesSinEnviar();\n //ca.close();\n }",
"public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}",
"private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }",
"public ObservableList<String> AbmCorreos() {\n\t\t// crea un nuevo observable list\n\t\tObservableList<String> items = FXCollections.observableArrayList();\n\t\titems.addAll(\"Cargar Plantilla\", \"Mostrar Plantillas\");\n\t\treturn items;\n\t}",
"public void chargeListe(){\n jCbListeEtablissement.removeAllItems();\n String sReq = \"From Etablissement\";\n Query q = jfPrincipal.getSession().createQuery(sReq);\n Iterator eta = q.iterate();\n while(eta.hasNext())\n {\n Etablissement unEtablissement = (Etablissement) eta.next();\n jCbListeEtablissement.addItem(unEtablissement.getEtaNom());\n }\n bChargeListe = true;\n }",
"private void listaContatos() throws SQLException {\n limpaCampos();\n DAOLivro d = new DAOLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\"); \n \n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }",
"public void listaFuncionarios() {\n this.telaFuncionario.mensagemListaFuncionarios();\n for (Funcionario funcionarioCadastrado : funcionarioDAO.getList()) { //funcionariosDAO list - coloca tudo em um arrayzao e depois manda pra tela\n int matricula = funcionarioCadastrado.getMatricula();\n String nome = funcionarioCadastrado.getNome();\n String dataNascimento = funcionarioCadastrado.getDataNascimento();\n int telefone = funcionarioCadastrado.getTelefone();\n int salario = funcionarioCadastrado.getSalario();\n Cargo cargo = funcionarioCadastrado.getCargo();\n this.telaFuncionario.exibeFuncionario(matricula, nome, dataNascimento, telefone, salario, cargo);\n }\n exibeMenuFuncionario();\n }",
"public List<AccesorioBicicletaEntity> getAccesorioBici() {\r\n LOGGER.info(\"Inicia proceso de consultar todas las Bicicletaes\");\r\n // Note que, por medio de la inyección de dependencias se llama al método \"findAll()\" que se encuentra en la persistencia.\r\n List<AccesorioBicicletaEntity> acc = persistence.findAll();\r\n LOGGER.info(\"Termina proceso de consultar todas las Bicicletaes\");\r\n return acc;\r\n }",
"@Override\n\tpublic ArrayList<TransferCompra> listaCompra() {\n\t\t\n\t\t//Creamos la Transaccion\n\t\tTransactionManager.getInstance().nuevaTransaccion();\n\t\tTransactionManager.getInstance().getTransaccion().start();\n\t\tArrayList<TransferCompra> lista = FactoriaDAO.getInstance().createDAOCompra().list();\n\t\t\n\t\t//Hacemos Commit\n\t\tTransactionManager.getInstance().getTransaccion().commit();\n\t\t\n\t\t//Finalmnete cerramos la Transaccion\n\t\tTransactionManager.getInstance().eliminaTransaccion();\n\t\treturn lista;\n\t}",
"List<EcsFavourableActivity> selectAll();",
"private void fillDriversCb() {\n List<Transportista> findTransportistaEntities = getUtils().getTruckDriverController().findTransportistaEntities();\n ObservableList driversList = FXCollections.observableArrayList();\n for (Transportista t : findTransportistaEntities) {\n driversList.add(t.getNombre().trim() + \" \" + t.getApellido1().trim() + \" \" + t.getApellido2().trim());\n }\n getDriverCb().setItems(driversList);\n }",
"public String getActivo() {\r\n\t\treturn activo;\r\n\t}",
"public Collection getDTOCronogramaActividades() {\n return acts;\n }",
"public void listar() {\n\t\t\n\t}",
"public List<Activity> getActivities() {\n getRoutesFromDao();\n updateOverridenRoutes();\n List<Activity> activities = new ArrayList<>();\n for(Route route: routes){\n if(route.getActivity().isExist()){\n activities.add(route.getActivity());\n }\n }\n for(Route route: overrideTeamRoutes.values()){\n if(route.getActivity().isExist()){\n activities.add(route.getActivity());\n }\n }\n Collections.sort(activities, (a,b) -> {\n return ActivityUtils.stringToTime(a.getDetail(Activity.DATE))\n .compareTo(ActivityUtils.stringToTime(b.getDetail(Activity.DATE)));\n });\n return activities;\n }",
"public Long get_activelist() throws Exception {\n\t\treturn this.activelist;\n\t}",
"private List getActiveServiceList(List servicesList) {\r\n\r\n\t\tList activeServiceList = new ArrayList();\r\n\t\t\r\n\t\tServiceVO activeService;\t\t\r\n\t\t\r\n\t\tif (servicesList != null) {\r\n\t\t\tfor (Iterator iterator = servicesList.iterator(); iterator.hasNext();) {\r\n\t\t\t\tactiveService = (ServiceVO) iterator.next();\r\n\t\t\t\tif (activeService.getStatus() != null) {\r\n\t\t\t\t\tif (activeService.getStatus().trim().equalsIgnoreCase(\"Ativado\")) {\r\n\t\t\t\t\t\tactiveServiceList.add(activeService);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn activeServiceList;\r\n\t\t\r\n\t}",
"List<UserActivityTable> getListUserActivatesOfSpecificPoint(String platform) {\n return daoInterface.getListUserActivatesOfSpecificPoint(platform);\n\n }",
"public void mostrarInstitucionAcceso(int institucion){\r\n periodoS=null;\r\n \r\n institucionAcceso=new institucionAccesoDAO().mostrarInstitucionAcceso(institucion);\r\n //LISTADO PERIODO INSTITUCION\r\n \r\n periodoL=new periodoDAO().mostrarPeriodoInstitucion(institucion);\r\n \r\n if (periodoL.size() >0){\r\n periodoS=periodoL.get(0).getPeriodo();\r\n }\r\n cargarMenu();\r\n }",
"public void consultarListaDeContatos() {\n\t\tfor (int i = 0; i < listaDeContatos.size(); i++) {\n\t\t\tSystem.out.printf(\"%d %s \\n\", i, listaDeContatos.get(i));\n\t\t}\n\t}",
"private void setList() {\n Log.i(LOG,\"+++ setList\");\n txtCount.setText(\"\" + projectTaskList.size());\n if (projectTaskList.isEmpty()) {\n return;\n }\n\n projectTaskAdapter = new ProjectTaskAdapter(projectTaskList, darkColor, getActivity(), new ProjectTaskAdapter.TaskListener() {\n @Override\n public void onTaskNameClicked(ProjectTaskDTO projTask, int position) {\n projectTask = projTask;\n mListener.onStatusUpdateRequested(projectTask,position);\n }\n\n\n });\n\n mRecyclerView.setAdapter(projectTaskAdapter);\n mRecyclerView.scrollToPosition(selectedIndex);\n\n }",
"@Transactional\r\n\t@Override\r\n\tpublic List<FactureFiche> rechercheFactureFicheActive() {\n\t\treturn daofacturefiche.listActive();\r\n\t}",
"public static List getDireccionActiva(long Id) {\n try {\n List<String> ListaActores = new ArrayList<>();\n List<DireccionActorCatastroDto> listAct = getDireccionesActiva(Id).getItem();\n for (int i = 0; i < listAct.size(); i++) {\n DireccionActorCatastroDto ds = new DireccionActorCatastroDto();\n ds = listAct.get(i);\n String Actor = new Gson().toJson(ds);\n ListaActores.add(Actor);\n }\n return ListaActores;\n } catch (Exception e) {\n return null;\n }\n }",
"public List<EntradaDeMaterial> buscarEntradasDisponibles();",
"@Override\r\n\tpublic List<Tramite_presentan_info_impacto> lista(String rol) {\n\t\treturn tramite.lista(rol);\r\n\t}"
] | [
"0.7051063",
"0.6834119",
"0.6800472",
"0.67393327",
"0.6659396",
"0.6571008",
"0.64986306",
"0.64740926",
"0.645609",
"0.64454794",
"0.63292384",
"0.62964076",
"0.6221698",
"0.6180618",
"0.61459136",
"0.6118913",
"0.61077064",
"0.60874337",
"0.60608923",
"0.6058803",
"0.6051783",
"0.6045462",
"0.5973396",
"0.5971884",
"0.5947514",
"0.5911593",
"0.59102756",
"0.5900466",
"0.5899326",
"0.5863654",
"0.58577883",
"0.5834353",
"0.5827222",
"0.58171517",
"0.5809107",
"0.57992315",
"0.5791752",
"0.5791049",
"0.5783447",
"0.577461",
"0.5757337",
"0.57534325",
"0.5749007",
"0.573147",
"0.57086074",
"0.5699048",
"0.5698296",
"0.56976014",
"0.5695141",
"0.56884193",
"0.5650914",
"0.5650337",
"0.5643385",
"0.5620561",
"0.5619647",
"0.5611292",
"0.5609309",
"0.56056833",
"0.55705285",
"0.5555539",
"0.5544003",
"0.55424905",
"0.5541919",
"0.5540699",
"0.55343795",
"0.55214065",
"0.55180174",
"0.55180174",
"0.5517683",
"0.5514163",
"0.55091727",
"0.55051255",
"0.5500734",
"0.549984",
"0.54989547",
"0.5493446",
"0.54930645",
"0.548882",
"0.54883593",
"0.54882014",
"0.5487139",
"0.5485572",
"0.5484087",
"0.54754776",
"0.54715836",
"0.5469936",
"0.5468055",
"0.5466886",
"0.54650885",
"0.545836",
"0.54565835",
"0.54551166",
"0.5453877",
"0.5442798",
"0.5439591",
"0.5439471",
"0.5436311",
"0.5433882",
"0.54316044",
"0.5420451"
] | 0.62717575 | 12 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
txtCui = new javax.swing.JLabel();
txtNombre = new javax.swing.JLabel();
jTextCUI = new javax.swing.JTextField();
texprimernombre = new javax.swing.JTextField();
txtprimerApe = new javax.swing.JLabel();
textprimerapellido = new javax.swing.JTextField();
txtgenero = new javax.swing.JLabel();
txtfecNac = new javax.swing.JLabel();
TextFecNac = new javax.swing.JTextField();
txtDireccion = new javax.swing.JLabel();
TextDireccion = new javax.swing.JTextField();
btnGuardar = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
TextTelefono = new javax.swing.JTextField();
TextCorreo = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
textsegundoNombre = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
textsegundoapellido = new javax.swing.JTextField();
jLabel9 = new javax.swing.JLabel();
textapellidocasada = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
textlugarreferido = new javax.swing.JTextField();
jLabel10 = new javax.swing.JLabel();
textobservacion = new javax.swing.JTextField();
jLabel11 = new javax.swing.JLabel();
jLabel13 = new javax.swing.JLabel();
jLabel14 = new javax.swing.JLabel();
textNomFam = new javax.swing.JTextField();
texttelfam = new javax.swing.JTextField();
textrelfam = new javax.swing.JTextField();
jPanel1 = new javax.swing.JPanel();
jLabel15 = new javax.swing.JLabel();
jTexRegistroMedico = new javax.swing.JTextField();
jcomboxgenero = new javax.swing.JComboBox<>();
jcomboxferido = new javax.swing.JComboBox<>();
jLabel16 = new javax.swing.JLabel();
btnCOEX = new java.awt.Button();
btnlimpiar = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setBackground(new java.awt.Color(0, 0, 255));
setMinimumSize(new java.awt.Dimension(605, 315));
getContentPane().setLayout(null);
txtCui.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
txtCui.setText("CUI");
getContentPane().add(txtCui);
txtCui.setBounds(350, 90, 30, 16);
txtNombre.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
txtNombre.setText("Primer Nombre");
getContentPane().add(txtNombre);
txtNombre.setBounds(20, 110, 110, 16);
jTextCUI.setFont(new java.awt.Font("Arial Black", 1, 14)); // NOI18N
jTextCUI.setHorizontalAlignment(javax.swing.JTextField.CENTER);
getContentPane().add(jTextCUI);
jTextCUI.setBounds(380, 80, 290, 20);
texprimernombre.setHorizontalAlignment(javax.swing.JTextField.LEFT);
texprimernombre.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
texprimernombreActionPerformed(evt);
}
});
getContentPane().add(texprimernombre);
texprimernombre.setBounds(110, 110, 210, 20);
txtprimerApe.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
txtprimerApe.setForeground(new java.awt.Color(51, 51, 51));
txtprimerApe.setText("Primer Apellido");
getContentPane().add(txtprimerApe);
txtprimerApe.setBounds(20, 140, 90, 16);
textprimerapellido.setHorizontalAlignment(javax.swing.JTextField.LEFT);
textprimerapellido.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
textprimerapellidoActionPerformed(evt);
}
});
getContentPane().add(textprimerapellido);
textprimerapellido.setBounds(110, 140, 210, 22);
txtgenero.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
txtgenero.setText("Genero");
getContentPane().add(txtgenero);
txtgenero.setBounds(350, 170, 60, 16);
txtfecNac.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
txtfecNac.setText("Fecha de Nacimento");
getContentPane().add(txtfecNac);
txtfecNac.setBounds(20, 200, 120, 16);
TextFecNac.setHorizontalAlignment(javax.swing.JTextField.LEFT);
getContentPane().add(TextFecNac);
TextFecNac.setBounds(150, 200, 170, 22);
txtDireccion.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
txtDireccion.setText("Direccion");
getContentPane().add(txtDireccion);
txtDireccion.setBounds(350, 200, 70, 16);
TextDireccion.setHorizontalAlignment(javax.swing.JTextField.LEFT);
getContentPane().add(TextDireccion);
TextDireccion.setBounds(410, 200, 260, 22);
btnGuardar.setFont(new java.awt.Font("Arial Black", 0, 10)); // NOI18N
btnGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imganes/guardar111.png"))); // NOI18N
btnGuardar.setBorder(null);
btnGuardar.setContentAreaFilled(false);
btnGuardar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
btnGuardar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
btnGuardar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnGuardarActionPerformed(evt);
}
});
getContentPane().add(btnGuardar);
btnGuardar.setBounds(140, 450, 50, 50);
jLabel1.setFont(new java.awt.Font("Berlin Sans FB", 1, 18)); // NOI18N
jLabel1.setText("Datos Personales ");
getContentPane().add(jLabel1);
jLabel1.setBounds(260, 40, 153, 20);
jLabel3.setFont(new java.awt.Font("Berlin Sans FB", 1, 18)); // NOI18N
jLabel3.setText("HOSPITAL NACIONAL ESPECIALIZADO DE VIILA NUEVA ");
getContentPane().add(jLabel3);
jLabel3.setBounds(100, 10, 510, 23);
jLabel6.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
jLabel6.setText("Telefono");
getContentPane().add(jLabel6);
jLabel6.setBounds(20, 230, 70, 16);
jLabel7.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
jLabel7.setText("Correo Electronico");
getContentPane().add(jLabel7);
jLabel7.setBounds(350, 230, 110, 16);
TextTelefono.setHorizontalAlignment(javax.swing.JTextField.LEFT);
TextTelefono.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextTelefonoActionPerformed(evt);
}
});
getContentPane().add(TextTelefono);
TextTelefono.setBounds(70, 230, 250, 22);
TextCorreo.setHorizontalAlignment(javax.swing.JTextField.LEFT);
getContentPane().add(TextCorreo);
TextCorreo.setBounds(460, 230, 210, 22);
jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imganes/carpeta111.png"))); // NOI18N
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
getContentPane().add(jButton1);
jButton1.setBounds(20, 450, 50, 50);
jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imganes/copia111.png"))); // NOI18N
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
getContentPane().add(jButton2);
jButton2.setBounds(80, 450, 60, 50);
textsegundoNombre.setHorizontalAlignment(javax.swing.JTextField.LEFT);
getContentPane().add(textsegundoNombre);
textsegundoNombre.setBounds(460, 110, 210, 22);
jLabel4.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
jLabel4.setText("Segundo Nombre");
getContentPane().add(jLabel4);
jLabel4.setBounds(350, 110, 110, 16);
jLabel8.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
jLabel8.setText("Segundo Apellido");
getContentPane().add(jLabel8);
jLabel8.setBounds(350, 140, 100, 16);
textsegundoapellido.setHorizontalAlignment(javax.swing.JTextField.LEFT);
textsegundoapellido.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
textsegundoapellidoActionPerformed(evt);
}
});
getContentPane().add(textsegundoapellido);
textsegundoapellido.setBounds(460, 140, 210, 22);
jLabel9.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
jLabel9.setText("Apeliido de Casada");
getContentPane().add(jLabel9);
jLabel9.setBounds(20, 170, 120, 14);
textapellidocasada.setHorizontalAlignment(javax.swing.JTextField.LEFT);
getContentPane().add(textapellidocasada);
textapellidocasada.setBounds(140, 170, 180, 22);
jLabel2.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
jLabel2.setText("Referido");
getContentPane().add(jLabel2);
jLabel2.setBounds(20, 260, 50, 14);
jLabel5.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
jLabel5.setText("Lugar referido");
getContentPane().add(jLabel5);
jLabel5.setBounds(350, 260, 90, 16);
getContentPane().add(textlugarreferido);
textlugarreferido.setBounds(440, 260, 230, 22);
jLabel10.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
jLabel10.setText("Observación");
getContentPane().add(jLabel10);
jLabel10.setBounds(20, 300, 80, 16);
getContentPane().add(textobservacion);
textobservacion.setBounds(100, 300, 570, 20);
jLabel11.setFont(new java.awt.Font("Berlin Sans FB", 0, 18)); // NOI18N
jLabel11.setText("Familiares");
getContentPane().add(jLabel11);
jLabel11.setBounds(20, 340, 90, 30);
jLabel13.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
jLabel13.setText("Telefono");
getContentPane().add(jLabel13);
jLabel13.setBounds(230, 380, 60, 10);
jLabel14.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
jLabel14.setText("Relación Familiar ");
getContentPane().add(jLabel14);
jLabel14.setBounds(440, 380, 100, 14);
getContentPane().add(textNomFam);
textNomFam.setBounds(10, 410, 190, 22);
getContentPane().add(texttelfam);
texttelfam.setBounds(220, 410, 190, 22);
getContentPane().add(textrelfam);
textrelfam.setBounds(430, 410, 190, 22);
jPanel1.setBackground(new java.awt.Color(51, 153, 255));
getContentPane().add(jPanel1);
jPanel1.setBounds(0, 0, 700, 70);
jLabel15.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
jLabel15.setText("Registro Medico ");
getContentPane().add(jLabel15);
jLabel15.setBounds(20, 80, 100, 16);
jTexRegistroMedico.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
jTexRegistroMedico.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jTexRegistroMedicoActionPerformed(evt);
}
});
getContentPane().add(jTexRegistroMedico);
jTexRegistroMedico.setBounds(120, 80, 200, 22);
jcomboxgenero.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
jcomboxgenero.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "F", "M" }));
getContentPane().add(jcomboxgenero);
jcomboxgenero.setBounds(410, 170, 260, 22);
jcomboxferido.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
jcomboxferido.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "N", "S" }));
jcomboxferido.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jcomboxferidoActionPerformed(evt);
}
});
getContentPane().add(jcomboxferido);
jcomboxferido.setBounds(70, 260, 250, 22);
jLabel16.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
jLabel16.setText("Nombre");
getContentPane().add(jLabel16);
jLabel16.setBounds(20, 380, 70, 16);
btnCOEX.setBackground(new java.awt.Color(0, 153, 255));
btnCOEX.setFont(new java.awt.Font("Berlin Sans FB", 0, 14)); // NOI18N
btnCOEX.setLabel("Formato COEX");
btnCOEX.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnCOEXActionPerformed(evt);
}
});
getContentPane().add(btnCOEX);
btnCOEX.setBounds(550, 450, 110, 24);
btnlimpiar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imganes/limpiar.png"))); // NOI18N
btnlimpiar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnlimpiarActionPerformed(evt);
}
});
getContentPane().add(btnlimpiar);
btnlimpiar.setBounds(190, 450, 50, 50);
jButton3.setBackground(new java.awt.Color(0, 153, 255));
jButton3.setFont(new java.awt.Font("Berlin Sans FB", 0, 12)); // NOI18N
jButton3.setText("CARNE COEX");
jButton3.setAutoscrolls(true);
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
getContentPane().add(jButton3);
jButton3.setBounds(550, 490, 110, 23);
setBounds(0, 0, 712, 561);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public Soru1() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public PatientUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public Oddeven() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public kunde() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public MusteriEkle() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public frmVenda() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"public sinavlar2() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\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.createParallelGroup(\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\tAlignment.LEADING)\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.addComponent(label22,\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\tGroupLayout.PREFERRED_SIZE,\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\tGroupLayout.DEFAULT_SIZE,\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\tGroupLayout.PREFERRED_SIZE)\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.addGroup(\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\tlayout.createSequentialGroup()\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.addGap(3)\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.addComponent(\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\tlabel23,\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\tGroupLayout.PREFERRED_SIZE,\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\tGroupLayout.DEFAULT_SIZE,\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\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public CovidGUI(){\n initComponents();\n }"
] | [
"0.73212945",
"0.72917914",
"0.72917914",
"0.72917914",
"0.7287366",
"0.7249836",
"0.721417",
"0.72097963",
"0.7196912",
"0.71916485",
"0.71853215",
"0.71597755",
"0.71489745",
"0.70949036",
"0.708269",
"0.70589983",
"0.698844",
"0.69783324",
"0.69561446",
"0.6955426",
"0.6945371",
"0.6944656",
"0.69375837",
"0.6932968",
"0.6928054",
"0.6926859",
"0.6925594",
"0.6913219",
"0.6911983",
"0.6895309",
"0.68938375",
"0.68932956",
"0.6892894",
"0.6890626",
"0.6884607",
"0.68846",
"0.6882411",
"0.68800926",
"0.6876806",
"0.68746024",
"0.6872579",
"0.68610483",
"0.68578285",
"0.6856703",
"0.68561894",
"0.68556917",
"0.6854415",
"0.68533427",
"0.68533427",
"0.6845871",
"0.683798",
"0.68369555",
"0.6831096",
"0.6830327",
"0.6827701",
"0.68260276",
"0.6823495",
"0.6818927",
"0.6818081",
"0.6812399",
"0.6810863",
"0.68099326",
"0.6809729",
"0.6809209",
"0.68028694",
"0.6795423",
"0.67948353",
"0.67937005",
"0.6792886",
"0.67906576",
"0.67906004",
"0.6789859",
"0.67819977",
"0.6767867",
"0.6767806",
"0.6766053",
"0.6758636",
"0.67578846",
"0.6754785",
"0.67531604",
"0.67421174",
"0.6741255",
"0.67383784",
"0.67381734",
"0.6735697",
"0.67291236",
"0.67285603",
"0.67222154",
"0.6717221",
"0.6716751",
"0.67166525",
"0.67104757",
"0.6708696",
"0.67041177",
"0.6703501",
"0.6702847",
"0.67013067",
"0.67006314",
"0.6696194",
"0.6692627",
"0.66908866"
] | 0.0 | -1 |
para almacenar datos familiares MetodosFam metodofam = new MetodosFam(); | private void btnGuardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGuardarActionPerformed
Boolean exito = true;
try{
exito = metodobd.Guardar(
jTexRegistroMedico.getText().trim(),
jTextCUI.getText().trim(),
texprimernombre.getText().trim(),
textsegundoNombre.getText().trim(),
textprimerapellido.getText().trim(),
textsegundoapellido.getText().trim(),
textapellidocasada.getText().trim(),
jcomboxgenero.getSelectedItem().toString().trim(),
TextFecNac.getText().trim(),
TextDireccion.getText().trim(),
TextTelefono.getText().trim(),
TextCorreo.getText().trim(),
jcomboxferido.getSelectedItem().toString().trim(),
textlugarreferido.getText().trim(),
textobservacion.getText().trim(),
textNomFam.getText().trim(),
texttelfam.getText().trim(),
textrelfam.getText().trim()
);
if (!exito){
JOptionPane.showMessageDialog(null, "Datos Agregados con Exito:",
"Exito en la operacion", JOptionPane.INFORMATION_MESSAGE);
jTexRegistroMedico.setText(metodobd.getRegistroActual());
}else {
JOptionPane.showMessageDialog(null, "Error al Agregar Datos"
, "Error en la operación", JOptionPane.ERROR_MESSAGE);
}
}catch (Exception e){
JOptionPane.showMessageDialog(null, "Exception Guardar: "
+ e.getMessage(), "Error en la operación", JOptionPane.ERROR_MESSAGE);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void agregarFantasma(Fantasma fantasma) {\n // TODO implement here\n }",
"private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }",
"public Familia(String cedulaFam,Persona per,Persona per2)\n {\n cedulaFamiliar = cedulaFam;\n used = true;\n activa = true;\n asociado1 = per;\n asociado2 = per2;\n //cabeza=per;\n hijos_Ambos=null;\n hijos_Adoptados=null; \n next=null;\n }",
"public MusiqueFiducial(){\n\t\tinitialisation();\n\t}",
"public Hipermercado(){\r\n this.clientes = new CatalogoClientes();\r\n this.produtos = new CatalogoProdutos();\r\n this.numFiliais = 3;\r\n this.faturacao = new Faturacao(this.numFiliais);\r\n this.filial = new ArrayList<>(this.numFiliais);\r\n for (int i = 0; i < this.numFiliais; i++){\r\n this.filial.add(new Filial());\r\n }\r\n \r\n this.invalidas = 0;\r\n }",
"public Factura4(){\n this.totalZapatos=0;\n this.totalZapatosNacional=0;\n this.totalZapatosArtesanal=0;\n\n }",
"public Medico() {\r\n\t\tsuper();\r\n\t codmedico = \"\";\r\n\t\tespecialidad = null;\r\n\t}",
"public FiltroMicrorregiao() {\r\n }",
"public Mafia() {\n super(Side.MAFIA);\n }",
"public frmCadastrarEquipamento(Manufatura manft) {\n initComponents();\n mnft = manft;\n }",
"public Maquina() {\n savia = 0;\n reflejosLagrimas = 0;\n estado = false;\n }",
"public static void main(String[] args) {\n Ator a = new Ator(\"Alberto\");\r\n Ator b = new Ator(\"Vagner moura\");\r\n Ator c = new Ator(\"Ator 1\");\r\n\r\n Filme f= new Filme(\"Tropa de elite\", 2011);\r\n\r\n f.addPapel(a,\"papel 1\", false);\r\n f.addPapel(b,\"papel 2\", true);\r\n f.addPapel(c,\"papel 3\", true);\r\n\r\n\r\n System.out.println(a.getFilmes());\r\n /*System.out.println(f.getProtagonista());\r\n System.out.println(f);\r\n System.out.println(a);\r\n System.out.println(b);\r\n System.out.println(c);*/\r\n\r\n\r\n }",
"public datosTaller() {\n this.cedulaCliente = new int[100]; //Atributo de la clase\n this.nombreCliente = new String[100]; //Atributo de la clase\n this.compraRealizada = new String[100]; //Atributo de la clase\n this.valorCompra = new float[100]; //Atributo de la clase\n this.posicionActual = 0; //Inicializacion de la posicion en la que se almacenan datos\n }",
"public DuploQuantidadeFaturacao(){\r\n faturacao = 0;\r\n quantidade = 0;\r\n }",
"public Unidadmedida() {\r\n\t}",
"public Casa() { \n \n /* Cuando se crea la casa, tambien se debe crear la puerta */\n \n laPuerta = new Puerta();\n \n /* se pone la letra F por que son de tipo float */\n laPuerta.setAncho(2.3F);\n laPuerta.setAlto(1.5F);\n \n }",
"public VentanaFichaMedica() {\n initComponents(); \n setSize(1195, 545);\n setIcon();\n setLocationRelativeTo(null);\n setResizable(false);\n cargar(\"\");\n setTitle(\"LISTA DE FICHAS MÉDICAS\");\n inicar(); \n }",
"public Fecha () {\n\t\tthis.ahora = Calendar.getInstance();\n\t\tahora.set(2018, 3, 1, 15, 15, 0);\t \n\t\taño = ahora.get(Calendar.YEAR);\n\t\tmes = ahora.get(Calendar.MONTH) + 1; // 1 (ENERO) y 12 (DICIEMBRE)\n\t\tdia = ahora.get(Calendar.DAY_OF_MONTH);\n\t\thr_12 = ahora.get(Calendar.HOUR);\n\t\thr_24 = ahora.get(Calendar.HOUR_OF_DAY);\n\t\tmin = ahora.get(Calendar.MINUTE);\n\t\tseg = ahora.get(Calendar.SECOND);\n\t\tam_pm = v_am_pm[ahora.get(Calendar.AM_PM)]; //ahora.get(Calendar.AM_PM)=> 0 (AM) y 1 (PM)\n\t\tmes_nombre = v_mes_nombre[ahora.get(Calendar.MONTH)];\n\t\tdia_nombre = v_dia_nombre[ahora.get(Calendar.DAY_OF_WEEK) - 1];\n\n\t}",
"public DetalleFactura() {\n initComponents();\n }",
"protected FanisamBato(){\n\t}",
"public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}",
"public void agregarFruta(){\n\t\tcontenidos[14][17] = new Fruta();\n\t}",
"public FaMasterdata() {\n initComponents();\n \n load_buku();\n load_anggota();\n }",
"public static void main(String[] args) {\n Alumno aaDatos []; // El identificador es nulo\n \n aaDatos = new Alumno[tam];//Creamos un arreglo de 10 \n //alumnos - AQUI HABRA PREGUNTA\n for (int i = 0; i < aaDatos.length; i++) {\n aaDatos[i]= new Alumno(\"Dany\",\"16550518\", 0);//Para cada lugar de arreglo se crea un objeto de la clase alumno\n \n }\n for (Alumno aaDatos1: aaDatos) {\n System.out.println(\"Nombre: \"+ aaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaDatos1.getiCar());\n \n }\n \n \n //CREAMOS UNA COPIA DEL ARREGLO\n Alumno aaCopiaDatos [];\n aaCopiaDatos = new Alumno [tam];\n \n for (int i = 0; i < aaCopiaDatos.length; i++) {\n aaCopiaDatos[i]= new Alumno(aaDatos[i].getsNom(), // <<<Se llenan todos los datos que pide el constructor por argumentos\n aaDatos[i].getsMatri(), \n aaDatos[i].getiCar());\n \n }\n for (Alumno aaCopiaDatos1 : aaCopiaDatos) {\n System.out.println(\"Nombre: \"+ aaCopiaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaCopiaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaCopiaDatos1.getiCar());\n }\n System.out.println(aaDatos);\n System.out.println(aaCopiaDatos);\n }",
"public Persona(){\n /*super(nombresPosibles\n [r.nextInt(nombresPosibles.length)],(byte)r.nextInt(101));\n */\n super(\"Anónimo\",(byte)5);\n String[] nombresPosibles={\"Patracio\",\"Eusequio\",\"Bartolo\",\"Mortadelo\",\"Piorroncho\",\"Tiburcio\"};\n String[] apellidosPosibles={\"Sánchez\",\"López\",\"Martínez\",\"González\",\"Páramos\",\"Jiménez\",\"Parra\"};\n String[] nacionalidadesPosibles={\"Española\",\"Francesa\",\"Alemana\",\"Irlandesa\",\"Japonesa\",\"Congoleña\",\"Bielorrusa\",\"Mauritana\"};\n Random r=new Random();\n this.apellido=apellidosPosibles\n [r.nextInt(apellidosPosibles.length)];\n this.nacionalidad=nacionalidadesPosibles\n [r.nextInt(nacionalidadesPosibles.length)];\n mascota=new Mascota[5];\n this.saldo=r.nextInt(101);\n }",
"public Factura() {\r\n }",
"public Factura() {\r\n }",
"private void creaModuloMem() {\n /* variabili e costanti locali di lavoro */\n ArrayList<Campo> campi = new ArrayList<Campo>();\n ModuloRisultati modulo;\n Campo campo;\n\n try { // prova ad eseguire il codice\n\n campo = CampoFactory.intero(Campi.Ris.codicePiatto.getNome());\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.nomePiatto.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"piatto\");\n campo.setToolTipLista(\"nome del piatto\");\n campo.decora()\n .etichetta(\"nome del piatto\"); // le etichette servono per il dialogo ricerca\n campo.setLarghezza(250);\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.categoria.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"categoria\");\n campo.setToolTipLista(\"categoria del piatto\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteVolte.getNome());\n campo.setVisibileVistaDefault();\n campo.setLarghezza(80);\n campo.setTitoloColonna(\"quante volte\");\n campo.setToolTipLista(\n \"quante volte questo piatto è stato offerto nel periodo analizzato\");\n campo.decora().etichetta(\"quante volte\");\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quantiCoperti.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"coperti\");\n campo.setToolTipLista(\"numero di coperti che avrebbero potuto ordinare\");\n campo.decora().etichetta(\"n. coperti\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteComande.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"comande\");\n campo.setToolTipLista(\"numero di comande effettive\");\n campo.decora().etichetta(\"n. comande\");\n campo.setLarghezza(80);\n campo.setTotalizzabile(true);\n campi.add(campo);\n\n campo = CampoFactory.percentuale(Campi.Ris.gradimento.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"gradimento\");\n campo.setToolTipLista(\n \"percentuale di gradimento (è il 100% se tutti i coperti potenziali lo hanno ordinato)\");\n campo.decora().etichetta(\"% gradimento\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n modulo = new ModuloRisultati(campi);\n setModuloRisultati(modulo);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }",
"public Facturacion() {\n }",
"public PersonaFisica() {}",
"public void limpiarCampos() {\n\t\ttema = new Tema();\n\t\ttemaSeleccionado = new Tema();\n\t\tmultimedia = new Multimedia();\n\t}",
"public Ficha_epidemiologia_n13 obtenerFichaEpidemiologia() {\n\t\t\t\t\n\t\t\t\tFicha_epidemiologia_n13 ficha_epidemiologia_n13 = new Ficha_epidemiologia_n13();\n\t\t\t\tficha_epidemiologia_n13.setCodigo_empresa(empresa.getCodigo_empresa());\n\t\t\t\tficha_epidemiologia_n13.setCodigo_sucursal(sucursal.getCodigo_sucursal());\n\t\t\t\tficha_epidemiologia_n13.setCodigo_ficha(tbxCodigo_ficha.getValue());\n\t\t\t\tficha_epidemiologia_n13.setIdentificacion(tbxIdentificacion.getValue());\n\t\t\t\tficha_epidemiologia_n13.setFecha_creacion(new Timestamp(dtbxFecha_creacion.getValue().getTime()));\n\t\t\t\tficha_epidemiologia_n13.setCodigo_diagnostico(\"Z000\");\n\t\t\t\tficha_epidemiologia_n13.setFiebre(chbFiebre.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setMialgias(chbMialgias.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setCefalea(chbCefalea.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setArtralgias(chbArtralgias.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setVomito(chbVomito.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setNausea(chbNausea.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDolor_retrocular(chbDolor_retrocular.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHiperemia_conjuntival(chbHiperemia_conjuntival.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setSecrecion_conjuntival(chbSecrecion_conjuntival.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDolor_pantorrillas(chbDolor_pantorrillas.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDiarrea(chbDiarrea.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDolor_abdominal(chbDolor_abdominal.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHemoptisis(chbHemoptisis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setMelenas(chbMelenas.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setEpistaxis(chbEpistaxis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setErupcion(chbErupcion.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHematuria(chbHematuria.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTomiquete_postiva(chbTomiquete_postiva.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setEsplenomegalia(chbEsplenomegalia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setSignos_meningeos(chbSignos_meningeos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDisnea(chbDisnea.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTos(chbTos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setInsuficiencia_respiratoria(chbInsuficiencia_respiratoria.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHepatomeglia(chbHepatomeglia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setIctericia(chbIctericia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setInsuficiencia_hepatica(chbInsuficiencia_hepatica.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setInsuficiencia_renal(chbInsuficiencia_renal.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setVacuna_fiebre_amarilla(rdbVacuna_fiebre_amarilla.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDosis_fiebre_amarilla(ibxDosis_fiebre_amarilla.getValue()!=null ? ibxDosis_fiebre_amarilla.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setVacuna_hepatitis_a(rdbVacuna_hepatitis_a.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDosis_hepatitis_a(ibxDosis_hepatitis_a.getValue()!=null?ibxDosis_hepatitis_a.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setVacuna_hepatitis_b(rdbVacuna_hepatitis_b.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDosis_hepatitis_b(ibxDosis_hepatitis_b.getValue()!=null?ibxDosis_hepatitis_b.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setVacuna_leptospirosis(rdbVacuna_leptospirosis.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDosis_leptospirosis(ibxDosis_leptospirosis.getValue()!=null?ibxDosis_leptospirosis.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setPerros(chbPerros.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setGatos(chbGatos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setBovinos(chbBovinos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setEquinos(chbEquinos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setPorcions(chbPorcions.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setNinguno(chbNinguno.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setOtros_animal(chbOtros_animal.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setCual_otro(tbxCual_otro.getValue());\n\t\t\t\tficha_epidemiologia_n13.setContacto_animales(rdbContacto_animales.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setRatas_domicilio(rdbRatas_domicilio.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setRatas_trabajo(rdbRatas_trabajo.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setAcueducto(chbAcueducto.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setPozo(chbPozo.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setRio(chbRio.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTanque_almacenamiento(chbTanque_almacenamiento.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlcantarillas(rdbAlcantarillas.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setInundaciones(rdbInundaciones.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setContacto_aguas_estancadas(rdbContacto_aguas_estancadas.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setAntecedentes_deportivos(rdbAntecedentes_deportivos.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDisposicion_residuos(rdbDisposicion_residuos.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setTiempo_almacenamiento(rdbTiempo_almacenamiento.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setPersonas_sintomatologia(rdbPersonas_sintomatologia.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setLeucocitosis(chbLeucocitosis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setLeucopenia(chbLeucopenia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setNeutrofilia(chbNeutrofilia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setNeutropenia(chbNeutropenia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setLinfocitocis(chbLinfocitocis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTrombocitosis(chbTrombocitosis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTrombocitopenia(chbTrombocitopenia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHemoconcentracion(chbHemoconcentracion.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlteracion_trasaminasas(chbAlteracion_trasaminasas.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlteracion_bilirrubinas(chbAlteracion_bilirrubinas.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlteracion_bun(chbAlteracion_bun.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlteracion_creatinina(chbAlteracion_creatinina.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setCpk_elevada(chbCpk_elevada.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDengue(rdbDengue.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setMalaria(rdbMalaria.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setHepatitis_a(rdbHepatitis_a.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setHepatitis_b(rdbHepatitis_b.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setHepatitis_c(rdbHepatitis_c.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setFiebre_amarilla(rdbFiebre_amarilla.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setTipo_muestra(rdbTipo_muestra.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDestino_muestra(rdbDestino_muestra.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setOtra_muestra(tbxOtra_muestra.getValue());\n\t\t\t\tficha_epidemiologia_n13.setCultivo(rdbCultivo.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setHistoquimica(rdbHistoquimica.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setPcr(rdbPcr.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setElisa(rdbElisa.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setMicroaglutinacion(rdbMicroaglutinacion.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setPareadas(rdbPareadas.getSelectedItem().getValue().toString());\n\t\t\t\t\n\t\t\t\tif (dtbxFecha_muestra1.getValue() != null) {\n\t\t\t\t\tficha_epidemiologia_n13.setFecha_muestra1(new Timestamp(dtbxFecha_muestra1.getValue().getTime()));\n\t\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tficha_epidemiologia_n13.setFecha_muestra1(null);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\tif (dtbxFecha_muestra2.getValue() != null) {\n\t\t\t\t\tficha_epidemiologia_n13.setFecha_muestra2(new Timestamp(dtbxFecha_muestra2.getValue().getTime()));\n\t\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tficha_epidemiologia_n13.setFecha_muestra2(null);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tficha_epidemiologia_n13.setIdentificacion_serogrupos(rdbIdentificacion_serogrupos.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setTitulo_muestra1(tbxTitulo_muestra1.getValue());\n\t\t\t\tficha_epidemiologia_n13.setTitulo_muestra2(tbxTitulo_muestra2.getValue());\n\t\t\t\tficha_epidemiologia_n13.setTratamiento(rdbTratamiento.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setCual_tratamiento(tbxCual_tratamiento.getValue());\n\t\t\t\tficha_epidemiologia_n13.setTratamiento_antibiotico(tbxTratamiento_antibiotico.getValue());\n\t\t\t\tficha_epidemiologia_n13.setDosis(ibxDosis.getValue()!=null?ibxDosis.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setTiempo(ibxTiempo.getValue()!=null?ibxTiempo.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setCodigo_medico(tbxCodigo_medico.getValue());\n\t\t\t\tficha_epidemiologia_n13.setCreacion_date(new Timestamp(new GregorianCalendar().getTimeInMillis()));\n\t\t\t\tficha_epidemiologia_n13.setUltimo_update(new Timestamp(new GregorianCalendar().getTimeInMillis()));\n\t\t\t\tficha_epidemiologia_n13.setCreacion_user(usuarios.getCodigo().toString());\n\t\t\t\tficha_epidemiologia_n13.setDelete_date(null);\n\t\t\t\tficha_epidemiologia_n13.setUltimo_user(usuarios.getCodigo().toString());\n\t\t\t\tficha_epidemiologia_n13.setDelete_user(null);\n\t\t\t\tficha_epidemiologia_n13.setOtro_serogrupo(tbxOtro_serogrupo.getValue());\n\n\t\t\t\treturn ficha_epidemiologia_n13;\n\t\t\t \n\t}",
"private void populaUnidadeMedida()\n {\n UnidadeMedida u = new UnidadeMedida(\"Gramas\", \"g\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Quilo\", \"kg\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Quilo\", \"kg\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Unidade\", \"unidade\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Colher de Sopa\", \"col. sopa\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Colher de Sobremesa\", \"col. sobremesa\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Colher de Chá\", \"col. chá\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Copo\", \"copo\");\n unidadeMedidaDAO.insert(u);\n\n }",
"public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Estadisticas(datosPrueba2);\n\t\tprueba3 = new Estadisticas(datosPrueba3);\n\t\tprueba4 = new Estadisticas(datosPrueba4);\n\t\t// finAdd\n\t}",
"public MatkaKokoelma() {\n tallentaja = new TXTTallentaja();\n matkat = new ArrayList<Matka>();\n matkojenkesto = 0.0;\n }",
"public Factura4(Zapatos listaZapatos[]){\n /*al no darle parámetros se inicializa, según el enunciado, en cero por defecto*/\n this.totalZapatos=0;\n this.totalZapatosNacional=0;\n this.totalZapatosArtesanal=0;\n this.listaZapatos = listaZapatos;\n }",
"public Ficha_epidemiologia_n3 obtenerFichaEpidemiologia() {\n\t\t\n\t\t\t\tFicha_epidemiologia_n3 ficha_epidemiologia_n3 = new Ficha_epidemiologia_n3();\n\t\t\t\tficha_epidemiologia_n3.setCodigo_empresa(empresa.getCodigo_empresa());\n\t\t\t\tficha_epidemiologia_n3.setCodigo_sucursal(sucursal.getCodigo_sucursal());\n\t\t\t\tficha_epidemiologia_n3.setCodigo(\"Z000\");\n\t\t\t\tficha_epidemiologia_n3.setCodigo_ficha(tbxCodigo_ficha\n\t\t\t\t\t\t.getValue());\n\t\t\t\tficha_epidemiologia_n3.setFecha_ficha(new Timestamp(dtbxFecha_ficha.getValue().getTime()));\n\t\t\t\tficha_epidemiologia_n3.setNro_identificacion(tbxNro_identificacion.getValue());\n\t\t\t\n\t\t\t\t//ficha_epidemiologia_n3\n\t\t\t\t\t//\t.setNro_identificacion(tbxNro_identificacion.getValue());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setConoce_y_o_ha_sido_picado_por_pito(rdbConoce_y_o_ha_sido_picado_por_pito\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setTransfuciones_sanguineas(rdbTransfuciones_sanguineas\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setSometido_transplante(rdbSometido_transplante\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setHijo_de_madre_cero_positiva(rdbHijo_de_madre_cero_positiva\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setEmbarazo_actual(rdbEmbarazo_actual\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setHa_sido_donante(rdbHa_sido_donante\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setTipo_techo(rdbTipo_techo\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setTipo_paredes(rdbTipo_paredes\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setEstrato_socio_economico(rdbEstrato_socio_economico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setEstado_clinico(rdbEstado_clinico\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setClasificacion_de_caso(rdbClasificacion_de_caso\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setFiebre(chbFiebre.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDolor_toracico_cronico(chbDolor_toracico_cronico\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setDisnea(chbDisnea.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\tficha_epidemiologia_n3.setPalpitaciones(chbPalpitaciones\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setMialgias(chbMialgias.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setArtralgias(chbArtralgias.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setEdema_facial(chbEdema_facial\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setEdema_miembros_inferiores(chbEdema_miembros_inferiores\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDerrame_pericardico(chbDerrame_pericardico\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setHepatoesplenomegalia(chbHepatoesplenomegalia\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setAdenopatias(chbAdenopatias\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setChagoma(chbChagoma.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\tficha_epidemiologia_n3.setFalla_cardiaca(chbFalla_cardiaca\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setPalpitacion_taquicardia(chbPalpitacion_taquicardia\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDolor_toracico_agudo(chbDolor_toracico_agudo\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setBrandicardia(chbBrandicardia\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setSincope_o_presincope(chbSincope_o_presincope\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setHipotension(chbHipotension\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDisfagia(chbDisfagia.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setGota_gruesa_frotis_de_sangre_periferica(rdbGota_gruesa_frotis_de_sangre_periferica\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setMicrohematocrito_examen_fresco(rdbMicrohematocrito_examen_fresco\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setStrout(rdbStrout.getSelectedItem()\n\t\t\t\t\t\t.getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setElisa_igg_chagas(rdbElisa_igg_chagas\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setIfi_igg_chagas(rdbIfi_igg_chagas\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setHai_chagas(rdbHai_chagas\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setElectrocardiograma(rdbElectrocardiograma\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setEcocardiograma(rdbEcocardiograma\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setRayos_x_de_torax_indice_toracico(rdbRayos_x_de_torax_indice_toracico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setHolter(rdbHolter.getSelectedItem()\n\t\t\t\t\t\t.getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setTratamiento_etiologico(rdbTratamiento_etiologico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setTratamiento_sintomatico(rdbTratamiento_sintomatico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setPosible_via_transmision(rdbPosible_via_transmision\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setRomana(chbRomana.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\t\n\t\t\t\tficha_epidemiologia_n3.setCodigo_empresa(empresa\n\t\t\t\t\t\t.getCodigo_empresa());\n\t\t\t\t\n\t\t\t\tficha_epidemiologia_n3.setCodigo_sucursal(sucursal\n\t\t\t\t\t\t.getCodigo_sucursal());\n\t\t\t\t// ficha_epidemiologia_n3.setCodigo(tbxCodigo.getValue());\n\t\t\t\tficha_epidemiologia_n3.setResultado1(tbxResultado1.getValue());\n\t\t\t\tficha_epidemiologia_n3.setResultado2(tbxResultado2.getValue());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setSemanas_de_embarazo((ibxSemanas_de_embarazo\n\t\t\t\t\t\t\t\t.getValue() != null ? ibxSemanas_de_embarazo\n\t\t\t\t\t\t\t\t.getValue() : 0));\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setNumero_familiares_con_changa((ibxNumero_familiares_con_changa\n\t\t\t\t\t\t\t\t.getValue() != null ? ibxNumero_familiares_con_changa\n\t\t\t\t\t\t\t\t.getValue() : 0));\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setConstipacion_cronica(chbConstipacion_cronica\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setCreacion_date(new Timestamp(\n\t\t\t\t\t\tnew GregorianCalendar().getTimeInMillis()));\n\t\t\t\tficha_epidemiologia_n3.setUltimo_update(new Timestamp(\n\t\t\t\t\t\tnew GregorianCalendar().getTimeInMillis()));\n\t\t\t\tficha_epidemiologia_n3.setCreacion_user(usuarios.getCodigo()\n\t\t\t\t\t\t.toString());\n\t\t\t\tficha_epidemiologia_n3.setDelete_date(null);\n\t\t\t\tficha_epidemiologia_n3.setUltimo_user(usuarios.getCodigo()\n\t\t\t\t\t\t.toString());\n\t\t\t\tficha_epidemiologia_n3.setDelete_user(null);\n\t\t\t\tficha_epidemiologia_n3.setOtro_tipo_techo(tbxotro_tipo_techo.getValue());\n\n\t\t\t\t\n\t\treturn ficha_epidemiologia_n3;\n\t\t}",
"public BurbujaInmaculada(){\n\t\tthis.afectador = new AfectadorPorTurnos(2, new EfectoBurbujaInmaculada());\n\t}",
"public Celula() { // Sentinela\n\t\tthis.item = new Jogador();\n\t\tproximo = null;\n\t}",
"public MainMedico(Medico m) {\n initComponents();\n createTable(m);\n }",
"public Persona() { // constructor sin parámetros\r\n\t\t\r\n\t\tthis.nif = \"44882229Y\";\r\n\t\tthis.nombre=\"Anonimo\";\r\n\t\tthis.sexo = 'F';\r\n\t\tthis.fecha = LocalDate.now();\r\n\t\tthis.altura = 180;\r\n\t\tthis.madre = null;\r\n\t\tthis.padre = null;\r\n\t\tcontador++;\r\n\t}",
"public Artefato() {\r\n\t\tthis.membros = new ArrayList<Membro>();\r\n\t\tthis.servicos = new ArrayList<IServico>();\r\n\t}",
"public Camion(int peso,Marcas marca,int kilometraje,int antiguedad) {\n super(peso,marca,kilometraje,antiguedad);\n if (super.getMarca().equals(\"FORD\")|| super.getMarca().equals(\"FIAT\"))\n {\n super.setArticulado();\n }\n if(super.getArticulado() && getPeso()<3000)\n {\n super.setCumpleNormativa();\n }\n if(!super.getArticulado() && getPeso()<2000)\n {\n super.setCumpleNormativa();\n }\n\n }",
"private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}",
"public Data() {\n\t\tCalendar now = new GregorianCalendar();\n\t\tthis.anno = now.get(Calendar.YEAR);\n\t\tthis.giorno = now.get(Calendar.DAY_OF_MONTH);\n\t\tthis.mese = Data.MESI[now.get(Calendar.MONTH)];\n\t}",
"void establecerPuntoFM(int pos){\n this.emisoraFMActual = pos;\n }",
"public nomina()\n {\n deducidoClase = new deducido();\n devengadoClase = new devengado();\n }",
"public DAOPedidoMesa() {\n\t\trecursos = new ArrayList<Object>();\n\t}",
"public Muestra(String nombreMuestra,Float peso, Float profundidadInicial,Float profundidadFinal,OperadorDeLaboratorio operador,\r\n\t\t\t\t\tUsuario usuario, Ubicacion ubicacion, AASHTO aashto, SUCS sucs,Cliente cliente,java.sql.Date fecha) {\r\n\t\tthis.nombreMuestra = nombreMuestra;\r\n\t\tthis.profundidadInicial = profundidadInicial;\r\n\t\tthis.profundidadFinal = profundidadFinal;\r\n\t\tthis.peso = peso;\r\n\t\tthis.operadorLaboratorio = operador;\r\n\t\tthis.cliente = cliente;\r\n\t\tthis.usuario = usuario;\r\n\t\tthis.ubicacion = ubicacion;\r\n\t\tthis.aashto = aashto;\r\n\t\tthis.sucs = sucs;\r\n\t\tthis.fecha = fecha;\r\n\t\tD10= new Float(0);\r\n\t\tD30= new Float(0);\r\n\t\tD60= new Float(0);\r\n\t\tthis.gradoCurvatura = new Float(0);\r\n\t\tthis.coeficienteUniformidad = new Float(0);\r\n\t\tindicePlasticidad = new Float(0);\r\n\t\tlimitePlastico = new Float(0);\r\n\t\tlimiteLiquido = new Float(0);\r\n\t}",
"public listaAlumnos()\r\n\t{\r\n\t\tinicio = fin = null; \r\n\t}",
"public HorasTrabalhadasFaces() {\n }",
"private void populaAlimento()\n {\n Alimento a = new Alimento(\"Arroz\", 100d, 5d, 0.4d, 30d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Abacaxi\", 96.2d, 1.2d, 2.3d, 6d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Carne moida - Acem\", 212.4d, 26.7d, 9.8d, 0d, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pernil Assado\", 262.3d, 32.1d, 13.1d, 0, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pao de forma integral\", 253.2d, 9.4d, 2.9d, 49, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n }",
"public Summalista()\r\n\t{\r\n\t\tthis.summa = 0;\r\n\t\tthis.alkiot = 0;\r\n\t}",
"public Memoria(Espacio[] espacios) {\r\n\t\tthis.numEspacios = espacios.length;\r\n\t\tthis.espacios = espacios;\r\n\t\ttamaņo = 0;\r\n\t\tfor (int i = 0; i < numEspacios; i++) {\r\n\t\t\ttamaņo += espacios[i].getTamaņo();\r\n\t\t}\r\n\t}",
"public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}",
"public Empresa() {\n super();\n this.nif = 0;\n this.raio = 0.0;\n this.precoPorKm = 0.0;\n this.precoPorPeso = 0.0;\n this.precoPorHora = 0.0;\n this.available = false;\n this.certificado = false;\n this.historico = new Historico();\n this.pe = null;\n }",
"Kerucut(){\r\n Tabung tab = new Tabung();\r\n tinggi=tab.getTinggi();\r\n }",
"public FrecuenciaPorSemana(){\n super(new Hora(0,0));\n dias = new boolean[7];\n for (int i = 0;i<7;i++)\n dias[i] = true;\n }",
"public Persona()\n\t{\n\t\tnombre = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\tapellido = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\tedad = 0; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\talias = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\t\t\n\t}",
"public Famille(int id, String ssFam) {\r\n\t\tthis.id=id;\r\n\t\tthis.intitule = ssFam;\r\n\t\r\n\t}",
"public CadastraFilme() {\n initComponents();\n }",
"public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }",
"void cargarDatos(Persona beanTabla) {\n this.oPersona = beanTabla;\n oFondoSolidaridad = new FondoSolidaridad();\n\n if (oPersona != null) {\n oBlFondoPrevision = new FondoPrevisionBl();\n listFondos = oBlFondoPrevision.listar(oPersona.getIdpersona());\n oFondoSolidaridad.setPersona(oPersona);\n if (listFondos.isEmpty()) {\n JOptionPane.showMessageDialog(null, \"La persona no tiene fondos\", \"ATENCION\", JOptionPane.ERROR_MESSAGE);\n } else {\n for (FondoSolidaridad obj : listFondos) {\n oModeloFondoPrevision.add(obj);\n }\n\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Verifique sus datos\", \"ATENCION\", JOptionPane.ERROR_MESSAGE);\n }\n }",
"public Manusia() {}",
"public FenetreAide(){\n\t\tbuild();\n\t}",
"public void inicializarListaMascotas()\n {\n //creamos un arreglo de objetos y le cargamos datos\n mascotas = new ArrayList<>();\n mascotas.add(new Mascota(R.drawable.elefante,\"Elefantin\",0));\n mascotas.add(new Mascota(R.drawable.conejo,\"Conejo\",0));\n mascotas.add(new Mascota(R.drawable.tortuga,\"Tortuga\",0));\n mascotas.add(new Mascota(R.drawable.caballo,\"Caballo\",0));\n mascotas.add(new Mascota(R.drawable.rana,\"Rana\",0));\n }",
"public vistaAlojamientos() {\n initComponents();\n \n try {\n miConn = new Conexion(\"jdbc:mysql://localhost/turismo\", \"root\", \"\");\n ad = new alojamientoData(miConn);\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(vistaAlojamientos.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }",
"public Moto( String nome , float valor , int ano ){\n super( nome , valor ); //define ser uma subclasse\n this.marca = \"Honda\";\n this.ano = ano;\n }",
"private void limpiarDatos() {\n\t\t\n\t}",
"public Mencacao()\r\n {\r\n texto = \"\";\r\n deUtilizador = \"\";\r\n data = new GregorianCalendar();\r\n }",
"public BuscaMedicamento() {\n initComponents();\n }",
"public FrmAbmAfiliado() {\n initComponents();\n }",
"public void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }",
"private void almacenarFallos() {\n BaseDatos bd = new BaseDatos(this);\n// Log.i(\"FALLOS\",\"Nmero de fallos final: \"+fallos);\n bd.updatePalabra(palabraActual.getId(),fallos);\n\n bd.close();\n }",
"public FrmFactura() {\n initComponents();\n }",
"private void inicializarFicha(){\n \tTypeface tfBubleGum = Util.fontBubblegum_Regular(this);\n \tTypeface tfBenton = Util.fontBenton_Boo(this);\n \tTypeface tfBentonBold = Util.fontBenton_Bold(this);\n\t\tthis.txtNombre.setTypeface(tfBubleGum);\n\t\tthis.txtDescripcion.setTypeface(tfBenton);\n\t\tthis.lblTitulo.setTypeface(tfBentonBold);\n \tpanelCargando.setVisibility(View.GONE);\n \t\n \t//cargar los datos de las informaciones\n \tif(DataConection.hayConexion(this)){\n \t\tpanelCargando.setVisibility(View.VISIBLE);\n \t\tInfo.infosInterface = this;\n \t\tInfo.cargarInfo(this.app, this.paramIdItem);\n \t}else{\n \t\tUtil.mostrarMensaje(\n\t\t\t\t\tthis, \n\t\t\t\t\tgetResources().getString(R.string.mod_global__sin_conexion_a_internet), \n\t\t\t\t\tgetResources().getString(R.string.mod_global__no_dispones_de_conexion_a_internet) );\n \t}\n }",
"public Funcionalidad() {\n Cajero cajero1 = new Cajero(\"Pepe\", 2);\n empleados.put(cajero1.getID(), cajero1);\n Reponedor reponedor1 = new Reponedor(\"Juan\", 3);\n empleados.put(reponedor1.getID(), reponedor1);\n Producto producto1 = new Producto(\"Platano\", 10, 8);\n productos.add(producto1);\n Perecedero perecedero1 = new Perecedero(LocalDateTime.now(), \"Yogurt\", 10, 8);\n }",
"public BeanDatosAlumno() {\r\n bo = new BoPrestamoEjemplarImpl();\r\n verEjemplares(\"ABC0001\"); \r\n numerodelibrosPrestados();\r\n }",
"public ConsultaMedica() {\n super();\n }",
"public void creaAziendaAgricola(){\n\t\tCantina nipozzano = creaCantina(\"Nipozzano\");\t\n\t\tBotte[] bottiNipozzano = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiNipozzano.length; i++){\n\t\t\tbottiNipozzano[i] = creaBotte(nipozzano, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\t\t\n\t\tVigna mormoreto = creaVigna(\"Mormoreto\", 330, 25, EsposizioneVigna.sud, \"Terreni ricchi di sabbia, ben drenati. Discreta presenza di calcio. pH neutro o leggermente alcalino\");\n\t\tFilare[] filariMormoreto = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMormoreto.length;i++){\n\t\t\tfilariMormoreto[i] = creaFilare(mormoreto, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\t\n\t\tVigna montesodi = creaVigna(\"Montesodi\", 400, 20, EsposizioneVigna.sud_ovest, \"Arido e sassoso, di alberese, argilloso e calcareo, ben drenato, poco ricco di sostanza organica\");\n\t\tFilare[] filariMontesodi = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMontesodi.length;i++){\n\t\t\tfilariMontesodi[i] = creaFilare(montesodi, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t/*\n\t\t * CANTINA: POMINO - VIGNETO BENEFIZIO\n\t\t */\n\t\t\n\t\tCantina pomino = creaCantina(\"Pomino\");\n\t\tBotte[] bottiPomino = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiPomino.length; i++){\n\t\t\tbottiPomino[i] = creaBotte(pomino, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\n\t\tVigna benefizio = creaVigna(\"Benefizio\", 700, 9, EsposizioneVigna.sud_ovest, \"Terreni ricchi di sabbia, forte presenza di scheletro. Molto drenanti. Ricchi in elementi minerali. PH acido o leggermente acido.\");\n\t\tFilare[] filariBenefizio = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariBenefizio.length;i++){\n\t\t\tfilariBenefizio[i] = creaFilare(benefizio, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(nipozzano);\n\t\taziendaAgricolaDAO.saveLuogo(mormoreto);\n\t\taziendaAgricolaDAO.saveLuogo(montesodi);\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(pomino);\n\t\taziendaAgricolaDAO.saveLuogo(benefizio);\n\t\t\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Giulio d'Afflitto\"));\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Francesco Ermini\"));\n\n\t\t\n\t}",
"public creacionempresa() {\n initComponents();\n mostrardatos();\n }",
"private void factura(Date fecha, Double abono, Double pendiente, String flag, Double mora) {\n Date fechaFact = fecha;\n Double montoAbonado = abono;\n Double pendActual = pendiente;\n String proxPago = flag;\n String cliente = datosC.getCliente();\n String productos = datosC.getProducto();\n String factura = this.factura;\n Double cambio = Double.parseDouble(lblCambio.getText());\n Double monto = montoAbonado + cambio;\n Double moraa = mora;\n FacturaAbono fact = new FacturaAbono(fechaFact, montoAbonado, pendActual, proxPago, cliente,\n productos, factura, cambio, monto, moraa);\n fact.setVisible(true);\n }",
"public Transportadora() {\r\n super();\r\n this.nif = \"\";\r\n this.raio = 0;\r\n this.precoKm = 0;\r\n this.classificacao = new Classificacao();\r\n this.estaLivre = true;\r\n this.velocidadeMed = 0;\r\n this.kmsTotal = 0;\r\n this.capacidade = 0;\r\n }",
"public DataMahasiswa() {\n initComponents();\n load_table();\n }",
"public TabAmiBean() {\n AmiBeanPersist pp = new AmiBeanPersist();\n ArrayList<AmiBean> friends = pp.getFriends(\"0005\");\n for(AmiBean a : friends){\n addAmi(a);\n }\n \n// Utilisé lors de la première utilisation\n// AmiBean Bs, Gc, Dm, Ff, Cg;\n// Bs = new AmiBean(\"0001\", \"BULLIER\", \"Sidonie\", 47.27756368, -1.634448546);\n// Gc = new AmiBean(\"0002\", \"GREGOIRE\", \"Clémence\", 47.27520911, -1.634768614);\n// Dm = new AmiBean(\"0003\", \"DUPUIS\", \"Mathilde\", 47.21158288, -1.56699581);\n// Ff = new AmiBean(\"0004\", \"FAGNIEZ\", \"Florian\", 47.21973845, -1.565343139);\n// Cg = new AmiBean(\"0005\", \"COUTABLE\", \"Guillaume\", 0, 0);\n// pp.enregistrer(Bs);\n// pp.enregistrer(Gc);\n// pp.enregistrer(Dm);\n// pp.enregistrer(Ff);\n// pp.enregistrer(Cg);\n// \n// BrotherhoodBeanPersist bbp = new BrotherhoodBeanPersist();\n// ArrayList<AmiBean> amiBeanArray = new ArrayList<AmiBean>();\n// amiBeanArray.add(Bs);\n// amiBeanArray.add(Gc);\n// amiBeanArray.add(Dm);\n// amiBeanArray.add(Ff);\n// bbp.addFriends(Cg, amiBeanArray);\n//\t\t\t\t\t\t\t\ttab.add(new Triple(Bs, Gc, Dm));\n//\t\t\t\t\t\t\t\ttab.add(new Triple(Ff, Cg, null));\n\n }",
"AbbayedeTamie(Machecoulais machecoulais, Context context) {\n super(0);\n this.f16556a = machecoulais;\n this.f16557b = context;\n }",
"Filmes(String nome,String genero){\n\t\tthis.nome = nome;\n\t\tthis.genero = genero;\n\t}",
"public telaCadastro() {\n initComponents();\n populaTabela();\n }",
"public MPaciente() {\r\n\t}",
"public IsFicha()\n\t{\n\t\tthis.inicializar();\n\t}",
"public Espacio() {\n dib=new Dibujo(\"Simulacion de satelites\", 800,800);\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta();\n }",
"public Familia(String cedula, Persona head)\n {\n cedulaFamiliar = cedula;\n cabeza = head;\n used = true;\n activa = true;\n asociado1=null;\n asociado2 = null;\n hijos_Ambos=null;\n hijos_Adoptados=null; \n next=null;\n }",
"public Mannschaft() {\n }",
"BaseDatosMemoria() {\n baseDatos = new HashMap<>();\n secuencias = new HashMap<>();\n }",
"public formdatamahasiswa() {\n initComponents();\n }",
"@FXML\r\n\tvoid genererForme(ActionEvent event) {\r\n\t\t// TODO\r\n\t\t// Caller la m�thode qui nous fait une forme\r\n\t\t// Cr�er un data avec infos, formesfact avec data, data fait forme, tout\r\n\t\t// remonte\r\n\t\tDataFactory data = null;\r\n\t\tif (getListView().getSelectionModel().getSelectedItem().equals(\"Triangle\")) {\r\n\t\t\tdata = new DataFactory(Integer.parseInt(getTextFdata().getText()),\r\n\t\t\t\t\tInteger.parseInt(getTextF1data().getText()), Integer.parseInt(getTextF2data().getText()),\r\n\t\t\t\t\tgetColorPicker().getValue(), Integer.parseInt(getTextF3data().getText()),\r\n\t\t\t\t\tInteger.parseInt(getTextF4data().getText()), getListView().getSelectionModel().getSelectedItem());\r\n\t\t} else {\r\n\t\t\tdata = new DataFactory(Integer.parseInt(getTextFdata().getText()),\r\n\t\t\t\t\tInteger.parseInt(getTextF1data().getText()), getColorPicker().getValue(),\r\n\t\t\t\t\tInteger.parseInt(getTextF3data().getText()), Integer.parseInt(getTextF4data().getText()),\r\n\t\t\t\t\tgetListView().getSelectionModel().getSelectedItem());\r\n\t\t}\r\n\t\tFormesFactory formesF = new FormesFactory(600, 600);\r\n\t\ttry {\r\n\t\t\tForme formedessin = formesF.getInstance(data);\r\n\t\t\tajouterForme(data);\r\n\t\t} catch (FormeException e) {\r\n\t\t\t// popper fen�tre forme invalide\r\n\t\t\tAlert dialogW = new Alert(AlertType.WARNING);\r\n\t\t\tdialogW.setTitle(\"Error\");\r\n\t\t\tdialogW.setHeaderText(null);\r\n\t\t\tdialogW.setContentText(\"Forme non valide\");\r\n\t\t\tdialogW.showAndWait();\r\n\t\t} catch (ZoneDessinException e) {\r\n\t\t\t// popper fen�tre forme out of bounds\r\n\r\n\t\t\tAlert dialogW = new Alert(AlertType.WARNING);\r\n\t\t\tdialogW.setTitle(\"Error\");\r\n\t\t\tdialogW.setHeaderText(null);\r\n\t\t\tdialogW.setContentText(\"Forme � l'ext�rieur des bordures\");\r\n\t\t\tdialogW.showAndWait();\r\n\t\t}\r\n\t}",
"public Automato(TabelaDeTransicao _tabela) {\n tabela = _tabela;\n estadosDeterminizados = (Vector) _tabela.getEstados().clone();\n }",
"public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }",
"public void abrirManoMaximo()\n {\n brazo.manoAbrirMaximo();\n }",
"public static Feudalism getInstance(){\n\t\treturn f;\r\n\t}",
"public void makeFactura() {\n Usuario userCurrent = (Usuario) FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(\"current\");\n if (userCurrent != null) {\n Calendar c = Calendar.getInstance();\n factura.setIdfactura(facturaFacade.findAll().size() + 1);\n factura.setFechaVenta(c.getTime());\n factura.setUsuarioIdusuario(userCurrent);\n factura.setHabilitada(true);\n try {\n facturaFacade.create(factura);\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Factura creada exitosamente\", null));\n factura = new Factura();\n articulosFacturas = new ArrayList<>();\n total = 0;\n } catch (Exception e) {\n System.err.println(\"Error en la creacion de la factura: \" + e.getMessage());\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_FATAL, e.getMessage(), null));\n }\n }\n getAllFacturas();\n }"
] | [
"0.71417505",
"0.6746384",
"0.67304575",
"0.668715",
"0.65774184",
"0.65270257",
"0.64802414",
"0.644838",
"0.64466625",
"0.64461476",
"0.64424664",
"0.63452005",
"0.6315557",
"0.6290797",
"0.6278501",
"0.6220379",
"0.6215646",
"0.6212001",
"0.61857754",
"0.61809134",
"0.6172091",
"0.61690474",
"0.615991",
"0.61531043",
"0.613167",
"0.6125361",
"0.6125361",
"0.612179",
"0.61087805",
"0.6102068",
"0.60924417",
"0.60918576",
"0.6085832",
"0.6058622",
"0.60542274",
"0.6050364",
"0.6039947",
"0.6035948",
"0.60217047",
"0.60216457",
"0.6019995",
"0.60143405",
"0.6006228",
"0.5996368",
"0.5992071",
"0.59909225",
"0.598973",
"0.59632736",
"0.59523225",
"0.59454894",
"0.5939796",
"0.59375215",
"0.59372085",
"0.5935705",
"0.59191847",
"0.59165806",
"0.5898012",
"0.5895689",
"0.5891926",
"0.58902484",
"0.58900124",
"0.58898944",
"0.58897054",
"0.5889609",
"0.5875345",
"0.5871308",
"0.58657724",
"0.5865058",
"0.5862694",
"0.5858532",
"0.585546",
"0.58542025",
"0.58464205",
"0.58445984",
"0.58350223",
"0.5832768",
"0.5826833",
"0.58261037",
"0.58257276",
"0.58210844",
"0.5820808",
"0.58174855",
"0.5803067",
"0.57994914",
"0.57909197",
"0.57908684",
"0.5776928",
"0.57741886",
"0.5763635",
"0.5761675",
"0.57573676",
"0.5755842",
"0.5750122",
"0.5746054",
"0.57453555",
"0.5737589",
"0.57347137",
"0.5733027",
"0.5728451",
"0.5727939",
"0.5726864"
] | 0.0 | -1 |
Constructor, makes Tetris board | TetrisBoard() {
// create new board
blockMatrix = new boolean[NUM_ROWS][NUM_COLS];
// fill in values for board
initBoard();
// add new piece to fall
addNewPiece();
// start scores at 0
numLines = 0;
numTetrises = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TetrisBoard() {\n super();\n\n myBoard = new Board();\n myHeight = myBoard.getHeight() * BLOCK_SIZE;\n myWidth = myBoard.getWidth() * BLOCK_SIZE;\n myGameMode = CLASSIC_MODE;\n myBoardString = myBoard.toString();\n myGameOver = false;\n myWelcome = true;\n myTimer = new Timer(INITIAL_TIMER_DELAY, new TimerListener());\n\n setupBoard();\n }",
"public TicTacToeBoard() {\n grid = new Cell[N][N];\n\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++)\n grid[i][j] = new Cell(i, j, '-');\n }\n }",
"public Tetris()\n {\n level = 1;\n rowsCleared = 0;\n grid = new MyBoundedGrid<>(20, 10);\n score = 0;\n display = new BlockDisplay(grid);\n display.setTitle(\"Tetris\");\n display.setArrowListener(this);\n display.showBlocks();\n current = new Tetrad(grid);\n while (true) play();\n }",
"public Board()\r\n\t{\r\n\t\tsuper(8, 8);\r\n\t}",
"public ChessBoard() {\n initComponents();\n createChessBoard();\n\n }",
"public TicTacToe(){ \r\n\t\tboard = new char[3][3];\r\n\t}",
"public Board()\r\n\t{\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\n\t\t\t{\r\n\t\t\t\tboard[x][y] = new Cell();\r\n\t\t\t\tboard[x][y].setBoxID( 3*(x/3) + (y)/3+1);\r\n\t\t\t}\r\n\t}",
"public Board() {\n\n for(int row = 0; row < size; row++) {\n for(int col = 0; col < size; col++) {\n\n grid[row][col] = \"-\";\n\n }\n }\n\n }",
"public Board(){\n for(int holeIndex = 0; holeIndex<holes.length; holeIndex++)\n holes[holeIndex] = new Hole(holeIndex);\n for(int kazanIndex = 0; kazanIndex<kazans.length; kazanIndex++)\n kazans[kazanIndex] = new Kazan(kazanIndex);\n nextToPlay = Side.WHITE;\n }",
"public ThirteensBoard()\n {\n super(BOARD_SIZE, RANKS, SUITS, POINT_VALUES);\n }",
"public Board()\r\n\t{\r\n\t\tthis.grid = new CellState[GRID_SIZE][GRID_SIZE];\r\n\t\tthis.whiteMarblesCount = MARBLES_COUNT;\r\n\t\tthis.blackMarblesCount = MARBLES_COUNT;\r\n\t\t\r\n\t\t/**\r\n\t\t * Initializes the board with empty value\r\n\t\t */\r\n\t\tfor (int indexcol = 0; indexcol < GRID_SIZE; indexcol++)\r\n\t\t{\r\n\t\t\tfor (int indexrow = 0; indexrow < GRID_SIZE; indexrow++)\r\n\t\t\t{\r\n\t\t\t\tthis.grid[indexrow][indexcol] = CellState.EMPTY;\t\t\t\t\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Sets marbles on the board with default style\r\n\t\t */\r\n\t\tfor (int indexcol = 0; indexcol < 5; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[0][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[8][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tfor (int indexcol = 0; indexcol < 6; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[1][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[7][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tfor (int indexcol = 2; indexcol < 5; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[2][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[6][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tthis.grid[3][8] = CellState.INVALID;\r\n\t\tthis.grid[2][7] = CellState.INVALID;\r\n\t\tthis.grid[1][6] = CellState.INVALID;\r\n\t\tthis.grid[0][5] = CellState.INVALID;\r\n\t\tthis.grid[5][0] = CellState.INVALID;\r\n\t\tthis.grid[6][1] = CellState.INVALID;\r\n\t\tthis.grid[7][2] = CellState.INVALID;\r\n\t\tthis.grid[8][3] = CellState.INVALID;\r\n\t}",
"public Board() {\n for (int y = 0; y < spaces.length; y++) {\n for (int x = 0; x < spaces[0].length; x++) {\n spaces[y][x] = new SubBoard();\n wonBoards[y][x] = ' ';\n }\n }\n }",
"public Board() {\n this.board = new byte[][] { new byte[3], new byte[3], new byte[3] };\n }",
"public Tetris (int width, int height) throws IOException, FontFormatException {\n\n list = new ArrayList<Tetromino>();\n list2 = new ArrayList<Tetromino>();\n //Creates list for mino order\n makeList();\n\n board = new Board(20,10);\n board2 = new Board(20,10);\n speed = 120;\n points = 0;\n points2 = 0;\n n = 0;\n n2 = 0;\n frames = 0;\n\n timer = new javax.swing.Timer(5, this);\n addKeyListener(this);//used for key controls\n\n f = Font.createFont(Font.TRUETYPE_FONT, new FileInputStream(new File(\"prstartk.ttf\"))).deriveFont(Font.PLAIN, 18);\n\n f2 = Font.createFont(Font.TRUETYPE_FONT, new FileInputStream(new File(\"prstartk.ttf\"))).deriveFont(Font.PLAIN, 6);\n\n f3 = Font.createFont(Font.TRUETYPE_FONT, new FileInputStream(new File(\"prstartk.ttf\"))).deriveFont(Font.PLAIN, 30);\n\n f4 = Font.createFont(Font.TRUETYPE_FONT, new FileInputStream(new File(\"prstartk.ttf\"))).deriveFont(Font.PLAIN, 15);\n\n setFocusable(true);\n setFocusTraversalKeysEnabled(false);\n\n Color backColor = Color.white;\n setBackground(backColor);\n\n setPreferredSize(new Dimension(width, height));\n }",
"public void Makeboard() {\r\n\r\n Normalboard(new Point2(20, 300));\r\n Normalboard(new Point2(224, 391));\r\n Stingboard(new Point2(156, 209));\r\n Leftlboard(new Point2(88, 482));\r\n Rightboard(new Point2(292, 573));\r\n Regenerateboard(new Point2(360, 118));\r\n\r\n }",
"public TicTacToeBoard() {board = new int[rows][columns];}",
"public Board() {\n //Create all pieces\n board[0][0] = new Rook(\"black\", 0, 0);\n board[0][1] = new Knight(\"black\", 0, 1);\n board[0][2] = new Bishop(\"black\", 0, 2);\n board[0][3] = new Queen(\"black\", 0, 3);\n board[0][4] = new King(\"black\", 0, 4);\n board[0][5] = new Bishop(\"black\", 0, 5);\n board[0][6] = new Knight(\"black\", 0, 6);\n board[0][7] = new Rook(\"black\", 0, 7);\n\n board[7][0] = new Rook(\"white\", 7, 0);\n board[7][1] = new Knight(\"white\", 7, 1);\n board[7][2] = new Bishop(\"white\", 7, 2);\n board[7][3] = new Queen(\"white\", 7, 3);\n board[7][4] = new King(\"white\", 7, 4);\n board[7][5] = new Bishop(\"white\", 7, 5);\n board[7][6] = new Knight(\"white\", 7, 6);\n board[7][7] = new Rook(\"white\", 7, 7);\n\n for (int j = 0; j < 8; j++) {\n board[1][j] = new Pawn(\"black\", 1, j);\n board[6][j] = new Pawn(\"white\", 6, j);\n }\n\n //Printing everything\n for (Piece[] a : board) {\n for (Piece b : a) {\n System.out.printf(\"%-15s\", \"[\" + b + \"]\");\n }\n System.out.println(\"\");\n }\n }",
"public TicTacToe()\n\t{\n\t\t// board array has an index of 10\n\t\tboard = new String[ 10 ];\n\t\t\n\t}",
"public Board()\r\n {\r\n board = new Piece[8][8];\r\n xLength = yLength = 8;\r\n }",
"public Board() {\n\t\tboard = new char[9][9];\n\t}",
"public Board() {\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n this.grid[row][col] = 0;\n }\n }\n }",
"public BoardTest() {\n initComponents();\n \n createSudoku();\n //createBoggle();\n }",
"public Board(int boardHeight, int boardWidth) {\n this.boardWidth = boardHeight+1;\n this.boardHeight = boardWidth+1;\n this.board = new char[this.boardHeight][this.boardWidth];\n this.numShips = 0;\n boardInit();\n }",
"public TTTBoard(int dimensions)\n\t{\n\t\tsuper(dimensions, dimensions);\n\t\tplayer = 0;\n\t}",
"public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n drawLines();\n \n for( int r = 0; r < board.length; r++ )\n {\n for( int c = 0; c < board[r].length; c++)\n {\n board[r][c] = \"\"; \n \n }\n }\n }",
"public Board() {\n initialize(3, null);\n }",
"public Board(String blocks) { this(blocks, Heuristic.INT, null); }",
"private Board create5by5Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 5);\n Tile t2 = new Tile(1, 5);\n Tile t3 = new Tile(2, 5);\n Tile t4 = new Tile(3, 5);\n Tile t5 = new Tile(4, 5);\n Tile t6 = new Tile(5, 5);\n Tile t7 = new Tile(6, 5);\n Tile t8 = new Tile(7, 5);\n Tile t9 = new Tile(8, 5);\n Tile t10 = new Tile(9, 5);\n Tile t11 = new Tile(10, 5);\n Tile t12 = new Tile(11, 5);\n Tile t13 = new Tile(12, 5);\n Tile t14 = new Tile(13, 5);\n Tile t15 = new Tile(14, 5);\n Tile t16 = new Tile(15, 5);\n Tile t17 = new Tile(16, 5);\n Tile t18 = new Tile(17, 5);\n Tile t19 = new Tile(18, 5);\n Tile t20 = new Tile(19, 5);\n Tile t21 = new Tile(20, 5);\n Tile t22 = new Tile(21, 5);\n Tile t23 = new Tile(22, 5);\n Tile t24 = new Tile(23, 5);\n Tile t25 = new Tile(24, 5);\n tiles = new Tile[5][5];\n tiles[0][0] = t7;\n tiles[0][1] = t6;\n tiles[0][2] = t2;\n tiles[0][3] = t5;\n tiles[0][4] = t9;\n tiles[1][0] = t3;\n tiles[1][1] = t1;\n tiles[1][2] = t8;\n tiles[1][3] = t4;\n tiles[1][4] = t11;\n tiles[2][0] = t17;\n tiles[2][1] = t18;\n tiles[2][2] = t10;\n tiles[2][3] = t25;\n tiles[2][4] = t20;\n tiles[3][0] = t23;\n tiles[3][1] = t21;\n tiles[3][2] = t12;\n tiles[3][3] = t15;\n tiles[3][4] = t13;\n tiles[4][0] = t22;\n tiles[4][1] = t24;\n tiles[4][2] = t14;\n tiles[4][3] = t16;\n tiles[4][4] = t19;\n return new Board(tiles);\n }",
"public Board() {\n\t\tmarkCount = 0;\n\t\ttheBoard = new char[3][];\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\ttheBoard[i] = new char[3];\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\ttheBoard[i][j] = SPACE_CHAR;\n\t\t}\n\t}",
"public Board(int[][] grid, Tetrimino piece) {\n //initComponents();\n this.grid = grid;\n this.piece = piece;\n setLayout(new GridLayout(grid.length-4, grid[0].length));\n init();\n }",
"public Board() {\n\t\tthis.table = new int[Constants.SIZE][Constants.SIZE];\n\t\tthis.P1Movable = new boolean[Constants.SIZE][Constants.SIZE];\n\t\tthis.P2Movable = new boolean[Constants.SIZE][Constants.SIZE];\n\t\tP1turn = true;\n\t\tnumPieces = 0;\n\t\t\n\t\tfor(int i=0; i<table.length; i++) {\n\t\t\tfor(int j=0; j<table[i].length; j++) {\n\t\t\t\ttable[i][j] = Constants.EMPTY;\n\t\t\t\tP1Movable[i][j] = true;\n\t\t\t\tP2Movable[i][j] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void create() {\n\t\t// setup Chess board\n\t\tthis.removeAll();\n\t\tthis.layout = new GridLayout(this.startupBoardSize, this.startupBoardSize);\n\t\tthis.squares = new SquarePanel[this.startupBoardSize][this.startupBoardSize];\n\t\t\n\t\tsetLayout(layout);\n\t\tsetPreferredSize(new Dimension(600, 600));\n\t\tsetBorder(new LineBorder(new Color(0, 0, 0)));\n\n\t\t//paint the chess board\n\n\t\tfor (int i = 0; i < this.startupBoardSize; i++) \n\t\t{\n\t\t\tfor (int j = 0; j < this.startupBoardSize; j++) \n\t\t\t{\n\t\t\t\tsquares[i][j] = new SquarePanel(j, i);\n\t\t\t\tsquares[i][j].setPreferredSize(new Dimension(600 / this.startupBoardSize - 5, 600 / this.startupBoardSize - 5));\n\n\n\t\t\t\tsquares[i][j].setBackground(Color.WHITE);\n\t\t\t\t\n\t\t\t\tif (((i + j) % 2) == 0) \n\t\t\t\t{\n\t\t\t\t\tsquares[i][j].setBackground(Color.DARK_GRAY);\n\t\t\t\t}\n\t\t\t\tadd(squares[i][j]);\n\t\t\t}\n\t\t}\n\t}",
"public TTTBoard() {\n\t\tgrid = new Grid();\n\t\tComputerPlayerMinMax computer = new ComputerPlayerMinMax(grid);\n\t\tcomputer.setType(CellType.CROSS);\n\t\t\n\t\tint firstPlayer = -1;\n\t\tSystem.out.println(\"Your symbol is O and computer's symbol is X.\");\n\t\tSystem.out.println(\"Enter 0 to play first; 1 to let computer play first.\");\n\t\ttry {\n\t\t\tfirstPlayer = input.nextInt();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Invalid input. Please enter either 0 or 1.\");\n\t\t}\n\t\twhile (firstPlayer < 0 || firstPlayer > 1) {\n\t\t\tSystem.out.println(\"Please enter either 1 or 0.\");\n\t\t\twhile (!input.hasNextInt()) {\n\t\t\t\tSystem.out.println(\"That's not a number!\");\n\t\t\t\tinput.next();\n\t\t\t}\n\t\t\tfirstPlayer = input.nextInt();\n\t\t}\n\t\t\n\t\tgameInit(firstPlayer);\n\t\tSystem.out.println(\"Board grid before starting the game.\");\n\t\tgrid.drawGrid();\n\t\tdo {\n\t\t\tplayerMove(currentPlayer, computer);\n\t\t\tgrid.drawGrid();\n\t\t\tupdateGameState(currentPlayer);\n\n\t\t\tif (currentState == GameState.CROSS_WON) {\n\t\t\t\tSystem.out.println(\"COMPUTER WON! TRY AGAIN!\");\n\t\t\t\tSystem.out.println(\"============================================\");\n\t\t\t}\n\t\t\telse if (currentState == GameState.CIRCLE_WON) {\n\t\t\t\tSystem.out.println(\"YOU WON! GOOD JOB!\");\n\t\t\t\tSystem.out.println(\"============================================\");\n\t\t\t}\n\t\t\telse if (currentState == GameState.DRAW) {\n\t\t\t\tSystem.out.println(\"DRAW! NICE TRY!\");\n\t\t\t\tSystem.out.println(\"============================================\");\n\t\t\t}\n\n\t\t\tcurrentPlayer = (currentPlayer == CellType.CROSS) ? CellType.CIRCLE : CellType.CROSS;\n\t\t}\n\t\t// keep on playing until one player wins or the game is drawn\n\t\twhile (currentState == GameState.PLAYING);\n\t}",
"public ChessRunner(){\n\t\taddMouseListener(this);\n\t\tfor(int i=0;i<8;i++){\n\t\t\tfor (int j=1;j<7;j++)\n\t\t\t\tif(j==1)\n\t\t\t\t\tboard[i][j] = new BlackPawn();\n\t\t\t\telse if(j==6)\n\t\t\t\t\tboard[i][j] = new WhitePawn();\n\t\t\t\telse\n\t\t\t\t\tboard[i][j]= new BlankPiece();\n\t\t}\n\t\tboard[1][0] = new BlackKnight();\n\t\tboard[6][0] = new BlackKnight();\n\t\tboard[0][0] = new BlackRook();\n\t\tboard[7][0] = new BlackRook();\n\t\tboard[2][0] = new BlackBishop();\n\t\tboard[5][0] = new BlackBishop();\n\t\tboard[4][0] = new BlackKing();\n\t\tboard[3][0] = new BlackQueen();\n\t\t\n\t\tboard[1][7] = new WhiteKnight();\n\t\tboard[6][7] = new WhiteKnight();\n\t\tboard[0][7] = new WhiteRook();\n\t\tboard[7][7] = new WhiteRook();\n\t\tboard[2][7] = new WhiteBishop();\n\t\tboard[5][7] = new WhiteBishop();\n\t\tboard[4][7] = new WhiteKing();\n\t\tboard[3][7] = new WhiteQueen();\n\t\t\n\t}",
"public Board() {\n this.x = 0;\n this.o = 0;\n }",
"private void createBoard() {\n\t// An array of rows containing rows with squares are made\n\t\tfor (int i = 0; i < squares.length; i++) {\n\t \trows[i] = new Row(squares[i]);\n\t\t}\n\n\n\t// An array of columns containing columns with squares are made\n\t\tSquare[] columnArray = new Square[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int row = 0; row < size; row++) {\n\t\t\t\tcolumnArray[row] = squares[row][i];\n\t\t }\n\t\t columns[i] = new Column(columnArray);\n\t\t columnArray = new Square[size];\n\t\t}\n\n\n\t\tSquare[] boxArray;\n\t\tint counter;\n\t\t// Box nr i\n\t\tfor (int i = 0; i < size; i = i + height) {\n\t\t // Box nr j\n\t\t for (int j = 0; j < size; j = j + length) {\n\t\t\t\tcounter = 0;\n\t\t\t\tboxArray = new Square[size];\n\t\t\t\tint rowIndex = (i / height) * height;\n\t\t\t\tint columnIndex = (j / length) * length;\n\t\t\t\t// Row nr k\n\t\t\t\tfor (int k = rowIndex; k < rowIndex + height; k++) {\n\t\t\t\t // Column nr l\n\t\t\t\t for (int l = columnIndex; l < columnIndex + length; l++) {\n\t\t\t\t\t\tboxArray[counter] = squares[k][l];\n\t\t\t\t\t\tcounter++;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tboxes[j/length][i/height] = new Box(boxArray);\n\t\t }\n\t\t}\t\n\t\tcreatePointers();\n }",
"public XOBoard() {\n\t\t// initialise the boards\n\t\tboard = new int[4][4];\n\t\trenders = new XOPiece[4][4];\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] = EMPTY;\n\t\t\t\trenders[i][j] = null;\n\t\t\t}\n\t\tcurrent_player = XPIECE;\n\n\t\t// initialise the rectangle and lines\n\t\tback = new Rectangle();\n\t\tback.setFill(Color.GREEN);\n\t\th1 = new Line();\n\t\th2 = new Line();\n\t\th3 = new Line();\n\t\tv1 = new Line();\n\t\tv2 = new Line();\n\t\tv3 = new Line();\n\t\th1.setStroke(Color.WHITE);\n\t\th2.setStroke(Color.WHITE);\n\t\th3.setStroke(Color.WHITE);\n\t\tv1.setStroke(Color.WHITE);\n\t\tv2.setStroke(Color.WHITE);\n\t\tv3.setStroke(Color.WHITE);\n\n\t\t// the horizontal lines only need the endx value modified the rest of //\n\t\t// the values can be zero\n\t\th1.setStartX(0);\n\t\th1.setStartY(0);\n\t\th1.setEndY(0);\n\t\th2.setStartX(0);\n\t\th2.setStartY(0);\n\t\th2.setEndY(0);\n\t\th3.setStartX(0);\n\t\th3.setStartY(0);\n\t\th3.setEndY(0);\n\n\t\t// the vertical lines only need the endy value modified the rest of the\n\t\t// values can be zero\n\t\tv1.setStartX(0);\n\t\tv1.setStartY(0);\n\t\tv1.setEndX(0);\n\t\tv2.setStartX(0);\n\t\tv2.setStartY(0);\n\t\tv2.setEndX(0);\n\t\tv3.setStartX(0);\n\t\tv3.setStartY(0);\n\t\tv3.setEndX(0);\n\n\t\t// setup the translation of one cell height and two cell heights\n\t\tch_one = new Translate(0, 0);\n\t\tch_two = new Translate(0, 0);\n\t\tch_three = new Translate(0, 0);\n\t\th1.getTransforms().add(ch_one);\n\t\th2.getTransforms().add(ch_two);\n\t\th3.getTransforms().add(ch_three);\n\n\t\t// setup the translation of one cell width and two cell widths\n\t\tcw_one = new Translate(0, 0);\n\t\tcw_two = new Translate(0, 0);\n\t\tcw_three = new Translate(0, 0);\n\t\tv1.getTransforms().add(cw_one);\n\t\tv2.getTransforms().add(cw_two);\n\t\tv3.getTransforms().add(cw_three);\n\n\t\t// add the rectangles and lines to this group\n\t\tgetChildren().addAll(back, h1, h2, h3, v1, v2, v3);\n\n\t}",
"public GameBoard() {\n this.gameStarted = false;\n this.turn = 1; \n this.boardState = new char[3][3];\n this.winner = 0; \n this.isDraw = false; \n\n }",
"public static void makeBoardChess() {\r\n \r\n white = new AllPiece(\"White\");\r\n black = new AllPiece(\"Black\");\r\n \r\n }",
"public MagicTetris(int width, int height)\r\n\t\t{\r\n\t\tsuper(width, height, new BasicGenerator());\r\n\t\t}",
"public OthelloBoard (int height, int width){\n super(height, width);\n m_Pieces = new OthelloPiece[WIDTH][HEIGHT];\n m_PieceCount+=4;\n \n }",
"Board() {\r\n init();\r\n }",
"public AIPlayer(Board board) {\n cells = board.squares;\n }",
"public ThreeStonesBoard(Tile[][] board) {\r\n this.board = board;\r\n }",
"public Board(char[][] board) {\n this.boardWidth = board.length;\n this.boardHeight = board[0].length;\n this.board = board;\n this.numShips = 0;\n boardInit();\n }",
"public PersonalBoard(){\n this(0);\n }",
"public void initializeBoard() {\n\n\t\t/*\n\t\t * How the array coordinates align with the actual chess board\n\t\t * (row,col) \n\t\t * (7,0) ... ... ... \n\t\t * (7,7) ... ... ... \n\t\t * ... ... ... \n\t\t * (2,0) ...\n\t\t * (1,0) ... \n\t\t * (0,0) ... ... ... (0,7)\n\t\t */\n\n\t\tboolean hasMoved = false;\n\t\tboolean white = true;\n\t\tboolean black = false;\n\n\t\t// Set white piece row\n\t\tboard[0][0] = new Piece('r', white, hasMoved, 0, 0, PieceArray.A_rookId);\n\t\tboard[0][1] = new Piece('n', white, hasMoved, 0, 1, PieceArray.B_knightId);\n\t\tboard[0][2] = new Piece('b', white, hasMoved, 0, 2, PieceArray.C_bishopId);\n\t\tboard[0][3] = new Piece('q', white, hasMoved, 0, 3, PieceArray.D_queenId);\n\t\tboard[0][4] = new Piece('k', white, hasMoved, 0, 4, PieceArray.E_kingId);\n\t\tboard[0][5] = new Piece('b', white, hasMoved, 0, 5, PieceArray.F_bishopId);\n\t\tboard[0][6] = new Piece('n', white, hasMoved, 0, 6, PieceArray.G_knightId);\n\t\tboard[0][7] = new Piece('r', white, hasMoved, 0, 7, PieceArray.H_rookId);\n\n\t\t// Set white pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[1][i] = new Piece('p', white, hasMoved, 1, i, i + 8);\n\t\t}\n\n\t\t// Set empty rows\n\t\tfor (int row = 2; row < 6; row++)\n\t\t\tfor (int col = 0; col < 8; col++)\n\t\t\t\tboard[row][col] = null;\n\n\t\t// Set black pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[6][i] = new Piece('p', black, hasMoved, 6, i, i+8);\n\t\t}\n\n\t\t// Set black piece row\n\t\tboard[7][0] = new Piece('r', black, hasMoved, 7, 0, PieceArray.A_rookId);\n\t\tboard[7][1] = new Piece('n', black, hasMoved, 7, 1, PieceArray.B_knightId);\n\t\tboard[7][2] = new Piece('b', black, hasMoved, 7, 2, PieceArray.C_bishopId);\n\t\tboard[7][3] = new Piece('q', black, hasMoved, 7, 3, PieceArray.D_queenId);\n\t\tboard[7][4] = new Piece('k', black, hasMoved, 7, 4, PieceArray.E_kingId);\n\t\tboard[7][5] = new Piece('b', black, hasMoved, 7, 5, PieceArray.F_bishopId);\n\t\tboard[7][6] = new Piece('n', black, hasMoved, 7, 6, PieceArray.G_knightId);\n\t\tboard[7][7] = new Piece('r', black, hasMoved, 7, 7, PieceArray.H_rookId);\n\t}",
"public Board(String gameType) {\n propertyFactory = new TileFactory(gameType);\n createBoard();\n }",
"public UIBoard()\r\n\t{\r\n\t\t//Creates a 10x10 \"Board\" object\r\n\t\tsuper(10,10);\r\n\t\tgrid = new int[getLength()][getWidth()];\r\n\t\t\r\n\t\t//Sets all coordinates to the value 0, which corresponds to \"not hit yet\"\r\n\t\tfor(int i=0; i<grid.length; i++)\r\n\t\t\tfor(int j=0; j<grid[i].length; j++)\r\n\t\t\t\tgrid[i][j] = 0;\t\t\r\n\t}",
"public Board() {\n\t\tdimension = 9;\n\t\tpuzzle = new int[dimension][dimension];\n\t}",
"public Board(int boardSize) {\n\n sounds = new GameSounds();\n gridSize = boardSize;\n newGame = 0;\n titleScreen = true;\n traversedTiles = new boolean[gridSize][gridSize];\n pellets = new boolean[gridSize][gridSize];\n ghosts.add(new Ghost(180, 180, ghostImage1));\n ghosts.add(new Ghost(200, 180, ghostImage2));\n ghosts.add(new Ghost(220, 180, ghostImage3));\n map = getMapFromFile(\"first.txt\");\n// ghosts.add(new Ghost(220,180,ghostImage4));\n reset();\n }",
"public Board() {\n\t\t\n\t\tchar letter = 'A';\n\t\tint letterValue;\n\t\tint tempNum;\n\t\tString position;\n\t\tString number;\n\t\t\n\t\t\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\ttempNum = j+1;\n\t\t\t\tnumber = Integer.toString(tempNum);\n\t\t\t\tposition = Character.toString(letter) + number;\n\t\t\t\t//position += Character.toString(number);\n\t\t\t\tradar[i][j] = position;\n\t\t\t}\n\t\t\tletterValue = (int) letter;\n\t\t\tletterValue++;\n\t\t\tletter = (char) letterValue;\n\t\t}\n\t\trefRadar = backup(radar);\n\t}",
"Board() {\n this(INITIAL_PIECES, BLACK);\n _countBlack = 12;\n _countWhite = 12;\n _moveHistory = new ArrayList<Move>();\n _movesMade = 0;\n }",
"public TrollGame () {\n rand = new Random();\n initBoard(ROWS, COLS, rand);\n }",
"public Board(int[][] tiles) {\n n = tiles.length;\n this.tiles = deepCopy(tiles);\n }",
"public Board(Character[][] matrix) {\n this.matrix = matrix;\n }",
"public void initializeBoard() {\r\n int x;\r\n int y;\r\n\r\n this.loc = this.userColors();\r\n\r\n this.board = new ArrayList<ACell>();\r\n\r\n for (y = -1; y < this.blocks + 1; y += 1) {\r\n for (x = -1; x < this.blocks + 1; x += 1) {\r\n ACell nextCell;\r\n\r\n if (x == -1 || x == this.blocks || y == -1 || y == this.blocks) {\r\n nextCell = new EndCell(x, y);\r\n } else {\r\n nextCell = new Cell(x, y, this.randColor(), false);\r\n }\r\n if (x == 0 && y == 0) {\r\n nextCell.flood();\r\n }\r\n this.board.add(nextCell);\r\n }\r\n }\r\n this.stitchCells();\r\n this.indexHelp(0, 0).floodInitStarter();\r\n }",
"public Board() {\n this.board = new Piece[16];\n }",
"public Board() {\n tiles = new int[3][3];\n int[] values = genValues(new int[]{1, 2, 3, 4, 5, 6, 7, 8, 0});\n\n int offset;\n for (int i = 0; i < 3; i++) {\n offset = 2 * i;\n tiles[i] = Arrays.copyOfRange(values, i + offset, i + offset + 3);\n }\n }",
"public TetrisGUI() {\r\n super();\r\n myBoardQueue = new BoardQueue();\r\n myScaleDialogQueue = new ScaleDialogQueue();\r\n myTetrisPanel = new TetrisBoardPanel();\r\n myKeyAdapter = new TetrisKeyAdapter();\r\n myPiecePanel = new PiecePanel();\r\n myInfoPanel = new InfoPanel();\r\n myTetrisMenuBar = new TetrisMenuBar();\r\n }",
"public Board(){\r\n \r\n //fill tile list with tile objects\r\n tiles.add(new Tile(new Coordinate(0,0)));\r\n tiles.add(new Tile(new Coordinate(0,1)));\r\n tiles.add(new Tile(new Coordinate(0,2)));\r\n tiles.add(new Tile(new Coordinate(1,0)));\r\n tiles.add(new Tile(new Coordinate(1,1)));\r\n tiles.add(new Tile(new Coordinate(1,2)));\r\n tiles.add(new Tile(new Coordinate(1,3)));\r\n tiles.add(new Tile(new Coordinate(2,0)));\r\n tiles.add(new Tile(new Coordinate(2,1)));\r\n tiles.add(new Tile(new Coordinate(2,2)));\r\n tiles.add(new Tile(new Coordinate(2,3)));\r\n tiles.add(new Tile(new Coordinate(2,4)));\r\n tiles.add(new Tile(new Coordinate(3,1)));\r\n tiles.add(new Tile(new Coordinate(3,2)));\r\n tiles.add(new Tile(new Coordinate(3,3)));\r\n tiles.add(new Tile(new Coordinate(3,4)));\r\n tiles.add(new Tile(new Coordinate(4,2)));\r\n tiles.add(new Tile(new Coordinate(4,3)));\r\n tiles.add(new Tile(new Coordinate(4,4)));\r\n \r\n //fills corner list with corner objects\r\n List<Coordinate> cornercoords = new ArrayList<>();\r\n for(Tile t : tiles){\r\n for(Coordinate c : t.getAdjacentCornerCoords()){\r\n if(cornercoords.contains(c)==false) cornercoords.add(c);\r\n }\r\n }\r\n for(Coordinate c : cornercoords){\r\n corners.add(new Corner(c));\r\n }\r\n \r\n //fills adjacent corner/tile fields\r\n for(Tile t: tiles){\r\n t.fillAdjacents(tiles,corners);\r\n }\r\n for(Corner c: corners){\r\n c.fillAdjacents(tiles,corners);\r\n }\r\n \r\n //generates an edge between each corner and fills the list of edges\r\n //results in lots of duplicates\r\n for(Corner c: corners){\r\n for(Corner adjacent: c.getAdjacentCorners()){\r\n edges.add(new Edge(c,adjacent));\r\n }\r\n }\r\n \r\n //hopefully removes duplicates from the edge list\r\n Iterator<Edge> iter = edges.iterator();\r\n boolean b = false;\r\n while (iter.hasNext()) {\r\n Edge e = iter.next();\r\n for(Edge edge : edges){\r\n if(e.sharesCorners(edge)==true && edge!=e){\r\n b = true;\r\n }\r\n }\r\n if(b==true) iter.remove();\r\n b = false;\r\n }\r\n \r\n //give each tile a token number and resource type \r\n ArrayList<Tile> randomtiles = randomize(tiles);\r\n int sheep = 3;\r\n int wood = 3;\r\n int rock = 2;\r\n int brick = 2;\r\n int wheat = 3;\r\n for(Tile t : randomtiles){\r\n if(sheep>0){\r\n t.setResource(Resource.SHEEP);\r\n sheep--;\r\n }\r\n if(wood>0){\r\n t.setResource(Resource.WOOD);\r\n wood--;\r\n }\r\n if(brick>0){\r\n t.setResource(Resource.CLAY);\r\n brick--;\r\n }\r\n if(wheat>0){\r\n t.setResource(Resource.WHEAT);\r\n wheat--;\r\n }\r\n if(rock>0){\r\n t.setResource(Resource.ROCK);\r\n rock--;\r\n }\r\n else t.setResource(Resource.DESERT); \r\n } \r\n randomtiles = randomize(randomtiles);\r\n int twos = 1;\r\n int twelves = 1;\r\n int threes = 2;\r\n int fours = 2;\r\n int fives = 2;\r\n int sixes = 2;\r\n int sevens = 2;\r\n int eights = 2;\r\n int nines = 2;\r\n int tens = 2;\r\n int elevens = 2; \r\n for(Tile t : randomtiles){\r\n if(t.getResource() != Resource.DESERT){\r\n if(twos != 0){\r\n t.setToken(2);\r\n twos--;\r\n }\r\n else if(threes !=0){\r\n t.setToken(3);\r\n threes--;\r\n }\r\n else if(fours !=0){\r\n t.setToken(4);\r\n fours--;\r\n } \r\n else if(fives !=0){\r\n t.setToken(5);\r\n fives--;\r\n } \r\n else if(sixes !=0){\r\n t.setToken(6);\r\n sixes--;\r\n } \r\n else if(sevens !=0){\r\n t.setToken(7);\r\n sevens--;\r\n } \r\n else if(eights !=0){\r\n t.setToken(8);\r\n eights--;\r\n } \r\n else if(nines !=0){\r\n t.setToken(9);\r\n nines--;\r\n } \r\n else if(tens !=0){\r\n t.setToken(10);\r\n tens--;\r\n } \r\n else if(elevens !=0){\r\n t.setToken(11);\r\n elevens--;\r\n } \r\n else if(twelves !=0){\r\n t.setToken(12);\r\n twelves--;\r\n } \r\n }\r\n }\r\n }",
"private Board create3by3Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 3);\n Tile t2 = new Tile(1, 3);\n Tile t3 = new Tile(2, 3);\n Tile t4 = new Tile(3, 3);\n Tile t5 = new Tile(4, 3);\n Tile t6 = new Tile(5, 3);\n Tile t7 = new Tile(6, 3);\n Tile t8 = new Tile(7, 3);\n Tile t9 = new Tile(8, 3);\n tiles = new Tile[3][3];\n tiles[0][0] = t7;\n tiles[0][1] = t6;\n tiles[0][2] = t2;\n tiles[1][0] = t5;\n tiles[1][1] = t9;\n tiles[1][2] = t3;\n tiles[2][0] = t1;\n tiles[2][1] = t8;\n tiles[2][2] = t4;\n return new Board(tiles);\n }",
"public Board() {\r\n\t\tthis.size = 4;\r\n\t\tthis.gameBoard = createBoard(4);\r\n\t\tthis.openTiles = 16;\r\n\t\tthis.moves = 0;\r\n\t\tthis.xValues = new boolean[4][4];\r\n\t\tthis.yValues = new boolean[4][4];\r\n\t\tthis.complete = false;\r\n\t}",
"public Board(Board a)\n {\n mainBoard=false;\n squares = new Square[Chess.ROWS][Chess.COLUMNS];\n setLayout(new GridLayout(Chess.ROWS,Chess.COLUMNS,0,0));\n if (a.firstSelected==null)\n firstSelected=null;\n else\n firstSelected = new Piece(a.firstSelected);\n for (int i = 0; i < Chess.ROWS; i++)\n for (int j = 0; j < Chess.COLUMNS; j++)\n squares[i][j] = new Square(a.squares[i][j]);\n }",
"public static void createBoard() \n\t{\n\t\tfor (int i = 0; i < tictactoeBoard.length; i++) \n\t\t{\n\t\t\ttictactoeBoard[i] = '-';\n\t\t}\n\t}",
"public NetChessBoardFrame() {\r\n\t\tthis.setTitle(\"五子棋\");// 设置标题\r\n\t\tthis.setSize(750, 635);// 设置窗体大小\r\n\t\tthis.setLocation((width - 750) / 2, (height - 650) / 2);// 窗体居中显示\r\n\t\tthis.setResizable(false); // 窗体大小不可变\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);// 窗体关闭方式\r\n\t\tthis.setCursor(Cursor.HAND_CURSOR);// 手状光标类型\r\n\t\t// this.setVisible(true);// 窗体可见\r\n\t\tthis.getLayeredPane().setLayout(null);\r\n\t\tthis.setIconImage(ttImage);\r\n\r\n\t\tMyMouseListener mml = new MyMouseListener();\r\n\t\tcb = new ChessBoard();\r\n\t\tcontrol = new BoardControl();\r\n\t\tcontrol.setPreferredSize(new Dimension(135, 635));\r\n\t\tthis.getContentPane().add(control, BorderLayout.EAST);\r\n\t\tcontrol.setVisible(true);\r\n\t\tcb.addMouseListener(mml);\r\n\t}",
"public JumbleBoard()\n {\n }",
"private void initialiseBoard() {\r\n\t\t//Set all squares to EMPTY\r\n\t\tfor(int x = 0; x < board.getWidth(); x++) {\r\n\t\t\tfor(int y = 0; y < board.getHeight(); y++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), x, y);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Assign player tiles\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_ONE_TILE), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_TWO_TILE), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y);\r\n\t\t\r\n\t\t//Assign Creation tiles\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_ONE_POSITION_X+3, Board.PLAYER_ONE_POSITION_Y+3);\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_TWO_POSITION_X-3, Board.PLAYER_TWO_POSITION_Y-3);\r\n\t\t\r\n\t\t//Assign Out of Bounds tiles\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\t\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\t\r\n\t\t\r\n\t}",
"public Board()\r\n\t{\r\n\t\treset();\r\n\t}",
"public Gameboard() {\n\n\t\tturn = 0;\n\n\t\tboard = new Cell[4][4][4];\n\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\tfor (int j = 0; j < board.length; j++) {\n\t\t\t\tfor (int k = 0; k < board.length; k++) {\n\n\t\t\t\t\tboard[i][j][k] = Cell.E;\n\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void initializeTiles(){\r\n tileBoard = new Tile[7][7];\r\n //Create the fixed tiles\r\n //Row 0\r\n tileBoard[0][0] = new Tile(false, true, true, false);\r\n tileBoard[2][0] = new Tile(false, true, true, true);\r\n tileBoard[4][0] = new Tile(false, true, true, true);\r\n tileBoard[6][0] = new Tile(false, false, true, true);\r\n //Row 2\r\n tileBoard[0][2] = new Tile(true, true, true, false);\r\n tileBoard[2][2] = new Tile(true, true, true, false);\r\n tileBoard[4][2] = new Tile(false, true, true, true);\r\n tileBoard[6][2] = new Tile(true, false, true, true);\r\n //Row 4\r\n tileBoard[0][4] = new Tile(true, true, true, false);\r\n tileBoard[2][4] = new Tile(true, true, false, true);\r\n tileBoard[4][4] = new Tile(true, false, true, true);\r\n tileBoard[6][4] = new Tile(true, false, true, true);\r\n //Row 6\r\n tileBoard[0][6] = new Tile(true, true, false, false);\r\n tileBoard[2][6] = new Tile(true, true, false, true);\r\n tileBoard[4][6] = new Tile(true, true, false, true);\r\n tileBoard[6][6] = new Tile(true, false, false, true);\r\n \r\n //Now create the unfixed tiles, plus the extra tile (15 corners, 6 t's, 13 lines)\r\n ArrayList<Tile> tileBag = new ArrayList<Tile>();\r\n Random r = new Random();\r\n for (int x = 0; x < 15; x++){\r\n tileBag.add(new Tile(true, true, false, false));\r\n }\r\n for (int x = 0; x < 6; x++){\r\n tileBag.add(new Tile(true, true, true, false));\r\n }\r\n for (int x = 0; x < 13; x++){\r\n tileBag.add(new Tile(true, false, true, false));\r\n }\r\n //Randomize Orientation\r\n for (int x = 0; x < tileBag.size(); x++){\r\n int rand = r.nextInt(4);\r\n for (int y = 0; y <= rand; y++){\r\n tileBag.get(x).rotateClockwise();\r\n }\r\n }\r\n \r\n for (int x = 0; x < 7; x++){\r\n for (int y = 0; y < 7; y++){\r\n if (tileBoard[x][y] == null){\r\n tileBoard[x][y] = tileBag.remove(r.nextInt(tileBag.size()));\r\n }\r\n }\r\n }\r\n extraTile = tileBag.remove(0);\r\n }",
"public Board(float width, float height) {\r\n tablero = new Array<BlockDrawable>();\r\n this.width = width;\r\n this.height = height;\r\n deletedRowsInfo.ordered = true;\r\n reset();\r\n }",
"Board() {\n\t\tswitch (Board.boardType) {\n\t\tcase Tiny:\n\t\t\tthis.dimensions = TinyBoard; break;\n\t\tcase Giant:\n\t\t\tthis.dimensions = GiantBoard; break;\n\t\tdefault:\n\t\t\tthis.dimensions = StandardBoard; break;\n\t\t}\n\t\tboard = new Square[dimensions.x][dimensions.y];\n\t\tinit();\n\t}",
"public Tile(int row, int column){\n this.row = row;\n this.column = column;\n this.piece = null;\n }",
"public TileBoard(int n){\n\t\tsize = n;\n\t\tinitTiles();\n\t\torganizeTiles();\n\t\tsetUpInputListenerDelegator();\n\t}",
"public ChessBoard() {\r\n\t\t\tsuper();\r\n\t\t\ttry {\r\n\t\t\t\tbgImage = ImageIO.read(new File(\"人人\\\\棋盘背景.png\"));\r\n\t\t\t\twImage = ImageIO.read(new File(\"人人\\\\白棋子.png\"));\r\n\t\t\t\tbImage = ImageIO.read(new File(\"人人\\\\黑棋子.png\"));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tthis.repaint();\r\n\t\t}",
"public Board() {\n\t\tintializeBoard(_RowCountDefault, _ColumnCountDefault, _CountToWinDefault);\n\t}",
"private void initializeBoard() {\n\n squares = new Square[8][8];\n\n // Sets the initial turn to the White Player\n turn = white;\n\n final int maxSquares = 8;\n for(int i = 0; i < maxSquares; i ++) {\n for (int j = 0; j < maxSquares; j ++) {\n\n Square square = new Square(j, i);\n Piece piece;\n Player player;\n\n if (i < 2) {\n player = black;\n } else {\n player = white;\n }\n\n if (i == 0 || i == 7) {\n switch(j) {\n case 3:\n piece = new Queen(player, square);\n break;\n case 4:\n piece = new King(player, square);\n break;\n case 2:\n case 5:\n piece = new Bishop(player, square);\n break;\n case 1:\n case 6:\n piece = new Knight(player, square);\n break;\n default:\n piece = new Rook(player, square);\n }\n square.setPiece(piece);\n } else if (i == 1 || i == 6) {\n piece = new Pawn(player, square);\n square.setPiece(piece);\n }\n squares[j][i] = square;\n }\n }\n }",
"public void createBoard() {\n\t\tboard = new Piece[8][8];\n\t\t\n\t\tfor(int i=0; i<8; i++) {\n\t\t\tfor(int j=0; j<8; j++) {\n\t\t\t\tboard[i][j] = null;\n\t\t\t}\n\t\t}\n\t}",
"public Board() {\n\t\tboardState = new Field[DIMENSION][DIMENSION];\n\t\tfor(int i = 0; i < DIMENSION; i++) {\n\t\t\tfor(int j = 0; j < DIMENSION; j++) {\n\t\t\t\tboardState[i][j] = new Field();\n\t\t\t}\n\t\t}\n\t}",
"public TTTView(int[][] board) {\n\t\tthis.board = board;\n\t}",
"public Board()\n\t{\n\t\tcols = DEFAULT_WIDTH;\n\t\trows = DEFAULT_HEIGHT;\n\t\t\n\t\tpieces = new int[rows][cols];\n\t\tif (pieces.length > 0)\n\t\t{\n\t\t\tfor (int i = 0; i < pieces.length; i++)\n\t\t\t\tfor (int j = 0; j < pieces[0].length; j++)\n\t\t\t\t\tpieces[i][j] = -1;\n\t\t}\n\t}",
"public Board() {\n playerNumber = 2;\n deadBlackCount = 0;\n deadWhiteCount = 0;\n deadRedCount = 0;\n deadBlueCount = 0;\n\n fields = new Field[DIMENSION][DIMENSION];\n // init fields\n for (int i = 0; i < DIMENSION; i++) {\n for (int j = 0; j < DIMENSION; j++) {\n fields[i][j] = new Field();\n fields[i][j].setX(i);\n fields[i][j].setY(j);\n }\n }\n }",
"public TicTacToe() {\n resetBoard();\n }",
"public Display() {\r\n\t\t//Fills the board with invalid positions\r\n\t\tboard = new int[17][17];\r\n\t\tfor (int i = 0; i < 17; i++)\r\n\t\t\tfor (int j = 0; j < 17; j++)\r\n\t\t\t\tboard[i][j] = -1;\r\n\r\n\t\t//Fills the center of the board with valid positions\r\n\t\tfor (int i = 4; i <= 12; i++)\r\n\t\t\tfor (int j = 4; j <= 12; j++)\r\n\t\t\t\tboard[i][j] = 0;\r\n\t\t\r\n\t\t//Fills the rest of the board with valid positions\r\n\t\tfillTriangle(-1, board, 0, 16, 12);\r\n\t\tfillTriangle(1, board, 0, 9, 13);\r\n\t\tfillTriangle(-1, board, 0, 7, 12);\r\n\t\tfillTriangle(1, board, 0, 0, 4);\r\n\t\tfillTriangle(-1, board, 0, 7, 3);\r\n\t\tfillTriangle(1, board, 0, 9, 4);\r\n\t\t\r\n\t\tthis.setPreferredSize(SIZE);\r\n\t}",
"public ThreeStonesBoard(int size) {\r\n this.size = size;\r\n this.board = new Tile[size][size];\r\n }",
"public Board createBoard(Square[][] grid) {Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\");assert grid != null; Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1053\"); Board board = new Board(grid); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1079\"); int width = board.getWidth(); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1115\"); int height = board.getHeight(); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1148\"); for (int x = 0; x < width; x++) {\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tSquare square = grid[x][y];\n\t\t\t\tfor (Direction dir : Direction.values()) {\n\t\t\t\t\tint dirX = (width + x + dir.getDeltaX()) % width;\n\t\t\t\t\tint dirY = (height + y + dir.getDeltaY()) % height;\n\t\t\t\t\tSquare neighbour = grid[dirX][dirY];\n\t\t\t\t\tsquare.link(neighbour, dir);\n\t\t\t\t}\n\t\t\t}\n\t\t} Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1183\"); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1552\");return board ; }",
"public Board(int[][] tiles) {\n // CHECK IF CONTAINS RIGHT NUMBERS\n this.tiles = new char[tiles.length * tiles.length];\n int counter = 0;\n this.dim = tiles.length;\n for (int i = 0; i < tiles.length; i++) {\n for (int j = 0; j < tiles.length; j++)\n this.tiles[counter++] = (char) tiles[i][j];\n }\n }",
"private void boardInit() {\n for(int i = 0; i < this.boardHeight; i++)\n this.board[i][0] = ' ';\n for(int i = 0; i < this.boardWidth; i++)\n this.board[0][i] = ' ';\n \n for(int i = 1; i < this.boardHeight; i++) {\n for(int j = 1; j < this.boardWidth; j++) {\n this.board[i][j] = '*';\n }\n }\n }",
"private GameBoard() {}",
"public GameBoard (int height, int width)\n {\n mHeight = height;\n mWidth = width;\n }",
"public Board() {\n\t\tboard = new int[8][8];\n\t\tbombs = 64 / 3;\n\t\tdifficulty = GlobalModel.BESTSCORE_EASY;\n\t\tfillBoard();\n\t\tsetDefaultScores();\n\t}",
"public GameBoard(){\r\n boardCells = new GameCell[NUMBER_OF_CELLS];\r\n for( int i= 0; i< NUMBER_OF_CELLS; i++ ){\r\n boardCells[i] = new GameCell(i);//\r\n }\r\n }",
"private Board()\r\n {\r\n this.grid = new Box[Config.GRID_SIZE][Config.GRID_SIZE];\r\n \r\n for(int i = 0; i < Config.NB_WALLS; i++)\r\n {\r\n this.initBoxes(Wall.ID);\r\n }\r\n \r\n for(int i = 0; i < Config.NB_CHAIR; i++)\r\n {\r\n this.initBoxes(Chair.ID);\r\n }\r\n \r\n for(int i = 0; i < Config.NB_PLAYER; i++)\r\n {\r\n this.initBoxes(Chair.ID);\r\n }\r\n }",
"public Board(int x, int y){\n player1 = \"Player 1\";\n player2 = \"Player 2\";\n randomPlayer1 = \"CPU 1\";\n randomPlayer2 = \"CPU 2\";\n board = new Square[x][y];\n for (int i = 0; i < board.length;i++){\n row++;\n for(int j = 0; j < board.length; j++){\n if(column == y){\n column = 0;\n }\n column++;\n board[i][j] = new Square(row, column);\n }\n }\n row = x;\n column = y;\n }",
"private void generateBoard(){\n\t}",
"public PersonalBoard(int width, int height){\n super(width, height);\n this.rand = new Random();\n }",
"public abstract void createBoard();",
"public TicTacToe(int n) {\n\t\tboard = new char[n][n];\n\t\tsize = n;\n\t}",
"Game (int rows, int columns, TetrisView view, JLabel scoreOutput, TetrisView nextPieceView) {\n board = new TetrisBoard(rows, columns);\n nextPieceBoard = new TetrisBoard(nextPieceView.rows, nextPieceView.columns);\n this.view = view;\n this.scoreOutput = scoreOutput;\n this.nextPieceView = nextPieceView;\n }"
] | [
"0.8085578",
"0.75261426",
"0.74939793",
"0.73027086",
"0.7299297",
"0.7252785",
"0.7246189",
"0.7200892",
"0.71944785",
"0.7189966",
"0.718244",
"0.7159018",
"0.7151573",
"0.7103338",
"0.7096863",
"0.7010528",
"0.70092124",
"0.70079285",
"0.700576",
"0.6992188",
"0.69914645",
"0.6977683",
"0.6964979",
"0.6959641",
"0.69585264",
"0.6941929",
"0.6902255",
"0.6892234",
"0.6882449",
"0.686936",
"0.6862195",
"0.68582565",
"0.68563014",
"0.6838824",
"0.6837407",
"0.6833317",
"0.68293756",
"0.68277204",
"0.6826443",
"0.6824447",
"0.6824083",
"0.68238133",
"0.681953",
"0.680975",
"0.6796749",
"0.67961866",
"0.6791974",
"0.67886055",
"0.6784763",
"0.6781029",
"0.6767551",
"0.6765961",
"0.67653775",
"0.6759264",
"0.6756866",
"0.6748612",
"0.67450154",
"0.67440814",
"0.67439604",
"0.67435676",
"0.6740072",
"0.6739267",
"0.67156416",
"0.6705932",
"0.6702741",
"0.6701167",
"0.6697991",
"0.66892934",
"0.6683053",
"0.6679415",
"0.66699237",
"0.6653932",
"0.66520983",
"0.6650919",
"0.6647684",
"0.6647384",
"0.66411394",
"0.6628808",
"0.6627319",
"0.66212386",
"0.6618984",
"0.6618008",
"0.66174155",
"0.6615864",
"0.66042125",
"0.65980893",
"0.6598035",
"0.6586406",
"0.65801924",
"0.6576057",
"0.65758806",
"0.65653026",
"0.65597063",
"0.65514994",
"0.6548069",
"0.6547957",
"0.6541289",
"0.65386915",
"0.65367925",
"0.6536671"
] | 0.80191284 | 1 |
initialize current piece grid position | protected void initCurrentGP() {
// centers the falling pieces at the top row
currentPieceGridPosition = new int[]{0, 3};
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setInitialPosition()\n {\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.a2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.b2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.c2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.d2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.e2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.f2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.g2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.h2);\n //Se colocan los peones negros en la séptima fila\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.a7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.b7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.c7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.d7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.e7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.f7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.g7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.h7);\n //Se colocan las torres blancas en a1 y h1\n putGenericPiece(GenericPiece.ROOK,Colour.WHITE,Square.a1);\n putGenericPiece(GenericPiece.ROOK,Colour.WHITE,Square.h1);\n //Se colocan las torres negras en a8 y h9\n putGenericPiece(GenericPiece.ROOK,Colour.BLACK,Square.a8);\n putGenericPiece(GenericPiece.ROOK,Colour.BLACK,Square.h8);\n //Se colocan los caballos blancos en b1 y g1\n putGenericPiece(GenericPiece.KNIGHT,Colour.WHITE,Square.b1);\n putGenericPiece(GenericPiece.KNIGHT,Colour.WHITE,Square.g1);\n //Se colocan los caballos negros en b8 y g8\n putGenericPiece(GenericPiece.KNIGHT,Colour.BLACK,Square.b8);\n putGenericPiece(GenericPiece.KNIGHT,Colour.BLACK,Square.g8);\n //Se colocan los alfiles blancos en c1 y f1\n putGenericPiece(GenericPiece.BISHOP,Colour.WHITE,Square.c1);\n putGenericPiece(GenericPiece.BISHOP,Colour.WHITE,Square.f1);\n //Se colocan los alfiles negros en c8 y f8\n putGenericPiece(GenericPiece.BISHOP,Colour.BLACK,Square.c8);\n putGenericPiece(GenericPiece.BISHOP,Colour.BLACK,Square.f8);\n //Se coloca la dama blanca en d1\n putGenericPiece(GenericPiece.QUEEN,Colour.WHITE,Square.d1);\n //Se coloca la dama negra en d8\n putGenericPiece(GenericPiece.QUEEN,Colour.BLACK,Square.d8);\n //Se coloca el rey blanco en e1\n putGenericPiece(GenericPiece.KING,Colour.WHITE,Square.e1);\n //Se coloca el rey negro en e8\n putGenericPiece(GenericPiece.KING,Colour.BLACK,Square.e8);\n \n //Se permiten los enroques para ambos jugadores\n setCastlingShort(Colour.WHITE,true);\n setCastlingShort(Colour.BLACK,true);\n setCastlingLong(Colour.WHITE,true);\n setCastlingLong(Colour.BLACK,true);\n \n //Se da el turno a las blancas\n setTurn(Colour.WHITE);\n \n gamePositionsHash.clear();\n gamePositionsHash.put(zobristKey.getKey(), 1);\n }",
"void positionToStart () {\n currentRow = 0 - currentPiece.getOffset();\n currentColumn = board.columns / 2 - currentPiece.width / 2;\n }",
"public final void initialPosition() {\n\t\tfor( int i = 0; i < 4; i++) {\n\t\t setPiece( new PieceImpl( Color.RED, Type.PAWN), new PositionImpl( 38 + 8*i));\n\t\t}\n\t\tfor( int i = 0; i < 4; i++) {\n\t\t setPiece( new PieceImpl( Color.BLACK, Type.PAWN), new PositionImpl( 12 + i));\n\t\t}\n\t\tfor( int i = 0; i < 4; i++) {\n\t\t setPiece( new PieceImpl( Color.YELLOW, Type.PAWN), new PositionImpl( 1 + 8*i));\n\t\t}\n\t\tfor( int i = 0; i < 4; i++) {\n\t\t setPiece( new PieceImpl( Color.GREEN, Type.PAWN), new PositionImpl( 48 + i));\n\t\t}\n\t\t\n\t\tsetPiece( new PieceImpl( Color.RED, Type.BOAT), new PositionImpl( 63 ));\n\t\tsetPiece( new PieceImpl( Color.RED, Type.KNIGHT), new PositionImpl( 55 ));\n\t\tsetPiece( new PieceImpl( Color.RED, Type.ELEPHANT), new PositionImpl( 47 ));\n\t\tsetPiece( new PieceImpl( Color.RED, Type.KING), new PositionImpl( 39 ));\n\t\t\n\t\tsetPiece( new PieceImpl( Color.BLACK, Type.BOAT), new PositionImpl( 7 ));\n\t\tsetPiece( new PieceImpl( Color.BLACK, Type.KNIGHT), new PositionImpl( 6 ));\n\t\tsetPiece( new PieceImpl( Color.BLACK, Type.ELEPHANT), new PositionImpl( 5 ));\n\t\tsetPiece( new PieceImpl( Color.BLACK, Type.KING), new PositionImpl( 4 ));\n\n\t\tsetPiece( new PieceImpl( Color.YELLOW, Type.BOAT), new PositionImpl( 0 ));\n\t\tsetPiece( new PieceImpl( Color.YELLOW, Type.KNIGHT), new PositionImpl( 8 ));\n\t\tsetPiece( new PieceImpl( Color.YELLOW, Type.ELEPHANT), new PositionImpl( 16 ));\n\t\tsetPiece( new PieceImpl( Color.YELLOW, Type.KING), new PositionImpl( 24 ));\n\n\t\tsetPiece( new PieceImpl( Color.GREEN, Type.BOAT), new PositionImpl( 56 ));\n\t\tsetPiece( new PieceImpl( Color.GREEN, Type.KNIGHT), new PositionImpl( 57 ));\n\t\tsetPiece( new PieceImpl( Color.GREEN, Type.ELEPHANT), new PositionImpl( 58 ));\n\t\tsetPiece( new PieceImpl( Color.GREEN, Type.KING), new PositionImpl( 59 ));\n\t\t\n }",
"public Board(int[][] grid, Tetrimino piece) {\n //initComponents();\n this.grid = grid;\n this.piece = piece;\n setLayout(new GridLayout(grid.length-4, grid[0].length));\n init();\n }",
"private void initialise() {\r\n\t\tfor(int i = 0; i < board.getWidth(); i++) {\r\n\t\t\tfor(int j = 0; j < board.getHeight(); j++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), i, j);\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void initializeGrid() {\n resetGrid(_lifeGrid);\n\n _lifeGrid[8][(WIDTH / 2) - 1] = 1;\n _lifeGrid[8][(WIDTH / 2) + 1] = 1;\n _lifeGrid[9][(WIDTH / 2) - 1] = 1;\n _lifeGrid[9][(WIDTH / 2) + 1] = 1;\n _lifeGrid[10][(WIDTH / 2) - 1] = 1;\n _lifeGrid[10][(WIDTH / 2)] = 1;\n _lifeGrid[10][(WIDTH / 2) + 1] = 1;\n\n }",
"public void initializeBoard() {\n\n\t\t/*\n\t\t * How the array coordinates align with the actual chess board\n\t\t * (row,col) \n\t\t * (7,0) ... ... ... \n\t\t * (7,7) ... ... ... \n\t\t * ... ... ... \n\t\t * (2,0) ...\n\t\t * (1,0) ... \n\t\t * (0,0) ... ... ... (0,7)\n\t\t */\n\n\t\tboolean hasMoved = false;\n\t\tboolean white = true;\n\t\tboolean black = false;\n\n\t\t// Set white piece row\n\t\tboard[0][0] = new Piece('r', white, hasMoved, 0, 0, PieceArray.A_rookId);\n\t\tboard[0][1] = new Piece('n', white, hasMoved, 0, 1, PieceArray.B_knightId);\n\t\tboard[0][2] = new Piece('b', white, hasMoved, 0, 2, PieceArray.C_bishopId);\n\t\tboard[0][3] = new Piece('q', white, hasMoved, 0, 3, PieceArray.D_queenId);\n\t\tboard[0][4] = new Piece('k', white, hasMoved, 0, 4, PieceArray.E_kingId);\n\t\tboard[0][5] = new Piece('b', white, hasMoved, 0, 5, PieceArray.F_bishopId);\n\t\tboard[0][6] = new Piece('n', white, hasMoved, 0, 6, PieceArray.G_knightId);\n\t\tboard[0][7] = new Piece('r', white, hasMoved, 0, 7, PieceArray.H_rookId);\n\n\t\t// Set white pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[1][i] = new Piece('p', white, hasMoved, 1, i, i + 8);\n\t\t}\n\n\t\t// Set empty rows\n\t\tfor (int row = 2; row < 6; row++)\n\t\t\tfor (int col = 0; col < 8; col++)\n\t\t\t\tboard[row][col] = null;\n\n\t\t// Set black pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[6][i] = new Piece('p', black, hasMoved, 6, i, i+8);\n\t\t}\n\n\t\t// Set black piece row\n\t\tboard[7][0] = new Piece('r', black, hasMoved, 7, 0, PieceArray.A_rookId);\n\t\tboard[7][1] = new Piece('n', black, hasMoved, 7, 1, PieceArray.B_knightId);\n\t\tboard[7][2] = new Piece('b', black, hasMoved, 7, 2, PieceArray.C_bishopId);\n\t\tboard[7][3] = new Piece('q', black, hasMoved, 7, 3, PieceArray.D_queenId);\n\t\tboard[7][4] = new Piece('k', black, hasMoved, 7, 4, PieceArray.E_kingId);\n\t\tboard[7][5] = new Piece('b', black, hasMoved, 7, 5, PieceArray.F_bishopId);\n\t\tboard[7][6] = new Piece('n', black, hasMoved, 7, 6, PieceArray.G_knightId);\n\t\tboard[7][7] = new Piece('r', black, hasMoved, 7, 7, PieceArray.H_rookId);\n\t}",
"public KnightsPosition() {\r\n row = 0;\r\n column = 0;\r\n }",
"public Board(ArrayList<Piece> pieces)\n {\n squares = new Square[Chess.ROWS][Chess.COLUMNS];\n setLayout(new GridLayout(Chess.ROWS,Chess.COLUMNS,0,0));\n firstSelected = null;\n mainBoard=true;\n turn = 0;\n fiftyMove = 0;\n for (int i = 0; i < Chess.ROWS; i++)\n for (int j = 0; j < Chess.COLUMNS; j++)\n {\n squares[i][j] = new Square(i,j,this);\n for (Piece p: pieces)\n if (p.getOrigin().equals(new Location(i,j)))\n squares[i][j].setPiece(p);\n add(squares[i][j]);\n }\n positions = new ArrayList<>();\n positions.add(toString());\n }",
"public void init(){\n this.grid[7][6].setWall(ERRGameMove.DOWN, false);\n this.grid[8][6].setWall(ERRGameMove.DOWN, false);\n this.grid[7][9].setWall(ERRGameMove.UP, false);\n this.grid[8][9].setWall(ERRGameMove.UP, false);\n \n this.grid[6][7].setWall(ERRGameMove.RIGHT, false);\n this.grid[6][8].setWall(ERRGameMove.RIGHT, false);\n this.grid[9][7].setWall(ERRGameMove.LEFT, false);\n this.grid[9][8].setWall(ERRGameMove.LEFT, false);\n }",
"void initLayout() {\n\t\t/* Randomize the number of rows and columns */\n\t\tNUM = Helper.randomizeNumRowsCols();\n\n\t\t/* Remove all the children of the gridContainer. It will be added again */\n\t\tpiecesGrid.removeAllViews();\n\t\t\n\t\t/* Dynamically calculate the screen positions and sizes of the individual pieces\n\t * Store the starting (x,y) of all the pieces in pieceViewLocations */\n\t\tpieceViewLocations = InitDisplay.initialize(getScreenDimensions(), getRootLayoutPadding());\n\t\t\n\t\t/* Create an array of ImageViews to store the individual piece images */\n\t\tcreatePieceViews();\n\t\t\n\t\t/* Add listeners to the ImageViews that were created above */\n\t\taddImageViewListeners();\n\t}",
"private void recalculatePosition()\n {\n position.x = gridCoordinate.getCol()*(width+horizontal_spacing);\n position.y = gridCoordinate.getRow()*(heigh+vertical_spacing);\n }",
"public void setBoard() {\n bestPieceToMove = null;\n bestPieceFound = false;\n bestMoveDirectionX = 0;\n bestMoveDirectionY = 0;\n bestMoveFound = false;\n killAvailable = false;\n lightCounter = 12;\n darkCounter = 12;\n for (int y = 0; y < boardSize; y++) {\n for (int x = 0; x < boardSize; x++) {\n board[y][x] = new Field(x, y);\n if (y < 3 && board[y][x].getPlaceable()) {\n board[y][x].setPiece(new Piece(PieceColor.DARK, PieceType.MEN));\n } else if (y > 4 && board[y][x].getPlaceable()) {\n board[y][x].setPiece(new Piece(PieceColor.LIGHT, PieceType.MEN));\n }\n }\n }\n }",
"void setGridX(int i);",
"public int[] getCurrentPieceGridPosition() {\n\t\treturn currentPieceGridPosition; \n\t}",
"public void resetCoordinates(){\n pos=0;\n if(this.pIndex<2){\n this.coordinates[0]=TILE_SIZE*15-DICE_SIZE;}\n else{\n this.coordinates[0]=0;}\n if(this.pIndex%3==0){\n this.coordinates[1]=0;}\n else{\n this.coordinates[1]=TILE_SIZE*15-DICE_SIZE;} \n }",
"private void initializeVariables() {\n rnd = new Random();\n\n pieceKind = rnd.nextInt() % 7;\n if(pieceKind < 0) pieceKind *= -1;\n pieceKind2 = rnd.nextInt() % 7;\n if(pieceKind2 < 0) pieceKind2 *= -1;\n\n piece = new Piece(pieceKind,this);\n newPiece();\n startedGame = true;\n\n for(i=0; i<276; i++) {\n modulo = i%12;\n if(modulo == 0 || modulo == 11 || i>251) {\n matrix[i] = 0; colMatrix[i] = true;\n } else {\n matrix[i] = -1; colMatrix[i] = false;\n }\n }\n\n for(i=0; i<5; i++) completeLines[i] = -1;\n for(i=0; i<4; i++) keybl.setMovTable(i, false);\n }",
"private void setGridElement (int row, int column, Player player)\n {\n mGrid[row][column] = new Move(player, row, column);\n }",
"public void setNewPiece(){\n\t\tcurrentPiece = Pentominoes.Pentomino_array[this.next_piece_index];\n\t\tcurrentColor = Pentominoes.color_array[this.next_piece_colour];\n\t\tpieceOrigin = new Point(6, 2);\n\t}",
"public Grid ()\n {\n mGrid = new Move[3][3];\n for (int row = 0; row < 3; row++)\n for (int column = 0; column < 3; column++)\n mGrid[row][column] = new Move(Player.NONE, row, column);\n }",
"public void initialize() {\n\t\tnumRows = gridConfig.getNumRows();\n\t\tnumCols = gridConfig.getNumCols();\n\t\tgridCellCount = numRows * numCols;\n\t\tcreateMaps();\n\t\tsetCurrSimulationMap();\n\t\tcellWidth = SIZE / numCols;\n\t\tcellHeight = SIZE / numRows;\n\t\tcurrentGrid = new Cell[numRows][numCols];\n\t\tnewGrid = new Cell[numRows][numCols];\n\t\tempty(currentGrid);\n\t\tempty(newGrid);\n\t\tsetShapes();\n\t\tsetInitialStates();\n\t}",
"private void setCellGrid(){\n count=0;\n status.setText(\"Player 1 Move\");\n field = new ArrayList<>();\n for (int i=0; i< TwoPlayersActivity.CELL_AMOUNT; i++) {\n field.add(new Cell(i));\n }\n }",
"public Grid()\n\t{\n\t\tfor (int x =0;x<=8;x++)\n\t\t\tgrid[x]=0;\n }",
"public void initializeGrid() {\n for (int i = minRow; i <= maxRow; i++) {\n for (int j = minCol; j <= maxCol; j++) {\n grid[i][j] = 0;\n }\n }\n }",
"public void setInitialPositions() {\t\n\t\tString[][] positions = myData.getInitialPositions();\n\t\tif (positions.length == 0) {\n\t\t\tsetDefaultPositions(myData);\n\t\t} else {\n\t\t\tfor (String[] each : positions) {\n\t\t\t\tif (each.length != 3) {\n\t\t\t\t\tthrow new XMLException(\"Initial State not Given for Cell %s\", Arrays.toString(each));\n\t\t\t\t}\n\t\t\t\tint x = Integer.parseInt(each[0]);\n\t\t\t\tint y = Integer.parseInt(each[1]);\n\t\t\t\tif (x < getGrid().getRow(0).length && x >= 0 && y < getGrid().getRow(0).length && y >= 0){ \n\t\t\t\t\tgetGrid().getCell(x,y).setType(each[2]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"public abstract Piece setLocation(int row, int column);",
"private void addPieces() {\n gridPane.getChildren().clear();\n Map<Piece, Position> pieces = controller.getAllActivePiecesPositions();\n /* Add the tiles */\n for (int row = 0; row < 8; row++) {\n for (int col = 0; col < 8; col++) {\n Tile tile = new TileView(new Position(row, col));\n gridPane.add(tile.getRootNode(),\n 1 + tile.getPosition().getCol(),\n 1 + tile.getPosition().getRow());\n GridPane.setHgrow(tile.getRootNode(), Priority.ALWAYS);\n GridPane.setVgrow(tile.getRootNode(), Priority.ALWAYS);\n getTiles()[row][col] = tile;\n tile.getRootNode().setOnMouseClicked(\n tileListener(tile));\n tile.clear();\n tile.setSymbol(\"\");\n }\n }\n /* Add the pieces */\n for (Piece p : pieces.keySet()) {\n Position placeAt = pieces.get(p);\n getTileAt(placeAt).setSymbol(p.getType().getSymbol(p.getSide()));\n }\n /* Add the coordinates around the perimeter */\n for (int i = 1; i <= 8; i++) {\n Text coord1 = new Text((char) (64 + i) + \"\");\n coord1.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord1.setFill(Color.WHITE);\n GridPane.setHalignment(coord1, HPos.CENTER);\n gridPane.add(coord1, i, 0);\n\n Text coord2 = new Text((char) (64 + i) + \"\");\n coord2.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord2.setFill(Color.WHITE);\n GridPane.setHalignment(coord2, HPos.CENTER);\n gridPane.add(coord2, i, 9);\n\n Text coord3 = new Text(\" \" + (9 - i) + \" \");\n coord3.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord3.setFill(Color.WHITE);\n GridPane.setHalignment(coord3, HPos.CENTER);\n gridPane.add(coord3, 0, i);\n\n Text coord4 = new Text(\" \" + (9 - i) + \" \");\n coord4.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord4.setFill(Color.WHITE);\n GridPane.setHalignment(coord4, HPos.CENTER);\n gridPane.add(coord4, 9, i);\n }\n }",
"public Chess() {\n\t\t// TODO Auto-generated constructor stub\n\t\tchessBoard = new int[BOARD_LENGTH][BOARD_LENGTH];\n\t\tpieces = new AbstractPiece[BOARD_NUM_PIECES];\n\t\toldPosition = new Point();\n\t\tokToMove = false;\n\t\tpieceCounter = 0;\n\t\tpieceChosen = 0;\n\t\tnumClicks = 0; \n\t}",
"public void initGrid()\n {\n\tfor (int y=0; y<cases.length; y++)\n \t{\n for (int x=0; x<cases[y].length; x++)\n {\n\t\tcases[y][x] = new Case();\n }\n\t}\n\t\n\tint pos_y_case1 = customRandom(4);\n\tint pos_x_case1 = customRandom(4);\n\t\n\tint pos_y_case2 = customRandom(4);\n\tint pos_x_case2 = customRandom(4);\n\t\t\n\twhile ((pos_y_case1 == pos_y_case2) && (pos_x_case1 == pos_x_case2))\n\t{\n pos_y_case2 = customRandom(4);\n pos_x_case2 = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y_case1][pos_x_case1] = new Case(true);\n\tcases[pos_y_case2][pos_x_case2] = new Case(true);\n }",
"public void initializeBoard() {\r\n int x;\r\n int y;\r\n\r\n this.loc = this.userColors();\r\n\r\n this.board = new ArrayList<ACell>();\r\n\r\n for (y = -1; y < this.blocks + 1; y += 1) {\r\n for (x = -1; x < this.blocks + 1; x += 1) {\r\n ACell nextCell;\r\n\r\n if (x == -1 || x == this.blocks || y == -1 || y == this.blocks) {\r\n nextCell = new EndCell(x, y);\r\n } else {\r\n nextCell = new Cell(x, y, this.randColor(), false);\r\n }\r\n if (x == 0 && y == 0) {\r\n nextCell.flood();\r\n }\r\n this.board.add(nextCell);\r\n }\r\n }\r\n this.stitchCells();\r\n this.indexHelp(0, 0).floodInitStarter();\r\n }",
"public void initPieces() {\r\n\t\tfor (int i = 0; i < 64; i++) {\r\n\t\t\tif (i < 12) {\r\n\t\t\t\tblackPieces[i] = new ChessPiece(\"black\", \"\");\r\n\t\t\t\tblackPieces[i].setBackground(Color.BLACK);\r\n\t\t\t\tblackPieces[i].addMouseMotionListener(this);\r\n\t\t\t\tblackPieces[i].addMouseListener(this);\r\n\t\t\t\tblackPieces[i].setText(null);\r\n\t\t\t\twhitePieces[i] = new ChessPiece(\"white\", \"\");\r\n\t\t\t\twhitePieces[i].setBackground(Color.WHITE);\r\n\t\t\t\twhitePieces[i].addMouseMotionListener(this);\r\n\t\t\t\twhitePieces[i].addMouseListener(this);\r\n\t\t\t\twhitePieces[i].setText(null);\r\n\t\t\t}\r\n\t\t\tspacePieces[i] = new ChessPiece(\"empty\", \"\");\r\n\t\t\tspacePieces[i].setEnabled(false);\r\n\t\t\tspacePieces[i].setVisible(false);\r\n\t\t\tspacePieces[i].setText(null);\r\n\t\t}\r\n\t}",
"public GridLocation(){ //of the grid at the moment\n charactersOccupiedTheLocation=new Object[4];\n }",
"public void setBoard() {\n margin = Math.round((sizeOfCell * 3) / 2);\n RelativeLayout.LayoutParams marginParam = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n marginParam.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);\n marginParam.addRule(RelativeLayout.CENTER_HORIZONTAL);\n marginParam.setMargins(0, 0, 0, (margin));\n gridContainer.setLayoutParams(marginParam);\n\n LinearLayout.LayoutParams lpRow = new LinearLayout.LayoutParams(sizeOfCell * maxN, sizeOfCell);\n LinearLayout.LayoutParams lpCell = new LinearLayout.LayoutParams(sizeOfCell, sizeOfCell);\n LinearLayout linRow;\n\n for (int row = 0; row < maxN; row++) {\n linRow = new LinearLayout(context);\n for (int col = 0; col < maxN; col++) {\n ivCell[row][col] = new ImageView(context);\n linRow.addView(ivCell[row][col], lpCell);\n }\n linBoardGame.addView(linRow, lpRow);\n }\n }",
"public void initialize() {\n\t\t// set seed, if defined\n\t\tif (randomSeed > Integer.MIN_VALUE) {\n\t\t\tapp.randomSeed(randomSeed);\n\t\t}\n\n\t\tfor (int x = 0; x < gridX; x++) {\n\t\t\tfor (int y = 0; y < gridY; y++) {\n\t\t\t\tCell c = new Cell(\n\t\t\t\t\tapp,\n\t\t\t\t\tcellSize,\n\t\t\t\t\tcolors[(int)app.random(colors.length)],\n\t\t\t\t\ttrue\n\t\t\t\t);\n\t\t\t\tc.position = PVector.add(offset, new PVector(x * cellSize, y * cellSize));\n\t\t\t\tcells[x + (y * gridX)] = c;\n\t\t\t\tnewCells[x + (y * gridX)] = c;\n\t\t\t}\n\t\t}\n\t}",
"private void initializeGrid()\n {\n \t\n // initialize grid as a 2D ARRAY OF THE APPROPRIATE DIMENSIONS\n \tgrid = new int [NUM_ROWS][NUM_COLS];\n\n\n //INITIALIZE ALL ELEMENTS OF grid TO THE VALUE EMPTY\n \tfor(int row = 0; row < NUM_ROWS; row++){\n \t\tfor(int col = 0; col < NUM_COLS; col++){\n \t\t\tgrid[row][col] = EMPTY;\n \t\t}\n \t}\n }",
"public Gridder()\n\t{\n grid = new Cell[MapConstant.MAP_X][MapConstant.MAP_Y];\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n grid[row][col] = new Cell(row, col);\n\n // Set the virtual walls of the arena\n if (row == 0 || col == 0 || row == MapConstant.MAP_X - 1 || col == MapConstant.MAP_Y - 1) {\n grid[row][col].setVirtualWall(true);\n }\n }\n }\n\t}",
"public void init(){\n\t\tfor (int x=0;x<7;x++){\n\t\t\ttop[x]=0;\n\t\t\tfor(int y=0;y<6;y++){\n\t\t\t\tgrid[x][y]=0;\n\t\t\t}\n\t\t}\n\t\tbufferImage= createImage(350,500);\n\t\tbufferGraphic= bufferImage.getGraphics();\n\t\tGraphics g = bufferGraphic;\n\t\tpaint(g);\n\t\t\n\t\taddMouseListener(new MouseInputAdapter() { \n\t\t\tpublic void mouseClicked(MouseEvent e) {\t\t\t\n\t\t\t\tGraphics g = bufferGraphic;\n\t\t\t\tint x=e.getX();\n\t\t\t\tint y=e.getY();\n\t\t\t\t\n\t\t\t\t//check for placement, check for winner\n\t\t\t\tif( y<=400 && y>=100){\n\t\t\t\t\t\tmarkspot(x);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\t\n\t}",
"private void initialize() {\n this.board.addBoardChangeListener(this);\n\n this.layers = new ArrayList();\n this.bounds = new Rectangle();\n\n this.zoom = 1.0;\n this.zoomLevel = ZOOM_NORMALSIZE;\n this.affineTransform = new AffineTransform();\n\n this.loadTiles(board);\n this.setPreferredSize(new Dimension((board.getWidth() * 32),\n (board.getHeight() * 32)));\n\n bufferedImage = new BufferedImage((board.getWidth() * 32),\n (board.getHeight() * 32), BufferedImage.TYPE_INT_ARGB);\n\n this.antialiasGrid = true;\n this.gridColor = DEFAULT_GRID_COLOR;\n this.gridOpacity = 100;\n\n if (!this.layers.isEmpty()) {\n this.currentSelectedLayer = this.layers.get(0);\n }\n }",
"public void setBoard(){\n \n\t m_Pieces[3][3]= WHITE_PIECE;\n m_Pieces[4][4]= WHITE_PIECE;\n m_Pieces[3][4]= BLACK_PIECE;\n m_Pieces[4][3]= BLACK_PIECE;\n for(int x=0;x<WIDTH;x++){\n for(int y=0;y<HEIGHT;y++){\n if(m_Pieces[x][y]==null){\n m_Pieces[x][y]=NONE_PIECE;\n }\n }\n }\n }",
"private void updateGridWithPosition(Pair<Integer, Integer> position) {\n int x = position.getValue0();\n int y = position.getValue1();\n int ox = origin.getValue0();\n int oy = origin.getValue1();\n while (ox + Math.abs(x) >= grid[0].length || oy + Math.abs(y) >= grid.length) {\n reallocateGrid();\n }\n if (x >= 0 && y >= 0) {\n grid[oy + y][ox + x] = '#';\n } else if (x >= 0) {\n grid[oy - Math.abs(y)][ox + x] = '#';\n } else if (y >= 0) {\n grid[oy + y][ox - Math.abs(x)] = '#';\n } else {\n grid[oy - Math.abs(y)][ox - Math.abs(x)] = '#';\n }\n }",
"public void setPlayerGrid(){\n\t\tplayerGrid = new Grid(true);\n\t\tsetShips(playerGrid,playerBattleShipsList,0);//2\n\t}",
"public static void boardInit() {\n ArrayList<Piece> white_piece_list = new ArrayList<>();\n ArrayList<Piece> black_piece_list = new ArrayList<>();\n ArrayList<Piece> piece_array = PieceFactory.createPieces();\n for(Piece p : piece_array)\n {\n if(p.getColor())\n {\n black_piece_list.add(p);\n }\n else\n {\n white_piece_list.add(p);\n }\n }\n white_player.setpieceList(white_piece_list);\n white_player.setKingXYCoords(PieceFactory.KING_INITIAL_X, PieceFactory.INITAL_Y_COORD_WHITE_PLAYER_OTHER);\n black_player.setpieceList(black_piece_list);\n black_player.setKingXYCoords(PieceFactory.KING_INITIAL_X, PieceFactory.INITAL_Y_COORD_WHITE_PLAYER_OTHER + PieceFactory.DIST_BETWEEN_PIECES);\n }",
"public Grid() {\n\t\tthis.moveCtr = 0; \n\t\tlistOfSquares = new ArrayList<Square>();\n\t\t//populating grid array with squares\n\t\tfor(int y = 0; y < GridLock.HEIGHT; y++) {\n\t \tfor(int x = 0; x < GridLock.WIDTH; x++) { //square coordinates go from (0,0) to (5,5)\n\t \tSquare square;\n\t \t//Setting up a square which has index values x,y and the size of square.\n\t\t\t\t\tsquare = new Square(x, y, GridLock.SQUARE_SIZE, GridLock.SQUARE_SIZE); \n\t\t\t\t\tgrid[x][y] = square;\n\t\t\t\t\tlistOfSquares.add(square);\n\t \t\t\t\t\t\n\t \t\t}\n\t \t}\n \t\n }",
"private void initPosition() {\r\n while (true) {\r\n int x = RandomUtil.nextInt(boardLength);\r\n int y = RandomUtil.nextInt(boardLength);\r\n if (board.isSimple(x, y)) {\r\n heroTeam.setPosition(x, y);\r\n board.setTeamPosition(x, y);\r\n break;\r\n }\r\n }\r\n }",
"public void initializeGrid(SquareListener sl) {\n this.sl = sl;\n setSquares();\n }",
"public Board() {\n\n for(int row = 0; row < size; row++) {\n for(int col = 0; col < size; col++) {\n\n grid[row][col] = \"-\";\n\n }\n }\n\n }",
"public static void initialize()\n {\n\n for(int i = 0; i < cellViewList.size(); i++)\n cellList.add(new Cell(cellViewList.get(i).getId()));\n for (int i = 76; i < 92; i++)\n {\n if (i < 80)\n {\n cellList.get(i).setChess(PlayerController.getPlayer(0).getChess(i-76));\n }\n else if (i < 84)\n {\n cellList.get(i).setChess(PlayerController.getPlayer(1).getChess(i-80));\n }\n else if (i < 88)\n {\n cellList.get(i).setChess(PlayerController.getPlayer(2).getChess(i-84));\n }\n else\n {\n cellList.get(i).setChess(PlayerController.getPlayer(3).getChess(i-88));\n }\n }\n }",
"public Board()\r\n {\r\n board = new Piece[8][8];\r\n xLength = yLength = 8;\r\n }",
"public BuildGrid()\n {\n System.out.print(\"Creating a new grid: \");\n\n m_grid = new double[1][5];\n setDimX(1);\n setDimY(5);\n\n this.fillWith(0);\n System.out.println(\"Done\");\n }",
"public void initChessBoardAutomaticly() {\r\n\t\tthis.initPieces();\r\n\t\tthis.clearBoard();\r\n\t\tfor (int i=0; i<board.size(); i++) {\r\n\t\t\tChessBoardBlock b = board.get(order[i]);\r\n\t\t\tb.setBorderPainted(false);\r\n\t\t}\r\n\t\tfor (int i = 0, w = 0, b = 0, s = 0; i < 8 * 8; i++) {\r\n\r\n\t\t\t// Assign1, Disable board clickable\r\n\t\t\tChessBoardBlock block = board.get(order[i]);\r\n\t\t\tblock.setEnabled(false);\r\n\r\n\t\t\t// Assign1, Put black pieces and record the position\r\n\t\t\tif (i % 2 != 1 && i >= 8 && i < 16) {\r\n\t\t\t\tChessPiece blackPiece = blackPieces[b];\r\n\t\t\t\tblackPiece.position = order[i];\r\n\t\t\t\tpiece.put(order[i], blackPiece);\r\n\t\t\t\tbody.add(blackPiece);\r\n\t\t\t\tb++;\r\n\t\t\t} else if (i % 2 != 0 && (i < 8 || (i > 16 && i < 24))) {\r\n\t\t\t\tChessPiece blackPiece = blackPieces[b];\r\n\t\t\t\tblackPiece.position = order[i];\r\n\r\n\t\t\t\tpiece.put(order[i], blackPiece);\r\n\t\t\t\tbody.add(blackPiece);\r\n\t\t\t\tb++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Assign1, Put white pieces and record the position\r\n\t\t\telse if (i % 2 != 0 && i > 48 && i < 56) {\r\n\t\t\t\tChessPiece whitePiece = whitePieces[w];\r\n\t\t\t\twhitePiece.position = order[i];\r\n\t\t\t\tpiece.put(order[i], whitePiece);\r\n\t\t\t\tbody.add(whitePiece);\r\n\t\t\t\tw++;\r\n\t\t\t} else if (i % 2 != 1\r\n\t\t\t\t\t&& ((i >= 40 && i < 48) || (i >= 56 && i < 64))) {\r\n\t\t\t\tChessPiece whitePiece = whitePieces[w];\r\n\t\t\t\twhitePiece.position = order[i];\r\n\t\t\t\t\r\n\t\t\t\tpiece.put(order[i], whitePiece);\r\n\t\t\t\tbody.add(whitePiece);\r\n\t\t\t\tw++;\r\n\t\t\t}\r\n\r\n\t\t\t// Assign1, Put empty pieces on the board\r\n\t\t\t// Actually, empty pieces will not display on the board, they are\r\n\t\t\t// not existing\r\n\t\t\t// to chess players, just for calculation\r\n\t\t\telse {\r\n\t\t\t\tChessPiece spacePiece = spacePieces[s];\r\n\t\t\t\tspacePiece.position = order[i];\r\n\t\t\t\tbody.add(spacePiece);\r\n\t\t\t\tpiece.put(order[i], spacePiece);\r\n\t\t\t\tspacePiece.setVisible(false);\r\n\t\t\t\ts++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tt.setText(\"Chess Board has been initialized automatically\");\r\n\t\tthis.startGame();\r\n\t}",
"private void initialiseBoard() {\r\n\t\t//Set all squares to EMPTY\r\n\t\tfor(int x = 0; x < board.getWidth(); x++) {\r\n\t\t\tfor(int y = 0; y < board.getHeight(); y++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), x, y);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Assign player tiles\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_ONE_TILE), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_TWO_TILE), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y);\r\n\t\t\r\n\t\t//Assign Creation tiles\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_ONE_POSITION_X+3, Board.PLAYER_ONE_POSITION_Y+3);\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_TWO_POSITION_X-3, Board.PLAYER_TWO_POSITION_Y-3);\r\n\t\t\r\n\t\t//Assign Out of Bounds tiles\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\t\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\t\r\n\t\t\r\n\t}",
"public void updateGridX();",
"public Board() {\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n this.grid[row][col] = 0;\n }\n }\n }",
"protected void setInitialStates() {\n\n\t\tchar[][] states = gridConfig.getCellConfiguration();\n\n\t\tfor (int i = 0; i < numRows; i++) {\n\t\t\tfor (int j = 0; j < numCols; j++) {\n\t\t\t\tCell c = simMap.get(states[i][j]).copy();\n\t\t\t\tinitializeCell(i, j, c);\n\t\t\t}\n\t\t}\n\t\troot.getChildren().add(pane);\n\t}",
"public Board()\n\t{\n\t\tcols = DEFAULT_WIDTH;\n\t\trows = DEFAULT_HEIGHT;\n\t\t\n\t\tpieces = new int[rows][cols];\n\t\tif (pieces.length > 0)\n\t\t{\n\t\t\tfor (int i = 0; i < pieces.length; i++)\n\t\t\t\tfor (int j = 0; j < pieces[0].length; j++)\n\t\t\t\t\tpieces[i][j] = -1;\n\t\t}\n\t}",
"public void setNeighbors(){\t\t\t\t\n\t\tint row = position[0];\n\t\tint column = position[1];\t\t\n\t\tif(column+1 < RatMap.SIDELENGTH){\n\t\t\teastCell = RatMap.getMapCell(row,column+1);\t\t\t\n\t\t}else{\n\t\t\teastCell = null;\n\t\t}\t\n\t\tif(row+1 < RatMap.SIDELENGTH){\n\t\t\tnorthCell = RatMap.getMapCell(row+1,column);\n\t\t}else{\n\t\t\tnorthCell = null;\n\t\t}\t\n\t\tif(column-1 > -1){\n\t\t\twestCell = RatMap.getMapCell(row, column-1);\t\t\t\n\t\t}else{\n\t\t\twestCell = null;\n\t\t}\n\t\tif(row-1 > -1){\n\t\t\tsouthCell = RatMap.getMapCell(row-1, column);\n\t\t}else{\n\t\t\tsouthCell = null;\n\t\t}\n\t}",
"public void initChessBoardManually() {\r\n\t\tstatus.setStatusEdit();\r\n\t\tclearBoard();\r\n\t\tthis.setBoardEnabled(true);\r\n\t\tfor (int i=0; i<8*8; i++) {\r\n\t\t\tChessBoardBlock block = board.get(order[i]);\r\n\t\t\tblock.setBorderPainted(false);\r\n\t\t}\r\n\t\tswitcher.setEnabled(true);\r\n\t\tconfirm.setEnabled(true);\r\n\t\tt.setText(\"<html>Please choose position to put the pieces.<br>Right click to set/cancel King flag</html>\");\r\n\t}",
"public void initialize(){\n this.height = DrawingHelper.getGameViewHeight();\n this.width = DrawingHelper.getGameViewWidth();\n this.xCoordinate = (AsteroidsData.getInstance().getShip().getxCoordinate() - this.width/2);\n this.yCoordinate = (AsteroidsData.getInstance().getShip().getyCoordinate() - this.height/2);\n\n initializeBounds();\n }",
"public void initLevel(){\n baseLevel = levelCreator.createStaticGrid(this.levelFile);\n dynamicLevel= levelCreator.createDynamicGrid(levelFile);\n colDetector = new CollisionHandler();\n goalTiles = baseLevel.getTilePositions('x');\n }",
"private void setNeighbors() {\n\t\tfor (int i = 0; i < getNumRows(); i++) {\n\t\t\tfor (int j = 0; j < getNumCols(); j++) {\n\t\t\t\tCell c = getCurrentGrid()[i][j];\n\t\t\t\tsetNeighborsForCell(c);\n\t\t\t}\n\t\t}\n\t}",
"@Before\n public void setUp(){\n board = new ChessPiece[8][8];\n p = new Pawn(Player.BLACK);\n board[1][0] = p;\n move = new Move(1,0,2,0);\n }",
"public Board() {\n this.x = 0;\n this.o = 0;\n }",
"private void initNextPiece() {\n currentPiece = nextPieces.get(0);\n if (!currentPiece.initPosition(grid) && gameOver == false) {\n musicsReader.destroyAllPlayers();\n musicsReader.play(\"gameover.mp3\", 1);\n gameOver = true;\n }\n nextPieces.remove(0);\n int r = (int) (Math.random() * suppliers.size());\n nextPieces.add((Piece) suppliers.get(r).get());\n sincePieceDown = null;\n sinceLastMove = null;\n }",
"private void initGrid() {\n m_emptyHexCount = 0;\n m_hexagons.clear();\n for (int i = 0; i < m_rowNum; i++) {\n ArrayList<Hexagon> tmp = new ArrayList<>();\n int maxColNum;\n if (i % 2 == 0)\n maxColNum = m_colNum;\n else\n maxColNum = m_colNum - 1;\n\n for (int j = 0; j < maxColNum; j++) {\n tmp.add(new Hexagon(m_app));\n m_emptyHexCount++;\n }\n m_hexagons.add(tmp);\n }\n }",
"private void setupPlayerPosition() {\n\t\tHashMap<Suspect, Coordinates> startPositions = new HashMap<Suspect, Coordinates>();\r\n\t\tstartPositions.put(Suspect.KasandraScarlet, new Coordinates(18, 28));\r\n\t\tstartPositions.put(Suspect.JackMustard, new Coordinates(7, 28));\r\n\t\tstartPositions.put(Suspect.DianeWhite, new Coordinates(0, 19));\r\n\t\tstartPositions.put(Suspect.JacobGreen, new Coordinates(0, 9));\r\n\t\tstartPositions.put(Suspect.EleanorPeacock, new Coordinates(6, 0));\r\n\t\tstartPositions.put(Suspect.VictorPlum, new Coordinates(20, 0));\r\n\r\n\t\tfor (int i = 0; i < this.listOfPlayer.size(); i++) {\r\n\t\t\tPlayer p = this.listOfPlayer.get(i);\r\n\t\t\tSuspect sus = p.getSuspect().getData();\r\n\t\t\tboolean b = p.setCoord(startPositions.get(sus), this.grid);\r\n\t\t\t// should always be able to put character on starting position\r\n\t\t}\r\n\t\tSystem.out.println(\"Initial player starting positions set\");\r\n\t}",
"private void initializeBoard() {\n\t\t\n\t}",
"public void resetBoard() {\n piece = 1;\n b = new Board(9);\n board = b.getBoard();\n\n board2d = new int[3][3];\n makeBoard2d();\n\n }",
"private void init() {\r\n\t\tint linePos = this.playBoard.length / 2;\r\n\t\tint columnPos = this.playBoard[0].length / 2;\r\n\t\tfor (int i = 0; i < playBoard.length; i++) {\r\n\t\t\tfor (int j = 0; j < playBoard[0].length; j++) {\r\n\t\t\t\tplayBoard[i][j] = '-';\r\n\t\t\t}\r\n\t\t}\r\n\t\tplayBoard[linePos - 1][columnPos - 1] = 'W';\r\n\t\tplayBoard[linePos - 1][columnPos] = 'B';\r\n\t\tplayBoard[linePos][columnPos] = 'W';\r\n\t\tplayBoard[linePos][columnPos - 1] = 'B';\r\n\t}",
"private void InitializeApp() {\n\n for (int y = 0; y < 11; y++) {\n for (int x = 0; x < 11; x++) {\n defendingGrid[x][y] = new GameCell();\n attackingGrid[x][y] = new GameCell();\n }\n }\n\n// attackingGrid[5][5].setMiss(true);\n// attackingGrid[5][6].setHit(true);\n// attackingGrid[5][7].setWaiting(true);\n// attackingGrid[5][7].setHasShip(true);\n\n }",
"public Grid() { //Constructs a new grid and fills it with Blank game objects.\r\n\t\tthis.grid = new GameObject[10][10];\r\n\t\tthis.aliveShips = new Ships[4];\r\n\t\tfor (int i = 0; i < this.grid.length; i++) {\r\n\t\t\tfor (int j = 0; j < this.grid[i].length; j++) {\r\n\t\t\t\tthis.grid[i][j] = new Blank(i,j);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void initIslandGrid()\n {\n // Add the grid\n int rows = game.getNumRows();\n int columns = game.getNumColumns();\n // set up the layout manager for the island grid panel\n pnlIsland.setLayout(new GridLayout(rows, columns));\n // create all the grid square panels and add them to the panel\n // the layout manager of the panel takes care of assigning them to the\n // the right position\n for ( int row = 0 ; row < rows ; row++ )\n {\n for ( int col = 0 ; col < columns ; col++ )\n {\n pnlIsland.add(new GridSquarePanel(game, row, col));\n }\n }\n }",
"public void setUp()\r\n {\r\n board = new MineSweeperBoard(4, 4, 1);\r\n }",
"public void initialize(){ \r\n\t\tfor (int i=0; i<3; i++){ \r\n\t\t\tfor (int j=0; j<3; j++){\r\n\t\t\t\tboard [i][j] = '-';\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t\t// Set your level dimensions.\n\t\t// Note that rows and columns cannot exceed a size of 16\n\t\tsetDimensions(4, 4);\n\t\t\n\t\t// Select your board type\n\t\tsetBoardType(BoardType.CHECKER_BOARD);\n\n\t\t// Select your grid colors.\n\t\t// You need to specify two colors for checker boards\n\t\tList<Color> colors = new ArrayList<Color>();\n\t\tcolors.add(new Color(255, 173, 179, 250)); // stale blue\n\t\tcolors.add(new Color(255, 255, 255, 255)); // white\n\t\tsetColors(colors);\n\t\t\n\t\t// Specify the level's rules\n\t\taddGameRule(new DemoGameRule());\n\t\t\n\t\t// Retrieve player IDs\n\t\tList<String> playerIds = getContext().getGame().getPlayerIds();\n\t\tString p1 = playerIds.get(0);\n\t\tString p2 = playerIds.get(1);\n\n\t\t// Add your entities to the level's universe\n\t\t// using addEntity(GameEntity) method\n\t\taddEntity(new Pawn(this, p1, EntityType.BLACK_PAWN, new Point(0, 0)));\n\t\taddEntity(new Pawn(this, p2, EntityType.WHITE_PAWN, new Point(3, 3)));\n\t}",
"@Override\n public void buildGrid(){\n for(int column=0; column<columns; column++){\n for(int row=0; row<rows; row++){\n grid[column][row] = \"[ ]\";\n }\n }\n }",
"public void setBoardLocation(int boardLocation) {this.boardLocation = boardLocation;}",
"@Override\n public void setLocation(ITileGrid grid, int x, int y) {\n var tile = grid.getTile(x, y);\n pos = tile.getPixelCenterLocation(grid.getTileSize());\n }",
"private void initGrids() {\n grid0 = new Grid(100f, 50f, 100f, 0);\n grid1 = new Grid(100f, 150f, 100f, 1);\n grid2 = new Grid(100f, 250f, 100f, 2);\n grid3 = new Grid(100f, 350f, 100f, 3);\n grid4 = new Grid(100f, 50f, 200f, 4);\n grid5 = new Grid(100f, 150f, 200f, 5);\n grid6 = new Grid(100f, 250f, 200f, 6);\n grid7 = new Grid(100f, 350f, 200f, 7);\n grid8 = new Grid(100f, 50f, 300f, 8);\n grid9 = new Grid(100f, 150f, 300f, 9);\n grid10 = new Grid(100f, 250f, 300f, 10);\n grid11 = new Grid(100f, 350f, 300f, 11);\n grid12 = new Grid(100f, 50f, 400f, 12);\n grid13 = new Grid(100f, 150f, 400f, 13);\n grid14 = new Grid(100f, 250f, 400f, 14);\n grid15 = new Grid(100f, 350f, 400f, 15);\n\n /**\n * Adding grids from 0 to 15 to static ArayList of all grids\n */\n grids.clear();\n\n grids.add(grid0);\n grids.add(grid1);\n grids.add(grid2);\n grids.add(grid3);\n grids.add(grid4);\n grids.add(grid5);\n grids.add(grid6);\n grids.add(grid7);\n grids.add(grid8);\n grids.add(grid9);\n grids.add(grid10);\n grids.add(grid11);\n grids.add(grid12);\n grids.add(grid13);\n grids.add(grid14);\n grids.add(grid15);\n }",
"protected void initialize() {\n \tsetSetpoint(0.0);\n }",
"public PositionInTheGameBoard()\r\n\t{\r\n\t\tthis.X = new Random().nextInt(PositionInTheGameBoard.max_X);\r\n\t\tthis.Y = new Random().nextInt(PositionInTheGameBoard.max_Y);\r\n\t}",
"public Piece(int a_row, int a_col)\n {\n this.tileLocation = Pair.create(a_row,a_col);\n }",
"public void setRemainingToScenery(){\n\t\tfor(int i=0;i<grid.length;i++){\n\t\t\tfor(int j=0;j<grid[0].length;j++){\n\t\t\t\tif(grid[i][j]==null)\n\t\t\t\t\tgrid[i][j]=new Scenery(i*grid[0].length+j);\n\t\t\t}\n\t\t}\n\t}",
"private void initializeGrid() {\r\n if (this.rowCount > 0 && this.columnCount > 0) {\r\n this.cellViews = new Rectangle[this.rowCount][this.columnCount];\r\n for (int row = 0; row < this.rowCount; row++) {\r\n for (int column = 0; column < this.columnCount; column++) {\r\n Rectangle rectangle = new Rectangle();\r\n rectangle.setX((double)column * CELL_WIDTH);\r\n rectangle.setY((double)row * CELL_WIDTH);\r\n rectangle.setWidth(CELL_WIDTH);\r\n rectangle.setHeight(CELL_WIDTH);\r\n this.cellViews[row][column] = rectangle;\r\n this.getChildren().add(rectangle);\r\n }\r\n }\r\n }\r\n }",
"private void setGrid() {\r\n maxRows = (FORM_HEIGHT - FORM_HEIGHT_ADJUST) / SQUARE_SIZE;\r\n maxColumns = (FORM_WIDTH - FORM_WIDTH_ADJUST) / SQUARE_SIZE; \r\n grid = new JLabel[maxRows][maxColumns];\r\n int y = (FORM_HEIGHT - (maxRows * SQUARE_SIZE)) / 2;\r\n for (int row = 0; row < maxRows; row++) {\r\n int x = (FORM_WIDTH - (maxColumns * SQUARE_SIZE)) / 2;\r\n for (int column = 0; column < maxColumns; column++) {\r\n createSquare(x,y,row,column);\r\n x += SQUARE_SIZE;\r\n }\r\n y += SQUARE_SIZE;\r\n } \r\n }",
"public void resetBoard(){\n totalmoves = 0;\n this.board = new Cell[3][3];\n //fill the board with \"-\"\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n this.board[i][j]=new Cell(new Coordinates(i,j), \"-\");\n }\n }\n }",
"void init() {\r\n\r\n map = new HashMap<Square, Piece>();\r\n for (Square sq: INITIAL_ATTACKERS) {\r\n map.put(sq, BLACK);\r\n }\r\n for (Square sq: INITIAL_DEFENDERS) {\r\n map.put(sq, WHITE);\r\n }\r\n king = sq(4, 4);\r\n map.put(king, KING);\r\n for (int i = 0; i <= 8; i++) {\r\n for (int j = 0; j <= 8; j++) {\r\n if (!map.containsKey(sq(i, j))) {\r\n map.put(sq(i, j), EMPTY);\r\n }\r\n }\r\n }\r\n\r\n board = new Piece[9][9];\r\n\r\n for (Square keys : map.keySet()) {\r\n board[keys.col()][keys.row()] = map.get(keys);\r\n }\r\n }",
"@Before\r\n\tpublic void init() {\n\t\tfinal List<Integer> container3 = createContainer((int) Math.pow(3, 2));\r\n\t\tcontainer3.set(container3.size() - 1, null);\r\n\t\tgoal3 = new BoardListImpl<>(3, container3);\r\n\r\n\t\t// 4 x 4 board\r\n\t\tfinal List<Integer> container4 = createContainer((int) Math.pow(4, 2));\r\n\t\tcontainer4.set(container4.size() - 1, null);\r\n\t\tgoal4 = new BoardListImpl<>(4, container4);\r\n\t}",
"private void setVariables() {\n vb = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);\n linBoardGame = (LinearLayout) ((Activity) context).findViewById(boardID);\n gridContainer = (RelativeLayout) ((Activity) context).findViewById(R.id.gridContainer);\n shipTV = (TextView) ((Activity) context).findViewById(R.id.shipTV);\n linBoardGame.setOnTouchListener(this);\n sizeOfCell = Math.round(ScreenWidth() / (maxN + (1)));\n occupiedCells = new ArrayList<>();\n playerAttacks = new ArrayList<>();\n hit = false;\n gridID = R.drawable.grid;\n if (!player ) lockGrid = true;\n ships = new ArrayList<>();\n }",
"public void initializeDebugBoard() {\n\t\tboolean hasNotMoved = false;\n\t\tboolean hasMoved = true;\n\t\tboolean white = true;\n\t\tboolean black = false;\n\n\t\t// Set empty rows\n\t\tfor (int row = 0; row < 8; row++)\n\t\t\tfor (int col = 0; col < 8; col++)\n\t\t\t\tboard[row][col] = null;\n\n\t\tboard[5][4] = new Piece('k', white, hasMoved, 5, 4, PieceArray.E_kingId);\n//\t\tboard[1][4] = new Piece(\"rook\", white, hasMoved, 1, 4);\n\t\tboard[2][2] = new Piece('q', black, hasMoved, 2, 2, PieceArray.A_rookId);\n//\t\tboard[3][2] = new Piece('q', black, hasMoved, 3, 2, PieceArray.H_rookId);\n\t\t\n\n\t\tboard[0][0] = new Piece('k', black, hasMoved, 0, 0, PieceArray.E_kingId);\n//\t\tboard[7][7] = new Piece('r', black, hasNotMoved, 7, 7, PieceArray.A_rookId);\n//\t\tboard[6][7] = new Piece('p', black, hasNotMoved, 6, 7, PieceArray.A_pawnId);\n//\t\tboard[6][6] = new Piece('p', black, hasNotMoved, 6, 6, PieceArray.B_pawnId);\n//\t\tboard[6][5] = new Piece('p', black, hasNotMoved, 6, 5, PieceArray.C_pawnId);\n//\t\tboard[6][4] = new Piece('p', black, hasNotMoved, 6, 4, PieceArray.D_pawnId);\n\t\n//\t\tboard[6][6] = new Piece(\"pawn\", black, hasMoved, 6, 6);\n//\t\tboard[6][7] = new Piece(\"pawn\", black, hasMoved, 6, 7);\n//\t\tboard[6][4] = new Piece(\"pawn\", black, hasMoved, 6, 4);\n//\t\t\t\n//\t\t\n//\t\tboard[4][4] = new Piece(\"pawn\", black, hasMoved, 4,4);\n//\t\tboard[3][5] = new Piece(\"rook\", white,hasMoved,3,5);\n//\t\tboard[1][7] = new Piece(\"pawn\",black,hasMoved,1,7);\n\n\t}",
"public void init_erup() {\n\t\tchange=5;\n\t\tfor(int x=x_max-change ; x <= x_max+change ; x++) {\n\t\t\tfor(int y=y_max-change ; y <= y_max+change ; y++) {\n\t\t\t\tif(x>=0 && x<w.getX() && y>=0 && y<w.getY() ) {\n\t\t\t\t\tif(w.n.alti[x][y]==9)\n\t\t\t\t\t\tliquide[x][y]=10;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"void initializeGame() {\n // Initialize players\n // Put the pieces on the board\n }",
"public void resetPlayerPosition() {\n\t\tthis.tilePositionX = this.STARTING_X;\n\t\tthis.tilePositionY = this.STARTING_Y;\n\t}",
"@Before\r\n public void setup()\r\n {\r\n board = new Board();\r\n piece = new Pawn(WHITE);\r\n board.putPiece(piece, 0, 0);\r\n }",
"public MapGrid(){\n\t\tthis.cell = 25;\n\t\tthis.map = new Node[this.width][this.height];\n\t}",
"public void initializeBoard() {\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tthis.board[i] = \"-\";\n\n\t\t}\n\n\t}",
"public void initGame() {\r\n Log.d(\"UT3\", \"init game\");\r\n mEntireBoard = new Tile(this);\r\n // Create all the tiles\r\n for (int large = 0; large < 9; large++) {\r\n mLargeTiles[large] = new Tile(this);\r\n for (int small = 0; small < 9; small++) {\r\n mSmallTiles[large][small] = new Tile(this);\r\n }\r\n mLargeTiles[large].setSubTiles(mSmallTiles[large]);\r\n }\r\n mEntireBoard.setSubTiles(mLargeTiles);\r\n\r\n // If the player moves first, set which spots are available\r\n mLastSmall = -1;\r\n mLastLarge = -1;\r\n setAvailableFromLastMove(mLastSmall);\r\n }",
"private void setCurrentPos() {\n\t\tcurrentPos=layout_Circle[l.y][l.x];\n\t\tcurrentPos.setFill(Paint.valueOf(\"Red\"));\n\n\t\tsetValidMoves();\n\t}",
"private void setMediumDifficultyGridUp1(){\n\t\tmediumDifficulty1 = new SudokuGrid();\n\t\tCell[][] _matrix = {{new Cell(6), new Cell(0), new Cell(0), new Cell(0), new Cell(1), new Cell(0), new Cell(0), new Cell(7), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(8), new Cell(0), new Cell(5), new Cell(7), new Cell(0), new Cell(0), new Cell(0), new Cell(4), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(2), new Cell(0), new Cell(5), new Cell(0), new Cell(0), new Cell(6), new Cell(0), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(3), new Cell(0), new Cell(0), new Cell(0), new Cell(4), new Cell(7), new Cell(0), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(7), new Cell(0), new Cell(0), new Cell(3), new Cell(0), new Cell(8), new Cell(0), new Cell(0), new Cell(2)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(0), new Cell(9), new Cell(1), new Cell(0), new Cell(0), new Cell(0), new Cell(5), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(0), new Cell(2), new Cell(0), new Cell(0), new Cell(1), new Cell(0), new Cell(8), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(7), new Cell(0), new Cell(0), new Cell(0), new Cell(5), new Cell(3), new Cell(0), new Cell(6)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(6), new Cell(0), new Cell(0), new Cell(2), new Cell(0), new Cell(0), new Cell(0), new Cell(7)}};\n\t\tmediumDifficulty1.set_matrix(_matrix);\n\t}",
"void initialize(Piece[][] contents, Piece side) {\n _moves.clear();\n for (int r = 1; r <= M; r += 1) {\n for (int c = 1; c <= M; c += 1) {\n set(c, r, contents[r - 1][c - 1]);\n }\n }\n _turn = side;\n }",
"public void init(){ \n\t\tcreatePieces(); \n\t\taddMouseListener(ChessMousePressListener.getInstance(this));\n\t}"
] | [
"0.7451914",
"0.7424644",
"0.7111519",
"0.7083535",
"0.68735933",
"0.68037146",
"0.6748573",
"0.6724271",
"0.668575",
"0.66634744",
"0.6639048",
"0.6636886",
"0.66154784",
"0.66045",
"0.65963286",
"0.6580156",
"0.65610087",
"0.65600634",
"0.65507793",
"0.65411955",
"0.6537229",
"0.650797",
"0.64998925",
"0.64777476",
"0.64589685",
"0.6456769",
"0.64226985",
"0.641096",
"0.6394788",
"0.6388659",
"0.63795614",
"0.637152",
"0.63644207",
"0.63636",
"0.63626397",
"0.6360321",
"0.6353369",
"0.63483906",
"0.63455087",
"0.6345284",
"0.63364154",
"0.63297415",
"0.6319816",
"0.63194364",
"0.6318924",
"0.6310152",
"0.63100326",
"0.63010395",
"0.629713",
"0.62919444",
"0.62743783",
"0.62607104",
"0.6256974",
"0.625438",
"0.6254293",
"0.62425447",
"0.62389493",
"0.6238757",
"0.62322617",
"0.6225132",
"0.62104523",
"0.6206222",
"0.6193548",
"0.6191874",
"0.6190321",
"0.61902404",
"0.6188332",
"0.6179775",
"0.61659366",
"0.615594",
"0.61547893",
"0.6144704",
"0.6141343",
"0.61395556",
"0.61349404",
"0.6126231",
"0.6122628",
"0.61218655",
"0.61059225",
"0.61034876",
"0.61018676",
"0.6097132",
"0.60910606",
"0.60872865",
"0.60866874",
"0.60804784",
"0.6074598",
"0.60729927",
"0.6072564",
"0.6068068",
"0.6054895",
"0.60522765",
"0.6051124",
"0.60480785",
"0.60479045",
"0.60460824",
"0.6042826",
"0.6042336",
"0.60420454",
"0.6041285"
] | 0.8273778 | 0 |
currentPiece lands on board and becomes part of preexisting board and/or clears lines | public void landPiece() {
// current rotation of piece
int rot = currentPiece.getPieceRotation();
// x coordinate of current piece's northwest corner
int row = currentPieceGridPosition[0];
// y coordinate of current piece's northwest corner
int col = currentPieceGridPosition[1];
// adds currentPiece's landing positions to be true in blockMatrix
for(int i = 0; i < 4; i++) {
for(int j = 0; j < 4; j++) {
if(currentPiece.isFilled(rot, i, j)) {
blockMatrix[i + row][j + col] = true;
}
}
}
//add up scores
numLines += numberOfFormedLines();
if(numberOfFormedLines() >= 4) {
numTetrises++;
}
//clear out full lines
for(int i = 0; i < blockMatrix.length; i++) {
if(fullLine(i)) {
removeLine(i);
//find rows with blocks filled above cleared line to drop those down
for(int m = i-1; m >= 0; m--) {
for(int n = 0; n < NUM_COLS; n++) {
// fill in space below, clear out current row
if(hasBlock(m, n)) {
blockMatrix[m][n] = false;
blockMatrix[m+1][n] = true;
}
}
}
}
}
// ready for next piece
addNewPiece();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void drawCurrentToBoard () {\n board.clearTemp();\n for (int r = 0; r < currentPiece.height; ++r)\n for (int c = 0; c < currentPiece.width; ++c)\n if (currentPiece.blocks[r][c] == 1)\n board.addBlock(new Block(currentPiece.color), r + currentRow, c + currentColumn);\n }",
"void drawCurrentToTemp() {\n for (int r = 0; r < currentPiece.height; ++r)\n for (int c = 0; c < currentPiece.width; ++c)\n if (currentPiece.blocks[r][c] == 1)\n board.addTempBlock(new Block(currentPiece.color), r + currentRow, c + currentColumn);\n }",
"public void nextPiece() {\n\t\tif (currentPiece != null) {\n\t\t\tfor (Loc l : currentPiece.getLocation()) {\n\t\t\t\tif (!l.isOnBoard()) {\n\t\t\t\t\tendGame();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tcurrentPiece = piecePlacer.nextPiece();\n\n\t\tdropPiece();\n\t\tnextPiecePanel.setNextPiece();\n\t}",
"public void setNewPiece(){\n\t\tcurrentPiece = Pentominoes.Pentomino_array[this.next_piece_index];\n\t\tcurrentColor = Pentominoes.color_array[this.next_piece_colour];\n\t\tpieceOrigin = new Point(6, 2);\n\t}",
"public boolean move(int x, int y, CheckersBoard board) {\n if (whiteTurn == true && team == Constants.TeamId.team1Id) {\n return false;\n }\n if (whiteTurn == false && team == Constants.TeamId.team2Id) {\n return false;\n }\n /**\n * then change the x - y coords of the piece\n * update the UI to remove the highlighted squares then move the piece\n * if chess and shared square you take a piece\n * if checkers you jumped them you take the piece\n * return new x - y components\n *\n * if this is too high up in the tree you can override this implementation or update it\n * to fit specific pieces if its not working for some reason\n */\n if (possible(x, y, gameBoard)) {\n int changex = this.getX()-x;\n int changey = this.getY()-y;\n CheckersPiece temp = gameBoard.boardPositions[getX()][getY()];\n gameBoard.boardPositions[getX()][getY()] = null;\n gameBoard.boardPositions[x][y] = temp;\n if (gameBoard.boardPositions[(this.getX() + x)/2][(this.getY() + y)/2] != null) {\n System.out.println(\"Here\");\n if (gameBoard.boardPositions[(this.getX() + x)/2][(this.getY() + y)/2].team != this.team) {\n gameBoard.boardPositions[(this.getX() + x)/2][(this.getY() + y)/2].imageView.setVisibility(View.GONE);\n gameBoard.boardPositions[(this.getX() + x)/2][(this.getY() + y)/2] = null;\n }\n }\n this.setX(x);\n this.setY(y);/*\n if (Math.abs(changex) == 2) {\n gameBoard.boardPositions[x + (changex/2)][y + (changey/2)] = null;\n if (team == Constants.TeamId.team1Id) {\n board.numPieces1--;\n } else if (team == Constants.TeamId.team2Id) {\n board.numPieces0--;\n }\n }*/\n\n gameBoard.boardPositions[x][y].imageView.setX(142*x);\n gameBoard.boardPositions[x][y].imageView.setY(142*y);\n // flips after move is\n whiteTurn = !whiteTurn;\n gameBoard.startTimer();\n }\n //setUpUI(gameBoard);\n if (getY() == 7 && team == Constants.TeamId.team2Id) {\n board.crown(this);\n }\n if (getY() == 0 && team == Constants.TeamId.team1Id) {\n board.crown(this);\n }\n return possible(x, y, gameBoard);\n }",
"private void drawCurrentPiece(final Graphics2D theG2D, final int theHeight, \r\n final int theWidth) {\r\n \r\n final Piece piece = (AbstractPiece) myBoard.getCurrentPiece(); \r\n final int[][] currentPiece = ((AbstractPiece) piece).getBoardCoordinates(); \r\n \r\n //Calculates rows\r\n for (int row = 0; row < theHeight; row++) { \r\n //Calculates columns\r\n for (int column = 0; column < theWidth; column++) { \r\n //Creates blocks from column and rows\r\n for (int block = 0; block < currentPiece.length; block++) { \r\n if (currentPiece[block][1] == row \r\n && currentPiece[block][0] == column) { \r\n \r\n theG2D.setColor(PURPLE); \r\n rectangle(theG2D, SIZE * column, \r\n (SIZE * theHeight) - ((row + 1) * SIZE), \r\n SIZE, SIZE, COLOR); \r\n \r\n theG2D.setColor(((AbstractPiece) piece).getBlock().getColor()); \r\n rectangle(theG2D, \r\n SIZE * column, \r\n (SIZE * theHeight) - ((row + 1) * SIZE), \r\n SIZE - 1, SIZE - 1, COLOR); \r\n \r\n theG2D.setColor(PURPLE); \r\n rectangle(theG2D, SIZE * column, \r\n (SIZE * theHeight) - ((row + 1) * SIZE), \r\n SIZE, SIZE, DRAW); \r\n } \r\n } \r\n } \r\n } \r\n }",
"private void newPiece() {\n curPiece.setRandomShape();\n//compute the initial curX and curY values \n curX = BOARD_WIDTH / 2 + 1;\n curY = BOARD_HEIGHT - 1 + curPiece.minY();\n//if a piece reaches the top and cannot drop any more piece\n if (!tryMove(curPiece, curX, curY)) {\n//cancel timer and display game over\n curPiece.setShape(Tetrominoe.NoShape);\n timer.cancel();\n isStarted = false;\n statusbar.setText(\"Game over\");\n }\n }",
"private void pieceDropped() {\n for (int i = 0; i < 4; ++i) {\n\n int x = curX + curPiece.x(i);\n int y = curY - curPiece.y(i);\n board[(y * BOARD_WIDTH) + x] = curPiece.getShape();\n }\n//check if any lines can be removed\n removeFullLines();\n//creates a new piece when a piece finished falling\n if (!isFallingFinished) {\n newPiece();\n }\n }",
"void spawnNewPiece () {\n if (nextPiece == null)\n currentPiece = new Piece();\n else\n currentPiece = nextPiece;\n nextPiece = new Piece();\n\n positionToStart();\n isFalling = true;\n\n // Add blocks of the next piece to nextPiece view\n nextPieceBoard.clear();\n final int nRow = 0 - nextPiece.getOffset();\n final int nColumn = nextPieceBoard.rows / 2 - nextPiece.width / 2;\n for (int r = 0; r < nextPiece.height; ++r)\n for (int c = 0; c < nextPiece.width; ++c)\n if (nextPiece.blocks[r][c] == 1)\n nextPieceBoard.addTempBlock(new Block(nextPiece.color), r + nRow, c + nColumn);\n nextPieceView.setBlocks(nextPieceBoard.getCombined());\n nextPieceView.repaint();\n }",
"private void resetBack(int startX, int startY, int finalX, int finalY, Piece piece, Piece opponentPiece) {\r\n\t\thistory.pop();\r\n\t\tinsertPiece(opponentPiece);\r\n\t\tthis.board[startY][startX] = this.board[finalY][finalX];\r\n\t\tpiece.setXY(startX,startY);\r\n\t\tthis.board[finalY][finalX] = opponentPiece;\r\n\t}",
"public void removePiece() {\n\t\troot.getChildren().clear();\n\t\tthis.piece = null;\n\t\troot.getChildren().add(rectangle);\n\t}",
"void step () {\n if (gameOver)\n return;\n if (!isFalling) {\n // if last piece finished falling, spawn a new one\n spawnNewPiece();\n // if it can't move, game over\n if (!canMove(currentRow + 1, currentColumn)) {\n endGame();\n }\n updateView();\n }\n else if (canMove(currentRow + 1, currentColumn)) {\n currentRow += 1;\n updateView();\n } else {\n // the piece fell!\n isFalling = false;\n // draw current shape to the board\n drawCurrentToBoard();\n currentPiece.blocks = new int[currentPiece.blocks.length][currentPiece.blocks[0].length];\n increaseScore(board.clearFullRows(this));\n }\n }",
"public void makesHereBack(){this.piece.affect();}",
"void changepos(MouseEvent e, pieces chessPiece) \n { \n for(int beta : chessPiece.movnum)\n { \n if (chessPiece.color == 0 && e.getSource()== panel[beta-1 ]&& chessPiece.select == true && Checkerboard.allWhitePositions.contains(beta-1) == false)\n {\n if(this.getPiece(beta-1) != null)\n { \n getPiece(beta-1).alive = false;\n \n \n \n panel[beta-1].removeAll();/*getPiece(beta-1).position = 64;*/\n }\n chessPiece.position = beta-1;\n chessPiece.movnum.clear();\n chessPiece.mov.clear();\n chessPiece.select = false;\n chessPiece.timesMoved++;\n whiteToPlay = false;\n }\n else if (chessPiece.color == 1 && e.getSource()== panel[beta-1 ]&& chessPiece.select == true && Checkerboard.allBlackPositions.contains(beta-1) == false)\n {\n if(this.getPiece(beta-1) != null)\n { \n getPiece(beta-1).alive = false; \n panel[beta-1].removeAll();/*getPiece(beta-1).position = 64;*/}\n chessPiece.position = beta-1;\n chessPiece.movnum.clear();\n chessPiece.mov.clear();\n chessPiece.select = false;\n chessPiece.timesMoved++;\n whiteToPlay = true;\n }\n }//for ends\n \n }",
"public void setBoard() {\n bestPieceToMove = null;\n bestPieceFound = false;\n bestMoveDirectionX = 0;\n bestMoveDirectionY = 0;\n bestMoveFound = false;\n killAvailable = false;\n lightCounter = 12;\n darkCounter = 12;\n for (int y = 0; y < boardSize; y++) {\n for (int x = 0; x < boardSize; x++) {\n board[y][x] = new Field(x, y);\n if (y < 3 && board[y][x].getPlaceable()) {\n board[y][x].setPiece(new Piece(PieceColor.DARK, PieceType.MEN));\n } else if (y > 4 && board[y][x].getPlaceable()) {\n board[y][x].setPiece(new Piece(PieceColor.LIGHT, PieceType.MEN));\n }\n }\n }\n }",
"public void updateBoard() {\n for(SnakePart s : snakePartList) {\n board[s.getSnakePartRowsOld()][s.getSnakePartCollsOld()] = ' ';\n board[s.getSnakePartRowsNew()][s.getSnakePartCollsNew()] = 'S';\n }\n \n for (SnakeEnemyPart e : snakeEnemyPartList) {\n board[e.getSnakeEnemyPartRowsOld()][e.getSnakeEnemyPartCollsOld()] = ' ';\n board[e.getSnakeEnemyPartRowsNew()][e.getSnakeEnemyPartCollsNew()] = 'E';\n }\n }",
"public void clearBoard() \n {\n\tfor(int i=0;i<rows;i++)\n\t {\n\t\tfor(int j=0;j<cols;j++)\n\t\t {\n\t\t\tfrontBoard[i][j] = \"00\";\n\t\t\tbackBoard[i][j] = \"00\";\n\t\t }\n\t }\n\tunused = new Piece[pieces.length];\n\tfor(int i=0;i<pieces.length;i++)\n\t {\n\t\t\tunused[i] = pieces[i];\n\t }\n }",
"private void copyToBoard(FallingPiece piece) {\r\n \ttablero.reverse();\r\n \tfor (BlockDrawable block : piece.allBlocks()){\r\n \t\tBlockDrawable aux = new BlockDrawable(piece.toOuterPoint(block.getPoint()), block.getStyle(), false, block.getTextureRegion()); \r\n\t\t\ttablero.add(aux);\r\n\t\t}\r\n \ttablero.reverse();\r\n }",
"private void nextPiece() {\n if (_c == M && _r <= M) {\n _c = 1;\n _r++;\n } else if (_r > M) {\n _move = null;\n } else {\n _c++;\n }\n }",
"public void movePiece(int xStart, int yStart, int xEnd, int yEnd) {\n board[xEnd][yEnd] = board[xStart][yStart];\n board[xStart][yStart] = null;\n board[xEnd][yEnd].moveTo(xEnd, yEnd);\n if (board[xEnd][yEnd] instanceof ChessPieceKing) {\n if (board[xEnd][yEnd].isBlack()) {\n locationBlackKing = new Point(xEnd, yEnd);\n } else {\n locationWhiteKing = new Point(xEnd, yEnd);\n }\n }\n\n drawScreen();\n }",
"public static void setPieceTest2() {\n\t\t\t\tOthelloBoard Board = new OthelloBoard(BOARD_SIZE,BOARD_SIZE);\n\t\t\t \tBoard.setBoard();\n\t\t\t\tBoard.decPieceCount();\n\t\t\t \tSystem.out.println(Board.getPieceCount());\t\n\t\t\t\tSystem.out.println(Board.move(\n\t\t\t\t\t\tTEST_MOVE_X1, TEST_MOVE_Y1, Board.WHITE_PIECE));\n\t\t\t\tBoard.m_Pieces[TEST_PIECE_X][TEST_PIECE_Y]=Board.WHITE_PIECE;\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tBoard.checkWin();\n\t\t\t\tSystem.out.println(\"Valid inputs\");\n\t\t\t\tSystem.out.println(\"OthelloBoard.clearPieces() - Begin\");\n\t\t\t\tSystem.out.println(\"Expected output: Throws exception\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\ttry{\n\t\t\t\t\t\n\t\t\t\t}catch(UnsupportedOperationException e){\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t}",
"public void CaptuePiece(int i , int j , int k , int l){\r\n if(GameBoard.get(i,j).getColour() != GameBoard.get(k,l).getColour()){\r\n pos.setPosition(k,l);\r\n GameBoard.get(i,j).capture(pos);\r\n GameBoard.get(k,l).captured();\r\n \r\n\r\n //We need a method to null the (k,l) cell in GameBoard\r\n pos.setPosition(k,l);\r\n GameBoard.setNull(pos);\r\n GameBoard.get(i,j).move(pos); //to move the killer in new cell\r\n\r\n\r\n\r\n }\r\n }",
"public void getNewPiece(){\n\t\tthis.next_piece_index= rand.nextInt(18);\n\t\tthis.next_piece_colour= rand.nextInt(10);\n\t\tnext_currentPiece = Pentominoes.Pentomino_array[this.next_piece_index];\n\t\tnext_currentColor = Pentominoes.color_array[this.next_piece_colour];\n\t\tfor(int i = 0; i < next_pieces_array.length; i++){\n\t\t\tfor(int j = 0; j<next_pieces_array[0].length; j++){\n\t\t\t\t\tnext_pieces_array[i][j] = Color.WHITE;\n\t\t\t}\n\t\t}\n\t\tfor(Point p: next_currentPiece){\n\t\t\tnext_pieces_array[p.x + pieceOrigin2.x][p.y + pieceOrigin2.y] = next_currentColor;\n\t\t}\n\t}",
"public void drawPiece(Graphics g){\n if (current == null){\n return;\n }\n\n for (int y = 1; y < 21; y++){\n for (int x = 1; x < 13; x++){\n if (map[x][y]){\n g.setColor(colors[x][y]);\n g.fillRoundRect(26 * x - 13, 26 * (21 - y) - 13, 25, 25, 2, 2);\n }\n }\n }\n }",
"public void clearBoard() {\r\n\t\tbody.removeAll();\r\n\t\tpiece.clear();\r\n\t\t\r\n\t\t// Assign1, Remove 'K' label of all pieces\r\n\t\tfor (int i=0; i<blackPieces.length; i++) {\r\n\t\t\tblackPieces[i].setText(null);\r\n\t\t}\r\n\t\tfor (int i=0; i<whitePieces.length; i++) {\r\n\t\t\twhitePieces[i].setText(null);\r\n\t\t}\r\n\t\tbody.repaint();\r\n\t}",
"private void update() {\n setPieceType();\n initBackground(pieceIndex);\n }",
"public void reFormatPieceLayer() {\r\n\t\tbody.removeAll();\r\n\t\tfor (int i = 0; i < 8 * 8; i++) {\r\n\t\t\tChessPiece tmpPiece = piece.get(order[i]);\r\n\t\t\tif (tmpPiece == null) {\r\n\t\t\t\tspacePieces[i].position = order[i];\r\n\t\t\t\tpiece.put(order[i], spacePieces[i]);\r\n\t\t\t\tbody.add(spacePieces[i]);\r\n\t\t\t} else {\r\n\t\t\t\tpiece.put(order[i], tmpPiece);\r\n\t\t\t\tbody.add(tmpPiece);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbody.repaint();\r\n\t}",
"private void undoPosition() {\r\n String undoingBoard = listOfBoards.pop();\r\n listOfMoves.pop();\r\n for (Square sq : map.keySet()) {\r\n char piece = undoingBoard.charAt(sq.index() + 1);\r\n if (piece == '-') {\r\n map.put(sq, EMPTY);\r\n }\r\n if (piece == 'B') {\r\n map.put(sq, BLACK);\r\n }\r\n if (piece == 'W') {\r\n map.put(sq, WHITE);\r\n }\r\n if (piece == 'K') {\r\n map.put(sq, KING);\r\n }\r\n board[sq.col()][sq.row()] = map.get(sq);\r\n }\r\n _moveCount -= 1;\r\n _turn = _turn.opponent();\r\n _repeated = false;\r\n }",
"void positionToStart () {\n currentRow = 0 - currentPiece.getOffset();\n currentColumn = board.columns / 2 - currentPiece.width / 2;\n }",
"public void cleanBoard(){\n\n for(PositionInBoard position : positionsThatArePainted){\n int i = position.row();\n int j = position.column();\n if ((i+j)%2==0) {\n board[i][j].setBackground(Color.BLACK);\n }\n else {\n board[i][j].setBackground(Color.WHITE);\n }\n\n board[i][j].setText(null);\n board[i][j].setIcon(null);\n }\n positionsThatArePainted.clear();\n }",
"public void clear() {\n for (int row = 0; row < 8; ++row) {\n for (int col = 0; col < 8; ++col) {\n board[row][col] = null;\n }\n }\n whitePieces = new LinkedList<Piece>();\n blackPieces = new LinkedList<Piece>();\n }",
"public void undoMove()\n {\n positions.remove(positions.size()-1);\n String position = positions.get(positions.size()-1);\n ArrayList<Piece> pieces = Chess.stringToPieces(position.substring(4));\n setTurn(Integer.parseInt(position.substring(0,2)));\n setFiftyMove(Integer.parseInt(position.substring(2,4)));\n for (int i = 0; i < Chess.ROWS; i++)\n for (int j = 0; j < Chess.COLUMNS; j++)\n {\n squares[i][j].setPiece(null);\n for (Piece p: pieces)\n if (p.getOrigin().equals(new Location(i,j)))\n squares[i][j].setPiece(p);\n }\n setFirstSelected(null);\n squares[0][0].deselectSquares();\n if (getTurn()<20)\n frame.setOptionVisibility(false);\n \n DefaultTableModel d = (DefaultTableModel)frame.getNotation().getModel();\n if (colorGoing()==PieceColor.BLACK)\n d.setValueAt(\"\",turn/2,1);\n else\n d.removeRow((turn+1)/2);\n frame.getSide().getDrawBox().setSelected(false);\n updateUI();\n }",
"public void updateBoard(int[][] board, int piece){\r\n this.board=board;\r\n this.piece=piece;\r\n columns = board.length;\r\n rows = board[0].length;\r\n save = Math.min((size / columns), (size / rows));\r\n this.repaint();\r\n repaint();\r\n }",
"@Override\n public void drawValidMove() {\n if(this.getPlayer().getPlayerID() % 2 != 0) {\n //Pawn can move one space forwards if no piece is in front\n if (board.getSquare(x-1, y).getPiece()== null) {\n board.getSquare(x-1, y).drawOutline();\n }\n \n //if first move, pawn can move 2 spaces forward\n if (!hasMoved && board.getSquare(x-2, y).getPiece() == null && board.getSquare(x-1, y).getPiece() == null) {\n board.getSquare(x-2, y).drawOutline();\n }\n \n //If there is an enemy piece in the diagonal forward square of the pawn, the pawn can move (capture the piece)\n if (y-1 > 0) { //ensures no arrayoutofbounds error\n if (board.getSquare(x-1, y-1) != null && board.getSquare(x-1, y-1).getPiece() != null &&\n board.getSquare(x-1, y-1).getPiece().getPlayer() != this.getPlayer()) {\n board.getSquare(x-1, y-1).drawOutline();\n }\n }\n \n if(y+1<SIZE) { //ensures no arrayoutofbounds error\n if (board.getSquare(x-1, y+1) != null && board.getSquare(x-1, y+1).getPiece() != null &&\n board.getSquare(x-1, y+1).getPiece().getPlayer() != this.getPlayer() ) {\n board.getSquare(x-1, y+1).drawOutline();\n }\n }\n \n System.out.println(\"\");\n //En passant\n if (y - 1 > 0) {\n \n System.out.println();\n if (board.getSquare(x, y-1).getPiece() != null) { \n System.out.println(\"the piece's enPassant is: \" + board.getSquare(x, y-1).getPiece().getEnPassant());\n System.out.println(\"The game's turn counter is: \" + board.getTurnCounter());\n }\n else {\n System.out.println(\"Null piece when checking for en passent.\");\n }\n \n if (board.getSquare(x, y-1).getPiece() != null && board.getSquare(x, y-1).getPiece().getPlayer() != this.player &&\n board.getSquare(x, y-1).getPiece().getEnPassant() == board.getTurnCounter() - 1) {\n board.getSquare(x-1, y-1).drawOutline();\n board.getSquare(x-1, y-1).setEnPassent(true);\n }\n }\n \n if (y + 1 < SIZE) {\n if (board.getSquare(x, y+1).getPiece() != null && board.getSquare(x, y+1).getPiece().getPlayer() != this.player &&\n board.getSquare(x, y+1).getPiece().getEnPassant() == board.getTurnCounter() - 1) {\n board.getSquare(x-1, y+1).drawOutline();\n board.getSquare(x-1, y+1).setEnPassent(true);\n }\n }\n }\n \n //If this pawn belongs to player 2:\n else {\n \n if (board.getSquare(x+1, y).getPiece() == null) {\n board.getSquare(x+1, y).drawOutline();\n }\n \n //if first move, pawn can move 2 spaces forward\n if (!hasMoved && board.getSquare(x+2, y).getPiece() == null && board.getSquare(x+1, y).getPiece() == null) {\n board.getSquare(x+2, y).drawOutline();\n \n }\n \n if(y-1 > 0) {\n if (board.getSquare(x+1, y-1) != null && board.getSquare(x+1, y-1).getPiece() != null &&\n board.getSquare(x+1, y-1).getPiece().getPlayer() != this.getPlayer() ) {\n board.getSquare(x+1, y-1).drawOutline();\n }\n }\n \n if(y+1 < SIZE) {\n if (board.getSquare(x+1, y+1) != null && board.getSquare(x+1, y+1).getPiece() != null &&\n board.getSquare(x+1, y+1).getPiece().getPlayer() != this.getPlayer()) {\n board.getSquare(x+1, y+1).drawOutline();\n }\n }\n \n //En passant\n if (y - 1 > 0) {\n if (board.getSquare(x, y-1).getPiece() != null &&board.getSquare(x, y-1).getPiece().getPlayer() != this.player &&\n board.getSquare(x, y-1).getPiece().getEnPassant() == board.getTurnCounter() - 1) {\n board.getSquare(x+1, y-1).drawOutline();\n board.getSquare(x+1, y-1).setEnPassent(true);\n }\n }\n \n if (y + 1 < SIZE) {\n if (board.getSquare(x, y+1).getPiece() != null && board.getSquare(x, y+1).getPiece().getPlayer() != this.player &&\n board.getSquare(x, y+1).getPiece().getEnPassant() == board.getTurnCounter() - 1) {\n board.getSquare(x+1, y+1).drawOutline();\n board.getSquare(x+1, y+1).setEnPassent(true);\n }\n }\n }\n }",
"public static void clearBoard(){\n for(int i = 0; i < Board.X_UPPER_BOUND * Board.Y_UPPER_BOUND ; i++){\n Board.board[i] = null;\n }\n white_player.setpieceList(null);\n black_player.setpieceList(null);\n }",
"public void specialMove() {\n\t\tChessSquare initial = getSquare();\n\t\tChessSquare next;\n\t\t\n\t\tif(initial.getNorth() != null){\n\t\t\tnext = initial.getNorth();\n\t\t\t\n\t\t\tif((next.getOccupant() == null) || (!next.getOccupant().getColor().equals(this.getColor())))\n\t\t\t\tnext.removeOccupant();\n\t\t\tif(next.getEast() != null)\n\t\t\t\tif((next.getEast().getOccupant() == null) || (!next.getEast().getOccupant().getColor().equals(this.getColor())))\n\t\t\t\t\tnext.removeOccupant();\n\t\t\tif(next.getWest() != null && next.getWest().getOccupant() == null)\n\t\t\t\tif((next.getWest().getOccupant() == null) || (!next.getWest().getOccupant().getColor().equals(this.getColor())))\n\t\t\t\t\tnext.removeOccupant();\n\t\t}\n\t\t\n\t\tif(initial.getSouth() != null){\n\t\t\tnext = initial.getSouth();\n\t\t\t\n\t\t\tif((next.getOccupant() == null) || (!next.getOccupant().getColor().equals(this.getColor())))\n\t\t\t\tnext.removeOccupant();\n\t\t\tif(next.getEast() != null)\n\t\t\t\tif((next.getEast().getOccupant() == null) || (!next.getEast().getOccupant().getColor().equals(this.getColor())))\n\t\t\t\t\tnext.removeOccupant();\n\t\t\tif(next.getWest() != null)\n\t\t\t\tif((next.getWest().getOccupant() == null) || (!next.getWest().getOccupant().getColor().equals(this.getColor())))\n\t\t\t\t\tnext.removeOccupant();\n\t\t\t\n\t\t}\n\t\t\n\t\tnext = initial.getEast();\n\t\tif(next != null)\n\t\t\tif((next.getOccupant() == null) || (!next.getOccupant().getColor().equals(this.getColor())))\n\t\t\t\tnext.removeOccupant();\n\t\tnext = initial.getWest();\n\t\tif(next != null)\n\t\t\tif((next.getOccupant() == null) || (!next.getOccupant().getColor().equals(this.getColor())))\n\t\t\t\tnext.removeOccupant();\n\t\tsetCountdown(9);\n\t}",
"public void setPieces(){\r\n Pawn[] arrwPawn = new Pawn[8];\r\n for (int i=0 ; i<8 ; i++){\r\n pos.setPosition(6,i);\r\n arrwPawn[i] = new Pawn (pos , piece.Colour.WHITE);\r\n GameBoard.putPiece(arrwPawn[i]);\r\n }\r\n\r\n Pawn[] arrbPawn = new Pawn[8];\r\n for(int i=0 ; i<8 ; i++){\r\n pos.setPosition(0,i);\r\n arrbPawn[i] = new Pawn(pos , piece.Colour.BLACK);\r\n GameBoard.putPiece(arrbPawn[i]);\r\n }\r\n\r\n\r\n //set black pieces in the board\r\n\r\n pos.setPosition(0,0);\r\n Rook bRook1 = new Rook(pos, piece.Colour.BLACK);\r\n GameBoard.putPiece(bRook1);;\r\n\r\n pos.setPosition(0,7);\r\n Rook bRook2 = new Rook(pos, piece.Colour.BLACK);\r\n GameBoard.putPiece(bRook2);\r\n\r\n\r\n pos.setPosition(0,1);\r\n Knight bKnight1 = new Knight(pos, piece.Colour.BLACK);\r\n GameBoard.putPiece(bKnight1);\r\n\r\n pos.setPosition(0,6);\r\n Knight bKnight2 = new Knight(pos, piece.Colour.BLACK);\r\n GameBoard.putPiece(bKnight1);\r\n\r\n pos.setPosition(0,2);\r\n Bishop bBishop1 = new Bishop(pos, piece.Colour.BLACK);\r\n GameBoard.putPiece(bBishop1);\r\n\r\n pos.setPosition(0,5);\r\n Bishop bBishop2 = new Bishop(pos, piece.Colour.BLACK);\r\n GameBoard.putPiece(bBishop2);\r\n\r\n pos.setPosition(0,3);\r\n Queen bQueen = new Queen(pos, piece.Colour.BLACK);\r\n GameBoard.putPiece(bQueen);\r\n\r\n pos.setPosition(0,4);\r\n King bKing = new King(pos, piece.Colour.BLACK);\r\n GameBoard.putPiece(bKing);\r\n\r\n //set white pieces in the board\r\n\r\n pos.setPosition(7,0);\r\n Rook wRook1 = new Rook(pos, piece.Colour.WHITE);\r\n GameBoard.putPiece(wRook1);\r\n\r\n pos.setPosition(7,7);\r\n Rook wRook2 = new Rook(pos, piece.Colour.WHITE);\r\n GameBoard.putPiece(wRook2);\r\n\r\n pos.setPosition(7,1);\r\n Knight wKnight1 = new Knight(pos, piece.Colour.WHITE);\r\n GameBoard.putPiece(wKnight1);\r\n\r\n pos.setPosition(7,6);\r\n Knight wKnight2 = new Knight(pos, piece.Colour.WHITE);\r\n GameBoard.putPiece(wKnight1);\r\n\r\n pos.setPosition(7,2);\r\n Bishop wBishop1 = new Bishop(pos, piece.Colour.WHITE);\r\n GameBoard.putPiece(wBishop1);\r\n\r\n pos.setPosition(7,5);\r\n Bishop wBishop2 = new Bishop(pos, piece.Colour.WHITE);\r\n GameBoard.putPiece(wBishop2);\r\n\r\n pos.setPosition(7,3);\r\n Queen wQueen = new Queen(pos, piece.Colour.WHITE);\r\n GameBoard.putPiece(wQueen);\r\n\r\n pos.setPosition(7,4);\r\n King wKing = new King(pos, piece.Colour.WHITE);\r\n GameBoard.putPiece(wKing);\r\n\r\n\r\n\r\n Rook arrwRook[] = {wRook1,wRook2};\r\n Rook arrbRook[] = {bRook1,bRook2};\r\n Queen arrwQueen[] = {wQueen};\r\n Queen arrbQueen[] = {bQueen};\r\n Knight arrwKnight[] = {wKnight1,wKnight2};\r\n Knight arrbKnight[] = {bKnight1,bKnight2};\r\n King arrwKing[] = {wKing};\r\n King arrbKing[] = {bKing};\r\n Bishop arrwBishop[] = {wBishop1,wBishop2};\r\n Bishop arrbBishop[] = {bBishop1,bBishop2};\r\n }",
"private boolean tryMove(Shape newPiece, int newX, int newY) {\n for (int i = 0; i < 4; ++i) {\n\n int x = newX + newPiece.x(i);\n int y = newY - newPiece.y(i);\n//if a piece reaches the edge it stops\n if (x < 0 || x >= BOARD_WIDTH || y < 0 || y >= BOARD_HEIGHT) {\n return false;\n }\n//if a piece is adjacent to any fallen tetris pieces it stops\n if (shapeAt(x, y) != Tetrominoe.NoShape) {\n return false;\n }\n }\n\n curPiece = newPiece;\n curX = newX;\n curY = newY;\n\n repaint();\n\n return true;\n }",
"private void displayBoard() {\r\n\r\n for (int r = 0; r < 8; r++) {\r\n for (int c = 0; c < 8; c++) {\r\n if (model.pieceAt(r, c) == null)\r\n board[r][c].setIcon(null);\r\n else if (model.pieceAt(r, c).player() == Player.WHITE) {\r\n if (model.pieceAt(r, c).type().equals(\"Pawn\"))\r\n board[r][c].setIcon(wPawn);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Rook\"))\r\n board[r][c].setIcon(wRook);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Knight\"))\r\n board[r][c].setIcon(wKnight);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Bishop\"))\r\n board[r][c].setIcon(wBishop);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Queen\"))\r\n board[r][c].setIcon(wQueen);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"King\"))\r\n board[r][c].setIcon(wKing);\r\n } else if (model.pieceAt(r, c).player() == Player.BLACK) {\r\n if (model.pieceAt(r, c).type().equals(\"Pawn\"))\r\n board[r][c].setIcon(bPawn);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Rook\"))\r\n board[r][c].setIcon(bRook);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Knight\"))\r\n board[r][c].setIcon(bKnight);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Bishop\"))\r\n board[r][c].setIcon(bBishop);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Queen\"))\r\n board[r][c].setIcon(bQueen);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"King\"))\r\n board[r][c].setIcon(bKing);\r\n }\r\n repaint();\r\n }\r\n }\r\n if (model.inCheck(Player.WHITE))\r\n JOptionPane.showMessageDialog(null, \"White King in Check\");\r\n if (model.inCheck(Player.BLACK))\r\n JOptionPane.showMessageDialog(null, \"Black King in Check\");\r\n if (model.movingIntoCheck())\r\n JOptionPane.showMessageDialog(null, \"Cannot move into check\");\r\n if (model.isComplete())\r\n JOptionPane.showMessageDialog(null, \"Checkmate\");\r\n }",
"public void makesNotHere(){this.piece.unAffect();}",
"private void putCurrentCard() {\n int temp = 0;\n while (true) {\n if(!(cards.get(temp) instanceof WildCard) ) {\n currentCard = cards.get(temp);\n cards.remove(temp);\n break;\n }\n temp++;\n }\n if (!(currentCard instanceof NumberCard)) {\n show();\n }\n //Reverse\n if (currentCard instanceof ReverseCard) {\n ((ReverseCard) currentCard).changeState(state);\n }\n //Skip\n if (currentCard instanceof SkipCard) {\n ((SkipCard) currentCard).changeState(state);\n }\n //Draw2\n if (currentCard instanceof Draw2Card) {\n System.out.println(\"The player was fined.\");\n for (int i = 0; i < ((Draw2Card) currentCard).getForcedCards(); i++) {\n players.get(state.getTurn()).addCard(cards.get(0));\n cards.remove(0);\n }\n state.nextTurn();\n }\n }",
"private void startNewGame(){\n if (selectedPiece!=null)\n selectedPiece.setBackground(getDefaultColor(selectedPiece));\n selectedPiece = null;\n setAllToDefaultColor();\n setDefulatMessage();\n board = new ChessBoard(1, false);\n for(int row = 0 ; row < ROWS; row++){\n for(int col = 0; col < COLS ; col++){\n setButtonIcon(row,col);\n }\n }\n }",
"public void setBoard(){\n \n\t m_Pieces[3][3]= WHITE_PIECE;\n m_Pieces[4][4]= WHITE_PIECE;\n m_Pieces[3][4]= BLACK_PIECE;\n m_Pieces[4][3]= BLACK_PIECE;\n for(int x=0;x<WIDTH;x++){\n for(int y=0;y<HEIGHT;y++){\n if(m_Pieces[x][y]==null){\n m_Pieces[x][y]=NONE_PIECE;\n }\n }\n }\n }",
"public void newGame() {\n \tturn = PieceColor.White;\n \t\n \t//the middle are empty squares\n \tfor(int i = 2; i < 6; i++) {\n \t\tfor(int j = 0; j < 8; j++) {\n \t\t\tsetPiece(j, i, new NoPiece(j, i));\n \t\t}\n \t}\n \t\n \t//pawns\n \tfor(int i = 0; i < 8; i++) {\n \t\t//make these pawns\n \t\tsetPiece(i, 1, new Pawn(i, 1, PieceColor.White, this));\n \t\tsetPiece(i, 6, new Pawn(i, 6, PieceColor.Black, this));\n \t}\n \t\n \t//white back row\n \tsetPiece(0, 0, new Rook(0, 0, PieceColor.White, this));\n \tsetPiece(1, 0, new Knight(1, 0, PieceColor.White, this));\n \tsetPiece(2, 0, new Bishop(2, 0, PieceColor.White, this));\n \tsetPiece(3, 0, new Queen(3, 0, PieceColor.White, this));\n \tsetPiece(4, 0, new King(4, 0, PieceColor.White, this));\n \tsetPiece(5, 0, new Bishop(5, 0, PieceColor.White, this));\n \tsetPiece(6, 0, new Knight(6, 0, PieceColor.White, this));\n \tsetPiece(7, 0, new Rook(7, 0, PieceColor.White, this));\n \t\n \t//black back row\n \tsetPiece(0, 7, new Rook(0, 7, PieceColor.Black, this));\n \tsetPiece(1, 7, new Knight(1, 7, PieceColor.Black, this));\n \tsetPiece(2, 7, new Bishop(2, 7, PieceColor.Black, this));\n \tsetPiece(3, 7, new Queen(3, 7, PieceColor.Black, this));\n \tsetPiece(4, 7, new King(4, 7, PieceColor.Black, this));\n \tsetPiece(5, 7, new Bishop(5, 7, PieceColor.Black, this));\n \tsetPiece(6, 7, new Knight(6, 7, PieceColor.Black, this));\n \tsetPiece(7, 7, new Rook(7, 7, PieceColor.Black, this));\n \t\n \t//store locations of king so they can be checked\n \twKing = new Square(4, 0);\n \tbKing = new Square(4, 7);\n }",
"private void removePiece(Piece piece) {\n addPiece(piece, piece.rowPosition, piece.columnPosition);\n }",
"@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tOptional<Piece> p = null;\n\t\t\n\t\tp = sq.processMousePress(e);\n\t\tp.ifPresent(item->{\n\t\t\titem.setScale(AnimalQueue.PieceScale);\n\t\t\titem.getMyQueue().addPiece(item, 0);\n\t\t\titem.draw();\n\t\t//\tsq.draw();\n\t\t\t});\n\t\tfor(int i=0; i<this.BOARD_SIZE; i++)\n\t\t{\n\t\t\tAnimalQueue aq = this.TheBoard[i];\n\t\t\tif(aq.contains(e.getPoint()))\n\t\t\t{\n\t\t\t\taq.getTop().ifPresent(item->{\n\t\t\t\t\tif(sq.isValidMove(item))\n\t\t\t\t\t{\n\t\t\t\t\t\taq.removePiece()\n\t\t\t\t\t\t.ifPresent(item2->{\n\t\t\t\t\t\t\tSystem.out.println(item2);\n\t\t\t\t\t\t\titem2.setScale(SolutionQueue.PieceScale);\n\t\t\t\t\t\t\tsq.addPiece(item2);\n\t\t\t\t\t\t\titem2.draw();\n\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{\t\n\t\t\t\t\t\tSystem.out.println(\"Not a valie move\");\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t/*\n\t\t\t\tp = aq.processMousePress(e);\n\t\t\t\tp.ifPresent(item->{\n\t\t//\t\t\tSystem.out.println(\"\\t aq contents =\"+ aq.myQueue);\n\t\t\t\t\tPiece tempP = aq.removePiece();\n\t\t\t\t\ttempP.setScale(SolutionQueue.PieceScale);\n\t\t\t\t\tsq.addPiece(tempP);\n\t\t//\t\t\tSystem.out.println(\"\\t Peek =\"+ aq.removePiece());\n\t\t//\t\t\tSystem.out.println(\"\\t PieceCode removed =\"+ tempP);\n\t\t//\t\t\tSystem.out.println(\"\\t aq contents =\"+ aq.myQueue);\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t\t*/\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tdraw();\n\t\trepaint();\n\t}",
"public void changePiece() {\n if (piece == 1) {\n piece = 2;\n } else {\n piece = 1;\n }\n //System.out.println(\"Nu ben ik piece \" + piece);\n }",
"private void overwritePositionWithEmpty(int row, int col){\n gameBoard[row][col] = new EmptyPiece();\n }",
"void showpos(pieces chesspiece)\n {if(chesspiece.alive == true)\n {\n int position = chesspiece.position;\n chesspiece.select = true;\n \n int x;int y;\n if((position+1)%8 == 0) {x = 8; y = (position+8)/8;}\n else{ x = (position+1)%8;\n y = (position+9)/8;}\n chesspiece.move(new moves(x,y));\n for( int a : chesspiece.movnum )\n {\n if ( chesspiece.color == 0)\n {\n if (Checkerboard.allWhitePositions.contains(a-1)== true)\n panel[a-1].setBackground(Color.GRAY);\n else if (Checkerboard.allBlackPositions.contains(a-1)== true)\n panel[a-1].setBackground(Color.RED);\n else\n panel[a-1].setBackground(Color.GREEN);\n }\n else\n {\n if (Checkerboard.allWhitePositions.contains(a-1)== true)\n panel[a-1].setBackground(Color.RED);\n else if (Checkerboard.allBlackPositions.contains(a-1)== true)\n panel[a-1].setBackground(Color.GRAY);\n else\n panel[a-1].setBackground(Color.GREEN);\n }\n \n }\n }//if(chesspiece.alive==true) ends\n }",
"private void processMoving(Figure currentFigure, int desiredRow, int desiredCol, int currentRow, int currentCol) {\n if (currentFigure.isValidMove(currentRow, currentCol, desiredRow, desiredCol)) {\n\n if (desiredField.isObstacle()) {\n\n showMessageOnScreen(\"Obstacle in your desired destination,destroy it!\");\n\n\n } else if (!desiredField.isFieldFree()) {\n showMessageOnScreen(\"Opponent unit in your desired destination,kill it!\");\n\n } else {\n this.stats.increaseNumberOfRounds();\n desiredField.setCurrentFigure(currentFigure);\n currentField.setCurrentFigure(null);\n currentPlayer = currentPlayer.equals(playerOne) ? playerTwo : playerOne;\n\n }\n\n } else {\n\n showMessageOnScreen(\"Invalid move!\");\n\n }\n clearChosenFields();\n }",
"public boolean placePiece(Piece piece,String side, int row, int col)\n {\n\tboolean placed = true;\n\tint[][] shape = piece.getShape(); //shape of the piece\n\tString[][] fBoard = new String[rows][cols]; //temp front board\n\tString[][] bBoard = new String[rows][cols]; //temp back board\n\tfor(int i=0;i<rows;i++)\n\t {\n\t\tfor(int j=0;j<cols;j++)\n\t\t {\n\t\t\tfBoard[i][j] = frontBoard[i][j];\n\t\t\tbBoard[i][j] = backBoard[i][j];\n\t\t }\n\t }\n\tint insertRow = row; //row on the board being altered\n\tint insertCol = col; //column on the board being altered\n\tfor(int i=0;i<piece.getPieceRows();i++)\n\t {\n\t\tfor(int j=0;j<piece.getPieceCols();j++)\n\t\t {\n\t\t\tif(insertRow<0 || insertRow>rows-1 || insertCol<0 || insertCol>cols-1) //checks that the row and column numbers are valid\n\t\t\t {\n\t\t\t\tplaced = false;\n\t\t\t\tbreak;\n\t\t\t }\n\t\t\telse\n\t\t\t {\n\t\t\t\tif(side==\"front\") //places the piece relative to the front of the board\n\t\t\t\t {\n\t\t\t\t\tif(fBoard[insertRow][insertCol].equals(\"0\") || fBoard[insertRow][insertCol].charAt(1)=='0') \n\t\t\t\t\t //if the front board has a 0\n\t\t\t\t\t {\n\t\t\t\t\t\tif(shape[i][j]!=0)//if the piece does not have a 0 in the spot\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tfBoard[insertRow][insertCol] = piece.getColor().charAt(0) + \"\" + 2; //front gets a color and a 2\n\t\t\t\t\t\t\tbBoard[insertRow][rows-insertCol] = piece.getColor().charAt(0) + \"\" + shape[i][j]; //back gets a color and a 1\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t\telse if(fBoard[insertRow][insertCol].charAt(1)=='1')\n\t\t\t\t\t //if the front board has a 1\n\t\t\t\t\t {\n\t\t\t\t\t\tif(shape[i][j]!=2) //if the piece does not have a 2\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tfBoard[insertRow][insertCol] = piece.getColor().charAt(0) + \"\" + 2; //front of the board gets a 2\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\tplaced = false;\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\telse\n\t\t\t\t\t //if the front of the board has a 2, only a piece with a 0 can be placed there\n\t\t\t\t\t {\n\t\t\t\t\t\tif(shape[i][j]!=0)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t placed = false;\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\telse //places the piece relative to the back of the board (same rules as above only reversed)\n\t\t\t\t {\n\t\t\t\t\tif(bBoard[insertRow][insertCol].equals(\"0\") || bBoard[insertRow][insertCol].charAt(1)=='0')\n\t\t\t\t\t {\n\t\t\t\t\t\tif(shape[i][j]!=0)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tbBoard[insertRow][insertCol] = piece.getColor().charAt(0) + \"\" + 2;\n\t\t\t\t\t\t\tfBoard[insertRow][rows-insertCol] = piece.getColor().charAt(0) + \"\" + shape[i][j];\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t\telse if(bBoard[insertRow][insertCol].charAt(1)=='1')\n\t\t\t\t\t {\n\t\t\t\t\t\tif(shape[i][j]!=2)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tbBoard[insertRow][insertCol] = piece.getColor().charAt(0) + \"\" + 2;\t \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\tplaced = false;\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\telse\n\t\t\t\t\t {\n\t\t\t\t\t if(shape[i][j]!=0)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t placed = false;\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 }\n\t\t\tinsertCol++;\n\t\t }\n\t\tinsertRow++;\n\t\tinsertCol = col;\n\t }\n\tif(placed) //if the piece did not encounter a collision, change the actual front and back of the board\n\t{\n\t\tfrontBoard = fBoard;\n\t\tbackBoard = bBoard;\n\t\tString color = piece.getColor();\n\t\tint index = 0;\n\t\twhile(!unused[index].getColor().equals(color))\n\t\t{\n\t\t\tindex++;\n\t\t}\n\t\tfor(int j=index;j<unused.length-1;j++)\n\t {\n\t\t\tunused[j] = unused[j+1];\n\t }\n\t\tunused[unused.length-1] = null;\n\t\tindex = 0;\n\t\tif(onBoard.length>0)\n\t\t{\n\t\t\twhile(onBoard[index]!=null && index<10)\n\t\t\t{\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t\tif(index<10)\n\t\t{\n\t\t\tonBoard[index] = color;\n\t\t}\n\t}\n\treturn placed;\n }",
"protected void pieceButtonClicked(ActionEvent e) {\n if (board.ended) return;\n JButton button = (JButton) e.getSource();\n Pair<Integer, Integer> coord = getJButtonCoord(button);\n int row = coord.getKey();\n int col = coord.getValue();\n\n if (board.isCurrentPlayerPiece(row, col)) {\n if (selectedPiece != null) {\n setAllToDefaultColor();\n //selectedPiece.setBackground(getDefaultColor(selectedPiece));\n }\n selectedPiece = button;\n selectedPiece.setBackground(Color.BLUE);\n drawPossibleMoves();\n } else {\n if (selectedPiece != null) { //try move selectedPiece to coord\n Pair<Integer,Integer> coordSelected = getJButtonCoord(selectedPiece);\n int startRow = coordSelected.getKey();\n int startCol = coordSelected.getValue();\n int status = board.movePiece(startRow,startCol,row,col);\n if (status == 0){ // invalid move\n message.setText(\"illegal move\");\n }else {\n //move the piece\n button.setIcon(selectedPiece.getIcon());\n selectedPiece.setIcon(null);\n selectedPiece.setBackground(getDefaultColor(selectedPiece));\n selectedPiece = null;\n setAllToDefaultColor();\n if (status == 1) {\n Boolean isChecked = board.isChecked(board.turn);\n String nextTurn = board.turn == 0 ? \"Black\" : \"White\";\n if (isChecked)\n nextTurn = \"CHECK! \" + nextTurn;\n message.setText(nextTurn + \"'s turn\");\n }else if (status == 2){ // black wins\n message.setText(\"Black Wins!\");\n playerScores[blackPlayer]++;\n refreshScore();\n } else if (status == 3){ // white wins\n playerScores[ 1- blackPlayer] ++;\n refreshScore();\n message.setText(\"White Wins!\");\n } else if (status == 4 ) { // draws\n playerScores[0]++;\n playerScores[1]++;\n refreshScore();\n message.setText(\"Draws!\");\n }\n }\n }\n }\n }",
"private boolean movePiece(Tile fromTile) {\r\n\t\tgetBoard().setToTile(tile);\r\n\t\tmakeBackup();\r\n\r\n\t\ttile.setPiece(fromTile.getPiece());\r\n\r\n\t\t// League wins the game if the piece carrying the flag returns to its territory\r\n\t\tif (tile.getPiece().getHasEnemyFlag() == true && tile.getPiece().getLEAGUE().toString().toLowerCase()\r\n\t\t\t\t.equals(tile.getTer().territoryName().toLowerCase())) {\r\n\t\t\tGame.getInstance().setGameOver(true);\r\n\t\t}\r\n\r\n\t\t// reset the old position\r\n\t\tfromTile.setPiece(null);\r\n\t\tgetBoard().setFromTile(null);\r\n\r\n\t\t// reset the selection\r\n\t\tgetBoard().setPieceSelected(false);\r\n\r\n\t\t// fromTile = null;\r\n\t\tgetBoard().setToTile(null);\r\n\r\n\t\treturn true;\r\n\t}",
"public void addPieces() {\r\n\t\tboard[0] = 8;\r\n\t\tboard[1] = 1;\r\n\t\tboard[2] = 6;\r\n\t\tboard[3] = 3;\r\n\t\tboard[4] = 5;\r\n\t\tboard[5] = 7;\r\n\t\tboard[6] = 4;\r\n\t\tboard[7] = 9;\r\n\t\tboard[8] = 2;\r\n\t}",
"private boolean removePieceFromBoardTile(Piece piece) {\n\n\t\tif(piece == null) return false; \n\t\tLocation pieceLoc = piece.getLocation();\n\n\t\tTile tile=null;\n\t\ttry {\n\t\t\ttile = getTileInLocation(pieceLoc);\n\t\t\ttile.setPiece(null);\n\t\t\tthis.replaceTileInSameTileLocation(tile);\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"public void newGame() {\n\n\n inGame = true;\n mines_left = mines+ePirate+mPirate+hPirate;\n\n all_cells = rows * cols;\n field = new int[all_cells];\n\n for (int i = 0; i < all_cells; i++)\n field[i] = COVER_FOR_CELL;\n\n statusbar.setText(Integer.toString(mines_left));\n\n // draw the board -- pass to the undo array\n drawBoard(mines) ; // now rocks\n drawBoard(ePirate) ;\n drawBoard(mPirate) ;\n drawBoard(hPirate) ;\n\n }",
"private void putTilesOnBoard() {\n boolean isWhite = true;\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n Tile t = new Tile(isWhite, new Position(x, y));\n t.setOnMouseClicked(e -> {\n if (t.piece != null && this.activeTile == null && this.whitePlayer == t.piece.isWhite()) {\n this.activeTile = t;\n ArrayList<Position> moves = t.piece.getLegalMoves();\n this.highlightAvailableMoves(moves, t.isWhite);\n } else if (t.isHighlighted.getValue() && this.activeTile.piece != null ) {\n movePieces(t);\n } else {\n this.activeTile = null;\n this.clearHighlightedTiles();\n }\n this.updatePieceBoards();\n });\n t.isHighlighted.addListener((o, b, b1) -> {\n if (o.getValue() == true) {\n t.startHighlight();\n } else {\n t.clearHighlight();\n }\n });\n this.board[x][y] = t;\n this.add(this.board[x][y], x, y);\n isWhite = !isWhite;\n }\n isWhite = !isWhite;\n }\n\n }",
"public static void move(TTTBoard board, char piece) {\n if (board.winner() != ' ') {\n throw new IllegalArgumentException(\"Game Over\");\n }\n if (board.size() == 1) {\n board.set(0, 0, piece);\n return;\n }\n if (board.size() == 3) {\n int turnNumber = getBoardTurnNumber(board);\n if (turnNumber == 1) {\n board.set(0, 0, piece);\n return;\n } else if (turnNumber == 2) {\n if (board.get(1, 1) == ' ') {\n board.set(1, 1, piece);\n return;\n } else if (board.get(0, 0) == ' ') {\n board.set(0, 0, piece);\n return;\n }\n } else if (turnNumber == 3) {\n try {\n int[] opp = getFirstOpp(board, piece);\n int oppRow = opp[0];\n if (oppRow == 0) {\n board.set(2, 0, piece);\n return;\n } else if (oppRow == 1) {\n board.set(0, 2, piece);\n return;\n } else {\n board.set(0, 2, piece);\n return;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n\n // check if win diagonal\n int selfC = 0;\n int oppC = 0;\n int spaceC = 0;\n for (int i = 0; i < board.size(); ++i) {\n int j = i;\n char p = board.get(i, j);\n if (p == ' ') spaceC++;\n else if (p == piece) selfC++;\n else oppC++;\n }\n\n if (spaceC == 1 && (selfC == 0 || oppC == 0)) {\n // fill in that space\n for (int i = 0; i < board.size(); ++i) {\n int j = i;\n char p = board.get(i, j);\n if (p == ' ') {\n board.set(i, j, piece);\n return;\n }\n }\n }\n\n selfC = 0;\n oppC = 0;\n spaceC = 0;\n for (int i = 0; i < board.size(); ++i) {\n int j = board.size() - i - 1;\n char p = board.get(i, j);\n if (p == ' ') spaceC++;\n else if (p == piece) selfC++;\n else oppC++;\n\n }\n\n if (spaceC == 1 && (selfC == 0 || oppC == 0)) {\n // fill in that space\n for (int i = 0; i < board.size(); ++i) {\n int j = board.size() - i - 1;\n char p = board.get(i, j);\n if (p == ' ') {\n board.set(i, j, piece);\n return;\n }\n }\n }\n\n // check if win row col\n\n boolean[] selfWinnableRows = new boolean[board.size()];\n boolean[] oppWinnableRows = new boolean[board.size()];\n boolean[] selfWinnableCols = new boolean[board.size()];\n boolean[] oppWinnableCols = new boolean[board.size()];\n int[] selfCountRows = new int[board.size()];\n int[] selfCountCols = new int[board.size()];\n int[] oppCountRows = new int[board.size()];\n int[] oppCountCols = new int[board.size()];\n\n // checks if any rows can be won\n for (int i = 0; i < board.size(); ++i) {\n boolean containsSelf = false;\n boolean containsOpp = false;\n boolean hasEmpty = false;\n int selfCount = 0;\n int oppCount = 0;\n\n for (int j = 0; j < board.size(); ++j) {\n char p = board.get(i, j);\n\n if (p == ' ') {\n hasEmpty = true;\n } else if (p == piece) {\n containsSelf = true;\n selfCount++;\n } else {\n containsOpp = true;\n oppCount++;\n }\n }\n\n selfCountRows[i] = selfCount;\n oppCountRows[i] = oppCount;\n\n if (!hasEmpty) continue;\n\n if (!containsSelf && !containsOpp) {\n selfWinnableRows[i] = true;\n oppWinnableRows[i] = true;\n }\n\n if (containsSelf && !containsOpp) {\n selfWinnableRows[i] = true;\n }\n if (containsOpp && !containsSelf) {\n oppWinnableRows[i] = true;\n }\n }\n\n // checks if any cols can be won\n for (int i = 0; i < board.size(); ++i) {\n boolean containsSelf = false;\n boolean containsOpp = false;\n boolean hasEmpty = false;\n int selfCount = 0;\n int oppCount = 0;\n for (int j = 0; j < board.size(); ++j) {\n char p = board.get(j, i);\n\n if (p == ' ') {\n hasEmpty = true;\n } else if (p == piece) {\n containsSelf = true;\n selfCount++;\n } else {\n containsOpp = true;\n oppCount++;\n }\n }\n\n selfCountCols[i] = selfCount;\n oppCountCols[i] = oppCount;\n\n if (!hasEmpty) continue;\n\n if (!containsSelf && !containsOpp) {\n selfWinnableCols[i] = true;\n oppWinnableCols[i] = true;\n }\n\n if (containsSelf && !containsOpp) {\n selfWinnableCols[i] = true;\n }\n\n if (containsOpp && !containsSelf) {\n oppWinnableCols[i] = true;\n }\n }\n\n int[] selfInRowRows = new int[board.size()];\n int[] selfInRowCols = new int[board.size()];\n int[] oppInRowRows = new int[board.size()];\n int[] oppInRowCols = new int[board.size()];\n\n for (int i = 0; i < selfWinnableRows.length; ++i) {\n if (selfWinnableRows[i]) {\n int count = selfCountRows[i];\n selfInRowRows[count]++;\n }\n }\n for (int i = 0; i < selfWinnableCols.length; ++i) {\n if (selfWinnableCols[i]) {\n int count = selfCountCols[i];\n selfInRowCols[count]++;\n }\n }\n for (int i = 0; i < oppWinnableRows.length; ++i) {\n if (oppWinnableRows[i]) {\n int count = oppCountRows[i];\n oppInRowRows[count]++;\n }\n }\n for (int i = 0; i < oppWinnableCols.length; ++i) {\n if (oppWinnableCols[i]) {\n int count = oppCountCols[i];\n oppInRowCols[count]++;\n }\n }\n\n if (board.size() == 3) {\n int turnNumber = getBoardTurnNumber(board);\n if (selfInRowRows[board.size() - 1] == 0 &&\n selfInRowCols[board.size() - 1] == 0 &&\n oppInRowRows[board.size() - 1] == 0 &&\n oppInRowCols[board.size() - 1] == 0) {\n if (turnNumber == 4) {\n if ((board.get(1, 1) != ' ' && board.get(1, 1) != piece)\n && (board.get(2, 2) != ' ' && board.get(2, 2) != piece)) {\n board.set(2, 0, piece);\n return;\n }\n } else if (turnNumber == 5) {\n if (selfCountCols[0] == 2) {\n board.set(2, 2, piece);\n return;\n } else if (selfCountRows[0] == 2) {\n if (board.get(1, 0) != piece && board.get(1, 0) != ' ') {\n board.set(2, 2, piece);\n return;\n }\n if (board.get(2, 0) != piece && board.get(2, 0) != ' ') {\n board.set(2, 2, piece);\n return;\n }\n board.set(2, 0, piece);\n return;\n }\n }\n }\n }\n\n for (int i = board.size() - 1; i >= 0; i--) {\n int selfRowsCount = selfInRowRows[i];\n //System.out.println(i + \" self rows count: \" + selfRowsCount);\n if (selfRowsCount > 0) {\n // get a row index that contains this self in row rows\n try {\n int rowIndex = getRowIndexForInRowRows(board, i, selfWinnableRows, selfCountRows);\n int colIndex = getNextInRow(board, rowIndex);\n board.set(rowIndex, colIndex, piece);\n return;\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n int selfColsCount = selfInRowCols[i];\n if (selfColsCount > 0) {\n try {\n int colIndex = getRowIndexForInRowRows(board, i, selfWinnableCols, selfCountCols);\n int rowIndex = getNextInCol(board, colIndex);\n board.set(rowIndex, colIndex, piece);\n return;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n int oppRowsCount = oppInRowRows[i];\n // System.out.println(i + \" opp rows count: \" + oppRowsCount);\n if (oppRowsCount > 0) {\n\n try {\n int rowIndex = getRowIndexForInRowRows(board, i, oppWinnableRows, oppCountRows);\n int colIndex = getNextInRow(board, rowIndex);\n board.set(rowIndex, colIndex, piece);\n return;\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n int oppColsCount = oppInRowCols[i];\n if (oppColsCount > 0) {\n try {\n int colIndex = getRowIndexForInRowRows(board, i, oppWinnableCols, oppCountCols);\n int rowIndex = getNextInCol(board, colIndex);\n board.set(rowIndex, colIndex, piece);\n return;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n\n try {\n int[] nextEmpty = getNextEmpty(board);\n board.set(nextEmpty[0], nextEmpty[1], piece);\n } catch (Exception e) {\n throw new IllegalArgumentException(\"DRAW / SOMEONE WON\");\n }\n }",
"public static void changepieces(int row, int column, String piecevalue){\n\t\tString oppositepiece;\n\t\tif(piecevalue.equals(\"x\")){\n\t\t\toppositepiece=\"o\";\n\t\t}\n\t\telse if(piecevalue.equals(\"o\")){\n\t\t\toppositepiece=\"x\";\n\t\t}\n\t\telse{\n\t\t\toppositepiece=\"-\";\n\t\t}\n\t\t//R=right, L=left, T=top, B=bottom, and there are diagonals such as TL=top left.\n\t\tboolean foundR=false,foundL=false,foundT=false,foundB=false,foundTL=false,foundTR=false,foundBL=false,foundBR=false;\n\t\tint checkfurtherR=1,checkfurtherL=1,checkfurtherT=1,checkfurtherB=1,checkfurtherTL=1,checkfurtherTR=1,checkfurtherBL=1,checkfurtherBR=1;\n\t\twhile(board[row][column+checkfurtherR].equals(oppositepiece)){\n\t\t\tcheckfurtherR++;\n\t\t}\n\t\tif(board[row][column+checkfurtherR].equals(piecevalue)){\n\t\t\tfoundR=true;\n\t\t}\n\t\t//The board changes the board if a 'connection' has been found in the [right] direction. It makes the connection following the game rules.\n\t\tif(foundR==true){\n\t\tfor(int i=column;i<column+checkfurtherR;i++){\n\t\t\t\tboard[row][i]=(piecevalue);\n\t\t\t}\n\t\t}\n\t\twhile(board[row][column-checkfurtherL].equals(oppositepiece)){\n\t\t\tcheckfurtherL++;\n\t\t}\n\t\tif(board[row][column-checkfurtherL].equals(piecevalue)){\n\t\t\tfoundL=true;\n\t\t}\n\t\t//Again, if something is found in the [left] direction, this block of code will be initialized to change to board array (making that 'connection' on the board).\n\t\tif(foundL==true){\n\t\tfor(int i=column;i>column-checkfurtherL;i--){\n\t\t\t\tboard[row][i]=(piecevalue);\n\t\t\t}\n\t\t}\n\t\twhile(board[row+checkfurtherB][column].equals(oppositepiece)){\n\t\t\tcheckfurtherB++;\n\t\t}\n\t\tif(board[row+checkfurtherB][column].equals(piecevalue)){\n\t\t\tfoundB=true;\n\t\t}\n\t\tif(foundB==true){\n\t\tfor(int i=row;i<row+checkfurtherB;i++){\n\t\t\t\tboard[i][column]=(piecevalue);\n\t\t\t}\n\t\t}\n\t\twhile(board[row-checkfurtherT][column].equals(oppositepiece)){\n\t\t\tcheckfurtherT++;\n\t\t}\n\t\tif(board[row-checkfurtherT][column].equals(piecevalue)){\n\t\t\tfoundT=true;\n\t\t}\n\t\tif(foundT==true){\n\t\tfor(int i=row;i>row-checkfurtherT;i--){\n\t\t\t\tboard[i][column]=(piecevalue);\n\t\t\t}\n\t\t}\n\t\t//Diagonal directions are harder and different from the 4 basic directions\n\t\t//It must use dynamic board to 'mark' the coordinates that it must convert to make a proper 'connection'\n\t\twhile(board[row-checkfurtherTR][column+checkfurtherTR].equals(oppositepiece)){\n\t\t\t//each coordinate that is reached will be recorded on the dynamic board\n\t\t\tdynamicboard[row-checkfurtherTR][column+checkfurtherTR]=1;\n\t\t\tcheckfurtherTR++;\n\t\t}\n\t\tif(board[row-checkfurtherTR][column+checkfurtherTR].equals(piecevalue)){\n\t\t\tfoundTR=true;\n\t\t}\n\t\t//Now the board will be changed if an available move has been found\n\t\tif(foundTR==true){\n\t\t\tfor(int x=row;x>row-checkfurtherTR;x--){\n\t\t\t\tfor(int i=column;i<column+checkfurtherTR;i++){\n\t\t\t\t\t//without the use of the dynamic board, some units of the board that should not be converted, will be converted.\n\t\t\t\t\t//(hard to explain)Example, if coordinate places a piece on the Top right of an available move, the connection and change on the board will be performed but [down] and [right] directions will also be inconveniently converted \n\t\t\t\t\tif(dynamicboard[x][i]==1){\n\t\t\t\t\t\tboard[x][i]=(piecevalue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//dynamicboard must be cleared each time for its next job in 'marking' units in the array to be converted.\n\t\tcleandynamicboard();\n\t\twhile(board[row-checkfurtherTL][column-checkfurtherTL].equals(oppositepiece)){\n\t\t\tdynamicboard[row-checkfurtherTL][column-checkfurtherTL]=1;\n\t\t\tcheckfurtherTL++;\n\t\t}\n\t\tif(board[row-checkfurtherTL][column-checkfurtherTL].equals(piecevalue)){\n\t\t\tfoundTL=true;\n\t\t}\n\t\tif(foundTL==true){\n\t\t\tfor(int x=row;x>row-checkfurtherTL;x--){\n\t\t\t\tfor(int i=column;i>column-checkfurtherTL;i--){\n\t\t\t\t\tif(dynamicboard[x][i]==1){\n\t\t\t\t\t\tboard[x][i]=(piecevalue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcleandynamicboard();\n\t\twhile(board[row+checkfurtherBL][column-checkfurtherBL].equals(oppositepiece)){\n\t\t\tdynamicboard[row+checkfurtherBL][column-checkfurtherBL]=1;\n\t\t\tcheckfurtherBL++;\n\t\t}\n\t\tif(board[row+checkfurtherBL][column-checkfurtherBL].equals(piecevalue)){\n\t\t\tfoundBL=true;\n\t\t}\n\t\tif(foundBL==true){\n\t\t\tfor(int x=row;x<row+checkfurtherBL;x++){\n\t\t\t\tfor(int i=column;i>column-checkfurtherBL;i--){\n\t\t\t\t\tif(dynamicboard[x][i]==1){\n\t\t\t\t\t\tboard[x][i]=(piecevalue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcleandynamicboard();\n\t\twhile(board[row+checkfurtherBR][column+checkfurtherBR].equals(oppositepiece)){\n\t\t\tdynamicboard[row+checkfurtherBR][column+checkfurtherBR]=1;\n\t\t\tcheckfurtherBR++;\n\t\t}\n\t\tif(board[row+checkfurtherBR][column+checkfurtherBR].equals(piecevalue)){\n\t\t\tfoundBR=true;\n\t\t}\n\t\tif(foundBR==true){\n\t\t\tfor(int x=row;x<row+checkfurtherBR;x++){\n\t\t\t\tfor(int i=column;i<column+checkfurtherBR;i++){\n\t\t\t\t\tif(dynamicboard[x][i]==1){\n\t\t\t\t\t\tboard[x][i]=(piecevalue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void flushCurrentLine()\n {\n line = null;\n }",
"public void placePiece(Piece newPiece){pieceAtVertex = newPiece;}",
"void doMove() {\n\t\t// we saved the moves in a queue to avoid recursing.\n\t\tint[] move;\n\t\twhile(!moveQueue.isEmpty()) {\n\t\t\tmove = moveQueue.remove(); \n\t\t\tif (board[move[0]][move[1]] == 0) {\n\t\t\t\tinsertNumber(move[0], move[1], move[2]);\n\t\t\t}\n\t\t}\n\t\tgoOverLines();\n\t}",
"public void initializeDebugBoard() {\n\t\tboolean hasNotMoved = false;\n\t\tboolean hasMoved = true;\n\t\tboolean white = true;\n\t\tboolean black = false;\n\n\t\t// Set empty rows\n\t\tfor (int row = 0; row < 8; row++)\n\t\t\tfor (int col = 0; col < 8; col++)\n\t\t\t\tboard[row][col] = null;\n\n\t\tboard[5][4] = new Piece('k', white, hasMoved, 5, 4, PieceArray.E_kingId);\n//\t\tboard[1][4] = new Piece(\"rook\", white, hasMoved, 1, 4);\n\t\tboard[2][2] = new Piece('q', black, hasMoved, 2, 2, PieceArray.A_rookId);\n//\t\tboard[3][2] = new Piece('q', black, hasMoved, 3, 2, PieceArray.H_rookId);\n\t\t\n\n\t\tboard[0][0] = new Piece('k', black, hasMoved, 0, 0, PieceArray.E_kingId);\n//\t\tboard[7][7] = new Piece('r', black, hasNotMoved, 7, 7, PieceArray.A_rookId);\n//\t\tboard[6][7] = new Piece('p', black, hasNotMoved, 6, 7, PieceArray.A_pawnId);\n//\t\tboard[6][6] = new Piece('p', black, hasNotMoved, 6, 6, PieceArray.B_pawnId);\n//\t\tboard[6][5] = new Piece('p', black, hasNotMoved, 6, 5, PieceArray.C_pawnId);\n//\t\tboard[6][4] = new Piece('p', black, hasNotMoved, 6, 4, PieceArray.D_pawnId);\n\t\n//\t\tboard[6][6] = new Piece(\"pawn\", black, hasMoved, 6, 6);\n//\t\tboard[6][7] = new Piece(\"pawn\", black, hasMoved, 6, 7);\n//\t\tboard[6][4] = new Piece(\"pawn\", black, hasMoved, 6, 4);\n//\t\t\t\n//\t\t\n//\t\tboard[4][4] = new Piece(\"pawn\", black, hasMoved, 4,4);\n//\t\tboard[3][5] = new Piece(\"rook\", white,hasMoved,3,5);\n//\t\tboard[1][7] = new Piece(\"pawn\",black,hasMoved,1,7);\n\n\t}",
"public void reset()\n {\n playersPiece = -1;\n king = false;\n empty = true;\n setTileColor(-1);\n }",
"private void draw(){\n GraphicsContext gc = canvasArea.getGraphicsContext2D();\n canvasDrawer.drawBoard(canvasArea, board, gc, currentCellColor, currentBackgroundColor, gridToggle);\n }",
"public void clearBoardData()\n {\n player_turn = RED;\n total_moves = 0;\n int[][] clear_board = new int[7][6];\n for (int i = 0; i < clear_board.length; i++)\n current_board[i] = clear_board[i].clone();\n }",
"private void resetBoard() {\r\n\t\tboard.removeAll();\r\n\t\tboard.revalidate();\r\n\t\tboard.repaint();\r\n\t\tboard.setBackground(Color.WHITE);\r\n\r\n\t\t// Reset filled\r\n\t\tfilled = new boolean[length][length];\r\n\t\tfor (int x = 0; x < length; x++) {\r\n\t\t\tfor (int y = 0; y < length; y++) {\r\n\t\t\t\tfilled[x][y] = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tupdateBoard();\r\n\t}",
"public void resetBoard() {\n piece = 1;\n b = new Board(9);\n board = b.getBoard();\n\n board2d = new int[3][3];\n makeBoard2d();\n\n }",
"public void setPiece(Piece newPiece) {\n this.piece = newPiece;\n }",
"public void processInput() {\n \ttempBoard[inputRowIndex-1][inputColIndex-1]=piece; //set the chosen cell to the piece of the current player\n \tGame.permBoard.setBoard(tempBoard); //set this tempBoard with the new turn on it to the permBoard\n \t\n \t//TODO implement quit\n }",
"public static void blankBoard() {\r\n\t\tfor (int i = 0; i < Spaces.length; i++) {\r\n\t\t\tSpaces[i] = new Piece();\r\n\t\t}\r\n\t}",
"Board() {\n clear();\n }",
"Board() {\n clear();\n }",
"void makeMove(int row, int col, int nextRow, int nextCol) {\r\n int temp = checks[row][col];\r\n checks[nextRow][nextCol] = temp;\r\n checks[row][col] = 0;\r\n if (Math.abs(nextRow - row) == 2){\r\n removePiece(nextRow, nextCol,row, col);\r\n }\r\n checkKing(nextRow,nextCol);\r\n }",
"public void movePiece(Location a, Location b)\n {\n Square s1 = getSquare(a);\n Square s2 = getSquare(b);\n Piece p = s1.getPiece();\n if (p==null)\n return;\n int moveType = canMoveTo(p,b);\n boolean taking = getPiece(b)!=null;\n boolean fiftyMoveBreak = getPiece(b)!=null||p.getType()==Type.PAWN;\n s2.setPiece(s1.removePiece());\n p.setHasMoved(true);\n if (p.getType()==Type.PAWN)\n {\n if (mainBoard&&((p.white()&&getLocation(p).getRow()==0)\n || !p.white()&&getLocation(p).getRow()==7))\n promotePawn(p);\n else if (moveType==EN_PASSANT)\n {\n int row = a.getRow();\n int col = b.getCol();\n removePiece(new Location(row,col));\n taking = true;\n }\n }\n else if (moveType==KINGSIDE_CASTLING||moveType==QUEENSIDE_CASTLING)\n {\n Location rookLoc;\n Location rookDest;\n if (moveType==KINGSIDE_CASTLING)\n {\n rookLoc = b.farther(Direction.EAST);\n rookDest = b.farther(Direction.WEST);\n }\n else\n {\n rookLoc = new Location(b.getRow(),b.getCol()-2);\n rookDest = b.farther(Direction.EAST);\n }\n //movePiece(getLocation(rook),rookDest);\n getSquare(rookDest).setPiece(removePiece(rookLoc)); //moves the rook\n }\n if (mainBoard)\n {\n turn++;\n if (fiftyMoveBreak)\n fiftyMove= 0;\n else fiftyMove++;\n }\n for (Piece piece: getPieces())\n piece.setHasJustMoved(false);\n p.setHasJustMoved(true);\n if (mainBoard)\n {\n positions.add(toString());\n \n //this is all for the notation on the side\n notateMove(p,b,moveType,taking);\n /*JTable not = frame.getNotation();\n DefaultTableModel d = (DefaultTableModel)not.getModel();\n String notation;\n PieceColor color = p.getColor();\n if (color==PieceColor.WHITE)\n notation = turn/2+1+\". \"; //the turn number first, on the left\n else notation = \"\";\n if (moveType==QUEENSIDE_CASTLING)\n notation += \"0-0-0\";\n else if (moveType==KINGSIDE_CASTLING)\n notation += \"0-0\";\n else //normal move\n {\n if (p.getType()!=Type.PAWN)\n notation+=p.getType().toNotation(); //the type of piece (K,N,R,etc)\n if (taking)\n notation+=\"x\"; //this is if the move involves taking\n notation+=Location.LocToNot(b);\n }\n if (checkmate(colorGoing())) //notates # for checkmate\n notation+=\"#\";\n else if (inCheck(colorGoing())) //notates + for check\n notation+=\"+\";\n \n if (color==PieceColor.WHITE)\n d.addRow(new Object[]{notation,\"\"});\n else \n d.setValueAt(notation, (turn-1)/2, 1);*/\n }\n }",
"void updateBoard() {\r\n\t\tfor (int x = 0; x < length; x++) {\r\n\t\t\tfor (int y = 0; y < length; y++) {\r\n\t\t\t\tif (filled[x][y]) {\r\n\t\t\t\t\t// Draw filled square\r\n\t\t\t\t\tdouble rand = Math.random();\r\n\t\t\t\t\tColor use = new Color(0, 0, 0);\r\n\t\t\t\t\tif (rand < .25) {\r\n\t\t\t\t\t\tuse = a;\r\n\t\t\t\t\t} else if (rand < .50) {\r\n\t\t\t\t\t\tuse = b;\r\n\t\t\t\t\t} else if (rand < .75) {\r\n\t\t\t\t\t\tuse = c;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tuse = d;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tJSquare element = new JSquare(this.getWidth() / length, this.board.getHeight() / length, use, true);\r\n\t\t\t\t\telement.addMouseListener(this);\r\n\t\t\t\t\tboard.add(element);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Draw empty square\r\n\t\t\t\t\tJSquare element = new JSquare(this.getWidth() / length, this.board.getHeight() / length,\r\n\t\t\t\t\t\t\tnew Color(192, 192, 192), false);\r\n\t\t\t\t\telement.addMouseListener(this);\r\n\t\t\t\t\tboard.add(element);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\t\tpublic void update(Graphics g) {\n\t\t\t\n\t\t\tImage pieceImg = null;\n\t\t\tif (board.square(row,column).isOccupied()) {\n\t\t\t\tint index = board.square(row,column).piece().imageIndex();\n\t\t\t\tpieceImg = pieceImages[index];\n\t\t\t}\n\t\t\tif (lightSquare)\n\t\t\t\t{ setIcon(new ImageIcon(combine(pieceImg, lightSquareImg))); }\n\t\t\telse\n\t\t\t\t{ setIcon(new ImageIcon(combine(pieceImg, darkSquareImg))); }\n\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(!chesses.isEmpty()) {\r\n\t\t\t\t\tChess to_remove = chesses.getLast();\r\n\t\t\t\t\tPoint to_delete = to_remove.getCor();\r\n\t\t\t\t\tisChess[to_delete.x][to_delete.y] = 0;\r\n\t\t\t\t\tchesses.remove(chesses.size() - 1);\r\n\t\t\t\t\tturn = 1 - turn;\t\r\n\t\t\t\t\trepaint();\r\n\t\t\t\t}\r\n\t\t\t}",
"public void updateBoard() {\r\n\t\tfor(int i = 0, k = 0; i < board.getWidth(); i+=3) {\r\n\t\t\tfor(int j = 0; j < board.getHeight(); j+=3) {\r\n\t\t\t\t//Check that there are pieces to display\r\n\t\t\t\tif(k < bag.size()) {\r\n\t\t\t\t\tboard.setTile(bag.get(k), i, j);\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tboard.fillSpace(GridSquare.Type.EMPTY, i, j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void killPiece(Piece piece) {\r\n\t\tif (piece.getPlayer().color == Color.BLACK) {\r\n\t\t\tblack.removeElement(piece);\r\n\t\t}\r\n\t\telse {\r\n\t\t\twhite.removeElement(piece);\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override \r\n public void paintComponent(final Graphics theGraphics) { \r\n super.paintComponent(theGraphics); \r\n final Graphics2D g2d = (Graphics2D) theGraphics; \r\n \r\n final int width = myBoard.getWidth(); \r\n final int height = myBoard.getHeight(); \r\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, \r\n RenderingHints.VALUE_ANTIALIAS_ON); \r\n \r\n // draw purple game grid\r\n g2d.setColor(PURPLE); \r\n for (int i = 0; i < Math.max(width, height); i++) { \r\n final int lines = i * GRID_SIZING; \r\n \r\n //draws horizontal lines\r\n g2d.draw(new Line2D.Double(lines, ZERO, lines, height * GRID_SIZING));\r\n \r\n //draws vertical lines\r\n g2d.draw(new Line2D.Double(ZERO, lines, width * GRID_SIZING, lines));\r\n \r\n if (myBoard.isGameOver()) { \r\n myGameOver = true; \r\n myGamePaused = true; \r\n }\r\n } \r\n \r\n //update blocks\r\n drawCurrentPiece(g2d, height, width);\r\n drawFrozenBlocks(g2d, height, width);\r\n handlePausedGame(g2d);\r\n }",
"public void applyMove(Move move) {\r\n Piece piece = grid[move.getStart()];\r\n piece.setPosition(move.getEnd());\r\n\r\n grid[move.getStart()] = null;\r\n grid[move.getEnd()] = piece;\r\n if (move.getTakes() != null) {\r\n grid[move.getTakes().getPosition()] = null;\r\n pieces.get(move.getTakes().getPlayerColor()).remove(move.getTakes());\r\n }\r\n\r\n moveHistory.add(move);\r\n }",
"public void addNewPiece() {\n\t\t// creates a range from 1-7 to choose from each of the pieces\n\t\tint pieceChoice = (int) (Math.random()*7) + 1; \n\t\tif(pieceChoice == 1) {\n\t\t\tcurrentPiece = new TetrisI();\n\t\t}\n\t\telse if(pieceChoice == 2) {\n\t\t\tcurrentPiece = new TetrisJ();\n\t\t}\n\t\telse if(pieceChoice == 3) {\n\t\t\tcurrentPiece = new TetrisL();\n\t\t}\n\t\telse if(pieceChoice == 4) {\n\t\t\tcurrentPiece = new TetrisO();\n\t\t}\n\t\telse if(pieceChoice == 5) {\n\t\t\tcurrentPiece = new TetrisS();\n\t\t}\n\t\telse if(pieceChoice == 6) {\n\t\t\tcurrentPiece = new TetrisT();\n\t\t}\n\t\telse {\n\t\t\tcurrentPiece = new TetrisZ();\n\t\t}\n\t\tcurrentPiece.pieceRotation = 0;\n\t\tinitCurrentGP();\n\t}",
"public void play() {\r\n _board = new Board();\r\n _command = new LoaGUI(\"Lines of Action\", this);\r\n\r\n while (true) {\r\n int playerInd = _board.turn().ordinal();\r\n if (_playing) {\r\n if (_board.gameOver()) {\r\n announceWinner();\r\n _playing = false;\r\n continue;\r\n }\r\n Move next = _players[playerInd].makeMove();\r\n System.out.println(\"The move is get\");\r\n if (next != null) {\r\n assert _board.isLegal(next);\r\n _board.makeMove(next);\r\n _command.repaint();\r\n System.out.println(\"Repaint\");\r\n if (_board.gameOver()) {\r\n announceWinner();\r\n _playing = false;\r\n }\r\n }\r\n } else {\r\n try {\r\n Thread.sleep(magic2);\r\n } catch (InterruptedException ex) {\r\n return;\r\n }\r\n }\r\n }\r\n }",
"private void board() {\r\n\t\tfor (int n = 0; n < ROW; n++) {\r\n\t\t\tfor (int m = 0; m < COL; m++) {\r\n\t\t\t\tboard[n][m] = 'X';\r\n\t\t\t}\r\n\t\t}\r\n\t\tturnRemaining = 42;\r\n\t}",
"public void removeAllPieces()\n\t{\n\t\t/* iterate over the rows and columns */\n\t\tfor (int i = 0; i < m_rows; i++) {\n\t\t\tfor (int j = 0; j < m_cols; j++) {\n\t\t\t\tremovePiece(i, j);\n\t\t\t}\n\t\t}\n\t}",
"private void overwritePosition(int oldRow, int oldCol, int newRow, int newCol){\n gameBoard[newRow][newCol] = gameBoard[oldRow][oldCol];\n gameBoard[oldRow][oldCol] = new EmptyPiece();\n }",
"private void resetTurn(){\r\n lastRow = 0;\r\n lastCol = 0;\r\n selected = false;\r\n nextMove = new int[8][8];\r\n moveList = new Stack<>();\r\n repaint();\r\n System.out.println(toString());\r\n }",
"public void eatPiece(Point pos){\r\n // Update Board Numbers\r\n if(isRed(pos)){\r\n if(isQueen(pos))\r\n model.setRedQueenCount(-1);\r\n else \r\n model.setRedCount(-1);\r\n } else {\r\n if(isQueen(pos))\r\n model.setBlackQueenCount(-1);\r\n else\r\n model.setBlackCount(-1);\r\n }\r\n // Update Rival Piece Number\r\n model.getRivalPlayer().setPieceNumber(-1);\r\n // Update Current Player Eated Pieces\r\n model.getCurrentPlayer().setPieceEated(+1);\r\n // Make Eat\r\n model.setValueAt(pos,Cells.BLACK_FLOOR);\r\n }",
"private void oneLineDown() {\n if (!tryMove(curPiece, curX, curY - 1)) {\n \n pieceDropped();\n }\n }",
"public void reset() {\n // White Pieces\n placePiece(new Rook(Player.White), new Position(\"a1\"));\n placePiece(new Knight(Player.White), new Position(\"b1\"));\n placePiece(new Bishop(Player.White), new Position(\"c1\"));\n placePiece(new Queen(Player.White), new Position(\"d1\"));\n placePiece(new King(Player.White), new Position(\"e1\"));\n placePiece(new Bishop(Player.White), new Position(\"f1\"));\n placePiece(new Knight(Player.White), new Position(\"g1\"));\n placePiece(new Rook(Player.White), new Position(\"h1\"));\n placePiece(new Pawn(Player.White), new Position(\"a2\"));\n placePiece(new Pawn(Player.White), new Position(\"b2\"));\n placePiece(new Pawn(Player.White), new Position(\"c2\"));\n placePiece(new Pawn(Player.White), new Position(\"d2\"));\n placePiece(new Pawn(Player.White), new Position(\"e2\"));\n placePiece(new Pawn(Player.White), new Position(\"f2\"));\n placePiece(new Pawn(Player.White), new Position(\"g2\"));\n placePiece(new Pawn(Player.White), new Position(\"h2\"));\n\n // Black Pieces\n placePiece(new Rook(Player.Black), new Position(\"a8\"));\n placePiece(new Knight(Player.Black), new Position(\"b8\"));\n placePiece(new Bishop(Player.Black), new Position(\"c8\"));\n placePiece(new Queen(Player.Black), new Position(\"d8\"));\n placePiece(new King(Player.Black), new Position(\"e8\"));\n placePiece(new Bishop(Player.Black), new Position(\"f8\"));\n placePiece(new Knight(Player.Black), new Position(\"g8\"));\n placePiece(new Rook(Player.Black), new Position(\"h8\"));\n placePiece(new Pawn(Player.Black), new Position(\"a7\"));\n placePiece(new Pawn(Player.Black), new Position(\"b7\"));\n placePiece(new Pawn(Player.Black), new Position(\"c7\"));\n placePiece(new Pawn(Player.Black), new Position(\"d7\"));\n placePiece(new Pawn(Player.Black), new Position(\"e7\"));\n placePiece(new Pawn(Player.Black), new Position(\"f7\"));\n placePiece(new Pawn(Player.Black), new Position(\"g7\"));\n placePiece(new Pawn(Player.Black), new Position(\"h7\"));\n }",
"public TetrisPiece getCurrentPiece() {\n\t\treturn currentPiece;\n\t}",
"private boolean createLine() {\n boolean lineFinished = false;\n\n //tempPiece = gridPieces.get(getGridPiece(touchPos));\n lineVector = touchPos;\n\n\n if (origin.row == orOpActive.row) {\n if (Math.abs(lineVector.x - origin.rectangle.x) > Math.abs(orOpActive.rectangle.x - origin.rectangle.x)) {\n tempPiece = orOpActive;\n } else {\n lineVector.y = origin.rectangle.y;\n tempPiece = game.gridPieces[game.getGridPiece(lineVector)];\n }\n // Right\n if (origin.column < tempPiece.column) {\n for (int i = origin.column + 1; i <= tempPiece.column; i++) {\n game.gridMap.get(origin.row).get(i).setState(game.STATE_TEMP);\n }\n // Left\n } else {\n for (int i = tempPiece.column; i < origin.column; i++) {\n game.gridMap.get(origin.row).get(i).setState(game.STATE_TEMP);\n }\n }\n } else {\n if (Math.abs(lineVector.y - origin.rectangle.y) > Math.abs(orOpActive.rectangle.y - origin.rectangle.y)) {\n tempPiece = orOpActive;\n } else {\n lineVector.x = origin.rectangle.x;\n tempPiece = game.gridPieces[game.getGridPiece(lineVector)];\n }\n // Up\n if (origin.row < tempPiece.row) {\n for (int i = origin.row + 1; i <= tempPiece.row; i++) {\n game.gridMap.get(i).get(origin.column).setState(game.STATE_TEMP);\n }\n // Down\n } else {\n for (int i = tempPiece.row; i < origin.row; i++) {\n game.gridMap.get(i).get(origin.column).setState(game.STATE_TEMP);\n }\n }\n }\n\n if (getDirectNeighbors(orOpActive).contains(game.gridPieces[game.getGridPiece(lineVector)])) {\n lineFinished = true;\n }\n\n if(checkFingerFling()) {\n lineFinished = true;\n }\n\n return lineFinished;\n }",
"public void resetBoard() {\n //sets current board to a new board\n currentBoard = new Board(7, 6);\n\n //sets all text fields back to white\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n for (int v = 0; v < currentBoard.getSizeY(); v++) {\n squares[i][v].setBackground(Color.white);\n }\n }\n //sets turn to true (first player)\n turn = true;\n }",
"void movePiece() {\n\n }",
"private void initNextPiece() {\n currentPiece = nextPieces.get(0);\n if (!currentPiece.initPosition(grid) && gameOver == false) {\n musicsReader.destroyAllPlayers();\n musicsReader.play(\"gameover.mp3\", 1);\n gameOver = true;\n }\n nextPieces.remove(0);\n int r = (int) (Math.random() * suppliers.size());\n nextPieces.add((Piece) suppliers.get(r).get());\n sincePieceDown = null;\n sinceLastMove = null;\n }",
"public void setBeginningBoard() {\n clearBooleanBoard();\n\n figBoard[0][0] = new Rook(\"white\", 00, white[0]);\n figBoard[0][1] = new Knight(\"white\", 01, white[1]);\n figBoard[0][2] = new Bishop(\"white\", 02, white[2]);\n figBoard[0][4] = new King(\"white\", 04, white[3]);\n figBoard[0][3] = new Queen(\"white\", 03, white[4]);\n figBoard[0][5] = new Bishop(\"white\", 05, white[2]);\n figBoard[0][6] = new Knight(\"white\", 06, white[1]);\n figBoard[0][7] = new Rook(\"white\", 07, white[0]);\n\n for (int i = 0; i < gA.getBoard().length; i++) {\n booleanBoard[0][i] = true;\n gA.getBoard()[0][i].setRotation(180);\n }\n\n for (int i = 0; i < gA.getBoard().length; i++) {\n booleanBoard[1][i] = true;\n gA.getBoard()[1][i].setRotation(180);\n figBoard[1][i] = new Pawn(\"white\", 10 + i, white[8]);\n }\n\n figBoard[7][0] = new Rook(\"black\", 70, black[0]);\n figBoard[7][1] = new Knight(\"black\", 71, black[1]);\n figBoard[7][2] = new Bishop(\"black\", 72, black[2]);\n figBoard[7][4] = new King(\"black\", 74, black[3]);\n figBoard[7][3] = new Queen(\"black\", 73, black[4]);\n figBoard[7][5] = new Bishop(\"black\", 75, black[2]);\n figBoard[7][6] = new Knight(\"black\", 76, black[1]);\n figBoard[7][7] = new Rook(\"black\", 77, black[0]);\n\n for (int i = 0; i < gA.getBoard().length; i++) {\n booleanBoard[7][i] = true;\n gA.getBoard()[7][i].setRotation(0);\n }\n\n for (int i = 0; i < gA.getBoard().length; i++) {\n booleanBoard[6][i] = true;\n gA.getBoard()[6][i].setRotation(0);\n figBoard[6][i] = new Pawn(\"black\", 60 + i, black[8]);\n }\n\n clearFallenFigures();\n clearBoardBackground();\n clearStringBoard();\n showBoard(); //shows the figures\n showScore();\n setBoardClickable();\n\n if (beginner % 2 == 0)\n this.turn = 0;\n else this.turn = 1;\n\n beginner++;\n\n numberOfBlackFallen = 0;\n numberOfWhiteFallen = 0;\n fallenFiguresWhite = new ArrayList<Figure>();\n fallenFiguresBlack = new ArrayList<Figure>();\n\n showCheck();\n showTurn();\n }",
"public void initializeBoard() {\n\n\t\t/*\n\t\t * How the array coordinates align with the actual chess board\n\t\t * (row,col) \n\t\t * (7,0) ... ... ... \n\t\t * (7,7) ... ... ... \n\t\t * ... ... ... \n\t\t * (2,0) ...\n\t\t * (1,0) ... \n\t\t * (0,0) ... ... ... (0,7)\n\t\t */\n\n\t\tboolean hasMoved = false;\n\t\tboolean white = true;\n\t\tboolean black = false;\n\n\t\t// Set white piece row\n\t\tboard[0][0] = new Piece('r', white, hasMoved, 0, 0, PieceArray.A_rookId);\n\t\tboard[0][1] = new Piece('n', white, hasMoved, 0, 1, PieceArray.B_knightId);\n\t\tboard[0][2] = new Piece('b', white, hasMoved, 0, 2, PieceArray.C_bishopId);\n\t\tboard[0][3] = new Piece('q', white, hasMoved, 0, 3, PieceArray.D_queenId);\n\t\tboard[0][4] = new Piece('k', white, hasMoved, 0, 4, PieceArray.E_kingId);\n\t\tboard[0][5] = new Piece('b', white, hasMoved, 0, 5, PieceArray.F_bishopId);\n\t\tboard[0][6] = new Piece('n', white, hasMoved, 0, 6, PieceArray.G_knightId);\n\t\tboard[0][7] = new Piece('r', white, hasMoved, 0, 7, PieceArray.H_rookId);\n\n\t\t// Set white pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[1][i] = new Piece('p', white, hasMoved, 1, i, i + 8);\n\t\t}\n\n\t\t// Set empty rows\n\t\tfor (int row = 2; row < 6; row++)\n\t\t\tfor (int col = 0; col < 8; col++)\n\t\t\t\tboard[row][col] = null;\n\n\t\t// Set black pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[6][i] = new Piece('p', black, hasMoved, 6, i, i+8);\n\t\t}\n\n\t\t// Set black piece row\n\t\tboard[7][0] = new Piece('r', black, hasMoved, 7, 0, PieceArray.A_rookId);\n\t\tboard[7][1] = new Piece('n', black, hasMoved, 7, 1, PieceArray.B_knightId);\n\t\tboard[7][2] = new Piece('b', black, hasMoved, 7, 2, PieceArray.C_bishopId);\n\t\tboard[7][3] = new Piece('q', black, hasMoved, 7, 3, PieceArray.D_queenId);\n\t\tboard[7][4] = new Piece('k', black, hasMoved, 7, 4, PieceArray.E_kingId);\n\t\tboard[7][5] = new Piece('b', black, hasMoved, 7, 5, PieceArray.F_bishopId);\n\t\tboard[7][6] = new Piece('n', black, hasMoved, 7, 6, PieceArray.G_knightId);\n\t\tboard[7][7] = new Piece('r', black, hasMoved, 7, 7, PieceArray.H_rookId);\n\t}",
"public Tile[][] updateBoard(int startRow, int startColumn, int endRow, int endColumn, Tile[][] board) {\n\t\t/*String[] fileRanks = input.split(\" \");\n\t\tint startRow= 8 -Integer.parseInt(fileRanks[0].substring(1));\n\t\tint startColumn = (fileRanks[0].charAt(0)) -'a';\n\t\tint endRow = 8-Integer.parseInt(fileRanks[1].substring(1));\n\t\tint endColumn = (fileRanks[1].charAt(0))-'a'; */\n\n\t\tboard[endRow][endColumn].setOccupyingPiece(null);\n\t\tboard[endRow][endColumn].setOccupyingPiece(board[startRow][startColumn].getOccupyingPiece());\n\t\tboard[startRow][startColumn].setOccupyingPiece(null);\n\n\t\treturn board;\n\t}",
"protected void drawPossibleMoves(){\n if (selectedPiece == null) return;\n Pair<Integer,Integer> coord = getJButtonCoord(selectedPiece);\n int startRow = coord.getKey();\n int startCol = coord.getValue();\n for(int row = 0;row < ROWS;row ++){\n for(int col = 0; col < COLS ;col++){\n if (board.canMove(startRow,startCol,row,col)){\n buttonGrid[row][col].setBackground(Color.GREEN);\n }\n }\n }\n\n\n }"
] | [
"0.8124214",
"0.71547824",
"0.6876891",
"0.67810035",
"0.6722012",
"0.67218494",
"0.6715662",
"0.65649027",
"0.6536268",
"0.6521349",
"0.6515366",
"0.64850533",
"0.64589477",
"0.64452416",
"0.63960195",
"0.6393166",
"0.6387404",
"0.63775814",
"0.6366717",
"0.6366364",
"0.63634205",
"0.63383484",
"0.63213414",
"0.6317779",
"0.63156074",
"0.630874",
"0.6231728",
"0.6229534",
"0.6226147",
"0.6224408",
"0.62117064",
"0.6211132",
"0.6210591",
"0.6198458",
"0.6197212",
"0.61740786",
"0.6155684",
"0.61226165",
"0.60962653",
"0.607997",
"0.60760975",
"0.6076026",
"0.6057322",
"0.60571843",
"0.6056729",
"0.60486126",
"0.60468626",
"0.6046125",
"0.6039708",
"0.6039164",
"0.6037196",
"0.60349214",
"0.6032337",
"0.6025718",
"0.60094476",
"0.6005171",
"0.5997356",
"0.599659",
"0.5992576",
"0.59925246",
"0.59888774",
"0.5986574",
"0.59709674",
"0.5967963",
"0.596693",
"0.59626096",
"0.595854",
"0.5954959",
"0.59467304",
"0.5939369",
"0.59389496",
"0.5938646",
"0.5938646",
"0.593829",
"0.59309155",
"0.5929552",
"0.5920066",
"0.59165084",
"0.59138834",
"0.5913307",
"0.5912361",
"0.59116083",
"0.59091693",
"0.5901795",
"0.5900102",
"0.589416",
"0.5891165",
"0.58880013",
"0.58866656",
"0.58646446",
"0.58644676",
"0.5861433",
"0.58588517",
"0.58574754",
"0.5856031",
"0.58482975",
"0.5842989",
"0.5837026",
"0.58363247",
"0.5831668"
] | 0.66745424 | 7 |
moves currentPiece down returns true if piece was able to move down | public boolean moveDown() {
// x coordinate of current piece's northwest corner, with change
int gridRow = currentPieceGridPosition[0] + 1;
// y coordinate of current piece's northwest corner
int gridCol = currentPieceGridPosition[1];
// check to see if safe
if(validMove(currentPiece, currentPiece.pieceRotation, gridRow, gridCol)) {
// determined safe to change
currentPieceGridPosition[0]++;
return true;
}
// piece cannot go down any further
else {
landPiece();
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void oneLineDown() {\n if (!tryMove(curPiece, curX, curY - 1)) {\n \n pieceDropped();\n }\n }",
"public boolean moveDown() \r\n\t{\r\n\t\tboolean moved = false;\r\n\t\tif ( maze [currentRow] [currentCol].isOpenDown() )\r\n\t\t{\r\n\t\t\tmaze [currentRow] [currentCol].removeWalker(Direction.DOWN);\r\n\t\t\tif ( currentRow+1 >= size || maze [currentRow+1] [currentCol].isOpenUp() )\r\n\t\t\t{\r\n\t\t\t\tcurrentRow++;\r\n\t\t\t\tmoved = true;\r\n\t\t\t}\r\n\t\t\tif ( currentRow < size )\r\n\t\t\t\tmaze [currentRow] [currentCol].InsertWalker();\r\n\t\t}\r\n\t\tSystem.out.println( \"Move Down: \" + moved );\r\n\t\treturn moved;\r\n\t\t\r\n\t}",
"public synchronized void moveDown(){\n if (!this.isAtBottom()){\n for (int j = 1; j < 25; j++){\n for (int i = 1; i < 13; i++){\n if (this.movable[i][j]){\n this.map[i][j - 1] = this.map[i][j];\n this.movable[i][j - 1] = this.movable[i][j];\n this.colors[i][j - 1] = this.colors[i][j];\n\n this.map[i][j] = false;\n this.movable[i][j] = false;\n this.colors[i][j] = null;\n\n }\n }\n }\n }\n this.piecePositionY--;\n repaint();\n }",
"public boolean moveDown()\n {\n\t// Une mise à jour de l'état d'une case C a été effectuée (Oui/Non)\n boolean update;\n\t// Au moins une action a pu être effectuée (Oui/Non)\n boolean action = false;\n \n // Faire {...} tant que la grille a subit une modification lors du tour précédent\n\tdo\n\t{\n // La grille n'a pas subit de modification lors de ce tour\n update = false;\n\t\t\n // Passage en revue des ordonnées (de bas en haut pour un movement vers le bas)\n for (int y=cases.length-1; y>0; y--)\n {\n // Passage en revue des abscisses (ordre indifférent pour un mouvement vertical)\n for (int x=0; x<cases[y].length; x++)\n\t\t{\n // Une fusion a pu être effectuée\n boolean merge;\n // Un mouvement a pu être effectué\n boolean move;\n \n // Faire {...} tant que la case a subit une modification lors du tour précédent\n do\n {\n // Appel de la méthode permettant de déplacer la case précédente vers la case actuelle (fusion)\n merge = merge(cases[y-1][x],cases[y][x]);\n\t\t\t// Appel de la méthode permettant de déplacer la case précédente vers la case actuelle (vide)\n move = move(cases[y-1][x],cases[y][x]); \n\t\t\t// Mise à jour de l'état du booléen de modification (soit il était déjà à vrai et le reste, soit il passe à vrai car on a pu effectuer une modification)\n update = (update || merge || move);\n \n // Si on a pu effectuer une modification, alors on précise via le booléen d'action\n if(!action && update)\n {\n action = update; \n }\n //} while (update);\n } while (merge || move);\n\t\t}\n }\n\t} while (update);\n \n return action;\n \n }",
"private boolean canMoveDown()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = grid.length-2; row >=0; row-- ) {\n // looks at tile directly below the current tile\n int compare = row + 1;\n if ( grid[row][column] != 0 ) {\n if ( grid[compare][column] == 0 || grid[row][column] ==\n grid[compare][column] ) {\n return true;\n }\n }\n }\n } \n return false;\n }",
"private boolean canMove(Point piece){\r\n // direction -1: red pieces +1: black pieces\r\n int dir = isRed(piece)? -1:+1;\r\n // normal movement\r\n Point left = new Point(piece.getFirst() + dir, piece.getSecond() - 1);\r\n Point right = new Point(piece.getFirst() + dir, piece.getSecond() + 1);\r\n // check for normal movements\r\n if(isValidPosition(left) && isEmpty(left)) return true;\r\n if(isValidPosition(right) && isEmpty(right)) return true;\r\n // if is a queen\r\n if(isQueen(piece)){\r\n // compute queen move points (invert direction)\r\n Point leftQ = new Point(piece.getFirst() - dir, piece.getSecond() - 1);\r\n Point rightQ = new Point(piece.getFirst() - dir, piece.getSecond() + 1);\r\n // check for down movements\r\n if(isValidPosition(leftQ) && isEmpty(leftQ)) return true;\r\n if(isValidPosition(rightQ) && isEmpty(rightQ)) return true;\r\n }\r\n return false;\r\n }",
"public boolean moveDown() {\n if (position.isLinked(position.getSouth())) {\n position.getGameObjects().remove(this.type);\n position = position.getSouth();\n position.getGameObjects().add(this.type);\n return true;\n }\n return false;\n }",
"@Override\n\tpublic boolean moveDown() {\n\t\tboolean rs = super.moveDown();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t}",
"public boolean isMoveDown() {\n return moveDown;\n }",
"boolean finishBlackMoves(int piece) {\n\t\treturn (piece == 0 && curPlayer == 2);\n\t}",
"public boolean moveDown() throws EatableObjectOnPlaceException {\r\n\t\tif (!treeInBelow() && !mouseBelow()) {\r\n\t\t\tif (!onBottomBorder(positionY)) {\r\n\t\t\t\tpositionY = positionY + 1;\r\n\t\t\t\teatPerformingStep();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn moveUp();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean move(Piece piece, int moved_xgrid, int moved_ygrid, boolean check) {// check stores if it\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// needs to check\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// freezing and rabbits' moving backward\n\t\tif (moved_xgrid >= 0 && moved_xgrid <= 7 && moved_ygrid >= 0 && moved_ygrid <= 7) {//if it is in grid\n\t\t\tif (piece.possibleMoves(moved_xgrid, moved_ygrid,check)) {//check possible moves\n\t\t\t\tif (getPiece(moved_xgrid, moved_ygrid) == null) {\n\t\t\t\t\tif(checkMove(piece, check)) {\n\t\t\t\t\t// move\n\t\t\t\t\tpiece.setX(moved_xgrid);\n\t\t\t\t\tpiece.setY(moved_ygrid);\n\t\t\t\t\tchecktrap();\n\t\t\t\t\trepaint();\t\t\t\t\t\n\t\t\t\t\treturn true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmessage = \"It is freezed\";\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tmessage = \"There is piece on the place\";\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tmessage = \"It is not next to the piece, or rabbit cannot move backward\";\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t} else {\n\t\t\tmessage = \"The selected square is outside the grid\";\n\t\t\treturn false;\n\t\t}\n\t}",
"private void playerMoveDown()\n {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentY(this.getCurrentY() + 1);\n if (this.getCurrentY() < 11) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentY(this.getCurrentY() - 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else {\n this.setCurrentY(this.getCurrentY() - 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n }",
"boolean moveBlack(int piece) {\n\t\treturn ((piece == 2 || piece == 4) && curPlayer == 2);\n\t}",
"private void dropDown() {\n int newY = curY;\n\n while (newY > 0) {\n\n if (!tryMove(curPiece, curX, newY - 1)) {\n \n break;\n }\n \n --newY;\n }\n\n pieceDropped();\n }",
"public FallingPiece moveDown() {\r\n return new FallingPiece(coord.moveDown(), innerPiece);\r\n }",
"@Override\n public boolean move() {\n return this.decrementX();\n }",
"public boolean pull(Piece my_piece, Piece enemy_piece, int moved_xgrid, int moved_ygrid) {\n\t\tif (my_piece.getColor() != enemy_piece.getColor() && my_piece.getStrength() > enemy_piece.getStrength()) {// check\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// color\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// and\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// strength\n\t\t\tif (checkMove(my_piece, true)) {//check freezing\n\t\t\t\tint pulled_xgrid = my_piece.getX();\n\t\t\t\tint pulled_ygrid = my_piece.getY();// store the place that enemy piece should move\n\t\t\t\tif (move(my_piece, moved_xgrid, moved_ygrid, false)) {//try to move my piece\n\t\t\t\t\tmove(enemy_piece, pulled_xgrid, pulled_ygrid, false);//move enemy\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\tmessage = \"My piece couldn't move to the place\";\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tmessage = \"My piece is freezed\";\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\tmessage = \"Piece can only pull weaker enemy piece.\";\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean tryMove(Shape newPiece, int newX, int newY) {\n for (int i = 0; i < 4; ++i) {\n\n int x = newX + newPiece.x(i);\n int y = newY - newPiece.y(i);\n//if a piece reaches the edge it stops\n if (x < 0 || x >= BOARD_WIDTH || y < 0 || y >= BOARD_HEIGHT) {\n return false;\n }\n//if a piece is adjacent to any fallen tetris pieces it stops\n if (shapeAt(x, y) != Tetrominoe.NoShape) {\n return false;\n }\n }\n\n curPiece = newPiece;\n curX = newX;\n curY = newY;\n\n repaint();\n\n return true;\n }",
"public boolean canMoveDownIn(GameBoard b) {\n boolean checker = true;\n\n if(this.topLeftY+this.height==6)//wall\n checker=false;\n\n if(this.topLeftY+this.height<6){//not hitting bottom wall\n for (int i = 0; i < b.getNumGamePieces(); i++) {// go through game pieces\n if(this.topLeftY< b.getGamePieces()[i].topLeftY){//only checking pieces on bottom of this.\n if(this.topLeftY+this.height==b.getGamePieces()[i].topLeftY){//checking if y-axis line up\n if(this.topLeftX>=b.getGamePieces()[i].topLeftX){\n if(b.getGamePieces()[i].topLeftX+ b.getGamePieces()[i].width>this.topLeftX){\n checker=false;//then cant move\n break;\n }\n }\n }\n }\n }\n }return checker;\n\n }",
"private boolean moveContinues(Point piece){\r\n boolean result = canEats(piece);\r\n // if move continues, next move has to start with the same piece\r\n model.setCheckPiece((result)?piece:null);\r\n return result;\r\n }",
"private boolean moveDOWN() {\r\n\t\tint i,j,k;\r\n\t\tboolean flag = false;\r\n\t\t\r\n\t\tfor(i = (rows_size-1) ; i >= 0 ; i--) {\r\n\t\t\tfor( j = (columns_size -1); j >= 0; j--) {\r\n\t\t\t\tif( !isEmpty(i,j) ) {\r\n\t\t\t\t\tfor(k = i; k < rows_size && isEmpty(k+1,j); k++);\r\n\t\t\t\t\tif(k == (rows_size-1)) {\r\n\t\t\t\t\t\t\tif(k != i) {\r\n\t\t\t\t\t\t\tgame[k][j] = new Cell2048(game[i][j]);\r\n\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\tflag = true;\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 {\r\n\t\t\t\t\t\t\tif(game[i][j].isEqual(game[k+1][j]) && game[k+1][j].getFlag() == false) {\r\n\t\t\t\t\t\t\t\tgame[k+1][j].setValue(game[k+1][j].getValue()*2);\r\n\t\t\t\t\t\t\t\tgame[k+1][j].setFlag(true);\r\n\t\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\t\tscore += game[k+1][j].getValue();\r\n\t\t\t\t\t\t\t\t--takenCells;\r\n\t\t\t\t\t\t\t\t++freeCells;\r\n\t\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tif(k != i) {\r\n\t\t\t\t\t\t\t\t\tgame[k][j] = new Cell2048(game[i][j]);\r\n\t\t\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\t\t\tflag = true;\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}\r\n\tFalseFlag();\r\n\treturn flag;\r\n\t}",
"public void down(){\n\t\tmoveX=0;\n\t\tmoveY=1;\n\t}",
"@Override\n public boolean canMovePieceAtPoint(Point point) {\n return (getPiece(point) != null);\n }",
"public boolean isDownMove(int row, int column, Move moveToReturn, Tile[][] gameState) {\n\t\tif (row == (boardSize - 1) || row == (boardSize - 2)) {\t// can't check up with that few\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// spots\n\t\t\treturn false;\n\t\t} else {\n\t\t\tif (gameState[row + 1][column].getColorValue().equals(empty)) {\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\tif (gameState[row + 2][column].getColorValue().equals(empty)) {\n\t\t\t\t\tmoveToReturn.setTileTo(gameState[row + 2][column]);\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"boolean finishRedMoves(int piece) {\n\t\treturn (piece == 0 && curPlayer == 1);\n\t}",
"@Override\n\tpublic boolean move(int col, int row, piece[][] board) {\n\t\treturn false;\n\t}",
"public boolean slideDown() {\n\t\tif (currentRow < ROWS - 1) {\n\t\t\tboard[currentRow][currentCol] = board[currentRow + 1][currentCol];\n\t\t\tcurrentRow++;\n\t\t\tboard[currentRow][currentCol] = '0';\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean isMoveUp() {\n return moveUp;\n }",
"private boolean canMoveUp()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = 1; row < grid.length; row++ ) {\n // looks at tile directly above the current tile\n int compare = row-1;\n if ( grid[row][column] != 0 ) {\n if ( grid[compare][column] == 0 || grid[row][column] ==\n grid[compare][column] ) {\n return true;\n }\n }\n }\n } \n return false;\n }",
"public boolean moveUp()\n {\n\tboolean update;\n\tboolean action = false;\n\t\n\tdo\n\t{\n update = false;\n\t\t\t\n for (int y=0; y<cases.length-1; y++)\n {\n\t\tfor (int x=0; x<cases[y].length; x++)\n {\n boolean merge;\n boolean move;\n\t\t\t\t\t\n do\n {\n\t\t\tmerge = merge(cases[y+1][x],cases[y][x]);\n\t\t\tmove = move(cases[y+1][x],cases[y][x]);\n\t\t\tupdate = (update || merge || move);\n if(!action && update)\n {\n action = update; \n }\n } while (merge || move);\n\t\t}\n }\n } while (update);\n \n return action;\n }",
"private static int downScore(char piece, State state, int row, int col) {\n\t\tif(row != state.getGrid().length-1 && state.getGrid()[row+1][col] == piece) {\n\t\t\treturn NEXT_TO;\n\t\t}\n\t\telse {\n\t\t\treturn ZERO;\n\t\t}\n\t}",
"public void nextPiece() {\n\t\tif (currentPiece != null) {\n\t\t\tfor (Loc l : currentPiece.getLocation()) {\n\t\t\t\tif (!l.isOnBoard()) {\n\t\t\t\t\tendGame();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tcurrentPiece = piecePlacer.nextPiece();\n\n\t\tdropPiece();\n\t\tnextPiecePanel.setNextPiece();\n\t}",
"public boolean moveUpLeft() {\n\t\tif (check(col-1, row-1)) {\n\t\t\tHiVolts.board.squares[row][col] = 0; // set current location to nothing\n\t\t\tcol = col - 1; // get new x\n\t\t\trow = row - 1; // get new y\n\t\t\tHiVolts.board.squares[row][col] = 2; // set new location to avatar\n\t\t\tsuper.moveUpLeft(); // calls move function in piece\n\t\t}\n\t\treturn true;\n\t}",
"public MoveResult canMovePiece(Alignment player, Coordinate from, Coordinate to);",
"public void moveDown()\n\t{\n\t\tthis.grid.moveDown();\n\t}",
"private boolean movePiece(Tile fromTile) {\r\n\t\tgetBoard().setToTile(tile);\r\n\t\tmakeBackup();\r\n\r\n\t\ttile.setPiece(fromTile.getPiece());\r\n\r\n\t\t// League wins the game if the piece carrying the flag returns to its territory\r\n\t\tif (tile.getPiece().getHasEnemyFlag() == true && tile.getPiece().getLEAGUE().toString().toLowerCase()\r\n\t\t\t\t.equals(tile.getTer().territoryName().toLowerCase())) {\r\n\t\t\tGame.getInstance().setGameOver(true);\r\n\t\t}\r\n\r\n\t\t// reset the old position\r\n\t\tfromTile.setPiece(null);\r\n\t\tgetBoard().setFromTile(null);\r\n\r\n\t\t// reset the selection\r\n\t\tgetBoard().setPieceSelected(false);\r\n\r\n\t\t// fromTile = null;\r\n\t\tgetBoard().setToTile(null);\r\n\r\n\t\treturn true;\r\n\t}",
"public boolean canPieceMove(Piece piece, Location targetLocation, Directions direction) throws LocationException, IllegalMoveException {\n\t\t// is tile black location\n\t\tTile targetTile=null;\n\n\t\ttargetTile = getTileInLocation(targetLocation);\n\t\tif (targetTile.getColor1()!=PrimaryColor.BLACK) {\n\t\t\tthrow new IllegalMoveException(\"piece can't move to this \" + targetLocation + \", you can move only on black tiles! \");\n\t\t}\n\n\t\t// does tile contain another piece\n\t\tif(targetTile.getPiece() != null) {\n\t\t\tthrow new IllegalMoveException(\"piece can't move to this \" + targetLocation + \", it contains another Piece!\");\n\t\t}\n\t\tif(piece instanceof Soldier) {\n\t\t\tint steps = piece.getLocation().getRelativeNumberOfSteps(targetLocation);\n\t\t\tPiece ediblePiece = ((Soldier) piece).getEdiblePieceByDirection( direction);\n\t\t\t// if its moving in 2s make sure there is a piece we are eating by moving like that\n\t\t\tif(((piece.getColor()==PrimaryColor.WHITE) && (direction == Directions.UP_LEFT || direction == Directions.UP_RIGHT)) \n\t\t\t\t\t|| ((piece.getColor()==PrimaryColor.BLACK) && (direction == Directions.DOWN_LEFT|| direction == Directions.DOWN_RIGHT))){\n\t\t\t\tif(steps==2) {\n\t\t\t\t\t//if no piece to eat\n\t\t\t\t\tif(ediblePiece == null) {\n\t\t\t\t\t\tthrow new IllegalMoveException(\"soldier can't move 2 steps if you are not eating another piece fom rival player\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (steps!=1) {\n\t\t\t\t\tthrow new IllegalMoveException(\"soldier can only move 2 steps if you are eating ,and 1 step if you are not\");\n\t\t\t\t}\n\n\t\t\t}// if it's moving backwards it's because it's eating for second time\n\t\t\telse if(((piece.getColor()==PrimaryColor.BLACK) && (direction == Directions.UP_LEFT || direction == Directions.UP_RIGHT)) \n\t\t\t\t\t|| ((piece.getColor()==PrimaryColor.WHITE) && (direction == Directions.DOWN_LEFT|| direction == Directions.DOWN_RIGHT)) ) {\n\t\t\t\tif(steps !=2) {\n\t\t\t\t\tthrow new IllegalMoveException(\"soldier can't move backwards unless you are moving 2 steps while eating in sequence\");\n\t\t\t\t}//if 2 steps\n\t\t\t\telse {\n\t\t\t\t\tint eatingCntr =piece.getEatingCntr();\n\t\t\t\t\tif (eatingCntr<1) {\n\t\t\t\t\t\tthrow new IllegalMoveException(\"soldier can't move backwards unless you are eating for the second time\");\n\t\t\t\t\t}//if in eating sequence\n\t\t\t\t\telse {\n\t\t\t\t\t\t//if there is nothing to eat while moving in 2\n\t\t\t\t\t\tif(ediblePiece == null) {\n\t\t\t\t\t\t\tthrow new IllegalMoveException(\"soldier can't move 2 steps if you are not eating another piece from rival player\");\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\t//not moving diagonally\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//Queen handling\n\t\telse if (piece instanceof Queen) {\n\n\t\t\tif(!((Queen) piece).isMoveLegalByDirection(targetLocation, direction)) {\n\t\t\t\tthrow new IllegalMoveException(\"Illegal Move!\");\n\t\t\t}\n\t\t\tif(((Queen) piece).isPieceBlockedByDirection(targetLocation, direction)) {\n\t\t\t\tthrow new IllegalMoveException(\"Queen is blocked!\");\n\t\t\t}\n\t\t\tif(((Queen) piece).getPiecesCountByDirection(targetLocation, direction) > 1) {\n\t\t\t\tthrow new IllegalMoveException(\"Failed to eat more than one piece in one move, try to split your move\");\n\t\t\t}\n\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean moveUp() {\n\t\tboolean rs = super.moveUp();\n\t\tif(rs == true){\n\n\t\t}\n\t\treturn rs;\n\t}",
"public void moveDown() {\n \t if(!move.moveDown()) {\n \t\t if(physinteractor(this.getX(),this.getY()+1)) {\n \t\t\t move.moveDown();\n \t\t\t nonphysinteractor(getX(),getY());\n \t\t\t updatemove();\n \t\t }\n }else {\n \tupdatemove();\n \tnonphysinteractor(getX(),getY());\n }\n }",
"private Boolean moveUp() {\n\t\t\tboolean loose = true;\n\n\t\t\tint x = startX;\n\t\t\tint y = startY;\n\n\t\t\tNode newNode = new Node(x, y, Util.getBall(1));\n\n\t\t\twhile (y >= 0 && chart[y][x] == null) {\n\t\t\t\tif (y + 1 < chart.length)\n\t\t\t\t\tchart[y + 1][x] = null;\n\n\t\t\t\tchart[y][x] = newNode;\n\n\t\t\t\tcanvas = holder.lockCanvas();\n\t\t\t\tonDraw(canvas);\n\t\t\t\tpostInvalidate();\n\t\t\t\tholder.unlockCanvasAndPost(canvas);\n\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(50);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tnewNode.setyPos(--y);\n\n\t\t\t\tloose = false;\n\t\t\t}\n\n\t\t\tif (loose)// No Update\n\t\t\t\treturn false;\n\n\t\t\tconnectNewNode(newNode);\n\t\t\treturn true;\n\t\t}",
"public boolean checkDown()\n\t{\n\t\tif(row+1<=22)\n\t\t\treturn true;\n\t\treturn false;\n\t\t\t\n\t}",
"private boolean canMove(String direction) {\n\t\tif (currentPiece.getLocation() == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tfor (Loc loc : currentPiece.getLocation()) {\n\t\t\tLoc nextPoint = nextPoint(loc, direction);\n\t\t\tif (nextPoint == null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// if there's someone else's piece blocking you\n\t\t\tif ((new Loc(nextPoint.row, nextPoint.col).isOnBoard())\n\t\t\t\t\t&& boardTiles[nextPoint.row][nextPoint.col] != backgroundColor && !isMyPiece(nextPoint)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"private boolean slideDown()\n {\n if (blankRow == 0) {\n return false;\n }\n board[blankRow][blankCol] = board[blankRow - 1][blankCol];\n board[blankRow - 1][blankCol] = 0;\n blankRow -= 1;\n return true;\n }",
"public boolean removePiece(Piece piece) {\n\t\tboolean result =false;\n\t\t//remove from list of pieces\n\t\tresult= this.pieces.remove(piece);\n\n\t\t//remove from board tile\n\t\tresult = result && removePieceFromBoardTile(piece);\n\t\treturn result;\n\t}",
"public boolean moveUp() \r\n\t{\r\n\t\tboolean moved = false;\r\n\t\tif ( maze [currentRow] [currentCol].isOpenUp() )\r\n\t\t{\r\n\t\t\tmaze [currentRow] [currentCol].removeWalker(Direction.UP);\r\n\t\t\tif ( currentRow-1 < 0 || maze [currentRow-1] [currentCol].isOpenDown() )\r\n\t\t\t{\r\n\t\t\t\tcurrentRow--;\r\n\t\t\t\tmoved = true;\r\n\t\t\t}\r\n\t\t\tif ( currentRow >= 0 )\r\n\t\t\t\tmaze [currentRow] [currentCol].InsertWalker();\r\n\t\t}\r\n\t\tSystem.out.println( \"Move Up: \" + moved );\r\n\t\treturn moved;\r\n\t}",
"public void moveDown() {\n\t\t\n\t}",
"public boolean slideUp() {\n\t\tif (currentRow > 0) {\n\t\t\tboard[currentRow][currentCol] = board[currentRow - 1][currentCol];\n\t\t\tcurrentRow--;\n\t\t\tboard[currentRow][currentCol] = '0';\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"private boolean canEats(Point piece){\r\n\t// direction -1: red pieces +1: black pieces\r\n int dir = isRed(piece)? -1:+1;\r\n int dest = dir * 2; // eat move destination\r\n // compute movement points\r\n Point left = new Point(piece.getFirst() + dir, piece.getSecond() - 1);\r\n Point left2 = new Point(piece.getFirst()+ dest, piece.getSecond() - 2);\r\n Point right = new Point(piece.getFirst() + dir, piece.getSecond() + 1);\r\n Point right2 = new Point(piece.getFirst() + dest, piece.getSecond() + 2);\r\n // check left eat\r\n if(isValidPosition(left) && isValidPosition(left2)){\r\n if(isRed(piece) && isBlack(left) && isEmpty(left2)) return true;\r\n if(isBlack(piece) && isRed(left) && isEmpty(left2)) return true;\r\n }\r\n // check right eat\r\n if(isValidPosition(right) && isValidPosition(right2)){\r\n if(isRed(piece) && isBlack(right) && isEmpty(right2)) return true;\r\n if(isBlack(piece) && isRed(right) && isEmpty(right2)) return true;\r\n }\r\n // if is a queen\r\n if(isQueen(piece)){\r\n // compute queen move points (invert direction)\r\n Point leftQ = new Point(piece.getFirst() - dir, piece.getSecond() - 1);\r\n Point leftQ2 = new Point(piece.getFirst() - dest, piece.getSecond() - 2);\r\n Point rightQ = new Point(piece.getFirst() - dir, piece.getSecond() + 1);\r\n Point rightQ2 = new Point(piece.getFirst() - dest, piece.getSecond() + 2);\r\n // check left eat\r\n if(isValidPosition(leftQ) && isValidPosition(leftQ2)){\r\n if(isRed(piece) && isBlack(leftQ) && isEmpty(leftQ2)) return true;\r\n if(isBlack(piece) && isRed(leftQ) && isEmpty(leftQ2)) return true;\r\n }\r\n // check right eat\r\n if(isValidPosition(rightQ) && isValidPosition(rightQ2)){\r\n if(isRed(piece) && isBlack(rightQ) && isEmpty(rightQ2)) return true;\r\n if(isBlack(piece) && isRed(rightQ) && isEmpty(rightQ2)) return true;\r\n }\r\n }\r\n return false;\r\n }",
"public boolean moveUp() {\n if (position.isLinked(position.getNorth())) {\n position.getGameObjects().remove(this.type);\n position = position.getNorth();\n position.getGameObjects().add(this.type);\n return true;\n }\n return false;\n }",
"private boolean removePieceFromBoardTile(Piece piece) {\n\n\t\tif(piece == null) return false; \n\t\tLocation pieceLoc = piece.getLocation();\n\n\t\tTile tile=null;\n\t\ttry {\n\t\t\ttile = getTileInLocation(pieceLoc);\n\t\t\ttile.setPiece(null);\n\t\t\tthis.replaceTileInSameTileLocation(tile);\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean checkMove(boolean[][] moves, Piece piece, int i, int j) {\r\n\t\tif (moves[i][j]) {\r\n\t\t\t// Moving piece \r\n\t\t\tthis.board[piece.getY()][piece.getX()] = null;\r\n\t\t\t\r\n\t\t\tPiece savePiece = this.board[i][j]; // Piece at i and j\r\n\t\t\tint saveX = piece.getX();\r\n\t\t\tint saveY = piece.getY();\r\n\t\t\t\r\n\t\t\tthis.board[i][j] = piece;\r\n\t\t\tpiece.setXY(j, i);\r\n\t\t\t\r\n\t\t\tif (savePiece != null) {\r\n\t\t\t\tkillPiece(savePiece);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tboolean check = checkForCheck(piece.getPlayer());\r\n\t\t\t\r\n\t\t\t// return pieces to original states\r\n\t\t\tsetBack(i, j, savePiece, saveX, saveY);\r\n\t\t\tif (!check) {\r\n\t\t\t\t// There is a viable move to get out of check\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"protected void down() {\n move(positionX, positionY + 1);\n orientation = BattleGrid.RIGHT_ANGLE;\n }",
"public boolean down() {\r\n if( row >= MAXROWS-1 ) return false;\r\n ++row;\r\n return true;\r\n }",
"public boolean canEndTurn(){\n\t\treturn moved;\n\n\t}",
"public void moveDown() {\n if (ycoor <= Game.heightOfGameBoard - movingSpeed) {\n ycoor = ycoor + movingSpeed;\n }\n\n }",
"public boolean stepDown() {\n yMaze++;\n printMyPosition();\n return true; // should return true if step was successful\n }",
"public boolean movePiece(Point orig, Point dest){\r\n // Move information\r\n boolean eat = moveEats(orig,dest);\r\n boolean queen = moveMakeQueen(orig,dest); \r\n // Move piece\r\n model.swapValues(orig,dest);\r\n model.getCurrentPlayer().setMovementCount(+1);\r\n // If move eats rivals piece\r\n if(eat)\r\n eatPiece(getPieceToEat(orig,dest));\r\n // If moves make a new queen\r\n if(queen)\r\n toQueen(dest);\r\n // If eat and can eats again from destiny position then move continues\r\n return !queen && (eat && moveContinues(dest));\r\n }",
"public boolean canMoveUpIn(GameBoard b) {\n boolean checker = true;\n\n if(this.topLeftY==0) //wall\n checker = false;\n\n if(this.topLeftY>0){//not hitting top wall\n for (int i = 0; i < b.getNumGamePieces(); i++) {//go through game pieces\n if(b.getGamePieces()[i].topLeftY< this.topLeftY){//only checking pieces on above of this.\n if(b.getGamePieces()[i].topLeftY + b.getGamePieces()[i].height == this.topLeftY){//checking if y-axis line up\n if(this.topLeftX>=b.getGamePieces()[i].topLeftX){\n if(b.getGamePieces()[i].topLeftX+ b.getGamePieces()[i].width>this.topLeftX){//checking if x blocks\n checker=false;//then cant move\n break;\n }\n }\n }\n }\n\n\n }\n }return checker;\n\n }",
"public boolean isAttacking(ChessPiece piece)\n {\n if ((Math.abs(this.getRow() - piece.getRow()) == Math.abs(this.getCol() - piece.getCol())) && (this.getColor() != piece.getColor())) // if self is on same diagonal as chesspiece, this is attack. we use absolute values to determine diagonal\n return true;\n else\n return false; // self is not attacking chesspiece at position l\n }",
"public boolean isWalkable(ChessBoard click, ChessBoard[][] bs) {\n if (click.getChess() == null || click.getChess().isEnemy() != isEnemy()) {\n int betweenX, betweenY;// The coordinate difference between the position of the chessboard to be advanced and the current position\n betweenX = this.getCoorX() - click.getCoorX();\n betweenY = this.getCoorY() - click.getCoorY();\n switch (Math.abs(betweenX)) {\n case 0:// ↑↓↖↗↙↘\n {\n // System.out.println(\"99999999999999999999999999999999999999999999999\");\n if (Math.abs(betweenY) == 1 || Math.abs(betweenY) == 0)\n return true;\n break;\n }\n case 1:// ←→↖↗↙↘\n {\n // System.out.println(\"888888888888888888888888888888888888888888888\");\n if (Math.abs(betweenY) == 1 || Math.abs(betweenY) == 0)\n return true;\n break;\n }\n }\n }\n return false;\n }",
"public void moveDown(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif(animation==ANIMATION.DAMAGED||Game.getPlayer().dying||channelling||charging) return;\n\t\tmoving=true;\n\t\tbuttonReleased=false;\n\t\torientation=ORIENTATION.DOWN;\n\t\tif(animation!=ANIMATION.MOVEDOWN) {\n\t\t\tanimation=ANIMATION.MOVEDOWN;\n\t\t\tif(run!=null) sequence.startSequence(run);\n\t\t}\n\t\tdirection=\"down\";\n\t\tsetNextXY();\n\t\tsetDestination(nextX,nextY);\n\t\tvelY=spd/2;\n\t\tvelX=0;\n\t}",
"private int down(int row, int column, char check, char[][] downBoard, ArrayList<Point> traversedPoints)\n\t{\n\t\tif (row == 18 || traversedPoints.contains(new Point(column, row + 1)))\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\telse if (downBoard[column][row + 1] != ' ' && downBoard[column][row + 1] != check)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn row + 1;\n\t\t}\n\t}",
"public boolean stepUp() {\n yMaze--;\n printMyPosition();\n return true; // should return true if step was successful\n }",
"public void moveDown() {\n\t\tstate.updateFloor(state.getFloor()-1);\n\t}",
"void moveDown();",
"void moveDown();",
"boolean canMove (int newRow, int newColumn, Piece piece) {\n for (int r = 0; r < piece.height; ++r)\n for (int c = 0; c < piece.width; ++c) {\n if (piece.blocks[r][c] == 1 && !board.isEmpty(newRow + r, newColumn + c))\n return false;\n }\n return true;\n }",
"public boolean move(int x, int y, CheckersBoard board) {\n if (whiteTurn == true && team == Constants.TeamId.team1Id) {\n return false;\n }\n if (whiteTurn == false && team == Constants.TeamId.team2Id) {\n return false;\n }\n /**\n * then change the x - y coords of the piece\n * update the UI to remove the highlighted squares then move the piece\n * if chess and shared square you take a piece\n * if checkers you jumped them you take the piece\n * return new x - y components\n *\n * if this is too high up in the tree you can override this implementation or update it\n * to fit specific pieces if its not working for some reason\n */\n if (possible(x, y, gameBoard)) {\n int changex = this.getX()-x;\n int changey = this.getY()-y;\n CheckersPiece temp = gameBoard.boardPositions[getX()][getY()];\n gameBoard.boardPositions[getX()][getY()] = null;\n gameBoard.boardPositions[x][y] = temp;\n if (gameBoard.boardPositions[(this.getX() + x)/2][(this.getY() + y)/2] != null) {\n System.out.println(\"Here\");\n if (gameBoard.boardPositions[(this.getX() + x)/2][(this.getY() + y)/2].team != this.team) {\n gameBoard.boardPositions[(this.getX() + x)/2][(this.getY() + y)/2].imageView.setVisibility(View.GONE);\n gameBoard.boardPositions[(this.getX() + x)/2][(this.getY() + y)/2] = null;\n }\n }\n this.setX(x);\n this.setY(y);/*\n if (Math.abs(changex) == 2) {\n gameBoard.boardPositions[x + (changex/2)][y + (changey/2)] = null;\n if (team == Constants.TeamId.team1Id) {\n board.numPieces1--;\n } else if (team == Constants.TeamId.team2Id) {\n board.numPieces0--;\n }\n }*/\n\n gameBoard.boardPositions[x][y].imageView.setX(142*x);\n gameBoard.boardPositions[x][y].imageView.setY(142*y);\n // flips after move is\n whiteTurn = !whiteTurn;\n gameBoard.startTimer();\n }\n //setUpUI(gameBoard);\n if (getY() == 7 && team == Constants.TeamId.team2Id) {\n board.crown(this);\n }\n if (getY() == 0 && team == Constants.TeamId.team1Id) {\n board.crown(this);\n }\n return possible(x, y, gameBoard);\n }",
"private boolean selectedPieceHasNextMove(Position startingPosition) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean validMove(int xEnd, int yEnd, board b){\n\t\t//try to land one same color piece\n\t\tif(b.occupied(xEnd, yEnd)&&b.getPiece(xEnd, yEnd).getColor()==color){\n\t\t\treturn false;\n\t\t}\n\t\tif(v==0){\n\t\t\tif(!this.guard(xEnd, yEnd, b)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//normal move\n\t\tif((xEnd==x-1&&yEnd==y-1)||(xEnd==x-1&&yEnd==y)||(xEnd==x-1&&yEnd==y+1)||(xEnd==x&&yEnd==y-1)||(xEnd==x&&yEnd==y+1)||(xEnd==x+1&&yEnd==y-1)||(xEnd==x+1&&yEnd==y)||(xEnd==x+1&&yEnd==y+1)){\n\t\t\tif(b.occupied(xEnd, yEnd)){\n\t\t\t\t//set the enpass flage back\n\t\t\t\tb.setFlag(color, 100, 100);\n\t\t\t\tb.recycle(xEnd, yEnd);\n\t\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\t\tb.update();\n\t\t\t\tc=0;\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\t//set the enpass flage back\n\t\t\t\tb.setFlag(color, 100, 100);\n\t\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\t\tb.update();\n\t\t\t\tc=0;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}else if((xEnd==x-2&&yEnd==y)){ //castling\n\t\t\tpiece r = b.getPiece(0, y);\n\t\t\tif(r==null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(r.getC()==0||r.getColor()!=color||r.getType()!= type.ROOK||c==0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor(int i=3;i>0;i--){\n\t\t\t\tif(b.occupied(i, y)){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\tr.setPosition(3,y);\n\t\t\tc=0;\n\t\t\tr.setC(0);\n\t\t\tb.setFlag(color, 100, 100);\n\t\t\tb.update();\n\t\t\treturn true;\n\t\t}else if((xEnd==x+2&&yEnd==y)){\n\t\t\tpiece r = b.getPiece(7, y);\n\t\t\tif(r==null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(r.getC()==0||r.getColor()!=color||r.getType()!= type.ROOK||c==0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor(int i=5;i<=6;i++){\n\t\t\t\tif(b.occupied(i, y)){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\tr.setPosition(5,y);\n\t\t\tc=0;\n\t\t\tr.setC(0);\n\t\t\tb.setFlag(color, 100, 100);\n\t\t\tb.update();\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean slideUp()\n {\n if (blankRow == SIZE - 1) {\n return false;\n }\n board[blankRow][blankCol] = board[blankRow + 1][blankCol];\n board[blankRow + 1][blankCol] = 0;\n blankRow += 1;\n return true;\n }",
"boolean doMove();",
"public boolean move(Point startingP, Point desP, int depth){\n // START CONDITIONS\n //-----------------\n TakStack startStack = stacks[startingP.x][startingP.y];\n TakStack desStack = stacks[desP.x][desP.y];\n\n // are we grabbing a valid number given our board size\n if(depth > SIZE) return false;\n\n // is this move directly up,down,left, or right\n double xchange = Math.pow(startingP.x - desP.x, 2);\n double ychange = Math.pow(startingP.y - desP.y, 2);\n if(ychange > 1 || xchange > 1) return false;\n if(ychange >= 1 && xchange >= 1) return false;\n\n // are there enough pieces to grab\n if(depth > startStack.size()) return false;\n\n // Is the target des empty\n if(!desStack.isEmpty()){\n // Can this piece move ontop of destination piece\n TakPiece startTop = startStack.top();\n TakPiece desTop = desStack.top();\n\n if(desTop.isCapstone()){return false;} // Nothing we can do about this\n\n if(startTop.isCapstone()){\n if(desTop.isWall()){\n desTop.crush();\n }\n } else {\n if(desTop.isWall()){\n return false;\n }\n }\n }\n\n // Is the player grabbing a stack in their control\n if(startStack.top().isWhite() != whiteTurn) return false;\n //---------------\n // END CONDITIONS\n\n // Valid move - start move operation\n // Add onto our position we would like to move to the difference of what we grab from the postion we move from**\n desStack.add(startStack.sub(depth));\n // switch turns only if the player places a stack of depth = 1 (no possible additional moves)\n if (depth == 1) switchPlayer();\n\n turn++;\n return true;\n }",
"protected boolean isPieceOfFurnitureMovable(HomePieceOfFurniture piece) {\n return true;\n }",
"boolean moveRed(int piece) {\n\t\treturn ((piece == 1 || piece == 3) && curPlayer == 1);\n\t}",
"void movePiece(int destX, int destY){\r\n\t\tif(isValid(this.xPos,this.yPos,destX,destY) == true){\r\n\t\t\tthis.xPos = destX;\r\n\t\t\tthis.yPos = destY;\r\n\t\t}\r\n\t}",
"public boolean move(Direction direction) throws InvalidPuzzle {\n\t\tint[] coordinate = this.findNumber(0);\n\t\tif (direction == Direction.Up) {\n\t\t\tif (coordinate[0] == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tint targetedNumber = this.getNumberAt(coordinate[0] - 1, coordinate[1]);\n\t\t\tthis.setNumberAt(coordinate[0] - 1, coordinate[1], 0);\n\t\t\tthis.setNumberAt(coordinate[0], coordinate[1], targetedNumber);\n\t\t}\n\t\telse if (direction == Direction.Down) {\n\t\t\tif (coordinate[0] == 3) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tint targetedNumber = this.getNumberAt(coordinate[0] + 1, coordinate[1]);\n\t\t\tthis.setNumberAt(coordinate[0] + 1, coordinate[1], 0);\n\t\t\tthis.setNumberAt(coordinate[0], coordinate[1], targetedNumber);\n\t\t}\n\t\t\n\t\telse if (direction == Direction.Left) {\n\t\t\tif (coordinate[1] == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tint targetedNumber = this.getNumberAt(coordinate[0], coordinate[1] - 1);\n\t\t\tthis.setNumberAt(coordinate[0], coordinate[1] - 1, 0);\n\t\t\tthis.setNumberAt(coordinate[0], coordinate[1], targetedNumber);\n\t\t}\n\t\t\n\t\telse if (direction == Direction.Right) {\n\t\t\tif (coordinate[1] == 3) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tint targetedNumber = this.getNumberAt(coordinate[0], coordinate[1] + 1);\n\t\t\tthis.setNumberAt(coordinate[0], coordinate[1] + 1, 0);\n\t\t\tthis.setNumberAt(coordinate[0], coordinate[1], targetedNumber);\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean movement(BoardCells[][] chessBoard, Piece targetPiece, int fromX,int fromY,int toX,int toY) {\t\t\r\n\t\t//DEBUG -- System.out.println(\"\"+fromX+fromY+\" \"+toX+toY);\r\n\t\t\r\n\t\tif(fromY == toY){\t\t\t\r\n\t\t\tif(fromX > toX) {\r\n\t\t\t\tfor(int i = fromX-1; i>toX; i--) {\r\n\t\t\t\t\tif(chessBoard[8-fromY][i].getPiece() != null) {\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn false;\t\t\t\t\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t} else if (fromX < toX) {\r\n\t\t\t\tfor(int i = fromX+1; i<toX; i++) {\r\n\t\t\t\t\tif(chessBoard[8-fromY][i].getPiece() != null) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn false;\t\t\t\t\t\t\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(getPieceID().equals(\"bR\")) {\r\n\t\t\t\tfor(int i = 0; i<9 ;i++) {\r\n\t\t\t\t\tfor (int j = 0; j<9; j++){\r\n\t\t\t\t\t\tif(chessBoard[8-i][j].getPiece() != null) {\r\n\t\t\t\t\t\tif(chessBoard[8-i][j].getPiece().getPieceID().equals(\"bKc\")) {\r\n\t\t\t\t\t\t\t//Piece king = chessBoard[8-i][j].getPiece();\t\t\t\t\t\r\n\t\t\t\t\t\t\t//DEBUG -- System.out.println(king.getPieceID()+color+\" \"+king );\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tchessBoard[8-i][j].getPiece().setPieceID(\"bK\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif(getPieceID().equals(\"wR\")) {\r\n\t\t\t\tfor(int i = 0; i<9 ;i++) {\r\n\t\t\t\t\tfor (int j = 0; j<9; j++){\r\n\t\t\t\t\t\tif(chessBoard[8-i][j].getPiece() != null) {\r\n\t\t\t\t\t\tif(chessBoard[8-i][j].getPiece().getPieceID().equals(\"wKc\")) {\r\n\t\t\t\t\t\t\t//Piece king = chessBoard[8-i][j].getPiece();\t\t\t\t\t\r\n\t\t\t\t\t\t\t//DEBUG -- System.out.println(king.getPieceID()+color+\" \"+king );\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tchessBoard[8-i][j].getPiece().setPieceID(\"wK\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\tif(fromX == toX) {\t\t\t\t\r\n\t\t\tif(fromY > toY) {\t\r\n\t\t\t\tfor(int i = fromY-1; i>toY; i--) {\r\n\t\t\t\t\tif(chessBoard[8-i][toX].getPiece() != null) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn false;\t\t\t\t\t\t\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} else if (fromY < toY) {\t\t\t\t\r\n\t\t\t\tfor(int i = fromY+1; i<toY; i++) {\t\t\t\t\t\r\n\t\t\t\t\tif(chessBoard[8-i][toX].getPiece() != null) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn false;\t\t\t\t\t\t\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(getPieceID().equals(\"bR\")) {\r\n\t\t\t\t\tfor(int i = 0; i<9 ;i++) {\r\n\t\t\t\t\t\tfor (int j = 0; j<9; j++){\r\n\t\t\t\t\t\t\tif(chessBoard[8-i][j].getPiece() != null) {\r\n\t\t\t\t\t\t\tif(chessBoard[8-i][j].getPiece().getPieceID().equals(\"bKc\")) {\r\n\t\t\t\t\t\t\t\t//Piece king = chessBoard[8-i][j].getPiece();\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//DEBUG -- System.out.println(king.getPieceID()+color+\" \"+king );\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tchessBoard[8-i][j].getPiece().setPieceID(\"bK\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(getPieceID().equals(\"wR\")) {\r\n\t\t\t\t\tfor(int i = 0; i<9 ;i++) {\r\n\t\t\t\t\t\tfor (int j = 0; j<9; j++){\r\n\t\t\t\t\t\t\tif(chessBoard[8-i][j].getPiece() != null) {\r\n\t\t\t\t\t\t\tif(chessBoard[8-i][j].getPiece().getPieceID().equals(\"wKc\")) {\r\n\t\t\t\t\t\t\t\t//Piece king = chessBoard[8-i][j].getPiece();\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//DEBUG -- System.out.println(king.getPieceID()+color+\" \"+king );\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tchessBoard[8-i][j].getPiece().setPieceID(\"wK\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\r\n\t\t\treturn true;\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\treturn false;\t\t\r\n\t}",
"private boolean fail(Piece piece) {\n\n // To store the moving over\n int localColumnPos = columnPos - piece.getShift();\n\n // If the piece will go outside the bounds of the board, return false\n if (piece.getMatrix().length + rowPos > board.length ||\n piece.getMatrix()[0].length + localColumnPos > board[0].length || localColumnPos < 0) return true;\n\n // Check for no true true collisions\n for (int i = 0; i < piece.getMatrix().length; i++) {\n for (int j = 0; j < piece.getMatrix()[0].length; j++) {\n // If there is a true + true anywhere, do not add piece\n if (piece.getMatrix()[i][j] && board[i + rowPos][j + localColumnPos]) return true;\n }\n }\n return false;\n }",
"public boolean move(Cell destCell)\n\t{\n\t\t// Checking whether of not the Cells are adjacent is redundant so long as only a\n\t\t// DPad-type system is used to control movement\n\t\tif(currentCell.isAdjecentWithCorners(destCell) && destCell.getSpaceOpen())\n\t\t{\n\t\t\t// Store the origin Cell temporarily\n\t\t\tCell prevCell = currentCell;\n\n\t\t\t// Assign this Character to its destination Cell\n\t\t\t// currentCell is automatically updated by setOccupant()\n\t\t\tif(destCell.setOccupant(this))\n\t\t\t{\n\t\t\t\t// Remove this Character from its current Cell\n\t\t\t\tprevCell.setOccupant(null);\n\n\t\t\t\t// Set movement animation offsets\n\t\t\t\tanimationOffsetX += Tile.TILE_SCALE * Tile.TILE_WIDTH * (prevCell.getGridX() - currentCell.getGridX());\n\t\t\t\tanimationOffsetY += Tile.TILE_SCALE * Tile.TILE_HEIGHT * (prevCell.getGridY() - currentCell.getGridY());\n\n\t\t\t\treturn true;\n\t\t\t} else\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n public boolean isValidMove(Tile target, Board board) {\n if (target == null || board == null) {\n throw new NullPointerException(\"Arguments for the isValidMove method can not be null.\");\n }\n // current and target tiles have to be on a diagonal (delta between row and col index have to be identical)\n int currentCol = this.getTile().getCol();\n int currentRow = this.getTile().getRow();\n int targetCol = target.getCol();\n int targetRow = target.getRow();\n\n int deltaRow = Math.abs(currentRow - targetRow);\n int deltaCol = Math.abs(currentCol - targetCol);\n int minDelta = Math.min(deltaCol, deltaRow);\n\n boolean sameDiagonal = deltaCol == deltaRow;\n\n // check if there are pieces between the tiles\n boolean noPiecesBetween = true;\n // Directions -- (Up and to the left) , -+ (Up and to the right), ++, +-\n if (targetRow < currentRow && targetCol < currentCol) { // --\n for (int delta = 1; delta < minDelta; delta++) {\n Tile tileInBetween = board.getTile(currentRow - delta, currentCol - delta);\n if (tileInBetween.hasChessPiece()) {\n noPiecesBetween = false;\n }\n }\n\n } else if (targetRow > currentRow && targetCol < currentCol) { // +-\n for (int delta = 1; delta < minDelta; delta++) {\n Tile tileInBetween = board.getTile(currentRow + delta, currentCol - delta);\n if (tileInBetween.hasChessPiece()) {\n noPiecesBetween = false;\n }\n }\n } else if (targetRow > currentRow && targetCol > currentCol) { // ++\n for (int delta = 1; delta < minDelta; delta++) {\n Tile tileInBetween = board.getTile(currentRow + delta, currentCol + delta);\n if (tileInBetween.hasChessPiece()) {\n noPiecesBetween = false;\n }\n }\n } else if (targetRow < currentRow && targetCol > currentCol) { // -+\n for (int delta = 1; delta < minDelta; delta++) {\n Tile tileInBetween = board.getTile(currentRow - delta, currentCol + delta);\n if (tileInBetween.hasChessPiece()) {\n noPiecesBetween = false;\n }\n }\n }\n\n return sameDiagonal && noPiecesBetween;\n }",
"public void moveDown()\n\t{\n\t\trow--;\n\t}",
"public boolean checkUp()\n\t{\n\t\tif(row-1>=0)\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"private boolean validMove(int xi, int yi, int xf, int yf) {\n\t\tPiece prevP = pieceAt(xi, yi);\n\t\tPiece nextP = pieceAt(xf, yf);\n\n\t\tif (prevP.isKing()) {\n\t\t\tif (((xf - xi) == 1 || (xi - xf) == 1) && ((yf - yi) == 1 || (yi - yf) == 1)) \n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t} else \n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tif (prevP.isFire()) \n\t\t{\n\t\t\tif (((xf - xi) == 1 || (xi - xf) == 1) && (yf - yi) == 1) \n\t\t\t{\n\t\t\t\tif (nextP != null && !nextP.isFire()) \n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} \n\t\t\telse if ((xf - xi) == 2 && (yf - yi) == 2) \n\t\t\t{\n\t\t\t\tPiece pBetween = pieceAt(xi+1, yi+1);\n\t\t\t\tif (pBetween != null && prevP.side() != pBetween.side()) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t} \n\t\t\telse if ((xi - xf) == 2 && (yf - yi) == 2) \n\t\t\t{\n\t\t\t\tPiece pBetween = pieceAt(xi-1, yi+1);\n\t\t\t\tif (pBetween != null && prevP.side() != pBetween.side()) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} else \n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else \n\t\t{\n\t\t\tif (((xf - xi) == 1 || (xi - xf) == 1) && (yi - yf) == 1) \n\t\t\t{\n\t\t\t\tif (nextP != null && nextP.isFire()) \n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} \n\t\t\telse if ((xf - xi) == 2 && (yi - yf) == 2) \n\t\t\t{\n\t\t\t\tPiece pBetween = pieceAt(xi+1, yi-1);\n\t\t\t\tif (pBetween != null && prevP.side() != pBetween.side()) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t} \n\t\t\telse if ((xi - xf) == 2 && (yi - yf) == 2) \n\t\t\t{\n\t\t\t\tPiece pBetween = pieceAt(xi-1, yi-1);\n\t\t\t\tif (pBetween != null && prevP.side() != pBetween.side()) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public void moveDown() {\n Coordinate downCoord = new Coordinate(getX(), getY() + 1);\n handleMove(downCoord, InteractionHandler.DOWN);\n }",
"private boolean moveUP() {\r\n\t\tint i,j,k;\r\n\t\tboolean flag = false;\r\n\t\tfor(i = 0 ; i < rows_size; i++) {\r\n\t\t\tfor( j = 0; j < columns_size; j++) {\r\n\t\t\t\tif( !isEmpty(i,j) ) {\r\n\t\t\t\t\tfor(k = i; k >= 0 && isEmpty(k-1,j); k--);\r\n\t\t\t\t\t\tif(k == 0) {\r\n\t\t\t\t\t\t\tif(k != i) {\r\n\t\t\t\t\t\t\tgame[k][j] = new Cell2048(game[i][j]);\r\n\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\tflag = true;\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 {\r\n\t\t\t\t\t\t\tif(game[i][j].isEqual(game[k-1][j]) && game[k-1][j].getFlag() == false) {\r\n\t\t\t\t\t\t\t\tgame[k-1][j].setValue(game[k-1][j].getValue()*2);\r\n\t\t\t\t\t\t\t\tgame[k-1][j].setFlag(true);\r\n\t\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\t\tscore += game[k-1][j].getValue();\r\n\t\t\t\t\t\t\t\t--takenCells;\r\n\t\t\t\t\t\t\t\t++freeCells;\r\n\t\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tif(k != i) {\r\n\t\t\t\t\t\t\t\tgame[k][j] = new Cell2048 (game[i][j]);\r\n\t\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\tFalseFlag();\r\n\t\treturn flag;\r\n\t}",
"@Test\n void RookMoveDown() {\n Board board = new Board(8, 8);\n Piece rook = new Rook(board, 4, 4, 1);\n\n board.getBoard()[4][4] = rook;\n\n board.movePiece(rook, 4, 7);\n\n Assertions.assertEquals(rook, board.getBoard()[4][7]);\n Assertions.assertNull(board.getBoard()[4][4]);\n }",
"public void moveDown() {\n locY = locY - 1;\n }",
"public void moveDown()\n\t{\n\t\ty = y + STEP_SIZE;\n\t}",
"public static boolean isGameWon(final char piece){\n\t\tif (board[0][0] == piece){\t\t\t\t\t\t\t\t// top-left corner\n\t\t\tif (board[1][1] == piece && board[2][2] == piece)\t\t// diagonal\n\t\t\t\treturn true;\n\t\t\telse if (board[0][1] == piece && board[0][2] == piece)\t// going right\n\t\t\t\treturn true;\n\t\t\telse if (board[1][0] == piece && board[2][0] == piece)\t// going down\n\t\t\t\treturn true;\n\t\t}\n\t\tif (board[2][2] == piece){\t\t\t\t\t\t\t\t// bottom-right corner\n\t\t\tif (board[2][1] == piece && board[2][0] == piece)\t\t// going left\n\t\t\t\treturn true;\n\t\t\telse if (board[1][2] == piece && board[0][2] == piece)\t// going up\n\t\t\t\treturn true;\n\t\t}\n\t\tif (piece == board[1][1]){\t\t\t\t\t\t\t\t// middle slot\n\t\t\tif (board[0][2] == piece && board[2][0] == piece)\t\t// the other diagonal\n\t\t\t\treturn true;\n\t\t\telse if (piece == board[1][0] && piece == board[1][2])\t// horizontal through and through\n\t\t\t\treturn true;\n\t\t\telse if (piece == board[0][1] && piece == board[2][1])\t// vertical through and through\n\t\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false; \t\n\t}",
"public boolean canCastle(int direction){\n\t\tPiece rook;\n\t\t\n\t\tif(!((getColor().equals(\"White\") && getSquare().getCol() == 4 && getSquare().getRow() == 7 ) ||\n\t\t\t\t(getColor().equals(\"Black\") && getSquare().getCol() == 4 && getSquare().getRow() == 0 )))\n\t\t\treturn false;\n\t\t\n\t\t\n\t\tif(direction == 1){\n\t\t\trook = getSquare().getEast().getEast().getEast().getOccupant();\n\t\t\tif(rook == null || !rook.getColor().equals(this.getColor()) || !rook.getType().equals(\"Rook\") || rook.hasMoved() || this.hasMoved())\n\t\t\t\treturn false;\n\t\t\tif(getSquare().getEast().getEast().getOccupant() != null)\n\t\t\t\treturn false;\n\t\t\tif(getSquare().getEast().getOccupant() != null)\n\t\t\t\treturn false;\n\t\t\t\n\t\t\tif(getColor().equals(\"White\")){\n\t\t\t\tfor(int i = 0; i < ChessBoard.getPieces().size(); i++){\n\t\t\t\t\tif(ChessBoard.getPieces().get(i).getColor().equals(\"Black\"))\n\t\t\t\t\t\tfor(int location: ChessBoard.getPieces().get(i).getMoves()){\n\t\t\t\t\t\t\tif(location == 75 || location == 76){\n\t\t\t\t\t\t\t\treturn false;\n\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\telse{\n\t\t\t\tfor(int i = 0; i < ChessBoard.getPieces().size(); i++){\n\t\t\t\t\tif(ChessBoard.getPieces().get(i).getColor().equals(\"White\"))\n\t\t\t\t\t\tfor(int location: ChessBoard.getPieces().get(i).getMoves()){\n\t\t\t\t\t\t\tif(location == 5 || location == 6){\n\t\t\t\t\t\t\t\treturn false;\n\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\n\t\t}\n\t\t\n\t\telse if (direction == -1){//East\n\t\t\trook = getSquare().getWest().getWest().getWest().getWest().getOccupant();\n\t\t\tif(rook == null || !rook.getColor().equals(this.getColor()) || !rook.getType().equals(\"Rook\") || rook.hasMoved() || this.hasMoved())\n\t\t\t\treturn false;\n\t\t\tif(getSquare().getWest().getWest().getWest().getOccupant() != null)\n\t\t\t\treturn false;\n\t\t\tif(getSquare().getWest().getWest().getOccupant() != null)\n\t\t\t\treturn false;\n\t\t\tif(getSquare().getWest().getOccupant() != null)\n\t\t\t\treturn false;\n\t\t\t\n\t\t\tif(getColor().equals(\"White\")){\n\t\t\t\tfor(int i = 0; i < ChessBoard.getPieces().size(); i++){\n\t\t\t\t\tif(ChessBoard.getPieces().get(i).getColor().equals(\"Black\"))\n\t\t\t\t\t\tfor(int location: ChessBoard.getPieces().get(i).getMoves()){\n\t\t\t\t\t\t\tif(location == 73 || location == 72 || location == 71){\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int i = 0; i < ChessBoard.getPieces().size(); i++){\n\t\t\t\t\tif(ChessBoard.getPieces().get(i).getColor().equals(\"White\"))\n\t\t\t\t\t\tfor(int location: ChessBoard.getPieces().get(i).getMoves()){\n\t\t\t\t\t\t\tif(location == 3 || location == 2 || location == 1){\n\t\t\t\t\t\t\t\treturn false;\n\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}\n\t\t\n\t\treturn true;\n\t}",
"public boolean up() {\r\n if( row <= 0 ) return false;\r\n --row;\r\n return true;\r\n }",
"public void moveDown() {\n btMoveDown().push();\n }",
"public void moveDown() {\n btMoveDown().push();\n }",
"public boolean decrementY()\n {\n return setPosition(this.position.getXPosition(), this.position.getYPosition() - 1);\n }",
"private void playerMoveUp()\n {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentY(this.getCurrentY() - 1);\n if (this.getCurrentY() > -1) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentY(this.getCurrentY() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else// hit edge redo setlocation\n {\n this.setCurrentY(this.getCurrentY() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } \n }",
"@Override\n public void drawValidMove() {\n if(this.getPlayer().getPlayerID() % 2 != 0) {\n //Pawn can move one space forwards if no piece is in front\n if (board.getSquare(x-1, y).getPiece()== null) {\n board.getSquare(x-1, y).drawOutline();\n }\n \n //if first move, pawn can move 2 spaces forward\n if (!hasMoved && board.getSquare(x-2, y).getPiece() == null && board.getSquare(x-1, y).getPiece() == null) {\n board.getSquare(x-2, y).drawOutline();\n }\n \n //If there is an enemy piece in the diagonal forward square of the pawn, the pawn can move (capture the piece)\n if (y-1 > 0) { //ensures no arrayoutofbounds error\n if (board.getSquare(x-1, y-1) != null && board.getSquare(x-1, y-1).getPiece() != null &&\n board.getSquare(x-1, y-1).getPiece().getPlayer() != this.getPlayer()) {\n board.getSquare(x-1, y-1).drawOutline();\n }\n }\n \n if(y+1<SIZE) { //ensures no arrayoutofbounds error\n if (board.getSquare(x-1, y+1) != null && board.getSquare(x-1, y+1).getPiece() != null &&\n board.getSquare(x-1, y+1).getPiece().getPlayer() != this.getPlayer() ) {\n board.getSquare(x-1, y+1).drawOutline();\n }\n }\n \n System.out.println(\"\");\n //En passant\n if (y - 1 > 0) {\n \n System.out.println();\n if (board.getSquare(x, y-1).getPiece() != null) { \n System.out.println(\"the piece's enPassant is: \" + board.getSquare(x, y-1).getPiece().getEnPassant());\n System.out.println(\"The game's turn counter is: \" + board.getTurnCounter());\n }\n else {\n System.out.println(\"Null piece when checking for en passent.\");\n }\n \n if (board.getSquare(x, y-1).getPiece() != null && board.getSquare(x, y-1).getPiece().getPlayer() != this.player &&\n board.getSquare(x, y-1).getPiece().getEnPassant() == board.getTurnCounter() - 1) {\n board.getSquare(x-1, y-1).drawOutline();\n board.getSquare(x-1, y-1).setEnPassent(true);\n }\n }\n \n if (y + 1 < SIZE) {\n if (board.getSquare(x, y+1).getPiece() != null && board.getSquare(x, y+1).getPiece().getPlayer() != this.player &&\n board.getSquare(x, y+1).getPiece().getEnPassant() == board.getTurnCounter() - 1) {\n board.getSquare(x-1, y+1).drawOutline();\n board.getSquare(x-1, y+1).setEnPassent(true);\n }\n }\n }\n \n //If this pawn belongs to player 2:\n else {\n \n if (board.getSquare(x+1, y).getPiece() == null) {\n board.getSquare(x+1, y).drawOutline();\n }\n \n //if first move, pawn can move 2 spaces forward\n if (!hasMoved && board.getSquare(x+2, y).getPiece() == null && board.getSquare(x+1, y).getPiece() == null) {\n board.getSquare(x+2, y).drawOutline();\n \n }\n \n if(y-1 > 0) {\n if (board.getSquare(x+1, y-1) != null && board.getSquare(x+1, y-1).getPiece() != null &&\n board.getSquare(x+1, y-1).getPiece().getPlayer() != this.getPlayer() ) {\n board.getSquare(x+1, y-1).drawOutline();\n }\n }\n \n if(y+1 < SIZE) {\n if (board.getSquare(x+1, y+1) != null && board.getSquare(x+1, y+1).getPiece() != null &&\n board.getSquare(x+1, y+1).getPiece().getPlayer() != this.getPlayer()) {\n board.getSquare(x+1, y+1).drawOutline();\n }\n }\n \n //En passant\n if (y - 1 > 0) {\n if (board.getSquare(x, y-1).getPiece() != null &&board.getSquare(x, y-1).getPiece().getPlayer() != this.player &&\n board.getSquare(x, y-1).getPiece().getEnPassant() == board.getTurnCounter() - 1) {\n board.getSquare(x+1, y-1).drawOutline();\n board.getSquare(x+1, y-1).setEnPassent(true);\n }\n }\n \n if (y + 1 < SIZE) {\n if (board.getSquare(x, y+1).getPiece() != null && board.getSquare(x, y+1).getPiece().getPlayer() != this.player &&\n board.getSquare(x, y+1).getPiece().getEnPassant() == board.getTurnCounter() - 1) {\n board.getSquare(x+1, y+1).drawOutline();\n board.getSquare(x+1, y+1).setEnPassent(true);\n }\n }\n }\n }",
"private boolean isLegalMove(String move) {\n\t\tString[] moveParts = move.split(\";\");\n\n\t\tint fromRow = Integer.parseInt(moveParts[0].charAt(0) + \"\");\n\t\tint fromCol = Integer.parseInt(moveParts[0].charAt(1) + \"\");\n\n\t\tint toRow = Integer.parseInt(moveParts[1].charAt(0) + \"\");\n\t\tint toCol = Integer.parseInt(moveParts[1].charAt(1) + \"\");\n\n\t\tint minRow = Math.min(fromRow, toRow);\n\t\tint minCol = Math.min(fromCol, toCol);\n\n\t\tint maxRow = Math.max(fromRow, toRow);\n\t\tint maxCol = Math.max(fromCol, toCol);\n\n\t\tint piece = board[fromRow][fromCol];//Integer.parseInt(moveParts[2]);\n\t\tint pieceType = Math.abs(piece);\n\t\tint team = Math.round(Math.signum(piece));\n\n\t\tif (team == Math.round(Math.signum(board[toRow][toCol]))) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (toRow < 0 || toRow > 7 && toCol < 0 && toCol > 7) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (team > 0) { // WHITE\n\t\t\tint enpassantBackup = enpassantCol;\n\t\t\tint[][] boardBackup = deepCopyBoard();\n\t\t\tapplyConvertedMove(move);\n\t\t\tboolean check = isWhiteCheck();\n\t\t\tboard = boardBackup;\n\t\t\tenpassantCol = enpassantBackup;\n\t\t\tif (check) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else { //BLACK\n\t\t\tint enpassantBackup = enpassantCol;\n\t\t\tint[][] boardBackup = deepCopyBoard();\n\t\t\tapplyConvertedMove(move);\n\t\t\tboolean check = isBlackCheck();\n\t\t\tboard = boardBackup;\n\t\t\tenpassantCol = enpassantBackup;\n\t\t\tif (check) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tif (pieceType == 1) { //Pawn\n\t\t\treturn ((board[toRow][toCol] != 0 && toRow == fromRow + team && (toCol == fromCol + 1 || toCol == fromCol - 1)) || (toCol == fromCol && board[toRow][toCol] == 0 && ((toRow == fromRow + team) || (((fromRow == 1 && team == 1) || (fromRow == 6 && team == -1)) ? toRow == fromRow + 2*team && board[fromRow + team][fromCol] == 0 : false))));\n\t\t} else if (pieceType == 2) { //Rook\n\t\t\tif (toRow == fromRow) {\n\t\t\t\tfor (int i = minCol + 1; i < maxCol; i++) {\n\t\t\t\t\tif (board[toRow][i] != 0 && Math.abs(board[toRow][i]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} else if (toCol == fromCol) {\n\t\t\t\tfor (int i = minRow + 1; i < maxRow; i++) {\n\t\t\t\t\tif (board[i][toCol] != 0 && Math.abs(board[i][toCol]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if (pieceType == 3) { //Knight\n\t\t\tint dx = toRow - fromRow;\n\t\t\tint dy = toCol - fromCol;\n\t\t\treturn dx*dx + dy*dy == 5;\n\t\t} else if (pieceType == 4) { //Bishop\n\t\t\tint dx = toRow - fromRow;\n\t\t\tint dy = toCol - fromCol;\n\t\t\tif (dy != dx && dy != -dx) return false;\n\t\t\tint m = dy/dx;\n\t\t\tint startCol = (m < 0 ? maxCol : minCol);\n\t\t\tfor (int i = minRow + 1; i < maxRow; i++) {\n\t\t\t\tif (board[i][startCol + m*(i - minRow)] != 0 && board[i][startCol + m*(i - minRow)] != 7) return false;\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (pieceType == 5) { //Queen\n\t\t\tif (toRow == fromRow) {\n\t\t\t\tfor (int i = minCol + 1; i < maxCol; i++) {\n\t\t\t\t\tif (board[toRow][i] != 0 && Math.abs(board[toRow][i]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} else if (toCol == fromCol) {\n\t\t\t\tfor (int i = minRow + 1; i < maxRow; i++) {\n\t\t\t\t\tif (board[i][toCol] != 0 && Math.abs(board[i][toCol]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tint dx = toRow - fromRow;\n\t\t\t\tint dy = toCol - fromCol;\n\t\t\t\tif (dy != dx && dy != -dx) return false;\n\t\t\t\tint m = dy/dx;\n\t\t\t\tint startCol = (m < 0 ? maxCol : minCol);\n\t\t\t\tfor (int i = minRow + 1; i < maxRow; i++) {\n\t\t\t\t\tif (board[i][startCol + m*(i - minRow)] != 0 && Math.abs(board[i][startCol + m*(i - minRow)]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if (pieceType == 6) { //King\n\t\t\tint dx = toRow - fromRow;\n\t\t\tint dy = toCol - fromCol;\n\t\t\treturn dx*dx + dy*dy <= 2;\n\t\t}\n\n\t\treturn false;\n\t}",
"public boolean isUpMove(int row, int column, Move moveToReturn, Tile[][] gameState) {\n\t\tif (row == 0 || row == 1) {\t// can't check up with that few spots\n\t\t\treturn false;\n\t\t} else {\n\t\t\tif (gameState[row - 1][column].getColorValue().equals(empty)) {\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\tif (gameState[row - 2][column].getColorValue().equals(empty)) {\n\t\t\t\t\tmoveToReturn.setTileTo(gameState[row - 2][column]);\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}"
] | [
"0.7102004",
"0.70516956",
"0.6916572",
"0.68845934",
"0.6796493",
"0.67914206",
"0.67905664",
"0.67713255",
"0.6733568",
"0.67326343",
"0.672066",
"0.6720201",
"0.67191005",
"0.66863656",
"0.6682635",
"0.66296077",
"0.66085327",
"0.6517281",
"0.6503038",
"0.6502956",
"0.6495371",
"0.648984",
"0.6476991",
"0.6467299",
"0.64545995",
"0.6452775",
"0.6451052",
"0.6448017",
"0.6435771",
"0.6423704",
"0.64208746",
"0.6411185",
"0.63736206",
"0.635649",
"0.63360703",
"0.6326569",
"0.632186",
"0.6316998",
"0.6315447",
"0.6303561",
"0.6294631",
"0.62854564",
"0.625326",
"0.6251389",
"0.622311",
"0.62136996",
"0.62094676",
"0.61930805",
"0.6191339",
"0.6185371",
"0.61808026",
"0.6176036",
"0.6166004",
"0.61564964",
"0.6154684",
"0.6153695",
"0.61510694",
"0.61475575",
"0.61181754",
"0.61133",
"0.6097364",
"0.6093849",
"0.60868526",
"0.6074783",
"0.6074069",
"0.60715973",
"0.60715973",
"0.60616034",
"0.60499203",
"0.60458136",
"0.6037922",
"0.6032552",
"0.6018447",
"0.6015264",
"0.60049427",
"0.60047275",
"0.5999915",
"0.5993338",
"0.59839845",
"0.5976111",
"0.5973368",
"0.5971727",
"0.59705794",
"0.5965781",
"0.5964725",
"0.595966",
"0.59589034",
"0.59547246",
"0.59469074",
"0.5946765",
"0.59354365",
"0.5935181",
"0.5933124",
"0.5927586",
"0.5927586",
"0.5915565",
"0.59116966",
"0.590835",
"0.59059745",
"0.590386"
] | 0.8683523 | 0 |
checks if currentPiece will hit a filled space return true if collision will occur | protected boolean detectCollision(TetrisPiece piece, int rot, int gridRow, int gridCol) {
// goes through rows and columns of filledSquares matrices
for(int i = 0; i < 4; i++) {
for(int j = 0; j < 4; j++) {
if(piece.isFilled(rot, i, j)) {
// conditions for collision
if(hasBlock(i + gridRow, j + gridCol)) {
return true;
}
}
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isFull() {\n for (int r = 0; r < 6; r++) {\n for (int c = 0; c < 7; c++) {\n if (!hasPiece(r, c)) {\n return false;\n }\n }\n }\n return true;\n }",
"private boolean checkCollisions(int keycode) {\n \t\t\n \t\tint sX = super.getX()/Main.gridSize;\n \t\tint sY = super.getY()/Main.gridSize;\n \t\t\n \t\tif (World.currentMap().solidAtPoint(sX-1, sY) && keycode == Keyboard.KEY_A) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX+1, sY) && keycode == Keyboard.KEY_D) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX, sY-1) && keycode == Keyboard.KEY_W) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX, sY+1) && keycode == Keyboard.KEY_S) {\n \t\t\treturn false;\n \t\t}\n \t\treturn true;\n \t}",
"boolean gameOver() {\n return piecesContiguous(BLACK) || piecesContiguous(WHITE);\n }",
"private void checkCollision() {\n for (int i = snakeSize; i > 0; i--) {\n if (i>4 && x[0] == x[i] && y[0] == y[i]){\n isInGame=false;\n }\n }\n\n if (x[0] > FIELD_SIZE) {\n isInGame=false;\n }\n\n if (x[0] < 0) {\n isInGame=false;\n }\n\n if (y[0] > FIELD_SIZE) {\n isInGame=false;\n }\n\n if (y[0] < 0) {\n isInGame=false;\n }\n\n\n }",
"public boolean isFull(){\n for(int i=0;i<3;i++){\n for(int j=0;j<3;j++){\n if(!gameBoard[i][j].equals(\"O\") && !gameBoard[i][j].equals(\"X\")){\n return false;\n }\n }\n }\n return true;\n }",
"public static boolean isFull() {\n return (board[0][0] > 0 && board[0][1] > 0 && board[0][2] > 0\n && board[1][0] > 0 && board[1][1] > 0 && board[1][2] > 0\n && board[2][0] > 0 && board[2][1] > 0 && board[2][2] > 0\n && board[0][0] > 0 && board[1][0] > 0 && board[2][0] > 0\n && board[0][1] > 0 && board[1][1] > 0 && board[2][1] > 0\n && board[0][2] > 0 && board[1][2] > 0 && board[2][2] > 0\n && board[0][0] > 0 && board[1][1] > 0 && board[2][2] > 0\n && board[0][2] > 0 && board[1][1] > 0 && board[2][0] > 0);\n }",
"public boolean checkWin (int totalPieces){\n\t\treturn isFull();\n\t}",
"private boolean boardIsFull() {\n int numberOfFieldsOnBoard = boardSize * boardSize;\n return (numberOfFieldsOnBoard == this.numberOfOccupiedFields);\n }",
"public boolean isFull(){\r\n\t\tfor(int i = 0; i < boardSize; i++){\r\n\t\t\tif(board[i] == Box.EMPTY){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"boolean gameOver() {\n return piecesContiguous(BP) || piecesContiguous(WP);\n }",
"public boolean isOccupied() {\n return piece != null;\n }",
"public boolean isOccupied() {\n\t\treturn piece != null;\n\t}",
"public boolean isFull() {\n\t\t\n\t\tif (currentOccup < maxOccup)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"public boolean checkGameOver(){\n\t\tfor(int x = 0; x < this.tile[3].length; x++){\n\t\t if(this.isFilled(3, x)){\n\t\t \tSystem.out.println(\"game over\");\n\t\t return true;\n\t\t }\n\t\t}\n\t\treturn false;\n\t}",
"public boolean collides (){\n if(shipX<=astX && shipY>=astY){\n if(Math.abs(shipX-astX)<=40 && Math.abs(shipY-astY)<=65){\n return true;\n }\n }\n else if(shipX>=astX && shipY>=astY){\n if(Math.abs(shipX-astX)<=75 && Math.abs(shipY-astY)<=65){\n return true;\n }\n }\n else if(shipX>=astX && shipY<=astY){\n if(Math.abs(shipX-astX)<=75 && Math.abs(shipY-astY)<=55){\n return true;\n }\n }\n else if(shipX<=astX && shipY<=astY){\n if(Math.abs(shipX-astX)<=60 && Math.abs(shipY-astY)<=55){\n return true;\n }\n }\n return false;\n }",
"private boolean hitSides() {\n if (b.numY + 60 >= BOX_HEIGHT || (b.numY - 60 <= 0)) {\n return true;\n } else {\n return false;\n }\n }",
"public boolean hasPiece(int x, int y)\r\n {\r\n return isValidSqr(x, y) && board[x][y] != null;\r\n }",
"public boolean isFull ()\n {\n for (int row = 0; row < 3; row++)\n for (int column = 0; column < 3; column++)\n if (getGridElement(row, column).getPlayer() == Player.NONE)\n return false;\n\n return true;\n }",
"public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }",
"public boolean hitCheck(float x, float y) {\r\n if (boxX <= x && x <= boxX + boxSize &&\r\n boxY <= y && y <= frameHeight) {\r\n return true;\r\n }\r\n return false;\r\n }",
"private boolean hasHitBoundry() {\r\n if (snake[HEAD].row < 0 || \r\n snake[HEAD].row >= maxRows ||\r\n snake[HEAD].column < 0 ||\r\n snake[HEAD].column >= maxColumns) {\r\n gameOver();\r\n return true;\r\n }\r\n return false;\r\n }",
"public boolean hasCollided(int xa, int ya) {\n int xMin = 0;//This is based on the character sprite... soo like near the legs is the collision box\n int xMax = 7;\n int yMin = 3;\n int yMax = 7;\n for (int x = xMin; x < xMax; x++) {\n if (isSolidTile(xa, ya, x, yMin)) {\n return true;\n }\n }\n for (int x = xMin; x < xMax; x++) {\n if (isSolidTile(xa, ya, x, yMax)) {\n return true;\n }\n }\n for (int y = yMin; y < yMax; y++) {\n if (isSolidTile(xa, ya, xMin, y)) {\n return true;\n }\n }\n for (int y = yMin; y < yMax; y++) {\n if (isSolidTile(xa, ya, xMax, y)) {\n return true;\n }\n }\n return false;\n }",
"public void sideCheck() {\n /*Be careful when creating tiles, especially ones that allow Sonic's bottom and middle sensors to intersect \n the same tile*/\n mLCollide = false;\n mRCollide = false;\n if(grounded) {\n if(groundSpeed > 0) {\n sideCollision(middleRight);\n }\n else if(groundSpeed < 0) {\n sideCollision(middleLeft);\n } \n }\n else if(!grounded) {\n if(xSpeed < 0) {\n sideCollision(middleLeft);\n }\n else if(xSpeed > 0) {\n sideCollision(middleRight);\n }\n }\n }",
"@Override\n\tpublic boolean checkCollision() {\n\t\treturn true;\n\t}",
"private void checkCollision() {\n\n for(int b = 1; b < snakeLength; b++){\n if(xLength[b] == xLength[0] && yLength[b] == yLength[0]) {\n right = false;\n left = false;\n down = false;\n up = false;\n gameOver = true;\n }\n }\n\n if(right){\n if(xLength[0] >= 825) {\n gameOver = true;\n }\n }\n if(left){\n if(xLength[0] <= 50) {\n gameOver = true;\n }\n }\n if(down){\n if(yLength[0] >= 600) {\n gameOver = true;\n }\n }\n if(up){\n if(yLength[0] <= 100) {\n gameOver = true;\n }\n }\n }",
"public static boolean hasSpaceForPiece(int[] piece, int pos) {\n for (int f = 0; f < piece.length; ++f) {\n int color = piece[f];\n if (color != ColorFrames.NO_FRAME && pieces[pos - 1][f] != ColorFrames.NO_FRAME)\n return false;\n }\n\n return true;\n }",
"public boolean isFull() {\n return numOfGoods == cargoSpace;\n }",
"private void checkIfOccupied(int row, int col) {\n if (status == MotionStatus.DOWN || AIisAttacking) {\n\n// if (player && playerAttacks != null) {\n// // Ignore touch if player has previously committed an attack on that cell.\n// for (int i = 0; i < playerAttacks.size(); i++) {\n// if (playerAttacks.get(i).equals(row,col)) {\n// Log.i(\"for\", \"You Hit this Previously!\");\n// }\n// }\n// }\n\n for (int i = 0; i < occupiedCells.size(); i++) {\n if (occupiedCells.get(i).x == row && occupiedCells.get(i).y == col) {\n Point p = new Point(row, col);\n selectedShip = findWhichShip(p); //Touching View Updated\n Log.i(\"checkIfOccupied getHit\", \"\" + getHit() + \", (\" + row + \", \" + col + \")\");\n setHit(true);\n break;\n }\n }\n\n if (selectedShip == null) {\n setHit(false);\n Log.i(\"checkIfOccupied getHit\", \"\" + getHit() + \", (\" + row + \", \" + col + \")\");\n }\n\n } else if (status == MotionStatus.MOVE) {//MotionStatus.MOVE\n if (selectedShip != null) {//Need to make sure none of the current ship parts will overlap another.\n int rowHolder = selectedShip.getHeadCoordinatePoint().x;\n int colHolder = selectedShip.getHeadCoordinatePoint().y;\n int tempRow, tempCol;\n selectedShip.moveShipTo(row, col);\n for (Ship s : ships) {\n if (s != selectedShip) {\n\n for (int i = 0; i < selectedShip.getShipSize(); i++) {\n tempRow = selectedShip.getBodyLocationPoints()[i].x;\n tempCol = selectedShip.getBodyLocationPoints()[i].y;\n\n for (int j = 0; j < s.getShipSize(); j++) {\n if (tempRow == s.getBodyLocationPoints()[j].x && tempCol == s.getBodyLocationPoints()[j].y) {\n selectedShip.moveShipTo(rowHolder, colHolder);\n }\n }//for\n }//for\n }\n }//for\n }\n }//Move\n }",
"public boolean isBoardFull() {\n\t\t// REPLACE NEXT LINE WITH YOUR IMPLEMENTATION\n\t\tint boardSize = getBoardSize();\n\t\t\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\t\n\t\t\tfor (int j = 0; j < boardSize; j++) {\n\t\t\t\t\n\t\t\t\tif (isSpotBlank(i,j)) {\n\t\t\t\t\t\n\t\t\t\t\treturn false;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn true;\n\t\t\n\t}",
"public boolean isFull(int x, int y){\r\n\t\tif (_squares[x][y] == null){\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"public boolean isFull() {\n\t\tboolean full = true;\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tfor (int j = 0; j < 9; j++) {\n\t\t\t\tif (board[i][j] == '-') {\n\t\t\t\t\tfull = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn full;\n\t}",
"public boolean hasPieces() {\n return !(pieces.isEmpty());\n }",
"private boolean checkCollisions(int X, int Y){\n\t\tint hitBoxSizeX = 105;\n\t\tint hitBoxSizeY = 80;\n\t\tfor(int i=0;i<enemy_num;i++){\n\t\t\tif(X<enemy[i][0]+hitBoxSizeX && X>enemy[i][0]){\n\t\t\t\tif(Y<enemy[i][1]+hitBoxSizeY && Y>enemy[i][1]){\n\t\t\t\t\tremoveEnemy(i);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn(false);\n\t}",
"public boolean checkForVictory() {\n // keep track of whether we have seen any pieces of either color.\n boolean anyWhitePieces = false;\n boolean anyRedPieces = false;\n // iterate through each row\n for (Row row : this.redBoard) {\n // whether we iterate through the red or white board does not matter; they contain the same pieces, just\n // in a different layout\n // iterate through each space in a row\n for (Space space : row) {\n // if there is a piece on this space\n if (space.getPiece() != null) {\n if (space.getPiece().getColor() == Piece.COLOR.RED) {\n // and if it's red, we have now seen at least one red piece\n anyRedPieces = true;\n } else if (space.getPiece().getColor() == Piece.COLOR.WHITE) {\n // and if it's white, we have now seen at least one white piece\n anyWhitePieces = true;\n }\n }\n }\n }\n // if we haven't seen any pieces of a color, then the other player has won\n if (!anyRedPieces) {\n // white player has won\n markGameAsDone(getWhitePlayer().getName() + \" has captured all the pieces.\");\n return true;\n } else if (!anyWhitePieces) {\n // red player has won\n markGameAsDone(getRedPlayer().getName() + \" has captured all the pieces.\");\n return true;\n }\n return false;\n }",
"public boolean canMoveHere(double xCo, double yCo, Pieces current) {\n //if in arena\n if(xCo < xSize && xCo > 0 && yCo < ySize && yCo > 0) {\n //if space free\n if(getDroneAt(xCo, yCo) == null || getDroneAt(xCo, yCo) == current) {\n return true;\n }\n }\n\n return false;\n }",
"public void collision(){\r\n\t\tif(currX < 0 || currX > 1000-width || currY < 0 || currY > 700-height){\r\n\t\t\tinGame=false;\r\n\t\t}\r\n\t\t/*\r\n\t\tI start at 1 because tail[0] will constantly be taking the position\r\n\t\tof the snake's head, so if i start at 0, the game would end immediately.\r\n\t\t*/\r\n\t\tfor(int i=1; i < numOranges; i++){\r\n\t\t\tRectangle currOrangeRect = new Rectangle(tail[i].getXcoords(), tail[i].getYcoords(), OrangeModel.getWidth(), OrangeModel.getHeight());\r\n\t\t\tif(new Rectangle(currX, currY, width, height).intersects(currOrangeRect)){\r\n\t\t\t\tinGame=false;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static boolean anyObstacles(ArrayList<CharacterSprite> pieces, int[] position, int[] destination,\n moveMode mode, boolean inclusive) {\n switch (mode) {\n case X_AXIS:\n int h = destination[0] < position[0] ? -1 : 1;\n for (int i = position[0] + h; i != destination[0]; i += h) {\n for (CharacterSprite sprite : pieces) {\n if (sprite.isColliding(i * CharacterSprite.size, position[1] * CharacterSprite.size)) {\n return true;\n }\n }\n }\n break;\n\n case Y_AXIS:\n h = destination[1] < position[1] ? -1 : 1;\n for (int i = position[1] + h; i != destination[1]; i += h) {\n for (CharacterSprite sprite : pieces) {\n if (sprite.isColliding(position[0] * CharacterSprite.size, i * CharacterSprite.size)) {\n return true;\n }\n }\n }\n break;\n\n case DIAGONAL:\n int i = destination[0], j = destination[1];\n i += i > position[0] ? -1 : 1;\n j += j > position[1] ? -1 : 1;\n\n while (i != position[0]) {\n for (CharacterSprite sprite : pieces) {\n if (sprite.isColliding(i * CharacterSprite.size, j * CharacterSprite.size)) {\n return true;\n }\n }\n\n i += i > position[0] ? -1 : 1;\n j += j > position[1] ? -1 : 1;\n }\n break;\n\n default:\n return true;\n }\n\n if (inclusive) {\n for (CharacterSprite sprite : pieces) {\n if (sprite.isColliding(destination[0] * CharacterSprite.size, destination[1] * CharacterSprite.size)) {\n return true;\n }\n }\n }\n\n return false;\n }",
"protected boolean isOccupied(int row, int column){\n return (!ships[row][column].getShipType().equals(\"empty\"));\n }",
"void collide() {\n for (Target t : this.helicopterpieces) {\n if (!t.isHelicopter && ((t.x == this.player.x && t.y == this.player.y)\n || (t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected--;\n t.isCollected = true;\n }\n if (t.isHelicopter && this.collected == 1\n && ((t.x == this.player.x && t.y == this.player.y) || (t.isHelicopter\n && this.collected == 1 && t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected = 0;\n this.helicopter.isCollected = true;\n }\n }\n }",
"public boolean hit(int y, int x)\n {\n if (this.space[y][x].charAt(1) == 'X' || this.space[y][x].charAt(1) == '*') { //Test to see if space already hit wasn't passed to hit method\n throw new IllegalArgumentException(\"A space that was already hit can't be hit again\".toUpperCase());\n }\n \n if (!(this.space[y][x].equals(\"[ ]\"))) { //Remove point y, x on ship and board, illegal values not looked at (X or *)\n Ship shipHit = null;\n for (int i = 0; i < this.fleet.size(); i++)\n {\n if(this.space[y][x].charAt(1) == this.fleet.get(i).getEmblem()) {\n shipHit = this.fleet.get(i);\n break;\n }\n }\n \n if(shipHit.destroyPointOnShip(new int[]{y,x})) //check to see if ship was destroyed and displays appropriate message to user, subtracts from\n //number of ships remaining\n {\n System.out.println((shipHit.getClass().getName().replace('_',' ')+ \" was destroyed!!!\").toUpperCase());\n this.numberOfShips--;\n }\n else {\n System.out.println((shipHit.getClass().getName().replace('_',' ')+ \" was hit at \"+(char)(y+'A') + \"-\" + (x+1)).toUpperCase());\n }\n this.space[y][x] = \"[X]\";\n return true;\n }\n else { //Mark useless shot on Board\n System.out.println(\"Nothing was hit at \".toUpperCase()+ (char)(y+'A') + \"-\" + (x+1) + \".\");\n this.space[y][x] = \"[*]\";\n return false;\n }\n }",
"@Override\n\tpublic boolean validMove(int xEnd, int yEnd, board b){\n\t\t//try to land one same color piece\n\t\tif(b.occupied(xEnd, yEnd)&&b.getPiece(xEnd, yEnd).getColor()==color){\n\t\t\treturn false;\n\t\t}\n\t\tif(v==0){\n\t\t\tif(!this.guard(xEnd, yEnd, b)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//normal move\n\t\tif((xEnd==x-1&&yEnd==y-1)||(xEnd==x-1&&yEnd==y)||(xEnd==x-1&&yEnd==y+1)||(xEnd==x&&yEnd==y-1)||(xEnd==x&&yEnd==y+1)||(xEnd==x+1&&yEnd==y-1)||(xEnd==x+1&&yEnd==y)||(xEnd==x+1&&yEnd==y+1)){\n\t\t\tif(b.occupied(xEnd, yEnd)){\n\t\t\t\t//set the enpass flage back\n\t\t\t\tb.setFlag(color, 100, 100);\n\t\t\t\tb.recycle(xEnd, yEnd);\n\t\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\t\tb.update();\n\t\t\t\tc=0;\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\t//set the enpass flage back\n\t\t\t\tb.setFlag(color, 100, 100);\n\t\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\t\tb.update();\n\t\t\t\tc=0;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}else if((xEnd==x-2&&yEnd==y)){ //castling\n\t\t\tpiece r = b.getPiece(0, y);\n\t\t\tif(r==null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(r.getC()==0||r.getColor()!=color||r.getType()!= type.ROOK||c==0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor(int i=3;i>0;i--){\n\t\t\t\tif(b.occupied(i, y)){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\tr.setPosition(3,y);\n\t\t\tc=0;\n\t\t\tr.setC(0);\n\t\t\tb.setFlag(color, 100, 100);\n\t\t\tb.update();\n\t\t\treturn true;\n\t\t}else if((xEnd==x+2&&yEnd==y)){\n\t\t\tpiece r = b.getPiece(7, y);\n\t\t\tif(r==null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(r.getC()==0||r.getColor()!=color||r.getType()!= type.ROOK||c==0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor(int i=5;i<=6;i++){\n\t\t\t\tif(b.occupied(i, y)){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\tr.setPosition(5,y);\n\t\t\tc=0;\n\t\t\tr.setC(0);\n\t\t\tb.setFlag(color, 100, 100);\n\t\t\tb.update();\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean meWin(){\n return whitePieces.size() > blackPieces.size() && isWhitePlayer;\n }",
"public boolean checkCollisions(Tuple camera) {\n\n\t\t// already exploded\n\t\tif(disabled > 0) {\n\t\t\treturn false;\n\t\t} // if\n\t\t\n\t\t// collision detected\n\t\tif(location.distance(camera) - size < SHIP_SIZE) {\n\t\t\tdisabled = 1;\n\t\t\treturn true;\n\t\t} // if\n\t\treturn false;\n\t}",
"private boolean collision(double xa, double ya) {\n\t\t\n\t\tint xMin = 2;\n int xMax = 15;\n int yMin = 15;\n int yMax = 19;\n if(Player.isSwimming){\n \tyMax = 1;\n \txMax = 18;\n }\n if (level.getTile((int)this.x / 32, (int)this.y / 32).getId() == 30) {\n \txMax = 18;\n \txMin = 20;\n }\n if (level.getTile((int)this.x / 32, (int)this.y / 32).getId() == 25) {\n \txMax = 32;\n \txMin = 32;\n \tyMax = 7;\n }\n \n \n int yMinWater = 0;\n for (int x = xMin; x < xMax; x++) {\n if (isSolidTile((int)xa, (int)ya, x, yMin)) {\n return true;\n }\n }\n for (int x = xMin; x < xMax; x++) {\n if (isSolidTile((int)xa,(int) ya, x, yMax)) {\n return true;\n }\n }\n for (int y = yMin; y < yMax; y++) {\n if (isSolidTile((int)xa, (int)ya, xMin, y)) {\n return true;\n }\n }\n for (int y = yMin; y < yMax; y++) {\n if (isSolidTile((int)xa, (int)ya, xMax, y)) {\n return true;\n }\n }\n if(Player.isSwimming || Player.isClimbing){\n \t for (int y = yMinWater; y < yMax; y++) {\n if (isSolidTile((int)xa, (int)ya, yMinWater, y)) {\n return true;\n }\n }\n }\n \n return false;\n\t}",
"public boolean kingCheck(ArrayList<Piece> pieces) {\r\n boolean check = false;\r\n int[] kingCoords = new int[]{this.getX(), this.getY()};\r\n\r\n for (Piece piece : pieces) {\r\n if (piece.getColor() != this.getColor()) { // If the color does not match the king's color...\r\n for (int[] coordinate : piece.range) {\r\n if (coordinate[0] == kingCoords[0] && coordinate[1] == kingCoords[1]) { // Checks to see if the king is in range of enemy pieces\r\n check = true;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n return check;\r\n }",
"public boolean isOccupied(int x, int y){\r\n\t\tif(myBoard.carrier.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.battleship.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.cruiser.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.submarine.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.patrolboat.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"public void checkCollisions() {\n\t\t List<Missile> missiles = player.getMissiles();\n\t\t for(Missile n : missiles) {\n\t\t\t Rectangle r1 = n.getBounds();\n\t\t\t for(Mushroom mush : mushrooms) {\n\t\t\t\t Rectangle r2 = mush.getBounds();\n\t\t\t\t r2.x += 8;\n\t\t\t\t if(r1.intersects(r2)) {\n\t\t\t\t\t mush.hitCnt += 1;\n\t\t\t\t\t if(mush.hitCnt == 3) {\n\t\t\t\t\t\t score += 5;\n\t\t\t\t\t\t n.setVisible(false);\n\t\t\t\t\t\t mush.setVisible(false);\n\t\t\t\t\t } else {\n\t\t\t\t\t\t score += 1;\n\t\t\t\t\t\t n.setVisible(false);\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if Missile hits Centipede\n\t\t //missiles = player.getMissiles();\n\t\t for(Missile m: missiles) {\n\t\t\t Rectangle rm = m.getBounds();\n\t\t\t for(int i = 0; i < centipede.size(); i++) {\n\t\t\t\t Segment s = centipede.get(i);\n\t\t\t\t Rectangle rs = s.getBounds();\n\t\t\t\t if(rs.intersects(rm)) {\n\t\t\t\t\ts.hit();\n\t\t\t\t\tscore = (s.hitCnt < 2 ? score +2 : score + 0);\n\t\t\t\t\tif(s.hitCnt == 2){\n\t\t\t\t\t\t//split centipede\n\t\t\t\t\t\tscore += 5;\n\t\t\t\t\t\tm.setVisible(false);\n\t\t\t\t\t\tcentipede.remove(i);\n\t\t\t\t\t\t//mushrooms.add(new Mushroom(s.getX(), s.getY()));\n\t\t\t\t\t}else {\n\t\t\t\t\t\tm.setVisible(false);\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if missile hits spider\n\t\t missiles = player.getMissiles();\n\t\t for(Missile m : missiles) {\n\t\t\t Rectangle mBound = m.getBounds();\n\t\t\t Rectangle spiderBound = spider.getBounds();\n\t\t\t if(mBound.intersects(spiderBound)) {\n\t\t\t\t spiderHitCnt += 1;\n\t\t\t\t if(spiderHitCnt == 2) {\n\t\t\t\t\t m.setVisible(false);\n\t\t\t\t\t spider.setVisible(false);\n\t\t\t\t\t score += 600;\n\t\t\t\t } else {\n\t\t\t\t\t score += 100;\n\t\t\t\t\t m.setVisible(false);\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if centipede hits mushroom\n\t\t for(Segment c : centipede) {\n\t\t\t Rectangle cB = c.getBounds();\n\t\t\t for(Mushroom m: mushrooms) {\n\t\t\t\t Rectangle mB = new Rectangle(m.getX(), m.getY() + 5, m.getWidth(), m.getHeight() - 10);\n\t\t\t\t mB.y += 3;\n\t\t\t\t if(cB.intersects(mB)) {\n\t\t\t\t\t//makes each segment to go downs\n\t\t\t\t\tc.y += 16;\n\t\t\t\t\tc.dx = -c.dx;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if Centipede hits Player\n\t\t Rectangle playerBounds = player.getBounds();\n\t\t for(Segment s : centipede) {\n\t\t\t Rectangle sB = s.getBounds();\n\t\t\t if(playerBounds.intersects(sB)) {\n\t\t\t\t playerLives -= 1;\n\t\t\t\t playerHitCnt += 1;\n\t\t\t\t if(playerHitCnt > MAX_HIT_COUNT) {\n\t\t\t\t\t// System.out.println(playerLives+\" \"+ x);\n\t\t\t\t\t player.setVisible(false);\n\t\t\t\t\t inGame = false;\n\t\t\t\t }else {\n\t\t\t\t\t\tplayer.x = 707;\n\t\t\t\t\t\tplayer.y = 708;\n\t\t\t\t\t\tPoint location = getLocationOnScreen();\n\t\t\t\t\t\trobot.mouseMove(location.x + 250, location.y + 425);\n\t\t\t\t\t\tplayer = new Player(300, 400);\n\t\t\t\t\t\tregenMushrooms();\n\t\t\t\t\t}\n\t\t\t }\n\t\t }\n\n\t\t //check if Spider hits Player\n\t\t playerBounds = player.getBounds();\n\t\t Rectangle spiderBounds = spider.getBounds();\n\t\t if(spiderBounds.intersects(playerBounds)) {\n\t\t\tplayerLives -= 1;\n\t\t\tplayerHitCnt += 1;\n\t\t\tif(playerLives > MAX_HIT_COUNT) {\n\t\t\t\t//System.out.println(playerLives+\" \"+ y);\n\t\t\t\tplayer.setVisible(false);\n\t\t\t\tspider.setVisible(false);\n\t\t\t}else {\n\t\t\t\tregenMushrooms();\n\t\t\t\tcentipede.clear();\n\t\t\t\tcreateCentipede();\n\t\t\t\tplayer.x = 707;\n\t\t\t\tplayer.y = 708;\n\t\t\t\tPoint location = getLocationOnScreen();\n\t\t\t\trobot.mouseMove(location.x + 250, location.y + 425);\n\t\t\t\tplayer = new Player(300, 400);\n\t\t\t}\n\t\t}\n\t }",
"public boolean isSpaceTaken(int xValue, int yValue) {\n\n\n\t\tif((board.getBoard()[yValue][xValue] == 1) || (board.getBoard()[yValue][xValue] == 3)) {\n\t\t\t//System.out.println(\"Piece is black\");\n\t\t\treturn true;\n\t\t} else if ((board.getBoard()[yValue][xValue] == 2) || (board.getBoard()[yValue][xValue] == 4)) {\n\t\t\t//System.out.println(\"Piece is white\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t\n\t}",
"private boolean isCellOccupied(Cell c) {\n Worm[] opponentWorms = opponent.worms;\n Worm[] playerWorms = player.worms;\n int i = 0;\n int j = 0;\n boolean foundOpponentWorm = false;\n boolean foundPlayerWorm = false;\n while ((i < opponentWorms.length) && (!foundOpponentWorm)) {\n if ((opponentWorms[i].position.x == c.x) && (opponentWorms[i].position.y == c.y)) {\n foundOpponentWorm = true;\n } else {\n i++;\n }\n }\n while ((j < playerWorms.length) && (!foundPlayerWorm)) {\n if ((playerWorms[j].position.x == c.x) && (playerWorms[j].position.y == c.y)) {\n foundPlayerWorm = true;\n } else {\n j++;\n }\n }\n return (foundOpponentWorm || foundPlayerWorm);\n }",
"public static boolean isPieceAvailable(int[] piece) {\n /* Before this was checking if a frame was available,\n but now it's checking for the whole piece since the method\n implemented before could give bugs */\n\n for (int b = 1; b <= ColorFrames.BOARD_PLACES; ++b) {\n if (hasSpaceForPiece(piece, b))\n return true;\n }\n\n return false;\n }",
"public boolean validBish (int startRow, int startColumn, int endRow, int endColumn, Tile[][] board) {\n\t\t\n\n\t\tif (Math.abs(startRow-endRow)==Math.abs(startColumn-endColumn)) {\n\t\t\tint distanceMovedRows = startRow-endRow;\n\t\t\tint distanceMovedCols =startColumn-endColumn;\n\t\t\tif (distanceMovedRows > 0 && distanceMovedCols < 0) {\n\n\t\t\t\tint x=startRow-1;\n\t\t\t\tint y = startColumn+1;\n\t\t\t\twhile (x > endRow && y < endColumn) { \n\t\t\t\t\tif (board[x][y].getOccupyingPiece() != null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tx--; y++;\n\t\t\t\t}\n\t\t\t} \n\t\t\tif (distanceMovedRows > 0 && distanceMovedCols > 0) { \n\n\t\t\t\tint x=startRow-1;\n\t\t\t\tint y = startColumn-1;\n\t\t\t\twhile (x > endRow && y > endColumn) {\n\t\t\t\t\tif (board[x][y].getOccupyingPiece() != null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tx--; y--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (distanceMovedRows < 0 && distanceMovedCols < 0) {\n\n\t\t\t\tint x=startRow+1;\n\t\t\t\tint y = startColumn+1;\n\n\t\t\t\twhile (x < endRow && y < endColumn) {\n\t\t\t\t\tif (board[x][y].getOccupyingPiece() != null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tx++; y++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (distanceMovedRows < 0 && distanceMovedCols > 0) {\n\n\t\t\t\tint x=startRow+1;\n\t\t\t\tint y = startColumn-1;\n\n\t\t\t\twhile (x < endRow && y > endColumn) {\n\t\t\t\t\tif (board[x][y].getOccupyingPiece() != null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tx++; y--;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"public boolean isFull() {\r\n return placeCounter == dimension * dimension;\r\n }",
"private boolean canEats(Point piece){\r\n\t// direction -1: red pieces +1: black pieces\r\n int dir = isRed(piece)? -1:+1;\r\n int dest = dir * 2; // eat move destination\r\n // compute movement points\r\n Point left = new Point(piece.getFirst() + dir, piece.getSecond() - 1);\r\n Point left2 = new Point(piece.getFirst()+ dest, piece.getSecond() - 2);\r\n Point right = new Point(piece.getFirst() + dir, piece.getSecond() + 1);\r\n Point right2 = new Point(piece.getFirst() + dest, piece.getSecond() + 2);\r\n // check left eat\r\n if(isValidPosition(left) && isValidPosition(left2)){\r\n if(isRed(piece) && isBlack(left) && isEmpty(left2)) return true;\r\n if(isBlack(piece) && isRed(left) && isEmpty(left2)) return true;\r\n }\r\n // check right eat\r\n if(isValidPosition(right) && isValidPosition(right2)){\r\n if(isRed(piece) && isBlack(right) && isEmpty(right2)) return true;\r\n if(isBlack(piece) && isRed(right) && isEmpty(right2)) return true;\r\n }\r\n // if is a queen\r\n if(isQueen(piece)){\r\n // compute queen move points (invert direction)\r\n Point leftQ = new Point(piece.getFirst() - dir, piece.getSecond() - 1);\r\n Point leftQ2 = new Point(piece.getFirst() - dest, piece.getSecond() - 2);\r\n Point rightQ = new Point(piece.getFirst() - dir, piece.getSecond() + 1);\r\n Point rightQ2 = new Point(piece.getFirst() - dest, piece.getSecond() + 2);\r\n // check left eat\r\n if(isValidPosition(leftQ) && isValidPosition(leftQ2)){\r\n if(isRed(piece) && isBlack(leftQ) && isEmpty(leftQ2)) return true;\r\n if(isBlack(piece) && isRed(leftQ) && isEmpty(leftQ2)) return true;\r\n }\r\n // check right eat\r\n if(isValidPosition(rightQ) && isValidPosition(rightQ2)){\r\n if(isRed(piece) && isBlack(rightQ) && isEmpty(rightQ2)) return true;\r\n if(isBlack(piece) && isRed(rightQ) && isEmpty(rightQ2)) return true;\r\n }\r\n }\r\n return false;\r\n }",
"public Boolean isValidMovement(int x, int y){\n\t\tif ( x < 0 || x > 7 || y < 0 || y > 7 \n\t\t\t\t|| this.board.getPiece(x, y).getColor().equalsIgnoreCase(this.color))\n\t\t\treturn false;\n\t\t\n\t\tint distX = Math.abs(this.posX - x);\n\t\tint distY = Math.abs(this.posY - y);\n\t\t\n\t\tif (distX != distY)\n\t\t\treturn false;\n\t\t\n\t\tif (this.posX > x && this.posY > y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX - i, this.posY - i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (this.posX < x && this.posY > y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX + i, this.posY - i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (this.posX > x && this.posY < y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX - i, this.posY + i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (this.posX < x && this.posY < y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX + i, this.posY + i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean checkBoardFull() {\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n if (grid[i][j].getSymbol() == '-')\n return false;\n }\n }\n return true;\n }",
"public boolean isAttacking(ChessPiece piece)\n {\n if ((Math.abs(this.getRow() - piece.getRow()) == Math.abs(this.getCol() - piece.getCol())) && (this.getColor() != piece.getColor())) // if self is on same diagonal as chesspiece, this is attack. we use absolute values to determine diagonal\n return true;\n else\n return false; // self is not attacking chesspiece at position l\n }",
"public boolean wonGame() {\n for (int x = 0; x < maxX; x++) {\n for (int y = 0; y < maxY; y++) {\n if (snakeSquares[x][y] == NOT_A_SEGMENT) {\n //there is still empty space on the screen, so haven't won\n return false;\n }\n }\n }\n //But if we get here, the snake has filled the screen. win!\n SnakeGame.setGameStage(SnakeGame.GAME_WON);\n\n return true;\n }",
"private boolean hitMyPaddle() {\n if (b.numX - 60 <= 0) {\n if ((b.numY <= (this.touchedY + 260)) && (b.numY >= (this.touchedY - 260))) {\n } else {\n this.wentOffWall();\n }\n return true;\n } else {\n return false;\n }\n }",
"private boolean isFull() {\n for (int i = 0; i < 6; i++)\n for (int j = 0; j < 7; j++)\n if (cell[i][j] == ' ')\n return false; // At least one cell is not filled\n\n // All cells are filled\n return true;\n }",
"protected static boolean isFull(final Board board)\r\n {\r\n for (int col = 0; col < board.getBoardKey()[0].length; col++)\r\n {\r\n for (int row = 0; row < board.getBoardKey().length; row++)\r\n {\r\n //if there is an empty space return false\r\n if (board.getKey(col, row) == Board.KEY_EMPTY)\r\n return false;\r\n }\r\n }\r\n \r\n //this board is full\r\n return true;\r\n }",
"public boolean isCollision(double x, double y) {\n return false;\n }",
"public static boolean isBoardFull() {\n\t\treturn spacesLeft == 0;\n\t}",
"public boolean is_full(){\n return this.habitant.size() >= Constantes.HOUSE_FULL;\n }",
"private boolean checkCollisions()\n {\n for (int i = 1; i < numFigs; i++)\n if (figures[0].collidedWith(figures[i]))\n return true;\n return false;\n }",
"private boolean isOpenSpace(int posX, int posY) {\r\n return Game.getGameBoard()[posX][posY] == Constants.EMPTY;\r\n }",
"@Override\n\tpublic boolean isCollided(SpaceShip invader, Rocket rocket) {\n\t\t//(posX + width) /2 , (posY + height) /2\n\t\tint spaceshipCenterX = (int)(invader.getPosition().getX() + invader.getSize().getWidth()) / 2;\n\t\tint spaceshipCenterY = (int)(invader.getPosition().getY() + invader.getSize().getHeight()) / 2;\n\t\tPoint spaceshipCenter = new Point(spaceshipCenterX, spaceshipCenterY);\n\t\tif (spaceshipCenter == rocket.getPosition())\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"public boolean isFull() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (getBoard()[i][j] == null)\n return false;\n }\n }\n return true;\n }",
"public boolean isFull() {\n return numMoves == MAX_MOVES;\n }",
"public boolean isLegal(int x_pos, int y_pos){\n //TODO\n //if the color is black,\n if(color==\"black\" || color.equals(\"black\")){\n for(int i=1; i<8; i++){\n if(this.x_pos-i==x_pos && y_pos==this.y_pos) return true;\n if(this.x_pos==x_pos && this.y_pos-i==y_pos) return true;\n }\n }\n //if the color is white, then its going up the board (you add the position)\n else{\n for(int i=1; i<8; i++){\n if(this.x_pos+i==x_pos && y_pos==this.y_pos) return true;\n if(this.x_pos==x_pos && this.y_pos+i==y_pos) return true;\n }\n }\n return false;\n }",
"public void collision() {\n\t\tcapacity = 0;\n\t\tcolor = ColorUtil.YELLOW;\n\t}",
"private void checkForCollisionWithSelf() {\r\n if (isInSnake(snake[0].row,snake[0].column,true)) {\r\n gameOver();\r\n }\r\n }",
"public boolean checkWallCollision(){\r\n\t\tint x;\r\n\t\tint y;\r\n\t\t\r\n\t\tif(pacman.direction.equals(\"up\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y > 0){\r\n\t\t\t\tif(colours[x][y-1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"down\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y < colours[0].length-1){\r\n\t\t\t\tif(colours[x][y+1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"left\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x > 0){\r\n\t\t\t\tif(colours[x-1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"right\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x < colours.length-1){\r\n\t\t\t\tif(colours[x+1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private boolean full()\n {\n // Check whether every column is full one by one\n for (int col = 0; col < COLUMNS; col++ )\n {\n // If a column is not full, the check failed\n if (chessBoard[0][col] == 0)\n {\n return false;\n }\n }\n // If all columns are full, the check passes\n return true;\n }",
"public boolean checkShot(int row, int col) {\n /* invalid board position */\n if(row < 1 || col < 1 || row > (this.boardHeight-1) || col > (this.boardWidth-1))\n return false;\n \n /* We have a hit! */\n if(this.board[row][col] == 'S') {\n this.board[row][col] = 'X';\n \n /* check if this was the last part of a ship, if so decrement the\n * number of ships left */\n if(this.board[row+1][col] != 'S' && this.board[row][col+1] != 'S' &&\n this.board[row-1][col] != 'S' && this.board[row][col-1] != 'S') {\n numShips--;\n }\n \n return true;\n }\n /* Did they really shoot at the same spot again? */\n else if(this.board[row][col] == 'X' || this.board[row][col] == 'O') {\n /* do nothing, penalize them for their foolish double shot! */\n return false;\n }\n /* The must have missed then */\n else {\n this.board[row][col] = 'O';\n return false;\n }\n }",
"@Override\n public boolean isGameOver() {\n if (!gameStarted) {\n return false;\n }\n // If any non-foundation pile still has cards, the game is not over.\n for (IPile pile : this.cascadePiles) {\n if (!pile.isEmpty()) {\n return false;\n }\n }\n for (IPile pile : this.openPiles) {\n if (!pile.isEmpty()) {\n return false;\n }\n }\n // If all the non-foundation piles are empty, the foundation piles must all be full,\n // so the game is over.\n return true;\n }",
"private void checkCollisions() {\n float x = pacman.getPos().x;\n float y = pacman.getPos().y;\n\n GameEntity e;\n for (Iterator<GameEntity> i = entities.iterator(); i.hasNext(); ) {\n e = i.next();\n // auf kollision mit spielfigur pruefen\n if (Math.sqrt((x - e.getPos().x) * (x - e.getPos().x) + (y - e.getPos().y) * (y - e.getPos().y)) < 0.5f)\n if (e.collide(this, pacman))\n i.remove();\n }\n }",
"private boolean isBoardFull() {\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n if (boardState[i][j] != 'X' && boardState[i][j] != 'O') {\n return false; \n }\n }\n }\n return true; \n }",
"public synchronized boolean isFull() {\r\n\t\treturn (this.players.size() == 6);\r\n\t}",
"public void checkCollision() {}",
"private static Boolean isFilled() \n\t{\n\t\tfor(Cells[] cellList : board)\n\t\t{\n\t\t\tfor(Cells cell : cellList)\n\t\t\t{\n\t\t\t\tif(cell==Cells.VOID)\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean isBoardFull() {\n //assume board is full\n boolean isFull = true;\n\n int i = 0;\n try {\n //if a column is not full => the board is not full and the loop ends\n while (isFull && i < NUM_COLS) {\n isFull = isColumnFull(i);\n i++;\n }\n } catch (IllegalColumnException e) {\n System.out.println(e + \" in MyGameState.java Method isBoardFull\");\n }\n\n return isFull;\n }",
"public boolean isPeace() {\r\n\t\tfor (int i=0; i<piece.size(); i++) {\r\n\t\t\tChessPiece p = piece.get(order[i]);\r\n\t\t\tif (p.chessPlayer.equals(\"black\") || p.chessPlayer.equals(\"white\")) {\r\n\t\t\t\tVector<ChessBoardBlock> blocks = this.getMovablePosition(p);\r\n\t\t\t\tif (blocks.size()>1) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean isInside(){\n\t\tinside = true;\n\t\tif(map.contains(new Rectangle(x,y,(int)spriteSize.getHeight(), (int)spriteSize.getWidth()))==false){\n\t\t\tinside = false;\n\t\t}\n\t\treturn(inside);\n\t}",
"public boolean hasPiece()\r\n\t{\r\n\t\treturn piece != null;\r\n\t}",
"private boolean checkCollision(int x, int y) {\r\n\t\tRectangle r = new Rectangle(); // Location Rectangle\r\n\t\tr.width = Tile.TILEWIDTH;\r\n\t\tr.height = Tile.TILEHEIGHT;\r\n\t\tr.x = x * Tile.TILEWIDTH;\r\n\t\tr.y = y * Tile.TILEHEIGHT;\r\n\t\tfor(Nonmoving n : handler.getWorld().getEntityManager().getNonmoving()) {\r\n\t\t\tif(n.getCollisionBounds(0, 0).intersects(r)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(Objects o : handler.getWorld().getEntityManager().getObjects()) {\r\n\t\t\tif(o.getCollisionBounds(0, 0).intersects(r)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean isHere(){ return this.piece.isAffected();}",
"private boolean colisionPalas() {\r\n\t\treturn game.racketIzq.getBounds().intersects(getBounds())\r\n\t\t\t\t|| game.racketDer.getBounds().intersects(getBounds());\r\n\t}",
"@Override\n\tpublic boolean onValidSurface()\n\t{\n\t\tif (!this.worldObj.getCollidingBoundingBoxes(this, this.getEntityBoundingBox()).isEmpty())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint i = Math.max(1, this.blocksToTakeUp());\n\t\t\tint j = Math.max(1, this.blocksToTakeUp());\n\t\t\tBlockPos blockpos = this.hangingPosition.offset(this.facingDirection.getOpposite());\n\t\t\tEnumFacing enumfacing = this.facingDirection.rotateYCCW();\n\n\t\t\tfor (int k = -i / 2 + 1; k < i / 2 + 1; ++k)\n\t\t\t{\n\t\t\t\tfor (int l = -j / 2 + 1; l < j / 2 + 1; ++l)\n\t\t\t\t{\n\t\t\t\t\tBlockPos blockpos1 = blockpos.offset(enumfacing, k).up(l);\n\t\t\t\t\tBlock block = this.worldObj.getBlockState(blockpos1).getBlock();\n\n\t\t\t\t\tif (block.isSideSolid(this.worldObj, blockpos1, this.facingDirection))\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (!block.getMaterial().isSolid() && !BlockRedstoneDiode.isRedstoneRepeaterBlockID(block))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (Entity entity : this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.getEntityBoundingBox()))\n\t\t\t{\n\t\t\t\tif (entity instanceof EntityHanging)\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t}",
"@Override\n\tpublic boolean check(piece[][] board) {\n\t\t\n\t\treturn false;\n\t\t\n\t}",
"@Override\n public boolean isCollided(gameObject obj){\n return Rect.intersects(obj.getastRect(), getRectplayer1())||\n Rect.intersects(obj.getastRect(), getRectplayer2()) ||\n Rect.intersects(obj.getastRect(), getRectplayer3()) ||\n Rect.intersects(obj.getastRect(), getRectplayer4());\n }",
"public boolean checkReached(float xTile, float yTile)\r\n/* 134: */ {\r\n/* 135:149 */ if ((this.mission) && (tileReachObjectives(xTile, yTile)))\r\n/* 136: */ {\r\n/* 137:152 */ this.reach[((int)xTile)][((int)yTile)] = 0;\r\n/* 138:153 */ this.reachablePlaces -= 1;\r\n/* 139:154 */ if (this.reachablePlaces == 0) {\r\n/* 140:156 */ return true;\r\n/* 141: */ }\r\n/* 142: */ }\r\n/* 143:160 */ return false;\r\n/* 144: */ }",
"public boolean allCellsFlooded() {\r\n for (ACell c : this.board) {\r\n if (!c.floodCheck()) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"public boolean validRook (int startRow, int startColumn, int endRow, int endColumn, Tile[][] board) {\n\t\t\n\t\tint distanceMovedUpDown =endRow-startRow; \n\t\tint distanceMovedLeftRight = endColumn-startColumn;\n\n\t\tif (distanceMovedUpDown !=0 && distanceMovedLeftRight != 0) { //have to stay in the same column or row to be valid\n\t\t\treturn false;\n\t\t}\n\n\n\t\tif (startRow == endRow) { //moving left or right \n\t\t\tif (Math.abs(distanceMovedLeftRight) > 1) { //checking if there's pieces btwn start and end if moving more than 1\n\t\t\t\tif (distanceMovedLeftRight > 0) {//moving to the right \n\t\t\t\t\tint x=startColumn + 1;\n\t\t\t\t\twhile (x < endColumn) {\n\t\t\t\t\t\tif (board[startRow][x].getOccupyingPiece() != null) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx++;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tif (distanceMovedLeftRight < 0) {//moving to the left\n\t\t\t\t\tint x = startColumn -1;\n\t\t\t\t\twhile (x > endColumn) {\n\t\t\t\t\t\tif (board[startRow][x].getOccupyingPiece() != null) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx--;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn true;\n\n\t\t}\n\t\tif (startColumn == endColumn) { //moving up or down\n\t\t\tif (Math.abs(distanceMovedUpDown) > 1) { //checking if there's pieces btwn start and end if moving more than 1\n\t\t\t\tif (distanceMovedUpDown > 0) {//moving up the array\n\t\t\t\t\tint x=startRow + 1;\n\t\t\t\t\twhile (x < endRow) {\n\t\t\t\t\t\tif (board[x][startColumn].getOccupyingPiece() != null) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx++;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tif (distanceMovedUpDown < 0) {//moving down the array\n\t\t\t\t\tint x = startRow -1;\n\t\t\t\t\twhile (x > endRow) {\n\t\t\t\t\t\tif (board[x][startColumn].getOccupyingPiece() != null) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx--;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\n\t}",
"private boolean isInsideBoard(int x, int y){\n if(x < 0 || x > getWidth() - 1 || y < 0 || y > getHeight() - 1)\n return false;\n\n return true;\n }",
"private boolean hasPiece(int row, int column) {\n if (board[row][column] == ' ') {\n return false;\n }\n return true;\n\t}",
"static boolean isPositionAlreadyFilled(int i, int j, String[][] board) {\r\n\t\tboolean isOccupied = false;\r\n\t\tif (board[i][j] == \"*\" || board[i][j] == \"O\") {\r\n\t\t\tSystem.out.println(i + \" \" + j + \"board is \" + board[i][j]\r\n\t\t\t\t\t+ \"The current place is already filled Please choose the other place to fill\");\r\n\t\t\tisOccupied = true;\r\n\t\t}\r\n\t\treturn isOccupied;\r\n\t}",
"private boolean isOwnOccupied(int x, int y) {\n for (int i = 0; i < player.own.length; i++) {\n if (player.own[i].x == x && player.own[i].y == y) {\n //System.out.println(\"own occupied:\" + i);\n return true;\n }\n }\n return false;\n }",
"private boolean full(Board board)\n {\n for (int i = 0; i < size; i++)\n for (int j = 0; j < size; j++)\n if (board.array[i][j] == EMPTY)\n return false;\n return true;\n }",
"public boolean check(double xDelt,double yDelt) {\r\n \tBounds pBound= player1.player.getBoundsInParent();\r\n \t\r\n \tfor( Node object: enemy1.hostileG.getChildren()) {\r\n \t\t\r\n \t\tif(object.getBoundsInParent().intersects(pBound.getMinX()+xDelt, pBound.getMinY()+yDelt, pBound.getWidth(), pBound.getHeight())){\r\n \t\t\teHealth -= inventory.getpDamage();\r\n \t\t\tpHealth -= 1;\r\n\r\n \t\t\tSystem.out.println(\"eHealth \"+ eHealth);\r\n \t\t\tSystem.out.println(\"pHealth \"+ pHealth);\r\n \t\t\t\r\n \t\t\t//\"Deaths of the sprites\"\r\n \t\t\tif(pHealth <=0) {\r\n \t\t\t\tlayout.getChildren().remove(player1.player);\r\n \t\t\t\tSystem.out.println(\"You died!\");\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(eHealth <=0) {\r\n \t\t\t\tlayout.getChildren().remove(enemy1.enemy);\r\n \t\t\t\tenemy1.enemy.setLayoutX(-10000);\r\n \t\t\t\tenemy1.enemy.setLayoutY(-10000);\r\n \t\t\t}\r\n \t\treturn false;\r\n \t\t}\r\n }\r\n \t\r\n \tfor( Node object: map1.walls.getChildren()) {\r\n \t\tif(object.getBoundsInParent().intersects(pBound.getMinX()+xDelt, pBound.getMinY()+yDelt, pBound.getWidth(), pBound.getHeight())) return false;\r\n \t}\r\n \t\r\n \tfor( Node chest: map1.chests.getChildren()) {\r\n \tif(chest.getBoundsInParent().intersects(pBound.getMinX()+xDelt, pBound.getMinY()+yDelt, pBound.getWidth(), pBound.getHeight())){\r\n \t\tmap1.chests.getChildren().remove(chest);\r\n \t chestchose=inventory.getchestchose();\r\n \t \r\n \t if(chestchose==1) {\r\n \t \tinventory.sworda.setVisible(true);\r\n \t \tinventory.setpDamage(3);\r\n \t }\r\n \t if(chestchose==2) {\r\n \t \tinventory.healthbag.setVisible(true);\r\n \t }\r\n \t \r\n \t return false;\r\n \t} \r\n }\t\r\n \t\r\n return true;\r\n }",
"public boolean checkCollision(int x, int y){\n return x<=xEnd&&x>=xStart&&y<=yEnd&&y>=yStart;\n }",
"public boolean checkIfFull() {\n this.isFull = true;\n for(int i=0; i<this.size; i++) {\n for(int j=0; j<this.size; j++) if(this.state[i][j].isEmpty) this.isFull = false;\n }\n }"
] | [
"0.7072649",
"0.6808622",
"0.68035954",
"0.6759583",
"0.6752581",
"0.67311865",
"0.6715467",
"0.6650014",
"0.664811",
"0.6615603",
"0.65667534",
"0.6529603",
"0.6501599",
"0.6500498",
"0.6498121",
"0.64897615",
"0.6468384",
"0.6452958",
"0.6452247",
"0.6431364",
"0.6422948",
"0.6420978",
"0.64038765",
"0.64018625",
"0.63916713",
"0.63894194",
"0.63661605",
"0.6364291",
"0.6361354",
"0.6361279",
"0.6349387",
"0.63466346",
"0.6342354",
"0.6340409",
"0.63204163",
"0.6319568",
"0.6301638",
"0.6299622",
"0.6295848",
"0.62928534",
"0.628194",
"0.6277396",
"0.6277171",
"0.62721205",
"0.62692773",
"0.6263638",
"0.62606436",
"0.6256779",
"0.62466586",
"0.6245926",
"0.62403375",
"0.6236527",
"0.62305534",
"0.6229633",
"0.62286806",
"0.62237006",
"0.6222505",
"0.6212801",
"0.6210368",
"0.619675",
"0.6181636",
"0.618148",
"0.6180673",
"0.6178558",
"0.6178246",
"0.6174666",
"0.61723906",
"0.61722004",
"0.6171292",
"0.61598414",
"0.61589617",
"0.6153708",
"0.6151815",
"0.6150005",
"0.6149979",
"0.6146564",
"0.6142896",
"0.61352074",
"0.6124589",
"0.6122263",
"0.61214775",
"0.6119065",
"0.6118225",
"0.61102194",
"0.61093915",
"0.6106656",
"0.61049324",
"0.61007833",
"0.6094021",
"0.6086633",
"0.6086305",
"0.6078349",
"0.607824",
"0.6074736",
"0.6071137",
"0.60689443",
"0.6063501",
"0.6060661",
"0.6056719",
"0.6048923",
"0.60434705"
] | 0.0 | -1 |
checks if currentPiece will be out of bounds return true if out of bounds | protected boolean detectOutOfBounds(TetrisPiece piece, int rot, int gridRow, int gridCol) {
// goes through rows and columns of filledSquares matrices
for(int i = 0; i < 4; i++) {
for(int j = 0; j < 4; j++) {
if(piece.isFilled(rot, i, j)) {
// conditions for out of bounds
if(i + gridRow > NUM_ROWS - 1 || j + gridCol < 0 || j + gridCol > NUM_COLS - 1) {
return true;
}
}
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean outOfBounds()\n {\n if((lastpowerUp.equals(\"BLUE\") || lastpowerUp.equals(\"RAINBOW\")) && powerupTimer > 0)\n {\n return false;\n }\n \n if(head.getA() < 150 || head.getA() >= 1260)\n return true;\n else if(head.getB() <150 || head.getB() >=630)\n return true;\n else \n return false;\n \n \n }",
"@Override\n\tpublic boolean outOfBounds() {\n\t\treturn this.getY() < 0;\n\t}",
"public boolean outOfRange(){\r\n\t\t\treturn (shape.x <=0 ? true : false);\r\n\t\t}",
"public abstract boolean isOutOfBounds(int x, int y);",
"private boolean isAboveLimit(FallingPiece piece){\r\n\t\tfor (Point p : piece.allOuterPoints()) {\r\n if (p.Y() >= height) \r\n return true;\r\n }\r\n\t\treturn false;\r\n\t}",
"public boolean checkWin (int totalPieces){\n\t\treturn isFull();\n\t}",
"public boolean isOutOfBound(int actionVal, int row, int col)\n\t\t{\n\t\t\tif( ( actionVal == UP && row == 0) || ( actionVal == LEFT && col == 0) )\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if( ( actionVal == DOWN && row == rewards.length-1) || ( actionVal == RIGHT && col == rewards[0].length-1) )\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\t\n\t\t}",
"public boolean isOutOfBound(int actionVal, int row, int col)\n\t\t{\n\t\t\tif( (actionVal == UP && row == 0) || ( actionVal == LEFT && col == 0) )\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if( (actionVal == DOWN && row == utilities.length-1) || (actionVal == RIGHT && col == utilities[0].length-1) )\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\t\n\t\t}",
"private boolean isOutOfBounds(int row, int col) {\n if (row < 0 || row >= this.getRows()) {\n return true;\n }\n else if (col < 0 || col >= this.getColumns()) {\n return true;\n }\n else {\n return false; // the placement is valid\n }\n }",
"private boolean isOutOfBounds(int index) {\n return index < 0 || index >= this.size();\n }",
"private boolean outOfBounds(long n) {\n return n < 0 || n >= getSize();\n }",
"private boolean canGetOutOfCheck(boolean[][] moves, Piece piece) {\r\n\t\tfor (int i = 0; i < this.SIZE; i++) {\r\n\t\t\tfor (int j = 0; j < this.SIZE; j++) {\r\n\t\t\t\tif(checkMove(moves, piece, i, j)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n public boolean isInBounds(int row, int col) {\n return row >= 0 && row < grid.length && col >= 0 && col < grid[0].length;\n }",
"private boolean isLegalPositon(Position checkPosition){\n if (checkPosition.equalPosition(start)||checkPosition.equalPosition(end))\n return true;\n if(checkPosition.getRow()<0 || checkPosition.getCol()<0 || checkPosition.getRow()>=this.rows || checkPosition.getCol() >= this.cols){\n return false;\n }\n\n if(maze[checkPosition.getRow()][checkPosition.getCol()]== WallType.wall){\n return false;\n }\n return true;\n }",
"public boolean enemyOutOfBounds() {\n return (position.x < 0\n || position.x + TYPE_A_WIDTH > World.WORLD_WIDTH\n || position.y < 0\n || position.y + TYPE_A_HEIGHT > World.WORLD_HEIGHT);\n }",
"public boolean checkGameOver() {\n return ((posIniPiece[piece.getKind()] == piece.getPos(0)) && iteration > 0);\n }",
"public boolean isFull(){\n return this.top==this.maxLength-1;\n }",
"public boolean checkGameOver(){\n\t\tfor(int x = 0; x < this.tile[3].length; x++){\n\t\t if(this.isFilled(3, x)){\n\t\t \tSystem.out.println(\"game over\");\n\t\t return true;\n\t\t }\n\t\t}\n\t\treturn false;\n\t}",
"private boolean fail(Piece piece) {\n\n // To store the moving over\n int localColumnPos = columnPos - piece.getShift();\n\n // If the piece will go outside the bounds of the board, return false\n if (piece.getMatrix().length + rowPos > board.length ||\n piece.getMatrix()[0].length + localColumnPos > board[0].length || localColumnPos < 0) return true;\n\n // Check for no true true collisions\n for (int i = 0; i < piece.getMatrix().length; i++) {\n for (int j = 0; j < piece.getMatrix()[0].length; j++) {\n // If there is a true + true anywhere, do not add piece\n if (piece.getMatrix()[i][j] && board[i + rowPos][j + localColumnPos]) return true;\n }\n }\n return false;\n }",
"private boolean isInBound(int current, int bound){\n return (current >= 0 && current < bound);\n }",
"boolean gameOver() {\n return piecesContiguous(BP) || piecesContiguous(WP);\n }",
"public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }",
"private boolean inBounds(int row, int col){\n if (row > -1 && row < 120 && col > -1 && col < 160)\n return true;\n return false;\n }",
"private boolean cell_in_bounds(int row, int col) {\n return row >= 0\n && row < rowsCount\n && col >= 0\n && col < colsCount;\n }",
"public boolean isFull() {\n for (int r = 0; r < 6; r++) {\n for (int c = 0; c < 7; c++) {\n if (!hasPiece(r, c)) {\n return false;\n }\n }\n }\n return true;\n }",
"private boolean tileIsInbounds(int row, int col){\n\t\treturn row >= 0 && col >= 0\n\t\t\t\t&& row < board.length && col < board[0].length;\n\t}",
"public boolean isFull(){\n for(int i=0;i<3;i++){\n for(int j=0;j<3;j++){\n if(!gameBoard[i][j].equals(\"O\") && !gameBoard[i][j].equals(\"X\")){\n return false;\n }\n }\n }\n return true;\n }",
"private boolean isLegalPos(int row, int col){\r\n return !(row < 0 || row > 7 || col < 0 || col > 7);\r\n }",
"boolean gameOver() {\n return piecesContiguous(BLACK) || piecesContiguous(WHITE);\n }",
"public boolean validRook (int startRow, int startColumn, int endRow, int endColumn, Tile[][] board) {\n\t\t\n\t\tint distanceMovedUpDown =endRow-startRow; \n\t\tint distanceMovedLeftRight = endColumn-startColumn;\n\n\t\tif (distanceMovedUpDown !=0 && distanceMovedLeftRight != 0) { //have to stay in the same column or row to be valid\n\t\t\treturn false;\n\t\t}\n\n\n\t\tif (startRow == endRow) { //moving left or right \n\t\t\tif (Math.abs(distanceMovedLeftRight) > 1) { //checking if there's pieces btwn start and end if moving more than 1\n\t\t\t\tif (distanceMovedLeftRight > 0) {//moving to the right \n\t\t\t\t\tint x=startColumn + 1;\n\t\t\t\t\twhile (x < endColumn) {\n\t\t\t\t\t\tif (board[startRow][x].getOccupyingPiece() != null) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx++;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tif (distanceMovedLeftRight < 0) {//moving to the left\n\t\t\t\t\tint x = startColumn -1;\n\t\t\t\t\twhile (x > endColumn) {\n\t\t\t\t\t\tif (board[startRow][x].getOccupyingPiece() != null) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx--;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn true;\n\n\t\t}\n\t\tif (startColumn == endColumn) { //moving up or down\n\t\t\tif (Math.abs(distanceMovedUpDown) > 1) { //checking if there's pieces btwn start and end if moving more than 1\n\t\t\t\tif (distanceMovedUpDown > 0) {//moving up the array\n\t\t\t\t\tint x=startRow + 1;\n\t\t\t\t\twhile (x < endRow) {\n\t\t\t\t\t\tif (board[x][startColumn].getOccupyingPiece() != null) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx++;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tif (distanceMovedUpDown < 0) {//moving down the array\n\t\t\t\t\tint x = startRow -1;\n\t\t\t\t\twhile (x > endRow) {\n\t\t\t\t\t\tif (board[x][startColumn].getOccupyingPiece() != null) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx--;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\n\t}",
"private boolean inBounds(int row, int col)\n {\n return ((row >= 0) && (row < NUM_ROWS) &&\n (col >= 0) && (col < NUM_COLS)); \n }",
"private boolean checkOverlap(int row, int col, int length){\n \tif(!inBounds(row,col)){\n \t\treturn false;\n \t}\n \tfor(int i = row; i < row + length; i++ ){\n\t\t\tfor(int j = col; j < col + length; j++){\n\t\t\t\tif(grid[i][col] == 1 || row + length >= 10)\n\t\t\t\t\treturn false;\n\t\t\t\tif(grid[row][j] == 1 || col + length >= 10)\n\t\t\t\t\treturn false;\n\t\t\t}\n \t\t\n \t}\n \treturn true;\n }",
"private boolean endSquareContainsPiece(Chessboard chessboard, Piece piece, int end) {\n\t\tif (!(0 <= end && end < 64)) {\n\t\t\treturn false;\n\t\t}\n\t\tPiece endContents = chessboard.getSquareContents(end);\n\t\tif (endContents == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (endContents.getSign() != piece.getSign()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn white ? endContents.amIWhite() : !endContents.amIWhite();\n\t}",
"private boolean outOfBounds(int nidx1){\n\t\treturn (nidx1 < 0 || nidx1 >= numofvert);\n\t}",
"private boolean beyondBoard(int col, int row) {\n if (col >= size || row >= size || col <= -1 || row <= -1) {\n return true;\n }\n return false;\n }",
"private boolean checkMoveBase(Pieces piece, Coordinates from, Coordinates to) {\n\t\t//seleziono una posizione senza pedina\n\t\tif ( piece == null )\n\t\t\treturn false;\n\n\t\t//se la posizione tu non è contenuta nelle soluzioni valide della pedina from\n\t\tif ( !piece.validPositions(from).contains(to) )\n\t\t\treturn false;\n\n\t\t//se la posizione di destinazione contiene una pedina dello stesso colore\n\t\treturn !( chessboard.at(to) != null && chessboard.at(to).getColour().equals(piece.getColour()));\n\t}",
"public boolean canSpawnMore() {\n for(int e: enemiesLeft) {\n if(e > 0) {\n return true;\n }\n }\n\n return false;\n }",
"public boolean validMove(ChessBoard board, Square from, Square to) {\r\n // check if piece killing his ally\r\n if(to.getPiece() != null){\r\n if (to.getPiece().isBlue() == this.isBlue()) {\r\n return false;\r\n }\r\n } \r\n\r\n int x = from.getX() - to.getX();\r\n int y = from.getY() - to.getY();\r\n \r\n if (x < 0 && Math.abs(x) == Math.abs(y) && y > 0){\r\n int j = from.getY()-1;\r\n for( int i = from.getX()+1 ; i < to.getX() ; i++){\r\n if (board.getBox(i,j).getPiece()!=null){\r\n return false;}\r\n j--;\r\n } \r\n return true;\r\n }\r\n else if(x > 0 && Math.abs(x) == Math.abs(y) && y > 0){\r\n int j = from.getY()-1;\r\n for( int i = from.getX()-1 ; i > to.getX() ; i--){\r\n if (board.getBox(i,j).getPiece()!=null){\r\n return false;}\r\n j--;\r\n }\r\n return true;\r\n }\r\n else if( x > 0 && Math.abs(x) == Math.abs(y) && y < 0){\r\n int j = from.getY()+1;\r\n for( int i = from.getX()-1 ; i > to.getX() ; i--){\r\n if (board.getBox(i,j).getPiece()!=null){\r\n return false;}\r\n j++;\r\n }\r\n return true; \r\n }\r\n else if (x < 0 && Math.abs(x) == Math.abs(y) && y < 0){\r\n int j = from.getY()+1;\r\n for( int i = from.getX()+1 ; i < to.getX() ; i++){\r\n if (board.getBox(i,j).getPiece()!=null){\r\n return false;}\r\n j++;\r\n } \r\n return true;\r\n }\r\n\r\n return false;\r\n }",
"private boolean isInBounds(int i, int j)\n {\n if (i < 0 || i > size-1 || j < 0 || j > size-1)\n {\n return false;\n }\n return true;\n }",
"private boolean checkRange(final int index) {\n if ((index > size) || (index < 0)) {\n return false;\n }\n return true;\n }",
"public static boolean isFull() {\n return (board[0][0] > 0 && board[0][1] > 0 && board[0][2] > 0\n && board[1][0] > 0 && board[1][1] > 0 && board[1][2] > 0\n && board[2][0] > 0 && board[2][1] > 0 && board[2][2] > 0\n && board[0][0] > 0 && board[1][0] > 0 && board[2][0] > 0\n && board[0][1] > 0 && board[1][1] > 0 && board[2][1] > 0\n && board[0][2] > 0 && board[1][2] > 0 && board[2][2] > 0\n && board[0][0] > 0 && board[1][1] > 0 && board[2][2] > 0\n && board[0][2] > 0 && board[1][1] > 0 && board[2][0] > 0);\n }",
"private boolean checkIndexBounds(int idx) {\n return (idx >= 0) && (idx <= this.length);\n }",
"private boolean hitSides() {\n if (b.numY + 60 >= BOX_HEIGHT || (b.numY - 60 <= 0)) {\n return true;\n } else {\n return false;\n }\n }",
"public boolean canMove() {\n ArrayList<Location> valid = canMoveInit();\n if (valid == null || valid.isEmpty()) {\n return false;\n }\n ArrayList<Location> lastCross = crossLocation.peek();\n for (Location loc : valid) {\n Actor actor = (Actor) getGrid().get(loc);\n if (actor instanceof Rock && actor.getColor().equals(Color.RED)) {\n next = loc;\n isEnd = true;\n return false;\n }\n if (!lastCross.contains(loc)) {\n lastCross.add(loc);\n next = loc;\n ArrayList<Location> nextCross = new ArrayList<>();\n nextCross.add(next);\n nextCross.add(last);\n crossLocation.push(nextCross);\n return probabilityAdd();\n }\n }\n next = lastCross.get(1);\n crossLocation.pop();\n return probabilitySub();\n }",
"public boolean isFull(){\r\n\t\tfor(int i = 0; i < boardSize; i++){\r\n\t\t\tif(board[i] == Box.EMPTY){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean validMove(ChessBoard board, Square from, Square to) {\r\n // check if piece killing his ally\r\n if(to.getPiece() != null){\r\n if (to.getPiece().isBlue() == this.isBlue()) {\r\n return false;\r\n }\r\n } \r\n\r\n int x = Math.abs(from.getX() - to.getX());\r\n int y = Math.abs(from.getY() - to.getY());\r\n if((from.getX() - to.getX()) > 0 || (from.getY() - to.getY()) > 0){\r\n if ((x == 0 && y >= 1)) {\r\n for(int i = 1; i <= y-1; i++){\r\n if(board.getBox(from.getX(), from.getY() - i).getPiece() != null){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }else if((x >= 1 && y == 0)){\r\n for(int i = 1; i <= x-1; i++){\r\n if(board.getBox(from.getX() - i, from.getY()).getPiece() != null){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n }else if((from.getX() - to.getX()) < 0 || (from.getY() - to.getY()) < 0){\r\n if (x == 0 && (from.getY() - to.getY()) <= -1) {\r\n for(int i = y-1; i > 0; i--){\r\n if(board.getBox(from.getX(), from.getY() + i).getPiece() != null){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }else if((from.getX() - to.getX()) <= -1 && y == 0){\r\n for(int i = x-1; i > 0; i--){\r\n if(board.getBox(from.getX() + i, from.getY()).getPiece() != null){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"public boolean meWin(){\n return whitePieces.size() > blackPieces.size() && isWhitePlayer;\n }",
"public boolean atPosition() {\n return m_X.getClosedLoopError() < Constants.k_ToleranceX;\n }",
"private boolean hasHitBoundry() {\r\n if (snake[HEAD].row < 0 || \r\n snake[HEAD].row >= maxRows ||\r\n snake[HEAD].column < 0 ||\r\n snake[HEAD].column >= maxColumns) {\r\n gameOver();\r\n return true;\r\n }\r\n return false;\r\n }",
"public boolean isFull() {\n if(this.top==(size - 1)) {\n return true;\n }\n return false;\n }",
"public boolean validBish (int startRow, int startColumn, int endRow, int endColumn, Tile[][] board) {\n\t\t\n\n\t\tif (Math.abs(startRow-endRow)==Math.abs(startColumn-endColumn)) {\n\t\t\tint distanceMovedRows = startRow-endRow;\n\t\t\tint distanceMovedCols =startColumn-endColumn;\n\t\t\tif (distanceMovedRows > 0 && distanceMovedCols < 0) {\n\n\t\t\t\tint x=startRow-1;\n\t\t\t\tint y = startColumn+1;\n\t\t\t\twhile (x > endRow && y < endColumn) { \n\t\t\t\t\tif (board[x][y].getOccupyingPiece() != null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tx--; y++;\n\t\t\t\t}\n\t\t\t} \n\t\t\tif (distanceMovedRows > 0 && distanceMovedCols > 0) { \n\n\t\t\t\tint x=startRow-1;\n\t\t\t\tint y = startColumn-1;\n\t\t\t\twhile (x > endRow && y > endColumn) {\n\t\t\t\t\tif (board[x][y].getOccupyingPiece() != null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tx--; y--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (distanceMovedRows < 0 && distanceMovedCols < 0) {\n\n\t\t\t\tint x=startRow+1;\n\t\t\t\tint y = startColumn+1;\n\n\t\t\t\twhile (x < endRow && y < endColumn) {\n\t\t\t\t\tif (board[x][y].getOccupyingPiece() != null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tx++; y++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (distanceMovedRows < 0 && distanceMovedCols > 0) {\n\n\t\t\t\tint x=startRow+1;\n\t\t\t\tint y = startColumn-1;\n\n\t\t\t\twhile (x < endRow && y > endColumn) {\n\t\t\t\t\tif (board[x][y].getOccupyingPiece() != null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tx++; y--;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"private boolean isValidPosition(Point pos){\r\n return (0 <= pos.getFirst() && pos.getFirst() < 8 && \r\n 0 <= pos.getSecond() && pos.getSecond() < 8);\r\n }",
"private boolean checkFull() {\n\t\treturn this.array.length - 1 == this.lastNotNull();\n\t}",
"public boolean inBound(int x, int y) {\n\n if (x < 0 || x >= boardSize.x || y < 0 || y >= boardSize.y) {\n return false;\n } else {\n return true;\n }\n }",
"private boolean checkInBounds(int startX, int startY, int finalX, int finalY) {\r\n\t\treturn startX < 0 || startX >= this.SIZE || startY < 0 || startY >= this.SIZE\r\n\t\t\t\t|| finalX < 0 || finalX >= this.SIZE || finalY < 0 || finalY >= this.SIZE;\r\n\t}",
"public void outOfBoundsError() {\r\n\t\tSystem.out.println(\"\\nYou moved out of bounds, choose again.\");\r\n\t}",
"public boolean kingCheck(ArrayList<Piece> pieces) {\r\n boolean check = false;\r\n int[] kingCoords = new int[]{this.getX(), this.getY()};\r\n\r\n for (Piece piece : pieces) {\r\n if (piece.getColor() != this.getColor()) { // If the color does not match the king's color...\r\n for (int[] coordinate : piece.range) {\r\n if (coordinate[0] == kingCoords[0] && coordinate[1] == kingCoords[1]) { // Checks to see if the king is in range of enemy pieces\r\n check = true;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n return check;\r\n }",
"private boolean allowedBackTile(Tile current, Tile[] neighbors){\n\t\t\tint currentIndex = current.getBackIndex();\n\t\t\tif(currentIndex == 0) return true;\n\t\t\t\n\t\t\tMap<Point, Integer[]> compatibility = EditorGUI.spritesComp;\n\t\t\tfor(int i=0; i<neighbors.length; i++){\n\t\t\t\tTile side = neighbors[i];\n\t\t\t\t\n\t\t\t\t// out of matrix bounds : all tiles allowed\n\t\t\t\tif(side == null) continue;\n\t\t\t\t// side is an empty tile\n\t\t\t\tif(side.getBackIndex() == 0) continue;\n\t\t\t\t\n\t\t\t\tInteger[] compatibles = compatibility.get(new Point(currentIndex,i));\n\t\t\t\tif(compatibles != null){\n\t\t\t\t\tboolean found = false;\n\t\t\t\t\tfor(int j=0; j<compatibles.length; j++){\n\t\t\t\t\t\tif(compatibles[j].intValue() == side.getBackIndex()){\n\t\t\t\t\t\t\tfound = true;\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\tif( !found ) return false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}",
"public boolean canMoveUpIn(GameBoard b) {\n boolean checker = true;\n\n if(this.topLeftY==0) //wall\n checker = false;\n\n if(this.topLeftY>0){//not hitting top wall\n for (int i = 0; i < b.getNumGamePieces(); i++) {//go through game pieces\n if(b.getGamePieces()[i].topLeftY< this.topLeftY){//only checking pieces on above of this.\n if(b.getGamePieces()[i].topLeftY + b.getGamePieces()[i].height == this.topLeftY){//checking if y-axis line up\n if(this.topLeftX>=b.getGamePieces()[i].topLeftX){\n if(b.getGamePieces()[i].topLeftX+ b.getGamePieces()[i].width>this.topLeftX){//checking if x blocks\n checker=false;//then cant move\n break;\n }\n }\n }\n }\n\n\n }\n }return checker;\n\n }",
"public boolean isTotallyOnGrid() {\n\t\t\tfor(int i=0; i<4; i++) {\n\t\t\t\tif(position.y + i >= 0)\n\t\t\t\t\treturn true; //everything from here down is on grid\n\t\t\t\t// this row is above grid so look for non-empty squares\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tif(squares[i][j])\n\t\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\tSystem.err.println(\"TetrisPiece.isTotallyOnGrid internal error\");\n\t\t\treturn false;\n\t\t}",
"public boolean checkBoardFull() {\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n if (grid[i][j].getSymbol() == '-')\n return false;\n }\n }\n return true;\n }",
"public boolean getFull(){\n if(current==max)\n return false;\n return true;\n }",
"boolean outOfSight();",
"protected boolean checkRep() {\n if ( this.getX() < 0 || this.getY() < 0 || this.getX() >= 20 || this.getY() >= 20 ) {\n return false;\n }\n return true;\n }",
"private boolean legalMove() {\n\n\t\t// empty landing spot\n\t\tif (tilePath.size() == 0) {\n\t\t\tdebug(\"illegal, empty landing spot\");\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!mBoard.tileIsEmpty(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, tile not empty\");\n\t\t\treturn false;\n\t\t}\n\n\t\t// start doesn't equal end\n\t\tif (tilePath.get(0).equals(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, start doesn't equal end\");\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public static boolean insideBounds(GameTile tile) {\n\n if (tile == null) {\n return false;\n } else {\n\n int x = tile.getXCoord();\n int y = tile.getYCoord();\n\n return !(x < 0 || y < 0) && !(x > TILE_COLS || y > TILE_ROWS);\n\n }\n\n }",
"public boolean hasPieces() {\n return !(pieces.isEmpty());\n }",
"public boolean isFull() {\r\n return placeCounter == dimension * dimension;\r\n }",
"private boolean isValidMove(int pressedHole) {\n return getPlayerHole(pressedHole).getKorgools() != 0;\n }",
"private boolean isFull(){\n return cellSize == Max;\n }",
"private boolean canEats(Point piece){\r\n\t// direction -1: red pieces +1: black pieces\r\n int dir = isRed(piece)? -1:+1;\r\n int dest = dir * 2; // eat move destination\r\n // compute movement points\r\n Point left = new Point(piece.getFirst() + dir, piece.getSecond() - 1);\r\n Point left2 = new Point(piece.getFirst()+ dest, piece.getSecond() - 2);\r\n Point right = new Point(piece.getFirst() + dir, piece.getSecond() + 1);\r\n Point right2 = new Point(piece.getFirst() + dest, piece.getSecond() + 2);\r\n // check left eat\r\n if(isValidPosition(left) && isValidPosition(left2)){\r\n if(isRed(piece) && isBlack(left) && isEmpty(left2)) return true;\r\n if(isBlack(piece) && isRed(left) && isEmpty(left2)) return true;\r\n }\r\n // check right eat\r\n if(isValidPosition(right) && isValidPosition(right2)){\r\n if(isRed(piece) && isBlack(right) && isEmpty(right2)) return true;\r\n if(isBlack(piece) && isRed(right) && isEmpty(right2)) return true;\r\n }\r\n // if is a queen\r\n if(isQueen(piece)){\r\n // compute queen move points (invert direction)\r\n Point leftQ = new Point(piece.getFirst() - dir, piece.getSecond() - 1);\r\n Point leftQ2 = new Point(piece.getFirst() - dest, piece.getSecond() - 2);\r\n Point rightQ = new Point(piece.getFirst() - dir, piece.getSecond() + 1);\r\n Point rightQ2 = new Point(piece.getFirst() - dest, piece.getSecond() + 2);\r\n // check left eat\r\n if(isValidPosition(leftQ) && isValidPosition(leftQ2)){\r\n if(isRed(piece) && isBlack(leftQ) && isEmpty(leftQ2)) return true;\r\n if(isBlack(piece) && isRed(leftQ) && isEmpty(leftQ2)) return true;\r\n }\r\n // check right eat\r\n if(isValidPosition(rightQ) && isValidPosition(rightQ2)){\r\n if(isRed(piece) && isBlack(rightQ) && isEmpty(rightQ2)) return true;\r\n if(isBlack(piece) && isRed(rightQ) && isEmpty(rightQ2)) return true;\r\n }\r\n }\r\n return false;\r\n }",
"private boolean validateOutOfRangeCoordinate() throws IOException {\n int maxValue = Integer.parseInt(Objects.requireNonNull(FileUtils.getProperty(\"max-coordinate-value\")));\n return (Math.abs(getX()) > maxValue) || (Math.abs(getY()) > maxValue);\n }",
"public static boolean hasSpaceForPiece(int[] piece, int pos) {\n for (int f = 0; f < piece.length; ++f) {\n int color = piece[f];\n if (color != ColorFrames.NO_FRAME && pieces[pos - 1][f] != ColorFrames.NO_FRAME)\n return false;\n }\n\n return true;\n }",
"public boolean isFull() {\n return numMoves == MAX_MOVES;\n }",
"boolean isLegal(Move move) {\n int count = pieceCountAlong(move);\n int c0 = move.getCol0();\n int r0 = move.getRow0();\n int c1 = move.getCol1();\n int r1 = move.getRow1();\n int count2 = Math.max(Math.abs(c1 - c0), Math.abs(r1 - r0));\n return ((count == count2) && !blocked(move));\n }",
"public boolean isValid() {\n\t\treturn (x >= 0 && x < Board.SIZE && y >= 0 && y < Board.SIZE);\n\t}",
"public boolean detectBound(){\n if(posX < 0 || posX > width || posY < 0 || posY > height){\n return true;\n }\n else{\n return false;\n }\n }",
"public boolean canMoveDownIn(GameBoard b) {\n boolean checker = true;\n\n if(this.topLeftY+this.height==6)//wall\n checker=false;\n\n if(this.topLeftY+this.height<6){//not hitting bottom wall\n for (int i = 0; i < b.getNumGamePieces(); i++) {// go through game pieces\n if(this.topLeftY< b.getGamePieces()[i].topLeftY){//only checking pieces on bottom of this.\n if(this.topLeftY+this.height==b.getGamePieces()[i].topLeftY){//checking if y-axis line up\n if(this.topLeftX>=b.getGamePieces()[i].topLeftX){\n if(b.getGamePieces()[i].topLeftX+ b.getGamePieces()[i].width>this.topLeftX){\n checker=false;//then cant move\n break;\n }\n }\n }\n }\n }\n }return checker;\n\n }",
"private boolean isValidIndex(final int theY, final int theX) {\n return 0 <= theY && theY < myGrid.length\n && 0 <= theX && theX < myGrid[theY].length;\n }",
"public boolean inRange(){\n //System.out.println(\"inRange\");\n return Math.abs(GameView.instance.player.position.x - creationPoint.x) < GameView.instance.cameraSize * attackRange;\n }",
"public boolean inBounds(Board board) {\n return row >= 0 && column >= 0\n && row < board.nQueens && column < board.nQueens;\n }",
"public boolean is_full(){\n return this.habitant.size() >= Constantes.HOUSE_FULL;\n }",
"public boolean isFull() {\n\t\treturn (rear+1)%total_size == front;\r\n\t}",
"@Override\r\n public boolean canMove() {\r\n Grid<Actor> gr = getGrid();\r\n int dirs[] = {\r\n Location.AHEAD, Location.HALF_CIRCLE, Location.LEFT,\r\n Location.RIGHT };\r\n // 当终点在周围时,不能移动且isEnd应当为true\r\n for (int i = 0; i < dirs.length; i++) {\r\n Location tarLoc = getLocation().getAdjacentLocation(dirs[i]);\r\n if (gr.isValid(tarLoc) && gr.get(tarLoc) != null) {\r\n // Color直接用==计算竟然不可行(真是哔了dog...\r\n if (gr.get(tarLoc) instanceof Rock\r\n && gr.get(tarLoc).getColor().equals(Color.RED)) {\r\n isEnd = true;\r\n return false;\r\n }\r\n }\r\n }\r\n ArrayList<Location> nextLocs = getValid(getLocation());\r\n // 当附近没有可以移动的位置时,不能移动\r\n if (nextLocs.size() == 0) {\r\n return false;\r\n }\r\n // 当可以移动的位置>1时,说明存在一个节点,这个节点应当被新建一个arraylist入栈\r\n if (nextLocs.size() > 1) {\r\n ArrayList<Location> newStackElem = new ArrayList<Location>();\r\n newStackElem.add(getLocation());\r\n crossLocation.push(newStackElem);\r\n }\r\n // 有可以移动的位置时,向概率最高的方向移动\r\n int maxProbLoc = 0;\r\n // 由于nextLocs不一定有4个location,所以只好循环判断取最大值\r\n for (int i = 0; i < nextLocs.size(); i++) {\r\n Location loc = nextLocs.get(i);\r\n int dirNum = getLocation().getDirectionToward(loc) / 90;\r\n if (probablyDir[dirNum] > probablyDir[maxProbLoc]) {\r\n maxProbLoc = i;\r\n }\r\n }\r\n next = nextLocs.get(maxProbLoc);\r\n return true;\r\n }",
"public boolean hasMoves() {\n if(color != 0){\n activePieces = getPiece();\n\n for(int i = 0; i < activePieces.size(); i++){\n Piece curr = activePieces.get(i);\n\n if(curr.possibleMoves(state).size() > 0){\n //curr.printSpecial();\n return true;\n }\n }\n return false;\n }\n System.out.println(\"Empty stop error\");\n return false;\n }",
"public boolean checkForEndgame() {\n\t\tCalculatePossibleMoves(true);\n\t\tint blackMoves = getNumberOfPossibleMoves();\n\t\tCalculatePossibleMoves(false);\n\t\tint redMoves = getNumberOfPossibleMoves();\n\t\t\n\t\tif (blackMoves == 0 && redMoves == 0)\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean validMove(int xEnd, int yEnd, board b){\n\t\t//try to land one same color piece\n\t\tif(b.occupied(xEnd, yEnd)&&b.getPiece(xEnd, yEnd).getColor()==color){\n\t\t\treturn false;\n\t\t}\n\t\tif(v==0){\n\t\t\tif(!this.guard(xEnd, yEnd, b)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//normal move\n\t\tif((xEnd==x-1&&yEnd==y-1)||(xEnd==x-1&&yEnd==y)||(xEnd==x-1&&yEnd==y+1)||(xEnd==x&&yEnd==y-1)||(xEnd==x&&yEnd==y+1)||(xEnd==x+1&&yEnd==y-1)||(xEnd==x+1&&yEnd==y)||(xEnd==x+1&&yEnd==y+1)){\n\t\t\tif(b.occupied(xEnd, yEnd)){\n\t\t\t\t//set the enpass flage back\n\t\t\t\tb.setFlag(color, 100, 100);\n\t\t\t\tb.recycle(xEnd, yEnd);\n\t\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\t\tb.update();\n\t\t\t\tc=0;\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\t//set the enpass flage back\n\t\t\t\tb.setFlag(color, 100, 100);\n\t\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\t\tb.update();\n\t\t\t\tc=0;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}else if((xEnd==x-2&&yEnd==y)){ //castling\n\t\t\tpiece r = b.getPiece(0, y);\n\t\t\tif(r==null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(r.getC()==0||r.getColor()!=color||r.getType()!= type.ROOK||c==0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor(int i=3;i>0;i--){\n\t\t\t\tif(b.occupied(i, y)){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\tr.setPosition(3,y);\n\t\t\tc=0;\n\t\t\tr.setC(0);\n\t\t\tb.setFlag(color, 100, 100);\n\t\t\tb.update();\n\t\t\treturn true;\n\t\t}else if((xEnd==x+2&&yEnd==y)){\n\t\t\tpiece r = b.getPiece(7, y);\n\t\t\tif(r==null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(r.getC()==0||r.getColor()!=color||r.getType()!= type.ROOK||c==0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor(int i=5;i<=6;i++){\n\t\t\t\tif(b.occupied(i, y)){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\tr.setPosition(5,y);\n\t\t\tc=0;\n\t\t\tr.setC(0);\n\t\t\tb.setFlag(color, 100, 100);\n\t\t\tb.update();\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean hitMyPaddle() {\n if (b.numX - 60 <= 0) {\n if ((b.numY <= (this.touchedY + 260)) && (b.numY >= (this.touchedY - 260))) {\n } else {\n this.wentOffWall();\n }\n return true;\n } else {\n return false;\n }\n }",
"private boolean hasValidBounds() {\n\n\n\n return false;\n }",
"public boolean isFull(int row, int col) {\n if (row - 1 >= grid.length || col - 1 >= grid.length || row - 1 < 0 || col - 1 < 0) {\n throw new IllegalArgumentException(\"index is out of boundary.\");\n }\n if (grid.length == 1) {\n return isOpen(row, col);\n }\n return uf.find(ufindex(row, col)) == uf.find(grid.length * grid.length) && isOpen(row, col);\n }",
"public int checkIsEndState() {\n if (higherIndex - lowerIndex <= 1) {\n if (checkIsLeftBound(inputArray, lowerIndex)) {\n return lowerIndex;\n } else if (checkIsRightBound(inputArray, higherIndex)) {\n return higherIndex;\n }\n }\n return -1;\n }",
"public boolean checkLessThanMaxX() {\n return (currX + getXMargin) <= getMaxX;\n }",
"public boolean isLegalStep(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\tPlayer white = currentGame.getWhitePlayer();\n\t\tint[] toCheckPos = new int[2];\n\t\tint[] existingPos = new int[2];\n\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\ttoCheckPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t} else {\n\t\t\ttoCheckPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t}\n\t\t//0 = column, 1 = row\n\t\tif(dir == MoveDirection.North) {\n\t\t\tif(toCheckPos[1] == 1) return false;\n\t\t\tif(toCheckPos[1] - 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), -1, 0);\n\t\t} else if(dir == MoveDirection.South) {\n\t\t\tif(toCheckPos[1] == 9) return false;\n\t\t\tif(toCheckPos[1] + 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 1, 0);\n\t\t} else if(dir == MoveDirection.East) {\n\t\t\tif(toCheckPos[0] == 9) return false;\n\t\t\tif(toCheckPos[0] + 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, 1);\n\t\t} else if(dir == MoveDirection.West) {\n\t\t\tif(toCheckPos[0] == 1) return false;\n\t\t\tif(toCheckPos[0] - 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, -1);\n\t\t}\n\t\t\n\t\treturn false;\r\n }",
"public boolean isFull() {\n\t\tboolean full = true;\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tfor (int j = 0; j < 9; j++) {\n\t\t\t\tif (board[i][j] == '-') {\n\t\t\t\t\tfull = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn full;\n\t}",
"private boolean isInsideBoard(int x, int y){\n if(x < 0 || x > getWidth() - 1 || y < 0 || y > getHeight() - 1)\n return false;\n\n return true;\n }",
"private void checkEndGame() {\n if (field.getStackSize() == (field.getPegCount() - 1)) {\n endGame = true;\n }\n }",
"@Override\n public boolean canMovePieceAtPoint(Point point) {\n return (getPiece(point) != null);\n }",
"public boolean isFull(int row, int col) {\n if ((row > (size-1)) || (col > (size-1)) || (col < 0) || (row < 0)) {\r\n throw new java.lang.IndexOutOfBoundsException();\r\n }\r\n else if (grid[row][col] == 2) {\r\n return true;\r\n } else return false;\r\n }",
"private boolean columnOkay(int row, int column) throws Exception {\n ArrayList<Integer> clue = puzzle.getColumnClue(column);\n var filledGroups = searchBoard.getFilledGroups(column, TraversalType.COLUMN);\n if(filledGroups.size() > clue.size()) {\n return false;\n }\n int availableSquares = puzzle.getRows()-row-1;\n int tilesRequired;\n if(filledGroups.size() == 0) {\n tilesRequired = clue.size()-1;\n for(int s : clue) {\n tilesRequired += s;\n }\n } else {\n int index = filledGroups.size()-1;\n if(filledGroups.get(index) > clue.get(index)) {\n return false;\n }\n if(searchBoard.getState(row, column) == CellState.EMPTY && !filledGroups.get(index).equals(clue.get(index))) {\n return false;\n }\n tilesRequired = clue.get(index)-filledGroups.get(index);\n tilesRequired += clue.size()-filledGroups.size();\n if(searchBoard.getState(row, column) == CellState.EMPTY) {\n --tilesRequired;\n }\n for(int i = index+1; i < clue.size(); ++i) {\n tilesRequired += clue.get(i);\n }\n }\n return availableSquares >= tilesRequired;\n }",
"boolean isLegal(String move) {\n int[][] theStatusBoard;\n if (_playerOnMove == ORANGE) {\n theStatusBoard = _orangeStatusBoard;\n } else {\n theStatusBoard = _violetStatusBoard;\n }\n Pieces thispiece = new Pieces();\n String piecename = move.substring(0, 1);\n int col = getCoordinate(move.substring(1, 2));\n int row = getCoordinate(move.substring(2, 3));\n int ori = Integer.parseInt(move.substring(3, 4));\n int[][] initialPositions = thispiece.getInitialPositions(piecename);\n int[][] finalPositions = thispiece.processPositions(initialPositions, ori);\n int depth = finalPositions.length;\n int length = finalPositions[0].length;\n\n if (row + depth - 1 > 13 || col + length - 1 > 13) {\n System.out.println(\"Your move makes your piece out of the board, try again!\");\n return false;\n }\n\n boolean has1 = false;\n boolean no2 = true;\n\n int i, j;\n for (i = 0; i < depth; i++) {\n for (j = 0; j < length; j++) {\n if (finalPositions[i][j] == 1) {\n if (theStatusBoard[15 - (row + depth - i)][col + j + 1] == 1) {\n has1 = true;\n } else if (theStatusBoard[15 - (row + depth - i)][col + j + 1] == 2) {\n return false;\n }\n }\n }\n }\n System.out.println(\"has1: \" + has1);\n return has1;\n }"
] | [
"0.76537627",
"0.7397387",
"0.70150846",
"0.69691366",
"0.6939355",
"0.6935412",
"0.6921457",
"0.68959105",
"0.6865114",
"0.68040454",
"0.67201805",
"0.6686241",
"0.6643112",
"0.6638019",
"0.66346794",
"0.66191494",
"0.6616282",
"0.66107655",
"0.6606407",
"0.65796757",
"0.6570376",
"0.65667343",
"0.6554719",
"0.65426",
"0.6537645",
"0.652746",
"0.651964",
"0.6457514",
"0.6449154",
"0.6437485",
"0.64275134",
"0.6426817",
"0.6411388",
"0.6393927",
"0.63907236",
"0.6377125",
"0.63759744",
"0.63364154",
"0.6329555",
"0.63236314",
"0.6323564",
"0.632223",
"0.6314958",
"0.63095075",
"0.6299958",
"0.6296471",
"0.62944543",
"0.6278398",
"0.62656575",
"0.62540066",
"0.6250507",
"0.624352",
"0.6228966",
"0.6217131",
"0.6214741",
"0.6205706",
"0.62029284",
"0.620014",
"0.6195389",
"0.6194449",
"0.61927927",
"0.618755",
"0.6186344",
"0.61841756",
"0.61773187",
"0.6173933",
"0.61698323",
"0.61555094",
"0.61544883",
"0.6148922",
"0.6148634",
"0.6146203",
"0.6144999",
"0.61431164",
"0.6140145",
"0.6135259",
"0.6132007",
"0.61260587",
"0.6124666",
"0.612182",
"0.6115025",
"0.6114329",
"0.6111023",
"0.6103674",
"0.610121",
"0.6100301",
"0.60999066",
"0.6098721",
"0.60981214",
"0.6093807",
"0.6093097",
"0.60811865",
"0.6077803",
"0.6077635",
"0.60761774",
"0.6070713",
"0.60669315",
"0.6059607",
"0.60565025",
"0.60524917"
] | 0.69444716 | 4 |
checks if move is valid in currentPiece's current position return true if valid | protected boolean validMove(TetrisPiece piece, int rot, int gridRow, int gridCol) {
if(detectOutOfBounds(piece, rot, gridRow, gridCol)) {
return false;
}
if(detectCollision(piece, rot, gridRow, gridCol)) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isLegalMove(String move) {\n\t\tString[] moveParts = move.split(\";\");\n\n\t\tint fromRow = Integer.parseInt(moveParts[0].charAt(0) + \"\");\n\t\tint fromCol = Integer.parseInt(moveParts[0].charAt(1) + \"\");\n\n\t\tint toRow = Integer.parseInt(moveParts[1].charAt(0) + \"\");\n\t\tint toCol = Integer.parseInt(moveParts[1].charAt(1) + \"\");\n\n\t\tint minRow = Math.min(fromRow, toRow);\n\t\tint minCol = Math.min(fromCol, toCol);\n\n\t\tint maxRow = Math.max(fromRow, toRow);\n\t\tint maxCol = Math.max(fromCol, toCol);\n\n\t\tint piece = board[fromRow][fromCol];//Integer.parseInt(moveParts[2]);\n\t\tint pieceType = Math.abs(piece);\n\t\tint team = Math.round(Math.signum(piece));\n\n\t\tif (team == Math.round(Math.signum(board[toRow][toCol]))) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (toRow < 0 || toRow > 7 && toCol < 0 && toCol > 7) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (team > 0) { // WHITE\n\t\t\tint enpassantBackup = enpassantCol;\n\t\t\tint[][] boardBackup = deepCopyBoard();\n\t\t\tapplyConvertedMove(move);\n\t\t\tboolean check = isWhiteCheck();\n\t\t\tboard = boardBackup;\n\t\t\tenpassantCol = enpassantBackup;\n\t\t\tif (check) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else { //BLACK\n\t\t\tint enpassantBackup = enpassantCol;\n\t\t\tint[][] boardBackup = deepCopyBoard();\n\t\t\tapplyConvertedMove(move);\n\t\t\tboolean check = isBlackCheck();\n\t\t\tboard = boardBackup;\n\t\t\tenpassantCol = enpassantBackup;\n\t\t\tif (check) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tif (pieceType == 1) { //Pawn\n\t\t\treturn ((board[toRow][toCol] != 0 && toRow == fromRow + team && (toCol == fromCol + 1 || toCol == fromCol - 1)) || (toCol == fromCol && board[toRow][toCol] == 0 && ((toRow == fromRow + team) || (((fromRow == 1 && team == 1) || (fromRow == 6 && team == -1)) ? toRow == fromRow + 2*team && board[fromRow + team][fromCol] == 0 : false))));\n\t\t} else if (pieceType == 2) { //Rook\n\t\t\tif (toRow == fromRow) {\n\t\t\t\tfor (int i = minCol + 1; i < maxCol; i++) {\n\t\t\t\t\tif (board[toRow][i] != 0 && Math.abs(board[toRow][i]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} else if (toCol == fromCol) {\n\t\t\t\tfor (int i = minRow + 1; i < maxRow; i++) {\n\t\t\t\t\tif (board[i][toCol] != 0 && Math.abs(board[i][toCol]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if (pieceType == 3) { //Knight\n\t\t\tint dx = toRow - fromRow;\n\t\t\tint dy = toCol - fromCol;\n\t\t\treturn dx*dx + dy*dy == 5;\n\t\t} else if (pieceType == 4) { //Bishop\n\t\t\tint dx = toRow - fromRow;\n\t\t\tint dy = toCol - fromCol;\n\t\t\tif (dy != dx && dy != -dx) return false;\n\t\t\tint m = dy/dx;\n\t\t\tint startCol = (m < 0 ? maxCol : minCol);\n\t\t\tfor (int i = minRow + 1; i < maxRow; i++) {\n\t\t\t\tif (board[i][startCol + m*(i - minRow)] != 0 && board[i][startCol + m*(i - minRow)] != 7) return false;\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (pieceType == 5) { //Queen\n\t\t\tif (toRow == fromRow) {\n\t\t\t\tfor (int i = minCol + 1; i < maxCol; i++) {\n\t\t\t\t\tif (board[toRow][i] != 0 && Math.abs(board[toRow][i]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} else if (toCol == fromCol) {\n\t\t\t\tfor (int i = minRow + 1; i < maxRow; i++) {\n\t\t\t\t\tif (board[i][toCol] != 0 && Math.abs(board[i][toCol]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tint dx = toRow - fromRow;\n\t\t\t\tint dy = toCol - fromCol;\n\t\t\t\tif (dy != dx && dy != -dx) return false;\n\t\t\t\tint m = dy/dx;\n\t\t\t\tint startCol = (m < 0 ? maxCol : minCol);\n\t\t\t\tfor (int i = minRow + 1; i < maxRow; i++) {\n\t\t\t\t\tif (board[i][startCol + m*(i - minRow)] != 0 && Math.abs(board[i][startCol + m*(i - minRow)]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if (pieceType == 6) { //King\n\t\t\tint dx = toRow - fromRow;\n\t\t\tint dy = toCol - fromCol;\n\t\t\treturn dx*dx + dy*dy <= 2;\n\t\t}\n\n\t\treturn false;\n\t}",
"private boolean isThereValidMove() {\n\t\treturn true;\n\t}",
"public boolean isValidMove(Move move) {\n if (this.gameStarted && isSpaceFree(move) && isPlayerTurn(move)) {\n return true; \n }\n return false; \n }",
"public abstract boolean validMove(ChessBoard board, Square from, Square to);",
"@Override\n public boolean isValidMove(Move move) {\n if (board[move.oldRow][move.oldColumn].isValidMove(move, board))\n return true;\n //player will not be in check\n //move will get player out of check if they are in check\n return false;\n }",
"boolean isLegal(String move) {\n int[][] theStatusBoard;\n if (_playerOnMove == ORANGE) {\n theStatusBoard = _orangeStatusBoard;\n } else {\n theStatusBoard = _violetStatusBoard;\n }\n Pieces thispiece = new Pieces();\n String piecename = move.substring(0, 1);\n int col = getCoordinate(move.substring(1, 2));\n int row = getCoordinate(move.substring(2, 3));\n int ori = Integer.parseInt(move.substring(3, 4));\n int[][] initialPositions = thispiece.getInitialPositions(piecename);\n int[][] finalPositions = thispiece.processPositions(initialPositions, ori);\n int depth = finalPositions.length;\n int length = finalPositions[0].length;\n\n if (row + depth - 1 > 13 || col + length - 1 > 13) {\n System.out.println(\"Your move makes your piece out of the board, try again!\");\n return false;\n }\n\n boolean has1 = false;\n boolean no2 = true;\n\n int i, j;\n for (i = 0; i < depth; i++) {\n for (j = 0; j < length; j++) {\n if (finalPositions[i][j] == 1) {\n if (theStatusBoard[15 - (row + depth - i)][col + j + 1] == 1) {\n has1 = true;\n } else if (theStatusBoard[15 - (row + depth - i)][col + j + 1] == 2) {\n return false;\n }\n }\n }\n }\n System.out.println(\"has1: \" + has1);\n return has1;\n }",
"boolean legalMove(Move mov) {\n if (mov == null || !validSquare(mov.toIndex())\n || !validSquare(mov.fromIndex())) {\n throw new IllegalArgumentException(\"Illegal move\");\n }\n PieceColor from = get(mov.fromIndex());\n PieceColor to = get(mov.toIndex());\n if (!mov.isJump() && jumpPossible()) {\n return false;\n }\n if (from != _whoseMove) {\n return false;\n } else if (mov.isJump()) {\n return checkJump(mov, false);\n } else if (from == BLACK && row(mov.fromIndex()) == '1') {\n return false;\n } else if (from == WHITE && row(mov.fromIndex()) == '5') {\n return false;\n } else if (mov.isLeftMove()) {\n ArrayList<String> rec = _directions.get(mov.fromIndex());\n return get(mov.toIndex()) == EMPTY\n && !rec.get(rec.size() - 1).equals(\"Right\");\n } else if (mov.isRightMove()) {\n ArrayList<String> rec = _directions.get(mov.fromIndex());\n return get(mov.toIndex()) == EMPTY\n && !rec.get(rec.size() - 1).equals(\"Left\");\n } else if (from == BLACK) {\n if (mov.fromIndex() % 2 == 0 && to == EMPTY) {\n return mov.fromIndex() - mov.toIndex() == SIDE\n || mov.fromIndex() - mov.toIndex() == SIDE - 1\n || mov.fromIndex() - mov.toIndex() == SIDE + 1;\n } else {\n return mov.fromIndex() - mov.toIndex() == SIDE && to == EMPTY;\n }\n } else if (from == WHITE) {\n if (mov.fromIndex() % 2 == 0 && to == EMPTY) {\n return mov.toIndex() - mov.fromIndex() == SIDE\n || mov.toIndex() - mov.fromIndex() == SIDE + 1\n || mov.toIndex() - mov.fromIndex() == SIDE - 1;\n } else {\n return mov.toIndex() - mov.fromIndex() == SIDE && to == EMPTY;\n }\n }\n return false;\n }",
"private boolean canMove(Point piece){\r\n // direction -1: red pieces +1: black pieces\r\n int dir = isRed(piece)? -1:+1;\r\n // normal movement\r\n Point left = new Point(piece.getFirst() + dir, piece.getSecond() - 1);\r\n Point right = new Point(piece.getFirst() + dir, piece.getSecond() + 1);\r\n // check for normal movements\r\n if(isValidPosition(left) && isEmpty(left)) return true;\r\n if(isValidPosition(right) && isEmpty(right)) return true;\r\n // if is a queen\r\n if(isQueen(piece)){\r\n // compute queen move points (invert direction)\r\n Point leftQ = new Point(piece.getFirst() - dir, piece.getSecond() - 1);\r\n Point rightQ = new Point(piece.getFirst() - dir, piece.getSecond() + 1);\r\n // check for down movements\r\n if(isValidPosition(leftQ) && isEmpty(leftQ)) return true;\r\n if(isValidPosition(rightQ) && isEmpty(rightQ)) return true;\r\n }\r\n return false;\r\n }",
"public MoveResult canMovePiece(Alignment player, Coordinate from, Coordinate to);",
"public boolean moveValidation(Board board, Piece piece, int sourceX, int sourceY, int targetX, int targetY){//TODO make directions in Piece class\n int diffX = targetX - sourceX;\n int diffY = targetY - sourceY;\n if (!board.isPieceAtLocation(targetX, targetY) || board.isPieceAtLocationCapturable(piece.getColour(), targetX, targetY)) {\n if(diffX==0 && diffY > 0 )\n return !board.isPieceBetweenLocations(sourceX, sourceY, targetX, targetY, 0, 1);\n else if(diffX > 0 && diffY == 0 )\n return !board.isPieceBetweenLocations(sourceX, sourceY, targetX, targetY, 1, 0);\n else if(diffX < 0 && diffY == 0 )\n return !board.isPieceBetweenLocations(sourceX, sourceY, targetX, targetY, -1, 0);\n else if(diffX==0 && diffY < 0 )\n return !board.isPieceBetweenLocations(sourceX, sourceY, targetX, targetY, 0, -1);\n }\n return false;\n }",
"private boolean canMove(String direction) {\n\t\tif (currentPiece.getLocation() == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tfor (Loc loc : currentPiece.getLocation()) {\n\t\t\tLoc nextPoint = nextPoint(loc, direction);\n\t\t\tif (nextPoint == null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// if there's someone else's piece blocking you\n\t\t\tif ((new Loc(nextPoint.row, nextPoint.col).isOnBoard())\n\t\t\t\t\t&& boardTiles[nextPoint.row][nextPoint.col] != backgroundColor && !isMyPiece(nextPoint)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"private boolean validMove(int xi, int yi, int xf, int yf) {\n\t\tPiece prevP = pieceAt(xi, yi);\n\t\tPiece nextP = pieceAt(xf, yf);\n\n\t\tif (prevP.isKing()) {\n\t\t\tif (((xf - xi) == 1 || (xi - xf) == 1) && ((yf - yi) == 1 || (yi - yf) == 1)) \n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t} else \n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tif (prevP.isFire()) \n\t\t{\n\t\t\tif (((xf - xi) == 1 || (xi - xf) == 1) && (yf - yi) == 1) \n\t\t\t{\n\t\t\t\tif (nextP != null && !nextP.isFire()) \n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} \n\t\t\telse if ((xf - xi) == 2 && (yf - yi) == 2) \n\t\t\t{\n\t\t\t\tPiece pBetween = pieceAt(xi+1, yi+1);\n\t\t\t\tif (pBetween != null && prevP.side() != pBetween.side()) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t} \n\t\t\telse if ((xi - xf) == 2 && (yf - yi) == 2) \n\t\t\t{\n\t\t\t\tPiece pBetween = pieceAt(xi-1, yi+1);\n\t\t\t\tif (pBetween != null && prevP.side() != pBetween.side()) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} else \n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else \n\t\t{\n\t\t\tif (((xf - xi) == 1 || (xi - xf) == 1) && (yi - yf) == 1) \n\t\t\t{\n\t\t\t\tif (nextP != null && nextP.isFire()) \n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} \n\t\t\telse if ((xf - xi) == 2 && (yi - yf) == 2) \n\t\t\t{\n\t\t\t\tPiece pBetween = pieceAt(xi+1, yi-1);\n\t\t\t\tif (pBetween != null && prevP.side() != pBetween.side()) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t} \n\t\t\telse if ((xi - xf) == 2 && (yi - yf) == 2) \n\t\t\t{\n\t\t\t\tPiece pBetween = pieceAt(xi-1, yi-1);\n\t\t\t\tif (pBetween != null && prevP.side() != pBetween.side()) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean validMove(Player player, Movement move) {\n\n if (!player.hasPieceAt(move.oldP) || player.hasPieceAt(move.newP))\n return false;\n else if (sharedBoard.isBlocked(move) && !board.board[move.oldP.x][move.oldP.y].canJump())\n return false;\n else if (!sharedBoard.isPositionEmpty(move.newP))\n move = new Capture(move);\n\n return board.board[move.oldP.x][move.oldP.y].validMove(move);\n }",
"boolean isLegal(Move move) {\n int c = move.getCol0();\n int r = move.getRow0();\n int[] vector = move.unit();\n Piece p;\n for(int i = 0; i <= vector[2]; i++) {\n p = get(c, r);\n if (p != null && p.side() != _turn) {\n return false;\n }\n }\n return true;\n\n }",
"public boolean isMoveLegal() {\n if (!getGame().getBoard().contains(getFinalCoords())) {\n return false;\n }\n\n // for aero units move must use up all their velocity\n if (getEntity() instanceof Aero) {\n Aero a = (Aero) getEntity();\n if (getLastStep() == null) {\n if ((a.getCurrentVelocity() > 0) && !getGame().useVectorMove()) {\n return false;\n }\n } else {\n if ((getLastStep().getVelocityLeft() > 0) && !getGame().useVectorMove()\n && !(getLastStep().getType() == MovePath.MoveStepType.FLEE\n || getLastStep().getType() == MovePath.MoveStepType.EJECT)) {\n return false;\n }\n }\n }\n\n if (getLastStep() == null) {\n return true;\n }\n\n if (getLastStep().getType() == MoveStepType.CHARGE) {\n return getSecondLastStep().isLegal();\n }\n if (getLastStep().getType() == MoveStepType.RAM) {\n return getSecondLastStep().isLegal();\n }\n return getLastStep().isLegal();\n }",
"private boolean checkMoveBase(Pieces piece, Coordinates from, Coordinates to) {\n\t\t//seleziono una posizione senza pedina\n\t\tif ( piece == null )\n\t\t\treturn false;\n\n\t\t//se la posizione tu non è contenuta nelle soluzioni valide della pedina from\n\t\tif ( !piece.validPositions(from).contains(to) )\n\t\t\treturn false;\n\n\t\t//se la posizione di destinazione contiene una pedina dello stesso colore\n\t\treturn !( chessboard.at(to) != null && chessboard.at(to).getColour().equals(piece.getColour()));\n\t}",
"public boolean isValidMove(Point orig, Point dest){ \r\n Color playerColor = model.getCurrentPlayer().getColor();\r\n // Validate all point between board limits\r\n if(!isValidPosition(orig) || !isValidPosition(dest)) return false;\r\n // Check for continue move starting piece\r\n if(model.getCheckPiece() != null && !model.getCheckPiece().equals(orig)) return false;\r\n // Validate origin piece to player color\r\n if((isRed(playerColor) && !isRed(orig)) || (isBlack(playerColor) && !isBlack(orig))) return false;\r\n // Only can move to empty Black space\r\n if(!isEmpty(dest)) return false;\r\n // If current player have obligatory eats, then need to eat\r\n if(obligatoryEats(playerColor) && !moveEats(orig,dest)) return false;\r\n // Check move direction and length\r\n int moveDirection = orig.getFirst() - dest.getFirst(); // Direction in Rows\r\n int rLength = Math.abs(moveDirection); // Length in Rows\r\n int cLength = Math.abs(orig.getSecond() - dest.getSecond()); // Length in Columns\r\n int mLength;\r\n // Only acepts diagonal movements in 1 or 2 places (1 normal move, 2 eats move)\r\n if ((rLength == 1 && cLength == 1) || (rLength == 2 && cLength == 2)){\r\n mLength = rLength;\r\n } else {\r\n return false;\r\n }\r\n // 1 Place movement\r\n if (mLength == 1){ \r\n if (isRed(orig) && !isQueen(orig) && moveDirection > 0) return true;\r\n if (isBlack(orig) && !isQueen(orig) && moveDirection < 0) return true;\r\n if ((isRed(orig) && isQueen(orig)) || (isBlack(orig) && isQueen(orig))) return true;\r\n }\r\n // 2 Places movement need checks if eats rivals\r\n if (mLength == 2){\r\n // Compute mid point\r\n Point midPoint = getMidPoint(orig, dest);\r\n // Check move\r\n if ((isRed(orig) && isBlack(midPoint)) || (isBlack(orig) && isRed(midPoint))){\r\n if (isRed(orig) && !isQueen(orig) && moveDirection > 0) return true;\r\n if (isBlack(orig) && !isQueen(orig) && moveDirection < 0) return true;\r\n if ((isRed(orig) && isQueen(orig)) || (isBlack(orig) && isQueen(orig))) return true;\r\n }\r\n }\r\n return false;\r\n }",
"public boolean validMove(Player playerToMakeMove, Move move) {\n if(playerToMakeMove.equals(whosTurn())) {\n // the player can make the move!\n // is the move valid\n char atMoveLocation = board.getCharAtLocation(move.getRow(), move.getCol());\n return atMoveLocation == '.';\n } else {\n return false;\n }\n }",
"public boolean validMove(ChessBoard board, Square from, Square to) {\r\n // check if piece killing his ally\r\n if(to.getPiece() != null){\r\n if (to.getPiece().isBlue() == this.isBlue()) {\r\n return false;\r\n }\r\n } \r\n\r\n int x = Math.abs(from.getX() - to.getX());\r\n int y = Math.abs(from.getY() - to.getY());\r\n // to check if the move is 1unit vertically or horizontally\r\n if (x + y == 1) {\r\n return true;\r\n }else if (x == y && x == 1) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }",
"public boolean isValidMove(Move m) {\n // Ensure from and to make sense\n if (board[m.from] != currentPlayer || board[m.to] != 0)\n return false;\n\n // NOTE: Checking validity in this way is inefficient\n\n // Get current available moves\n ArrayList<Move> moves = new ArrayList<Move>();\n getMoves(moves);\n\n // Find the move among the set of available moves\n boolean found = moves.contains(m);\n\n return found;\n }",
"@Override\r\n\tpublic boolean isMoveValid(Game g, Location from, Location to){\n\t\tColor toColor = g.getColor(to);\r\n\t\tColor fromColor = g.getColor(from);\r\n\t\tswitch(toColor){\r\n\t\tcase RED:\r\n\t\t\tif (fromColor == Color.BLACK){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase BLACK:\r\n\t\t\tif (fromColor == Color.RED){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t//cannot make a movement if the from location is empty\r\n\t\t//cannot move if the piece belongs to the opponent\r\n\t\tswitch(g.getPlayerInTurn()){\r\n\t\tcase RED:\r\n\t\t\tif(fromColor != Color.RED){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase BLACK:\r\n\t\t\tif(fromColor != Color.BLACK){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t//just return something is wrong anyways...\r\n\t\tdefault:\r\n\t\t\treturn false;\t\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"private boolean checkMove(boolean[][] moves, Piece piece, int i, int j) {\r\n\t\tif (moves[i][j]) {\r\n\t\t\t// Moving piece \r\n\t\t\tthis.board[piece.getY()][piece.getX()] = null;\r\n\t\t\t\r\n\t\t\tPiece savePiece = this.board[i][j]; // Piece at i and j\r\n\t\t\tint saveX = piece.getX();\r\n\t\t\tint saveY = piece.getY();\r\n\t\t\t\r\n\t\t\tthis.board[i][j] = piece;\r\n\t\t\tpiece.setXY(j, i);\r\n\t\t\t\r\n\t\t\tif (savePiece != null) {\r\n\t\t\t\tkillPiece(savePiece);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tboolean check = checkForCheck(piece.getPlayer());\r\n\t\t\t\r\n\t\t\t// return pieces to original states\r\n\t\t\tsetBack(i, j, savePiece, saveX, saveY);\r\n\t\t\tif (!check) {\r\n\t\t\t\t// There is a viable move to get out of check\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean canMove() {\n\n\tArrayList<Location> moveLocs = getValid(getLocation());\n\n\tif (isEnd == true) {\n\t return false;\n\t} \n\tif (!moveLocs.isEmpty()) {\n\t \n\t randomSelect(moveLocs);\n\t // selectMoveLocation(moveLocs);\n\t return true;\n\n\t} else {\n\t return false;\n\t}\n }",
"private boolean isLegal(String move) {\n if (!move.matches(\"[0-9]*,[0-9]*\")) {\n return false;\n }\n\n int column = Integer.parseInt(move.substring(2)) - 1;\n int row = Integer.parseInt(move.substring(0, 1)) - 1;\n\n if (beyondBoard(column, row)) {\n return false;\n }\n\n if (isOccupied(column, row)) {\n return false;\n }\n\n return true;\n }",
"public boolean isValidMove(Move move, IChessPiece[][] board) {\n\t\tif(!super.isValidMove(move, board)){\n\t\t\treturn false;\n\t\t}\n\t\tif(Math.abs(move.fromRow-move.toRow)>1 || Math.abs(move.fromColumn-move.toColumn)>1){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean validMove(ChessBoard board, Square from, Square to){\r\n // check if piece killing his ally\r\n if(to.getPiece() != null){\r\n if (to.getPiece().isBlue() == this.isBlue()) {\r\n return false;\r\n }\r\n } \r\n int x = from.getX() - to.getX(); \r\n int y = from.getY() - to.getY();\r\n \r\n if(reached_end){\r\n if(y > 0){ // Going forward\r\n return false;\r\n } else { // Going backward\r\n if((Math.abs(y) == 1 || Math.abs(y) == 2) && x == 0){\r\n if (Math.abs(y)==2 && board.getBox(from.getX(),from.getY()+1).getPiece()!=null){\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n } else {\r\n return false;\r\n }\r\n }\r\n } else {\r\n if(y > 0){ // Going forward\r\n if((Math.abs(y) == 1 || Math.abs(y) == 2) && x == 0){\r\n if (Math.abs(y)==2 && board.getBox(from.getX(),from.getY()-1).getPiece()!=null){\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n } else {\r\n return false;\r\n }\r\n } else { // Going backward\r\n return false;\r\n }\r\n }\r\n }",
"public boolean isLegalStep(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\tPlayer white = currentGame.getWhitePlayer();\n\t\tint[] toCheckPos = new int[2];\n\t\tint[] existingPos = new int[2];\n\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\ttoCheckPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t} else {\n\t\t\ttoCheckPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t}\n\t\t//0 = column, 1 = row\n\t\tif(dir == MoveDirection.North) {\n\t\t\tif(toCheckPos[1] == 1) return false;\n\t\t\tif(toCheckPos[1] - 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), -1, 0);\n\t\t} else if(dir == MoveDirection.South) {\n\t\t\tif(toCheckPos[1] == 9) return false;\n\t\t\tif(toCheckPos[1] + 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 1, 0);\n\t\t} else if(dir == MoveDirection.East) {\n\t\t\tif(toCheckPos[0] == 9) return false;\n\t\t\tif(toCheckPos[0] + 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, 1);\n\t\t} else if(dir == MoveDirection.West) {\n\t\t\tif(toCheckPos[0] == 1) return false;\n\t\t\tif(toCheckPos[0] - 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, -1);\n\t\t}\n\t\t\n\t\treturn false;\r\n }",
"private boolean isValidMove(int position) {\n\t\tif( !(position >= 0) || !(position <= 8) ) return false;\n\n\t\treturn gameBoard[position] == 0;\n\t}",
"public boolean validMove(ChessBoard board, Square from, Square to) {\r\n // check if piece killing his ally\r\n if(to.getPiece() != null){\r\n if (to.getPiece().isBlue() == this.isBlue()) {\r\n return false;\r\n }\r\n } \r\n\r\n int x = from.getX() - to.getX();\r\n int y = from.getY() - to.getY();\r\n \r\n if (x < 0 && Math.abs(x) == Math.abs(y) && y > 0){\r\n int j = from.getY()-1;\r\n for( int i = from.getX()+1 ; i < to.getX() ; i++){\r\n if (board.getBox(i,j).getPiece()!=null){\r\n return false;}\r\n j--;\r\n } \r\n return true;\r\n }\r\n else if(x > 0 && Math.abs(x) == Math.abs(y) && y > 0){\r\n int j = from.getY()-1;\r\n for( int i = from.getX()-1 ; i > to.getX() ; i--){\r\n if (board.getBox(i,j).getPiece()!=null){\r\n return false;}\r\n j--;\r\n }\r\n return true;\r\n }\r\n else if( x > 0 && Math.abs(x) == Math.abs(y) && y < 0){\r\n int j = from.getY()+1;\r\n for( int i = from.getX()-1 ; i > to.getX() ; i--){\r\n if (board.getBox(i,j).getPiece()!=null){\r\n return false;}\r\n j++;\r\n }\r\n return true; \r\n }\r\n else if (x < 0 && Math.abs(x) == Math.abs(y) && y < 0){\r\n int j = from.getY()+1;\r\n for( int i = from.getX()+1 ; i < to.getX() ; i++){\r\n if (board.getBox(i,j).getPiece()!=null){\r\n return false;}\r\n j++;\r\n } \r\n return true;\r\n }\r\n\r\n return false;\r\n }",
"@Override\n\tpublic boolean isMoveValid(int srcRow, int srcCol, int destRow, int destCol) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isMoveValid(int row, int col) {\n\t\tif (isValidSide(row, col)) {\n\t\t\taddMissileResult(row, col);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private static boolean isMoveValid( int x, int y ){\n int path[] = new int[8];\n for( int distance = 1; distance < 8; distance ++ ){\n checkPath( path, 0, x + distance, y, distance );\n checkPath( path, 1, x + distance, y + distance, distance );\n checkPath( path, 2, x, y + distance, distance );\n checkPath( path, 3, x - distance, y, distance );\n checkPath( path, 4, x - distance, y - distance, distance );\n checkPath( path, 5, x, y - distance, distance );\n checkPath( path, 6, x + distance, y - distance, distance );\n checkPath( path, 7, x - distance, y + distance, distance );\n }\n for( int i = 0; i < 8; i++ ){\n if( path[ i ] > 1 ){\n return true;\n }\n }\n return false;\n }",
"private boolean makeMove(Move move) {\n\n // Moving piece from Cell\n Piece sourcePiece = move.getStart().getCurrentPiece();\n\n // Valid Move? Calling Piece actual implementation\n if (!sourcePiece.canMove(board, move.getStart(), move.getEnd())) {\n System.out.println(\"Invalid Move, sourcePiece is \" + sourcePiece);\n }\n\n // Killed other player Piece?\n Piece destPiece = move.getEnd().getCurrentPiece();\n if (destPiece != null) {\n destPiece.setKilled(true);\n move.setPieceKilled(destPiece);\n }\n\n // castling?\n if (sourcePiece instanceof King\n && sourcePiece.isCastlingMove()) {\n move.setCastlingMove(true);\n }\n\n // Store the Move\n movesPlayed.add(move);\n\n // If move is VALID, set piece=null at start cell and new piece at dest cell\n move.getEnd().setCurrentPiece(sourcePiece);\n move.getStart().setCurrentPiece(null);\n\n // Game Win or not\n if (destPiece instanceof King) {\n if (move.getPlayedBy().isWhiteSide()) {\n this.setStatus(GameStatus.WHITE_WIN);\n } else {\n this.setStatus(GameStatus.BLACK_WIN);\n }\n\n }\n\n return true;\n }",
"boolean isValidMove(int move)\n\t{\n\t\treturn move >= 0 && move <= state.size() - 1 && state.get(move) == 0;\n\t}",
"private boolean anyMove (int x,int y, OthelloPiece colour){\n boolean valid = false;\n if(move(x,y,VALID_MOVE_3,VALID_MOVE_2,colour)) valid=true;\n if(move(x,y,VALID_MOVE_3,VALID_MOVE_3,colour)) valid=true;\n if(move(x,y,VALID_MOVE_3,VALID_MOVE_1,colour)) valid=true;\n if(move(x,y,VALID_MOVE_2,VALID_MOVE_3,colour)) valid=true;\n if(move(x,y,VALID_MOVE_2,VALID_MOVE_1,colour)) valid=true;\n if(move(x,y,VALID_MOVE_1,VALID_MOVE_2,colour)) valid=true;\n if(move(x,y,VALID_MOVE_1,VALID_MOVE_3,colour)) valid=true;\n if(move(x,y,VALID_MOVE_1,VALID_MOVE_1,colour)) valid=true;\n return (valid);\n }",
"private boolean moveCheck(Piece p, List<Move> m, int fC, int fR, int tC, int tR) {\n if (null == p) {\n // Legal move!\n m.add(new Move(fC, fR, tC, tR));\n // Continue checking for moves.\n return false;\n }\n if (p.owner != whoseTurn) {\n // Enemy sighted!\n // Legal move!\n m.add(new Move(fC, fR, tC, tR));\n // No more moves!\n }\n return true;\n }",
"public boolean isValidMove(int toRow,int toCol){\n //Stayed in the same spot\n if(myRow == toRow && myCol == toCol){\n return false;\n }\n //if the xy coordinate we are moving to is outside the board\n if(toRow < 0 || toRow > 11 || toCol < 0 || toCol > 11){\n return false;\n }\n return true;\n }",
"private boolean validNormalMove(int newX, int newY){\n\n // checks if the new position is out of range or not and if it is then it is occupied or not\n if (!getBoard().outOfRange(newX, newY) && !getBoard().occupied(newX, newY))\n return true;\n // false if in range, occupied , but piece of the same color\n else if(!getBoard().outOfRange(newX, newY) && getBoard().occupied(newX, newY) && (getBoard().getPiece(newX, newY).getColour() == this.getColour()))\n return false ;\n\n // true if in range, occupied and in the piece of the same color\n // note that in general the Move object will be set to false but after the if statement the occupied will be set to true\n else if(!getBoard().outOfRange(newX, newY) && getBoard().occupied(newX, newY)\n && (getBoard().getPiece(newX, newY).getColour() != this.getColour()))\n return true ;\n\n else\n return false;\n }",
"public boolean validMove(ChessBoard board, Square from, Square to) {\r\n // check if piece killing his ally\r\n if(to.getPiece() != null){\r\n if (to.getPiece().isBlue() == this.isBlue()) {\r\n return false;\r\n }\r\n } \r\n\r\n int x = Math.abs(from.getX() - to.getX());\r\n int y = Math.abs(from.getY() - to.getY());\r\n if((from.getX() - to.getX()) > 0 || (from.getY() - to.getY()) > 0){\r\n if ((x == 0 && y >= 1)) {\r\n for(int i = 1; i <= y-1; i++){\r\n if(board.getBox(from.getX(), from.getY() - i).getPiece() != null){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }else if((x >= 1 && y == 0)){\r\n for(int i = 1; i <= x-1; i++){\r\n if(board.getBox(from.getX() - i, from.getY()).getPiece() != null){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n }else if((from.getX() - to.getX()) < 0 || (from.getY() - to.getY()) < 0){\r\n if (x == 0 && (from.getY() - to.getY()) <= -1) {\r\n for(int i = y-1; i > 0; i--){\r\n if(board.getBox(from.getX(), from.getY() + i).getPiece() != null){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }else if((from.getX() - to.getX()) <= -1 && y == 0){\r\n for(int i = x-1; i > 0; i--){\r\n if(board.getBox(from.getX() + i, from.getY()).getPiece() != null){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"public boolean isLegalMove() {\n return iterator().hasNext();\n }",
"private boolean legalMove() {\n\n\t\t// empty landing spot\n\t\tif (tilePath.size() == 0) {\n\t\t\tdebug(\"illegal, empty landing spot\");\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!mBoard.tileIsEmpty(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, tile not empty\");\n\t\t\treturn false;\n\t\t}\n\n\t\t// start doesn't equal end\n\t\tif (tilePath.get(0).equals(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, start doesn't equal end\");\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public boolean isValidMove(Move move) {\n return getPlayerFromBoard(move) == Player.None;\n }",
"public boolean isMoveLegal(Move move){\n return legalMoves.contains(move);\n }",
"public boolean checkMove(Piece piece, boolean check) {\n\t\tif (check) {\n\t\t\tint x = piece.getX();\n\t\t\tint y = piece.getY();\n\t\t\tif (x >= 0 && x <= 7 && y >= 0 && y <= 7) {\n\t\t\t\tstrong_enemy = false;\n\t\t\t\tfriend = false;\n\t\t\t\t// check surrounding\n\t\t\t\tcheck_enemy_and_friend(x - 1, y, piece.getStrength(), piece.getColor());\n\t\t\t\tcheck_enemy_and_friend(x + 1, y, piece.getStrength(), piece.getColor());\n\t\t\t\tcheck_enemy_and_friend(x, y - 1, piece.getStrength(), piece.getColor());\n\t\t\t\tcheck_enemy_and_friend(x, y + 1, piece.getStrength(), piece.getColor());\n\n\t\t\t\tif (strong_enemy == false) {\n\t\t\t\t\treturn true;\n\t\t\t\t} else if (strong_enemy == true && friend == true) {// freezing is solved\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}",
"boolean isLegal(Move move) {\r\n return isLegal(move.from(), move.to());\r\n }",
"public boolean isValidMove(Card card)\n {\n return false;\n }",
"boolean isValidMove(int col);",
"public boolean validMove(TileEnum from, TileEnum to) {\n if (!isMyTurn() || hasMoved()\n || (getMyPlayerNumber() == 1 && TileStateEnum.PLAYERONE != getTileState(from))\n || (getMyPlayerNumber() == 2 && TileStateEnum.PLAYERTWO != getTileState(from)))\n return false;\n\n List<TileEnum> fromNeighbors = getNeighborsOf(from);\n for (TileEnum otherTile : fromNeighbors) {\n if (to.equals(otherTile)) return TileStateEnum.FREE.equals(getTileState(otherTile));\n\n List<TileEnum> otherNeighbors = getNeighborsOf(otherTile);\n for (TileEnum anotherTile : otherNeighbors) {\n if (to.equals(anotherTile)) return TileStateEnum.FREE.equals(getTileState(anotherTile));\n }\n }\n return false;\n }",
"private boolean isValidMove(int i, int j) {\n\t\tint rowDelta = Math.abs(i - row);\n\t\tint colDelta = Math.abs(j - col);\n\n\t\tif ((rowDelta == 1) && (colDelta == 0)) {\n\t\t\tinvalidMoveLbl.setVisible(false);\n\t\t\treturn true;\n\t\t}\n\t\tif ((colDelta == 1) && (rowDelta == 0)) {\n\t\t\tinvalidMoveLbl.setVisible(false);\n\t\t\treturn true;\n\t\t}\n\t\tinvalidMoveLbl.setVisible(true);\n\t\treturn false;\n\t}",
"public boolean canMove() {\n ArrayList<Location> valid = canMoveInit();\n if (valid == null || valid.isEmpty()) {\n return false;\n }\n ArrayList<Location> lastCross = crossLocation.peek();\n for (Location loc : valid) {\n Actor actor = (Actor) getGrid().get(loc);\n if (actor instanceof Rock && actor.getColor().equals(Color.RED)) {\n next = loc;\n isEnd = true;\n return false;\n }\n if (!lastCross.contains(loc)) {\n lastCross.add(loc);\n next = loc;\n ArrayList<Location> nextCross = new ArrayList<>();\n nextCross.add(next);\n nextCross.add(last);\n crossLocation.push(nextCross);\n return probabilityAdd();\n }\n }\n next = lastCross.get(1);\n crossLocation.pop();\n return probabilitySub();\n }",
"private String checkLegalMove(PieceType piece, Location from, Location to) {\n\t\t// Create a string to store the error message in case the move is\n\t\t// invalid.\n\t\tString errorMessage = null;\n\n\t\t// Check that none of the arguments are null.\n\t\tif (piece == null || from == null || to == null) {\n\t\t\terrorMessage = \"Arguments to the move method must not be null.\";\n\t\t\treturn errorMessage;\n\t\t}\n\n\t\t// Make sure that the game has been started first\n\t\tif (!gameStarted) {\n\t\t\terrorMessage = \"Cannot make a move before the game has started.\";\n\t\t\treturn errorMessage;\n\t\t}\n\n\t\t// Get the piece from the from location that is attempting to move.\n\t\tfinal Piece movingPiece = gameBoard.getPieceAt(from);\n\n\t\t// Check whether the move is a valid move on the board.\n\t\terrorMessage = gameBoard.checkValidMove(piece, from, to);\n\t\tif (errorMessage != null) {\n\t\t\treturn errorMessage;\n\t\t}\n\n\t\t// A piece that is not the color whose turn it is cannot move.\n\t\tif (movingPiece.getOwner() != currentTurnColor) {\n\t\t\terrorMessage = \"You cannot move when it is not you turn.\";\n\t\t\treturn errorMessage;\n\t\t}\n\n\t\treturn null;\n\t}",
"public boolean validMove(ChessBoard board, Square from, Square to){\r\n // check if piece killing his ally\r\n if(to.getPiece() != null){\r\n if (to.getPiece().isBlue() == this.isBlue()) {\r\n return false;\r\n }\r\n } \r\n\r\n int x = Math.abs(from.getX() - to.getX()); \r\n int y = Math.abs(from.getY() - to.getY()); \r\n if(( x == 2 && y == 1 ) || ( x == 1 && y == 2 )){\r\n return true; \r\n }\r\n\r\n return false;\r\n }",
"@Override\n\tpublic boolean validMove(int xEnd, int yEnd, board b){\n\t\t//try to land one same color piece\n\t\tif(b.occupied(xEnd, yEnd)&&b.getPiece(xEnd, yEnd).getColor()==color){\n\t\t\treturn false;\n\t\t}\n\t\tif(v==0){\n\t\t\tif(!this.guard(xEnd, yEnd, b)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//normal move\n\t\tif((xEnd==x-1&&yEnd==y-1)||(xEnd==x-1&&yEnd==y)||(xEnd==x-1&&yEnd==y+1)||(xEnd==x&&yEnd==y-1)||(xEnd==x&&yEnd==y+1)||(xEnd==x+1&&yEnd==y-1)||(xEnd==x+1&&yEnd==y)||(xEnd==x+1&&yEnd==y+1)){\n\t\t\tif(b.occupied(xEnd, yEnd)){\n\t\t\t\t//set the enpass flage back\n\t\t\t\tb.setFlag(color, 100, 100);\n\t\t\t\tb.recycle(xEnd, yEnd);\n\t\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\t\tb.update();\n\t\t\t\tc=0;\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\t//set the enpass flage back\n\t\t\t\tb.setFlag(color, 100, 100);\n\t\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\t\tb.update();\n\t\t\t\tc=0;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}else if((xEnd==x-2&&yEnd==y)){ //castling\n\t\t\tpiece r = b.getPiece(0, y);\n\t\t\tif(r==null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(r.getC()==0||r.getColor()!=color||r.getType()!= type.ROOK||c==0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor(int i=3;i>0;i--){\n\t\t\t\tif(b.occupied(i, y)){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\tr.setPosition(3,y);\n\t\t\tc=0;\n\t\t\tr.setC(0);\n\t\t\tb.setFlag(color, 100, 100);\n\t\t\tb.update();\n\t\t\treturn true;\n\t\t}else if((xEnd==x+2&&yEnd==y)){\n\t\t\tpiece r = b.getPiece(7, y);\n\t\t\tif(r==null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(r.getC()==0||r.getColor()!=color||r.getType()!= type.ROOK||c==0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor(int i=5;i<=6;i++){\n\t\t\t\tif(b.occupied(i, y)){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\tr.setPosition(5,y);\n\t\t\tc=0;\n\t\t\tr.setC(0);\n\t\t\tb.setFlag(color, 100, 100);\n\t\t\tb.update();\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n public boolean isValidMove(Tile target, Board board) {\n if (target == null || board == null) {\n throw new NullPointerException(\"Arguments for the isValidMove method can not be null.\");\n }\n // current and target tiles have to be on a diagonal (delta between row and col index have to be identical)\n int currentCol = this.getTile().getCol();\n int currentRow = this.getTile().getRow();\n int targetCol = target.getCol();\n int targetRow = target.getRow();\n\n int deltaRow = Math.abs(currentRow - targetRow);\n int deltaCol = Math.abs(currentCol - targetCol);\n int minDelta = Math.min(deltaCol, deltaRow);\n\n boolean sameDiagonal = deltaCol == deltaRow;\n\n // check if there are pieces between the tiles\n boolean noPiecesBetween = true;\n // Directions -- (Up and to the left) , -+ (Up and to the right), ++, +-\n if (targetRow < currentRow && targetCol < currentCol) { // --\n for (int delta = 1; delta < minDelta; delta++) {\n Tile tileInBetween = board.getTile(currentRow - delta, currentCol - delta);\n if (tileInBetween.hasChessPiece()) {\n noPiecesBetween = false;\n }\n }\n\n } else if (targetRow > currentRow && targetCol < currentCol) { // +-\n for (int delta = 1; delta < minDelta; delta++) {\n Tile tileInBetween = board.getTile(currentRow + delta, currentCol - delta);\n if (tileInBetween.hasChessPiece()) {\n noPiecesBetween = false;\n }\n }\n } else if (targetRow > currentRow && targetCol > currentCol) { // ++\n for (int delta = 1; delta < minDelta; delta++) {\n Tile tileInBetween = board.getTile(currentRow + delta, currentCol + delta);\n if (tileInBetween.hasChessPiece()) {\n noPiecesBetween = false;\n }\n }\n } else if (targetRow < currentRow && targetCol > currentCol) { // -+\n for (int delta = 1; delta < minDelta; delta++) {\n Tile tileInBetween = board.getTile(currentRow - delta, currentCol + delta);\n if (tileInBetween.hasChessPiece()) {\n noPiecesBetween = false;\n }\n }\n }\n\n return sameDiagonal && noPiecesBetween;\n }",
"public boolean isLegalMove (int row, int col, BoardModel board, int side) {\n\t\t\n\t\tboolean valid = false;\n\t\t//look if the position is valid\n\t\tif(board.getBoardValue(row, col) == 2) {\n\t\t\t//look for adjacent position\n\t\t\tfor(int[] surround : surroundingCoordinates(row, col)) {\n\t\t\t\t//the adjacent poision has to be of the opponent\n\t\t\t\tif(board.getBoardValue(surround[0], surround[1]) == getOpponent(side)){\n\t\t\t\t\t//now check if we come across with a color of ourselves\n\t\t\t\t\tint row_diff = surround[0] - row;\n\t\t\t\t\tint col_diff = surround[1] - col;\t\t\t\t\t\n\t\t\t\t\tif(!valid && checkNext((row+row_diff), (col+col_diff), row_diff, col_diff, side, board) ){\n\t\t\t\t\t\tvalid = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn valid;\n\t}",
"private boolean checkMoveOthers(Pieces piece, Coordinates from, Coordinates to) {\n\t\t\t\t\n\t\t/* \n\t\t *il pedone: \n\t\t * -può andare dritto sse davanti a se non ha pedine\n\t\t * -può andare obliquo sse in quelle posizioni ha una pedina avversaria da mangiare\n\t\t * \n\t\t */\n\t\tif (piece instanceof Pawn) {\n\t\t\tif (from.getY() == to.getY()) {\n\t\t\t\tif(chessboard.at(to) == null)\n\t\t\t\t\treturn true;\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(chessboard.at(to) == null) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//il cavallo salta le pedine nel mezzo\n\t\tif (piece instanceof Knight)\n\t\t\treturn true;\n\t\t\n\t\t//Oltre non andranno il: cavallo, il re ed il pedone.\n\t\t/*\n\t\t *Calcolo le posizioni che intercorrono tra il from ed il to escluse \n\t\t *ed per ogni posizione verifico se è vuota\n\t\t *-se in almeno una posizione c'è una pedina(non importa il colore), la mossa non è valida\n\t\t *-altrimenti, la strada è spianata quindi posso effettuare lo spostamento \n\t\t */\n\t\tArrayList<Coordinates> path = piece.getPath(from, to);\n\t\tfor (Coordinates coordinate : path) {\n\t\t\tif ( chessboard.at(coordinate) != null ){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"boolean hasMove(Piece side) {\r\n List<Move> listOfLegalMoves = legalMoves(side);\r\n return listOfLegalMoves != null;\r\n }",
"public MoveType isMoveValid(int newIndexX, int newIndexY, int oldIndexX, int oldIndexY) {\n\n if (!isFieldPlaceable(newIndexX, newIndexY) || isFieldOccupied(newIndexX, newIndexY)) {\n return INVALID;\n }\n\n if (bestPieceFound) {\n if (bestPieceToMove != board[oldIndexY][oldIndexX].getPiece()) {\n //check if chosen piece is the best piece to move\n return INVALID;\n }\n if (bestMoveFound) {\n int yDir = (newIndexY - oldIndexY < 0) ? -1 : 1;\n int xDir = (newIndexX - oldIndexX < 0) ? -1 : 1;\n if (xDir != bestMoveDirectionX || yDir != bestMoveDirectionY) {\n return INVALID;\n }\n }\n }\n\n if (board[oldIndexY][oldIndexX].getPiece().getType().equals(PieceType.MEN)) {\n if (abs(newIndexY - oldIndexY) == 2) {\n //kill attempt\n int enemyY = newIndexY - ((newIndexY - oldIndexY) / 2);\n int enemyX = newIndexX - ((newIndexX - oldIndexX) / 2);\n\n if (isEnemyKilled(enemyX, enemyY, board)) {\n //check if kill will be executed properly\n board[enemyY][enemyX].setPiece(null);\n if (controller.killEnemy(enemyX, enemyY)) {\n //update view after killing\n if (round == PieceColor.LIGHT) {\n darkCounter -= 1;\n } else {\n lightCounter -= 1;\n }\n return KILL;\n } else {\n return INVALID;\n }\n }\n }\n\n if (board[oldIndexY][oldIndexX].getPiece().getMoveDirection() == (oldIndexY - newIndexY)) {\n //check if men moves in right direction\n if (killAvailable) {\n //if user execute normal move when kill is available, move is invalid\n return INVALID;\n }\n return MoveType.NORMAL;\n }\n } else if (board[oldIndexY][oldIndexX].getPiece().getType().equals(PieceType.KING)) {\n\n if (abs(newIndexX - oldIndexX) == abs(newIndexY - oldIndexY)) {\n //check if king moves diagonally\n\n int yDir = (newIndexY - oldIndexY < 0) ? -1 : 1;\n int xDir = (newIndexX - oldIndexX < 0) ? -1 : 1;\n\n if (piecesInKingsWay(oldIndexX, oldIndexY, newIndexX, newIndexY, xDir, yDir) == 1)\n //check if king is able to kill piece in its way\n if (isEnemyKilled(newIndexX - xDir, newIndexY - yDir, board)) {\n //check if king is placed just behind piece and try to kill\n return killUsingKing(newIndexX, newIndexY, xDir, yDir, board);\n } else {\n return INVALID;\n }\n else {\n if (piecesInKingsWay(oldIndexX, oldIndexY, newIndexX, newIndexY, xDir, yDir) > 1) {\n //if more pieces in kings way, it cant move over them\n return INVALID;\n }\n }\n\n\n if (newIndexX != oldIndexX && newIndexY != oldIndexY) {\n //every other possibility is checked, if place is changed it is normal move\n if (killAvailable) {\n return INVALID;\n }\n return MoveType.NORMAL;\n }\n }\n }\n if (newIndexX == oldIndexX && newIndexY == oldIndexY) {\n return MoveType.NONE;\n }\n return MoveType.INVALID;\n }",
"public Boolean isValidMovement(int x, int y){\n\t\tif ( x < 0 || x > 7 || y < 0 || y > 7 \n\t\t\t\t|| this.board.getPiece(x, y).getColor().equalsIgnoreCase(this.color))\n\t\t\treturn false;\n\t\t\n\t\tint distX = Math.abs(this.posX - x);\n\t\tint distY = Math.abs(this.posY - y);\n\t\t\n\t\tif (distX != distY)\n\t\t\treturn false;\n\t\t\n\t\tif (this.posX > x && this.posY > y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX - i, this.posY - i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (this.posX < x && this.posY > y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX + i, this.posY - i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (this.posX > x && this.posY < y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX - i, this.posY + i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (this.posX < x && this.posY < y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX + i, this.posY + i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"private boolean canGetOutOfCheck(boolean[][] moves, Piece piece) {\r\n\t\tfor (int i = 0; i < this.SIZE; i++) {\r\n\t\t\tfor (int j = 0; j < this.SIZE; j++) {\r\n\t\t\t\tif(checkMove(moves, piece, i, j)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n public boolean canMovePieceAtPoint(Point point) {\n return (getPiece(point) != null);\n }",
"@Override\n\tpublic boolean isLegalMove(Square newPosition) {\n\t\treturn false;\n\t}",
"public boolean isValidMove(Move move) {\n return (abs(move.getStart()[0] - move.getEnd()[0]) == abs(move.getEnd()[1] - move.getStart()[1]))\n ||\n (move.getStart()[0] == move.getEnd()[0] && move.getStart()[1] != move.getEnd()[1])\n || (move.getStart()[1] == move.getEnd()[1] && move.getStart()[0] != move.getEnd()[0]);\n }",
"private boolean tryMove(Shape newPiece, int newX, int newY) {\n for (int i = 0; i < 4; ++i) {\n\n int x = newX + newPiece.x(i);\n int y = newY - newPiece.y(i);\n//if a piece reaches the edge it stops\n if (x < 0 || x >= BOARD_WIDTH || y < 0 || y >= BOARD_HEIGHT) {\n return false;\n }\n//if a piece is adjacent to any fallen tetris pieces it stops\n if (shapeAt(x, y) != Tetrominoe.NoShape) {\n return false;\n }\n }\n\n curPiece = newPiece;\n curX = newX;\n curY = newY;\n\n repaint();\n\n return true;\n }",
"public boolean isValid(Point start, Point end)\n \t{\n \t\tDirection direction = getDirection(start,end);\n \t\t\n \t\tif(board[end.y][end.x] != null) //you can only move a piece to an empty spot\n \t\t\treturn false;\n \t\tif(direction == Direction.none) //no move was made\n \t\t\treturn true;\n \t\t\n \t\t//no need to check for borders since visual board should not let you move a piece outside the borders\n \t\t\n \t\tif(Math.abs(start.x-end.x) <= 1 && Math.abs(start.y-end.y) <= 1) //only moved max 1 position in any direction\n \t\t{\n \t\t\tif(start.y + start.x % 2 == 0) //diagonals are possible\n \t\t\t{\t\n \t\t\t\t//check for piece\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\telse //only up, down, left, right\n \t\t\t{\n \t\t\t\tif(\t\tdirection == Direction.topleft ||\n \t\t\t\t\t\tdirection == Direction.topright ||\n \t\t\t\t\t\tdirection == Direction.botright || \n \t\t\t\t\t\tdirection == Direction.botleft )\n \t\t\t\t\treturn false;\n \t\t\t\telse\t\n \t\t\t\t\treturn true;\n \t\t\t}\n \t\t}\n \t\telse\n \t\t\treturn false; //moved either x or y more than one position\n \t}",
"public boolean validMove(int x, int y, boolean blackPlayerTurn)\n\t{\n\t\t// check holds 'B' if player black or 'W' if player white\n\t\tchar check;\n\t\tchar checkNot;\n\t\tcheck = blackPlayerTurn ? 'B' : 'W';\n\t\tcheckNot = !blackPlayerTurn ? 'B' : 'W';\n\t\tchar[][] arrayClone = cloneArray(currentBoard);\n\t\t// check if board position is empty\n\t\tif (currentBoard[x][y] == ' ')\n\t\t{\n\t\t\t// prime arrayClone by placing piece to be place in spot\n\t\t\tarrayClone[x][y] = check;\n\t\t\t// check if capture of other players pieces takes place (up, right, left, down)\n\t\t\t// checkNot\n\t\t\tcaptureCheck(x, y, checkNot, arrayClone);\n\t\t\t// if our candidate placement has liberties after capture check then place\n\t\t\t// piece!\n\t\t\tif (hasLibTest(x, y, check, arrayClone))\n\t\t\t{\n\t\t\t\tif (pastBoards.contains(arrayClone))\n\t\t\t\t{\n\t\t\t\t\t// do not allow repeat boards\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tcurrentBoard = cloneArray(arrayClone);\n\t\t\t\t// make move handles actually piece placement so remove check from board\n\t\t\t\tarrayClone[x][y] = ' ';\n\t\t\t\t// arrayClone contains updated positions with captured pieces removed\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn false;\n\t\t\n\t}",
"private boolean validMove(int xi, int yi, int xf, int yf) {\n\t\tif (pieceAt(xi, yi).isKing() && pieceAt(xi, yi).isFire() && pieceAt(xf, yf) == null) {\n\t\t\tif (Math.abs(xi - xf) == 1 && Math.abs(yi - yf) == 1) {\n\t\t\t\treturn true;\n\t\t\t} else if (pieceAt((xi+xf)/2, (yi+yf)/2) != null && pieceAt((xi+xf)/2, (yi+yf)/2).isFire() == false && Math.abs(xi - xf) == 2 && Math.abs(yi - yf) == 2) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if (pieceAt(xi, yi).isKing() && pieceAt(xi, yi).isFire() == false && pieceAt(xf, yf) == null) {\n\t\t\tif (Math.abs(xi - xf) == 1 && Math.abs(yi - yf) == 1) {\n\t\t\t\treturn true;\n\t\t\t} else if (pieceAt((xi+xf)/2, (yi+yf)/2) != null && pieceAt((xi+xf)/2, (yi+yf)/2).isFire() && Math.abs(xi - xf) == 2 && Math.abs(yi - yf) == 2) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if (pieceAt(xi, yi).isKing() == false && pieceAt(xi, yi).isFire() && pieceAt(xf, yf) == null) {\n\t\t\tif ((xi - xf == -1 && yi - yf == -1) || (xi - xf == 1 && yi - yf == -1)) {\n\t\t\t\treturn true;\n\t\t\t} else if (pieceAt((xi+xf)/2, (yi+yf)/2) != null && pieceAt((xi+xf)/2, (yi+yf)/2).isFire() == false) {\n\t\t\t\tif (xi - xf == -2 && yi - yf == -2) {\n\t\t\t\t\treturn true;\n\t\t\t\t} else if (xi - xf == 2 && yi - yf == -2) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (pieceAt(xi, yi).isKing() == false && pieceAt(xi, yi).isFire() == false && pieceAt(xf, yf) == null) {\n\t\t\tif ((xi - xf == -1 && yi - yf == 1) || (xi - xf == 1 && yi - yf == 1)) {\n\t\t\t\treturn true;\n\t\t\t} else if (pieceAt((xi+xf)/2, (yi+yf)/2) != null && pieceAt((xi+xf)/2, (yi+yf)/2).isFire()) {\n\t\t\t\tif (xi - xf == 2 && yi - yf == 2) {\n\t\t\t\t\treturn true;\n\t\t\t\t} else if (xi - xf == -2 && yi - yf == 2) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"boolean canMove (int newRow, int newColumn, Piece piece) {\n for (int r = 0; r < piece.height; ++r)\n for (int c = 0; c < piece.width; ++c) {\n if (piece.blocks[r][c] == 1 && !board.isEmpty(newRow + r, newColumn + c))\n return false;\n }\n return true;\n }",
"private boolean canMove() {\n return !(bestMove[0].getX() == bestMove[1].getX() && bestMove[0].getY() == bestMove[1].getY());\n }",
"@Override\n\tpublic boolean isMoveValid(Chessboard chessboard, int end) {\n\t\tthrow new UnsupportedOperationException(\"Not supported yet.\");\n\t}",
"public boolean isValidMove(int id) {\n\t\t\n\t\tint position = findPosition(id);\n\t\t\n\t\tboolean valid = false;\n\t\t\n\t\tvalid = valid || ((blankTilePos - 1) == position);\n\t\tvalid = valid || ((blankTilePos + 1) == position);\n\t\tvalid = valid || ((blankTilePos - dimension) == position);\n\t\tvalid = valid || ((blankTilePos + dimension) == position);\n\t\t\n\t\treturn valid;\n\t}",
"public boolean checkMove(location start_pos, location end_pos, chess[][] board){\n // move in vertical direction or horizontal direction\n if(start_pos.getY() == end_pos.getY() || start_pos.getX() == end_pos.getX() ){\n // Distance is greater than zero\n if(!isStay(start_pos, end_pos)){\n return !isChessOnWay(start_pos, end_pos, board);\n }\n }\n return false;\n }",
"@Test\n public void testMovePieceValidMove() {\n Position pos = new Position(board, 3, 3);\n Pawn pawn = new Pawn(Color.WHITE);\n board.getSquare(pos).addPiece(pawn);\n pawn.setPosition(pos);\n Position pos1 = new Position(board, 4, 3);\n assertTrue(chess.movePiece(board.getSquare(pos), board.getSquare(pos1), pawn));\n }",
"@Test\n public void isValidMoveTest() {\n\n //get the board of the enemy with the method getBoard() from enemyGameBoard\n board = enemyGameBoard.getBoard();\n\n //Try two times for a existing point on the board\n assertTrue(enemyGameBoard.isValidMove(1,1));\n assertTrue(enemyGameBoard.isValidMove(2,4));\n\n //Try two times for a non-existing point on the board\n assertFalse(enemyGameBoard.isValidMove(15,5)); // x-value outside the board range\n assertFalse(enemyGameBoard.isValidMove(5,11)); // y-value outside the board range\n\n //hit a water field\n enemyGameBoard.makeMove(2, 3, false);\n assertTrue(board[2][3].equals(EnemyGameBoard.WATER_HIT));\n\n //try isValidMove() on the already hit water field\n assertFalse(enemyGameBoard.isValidMove(2,3));\n\n //hit a ship field\n enemyGameBoard.makeMove(5, 4, true);\n assertTrue(board[5][4].equals(EnemyGameBoard.SHIP_HIT));\n\n //try isValidMove() on the already hit water field\n assertFalse(enemyGameBoard.isValidMove(5,4));\n }",
"public static boolean isMoveValid(int[][] board, int player, int fromRow, int fromCol, int toRow, int toCol) {\r\n\t\t\r\n\t\tboolean ans = false;\r\n\t\t\r\n\t\tif (board[toRow][toCol]==0){/*is the target slot ia emtey*/\r\n\t\t\tif (player==1){\r\n\t\t\t\tif (board[fromRow][fromCol]==1||board[fromRow][fromCol]==2){ /*is the starting slot is red player queen olayer solduer*/\r\n\t\t\t\t\tif (isBasicJumpValid(board,player,fromRow,fromCol,toRow,toCol)){/*is the eating is legal*/\r\n\t\t\t\t\t\tans = true;\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tif (canJump(board,player)==false){/*is ther no eating jump?*/\r\n\t\t\t\t\t\t\tif (isBasicMoveValid(board,player,fromRow,fromCol,toRow,toCol)){/*is this is legal move*/\r\n\t\t\t\t\t\t\t\tans = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\t\t\tif (player==-1){\r\n\t\t\t\tif (board[fromRow][fromCol]==-1||board[fromRow][fromCol]==-2){/*is the starting slot is blue player queen olayer solduer*/\r\n\t\t\t\t\tif (isBasicJumpValid(board,player,fromRow,fromCol,toRow,toCol)){/*is the eating is legal*/\r\n\t\t\t\t\t\tans = true;\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tif (canJump(board,player)==false){/*is ther are no eating move*/\r\n\t\t\t\t\t\t\tif (isBasicMoveValid(board,player,fromRow,fromCol,toRow,toCol)){/*is the move is legal*/\r\n\t\t\t\t\t\t\t\tans = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ans;\r\n\t}",
"public boolean move (int x,int y, OthelloPiece colour){\n boolean valid = false;\n if(move(x,y,VALID_MOVE_3,VALID_MOVE_2,colour)) valid=true;\n if(move(x,y,VALID_MOVE_3,VALID_MOVE_3,colour)) valid=true;\n if(move(x,y,VALID_MOVE_3,VALID_MOVE_1,colour)) valid=true;\n if(move(x,y,VALID_MOVE_2,VALID_MOVE_3,colour)) valid=true;\n if(move(x,y,VALID_MOVE_2,VALID_MOVE_1,colour)) valid=true;\n if(move(x,y,VALID_MOVE_1,VALID_MOVE_2,colour)) valid=true;\n if(move(x,y,VALID_MOVE_1,VALID_MOVE_3,colour)) valid=true;\n if(move(x,y,VALID_MOVE_1,VALID_MOVE_1,colour)) valid=true;\n setThePieces();\n if(valid){\n m_PieceCount++;\n }\n return (valid);\n }",
"boolean isLegal(Move move) {\n int count = pieceCountAlong(move);\n int c0 = move.getCol0();\n int r0 = move.getRow0();\n int c1 = move.getCol1();\n int r1 = move.getRow1();\n int count2 = Math.max(Math.abs(c1 - c0), Math.abs(r1 - r0));\n return ((count == count2) && !blocked(move));\n }",
"@Test\n public void testMovePieceInvalidMove() {\n Position pos = new Position(board, 3, 3);\n Pawn pawnOne = new Pawn(Color.WHITE);\n board.getSquare(pos).addPiece(pawnOne);\n pawnOne.setPosition(pos);\n Position pos1 = new Position(board, 5, 3);\n assertFalse(chess.movePiece(board.getSquare(pos), board.getSquare(pos1), pawnOne));\n }",
"public boolean isLegalMove(int [] newPos, Pieces [][] gameState, Panel[][] board){\r\n\t\t\r\n\t\tif(gameState[newPos[0]][newPos[1]] != null){\r\n\t\t\tif(this.color == gameState[newPos[0]][newPos[1]].getColor()){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (piece == 'p'){\r\n\t\t\treturn this.movePawn(newPos, gameState);\r\n\t\t}else if(piece == 'r'){\r\n\t\t\treturn this.moveRook(newPos, gameState);\r\n\t\t}else if(piece == 'b'){\r\n\t\t\treturn this.moveBishop(newPos, gameState);\r\n\t\t}else if(piece == 'n'){\r\n\t\t\treturn this.moveKnight(newPos, gameState);\r\n\t\t}else if(piece == 'q'){\r\n\t\t\treturn this.moveQueen(newPos, gameState);\r\n\t\t}else if(piece == 'k'){\r\n\t\t\treturn this.moveKing(newPos, gameState, board);\r\n\t\t}\t\t\r\n\t\treturn false;\r\n\t}",
"boolean checkLegalMove(int posx, int posy) {\n\t\tBoolean bool;\n\t\tint change;\n\t\tchange = curPlayer > 1 ? (change = 1) : (change = -1);\n\t\tif (kingJumping(posx, posy, change)){\n\t\t\tbool = true;\n\t\t} else if (prevPosX == posx + change && (prevPosY == posy - 1 || prevPosY == posy + 1)){\n\t\t\tSystem.out.println(\"Normal move\");\n\t\t\tbool = true;\n\t\t} else if (jump(posx, posy, prevPiece) && (prevPosX == posx + (change * 2) && (prevPosY == posy - 2 || prevPosY == posy + 2))) {\n\t\t\tbool = true;\n\t\t} else if (((JLabel)prevComp).getIcon().equals(Playboard.rKing) || ((JLabel)prevComp).getIcon().equals(Playboard.bKing) || ((JLabel)prevComp).getIcon().equals(Playboard.blackSKing) || ((JLabel)prevComp).getIcon().equals(Playboard.redSKing)){\n\t\t\tchange *= (-1);\n\t\t\tif (prevPosX == posx + change && (prevPosY == posy - 1 || prevPosY == posy + 1)){\n\t\t\t\tbool = true;\n\t\t\t} else\n\t\t\t\tbool = false;\n\t\t} else if (prevPiece == 4 && (prevPosX == posx + 1 || prevPosX == posx -1) && (prevPosY == posy - 1 || prevPosY == posy +1)) { // King moves\n\t\t\tchange *= (-1);\n\t\t\tif (prevPosX == posx + change && (prevPosY == posy - 1 || prevPosY == posy + 1))\n\t\t\t\tbool = true;\n\t\t\telse\n\t\t\t\tbool = false;\n\t\t} else {\n\t\t\tbool = false;\n\t\t}\n\t\treturn bool;\n\t}",
"private void checkMove(Tile[][] chessBoard, int pawnX, int pawnY, int direction) {\r\n\t\tUnit unit = chessBoard[pawnX][pawnY+direction].getPiece();\r\n\t\tif (unit == null) {\r\n\t\t\tMoves move = new Moves(pawnX, pawnY+direction);\r\n\t\t\tinsertMove(move, moveList);\r\n\t\t}\r\n\t}",
"@Override\n public boolean validateMove(int currX, int currY, int newX, int newY) {\n if(!onBoard(newX, newY)){\n return false;\n }\n\n //must move linearly\n if(newX == currX && (newY == (currY + 1))){\n return true;\n }\n return false;\n }",
"public boolean isValidMove(Location from, Location to, Piece[][]b) {\n\t\t// Bishop\n\t\tboolean pieceInWay = true;\n\t\tint direction =0; \n\t\tboolean finalLocation = false;\n\t\tboolean verticalUp = false, verticalDown = false, horizontalLeft = false, horizontalRight = false;\n\t\t\n\t\tif(to.getColumn()>from.getColumn() && to.getRow()<from.getRow()){\n\t\t\tdirection = 1;\n\t\t}\n\t\telse if (to.getColumn()<from.getColumn() && to.getRow()>from.getRow()){\n\t\t\tdirection = 2;\n\t\t}\n\t\telse if (to.getColumn()<from.getColumn() && to.getRow()<from.getRow()){\n\t\t\tdirection = 4;\n\t\t}\n\t\telse\n\t\t\tdirection = 3;\t\n\t\t\n\t\t\n\t\tif (Math.abs(from.getColumn() - to.getColumn()) == Math.abs(from.getRow() - to.getRow())\n\t\t\t\t&& b[to.getRow()][to.getColumn()].getPlayer() != getPlayer()\n\t\t\t\t&& !pieceInWay/*b[to.getRow()][to.getColumn()].getPlayer() == 0 b[from.getRow()+1][from.getColumn()+1]*/) {\n\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Rook\n\n\t\t//This line checks to see if the final destination of the piece contains anything but a friendly piece. This is here, because\n\t\t//anything other than a friendly piece would make the move valid, given that every space in between is blank.\n\t\tif(b[to.getRow()][to.getColumn()].getPlayer() != b[from.getRow()][from.getColumn()].getPlayer())\n\t\t\tfinalLocation = true;\n\t\telse\n\t\t\tfinalLocation = false;\n\t\t\n\t\t//verticalUp\n\t\tif(from.getRow() == to.getRow() && from.getColumn() > to.getColumn()){\n\t\t\tverticalUp = true;\n\t\t\tfor(int i = to.getColumn(); i < from.getColumn() && verticalUp; i++){\n\t\t\t\tif(b[to.getRow()][i].getPlayer() == 0 && verticalUp){\n\t\t\t\t\tverticalUp = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tverticalUp = false;\n\t\t\t}\n\t\t}\n\t\t//verticalDown\n\t\telse if(from.getRow() == to.getRow() && from.getColumn() < to.getColumn()){\n\t\t\tverticalDown = true;\n\t\t\tfor(int i = from.getColumn(); i < to.getColumn() && verticalDown; i++){\n\t\t\t\tif(b[from.getRow()][i].getPlayer() == 0 && verticalDown){\n\t\t\t\t\tverticalDown = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tverticalDown = false;\n\t\t\t}\n\t\t}\n\t\t//horizontalLeft\n\t\telse if(from.getColumn() == to.getColumn() && from.getRow() > to.getRow()){\n\t\t\thorizontalLeft = true;\n\t\t\tfor(int i = to.getRow(); i < from.getRow() && horizontalLeft; i++){\n\t\t\t\tif(b[i][to.getColumn()].getPlayer() == 0 && horizontalLeft){\n\t\t\t\t\thorizontalLeft = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\thorizontalLeft = false;\n\t\t\t}\n\t\t}\n\t\t//horizontalRight\n\t\telse if(from.getColumn() == to.getColumn() && from.getRow() < to.getRow()){\n\t\t\thorizontalRight = true;\n\t\t\tfor(int i = from.getRow(); i < to.getRow() && horizontalRight; i++){\n\t\t\t\tif(b[i][from.getColumn()].getPlayer() == 0 && horizontalRight){\n\t\t\t\t\thorizontalRight = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\thorizontalRight = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(verticalUp || verticalDown || horizontalLeft || horizontalRight && finalLocation){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean isValidMove(Coordinates coordinates) {\n if (grid[coordinates.getRow()][coordinates.getColumn()].getSymbol() != 'X' &&\n grid[coordinates.getRow()][coordinates.getColumn()].getSymbol() != 'O') {\n return true;\n }\n\n return false;\n }",
"public boolean isValidMove(int startRow, int startColumn, int endRow, int endColumn, Tile[][] board) {\n\n\t\tif (validRook(startRow, startColumn, endRow, endColumn, board) || validBish(startRow, startColumn, endRow, endColumn, board)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"boolean isLegal(String move);",
"public boolean validate(int posx, int posy, ImageIcon pawn, ImageIcon king, ImageIcon santa, ImageIcon sKing){\n\t\tif (prevComp != null ){\n\t\t\treturn (((JLabel) prevComp).getIcon().equals(pawn) || ((JLabel) prevComp).getIcon().equals(king)) && checkLegalMove(posx, posy) || (((JLabel) prevComp).getIcon().equals(santa)) || ((JLabel) prevComp).getIcon().equals(sKing) && checkLegalMove(posx, posy) ;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean isValidMove(String move){\n String[] art = move.split(\" \");\n if(!art[0].equals(\"mark\")){\n return false;\n }\n int x,y;\n try {\n x=Integer.parseInt(art[1]);\n y=Integer.parseInt(art[2]);\n if(0<x && x<17 && y>0 && 17>y){\n if(board.getMark(x-1,y-1) == '-') {\n //pozitie valida si libera\n return true;\n }\n else {\n //pozitie ocupata\n return false;\n }\n }\n }catch (Exception e){\n //cazul in care nu se trimit numere ca parametri\n return false;\n }\n //daca pozitia este invalida\n return false;\n }",
"@Override\r\n boolean isValidSpecialMove(final int newX, final int newY) {\r\n int xDisplacement = newX - getXLocation();\r\n int yDisplacement = newY - getYLocation();\r\n if (isValidRookMove(xDisplacement, yDisplacement)) {\r\n // Total number of steps the piece has to take.\r\n //Either x = 0 or y = 0.\r\n int steps = Math.max(Math.abs(xDisplacement),\r\n Math.abs(yDisplacement));\r\n int xDirection = xDisplacement / steps;\r\n int yDirection = yDisplacement / steps;\r\n // Check for obstacles in path of Rook.\r\n for (int i = 1; i < steps; i++) {\r\n ChessSquare squareToCheck = getCurrentBoard().getSquaresList()\r\n [getXLocation() + i * xDirection]\r\n [getYLocation() + i * yDirection];\r\n if (squareToCheck.getIsOccupied()) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n return false;\r\n\r\n }",
"public boolean validMove(int x, int y){\n if(!super.validMove(x, y)){\n return false;\n }\n if(((Math.abs(x - this.x()) == 2) && (Math.abs(y - this.y()) == 1))\n || ((Math.abs(x - this.x()) == 1) && (Math.abs(y - this.y()) == 2))){\n return true;\n }else{\n return false;\n }\n }",
"public boolean isValid(Board b) {\n\t\tPosition from = move.oldPosition();\n\t\tPosition to = move.newPosition();\n\n\t\tif (b.pieceAt(from) instanceof Pawn) {\n\t\t\tif (this.isWhite() && to.row() == 8) {\n\t\t\t\treturn true;\n\t\t\t} else if (!this.isWhite() && to.row() == 1) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean fail(Piece piece) {\n\n // To store the moving over\n int localColumnPos = columnPos - piece.getShift();\n\n // If the piece will go outside the bounds of the board, return false\n if (piece.getMatrix().length + rowPos > board.length ||\n piece.getMatrix()[0].length + localColumnPos > board[0].length || localColumnPos < 0) return true;\n\n // Check for no true true collisions\n for (int i = 0; i < piece.getMatrix().length; i++) {\n for (int j = 0; j < piece.getMatrix()[0].length; j++) {\n // If there is a true + true anywhere, do not add piece\n if (piece.getMatrix()[i][j] && board[i + rowPos][j + localColumnPos]) return true;\n }\n }\n return false;\n }",
"public boolean hasMoves() {\n if(color != 0){\n activePieces = getPiece();\n\n for(int i = 0; i < activePieces.size(); i++){\n Piece curr = activePieces.get(i);\n\n if(curr.possibleMoves(state).size() > 0){\n //curr.printSpecial();\n return true;\n }\n }\n return false;\n }\n System.out.println(\"Empty stop error\");\n return false;\n }",
"public boolean isValidMove(CardStack stack)\n {\n return false;\n }",
"boolean isValid(int xPos, int yPos, int destX, int destY) {\r\n\t\tboolean valid = false;\r\n\t\t\r\n\t\t//Moves White\r\n\t\tif(this.color == \"Weiß\"){\r\n\t\t//Moving 2 Tiles\r\n\t\tif (firstMove == true && destY - yPos == -2 && destX == xPos) {\r\n\t\t\tvalid = true;\r\n\t\t\tthis.firstMove = false;\r\n\t\t}\r\n\t\t//Moving 1 Tile\r\n\t\tif (destX == xPos && destY - yPos == -1) {\r\n\t\t\tvalid = true;\r\n\t\t\tthis.firstMove = false;\r\n\t\t}\r\n\t\t//Moving Diagonal if enemy is there\r\n\t\tif ((destX == xPos + 1 || destX == xPos-1) && destY == yPos -1){\r\n\t\t\tvalid = isValidLoop(destX, destY, valid);\r\n\t\t}\r\n\t\treturn valid;\r\n\t\t} \r\n\t\t\r\n\t\t//Moves Black\r\n\t\telse {\r\n\t\t//Moving 2 Tiles\r\n\t\tif (firstMove == true && destY - yPos == 2 && destX == xPos) {\r\n\t\t\tvalid = true;\r\n\t\t\tthis.firstMove = false;\r\n\t\t}\r\n\t\t//Moving 1 Tile\r\n\t\tif (destX == xPos && destY - yPos == 1) {\r\n\t\t\tvalid = true;\r\n\t\t\tthis.firstMove = false;\r\n\t\t}\r\n\t\t//Moving Diagonal\r\n\t\tif ((destX == xPos + 1 || destX == xPos-1) && destY == yPos +1){\r\n\t\t\tvalid = isValidLoop(destX, destY,valid);\r\n\t\t}\r\n\t\t}\r\n\t\treturn valid;\r\n\t}",
"@Override\n\tboolean isValidSpecialMove(int newX, int newY) {\n\t\tint xDisplacement = newX - xLocation;\n\t\tint yDisplacement = newY - yLocation;\n\t\tif(isValidQueenMove(xDisplacement, yDisplacement)){\n\t\t\tint steps = Math.max(Math.abs(xDisplacement), Math.abs(yDisplacement));\n\t\t\tint xDirection = xDisplacement/steps;\n\t\t\tint yDirection = yDisplacement/steps;\n\t\t\t// Check for obstacles in path of Queen.\n\t\t\tfor(int i = 1; i < steps; i++){\n\t\t\t\tSquare squareToCheck = currentBoard.squaresList[xLocation + i*xDirection][yLocation + i*yDirection];\n\t\t\t\tif(squareToCheck.isOccupied)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean canMove() {\n\t\tArrayList<Location> loc = getValid(getLocation());\n\t\tif (loc.isEmpty()) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tpath.add(getLocation());\n\t\t\tif (loc.size() >= 2) {\n\t\t\t\tcrossLocation.push(path);\n\t\t\t\tpath = new ArrayList<Location>();\n\t\t\t\tnext = betterDir(loc);\n\t\t\t}\n\t\t\tnext = loc.get(0);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public void drawValidMove() {\n if(this.getPlayer().getPlayerID() % 2 != 0) {\n //Pawn can move one space forwards if no piece is in front\n if (board.getSquare(x-1, y).getPiece()== null) {\n board.getSquare(x-1, y).drawOutline();\n }\n \n //if first move, pawn can move 2 spaces forward\n if (!hasMoved && board.getSquare(x-2, y).getPiece() == null && board.getSquare(x-1, y).getPiece() == null) {\n board.getSquare(x-2, y).drawOutline();\n }\n \n //If there is an enemy piece in the diagonal forward square of the pawn, the pawn can move (capture the piece)\n if (y-1 > 0) { //ensures no arrayoutofbounds error\n if (board.getSquare(x-1, y-1) != null && board.getSquare(x-1, y-1).getPiece() != null &&\n board.getSquare(x-1, y-1).getPiece().getPlayer() != this.getPlayer()) {\n board.getSquare(x-1, y-1).drawOutline();\n }\n }\n \n if(y+1<SIZE) { //ensures no arrayoutofbounds error\n if (board.getSquare(x-1, y+1) != null && board.getSquare(x-1, y+1).getPiece() != null &&\n board.getSquare(x-1, y+1).getPiece().getPlayer() != this.getPlayer() ) {\n board.getSquare(x-1, y+1).drawOutline();\n }\n }\n \n System.out.println(\"\");\n //En passant\n if (y - 1 > 0) {\n \n System.out.println();\n if (board.getSquare(x, y-1).getPiece() != null) { \n System.out.println(\"the piece's enPassant is: \" + board.getSquare(x, y-1).getPiece().getEnPassant());\n System.out.println(\"The game's turn counter is: \" + board.getTurnCounter());\n }\n else {\n System.out.println(\"Null piece when checking for en passent.\");\n }\n \n if (board.getSquare(x, y-1).getPiece() != null && board.getSquare(x, y-1).getPiece().getPlayer() != this.player &&\n board.getSquare(x, y-1).getPiece().getEnPassant() == board.getTurnCounter() - 1) {\n board.getSquare(x-1, y-1).drawOutline();\n board.getSquare(x-1, y-1).setEnPassent(true);\n }\n }\n \n if (y + 1 < SIZE) {\n if (board.getSquare(x, y+1).getPiece() != null && board.getSquare(x, y+1).getPiece().getPlayer() != this.player &&\n board.getSquare(x, y+1).getPiece().getEnPassant() == board.getTurnCounter() - 1) {\n board.getSquare(x-1, y+1).drawOutline();\n board.getSquare(x-1, y+1).setEnPassent(true);\n }\n }\n }\n \n //If this pawn belongs to player 2:\n else {\n \n if (board.getSquare(x+1, y).getPiece() == null) {\n board.getSquare(x+1, y).drawOutline();\n }\n \n //if first move, pawn can move 2 spaces forward\n if (!hasMoved && board.getSquare(x+2, y).getPiece() == null && board.getSquare(x+1, y).getPiece() == null) {\n board.getSquare(x+2, y).drawOutline();\n \n }\n \n if(y-1 > 0) {\n if (board.getSquare(x+1, y-1) != null && board.getSquare(x+1, y-1).getPiece() != null &&\n board.getSquare(x+1, y-1).getPiece().getPlayer() != this.getPlayer() ) {\n board.getSquare(x+1, y-1).drawOutline();\n }\n }\n \n if(y+1 < SIZE) {\n if (board.getSquare(x+1, y+1) != null && board.getSquare(x+1, y+1).getPiece() != null &&\n board.getSquare(x+1, y+1).getPiece().getPlayer() != this.getPlayer()) {\n board.getSquare(x+1, y+1).drawOutline();\n }\n }\n \n //En passant\n if (y - 1 > 0) {\n if (board.getSquare(x, y-1).getPiece() != null &&board.getSquare(x, y-1).getPiece().getPlayer() != this.player &&\n board.getSquare(x, y-1).getPiece().getEnPassant() == board.getTurnCounter() - 1) {\n board.getSquare(x+1, y-1).drawOutline();\n board.getSquare(x+1, y-1).setEnPassent(true);\n }\n }\n \n if (y + 1 < SIZE) {\n if (board.getSquare(x, y+1).getPiece() != null && board.getSquare(x, y+1).getPiece().getPlayer() != this.player &&\n board.getSquare(x, y+1).getPiece().getEnPassant() == board.getTurnCounter() - 1) {\n board.getSquare(x+1, y+1).drawOutline();\n board.getSquare(x+1, y+1).setEnPassent(true);\n }\n }\n }\n }",
"private boolean isValidMove(int pressedHole) {\n return getPlayerHole(pressedHole).getKorgools() != 0;\n }",
"private boolean moveContinues(Point piece){\r\n boolean result = canEats(piece);\r\n // if move continues, next move has to start with the same piece\r\n model.setCheckPiece((result)?piece:null);\r\n return result;\r\n }"
] | [
"0.7857436",
"0.78077215",
"0.7659428",
"0.7618952",
"0.7604047",
"0.75440174",
"0.75293833",
"0.75154436",
"0.7496493",
"0.7453668",
"0.7442554",
"0.7412967",
"0.7407568",
"0.73711824",
"0.735424",
"0.7347129",
"0.730856",
"0.7308299",
"0.7252135",
"0.7236423",
"0.7222372",
"0.7198969",
"0.718745",
"0.71748674",
"0.7166489",
"0.7156433",
"0.7141273",
"0.71203005",
"0.71128255",
"0.71058404",
"0.7098566",
"0.70983136",
"0.7093052",
"0.70757437",
"0.70611334",
"0.7059835",
"0.7042753",
"0.7036238",
"0.7020012",
"0.7016882",
"0.7003854",
"0.700341",
"0.6997951",
"0.69933873",
"0.69844",
"0.6974894",
"0.6971056",
"0.696374",
"0.6959883",
"0.6956082",
"0.6952151",
"0.69485724",
"0.6943951",
"0.69375813",
"0.69254893",
"0.6925443",
"0.69244444",
"0.69209236",
"0.69201493",
"0.69178176",
"0.6916294",
"0.69134724",
"0.69046575",
"0.69036674",
"0.69029564",
"0.6902572",
"0.69023275",
"0.68968683",
"0.6891901",
"0.6868009",
"0.68649554",
"0.6860701",
"0.68589526",
"0.68584317",
"0.684987",
"0.6839894",
"0.6839199",
"0.6838609",
"0.6833484",
"0.68255275",
"0.68236023",
"0.6817687",
"0.67897373",
"0.6779803",
"0.67765677",
"0.67680883",
"0.6765797",
"0.6761468",
"0.6756888",
"0.6754456",
"0.6751011",
"0.6749364",
"0.67329127",
"0.6729809",
"0.6717479",
"0.6703079",
"0.6699268",
"0.6698754",
"0.669654",
"0.668662"
] | 0.7430481 | 11 |
checks to see if an index is currently filled with a block | public boolean hasBlock(int row, int col) {
if(blockMatrix[row][col]) {
return true;
}
return false; // if block is not filled
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isFull() {\r\n\t\treturn cur_index == size;\r\n\t}",
"public int isFull(){\n\t\tfor(i = 0; i < blocksPerSet; i++){\n\t\t\tif(blocks[i].getValid() == false)\n\t\t\t\treturn i;\n\t\t}\n\t\treturn -1;\n\t}",
"boolean hasNewBlock();",
"boolean hasNewBlock();",
"@Override\n\tpublic boolean isValidIndex(long index) {\n\t\ttry {\n\t\t\tif (isEmtpy || Long.compareUnsigned(index, maxOffset) > 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn memory.contains(getAddress(index));\n\t\t}\n\t\tcatch (IOException | AddressOutOfBoundsException e) {\n\t\t\treturn false;\n\t\t}\n\t}",
"protected boolean inSomeBlock() {\n return !enclosingBlocks.isEmpty();\n }",
"public boolean blockEmpty()\r\n/* 72: */ {\r\n/* 73: 60 */ return false;\r\n/* 74: */ }",
"public boolean isFull() {\n return (e+1)%buf.length == b;\n }",
"public boolean endOfBlock () {\n if (index >= blockIn.length()) {\n blockEnded = true;\n }\n return blockEnded;\n }",
"public boolean checkNotDone() {\n boolean notDone = false;\n blocksPut = 0;\n \n for(int y = 0; y < buildHeight+1; y++) {\n for(int z = 0; z < buildSize; z++) {\n for(int x = 0; x < buildSize; x++) {\n if(myIal.lookBlock(x, y, z).equals(\"air\")) {\n notDone = true;\n } else {\n blocksPut++;\n }\n }\n }\n }\n\n return notDone;\n }",
"@Override\r\n\tpublic boolean isfull() {\n\t\t\r\n\t\treturn count == size ;\r\n\t}",
"boolean hasBlockInfo();",
"boolean hasBlockInfo();",
"boolean hasBlockNumber();",
"boolean hasBlockNumber();",
"private boolean isElementIndex(final long index) {\r\n\t\treturn index >= 0 && index < size;\r\n\t}",
"public boolean indexCheck(int index) {\n return (index >= 0 && index <= size) ? true : false;\n }",
"private boolean isFull() {\n\t\treturn (size == bq.length);\n\t}",
"public boolean hasIndex() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasIndex() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasIndex() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasIndex() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasIndex() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"private boolean isIndexExist(int index) {\n return index >= 0 && index < size();\n }",
"public boolean isFull() {\n\t\treturn markCount == 9;\n\t}",
"public boolean hasIndex() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasIndex() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasIndex() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasIndex() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasIndex() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"boolean isFull() {return pointer==size;}",
"public boolean hasNewBlock() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasNewBlock() {\n return ((bitField0_ & 0x00200000) == 0x00200000);\n }",
"public boolean hasNewBlock() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasNewBlock() {\n return ((bitField0_ & 0x00200000) == 0x00200000);\n }",
"public boolean IsFalling(){\r\n for (int i = 2; i < 10; i++) {\r\n ArrayList<Block> blocks = blockList.GetBlockList(i);\r\n for (Block block : blocks)\r\n if (map[block.getI() + 1][block.getJ()] == '0')//if the index down the block is empty (equal to 0) so its falling\r\n return true;\r\n }\r\n return false;\r\n }",
"private boolean validateIndex(int index)\n {\n return index >= 0;\n }",
"public boolean isEmpty()\n\t{\n\t\treturn block == Block.EMPTY;\n\t}",
"public boolean isFull() {\n\t\treturn (rear+1)%total_size == front;\r\n\t}",
"public boolean indexingReady() {\n\t\tint i =0;\n\t\t// wait while\n\t\twhile ((lock.isLocked() || queue.size() > 0) && i < 20) {\n\t\t\ttry {\n\t\t\t\tlogger.debug(\"Wait for completing indexing before closing\");\n\t\t\t\tThread.sleep(1000);\n\t\t\t\ti++;\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlogger.error(\"Error wait for close\", e);\n\t\t\t}\n\t\t}\n\t\treturn (queue.size()==0);\n\t}",
"private boolean checkHaveThisNode(int index) {\n\t\treturn this.array[index] == null;\n\t}",
"public boolean IsDisappearing(){\r\n for (int i = 2; i < 10; i++) {\r\n ArrayList<Block> blocks = blockList.GetBlockList(i);//get all blocks\r\n int[] indexI = new int[blocks.size()], indexJ = new int[blocks.size()];\r\n //put i and j of All blocks with same color on i&j arrays\r\n for (int j = 0; j < indexI.length; j++) {\r\n indexI[j] = blocks.get(j).getI();\r\n indexJ[j] = blocks.get(j).getJ();\r\n }\r\n //check if 2 block beside each other if yes return true\r\n if (CheckBoom(indexI, indexJ))\r\n return true;\r\n else if (blocks.size() == 3) {//else check if there is another block have same color if yes swap on i,j array\r\n int temp = indexI[2];\r\n indexI[2] = indexI[1];\r\n indexI[1] = temp;\r\n temp = indexJ[2];\r\n indexJ[2] = indexJ[1];\r\n indexJ[1] = temp;\r\n if (CheckBoom(indexI, indexJ))//check\r\n return true;\r\n else {//else check from another side\r\n temp = indexI[0];\r\n indexI[0] = indexI[2];\r\n indexI[2] = temp;\r\n temp = indexJ[0];\r\n indexJ[0] = indexJ[2];\r\n indexJ[2] = temp;\r\n if (CheckBoom(indexI, indexJ))//check\r\n return true;\r\n }\r\n }\r\n }\r\n //if not return true so its false\r\n return false;\r\n }",
"public boolean isFull(){\n return this.top==this.maxLength-1;\n }",
"private void findNextBlock(MatrixIndex cursor) {\n while (isFreeBlock(cursor) || !inBounds(cursor)){\n incrementMatrixIndex(cursor);\n }\n }",
"public boolean isFull() {\n if(this.top==(size - 1)) {\n return true;\n }\n return false;\n }",
"public boolean isFull()\n\t{\n\t\tif (counter == list.length)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean ifFull() {\n return items.length == size;\n }",
"boolean hasIndex();",
"boolean hasIndex();",
"boolean hasIndex();",
"boolean hasIndex();",
"boolean hasIndex();",
"boolean hasIndex();",
"private boolean isBlockAvailable(BlockShape shape) {\n boolean result = false;\n\n for (BlockColor color : map_color_to_id.keySet()) {\n if (objBlockFactory.IsBlocktypeAvailable(shape, color)){\n result = true;\n break;\n }\n }\n return result;\n }",
"public boolean underfull() {\n\t\treturn lastindex < minkeys(); // ptrs number: Math.ceil(degree / 2.0) ~ n\n\t}",
"public boolean isFull() {\n return size == cnt;\n }",
"@Override\r\n\tpublic boolean isFull() {\r\n\t\tif(topIndex == stack.length -1) {\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\t\r\n\t}",
"public boolean hasBlockInfo() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"public boolean checkValidIndex(int index) {\n return index >= 0 && index <= lines.getList().size();\n }",
"public boolean hasBlockInfo() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"@Override\n public boolean isFull(){\n return (count == size);\n \n }",
"public boolean hasBlockInfo() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"public boolean isEmpty() { return curChunker() == null; }",
"public boolean isFull() {\r\n return placeCounter == dimension * dimension;\r\n }",
"public boolean isFull(){\n \treturn count==capacity;\n }",
"private boolean isFull(){\n return cellSize == Max;\n }",
"public boolean hasBlockInfo() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"private boolean isOutOfBounds(int index) {\n return index < 0 || index >= this.size();\n }",
"public boolean validIndex(int idx) {\n return idx >= 0 && idx < len;\n }",
"public boolean isFull() {\n return (this.count == this.capacity);\n }",
"public boolean isInternalIndex() {\n return (this == itemIndex || this == withdrawnIndex || this == privateIndex);\n }",
"public boolean isFull() {\n return (this.top == this.stack.length);\n }",
"public boolean isFull(){\n\t\tfor(int i = 0; i < INVENTORY_SLOTS; i++){\n\t\t\tif(inventoryItems[i] == null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"private boolean checkIndexBounds(int idx) {\n return (idx >= 0) && (idx <= this.length);\n }",
"private boolean checkRange(final int index) {\n if ((index > size) || (index < 0)) {\n return false;\n }\n return true;\n }",
"public boolean isFull(){\r\n\t\tfor(int i = 0; i < boardSize; i++){\r\n\t\t\tif(board[i] == Box.EMPTY){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"private boolean isEmpty() {\n int ro = reserveOffset;\n if (ro >= reserve) {\n if (queue[reserve].isCommitted()) {\n ro = reserve + 1;\n } else {\n ro = reserve;\n }\n }\n\n LOG.debug(\"Effective flush/reserve offset {}/{}\", flushOffset, ro);\n return ro <= flushOffset;\n }",
"private boolean checkFull() {\n\t\treturn this.array.length - 1 == this.lastNotNull();\n\t}",
"public boolean isFull() { return front == (rear + 1) % MAX_QUEUE_SIZE; }",
"public boolean isFull() { return false; }",
"@Override\n\tpublic boolean isFull() {\n\t\tif(nodeCount == this.MAX_SIZE) return true; \n\t\telse return false;\n\t}",
"void onHave(int index)\n {\n // in correct piece we must have correct block #0\n boolean correct = torrent.validateBlock(index, 0, 0);\n if (!correct) {\n close(Peer.CloseReason.PROTOCOL_ERROR);\n return;\n }\n\n peerPieces.set(index);\n }",
"public boolean isFull() {\r\n\t\treturn (rear+1)%maxSize==front;\r\n\t}",
"public boolean isFull() {\n\t\treturn(this.size == this.capacity);\n\t}",
"public boolean isFull() {\n\t\treturn end != null;\n\t}",
"public boolean isFull() {\n return count == capacity;\n }",
"public static boolean self_test() { return self_test(BLOCK_SIZE); }",
"boolean isFull()\n\t{\n\t\treturn rear==size-1;\n\t}",
"public boolean checkIfFull() {\n this.isFull = true;\n for(int i=0; i<this.size; i++) {\n for(int j=0; j<this.size; j++) if(this.state[i][j].isEmpty) this.isFull = false;\n }\n }",
"private boolean isPositionIndex(final long index) {\r\n\t\treturn index >= 0 && index <= size;\r\n\t}",
"public boolean isFull(int row, int col) {\n return false;\n }",
"public boolean isFull() {\n\t\treturn numElements==data.length;\n\t}",
"public boolean isFull()\r\n\t{\r\n\t\treturn (count == capacity);\r\n\t}",
"private boolean checkScanNodesCompleted() {\n\t\treturn cursor.getSelectionPos() >= jedisNodes.size();\n\t}"
] | [
"0.6894296",
"0.67096955",
"0.6641917",
"0.6641917",
"0.6602737",
"0.6512772",
"0.6461406",
"0.6439849",
"0.6374357",
"0.63694435",
"0.6319113",
"0.6285518",
"0.6285518",
"0.6275407",
"0.6275407",
"0.625065",
"0.6237164",
"0.6226824",
"0.6218308",
"0.6216967",
"0.6216967",
"0.6216967",
"0.6216967",
"0.6214395",
"0.6202326",
"0.6197985",
"0.6197985",
"0.6197985",
"0.6197985",
"0.6196952",
"0.61789167",
"0.6148428",
"0.6136612",
"0.61302525",
"0.6123564",
"0.6111716",
"0.61069894",
"0.6076531",
"0.60731256",
"0.60412496",
"0.6040776",
"0.6036669",
"0.6034741",
"0.6020472",
"0.5998512",
"0.5986035",
"0.59782875",
"0.5963138",
"0.5963138",
"0.5963138",
"0.5963138",
"0.5963138",
"0.5963138",
"0.596126",
"0.5947716",
"0.5940734",
"0.5938465",
"0.5931759",
"0.5931369",
"0.59083396",
"0.5905615",
"0.59050924",
"0.59034944",
"0.59016466",
"0.5896949",
"0.58865625",
"0.5883463",
"0.5872549",
"0.5872549",
"0.5872549",
"0.5872549",
"0.5872549",
"0.5872549",
"0.5868448",
"0.58682775",
"0.5855813",
"0.5855351",
"0.58531845",
"0.58529824",
"0.58440566",
"0.58299434",
"0.58287305",
"0.58262724",
"0.58260477",
"0.5825747",
"0.5825741",
"0.5824812",
"0.5817222",
"0.5811816",
"0.58078045",
"0.5798723",
"0.579635",
"0.5791493",
"0.5791469",
"0.579034",
"0.57835937",
"0.57764655",
"0.57713336",
"0.5770533",
"0.57657987"
] | 0.58152485 | 88 |
adds a new piece to the board | public void addNewPiece() {
// creates a range from 1-7 to choose from each of the pieces
int pieceChoice = (int) (Math.random()*7) + 1;
if(pieceChoice == 1) {
currentPiece = new TetrisI();
}
else if(pieceChoice == 2) {
currentPiece = new TetrisJ();
}
else if(pieceChoice == 3) {
currentPiece = new TetrisL();
}
else if(pieceChoice == 4) {
currentPiece = new TetrisO();
}
else if(pieceChoice == 5) {
currentPiece = new TetrisS();
}
else if(pieceChoice == 6) {
currentPiece = new TetrisT();
}
else {
currentPiece = new TetrisZ();
}
currentPiece.pieceRotation = 0;
initCurrentGP();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addPiece(Piece piece);",
"public void addPiece(ChessPiece piece, int row, int col) \n\t{\n\t\t/* remove the old piece if one is already there */\n\t\tif (m_pieces[row][col] != null) {\n\t\t\tremovePiece(row, col);\n\t\t}\n\t\t\n\t\t/* set the coordinates of the piece and add it to the array*/\n\t\tpiece.setRow(row);\n\t\tpiece.setColumn(col);\n\t\tm_pieces[row][col] = piece;\n\t\t\n\t\t/* update the GUI */\n\t\tJButton button = m_buttons[row][col];\n\t\tm_display.displayFilledSquare(button, piece, row, col);\n\t}",
"public boolean addPieceToBoardTile(Piece piece) {\n\n\t\tif(piece == null) return false; \n\t\tLocation pieceLoc = piece.getLocation();\n\n\t\tTile tile=null;\n\n\t\ttry {\n\t\t\ttile = getTileInLocation(pieceLoc);\n\t\t\ttile.setPiece(piece);\n\t\t\tthis.replaceTileInSameTileLocation(tile);\n\t\t\treturn true;\n\t\t} catch (LocationException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\n\t}",
"void pieceAdded(Piece piece);",
"public void addPieces() {\r\n\t\tboard[0] = 8;\r\n\t\tboard[1] = 1;\r\n\t\tboard[2] = 6;\r\n\t\tboard[3] = 3;\r\n\t\tboard[4] = 5;\r\n\t\tboard[5] = 7;\r\n\t\tboard[6] = 4;\r\n\t\tboard[7] = 9;\r\n\t\tboard[8] = 2;\r\n\t}",
"public int addPiece(int column, char piece) {\n if (column < 0 || column > 6 || this.hasPiece(0, column)) {\n return 0;\n }\n for (int i = 0; i < 6; i++) {\n if (i == 5 || !hasPiece(i, column) && hasPiece(i + 1, column)) {\n board[i][column] = piece;\n return i;\n }\n } \n return -1;\n\t}",
"public void putPiece(Piece piece, int x, int y)\r\n {\r\n if(isValidSqr(x, y))\r\n {\r\n board[x][y] = piece;\r\n if(piece != null) piece.setLocation(x, y);\r\n }\r\n }",
"public void add(String piece) {\n\tif(!pieces.contains(piece))\n\t pieces.add(piece);\n\tupdate();\n }",
"public void addPiece(int move, boolean color)\n\t{\n\t\tthis.board[5 - columns[move]][move] = new Piece(color);\n\t\tcolumns[move]++;\n\t}",
"public void addPiece(Piece p) {\n\t\tpieces.add(p);\n\t}",
"public boolean addPiece(Piece piece) {\n\t\tif(piece != null) {\n\t\t\treturn this.pieces.add(piece) && addPieceToBoardTile(piece);\n\t\t}\n\t\treturn false;\n\t}",
"public void addPieceToHand(Piece piece) {\n this.piecesInHand.add(piece);\n piece.getSquare().removePiece();\n }",
"public void placePiece(Piece newPiece){pieceAtVertex = newPiece;}",
"private boolean addPiece(Piece piece, int rowPos, int columnPos) {\n\n // No true true collisions\n for (int i = 0; i < piece.getMatrix().length; i++) {\n for (int j = 0; j < piece.getMatrix()[0].length; j++) {\n board[i + rowPos][j + columnPos] = piece.getMatrix()[i][j] ^ board[i + rowPos][j + columnPos];\n }\n }\n\n // Set the position of the piece for output?\n piece.rowPosition = rowPos;\n piece.columnPosition = columnPos;\n\n return true;\n }",
"@Override\n\tpublic void addPiece(Piece piece){\n\t\tif(_endMap.containsKey(piece.getPlayer())){\n\t\t\tInteger value = _endMap.get(piece.getPlayer());\n\t\t\t_endMap.put(piece.getPlayer(), ++value);\t\t\t\n\t\t}\n\t\telse{\n\t\t\t_endMap.put(piece.getPlayer(), 1);\n\t\t}\n\t}",
"public void setPiece(Piece newPiece) {\n this.piece = newPiece;\n }",
"private void placePiece() {\r\n pieces[numPieces] = getRandomPoint();\r\n Game.movePiece(new PositionData(-1,-1,Constants.PLAYER_A_ID), pieces[numPieces]);\r\n numPieces++;\r\n }",
"private void insertPiece(Piece opponentPiece) {\r\n\t\tif (opponentPiece == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (opponentPiece.getPlayer().color == Color.WHITE) {\r\n\t\t\twhite.addElement(opponentPiece);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tblack.addElement(opponentPiece);\r\n\t\t}\r\n\t}",
"void spawnNewPiece () {\n if (nextPiece == null)\n currentPiece = new Piece();\n else\n currentPiece = nextPiece;\n nextPiece = new Piece();\n\n positionToStart();\n isFalling = true;\n\n // Add blocks of the next piece to nextPiece view\n nextPieceBoard.clear();\n final int nRow = 0 - nextPiece.getOffset();\n final int nColumn = nextPieceBoard.rows / 2 - nextPiece.width / 2;\n for (int r = 0; r < nextPiece.height; ++r)\n for (int c = 0; c < nextPiece.width; ++c)\n if (nextPiece.blocks[r][c] == 1)\n nextPieceBoard.addTempBlock(new Block(nextPiece.color), r + nRow, c + nColumn);\n nextPieceView.setBlocks(nextPieceBoard.getCombined());\n nextPieceView.repaint();\n }",
"public void putPiece(Piece piece, Square sqr)\r\n {\r\n if(sqr != null) putPiece(piece, sqr.x, sqr.y);\r\n }",
"private void newPiece() {\n curPiece.setRandomShape();\n//compute the initial curX and curY values \n curX = BOARD_WIDTH / 2 + 1;\n curY = BOARD_HEIGHT - 1 + curPiece.minY();\n//if a piece reaches the top and cannot drop any more piece\n if (!tryMove(curPiece, curX, curY)) {\n//cancel timer and display game over\n curPiece.setShape(Tetrominoe.NoShape);\n timer.cancel();\n isStarted = false;\n statusbar.setText(\"Game over\");\n }\n }",
"public boolean placePiece(Piece piece,String side, int row, int col)\n {\n\tboolean placed = true;\n\tint[][] shape = piece.getShape(); //shape of the piece\n\tString[][] fBoard = new String[rows][cols]; //temp front board\n\tString[][] bBoard = new String[rows][cols]; //temp back board\n\tfor(int i=0;i<rows;i++)\n\t {\n\t\tfor(int j=0;j<cols;j++)\n\t\t {\n\t\t\tfBoard[i][j] = frontBoard[i][j];\n\t\t\tbBoard[i][j] = backBoard[i][j];\n\t\t }\n\t }\n\tint insertRow = row; //row on the board being altered\n\tint insertCol = col; //column on the board being altered\n\tfor(int i=0;i<piece.getPieceRows();i++)\n\t {\n\t\tfor(int j=0;j<piece.getPieceCols();j++)\n\t\t {\n\t\t\tif(insertRow<0 || insertRow>rows-1 || insertCol<0 || insertCol>cols-1) //checks that the row and column numbers are valid\n\t\t\t {\n\t\t\t\tplaced = false;\n\t\t\t\tbreak;\n\t\t\t }\n\t\t\telse\n\t\t\t {\n\t\t\t\tif(side==\"front\") //places the piece relative to the front of the board\n\t\t\t\t {\n\t\t\t\t\tif(fBoard[insertRow][insertCol].equals(\"0\") || fBoard[insertRow][insertCol].charAt(1)=='0') \n\t\t\t\t\t //if the front board has a 0\n\t\t\t\t\t {\n\t\t\t\t\t\tif(shape[i][j]!=0)//if the piece does not have a 0 in the spot\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tfBoard[insertRow][insertCol] = piece.getColor().charAt(0) + \"\" + 2; //front gets a color and a 2\n\t\t\t\t\t\t\tbBoard[insertRow][rows-insertCol] = piece.getColor().charAt(0) + \"\" + shape[i][j]; //back gets a color and a 1\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t\telse if(fBoard[insertRow][insertCol].charAt(1)=='1')\n\t\t\t\t\t //if the front board has a 1\n\t\t\t\t\t {\n\t\t\t\t\t\tif(shape[i][j]!=2) //if the piece does not have a 2\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tfBoard[insertRow][insertCol] = piece.getColor().charAt(0) + \"\" + 2; //front of the board gets a 2\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\tplaced = false;\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\telse\n\t\t\t\t\t //if the front of the board has a 2, only a piece with a 0 can be placed there\n\t\t\t\t\t {\n\t\t\t\t\t\tif(shape[i][j]!=0)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t placed = false;\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\telse //places the piece relative to the back of the board (same rules as above only reversed)\n\t\t\t\t {\n\t\t\t\t\tif(bBoard[insertRow][insertCol].equals(\"0\") || bBoard[insertRow][insertCol].charAt(1)=='0')\n\t\t\t\t\t {\n\t\t\t\t\t\tif(shape[i][j]!=0)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tbBoard[insertRow][insertCol] = piece.getColor().charAt(0) + \"\" + 2;\n\t\t\t\t\t\t\tfBoard[insertRow][rows-insertCol] = piece.getColor().charAt(0) + \"\" + shape[i][j];\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t\telse if(bBoard[insertRow][insertCol].charAt(1)=='1')\n\t\t\t\t\t {\n\t\t\t\t\t\tif(shape[i][j]!=2)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tbBoard[insertRow][insertCol] = piece.getColor().charAt(0) + \"\" + 2;\t \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\tplaced = false;\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\telse\n\t\t\t\t\t {\n\t\t\t\t\t if(shape[i][j]!=0)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t placed = false;\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 }\n\t\t\tinsertCol++;\n\t\t }\n\t\tinsertRow++;\n\t\tinsertCol = col;\n\t }\n\tif(placed) //if the piece did not encounter a collision, change the actual front and back of the board\n\t{\n\t\tfrontBoard = fBoard;\n\t\tbackBoard = bBoard;\n\t\tString color = piece.getColor();\n\t\tint index = 0;\n\t\twhile(!unused[index].getColor().equals(color))\n\t\t{\n\t\t\tindex++;\n\t\t}\n\t\tfor(int j=index;j<unused.length-1;j++)\n\t {\n\t\t\tunused[j] = unused[j+1];\n\t }\n\t\tunused[unused.length-1] = null;\n\t\tindex = 0;\n\t\tif(onBoard.length>0)\n\t\t{\n\t\t\twhile(onBoard[index]!=null && index<10)\n\t\t\t{\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t\tif(index<10)\n\t\t{\n\t\t\tonBoard[index] = color;\n\t\t}\n\t}\n\treturn placed;\n }",
"public void placePiece(Piece piece, Position position) {\n\t\tif(thereIsAPiece(position)) {\n\t\t\tthrow new BoardException(\"There is already a piece on position \" + position);\n\t\t}\n\t\tpieces[position.getRow()][position.getColumn()] = piece;\n\t\tpiece.position = position;\n\t}",
"public void setNewPiece(){\n\t\tcurrentPiece = Pentominoes.Pentomino_array[this.next_piece_index];\n\t\tcurrentColor = Pentominoes.color_array[this.next_piece_colour];\n\t\tpieceOrigin = new Point(6, 2);\n\t}",
"public void addPawn(Pawn pawn, Position position) {\n\t\tboardGrid[position.getRow()][position.getColumn()] = pawn;\n\t}",
"private void addToMap(int x, int y, MapBox piece){\n\t\tBoxContainer type;\r\n\t\t\n\t\t// determine the type of this square\n\t\ttype = BoxContainer.Open;\r\n\t\t\n\t\tif (piece.hasKey()){\n\t\t\t// this is a key so mark it as such and add it to our array\n\t\t\ttype = BoxContainer.Key;\n\t\t\tPoint thisPoint = new Point(x, y, BoxContainer.Key);\n\t\t\tif (!checkForPointInArr(keys, thisPoint)){ // make sure it's not already in the array\n\t\t\t\tkeys.add(thisPoint); // add this to our key array\n\t\t\t}\n\t\t} else if (piece.isEnd()){\n\t\t\t// this is an exit so mark it as such and add it to our array\n\t\t\ttype = BoxContainer.Exit;\n\t\t\tPoint thisPoint = new Point(x, y, BoxContainer.Exit);\n\t\t\tif (!checkForPointInArr(exits, thisPoint)){ // make sure it's not already in the array\n\t\t\t\texits.add(new Point(x, y, BoxContainer.Exit)); // add this to our exit array\n\t\t\t}\n\t\t}\r\n\t\t\n\t\t// add it to the map\r\n\t\t\n\t\tmap.addElement(x, y, type);\n\t\t\n\t\t// add its surroundings to the map\n\t\tPoint[] surrondings = new Point[4];\r\n\t\t\n\t\tsurrondings[0] = new Point(x, y + 1, castToBoxContainer(piece.North)); // add the north piece\n\t\tsurrondings[1] = new Point(x, y - 1, castToBoxContainer(piece.South)); // add the south piece\n\t\tsurrondings[2] = new Point(x + 1, y, castToBoxContainer(piece.East)); // add the east piece\n\t\tsurrondings[3] = new Point(x - 1, y, castToBoxContainer(piece.West)); // add the west piece\n\t\t\n\t\tfor (int i = 0; i < surrondings.length; i++){\n\t\t\t// check if this is a key or an exit and if so add it to the respective arrays if it not already there\n\t\t\tif (surrondings[i].type == BoxContainer.Exit){\n\t\t\t\tif (!checkForPointInArr(exits, surrondings[i])){ // make sure it's not already there\n\t\t\t\t\texits.add(surrondings[i]);\n\t\t\t\t}\n\t\t\t} else if (surrondings[i].type == BoxContainer.Key){\n\t\t\t\tif (!checkForPointInArr(keys, surrondings[i])){ // make sure it's not already there\n\t\t\t\t\tkeys.add(surrondings[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmap.addElement(surrondings[i].x, surrondings[i].y, surrondings[i].type);\n\t\t}\n\t}",
"public void setPiece(int x, int y, Piece piece) {\n \tboard[y][x] = piece;\n }",
"public Piece newNextPiece()\n {\n if(nextPiece!=null)\n nextPiece.removeFromGrid();\n Piece returnPiece = nextPiece;\n nextPiece = PieceBuilder.Random();\n nextPiece.insertIntoGrid(1, 0, grid);\n this.invalidate();\n return returnPiece;\n }",
"public void nextPiece() {\n\t\tif (currentPiece != null) {\n\t\t\tfor (Loc l : currentPiece.getLocation()) {\n\t\t\t\tif (!l.isOnBoard()) {\n\t\t\t\t\tendGame();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tcurrentPiece = piecePlacer.nextPiece();\n\n\t\tdropPiece();\n\t\tnextPiecePanel.setNextPiece();\n\t}",
"public boolean addPiecesToBoard(ArrayList<Piece> pieces) {\n\t\tif(pieces==null || pieces.isEmpty())return false;\n\t\tfor(Piece p:pieces) {\n\t\t\taddPiece(p);\n\t\t}\n\t\treturn true;\n\t}",
"void placePiece(Piece piece, Position position) {\n positionToPieceMap.put(position, piece);\n }",
"private void removePiece(Piece piece) {\n addPiece(piece, piece.rowPosition, piece.columnPosition);\n }",
"static boolean place(int row, int col, char[][] piece) {\n\n if (canPlace(row, col, piece)) {\n for (int r = 0; r < piece.length; r++) {\n for (int c = 0; c < piece[r].length; c++) {\n if (row + r >= 0 && row + r < board.length && col + c >= 0 && col + c < board[row].length) {\n board[row + r][col + c] = piece[r][c];\n }\n }\n }\n }\n return false;\n\n\n }",
"private void addNewBoard(int x, int y,\n\t\t\tArrayList<ArrayList<Integer>> board) {\n\t\tif (y < 0 || y > board.size() - 1) { //expanding up/down\n\t\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\t\tArrayList<Integer> z = new ArrayList<>();\n\t\t\t\tfor (int j = 0; j < board.get(0).size(); j++) {\n\t\t\t\t\tif ((j < x + boardSize && j >= x && x >= 0)) { //adjusts for y if it isn't 0 or negative, almost forgot about this\n\t\t\t\t\t\tz.add(0);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tz.add(5);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (y < 0) {\n\t\t\t\t\tboard.add(0, z);\n\t\t\t\t\ty++;\n\t\t\t\t} else {\n\t\t\t\t\tboard.add(z);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfreeSpace += boardSize * boardSize;\n\t\t}\n\t\tif (x < 0 || x > board.get(0).size() - 1) { //expanding to the left/right\n\t\t\tint loc = (x < 0) ? 0 : board.get(0).size();\n\t\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\t\tfor (int j = 0; j < board.size(); j++) {\n\t\t\t\t\tif (j < y + boardSize && j >= y) {\n\t\t\t\t\t\tboard.get(j).add(loc, 0); //append as opposed to add\n\t\t\t\t\t} else {\n\t\t\t\t\t\tboard.get(j).add(loc, 5); //append lack of board everywhere else\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfreeSpace += boardSize * boardSize;\n\t\t}\n\t\tif ((y >= 0 && y < board.size())\n\t\t\t\t&& (x >= 0 && x < board.get(0).size())\n\t\t\t\t&& getBoard(x, y) == 5) { //If within board\n\t\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\t\tfor (int j = 0; j < boardSize; j++) {\n\t\t\t\t\tboard.get(y + i).set(x + j, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfreeSpace += boardSize * boardSize;\n\t\t}\n\t\tupdateOffset();\n\t}",
"public void addPiece(final PEPiece piece, final int pieceNumber)\n\t{\n\t\taddPiece( piece, pieceNumber, false );\n\t}",
"void addPiece(int c, int r) {\n _forwardDiag[forward(c, r)] += 1;\n _backwardDiag[backward(c, r)] += 1;\n _col[c - 1] += 1;\n _row[r - 1] += 1;\n }",
"public void eatPiece(Point pos){\r\n // Update Board Numbers\r\n if(isRed(pos)){\r\n if(isQueen(pos))\r\n model.setRedQueenCount(-1);\r\n else \r\n model.setRedCount(-1);\r\n } else {\r\n if(isQueen(pos))\r\n model.setBlackQueenCount(-1);\r\n else\r\n model.setBlackCount(-1);\r\n }\r\n // Update Rival Piece Number\r\n model.getRivalPlayer().setPieceNumber(-1);\r\n // Update Current Player Eated Pieces\r\n model.getCurrentPlayer().setPieceEated(+1);\r\n // Make Eat\r\n model.setValueAt(pos,Cells.BLACK_FLOOR);\r\n }",
"void movePiece() {\n\n }",
"public void add(int column){\n\t\tif(turn == \"blue\"){\n\t\t\tboard.AddBlue(column);\n\t\t\t\n\t\t}else{\n\t\t\tboard.AddRed(column);\n\t\t}\n\t\tthis.changeTurn();\n\t}",
"public void makemove (char piece)\n {\n\tint x = IBIO.inputInt (\"\\nEnter the x-coordinate: \");\n\tint y = IBIO.inputInt (\"Enter the y-coordinate: \");\n\twhile (!isValid (x, y))\n\t{\n\t System.out.println (\"Error - invalid coordinate. Try again.\");\n\t x = IBIO.inputInt (\"\\nEnter the x-coordinate: \");\n\t y = IBIO.inputInt (\"Enter the y-coordinate: \");\n\t}\n\n\n\tif (x == 1 && y == 1)\n\t a = piece;\n\telse if (x == 2 && y == 1)\n\t b = piece;\n\telse if (x == 3 && y == 1)\n\t c = piece;\n\telse if (x == 1 && y == 2)\n\t d = piece;\n\telse if (x == 2 && y == 2)\n\t e = piece;\n\telse if (x == 3 && y == 2)\n\t f = piece;\n\telse if (x == 1 && y == 3)\n\t g = piece;\n\telse if (x == 2 && y == 3)\n\t h = piece;\n\telse if (x == 3 && y == 3)\n\t i = piece;\n }",
"private void placePieces(List<Piece> pieces) {\r\n pieces.forEach(\r\n piece -> {\r\n grid[piece.getPosition()] = piece;\r\n // if key doesn't exist create new with array containing piece\r\n // if it does exist add piece to existing array\r\n this.pieces.merge(\r\n piece.getPlayerColor(),\r\n new ArrayList<>(Collections.singletonList(piece)),\r\n (o, n) -> {\r\n o.add(piece);\r\n return o;\r\n });\r\n });\r\n }",
"public void getNewPiece(){\n\t\tthis.next_piece_index= rand.nextInt(18);\n\t\tthis.next_piece_colour= rand.nextInt(10);\n\t\tnext_currentPiece = Pentominoes.Pentomino_array[this.next_piece_index];\n\t\tnext_currentColor = Pentominoes.color_array[this.next_piece_colour];\n\t\tfor(int i = 0; i < next_pieces_array.length; i++){\n\t\t\tfor(int j = 0; j<next_pieces_array[0].length; j++){\n\t\t\t\t\tnext_pieces_array[i][j] = Color.WHITE;\n\t\t\t}\n\t\t}\n\t\tfor(Point p: next_currentPiece){\n\t\t\tnext_pieces_array[p.x + pieceOrigin2.x][p.y + pieceOrigin2.y] = next_currentColor;\n\t\t}\n\t}",
"public void updateBoard(int[][] board, int piece){\r\n this.board=board;\r\n this.piece=piece;\r\n columns = board.length;\r\n rows = board[0].length;\r\n save = Math.min((size / columns), (size / rows));\r\n this.repaint();\r\n repaint();\r\n }",
"private void addAnotherElement() {\n\t\t SnakeSquare ss = sSquare.get(sSquare.size() - 1);\n\t\t double velX = ss.getDX();\n\t\t double velY = ss.getDY();\n\t\t \n\t\t double x = ss.getX();\n\t\t double y = ss.getY();\n\t\t double len = ss.getLength();\n\t\t Color c = ss.getColor();\n//\t\t double snakeSize = 10.0f;\n\t\t \n\t\t if(velX == 0 && velY == 0){sSquare.add(new SnakeSquare(x, y + snakeSize, c, len));}\n\t\t if(velX == 0 && velY == 1){sSquare.add(new SnakeSquare(x, y - snakeSize, c, len));}//move down;\n\t\t if(velX == 0 && velY == -1){sSquare.add(new SnakeSquare(x, y + snakeSize, c, len));}//move up;\n\t\t if(velX == 1 && velY == 0){sSquare.add(new SnakeSquare(x+ snakeSize, y, c, len));}//move right;\n\t\t if(velX == -1 && velY == 0){sSquare.add(new SnakeSquare(x - snakeSize, y, c, len));}// move left;\n\t\t\n\t}",
"public void movePlayerPiece(Tile newTile) {\n // Check if the target tile is a position that can be moved to.\n PlayerPiece pp = currentPlayersTurn.getPiece();\n int tileRow = pp.getLocation().getRow();\n int tileCol = pp.getLocation().getColumn();\n List<Pair<Integer, Integer>> neighbours = new ArrayList<>();\n\n // Generate immediately adjacent tiles.\n for (int row = tileRow - 1; row <= tileRow + 1; row++) {\n if (row == tileRow || row > board.getGrid().getRows() ||\n row < 0) {\n continue;\n }\n neighbours.add(new Pair<>(row, tileCol));\n }\n for (int col = tileCol - 1; col <= tileCol + 1; col++) {\n if (col == tileCol || col > board.getGrid().getColumns() ||\n col < 0) {\n continue;\n }\n neighbours.add(new Pair<>(tileRow, col));\n }\n\n boolean canMove = neighbours.contains(new Pair<>(newTile.getRow(),\n newTile.getColumn())) && (currentPlayersSteps > 0)\n && state == GameState.InPlay && !newTile.isOccupied();\n\n if (canMove) {\n currentPlayersTurn.getPiece().getLocation().removeOccupier();\n currentPlayersTurn.getPiece().setLocation(newTile);\n currentPlayersSteps--;\n }\n\n if (currentPlayersSteps <= 0) {\n endTurn();\n }\n }",
"public void addPiece(char col, double x,double y, int ID, double spe, double ang){\n if (col == 'w'){ //if drone recreate that drone\n Drone newPiece = new Drone(x,y);\n newPiece.setDirection(spe,ang);\n newPiece.setID(ID);\n drones.add(newPiece);\n }\n else if(col == 'g'){ //if obstacle recreate that obstacle\n Obstacle newPiece = new Obstacle(x, y);\n newPiece.setID(ID);\n drones.add(newPiece);\n }\n else if (col == 'o'){ //if bird recreate that bird\n Bird newPiece = new Bird(x,y);\n newPiece.setDirection(spe,ang);\n newPiece.setID(ID);\n drones.add(newPiece);\n }\n }",
"private void drawPiece(Piece piece) {\n int kind = piece.getKind() + 1;\n int pos0 = piece.getPos(0);\n int pos1 = piece.getPos(1);\n int pos2 = piece.getPos(2);\n int pos3 = piece.getPos(3);\n\n g.drawImage(tile[kind], (pos0%12)*23-3, (pos0/12)*23+17, this);\n g.drawImage(tile[kind], (pos1%12)*23-3, (pos1/12)*23+17, this);\n g.drawImage(tile[kind], (pos2%12)*23-3, (pos2/12)*23+17, this);\n g.drawImage(tile[kind], (pos3%12)*23-3, (pos3/12)*23+17, this);\n }",
"@Test\n public void testAddPiece() {\n System.out.println(\"addPiece\");\n\n Piece piece = new Piece(PlayerColor.WHITE, 3);\n Player instance = new Player(PlayerColor.WHITE, \"\");\n\n instance.addPiece(piece);\n\n assertTrue(instance.getBagContent().contains(piece));\n }",
"public void place(Piece p, int x, int y) {\n\t\tif (x >= 8 || y >= 8 || p == null) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tif (pieceAt(x, y) != null) {\n\t\t\t\tremove(x, y);\n\t\t\t}\n\t\t\tb[x][y] = p;\n\t\t\tif (p.isFire()) {\n\t\t\t\tnumFire += 1;\n\t\t\t} else {\n\t\t\t\tnumWater += 1;\n\t\t\t}\n\t\t}\n\t}",
"public abstract Piece setLocation(int row, int column);",
"boolean canMove (int newRow, int newColumn, Piece piece) {\n for (int r = 0; r < piece.height; ++r)\n for (int c = 0; c < piece.width; ++c) {\n if (piece.blocks[r][c] == 1 && !board.isEmpty(newRow + r, newColumn + c))\n return false;\n }\n return true;\n }",
"public void movePiece(Coordinate from, Coordinate to);",
"public abstract void move(int newXPosition, int newYPosition, PiecePosition position) throws BoardException;",
"public void addToBoard(Location location, State state)\n {\n for (Node node : gridPaneBoard.getChildren())\n if (GridPane.getColumnIndex(node) == location.getX() && GridPane.getRowIndex(node) == location.getY())\n {\n Rectangle rectangle = ((Rectangle) node);\n switch(state)\n {\n case HEAD:\n rectangle.setFill(Color.DARKGREEN);\n break;\n case TAIL:\n rectangle.setFill(Color.GREEN);\n score++;\n break;\n case FOOD:\n rectangle.setFill(Color.RED);\n break;\n }\n labelScore.setText(\"Wynik: \" + score);\n }\n }",
"static void addNewPieces() {\n ArrayList<Block> news = new ArrayList<>();\n news.add(new Block(new int[]{2, 3}, Tetrominos.I));\n news.add(new Block(new int[]{2, 3}, Tetrominos.J));\n news.add(new Block(new int[]{2, 3}, Tetrominos.L));\n news.add(new Block(new int[]{2, 3}, Tetrominos.O));\n news.add(new Block(new int[]{2, 3}, Tetrominos.S));\n news.add(new Block(new int[]{2, 3}, Tetrominos.T));\n news.add(new Block(new int[]{2, 3}, Tetrominos.Z));\n\n\n Collections.shuffle(news);\n newPiece.addAll(news);\n }",
"public abstract Piece movePiece(Move move);",
"public void addSquare(Square square) {\n\t\t\n\t}",
"public void placePiece(String pos, Dominos piece){\n Dominos hold;\n if(pos.equals(\"left\")){\n hold = this.getFirst();\n\n if(piece.getLeftSide() == 0){\n piece.flip();\n this.addFirst(piece);\n return;\n }\n if(piece.getRightSide() == 0){\n this.addFirst(piece);\n return;\n }\n\n if(hold.getLeftSide() != piece.getRightSide()\n && hold.getLeftSide() != 0){\n piece.flip();\n }\n this.addFirst(piece);\n }else{\n hold = this.getLast();\n if(piece.getRightSide() == 0){\n piece.flip();\n this.addLast(piece);\n return;\n }\n if(piece.getLeftSide() == 0){\n this.addLast(piece);\n return;\n }\n if(hold.getRightSide() != piece.getLeftSide()\n && hold.getRightSide() !=0){\n piece.flip();\n }\n this.addLast(piece);\n }\n }",
"private void addToBag1(GridSquare.Type id, GridSquare.Type N, GridSquare.Type E, GridSquare.Type S, GridSquare.Type W) {\r\n\t\tbag1.add(new PieceTile(new GridSquare(id), new GridSquare[] {\r\n\t\t\t\tnew GridSquare(N),\r\n\t\t\t\tnew GridSquare(E),\r\n\t\t\t\tnew GridSquare(S),\r\n\t\t\t\tnew GridSquare(W)\r\n\t\t}));\r\n\t}",
"public void applyMove(Move move) {\r\n Piece piece = grid[move.getStart()];\r\n piece.setPosition(move.getEnd());\r\n\r\n grid[move.getStart()] = null;\r\n grid[move.getEnd()] = piece;\r\n if (move.getTakes() != null) {\r\n grid[move.getTakes().getPosition()] = null;\r\n pieces.get(move.getTakes().getPlayerColor()).remove(move.getTakes());\r\n }\r\n\r\n moveHistory.add(move);\r\n }",
"public void setPiece (int oldKey ,int key, Piece value){\n if(pieces.containsKey(oldKey))\n pieces.remove(oldKey);\n pieces.put(key, value); \n }",
"private void nextPiece() {\n if (_c == M && _r <= M) {\n _c = 1;\n _r++;\n } else if (_r > M) {\n _move = null;\n } else {\n _c++;\n }\n }",
"private void addMissileResult(int row, int col) {\n\t\tBattleshipPiece temp = new BattleshipPiece(\"\", super.currentPlayer);\n\t\t\n\t\t//Determine if player hit or miss a ship, checked the store array\n\t\tif (this.shipBoard[row][col] != null) { \n\t\t\ttemp.missileHit = true;\n\t\t\tthis.playerScore[super.currentPlayer - 1]++;\n\t\t}\n\t\telse\n\t\t\ttemp.missileHit = false;\t\t\t\n\t\t\n\t\t//Add piece\n\t\tsuper.updateGrid(row, col, temp);\t\t\n\t}",
"public Piece addPiece(Class pieceClass, Chess.Color sideColor, Board.Spot spot) {\n\t\ttry {\n\t\t\tConstructor pieceConstructor = pieceClass.getDeclaredConstructor(Game.class, Chess.Color.class, Board.Spot.class);\n\t\t\tPiece piece = (Piece) pieceConstructor.newInstance(this, sideColor, spot);\n\t\t\tpieces.get(sideColor).add(piece);\n\t\t\treturn piece;\n\t\t} catch(Exception e) {\n\t\t\tSystem.err.println(\"Exception instantiating piece: \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}",
"public void addPawn(Pawn.Color c) { pawn = new Pawn(c, Pawn.Type.BASIC); }",
"final void put(Piece p, Square s) {\r\n if (p == KING) {\r\n map.put(kingPosition(), EMPTY);\r\n king = s;\r\n }\r\n board[s.col()][s.row()] = p;\r\n }",
"public void newGame() {\n \tturn = PieceColor.White;\n \t\n \t//the middle are empty squares\n \tfor(int i = 2; i < 6; i++) {\n \t\tfor(int j = 0; j < 8; j++) {\n \t\t\tsetPiece(j, i, new NoPiece(j, i));\n \t\t}\n \t}\n \t\n \t//pawns\n \tfor(int i = 0; i < 8; i++) {\n \t\t//make these pawns\n \t\tsetPiece(i, 1, new Pawn(i, 1, PieceColor.White, this));\n \t\tsetPiece(i, 6, new Pawn(i, 6, PieceColor.Black, this));\n \t}\n \t\n \t//white back row\n \tsetPiece(0, 0, new Rook(0, 0, PieceColor.White, this));\n \tsetPiece(1, 0, new Knight(1, 0, PieceColor.White, this));\n \tsetPiece(2, 0, new Bishop(2, 0, PieceColor.White, this));\n \tsetPiece(3, 0, new Queen(3, 0, PieceColor.White, this));\n \tsetPiece(4, 0, new King(4, 0, PieceColor.White, this));\n \tsetPiece(5, 0, new Bishop(5, 0, PieceColor.White, this));\n \tsetPiece(6, 0, new Knight(6, 0, PieceColor.White, this));\n \tsetPiece(7, 0, new Rook(7, 0, PieceColor.White, this));\n \t\n \t//black back row\n \tsetPiece(0, 7, new Rook(0, 7, PieceColor.Black, this));\n \tsetPiece(1, 7, new Knight(1, 7, PieceColor.Black, this));\n \tsetPiece(2, 7, new Bishop(2, 7, PieceColor.Black, this));\n \tsetPiece(3, 7, new Queen(3, 7, PieceColor.Black, this));\n \tsetPiece(4, 7, new King(4, 7, PieceColor.Black, this));\n \tsetPiece(5, 7, new Bishop(5, 7, PieceColor.Black, this));\n \tsetPiece(6, 7, new Knight(6, 7, PieceColor.Black, this));\n \tsetPiece(7, 7, new Rook(7, 7, PieceColor.Black, this));\n \t\n \t//store locations of king so they can be checked\n \twKing = new Square(4, 0);\n \tbKing = new Square(4, 7);\n }",
"public void drawPiece(int row, int col, GamePiece piece) {\n picturesArray[row][col] = new Picture(col * CELL_SIZE + PADDING, row * CELL_SIZE + PADDING, piece.getPieceAsset());\n picturesArray[row][col].draw();\n }",
"private void addToBag2(GridSquare.Type id, GridSquare.Type N, GridSquare.Type E, GridSquare.Type S, GridSquare.Type W) {\r\n\t\tbag2.add(new PieceTile(new GridSquare(id), new GridSquare[] {\r\n\t\t\t\tnew GridSquare(N),\r\n\t\t\t\tnew GridSquare(E),\r\n\t\t\t\tnew GridSquare(S),\r\n\t\t\t\tnew GridSquare(W)\r\n\t\t}));\r\n\t}",
"public void placePiece(final double x, final double y) {\n\t\t// translate the x, y coordinates into cell indexes\n\t\tint indexx = (int) (x / cell_width);\n\t\tint indexy = (int) (y / cell_height);\n\t\t\n\t\t// if the position is empty then place a piece and swap the players\n\t\tif (board[indexx][indexy] == EMPTY && current_player == XPIECE) {\n\t\t\tboard[indexx][indexy] = XPIECE;\n\t\t\trenders[indexx][indexy] = new XOPiece(XPIECE);\n\t\t\trenders[indexx][indexy].resize(cell_width, cell_height);\n\t\t\trenders[indexx][indexy].relocate(indexx * cell_width, indexy * cell_height);\n\t\t\tgetChildren().add(renders[indexx][indexy]);\n\t\t\tcurrent_player = OPIECE;\n\t\t} else if (board[indexx][indexy] == EMPTY && current_player == OPIECE) {\n\t\t\tboard[indexx][indexy] = OPIECE;\n\t\t\trenders[indexx][indexy] = new XOPiece(OPIECE);\n\t\t\trenders[indexx][indexy].resize(cell_width, cell_height);\n\t\t\trenders[indexx][indexy].relocate(indexx * cell_width, indexy * cell_height);\n\t\t\tgetChildren().add(renders[indexx][indexy]);\n\t\t\tcurrent_player = XPIECE;\n\t\t}\n\t}",
"public void setPiece(Piece piece){\n this.piece = piece;\n this.pieceName = piece.pieceName;\n this.pieceColor = piece.pieceColor;\n this.firstMove = piece.firstMove;\n this.Enpassant = piece.Enpassant;\n }",
"private static void addPawnPushes(BitBoard board, LinkedList<Move> moveList, int side) {\n\t\t// If side is 0, then the piece is white\n\t\tint pieceType = (side == 0) ? CoreConstants.WHITE_PAWN : CoreConstants.BLACK_PAWN;\n\t\t// Offsets used to add correct moves for white and black\n\t\tint[] offsets = { 8, 56 };\n\t\t// Masks allow promotion moves to be separated\n\t\tlong[] promotions_mask = { CoreConstants.ROW_8, CoreConstants.ROW_1 };\n\t\t// If a white can move to row 3, then it might be able to double push\n\t\tlong[] startWithMask = { CoreConstants.ROW_3, CoreConstants.ROW_6 };\n\t\tint offset = offsets[side];\n\t\tlong pawns = board.getBitBoards()[side + CoreConstants.WHITE_PAWN];\n\t\t// Empty squares i.e. the squares where there is neither a white piece\n\t\t// nor a black piece\n\t\t// Hence NOT (white OR black)\n\t\tlong emptySquares = ~(board.getBitBoards()[CoreConstants.WHITE]\n\t\t\t\t| board.getBitBoards()[CoreConstants.BLACK]);\n\t\t// Circular left shift is equivalent to moving each pawn forward one\n\t\t// square\n\t\t// If it is empty then the push is valid\n\t\tlong pushes = (side == 0 ? (pawns << 8) : (pawns >>> 8)) & emptySquares;\n\t\taddMovesWithOffset(pieceType, pushes & ~promotions_mask[side], moveList, false, false,\n\t\t\t\tCoreConstants.noCastle, offset);\n\t\t// Isolate which moves are promotions\n\t\tlong promotions = pushes & promotions_mask[side];\n\t\taddMovesWithOffset(pieceType, promotions, moveList, false, true, CoreConstants.noCastle,\n\t\t\t\toffset);\n\t\t// If the push led to row 3 if white or row 8 if black and the square\n\t\t// ahead is empty then double push is possible\n\t\tpushes &= startWithMask[side];\n\t\tlong doublePushes = (side == 0 ? (pushes << 8) : (pushes >>> 8)) & emptySquares;\n\t\taddMovesWithOffset(pieceType, doublePushes, moveList, false, false, CoreConstants.noCastle,\n\t\t\t\toffset + offset);\n\t}",
"public void setPieces(){\r\n Pawn[] arrwPawn = new Pawn[8];\r\n for (int i=0 ; i<8 ; i++){\r\n pos.setPosition(6,i);\r\n arrwPawn[i] = new Pawn (pos , piece.Colour.WHITE);\r\n GameBoard.putPiece(arrwPawn[i]);\r\n }\r\n\r\n Pawn[] arrbPawn = new Pawn[8];\r\n for(int i=0 ; i<8 ; i++){\r\n pos.setPosition(0,i);\r\n arrbPawn[i] = new Pawn(pos , piece.Colour.BLACK);\r\n GameBoard.putPiece(arrbPawn[i]);\r\n }\r\n\r\n\r\n //set black pieces in the board\r\n\r\n pos.setPosition(0,0);\r\n Rook bRook1 = new Rook(pos, piece.Colour.BLACK);\r\n GameBoard.putPiece(bRook1);;\r\n\r\n pos.setPosition(0,7);\r\n Rook bRook2 = new Rook(pos, piece.Colour.BLACK);\r\n GameBoard.putPiece(bRook2);\r\n\r\n\r\n pos.setPosition(0,1);\r\n Knight bKnight1 = new Knight(pos, piece.Colour.BLACK);\r\n GameBoard.putPiece(bKnight1);\r\n\r\n pos.setPosition(0,6);\r\n Knight bKnight2 = new Knight(pos, piece.Colour.BLACK);\r\n GameBoard.putPiece(bKnight1);\r\n\r\n pos.setPosition(0,2);\r\n Bishop bBishop1 = new Bishop(pos, piece.Colour.BLACK);\r\n GameBoard.putPiece(bBishop1);\r\n\r\n pos.setPosition(0,5);\r\n Bishop bBishop2 = new Bishop(pos, piece.Colour.BLACK);\r\n GameBoard.putPiece(bBishop2);\r\n\r\n pos.setPosition(0,3);\r\n Queen bQueen = new Queen(pos, piece.Colour.BLACK);\r\n GameBoard.putPiece(bQueen);\r\n\r\n pos.setPosition(0,4);\r\n King bKing = new King(pos, piece.Colour.BLACK);\r\n GameBoard.putPiece(bKing);\r\n\r\n //set white pieces in the board\r\n\r\n pos.setPosition(7,0);\r\n Rook wRook1 = new Rook(pos, piece.Colour.WHITE);\r\n GameBoard.putPiece(wRook1);\r\n\r\n pos.setPosition(7,7);\r\n Rook wRook2 = new Rook(pos, piece.Colour.WHITE);\r\n GameBoard.putPiece(wRook2);\r\n\r\n pos.setPosition(7,1);\r\n Knight wKnight1 = new Knight(pos, piece.Colour.WHITE);\r\n GameBoard.putPiece(wKnight1);\r\n\r\n pos.setPosition(7,6);\r\n Knight wKnight2 = new Knight(pos, piece.Colour.WHITE);\r\n GameBoard.putPiece(wKnight1);\r\n\r\n pos.setPosition(7,2);\r\n Bishop wBishop1 = new Bishop(pos, piece.Colour.WHITE);\r\n GameBoard.putPiece(wBishop1);\r\n\r\n pos.setPosition(7,5);\r\n Bishop wBishop2 = new Bishop(pos, piece.Colour.WHITE);\r\n GameBoard.putPiece(wBishop2);\r\n\r\n pos.setPosition(7,3);\r\n Queen wQueen = new Queen(pos, piece.Colour.WHITE);\r\n GameBoard.putPiece(wQueen);\r\n\r\n pos.setPosition(7,4);\r\n King wKing = new King(pos, piece.Colour.WHITE);\r\n GameBoard.putPiece(wKing);\r\n\r\n\r\n\r\n Rook arrwRook[] = {wRook1,wRook2};\r\n Rook arrbRook[] = {bRook1,bRook2};\r\n Queen arrwQueen[] = {wQueen};\r\n Queen arrbQueen[] = {bQueen};\r\n Knight arrwKnight[] = {wKnight1,wKnight2};\r\n Knight arrbKnight[] = {bKnight1,bKnight2};\r\n King arrwKing[] = {wKing};\r\n King arrbKing[] = {bKing};\r\n Bishop arrwBishop[] = {wBishop1,wBishop2};\r\n Bishop arrbBishop[] = {bBishop1,bBishop2};\r\n }",
"void drawCurrentToBoard () {\n board.clearTemp();\n for (int r = 0; r < currentPiece.height; ++r)\n for (int c = 0; c < currentPiece.width; ++c)\n if (currentPiece.blocks[r][c] == 1)\n board.addBlock(new Block(currentPiece.color), r + currentRow, c + currentColumn);\n }",
"private boolean removePieceFromBoardTile(Piece piece) {\n\n\t\tif(piece == null) return false; \n\t\tLocation pieceLoc = piece.getLocation();\n\n\t\tTile tile=null;\n\t\ttry {\n\t\t\ttile = getTileInLocation(pieceLoc);\n\t\t\ttile.setPiece(null);\n\t\t\tthis.replaceTileInSameTileLocation(tile);\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"public void addPoint(GridPoint newPoint) {\n\t\t//System.out.println(\"Added rubbish at coordinates X=\" + newPoint.getX() + \", Y=\" + newPoint.getY());\n\t\tsolutionRepresentation.add(newPoint);\n\t}",
"GameBoardVertex(Piece pieceAtVertex){this.pieceAtVertex = pieceAtVertex;}",
"private void makeMove() {\r\n //if not all pieces placed, place a new piece\r\n if(numPieces < 3) {\r\n if(pieces == null)\r\n pieces = new PositionData[Constants.NUM_PIECES];\r\n placePiece();\r\n return;\r\n }\r\n //move a random piece to a random location\r\n int pieceNumber = getRandomPiece();\r\n PositionData randomPoint = getRandomPoint();\r\n //move the piece\r\n Game.movePiece(pieces[pieceNumber], randomPoint);\r\n }",
"@Override\n\tpublic void landedOn(Piece piece) {\n\t\t\n\t}",
"public Board(ArrayList<Piece> pieces)\n {\n squares = new Square[Chess.ROWS][Chess.COLUMNS];\n setLayout(new GridLayout(Chess.ROWS,Chess.COLUMNS,0,0));\n firstSelected = null;\n mainBoard=true;\n turn = 0;\n fiftyMove = 0;\n for (int i = 0; i < Chess.ROWS; i++)\n for (int j = 0; j < Chess.COLUMNS; j++)\n {\n squares[i][j] = new Square(i,j,this);\n for (Piece p: pieces)\n if (p.getOrigin().equals(new Location(i,j)))\n squares[i][j].setPiece(p);\n add(squares[i][j]);\n }\n positions = new ArrayList<>();\n positions.add(toString());\n }",
"public void createPieces(){ \n\t\tfor(int x = 0; x<BOARD_LENGTH; x++){\n\t\t\tfor(int y = 0; y<BOARD_LENGTH; y++){ \n\t\t\t\tif(CHESS_MAP[x][y] != (null)){\n\t\t\t\t\tswitch (CHESS_MAP[x][y]){\n\t\t\t\t\tcase KING:\n\t\t\t\t\t\tpieces[pieceCounter] = new King(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase QUEEN:\n\t\t\t\t\t\tpieces[pieceCounter] = new Queen(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase BISHOP:\n\t\t\t\t\t\tpieces[pieceCounter] = new Bishop(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase KNIGHT:\n\t\t\t\t\t\tpieces[pieceCounter] = new Knight(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase PAWN:\n\t\t\t\t\t\tpieces[pieceCounter] = new Pawn(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase ROOK:\n\t\t\t\t\t\tpieces[pieceCounter] = new Rook(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} \n\t\t\t\t\tsetPieceIconAndName(x, y, CHESS_MAP[x][y]); \t\n\t\t\t\t\tpieceCounter++;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t}",
"public static void move(TTTBoard board, char piece) {\n if (board.winner() != ' ') {\n throw new IllegalArgumentException(\"Game Over\");\n }\n if (board.size() == 1) {\n board.set(0, 0, piece);\n return;\n }\n if (board.size() == 3) {\n int turnNumber = getBoardTurnNumber(board);\n if (turnNumber == 1) {\n board.set(0, 0, piece);\n return;\n } else if (turnNumber == 2) {\n if (board.get(1, 1) == ' ') {\n board.set(1, 1, piece);\n return;\n } else if (board.get(0, 0) == ' ') {\n board.set(0, 0, piece);\n return;\n }\n } else if (turnNumber == 3) {\n try {\n int[] opp = getFirstOpp(board, piece);\n int oppRow = opp[0];\n if (oppRow == 0) {\n board.set(2, 0, piece);\n return;\n } else if (oppRow == 1) {\n board.set(0, 2, piece);\n return;\n } else {\n board.set(0, 2, piece);\n return;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n\n // check if win diagonal\n int selfC = 0;\n int oppC = 0;\n int spaceC = 0;\n for (int i = 0; i < board.size(); ++i) {\n int j = i;\n char p = board.get(i, j);\n if (p == ' ') spaceC++;\n else if (p == piece) selfC++;\n else oppC++;\n }\n\n if (spaceC == 1 && (selfC == 0 || oppC == 0)) {\n // fill in that space\n for (int i = 0; i < board.size(); ++i) {\n int j = i;\n char p = board.get(i, j);\n if (p == ' ') {\n board.set(i, j, piece);\n return;\n }\n }\n }\n\n selfC = 0;\n oppC = 0;\n spaceC = 0;\n for (int i = 0; i < board.size(); ++i) {\n int j = board.size() - i - 1;\n char p = board.get(i, j);\n if (p == ' ') spaceC++;\n else if (p == piece) selfC++;\n else oppC++;\n\n }\n\n if (spaceC == 1 && (selfC == 0 || oppC == 0)) {\n // fill in that space\n for (int i = 0; i < board.size(); ++i) {\n int j = board.size() - i - 1;\n char p = board.get(i, j);\n if (p == ' ') {\n board.set(i, j, piece);\n return;\n }\n }\n }\n\n // check if win row col\n\n boolean[] selfWinnableRows = new boolean[board.size()];\n boolean[] oppWinnableRows = new boolean[board.size()];\n boolean[] selfWinnableCols = new boolean[board.size()];\n boolean[] oppWinnableCols = new boolean[board.size()];\n int[] selfCountRows = new int[board.size()];\n int[] selfCountCols = new int[board.size()];\n int[] oppCountRows = new int[board.size()];\n int[] oppCountCols = new int[board.size()];\n\n // checks if any rows can be won\n for (int i = 0; i < board.size(); ++i) {\n boolean containsSelf = false;\n boolean containsOpp = false;\n boolean hasEmpty = false;\n int selfCount = 0;\n int oppCount = 0;\n\n for (int j = 0; j < board.size(); ++j) {\n char p = board.get(i, j);\n\n if (p == ' ') {\n hasEmpty = true;\n } else if (p == piece) {\n containsSelf = true;\n selfCount++;\n } else {\n containsOpp = true;\n oppCount++;\n }\n }\n\n selfCountRows[i] = selfCount;\n oppCountRows[i] = oppCount;\n\n if (!hasEmpty) continue;\n\n if (!containsSelf && !containsOpp) {\n selfWinnableRows[i] = true;\n oppWinnableRows[i] = true;\n }\n\n if (containsSelf && !containsOpp) {\n selfWinnableRows[i] = true;\n }\n if (containsOpp && !containsSelf) {\n oppWinnableRows[i] = true;\n }\n }\n\n // checks if any cols can be won\n for (int i = 0; i < board.size(); ++i) {\n boolean containsSelf = false;\n boolean containsOpp = false;\n boolean hasEmpty = false;\n int selfCount = 0;\n int oppCount = 0;\n for (int j = 0; j < board.size(); ++j) {\n char p = board.get(j, i);\n\n if (p == ' ') {\n hasEmpty = true;\n } else if (p == piece) {\n containsSelf = true;\n selfCount++;\n } else {\n containsOpp = true;\n oppCount++;\n }\n }\n\n selfCountCols[i] = selfCount;\n oppCountCols[i] = oppCount;\n\n if (!hasEmpty) continue;\n\n if (!containsSelf && !containsOpp) {\n selfWinnableCols[i] = true;\n oppWinnableCols[i] = true;\n }\n\n if (containsSelf && !containsOpp) {\n selfWinnableCols[i] = true;\n }\n\n if (containsOpp && !containsSelf) {\n oppWinnableCols[i] = true;\n }\n }\n\n int[] selfInRowRows = new int[board.size()];\n int[] selfInRowCols = new int[board.size()];\n int[] oppInRowRows = new int[board.size()];\n int[] oppInRowCols = new int[board.size()];\n\n for (int i = 0; i < selfWinnableRows.length; ++i) {\n if (selfWinnableRows[i]) {\n int count = selfCountRows[i];\n selfInRowRows[count]++;\n }\n }\n for (int i = 0; i < selfWinnableCols.length; ++i) {\n if (selfWinnableCols[i]) {\n int count = selfCountCols[i];\n selfInRowCols[count]++;\n }\n }\n for (int i = 0; i < oppWinnableRows.length; ++i) {\n if (oppWinnableRows[i]) {\n int count = oppCountRows[i];\n oppInRowRows[count]++;\n }\n }\n for (int i = 0; i < oppWinnableCols.length; ++i) {\n if (oppWinnableCols[i]) {\n int count = oppCountCols[i];\n oppInRowCols[count]++;\n }\n }\n\n if (board.size() == 3) {\n int turnNumber = getBoardTurnNumber(board);\n if (selfInRowRows[board.size() - 1] == 0 &&\n selfInRowCols[board.size() - 1] == 0 &&\n oppInRowRows[board.size() - 1] == 0 &&\n oppInRowCols[board.size() - 1] == 0) {\n if (turnNumber == 4) {\n if ((board.get(1, 1) != ' ' && board.get(1, 1) != piece)\n && (board.get(2, 2) != ' ' && board.get(2, 2) != piece)) {\n board.set(2, 0, piece);\n return;\n }\n } else if (turnNumber == 5) {\n if (selfCountCols[0] == 2) {\n board.set(2, 2, piece);\n return;\n } else if (selfCountRows[0] == 2) {\n if (board.get(1, 0) != piece && board.get(1, 0) != ' ') {\n board.set(2, 2, piece);\n return;\n }\n if (board.get(2, 0) != piece && board.get(2, 0) != ' ') {\n board.set(2, 2, piece);\n return;\n }\n board.set(2, 0, piece);\n return;\n }\n }\n }\n }\n\n for (int i = board.size() - 1; i >= 0; i--) {\n int selfRowsCount = selfInRowRows[i];\n //System.out.println(i + \" self rows count: \" + selfRowsCount);\n if (selfRowsCount > 0) {\n // get a row index that contains this self in row rows\n try {\n int rowIndex = getRowIndexForInRowRows(board, i, selfWinnableRows, selfCountRows);\n int colIndex = getNextInRow(board, rowIndex);\n board.set(rowIndex, colIndex, piece);\n return;\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n int selfColsCount = selfInRowCols[i];\n if (selfColsCount > 0) {\n try {\n int colIndex = getRowIndexForInRowRows(board, i, selfWinnableCols, selfCountCols);\n int rowIndex = getNextInCol(board, colIndex);\n board.set(rowIndex, colIndex, piece);\n return;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n int oppRowsCount = oppInRowRows[i];\n // System.out.println(i + \" opp rows count: \" + oppRowsCount);\n if (oppRowsCount > 0) {\n\n try {\n int rowIndex = getRowIndexForInRowRows(board, i, oppWinnableRows, oppCountRows);\n int colIndex = getNextInRow(board, rowIndex);\n board.set(rowIndex, colIndex, piece);\n return;\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n int oppColsCount = oppInRowCols[i];\n if (oppColsCount > 0) {\n try {\n int colIndex = getRowIndexForInRowRows(board, i, oppWinnableCols, oppCountCols);\n int rowIndex = getNextInCol(board, colIndex);\n board.set(rowIndex, colIndex, piece);\n return;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n\n try {\n int[] nextEmpty = getNextEmpty(board);\n board.set(nextEmpty[0], nextEmpty[1], piece);\n } catch (Exception e) {\n throw new IllegalArgumentException(\"DRAW / SOMEONE WON\");\n }\n }",
"public void findShipPiece() {\r\n\t\tshipPiecesFound += 1;\r\n\t}",
"public void changePiece() {\n if (piece == 1) {\n piece = 2;\n } else {\n piece = 1;\n }\n //System.out.println(\"Nu ben ik piece \" + piece);\n }",
"private void copyToBoard(FallingPiece piece) {\r\n \ttablero.reverse();\r\n \tfor (BlockDrawable block : piece.allBlocks()){\r\n \t\tBlockDrawable aux = new BlockDrawable(piece.toOuterPoint(block.getPoint()), block.getStyle(), false, block.getTextureRegion()); \r\n\t\t\ttablero.add(aux);\r\n\t\t}\r\n \ttablero.reverse();\r\n }",
"@Test\n void RookMoveToFriendlyOccupied() {\n Board board = new Board(8, 8);\n Piece rook1 = new Rook(board, 4, 3, 1);\n Piece rook2 = new Rook(board, 4, 6, 1);\n\n board.getBoard()[4][3] = rook1;\n board.getBoard()[4][6] = rook2;\n\n board.movePiece(rook1, 4, 6);\n\n Assertions.assertEquals(rook1, board.getBoard()[4][3]);\n Assertions.assertEquals(rook2, board.getBoard()[4][6]);\n }",
"public Pieces(int row, int column, PieceType piece, PieceColor color){\r\n\t\tthis.piece = piece;\r\n\t\tthis.row = row;\r\n\t\tthis.column = column;\r\n\t\tthis.color = color;\r\n\t\tthis.moved = false;\r\n\t}",
"@Override\n\tpublic boolean move(int col, int row, piece[][] board) {\n\t\treturn false;\n\t}",
"int placePiece(int r, int c) {\n if (this.board[r][c] != 0) {\n return -1;\n }\n\n // The move is valid, increase the turn count and\n // add the piece to the board.\n this.turnCount++;\n this.board[r][c] = this.currentPlayer;\n\n // Check for a winner.\n return this.checkWinner();\n }",
"public void addToCup(Piece p) {\n remainingPieces.add(p);\n if( GameLoop.getInstance().isNetworked() ){\n \tHashMap<String,Object> map = new HashMap<String,Object>();\n \tmap.put(\"updateType\", \"addToCup\");\n \tArrayList<Integer> pIDs = new ArrayList<Integer>();\n \tpIDs.add(p.getPID());\n \tmap.put(\"pIDs\", pIDs);\n \tNetworkGameLoop.getInstance().postGameState(map);\n }\n }",
"void gameWon(Piece piece);",
"Piece getNextPiece();",
"public void set (Piece p, int x, int y){\n\t\t\t\t\n\t\tboard[x][y] = p;\n\t}",
"public void writePiece(Piece piece) \n\t{\n\t\t\n\t}",
"private boolean tryMove(Shape newPiece, int newX, int newY) {\n for (int i = 0; i < 4; ++i) {\n\n int x = newX + newPiece.x(i);\n int y = newY - newPiece.y(i);\n//if a piece reaches the edge it stops\n if (x < 0 || x >= BOARD_WIDTH || y < 0 || y >= BOARD_HEIGHT) {\n return false;\n }\n//if a piece is adjacent to any fallen tetris pieces it stops\n if (shapeAt(x, y) != Tetrominoe.NoShape) {\n return false;\n }\n }\n\n curPiece = newPiece;\n curX = newX;\n curY = newY;\n\n repaint();\n\n return true;\n }",
"private void putTilesOnBoard() {\n boolean isWhite = true;\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n Tile t = new Tile(isWhite, new Position(x, y));\n t.setOnMouseClicked(e -> {\n if (t.piece != null && this.activeTile == null && this.whitePlayer == t.piece.isWhite()) {\n this.activeTile = t;\n ArrayList<Position> moves = t.piece.getLegalMoves();\n this.highlightAvailableMoves(moves, t.isWhite);\n } else if (t.isHighlighted.getValue() && this.activeTile.piece != null ) {\n movePieces(t);\n } else {\n this.activeTile = null;\n this.clearHighlightedTiles();\n }\n this.updatePieceBoards();\n });\n t.isHighlighted.addListener((o, b, b1) -> {\n if (o.getValue() == true) {\n t.startHighlight();\n } else {\n t.clearHighlight();\n }\n });\n this.board[x][y] = t;\n this.add(this.board[x][y], x, y);\n isWhite = !isWhite;\n }\n isWhite = !isWhite;\n }\n\n }",
"public void incPieceCount () {\n m_PieceCount++;\n\t}",
"public static void setPieceTest() {\n\t\tOthelloBoard Board = new OthelloBoard(BOARD_SIZE,BOARD_SIZE);\n\t\tBoard.setBoard();\n\t\tBoard.decPieceCount();\n\t\tSystem.out.println(Board.getPieceCount());\n\t\tSystem.out.println(Board.move(\n\t\t\t\tTEST_MOVE_X1, TEST_MOVE_Y1, Board.WHITE_PIECE));\n\t\tBoard.m_Pieces[TEST_PIECE_X][TEST_PIECE_Y]=Board.WHITE_PIECE;\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"\");\n\t\tBoard.checkWin();\n\t\tSystem.out.println(\"Valid inputs\");\n\t\tSystem.out.println(\"OthelloBoard.setPiece() - Begin\");\n\t\tSystem.out.println(\"Expected output: true\");\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Actual output: \" + \n\t\tBoard.setPiece(\n\t\t\t\tOUTPUT_SETPIECE_TEST_X,OUTPUT_SETPIECE_TEST_Y,Board.BLACK_PIECE));\n\t\tSystem.out.println(\"\");\n\t}",
"private void addToMoves(char move) {\n this.prevMoves += move;\n }",
"@Test\n void RookMoveUp() {\n Board board = new Board(8, 8);\n Piece rook = new Rook(board, 5, 4, 1);\n\n board.getBoard()[5][4] = rook;\n\n board.movePiece(rook, 5, 2);\n\n Assertions.assertEquals(rook, board.getBoard()[5][2]);\n Assertions.assertNull(board.getBoard()[5][4]);\n }"
] | [
"0.80538553",
"0.78569776",
"0.7684282",
"0.76410216",
"0.7608473",
"0.752921",
"0.7459473",
"0.7409782",
"0.73200566",
"0.7288415",
"0.7287135",
"0.7164885",
"0.709557",
"0.69959337",
"0.69587785",
"0.6925823",
"0.691814",
"0.6868509",
"0.6778117",
"0.673734",
"0.6734674",
"0.66934514",
"0.6584998",
"0.6540045",
"0.6536213",
"0.6510057",
"0.6494028",
"0.6476481",
"0.6436307",
"0.6432378",
"0.64295334",
"0.64213234",
"0.64078254",
"0.6387754",
"0.63860726",
"0.6362038",
"0.6276107",
"0.62757486",
"0.6267937",
"0.62599903",
"0.6257598",
"0.62444687",
"0.6219459",
"0.62034917",
"0.619977",
"0.61936456",
"0.6191881",
"0.61915916",
"0.61863226",
"0.6168509",
"0.61609745",
"0.61439174",
"0.61312884",
"0.6127454",
"0.6114243",
"0.6106906",
"0.6105862",
"0.60886985",
"0.6080313",
"0.60691375",
"0.6062775",
"0.6038533",
"0.6028",
"0.60279363",
"0.60161406",
"0.6015066",
"0.60066783",
"0.600238",
"0.6000872",
"0.5999729",
"0.5996378",
"0.59897465",
"0.5977481",
"0.59748495",
"0.59735894",
"0.5966813",
"0.59658724",
"0.5959756",
"0.59594357",
"0.59562534",
"0.595107",
"0.5951059",
"0.5946222",
"0.59448135",
"0.5928784",
"0.5925702",
"0.59249586",
"0.5918838",
"0.5901207",
"0.5898532",
"0.58954763",
"0.5895454",
"0.58924055",
"0.58871233",
"0.5880362",
"0.5879654",
"0.58698714",
"0.58648014",
"0.5863768",
"0.58446753"
] | 0.75827354 | 5 |
checks for how many lines are full | public int numberOfFormedLines() {
// number of formed lines
int countFullLines = 0;
// goes through blockMatrix to count full lines
for(int i = 0; i < blockMatrix.length; i++) {
if(fullLine(i)) {
countFullLines++;
}
}
return countFullLines;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int checkLines() {\n\t\tint completedLines = 0;\n\t\tfor(int row = 0; row < ROW_COUNT; row++) {\n\t\t\tif(checkLine(row)) {\n\t\t\t\tcompletedLines++;\n\t\t\t}\n\t\t}\n\t\treturn completedLines;\n\t}",
"private int checkLines(){\r\n \tint contRows = 0;\r\n \t\r\n \tfor (float y = height; y >= 0 && contRows < 4; y--) {\r\n \t\tif (isFullRow(y)) {\r\n \t\t\tcontRows++;\r\n \t\t\tdeleteRow(y);\r\n \t\t}\r\n \t}\r\n \treturn contRows;\r\n }",
"private boolean isFull() {\n\t\treturn nbmsg==getSize();\n\t}",
"private static int numLines() {\n\t\tif(subway != null)\n\t\t\treturn subway[0].length;\n\t\treturn 0;\n\t}",
"public boolean isFull() {\n return (e+1)%buf.length == b;\n }",
"private boolean isFull() {\n\t\treturn (size == bq.length);\n\t}",
"public boolean isFull(){\n return this.top==this.maxLength-1;\n }",
"public boolean isFull() {\n\t\treturn count == st.length? true : false;\r\n\t}",
"@Override\n public boolean isFull(){\n return (count == size);\n \n }",
"@Override\r\n\tpublic boolean isfull() {\n\t\t\r\n\t\treturn count == size ;\r\n\t}",
"@Override\n public boolean isFull() {\n return this.count() == 5;\n }",
"private boolean ifFull() {\n return items.length == size;\n }",
"int getLinesCount();",
"public boolean isFull()\r\n\t{\r\n\t\treturn numItems > MAXSIZE;\r\n\t}",
"public int size()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\treturn lines.size();\r\n\t\t}\r\n\t}",
"public boolean isFull() {\n return size == cnt;\n }",
"public void checkLines() {\n int cont2 = 0;\n int cont3, cont4;\n int casillasVacias;\n int vInicial, vFinal;\n\n for(cont3=20; cont3>0; cont3--) {\n vInicial = cont3*12 + 1;\n vFinal = vInicial + 10;\n casillasVacias = 10;\n\n //Bucle para todas las casillas de una fila\n for(cont4=vInicial; cont4<vFinal; cont4++) {\n if(colMatrix[cont4]) casillasVacias--;\n }\n\n if(casillasVacias == 0) {\n completeLines[cont2] = cont3;\n cont2++;\n }\n }\n removeLines();\n }",
"public boolean checkLength(Contribution contribution) {\n\t\tint longness= jdbc.queryForObject(\"select lineLength from stories where title=:title\", \n\t\t\t\tnew MapSqlParameterSource(\"title\", contribution.getTitle()), Integer.class);\n\t\tSystem.out.println(\"Your content: \"+contribution.getAddition().length()+\" the max length: \"+longness);\n\t\tif(contribution.getAddition().length() > longness) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public int getNumLines ();",
"boolean isFull() {return pointer==size;}",
"int getLinesLimit();",
"public boolean isFull(){\r\n return currentSize == maxSize;\r\n }",
"public boolean isFull() {\n\t\treturn markCount == 9;\n\t}",
"int getBrokenLines();",
"int getNumberOfLines();",
"private boolean validMessage(String message){\r\n //35 lines of text seems to be the max\r\n //TODO check if its a character limit and not a newline limit in iteration 4\r\n int newLines = 0;\r\n for(int i = 1; i < message.length(); i++)\r\n if(message.substring(i-1, i).equals(\".\")){\r\n newLines++;\r\n }\r\n return newLines <= this.lineBound;\r\n }",
"public int size() {\n return lines.size();\n }",
"public boolean isFull(){\n \treturn count==capacity;\n }",
"public boolean hasRemaining() {\r\n\t\treturn cursor < limit - 1;\r\n\t}",
"private final boolean hasBufferedOutputSpace() {\n return !reading && buffer.hasRemaining();\n }",
"public abstract int numberOfLines();",
"public boolean isFull()\r\n\t\t{\r\n\t\t\tint count = 0;\r\n\t\t\tData currentData = head;\r\n\t\t\twhile (currentData != null)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tcurrentData = currentData.nextData();\r\n\t\t\t}\r\n\t\t\treturn (count > 2); //if the count is > 2 then it is full\r\n\t\t}",
"public boolean isLineCountNull() {\n\t\treturn lineCount == null;\n\t}",
"public boolean isEmpty() {\n return cursor==-1 && lines.isEmpty();\n }",
"public boolean isValid() {\n\t\treturn !lines.isEmpty();\n\t}",
"public boolean hasLine(){\r\n\t\tif (getLine().equals(\"\"))\r\n\t\t\treturn false;\r\n\t\telse return true;\r\n\t}",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull() {\r\n\t\treturn cur_index == size;\r\n\t}",
"public boolean isFull()\r\n\t{\r\n\t\treturn (count == capacity);\r\n\t}",
"int getLineLength(int line) throws BadLocationException;",
"private boolean checkFull() {\n\t\treturn this.array.length - 1 == this.lastNotNull();\n\t}",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"public boolean isFull() { return false; }",
"public Integer size() {\n\t\treturn mLines == null ? 0 : mLines.length;\n\t}",
"public boolean isEmpty() {\n\n \tif (numLines == 0) {\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\t\n }",
"public boolean isFull()\n\t{\n\t\tif (counter == list.length)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isFull() {\n return count == capacity;\n }",
"private boolean ifTooEmpty() {\n if (items.length <= 8) {\n return false;\n }\n float efficiency = (float) size / (float) items.length;\n return efficiency < 0.25;\n }",
"private boolean isRowFull(int row) {\n int numBlocks = 0;\n\n for (int col = 0; col < 10; col++) {\n if (isCellOccupied(row, col)) {\n numBlocks++;\n }\n }\n\n return numBlocks == 10;\n }",
"public static int minimumNumberOfLineItems() {\n return 0;\n }",
"int getNumberOfLines(int offset, int length) throws BadLocationException;",
"private int countNumberOfStringBlocks() {\n\t\tint counter = 0;\n\t\tString currentLine = \"\";\n\t\t\n\t\twhile (reader.hasNext()) {\n\t\t\tif(currentLine.isEmpty()) {\n\t\t\t\tcurrentLine = reader.nextLine();\n\t\t\t\t\n\t\t\t\tif(!currentLine.isEmpty()) {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tcurrentLine = reader.nextLine();\n\t\t}\n\t\t\n\t\t\n\t\treturn counter;\n\t}",
"public boolean isFull() {\n return (this.count == this.capacity);\n }",
"private boolean isFull(){\n return cellSize == Max;\n }",
"@Override\n\tpublic long getLineCount() {\n\t\tif (lineCount == null || checksumChanged()) {\n\t\t\ttry (Stream<String> stream = Files.lines(getDataStore()\n\t\t\t\t\t.getDocument().toPath())) {\n\t\t\t\tlong count = stream.filter(line -> !line.isEmpty()).count();\n\t\t\t\tthis.lineCount = count;\n\t\t\t\treturn count;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\treturn lineCount;\n\t\t}\n\t\tthrow new NullPointerException(\n\t\t\t\t\"Unexpected error. Could not get the line count.\");\n\t}",
"public int number_of_lines() {\r\n\t\treturn line_index.size() - 1;\r\n\t}",
"public boolean isFull() {\n\t\treturn end != null;\n\t}",
"public boolean isFull() {\n return false;\n }",
"public boolean isFull(){\n\t\treturn false;\n\t}",
"public boolean hasMoreCommands() {\r\n return in.hasNextLine();\r\n }",
"public int getLinesCount() {\n return lines.length;\n }",
"public boolean isFull() {\n int size = 0;\n for (int i = 0; i < items.length; i++) {\n if (items[i] != null) {\n size++;\n }\n }\n return size == items.length;\n }",
"public boolean isFull() {\n\t\treturn numElements==data.length;\n\t}",
"public int lines( )\n {\n int lin = 0;\n\n if( table != null )\n {\n lin = table.length;\n } //end\n return(lin);\n }",
"public int getNoOfRelevantLines() { return this.noOfRelevantLines; }",
"public boolean isFull() {\r\n\t\treturn false;\r\n\t}",
"@Override\n public boolean isFull() {\n return false;\n }",
"private void lineCheck(int linesToAdd) {\n\n\t\tTermio terminal = new Termio();\n\n\t\tif (lineCount >= maxLinesDisplayed) {\n\n\t\t\tlineCount = 0;\n\t\t\tSystem.out.print(\"\\n*** Press Enter To Continue ***\");\n\t\t\tterminal.keyboardReadChar();\n\n\t\t} else {\n\n\t\t\tlineCount += linesToAdd;\n\n\t\t} // if\n\n\t}",
"private boolean boardIsFull() {\n int numberOfFieldsOnBoard = boardSize * boardSize;\n return (numberOfFieldsOnBoard == this.numberOfOccupiedFields);\n }",
"protected abstract boolean definitelyNotLastLine(String message);",
"private static int skipLines(int noOfLines, DataInputStream dis){\n\t\tint len = -1;\n\t\tfor(int i = 0; i < noOfLines; i++){\n\t\t\tint templen = readLine(dis);\n\t\t\tif(templen > 0){\n\t\t\t\tlen = templen;\n\t\t\t}\n\t\t}\n\t\treturn len;\n\t}",
"int getMaxOutputLines();",
"boolean isFull()\n\t{\n\t\treturn rear==size-1;\n\t}",
"public boolean isFull() {\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic boolean isFull() {\r\n\r\n\t\treturn data.size() >= maxQueue;\r\n\t}",
"private void checkLength(boolean eof) {\n if (eof) {\n if (dataLength != expectedLength) {\n throw new SdkClientException(\n \"Data read has a different length than the expected: \"\n + diagnosticInfo());\n }\n } else if (dataLength > expectedLength) {\n throw new SdkClientException(\"More data read than expected: \"\n + diagnosticInfo());\n }\n }",
"private boolean isLineFull(int rowNumber) {\n\t\tfor (int i = 0; i < matrixWidth; i++) {\n\t\t\tif (boardTiles[rowNumber][i].equals(backgroundColor)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean checkLineLength(String matrice){\r\n String[] lignes = matrice.trim().split(\" {1,}\");\r\n int longeur = lignes[0].length();\r\n int i = 1;\r\n boolean memeLongeur = true;\r\n while(i < lignes.length && memeLongeur){\r\n memeLongeur = (longeur == lignes[i].length());\r\n ++i;\r\n }\r\n\r\n if(! memeLongeur){\r\n System.out.println(\"Matrice invalide, lignes de longueurs differentes !\");\r\n }\r\n\r\n return memeLongeur;\r\n }",
"@Override\r\n\tpublic boolean isFull() {\r\n\t\treturn ((front == 0 && rear == MAX_LENGTH - 1) || rear == front - 1);\r\n\t}",
"private final boolean size_ready ()\n {\n next_step (in_progress.data (), in_progress.size (),\n message_ready, !in_progress.has_more());\n return true;\n }",
"private final int bufferedOutputSpaceRemaining() {\n return !reading ? buffer.remaining() : 0;\n }",
"public boolean hasNextLine() {\n return nextLine != null;\n }",
"public boolean isFull()\n { \n return count == elements.length; \n }",
"private boolean reachedEnd() {\n return current >= source.length();\n }",
"public void setNoOfRelevantLines(int norl) { this.noOfRelevantLines = norl; }",
"boolean hasMoreBytes();",
"void scanDataBufferForEndOfData() {\n while (!allRowsReceivedFromServer() &&\n (dataBuffer_.readerIndex() != lastValidBytePosition_)) {\n stepNext(false);\n }\n }"
] | [
"0.71041876",
"0.6783119",
"0.67253613",
"0.66129917",
"0.66098726",
"0.6552716",
"0.6460471",
"0.6455286",
"0.64533436",
"0.64499354",
"0.6439608",
"0.6376241",
"0.6351536",
"0.63395447",
"0.63054234",
"0.62836206",
"0.62822264",
"0.6281603",
"0.62802416",
"0.6221675",
"0.6214068",
"0.61386347",
"0.612732",
"0.61272323",
"0.6105308",
"0.61001885",
"0.6081654",
"0.60795826",
"0.6074759",
"0.6062402",
"0.6019771",
"0.6014715",
"0.601128",
"0.6003965",
"0.59914416",
"0.59821945",
"0.5964104",
"0.5964104",
"0.5964104",
"0.5964104",
"0.5964104",
"0.5964104",
"0.59589493",
"0.5955769",
"0.5950041",
"0.59428537",
"0.59382653",
"0.59382653",
"0.59382653",
"0.59382653",
"0.59382653",
"0.59382653",
"0.59382653",
"0.59382653",
"0.59382653",
"0.5937711",
"0.5931249",
"0.59167767",
"0.59056103",
"0.5901197",
"0.5893919",
"0.5893158",
"0.5888981",
"0.58777744",
"0.5871863",
"0.58675754",
"0.5863262",
"0.585022",
"0.58486676",
"0.5847915",
"0.58346355",
"0.5810711",
"0.58082044",
"0.5806937",
"0.57979965",
"0.5790225",
"0.57895154",
"0.57859325",
"0.57815033",
"0.57801825",
"0.57696944",
"0.576343",
"0.5762601",
"0.5740491",
"0.573972",
"0.5731425",
"0.57146263",
"0.5713265",
"0.5698826",
"0.5687454",
"0.56823725",
"0.56642926",
"0.56635976",
"0.56624836",
"0.5659325",
"0.56583774",
"0.5657926",
"0.5655237",
"0.5654428",
"0.565223"
] | 0.6549781 | 6 |
checks if a line is full return true if full line | protected boolean fullLine(int row) {
// goes through columns in that row specified
for(int j = 0; j < blockMatrix[row].length; j++) {
// returns false when there's an empty position
if(!hasBlock(row, j)) {
return false;
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasLine(){\r\n\t\tif (getLine().equals(\"\"))\r\n\t\t\treturn false;\r\n\t\telse return true;\r\n\t}",
"public boolean checkLine(String line) {\n int len = line.length();\n return !(len > 0 && Character.isWhitespace(line.charAt(len-1)));\n }",
"public boolean isFull() {\n return (e+1)%buf.length == b;\n }",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"public boolean isFull() {\n\t\treturn count == st.length? true : false;\r\n\t}",
"public boolean hasNextLine() {\n return nextLine != null;\n }",
"public boolean isEmpty(String line){\n char[] lineChars = line.toCharArray();\n if(lineChars.length == 0){return true;}\n\n boolean lineIsEmpty = true;\n for (char c : lineChars){\n if (!Character.isWhitespace(c)){\n return false;\n }\n }\n return lineIsEmpty;\n }",
"private boolean isLineFull(int rowNumber) {\n\t\tfor (int i = 0; i < matrixWidth; i++) {\n\t\t\tif (boardTiles[rowNumber][i].equals(backgroundColor)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isFull() {\n\t\treturn end != null;\n\t}",
"protected boolean checkEmpty(String line) {\n return line == null || line.isBlank();\n }",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"public static boolean presentLine() {\n\t\treturn presentLine(\"\\n\");\n\t}",
"public boolean hasNextLine() {\n return sc.hasNextLine();\n }",
"public static boolean hasNextLine() {\n return sc.hasNext();\n }",
"private boolean isEndFound(String line) {\n\t\tif (end != null) {\n\t\t\tif (nothingAfterEnd) {\n\t\t\t\treturn line.endsWith(end);\n\t\t\t} else {\n\t\t\t\treturn line.contains(end);\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isValid() {\n\t\treturn !lines.isEmpty();\n\t}",
"boolean full();",
"public static boolean hasNextLine(){\n \tboolean result = scanner.hasNext();\n \treturn result;\n }",
"public boolean isFull(){\n return this.top==this.maxLength-1;\n }",
"private boolean scanLine()\r\n\t{\r\n\t\tboolean isLine=true;\r\n\t\t\r\n\t\t//Implement Filter here.\r\n\t\t\r\n\t\treturn isLine;\r\n\t}",
"@DISPID(1610940416) //= 0x60050000. The runtime will prefer the VTID if present\n @VTID(22)\n boolean atEndOfLine();",
"public boolean isAtEnd()\n\t{\n\t\treturn (lineNow >= lineTime);\n\t}",
"public boolean isFull() {\n\t\tfor (int r = 0; r < 3; r++) {\n\t\t\tif (!isRowFull(r)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tover = true;\n\t\treturn true;\n\t}",
"public boolean isFull() {\n\t\treturn markCount == 9;\n\t}",
"private boolean checkLine(int line) {\n\t\tfor(int col = 0; col < COL_COUNT; col++) {\n\t\t\tif(!isOccupied(col, line)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//remove the line if it is filled.\n\t\tfor(int row = line - 1; row >= 0; row--) {\n\t\t\tfor(int col = 0; col < COL_COUNT; col++) {\n\t\t\t\tsetTile(col, row + 1, getTile(col, row));\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"private boolean endline() {\r\n return (CHAR('\\r') || true) && CHAR('\\n');\r\n }",
"public boolean isEmpty() {\n return cursor==-1 && lines.isEmpty();\n }",
"public boolean roundEnd()\r\n {\r\n line = gameBoard.findLine();\r\n \r\n return line[0] != -1 || gameBoard.isFull();\r\n }",
"private boolean isFull() {\n\t\treturn nbmsg==getSize();\n\t}",
"public boolean is_full() {\n\t\treturn false;\n\t}",
"public boolean hasMoreCommands() {\r\n return in.hasNextLine();\r\n }",
"protected abstract boolean definitelyNotLastLine(String message);",
"private boolean isFull() {\n\t\treturn (size == bq.length);\n\t}",
"public boolean isFull() \n\t{\n\t\tif (this.numIngredients==ingredients.length())\n\t\t\treturn true;\n\t\t\n\t\telse\n\t\t\treturn false;\n\t}",
"boolean isFull() {return pointer==size;}",
"public boolean isFull()\n\t{\n\t\tif (counter == list.length)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isFull(int row, int col) {\n return false;\n }",
"public boolean isFull() {\n\t\treturn false;\n\t}",
"public boolean isFull() {\r\n\t\treturn false;\r\n\t}",
"public boolean hasEndLineNumber() {\n return ((bitField0_ & 0x00000040) != 0);\n }",
"@Override\r\n\tpublic boolean isFull() {\r\n\t\treturn ((front == 0 && rear == MAX_LENGTH - 1) || rear == front - 1);\r\n\t}",
"boolean hasEndLineNumber();",
"public boolean isFull(){\n\t\treturn false;\n\t}",
"public boolean hasEndLineNumber() {\n return ((bitField0_ & 0x00000040) != 0);\n }",
"public boolean isFull(char[][] grid){\r\n\t\tboolean full = true;\r\n\t\tfor (int i=0;i<grid.length;i++){\r\n\t\t\tfor (int j=0;j<grid[i].length;j++){\r\n\t\t\t\tif (grid[i][j] == ' '){\r\n\t\t\t\t\tfull = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn full;\r\n\t}",
"public abstract boolean passes(String line);",
"public boolean isFull() {\n return false;\n }",
"private boolean isFull() {\n for (int i = 0; i < 6; i++)\n for (int j = 0; j < 7; j++)\n if (cell[i][j] == ' ')\n return false; // At least one cell is not filled\n\n // All cells are filled\n return true;\n }",
"protected boolean isFinished() {\r\n if (lineHasBeenFound) {\r\n lineTrackTime = System.currentTimeMillis();\r\n }\r\n if(System.currentTimeMillis()-lineTrackTime > 4000){\r\n return true;\r\n }\r\n return false;\r\n }",
"protected abstract boolean isMultiLine();",
"public boolean isFull() { return false; }",
"private boolean isLineInformationRepairNeeded(String text) {\n\t\t\tif (text == null)\n\t\t\t\treturn false;\n\n\t\t\tint length= text.length();\n\t\t\tif (length == 0)\n\t\t\t\treturn false;\n\n\t\t\tint rIndex= text.indexOf('\\r');\n\t\t\tint nIndex= text.indexOf('\\n');\n\t\t\tif (rIndex == -1 && nIndex == -1)\n\t\t\t\treturn false;\n\n\t\t\tif (rIndex > 0 && rIndex < length-1 && nIndex > 1 && rIndex < length-2)\n\t\t\t\treturn false;\n\n\t\t\tString defaultLD= null;\n\t\t\ttry {\n\t\t\t\tdefaultLD= getLineDelimiter(0);\n\t\t\t} catch (BadLocationException x) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tif (defaultLD == null)\n\t\t\t\treturn false;\n\n\t\t\tdefaultLD= getDefaultLineDelimiter();\n\n\t\t\tif (defaultLD.length() == 1) {\n\t\t\t\tif (rIndex != -1 && !\"\\r\".equals(defaultLD)) //$NON-NLS-1$\n\t\t\t\t\treturn true;\n\t\t\t\tif (nIndex != -1 && !\"\\n\".equals(defaultLD)) //$NON-NLS-1$\n\t\t\t\t\treturn true;\n\t\t\t} else if (defaultLD.length() == 2)\n\t\t\t\treturn rIndex == -1 || nIndex - rIndex != 1;\n\n\t\t\treturn false;\n\t\t}",
"private static boolean isNewSection(String line) {\n String trimLine = line.trim();\n return trimLine.contains(\": \") || trimLine.endsWith(\":\");\n }",
"public boolean isEmpty() {\n\n \tif (numLines == 0) {\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\t\n }",
"public boolean writeFirstLine( String line ) {\n PrintWriter fileWriteStream = null;\n boolean operation = false;\n\n try {\n fileWriteStream = new PrintWriter( this.fileName );\n fileWriteStream.println( line );\n operation = true;\n } catch ( Exception error ) {\n System.out.println(error.toString());\n } finally {\n fileWriteStream.close();\n }\n\n return operation;\n }",
"private void checkEmptyLine(String line) {\n if (line.substring(5).replace('\\t', ' ')\n .replace('\\n', ' ').trim().length() != 0) {\n throw new IllegalArgumentException(\"Invalid characters after tag.\");\n }\n }",
"public boolean isFull() {\r\n\t\treturn cur_index == size;\r\n\t}",
"public boolean isFull() {\n\t\tboolean full = true;\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tfor (int j = 0; j < 9; j++) {\n\t\t\t\tif (board[i][j] == '-') {\n\t\t\t\t\tfull = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn full;\n\t}",
"boolean isFull()\n\t{\n\t\treturn rear==size-1;\n\t}",
"public boolean isFull() {\n if(this.top==(size - 1)) {\n return true;\n }\n return false;\n }",
"public boolean isFull() {\n return head - tail == 1 || (head == 0 && tail == size - 1);\n }",
"private boolean checkFull() {\n\t\treturn this.array.length - 1 == this.lastNotNull();\n\t}",
"private static boolean readLine(BufferedInputStream is, MutableString read)\n throws IOException {\n read.length(0);\n int c = is.read();\n while((c!=-1)&&c!='\\n'&&c!='\\r') {\n read.append((char)c);\n c = is.read();\n }\n if(c==-1 && read.length()==0) {\n // EOF and none read; return false\n return false;\n }\n if(c=='\\n') {\n // consume LF following CR, if present\n is.mark(1);\n if(is.read()!='\\r') {\n is.reset();\n }\n }\n // a line (possibly blank) was read\n return true;\n }",
"public boolean isFullyParsed() {\r\n return textIndex == getTextLength();\r\n }",
"public boolean isFull()\r\n\t\t{\r\n\t\t\tint count = 0;\r\n\t\t\tData currentData = head;\r\n\t\t\twhile (currentData != null)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tcurrentData = currentData.nextData();\r\n\t\t\t}\r\n\t\t\treturn (count > 2); //if the count is > 2 then it is full\r\n\t\t}",
"public boolean isFull() {\n return moveRight(tail)==head;\n }",
"boolean hasStartLineNumber();",
"private boolean ifFull() {\n return items.length == size;\n }",
"public abstract boolean read(String line);",
"@Override\r\n\tpublic boolean isfull() {\n\t\t\r\n\t\treturn count == size ;\r\n\t}",
"private boolean isEndLineSpace(final String message) {\n\t\treturn message.contains(\"A line should not end with blank space\"); //$NON-NLS-1$\n\t}",
"public boolean isFull() {\n\t\treturn (rear+1)%total_size == front;\r\n\t}",
"public boolean isLineClear() {\r\n return lineActivity.haveAverage() && (lineActivity.getAverage() < 0.5);\r\n }",
"public boolean isPrintBlankLine()\n\t{\n\t\treturn printBlankLine;\n\t}",
"private boolean isRowFull(int row) {\n int numBlocks = 0;\n\n for (int col = 0; col < 10; col++) {\n if (isCellOccupied(row, col)) {\n numBlocks++;\n }\n }\n\n return numBlocks == 10;\n }",
"private boolean lineIsNumberAboveZero(final String line) {\n try {\n return Integer.parseInt(line) > 1;\n } catch(final NumberFormatException nfe) {\n return false;\n }\n }",
"public boolean isFull() {\n for (int r = 0; r < 6; r++) {\n for (int c = 0; c < 7; c++) {\n if (!hasPiece(r, c)) {\n return false;\n }\n }\n }\n return true;\n }",
"private boolean full()\n {\n // Check whether every column is full one by one\n for (int col = 0; col < COLUMNS; col++ )\n {\n // If a column is not full, the check failed\n if (chessBoard[0][col] == 0)\n {\n return false;\n }\n }\n // If all columns are full, the check passes\n return true;\n }",
"public boolean isFull(int row, int col) {\n\t\tint id = (row - 1) * N + col;\n\t\tif(uf.isConnected(id, 0)){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"boolean isFull()\n {\n return ((front == 0 && end == size-1) || front == end+1);\n }",
"public boolean isFull() {\n if((this.tail+1)%this.size==this.head)\n return true;\n return false;\n }",
"public boolean isOutputLine(String line) {\n int count = 0;\n for (int i = 0; i < line.length(); i++) {\n if (line.charAt(i) == '<' || line.charAt(i) == '>') {\n count++;\n }\n }\n if (count == 4) {\n return true;\n }\n return false;\n }",
"public boolean isMessageReadFully() {\r\n\t\t\r\n\t\tCharBuffer charBuffer = byteBuffer.asCharBuffer();\r\n\t\tint limit = charBuffer.limit();\r\n\t\tString protocolMessage = null;\r\n\t\t//Check if the last char is ~ indicating the end of the message which also \r\n\t\t//indicates that the message is fully read\r\n\t\tif (charBuffer.get(limit) == '~') {\r\n\t\t\tprotocolMessage = charBuffer.toString();\r\n\t\t\tSystem.out.println(\"Protocol Message: \" + protocolMessage);\r\n\t\t\t//clear the buffer\r\n\t\t\tbyteBuffer.clear();\r\n\t\t\t//Decode the message into portions\r\n\t\t\tdecode(protocolMessage);\r\n\t\t\treturn true;\r\n\t\t} else\r\n\t\t\treturn false;\r\n\t\t\r\n\t\t\r\n\t}",
"public boolean isFull(){ \n return isFull;\n }",
"public boolean isFull() {\n\t\treturn numElements==data.length;\n\t}",
"public boolean isFull(int row, int col) {\n\t valid_rc(row, col);\r\n\t return uftest.connected(index(row, col), n*n);\r\n\t}",
"abstract protected boolean isHeaderLine(String line);"
] | [
"0.7105528",
"0.679141",
"0.67191803",
"0.666621",
"0.666621",
"0.666621",
"0.666621",
"0.666621",
"0.666621",
"0.666621",
"0.666621",
"0.666621",
"0.66603416",
"0.654172",
"0.65076536",
"0.6504763",
"0.6462563",
"0.64223546",
"0.6390119",
"0.6390119",
"0.6390119",
"0.6390119",
"0.6390119",
"0.6390119",
"0.63588166",
"0.633823",
"0.6335094",
"0.6303183",
"0.62875366",
"0.6245153",
"0.62372863",
"0.6235082",
"0.6204246",
"0.6190706",
"0.6151931",
"0.6146009",
"0.61291504",
"0.6125052",
"0.6103098",
"0.6100526",
"0.6095931",
"0.60742563",
"0.6039062",
"0.6032359",
"0.6017355",
"0.60026103",
"0.5998397",
"0.5992817",
"0.5987296",
"0.5984961",
"0.59421945",
"0.5926845",
"0.59058666",
"0.5901977",
"0.5890768",
"0.5888685",
"0.5884428",
"0.58834225",
"0.58777523",
"0.5871451",
"0.5854025",
"0.58503217",
"0.58414984",
"0.584075",
"0.58367306",
"0.5836031",
"0.581544",
"0.5815011",
"0.5810715",
"0.58059233",
"0.5802234",
"0.5802081",
"0.5783899",
"0.57826406",
"0.5780526",
"0.5779661",
"0.5772573",
"0.5755472",
"0.5748649",
"0.5732113",
"0.5731697",
"0.57311046",
"0.57306993",
"0.5726547",
"0.5717203",
"0.57106",
"0.5708356",
"0.5704363",
"0.5693028",
"0.5682681",
"0.56793296",
"0.5659388",
"0.56473505",
"0.5645443",
"0.5630771",
"0.5629871",
"0.56273997",
"0.5627341",
"0.56233937",
"0.5619781"
] | 0.73222613 | 0 |
removes a row from the board | protected void removeLine(int row) {
// clear out the true values from row/filled blocks
for(int j = 0; j < blockMatrix[row].length; j++) {
blockMatrix[row][j] = false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeRow(int row) {\r\n\t\tdata.remove(row);\r\n\t}",
"public void removeFromRow(int value, int row){\n\tfor (int c = 0; c < 9; c ++){\r\n\t if (board[row][c].remove(value) == true) {\r\n\t\tassign (board[row][c].getGuess(), row, c);\r\n\t }\r\n\t} \r\n }",
"public void deleteRow(int row){\n\t\tfor(int j = row; j > 0; j--)\n\t\t\tfor(int i = 0; i < well.length; i++)\n\t\t\t\twell[i][j] = well[i][j-1];\n\t}",
"void removeRow(int row_index) throws IOException;",
"private void removeRow() {\n gridHeight--; \n for (EscapeBlock block : grid.get(gridHeight)) { // for each block from the last row\n block.disconnectAll();\n this.remove(block); // remove it from the UI\n }\n\n grid.remove(gridHeight); // remove the row\n }",
"public void removeRowAt(int row)\r\n throws IllegalStateException {\r\n if(!(Integer.parseInt(((Vector)data.elementAt(row)).elementAt\r\n (numberOfcolumns).toString()) == IS_INSERTED)){\r\n ( (Vector) data.elementAt(row)).\r\n setElementAt(new Integer(IS_DELETED), numberOfcolumns);\r\n dataDeleted.add((Vector)data.elementAt(row));\r\n }\r\n data.removeElementAt(row);\r\n this.deletedStatus = true;\r\n }",
"public void removeRow(String rowName);",
"public void removeRow(int row) {\r\n\t\tdataVector.removeElementAt(row);\r\n\t\tthis.dataObjects.removeElementAt(row);\r\n\r\n\t\t// Generate notification\r\n\t\tfireTableRowsDeleted(row, row);\r\n\t}",
"@Override\r\n\tpublic void removeRow(int row) {\r\n\t\tsuper.removeRow(row);\r\n\t\telenco = lista.getElenco();\r\n\t\tPersona removable = new Persona();\r\n\t\tremovable.setNome(elenco.elementAt(row).getNome());\r\n\t\tremovable.setCognome(elenco.elementAt(row).getCognome());\r\n\t\tremovable.setTelefono(elenco.elementAt(row).getTelefono());\r\n\t\tremovable.setIndirizzo(elenco.elementAt(row).getIndirizzo());\r\n\t\tremovable.setEta(elenco.elementAt(row).getEta());\r\n\t\ttry {\r\n\t\t\tlista.delete(removable, row);\r\n\t\t\t}\r\n\t\t\tcatch (ArrayIndexOutOfBoundsException aioe) {\r\n\t\t\t\tString message = AIOE_MESSAGE\r\n\t\t\t\t\t\t+row + \" on table \"\r\n\t\t\t\t\t\t+lista.getElenco().indexOf(removable)\r\n\t\t\t\t\t\t+ \" on Lista \";\r\n\t\t\t\tJOptionPane.showMessageDialog(null, message);\r\n\t\t\t}\r\n\t}",
"private void clearRow(int row)\n {\n for(int col = 0; col < grid.getNumCols(); col++)\n {\n grid.get(new Location(row, col)).removeSelfFromGrid();\n }\n }",
"public void dropRow(int row, int num) {\n System.arraycopy(cells[row], 0, cells[row+num], 0, 10);\n }",
"public void removeRow( int r ) {\n\t\tint size = (rows-1) * cols;\n\t\tfloat[] x = new float[size];\n\t\tfloat[] y = new float[size];\n\n\t\trows--;\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tfor (int row = 0; row < rows; row++) {\n\t\t\tfor (int col = 0; col < cols; col++) {\n\t\t\t\tint k = j+col;\n\t\t\t\tint l = i+col;\n\t\t\t\tx[k] = xGrid[l];\n\t\t\t\ty[k] = yGrid[l];\n\t\t\t}\n\t\t\tif ( row == r-1 )\n\t\t\t\ti += cols;\n\t\t\ti += cols;\n\t\t\tj += cols;\n\t\t}\n\t\txGrid = x;\n\t\tyGrid = y;\n\t}",
"public void deleteRow(int row)\n throws JPARSECException {\n \tif (row >= m || row < 0)\n \t\tthrow new JPARSECException(\"invalid row.\");\n double newData[][] = new double[m-1][n];\n\n \tint iindex = -1;\n for (int i=0; i<m; i++)\n {\n \tif (i != row) {\n \t\tiindex ++;\n\t for (int j=0; j<n; j++)\n\t {\n\t \tnewData[iindex][j] = this.data[i][j];\n\t }\n \t}\n }\n Matrix m = new Matrix(newData);\n this.m = m.m;\n this.data = m.data;\n }",
"private void deleteRow(int n){\n\t\tint lastCol = grid[0].length - 1;\n\t\tfor(int i = n; i < lastCol; ++i) {\n\t\t\tfor(int j = 0; j < grid.length; ++j){\n\t\t\t\tgrid[j][i] = grid[j][i + 1];\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < grid.length; ++i){\n\t\t\tgrid[i][lastCol] = false;\n\t\t}\n\t}",
"public ChessPiece removePiece(int row, int col)\n\t{\n\t\tChessPiece piece = m_pieces[row][col];\n\t\t\n\t\tm_pieces[row][col] = null;\n\t\tm_display.displayEmptySquare(m_buttons[row][col], row, col);\n\t\t\n\t\treturn piece;\n\t}",
"void remove(int row, int column) {\n SparseArrayCompat<TObj> array = mData.get(row);\n if (array != null) {\n array.remove(column);\n }\n }",
"public void deleteRow(MyItem row) {\n\n\t\tif (MyItemAdapter.rows.contains(row)) {\n\t\t\tMyItemAdapter.rows.remove(row);\n\t\t}\n\n\t}",
"public void removeCell(int index) {\r\n cells.remove(index);\r\n if(DEBUG) IJ.log(\"Cell \" + (index+1) + \" is gone. Now record has \" + size() + \" cells.\");\r\n }",
"@Override\n\tpublic List<T> removeRow(long rowIndex) throws IndexOutOfBoundsException {\n\t\tMatrixValidator.throwIfBadIndex(this, rowIndex, Plane.Y);\n\t\t\n\t\tList<T> removedItems = this.getRow(rowIndex);\n\t\t\n\t\tthis.numRows--;\n\t\tif(this.numRows == 0){\n\t\t\tthis.numCols = 0;\n\t\t\tthis.valueMap.clear();\n\t\t}else {\n\t\t\tList<MatrixCoordinate> coordsToMove = new LongLinkedList<>();\n\t\t\tList<MatrixCoordinate> coordsToRemove = new LongLinkedList<>();\n\t\t\t\n\t\t\tfor(Map.Entry<MatrixCoordinate, T> curEntry : this.valueMap.entrySet()){\n\t\t\t\tif(curEntry.getKey().getRow() > rowIndex){\n\t\t\t\t\tcoordsToMove.add(curEntry.getKey());\n\t\t\t\t}else if(curEntry.getKey().getRow() == rowIndex){\n\t\t\t\t\tcoordsToRemove.add(curEntry.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(MatrixCoordinate curCoord : coordsToRemove) {\n\t\t\t\tthis.valueMap.remove(curCoord);\n\t\t\t}\n\t\t\t\n\t\t\tfor(MatrixCoordinate curCoord : coordsToMove){\n\t\t\t\tT curVal = this.valueMap.remove(curCoord);\n\t\t\t\t\n\t\t\t\tcurCoord.setY(curCoord.getRow() - 1);\n\t\t\t\tthis.valueMap.put(curCoord, curVal);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn removedItems;\n\t}",
"private void removePiece(int row, int col, int storedRow, int storedCol){\r\n int pieceRow = -1;\r\n int pieceCol = -1;\r\n if(col > storedCol && row > storedRow){\r\n pieceRow = row-1;\r\n pieceCol = col-1;\r\n }\r\n if(col > storedCol && row < storedRow){\r\n pieceRow = row+1;\r\n pieceCol = col-1;\r\n }\r\n if(col < storedCol && row > storedRow){\r\n pieceRow = row-1;\r\n pieceCol = col+1;\r\n }\r\n if(col < storedCol && row < storedRow){\r\n pieceRow = row+1;\r\n pieceCol = col+1;\r\n }\r\n checks[pieceRow][pieceCol] = 0;\r\n if(isGame) nextPlayer.subCheck();\r\n }",
"public void deleteRow(int row) {\n\t\tif (row == -1) return;\n\t\t\n\t\tdata.remove(row);\n\t\tfireTableRowsDeleted(row, row);\n\t}",
"public void remove(int oldRow, int oldCol)\n {\n Maze.maze[oldRow][oldCol] = ' ';\n }",
"private boolean removeByColRow(char column, int row){\n if(checkColRow(Head, column, row) != null){\n return removeHead();\n }\n CellNode current = Head;\n while(current != null){\n Cell remove = checkColRow(current, column, row);\n if(remove != null){ break; }\n current = current.getNext();\n }\n if(current.getNext() == null) return removeTail(column, row);\n current.getNext().setPrev(current.getPrev());\n current.getPrev().setNext(current.getNext());\n cellSize--;\n return true;\n }",
"void deleteRow(int rowPos)\n {\n System.out.println(\n \"@deleteRow rowPos: \" + rowPos + \", vs stackSize: \" + compositeRowStack.size());\n if(rowPos > 0) transferChildren(rowPos, rowPos - 1);\n if(rowPos < compositeRowStack.size())\n {\n compositeRowStack.remove(rowPos);\n }\n }",
"public Feature removeRow(int row){\n if (debug) logger.info(\"feature added\");\n Feature f = fc.remove(row);\n fcLastEdits.clear();\n fcLastEdits.add(f);\n lastEditType = EDIT_REMOVE;\n fireTableRowsDeleted(row, row);\n return f;\n }",
"private void undoMove(int row, int column) {\n numbersAdded--;\n square[row * dimensions + column] = 0;\n }",
"public void removeRow(int pos) {\n\t\t//ANCA: rows need not be removed from the columns if they are removed from the subset\n\t\t//for (int i = 0; i < getNumColumns(); i++) {\n\t\t//\tgetColumn(i).removeRow(subset[pos]);\n\t\t//}\n\t\tint[] newsubset = new int[subset.length - 1];\n\n\n\t\tSystem.arraycopy(subset, 0, newsubset, 0, pos);\n\t\tSystem.arraycopy(\n\t\t\tsubset,\n\t\t\tpos + 1,\n\t\t\tnewsubset,\n\t\t\tpos,\n\t\t\tsubset.length - pos - 1);\n\t\tsubset = newsubset;\n\n\t}",
"public native void deleteRow(int row) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.deleteRow(row);\n }-*/;",
"public void removeRow(int ind) throws SQLException {\n/* 417 */ notSupported();\n/* */ }",
"public void remove(int r, int c)\n\t{\n\t\tboard[r][c] = 0;\n\t}",
"public void removeFromCol(int value, int col){\n\tfor(int r = 0; r < 9; r++){\r\n\t if (board[r][col].remove(value) == true) {\r\n\t\tassign (board[r][col].getGuess(), r, col);\r\n\t }\r\n\t}\r\n }",
"void rowRemoved(Sheet s, int sheetIndex, int row)\r\n/* 203: */ {\r\n/* 204:375 */ this.parser.rowRemoved(sheetIndex, row, s == getSheet());\r\n/* 205:376 */ this.formulaBytes = this.parser.getBytes();\r\n/* 206: */ }",
"@Test\n\tpublic void testEliminationByRow(){\n\t\tsetBoardUp();\n\t\tRow r = new Row(board, 1);\n\t\talgorithm.applyEliminationInRow(r);\n\t\tboolean condition = true;\n\t\tcondition &= !r.cell[1].possibilities.contains(4) && !r.cell[1].possibilities.contains(5) && !r.cell[1].possibilities.contains(7);\n\t\tcondition &= !r.cell[2].possibilities.contains(4) && !r.cell[2].possibilities.contains(5) && !r.cell[2].possibilities.contains(7);\n\t\tcondition &= !r.cell[4].possibilities.contains(4) && !r.cell[4].possibilities.contains(5) && !r.cell[4].possibilities.contains(7);\n\t\tcondition &= !r.cell[5].possibilities.contains(4) && !r.cell[5].possibilities.contains(5) && !r.cell[5].possibilities.contains(7);\n\t\tcondition &= !r.cell[6].possibilities.contains(4) && !r.cell[6].possibilities.contains(5) && !r.cell[6].possibilities.contains(7);\n\t\tcondition &= !r.cell[8].possibilities.contains(4) && !r.cell[8].possibilities.contains(5) && !r.cell[8].possibilities.contains(7);\n\t\t\n\t\tassertTrue(condition);\n\t}",
"public void clearRow(int row) {\n for (int col = 0; col < 10; col ++) {\n cells[row][col] = null;\n }\n }",
"public void removeTile(Tile a_tile){\n for(int i = 0; i < playerHand.size(); i++){\n if(playerHand.get(i).getRight() == a_tile.getRight() && playerHand.get(i).getLeft() == a_tile.getLeft()){\n playerHand.remove(i);\n break;\n }\n }\n }",
"public void decrementRow() {\n setRowAndColumn(Math.max(row - 1, 0), column);\n }",
"public native void deselectRow(int row) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.deselectRow(row);\n }-*/;",
"public int deleteIndex(FeatureRow row) {\n return deleteIndex(row.getId());\n }",
"public boolean removeTrack(int row) {\n tracks.remove(row);\n if (row == position) {\n return true;\n }\n return false;\n }",
"void removeRowsLock();",
"public void removeSelected(int row, int col) {\n BoardSquare bs = board.getBoardSquare(row, col);\n selectedCards.remove(bs);\n bs.setCurrentlySelected(false);\n }",
"public void Remove(int row, int column) {\n if (row < 0 || column < 0 || row > (numberOfRows - 1) || column > (numberOfColumns - 1)\n || grid[row][column] != LASER) {\n message = (\"Error removing laser at: (\" + row + \", \" + column + \")\");\n } else {\n grid[row][column] = EMPTY;\n // Remove a laser beam to the North direction until we reach a pillar or the top\n for (int i = row - 1; i >= 0; i--) {\n if (grid[i][column] == X || grid[i][column] == ZERO ||\n grid[i][column] == ONE || grid[i][column] == TWO ||\n grid[i][column] == THREE || grid[i][column] == FOUR ||\n grid[i][column] == LASER) {\n break;\n } else {\n grid[i][column] = EMPTY;\n }\n }\n // Remove a laser beam to the South direction until we reach a pillar or the bottom\n for (int i = row + 1; i < numberOfRows; i++) {\n if (grid[i][column] == X || grid[i][column] == ZERO ||\n grid[i][column] == ONE || grid[i][column] == TWO ||\n grid[i][column] == THREE || grid[i][column] == FOUR ||\n grid[i][column] == LASER) {\n break;\n } else {\n grid[i][column] = EMPTY;\n }\n }\n // Remove a laser beam to the West direction until we reach a pillar or the left corner\n for (int i = column - 1; i >= 0; i--) {\n if (grid[row][i] == X || grid[row][i] == ZERO ||\n grid[row][i] == ONE || grid[row][i] == TWO ||\n grid[row][i] == THREE || grid[row][i] == FOUR ||\n grid[row][i] == LASER) {\n break;\n } else {\n grid[row][i] = EMPTY;\n }\n }\n // Remove a laser beam to the East direction until we reach a pillar or the right direction\n for (int i = column + 1; i < numberOfColumns; i++) {\n if (grid[row][i] == X || grid[row][i] == ZERO ||\n grid[row][i] == ONE || grid[row][i] == TWO ||\n grid[row][i] == THREE || grid[row][i] == FOUR ||\n grid[row][i] == LASER) {\n break;\n } else {\n grid[row][i] = EMPTY;\n }\n }\n for (int k = 0; k < numberOfRows; k++) {\n for (int j = 0; j < numberOfColumns; j++ ) {\n if (grid[k][j] == LASER) {\n // Set up a laser beam to the North direction until we reach a pillar, laser or the top\n for (int i = k - 1; i >= 0; i--) {\n if (grid[i][j] == X || grid[i][j] == ZERO ||\n grid[i][j] == ONE || grid[i][j] == TWO ||\n grid[i][j] == THREE || grid[i][j] == FOUR ||\n grid[i][j] == LASER) {\n break;\n } else {\n grid[i][j] = LASER_BEAM;\n }\n }\n // Set up a laser beam to the South direction until we reach a pillar, laser or the bottom\n for (int i = k + 1; i < numberOfRows; i++) {\n if (grid[i][j] == X || grid[i][j] == ZERO ||\n grid[i][j] == ONE || grid[i][j] == TWO ||\n grid[i][j] == THREE || grid[i][j] == FOUR ||\n grid[i][j] == LASER) {\n break;\n } else {\n grid[i][j] = LASER_BEAM;\n }\n }\n // Set up a laser beam to the West direction until we reach a pillar, laser or the left corner\n for (int i = j - 1; i >= 0; i--) {\n if (grid[k][i] == X || grid[k][i]== ZERO ||\n grid[k][i] == ONE || grid[k][i] == TWO ||\n grid[k][i] == THREE || grid[k][i] == FOUR ||\n grid[k][i] == LASER) {\n break;\n } else {\n grid[k][i] = LASER_BEAM;\n }\n }\n // Set up a laser beam to the East direction until we reach a pillar, laser or the right direction\n for (int i = j + 1; i < numberOfColumns; i++) {\n if (grid[k][i] == X || grid[k][i]== ZERO ||\n grid[k][i] == ONE || grid[k][i] == TWO ||\n grid[k][i] == THREE || grid[k][i] == FOUR ||\n grid[k][i] == LASER) {\n break;\n } else {\n grid[k][i] = LASER_BEAM;\n }\n }\n }\n }\n }\n message = (\"Laser removed at: (\" + row + \", \" + column + \")\");\n }\n }",
"public int clearLine()\n {\n int count = 0;\n for (int i = grid.length-1; i >= 1;)\n {\n //check if it's a row to remove\n boolean z = true;\n for (int j = 0; j < grid[i].length; j++)\n {\n if (grid[i][j] == 0)\n {\n z = false;\n break;\n }\n }\n \n //remove it, shift everything down one\n if (z)\n {\n for (int k = i; k >= 1; k--)\n {\n for (int l = 0; l < grid[i].length; l++)\n {\n grid[k][l] = grid[k-1][l];\n }\n }\n count++;\n } else\n {\n i--;\n }\n }\n return count;\n }",
"@Override\n\tpublic void removeCell(Cell arg0) {\n\t\t\n\t}",
"public void removeRow(T obj) {\r\n\t\t\r\n\t\tlogger.trace(\"Enter removeRow - T obj\");\r\n\t\t\r\n\t\tint row = data.indexOf(obj);\r\n\t\tif (row >= 0) {\r\n\t\t\tdata.remove(row);\r\n\t\t\tfireTableRowsDeleted(row, row);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.trace(\"Exit removeRow - T obj\");\r\n\t}",
"public void RemoveRowsIfStackedTooHigh() {\n \t\t\n while (rowHasBlocks(Parameters.RemoveBiggestPartialRowIfBlockInRow)) {\n int NoOfPiecesRemoved = \n eraseBiggestRowGreaterThan(Parameters.RemoveBiggestPartialRowIfBlockInRow);\n //remove points for each empty square\n ComputeScoreAndDelay(-(COLUMNS - NoOfPiecesRemoved) * Parameters.PointsSubtractedPerEmptySpaceFromPartialRow);\n \n }\n game_grid.repaint();\n LogEvent(\"row_removed\");\n }",
"@Override\n\tpublic int deleteBoard(int num) {\n\t\treturn 0;\n\t}",
"public void removeRow(int nRow) {\r\n\t\t\r\n\t\tlogger.trace(\"Enter removeRow - int nRow\");\r\n\t\t\r\n\t\tif (nRow >= getRowCount()){\r\n\t\t\tlogger.trace(\"Exit removeRow - nRow >= getRowCount()\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tdata.remove(nRow);\r\n\t\tfireTableRowsDeleted(nRow, nRow);\r\n\t\t\r\n\t\tlogger.trace(\"Exit removeRow - int nRow\");\r\n\t}",
"public void removeRowAt(int index) {\n ((DefaultTableModel) getModel()).removeRow(index);\n }",
"void deleteBoard(long id);",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdelRow();\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdelRow();\n\t\t\t}",
"public void deleteCartRow() {\n CarComponent selectedRow = cartTable.getSelectionModel().getSelectedItem();\n cartTable.getItems().remove(selectedRow);\n componentsCart.remove(selectedRow);\n\n updateTotal();\n }",
"private synchronized void removeWall(int desiredRow, int desiredColumn) {\n \tint topBlock = m.maze[desiredRow - 1][desiredColumn];\t\t\t\t\t// block directly above the current block\r\n \tint leftBlock = m.maze[desiredRow][desiredColumn - 1];\t\t\t\t\t// block directly left of the current block\r\n \tint bottomBlock = m.maze[desiredRow + 1][desiredColumn];\t\t\t\t// block directly below the current block\r\n \tint rightBlock = m.maze[desiredRow][desiredColumn + 1];\t\t\t\t\t// block directly right of the current block\r\n \t\r\n if (desiredRow % 2 == 1 && leftBlock != rightBlock) {\t\t\t\t\t// wall is vertical\r\n \tm.fixBlocks(desiredRow, desiredColumn - 1, leftBlock, rightBlock);\t// fix all blocks so a loop is not created when the wall is removed\r\n m.maze[desiredRow][desiredColumn] = rightBlock;\t\t\t\t\t\t// set current block with wall to be empty (no wall) thus removing the wall\r\n } else if (desiredRow % 2 == 0 && topBlock != bottomBlock) {\t\t\t// wall is horizontal\r\n \tm.fixBlocks(desiredRow - 1, desiredColumn, topBlock, bottomBlock);\t// fix all blocks so a loop is not created when the wall is removed\r\n m.maze[desiredRow][desiredColumn] = bottomBlock;\t\t\t\t\t// set current block with wall to be empty (no wall) thus removing the wall\r\n }\r\n repaint();\r\n try { wait(1); }\r\n catch (InterruptedException e) { }\r\n }",
"private void removeColumn() {\n gridWidth--;\n for (ArrayList<EscapeBlock> row : grid) { // for each row\n this.remove(row.get(gridWidth)); // remove the last block from the UI\n for(EscapeBlock block : row)\n block.disconnectAll();\n row.remove(gridWidth); // remove the last block from the grid\n }\n \n }",
"public void deleteRow(int row) throws IndexOutOfBoundsException{\r\n data.remove(row);\r\n fireTableRowsDeleted(row,row);\r\n }",
"public void deleteRow(Row _deleteThis){\r\n if(!validTable()){\r\n System.out.println(\"Error:Table:deleteRow: table invalid, nothing done\");\r\n return;\r\n }\r\n Set<String> keys = rows.keySet();\r\n //Searches for row to delete and then removes it\r\n for(String k : keys) {\r\n if(_deleteThis.getData() == rows.get(k).getData()){\r\n rows.remove(k);\r\n return;\r\n }\r\n }\r\n System.out.println(\"Error:Table:deleteRow: Unable to find passed row, no row deleted\");\r\n }",
"@Override\n public void removeNumber(int row, int col) {\n if (!grid.isGiven(row, col)) {\n grid.unsetNumber(row, col);\n view.setNumber(row, col, 0);\n }\n }",
"private void removeairlinerActionPerformed(java.awt.event.ActionEvent evt) {\n int row = airlinerTable.getSelectedRow();\n\n if(row<0) {\n JOptionPane.showMessageDialog(null, \"Please select a row from the table first\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return;\n }\n Airliner a = (Airliner)airlinerTable.getValueAt(row, 0);\n airlinerDirectory.removeAirliner(a);\n refreshTable();\n }",
"public boolean exclude(int row, javax.swing.table.TableModel tableModel);",
"public void removeCol( int r ) {\n\t\tint size = rows * (cols+1);\n\t\tfloat[] x = new float[size];\n\t\tfloat[] y = new float[size];\n\n\t\tcols--;\n\t\tfor (int row = 0; row < rows; row++) {\n\t\t\tint i = row*(cols+1);\n\t\t\tint j = row*cols;\n\t\t\tfor (int col = 0; col < cols; col++) {\n\t\t\t\tx[j] = xGrid[i];\n\t\t\t\ty[j] = yGrid[i];\n\t\t\t\tif ( col == r-1 )\n\t\t\t\t\ti++;\n\t\t\t\ti++;\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\t\txGrid = x;\n\t\tyGrid = y;\n\t}",
"public void deleteSelectedFile(int row) {\n\t\tArrayList<File> files = currConfig.getSelectedFiles();\n\t\tfiles.remove(row);\n\t}",
"public boolean deleteRow(int row) {\n try {\n resultSet.absolute(row + 1);\n resultSet.deleteRow();\n //tell table to redraw itself\n fireTableDataChanged();\n return true;\n } catch (SQLException se) {\n System.out.println(\"Delete row error \" + se);\n return false;\n }\n }",
"private void removePiece(Piece piece) {\n addPiece(piece, piece.rowPosition, piece.columnPosition);\n }",
"private void removeALakeTile(Game game) {\n\t\tLakeTile[][] board = game.getPlayArea().getLakeTilesOnBoard();\n\t\tArrayList<Position> positions = new ArrayList<Position>();\n\t\tfor (int y = 0; y < board.length; y++) {\n\t\t\tfor (int x = 0; x < board[y].length; x++) {\n\t\t\t\tLakeTile laketile = board[x][y];\n\t\t\t\tif (laketile != null) {\n\t\t\t\t\tint connect_laketile = 4;\n\t\t\t\t\tif (x + 1 < board.length && board[x + 1][y] == null)\n\t\t\t\t\t\tconnect_laketile -= 1;\n\t\t\t\t\tif (y + 1 < board.length && board[x][y + 1] == null)\n\t\t\t\t\t\tconnect_laketile -= 1;\n\t\t\t\t\tif (x - 1 >= 0 && board[x - 1][y] == null)\n\t\t\t\t\t\tconnect_laketile -= 1;\n\t\t\t\t\tif (y - 1 >= 0 && board[x][y - 1] == null)\n\t\t\t\t\t\tconnect_laketile -= 1;\n\t\t\t\t\tif (connect_laketile == 1) {\n\t\t\t\t\t\tPosition p = new Position(x, y);\n\t\t\t\t\t\tpositions.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (countLakeTileOnBoard(board) != 0 && positions.size() == 0) {\n\t\t\tpositions = getAllLakeTilePositionOnBoard(board);\n\t\t}\n\t\tCollections.shuffle(positions);\n\t\tPosition pos = positions.get(0);\n\t\tint x = pos.getX();\n\t\tint y = pos.getY();\n\t\tremoved_laketile.add(board[x][y]);\n\t\tremoved_position.add(pos);\n\t\tboard[x][y] = null;\n\t}",
"public FeatureCollection removeRows(int[] rows){\n if (debug) logger.info(\"Removing multiple rows\");\n fcLastEdits.clear();\n for (int row : rows){\n Feature f = fc.get(row);\n fcLastEdits.add(f);\n }\n fc.removeAll(fcLastEdits);\n lastEditType = EDIT_REMOVE;\n fireTableDataChanged();//TODO: need to fire something else here to return removed feature to listeners?\n return fcLastEdits;\n }",
"public void toDeletIndex()\n {\n try\n { \n //DefaultTableModel model=(DefaultTableModel)jt.getModel(); \n //jt.getModel();\n int num=Integer.parseInt(JOptionPane.showInputDialog(rootPane,\"Enter the row number\")); \n jtModel.removeRow(num-1);\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted selected row number \" +num);\n }\n catch(NumberFormatException ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"Enter integer not alphabet\");\n } \n catch(ArrayIndexOutOfBoundsException ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"This row dosent exist\");\n }\n }",
"public static void removeRow(String fileName) {\n tableModel.removeRow(fileName);\n }",
"private void deleteSelectedRows() {\n int[] rows = constantsTable.getSelectedRows();\n constantsTable.clearSelection();\n currentCellEditor.cancelCellEditing();\n for (int i = rows.length - 1; i >= 0; i--) {\n if (rows[i] > -1) {\n getTableModel().removeRow(rows[i]);\n }\n }\n }",
"private void tampilkan() {\n int row = table.getRowCount();\n for(int a= 0; a<row;a++){\n model.removeRow(0);\n }\n \n \n }",
"public Piece remove (int x, int y){\n\t\tif (x < 0 || x > N || y < 0 || y > N){\n\t\t\tSystem.out.println(\"Off the board! (Out of Bounds)\");\n\t\t\treturn null;\n\t\t}\n\t\telse if (pieceAt(x,y) == null) {\n\t\t\tSystem.out.println(\"There isn't a piece here! (Null)\");\n\t\t\treturn null;\n\t\t}\t\n\t\telse{\n\t\t\tPiece temp = pieceArray[x][y];\n\t\t\tpieceArray[x][y] = null;\n\t\t\t\n\t\t\treturn temp;\n\t\t}\n\t}",
"public native void deleteRow(int row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.deleteRow(\n\t\t\t\t\t\trow,\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"public void deleteRow(String row) {\n database.delete(ORDER_MASTER, ORDER_ID + \"=\" + row, null);\n }",
"void removeUser(String user){\n for (int row = 0; row <= currentUsers.getRowCount()-1; row++){\n if (user.equals(currentUsers.getValueAt(row,0))){\n usersModel.removeRow(row);\n break;\n }\n }\n }",
"void removePiece(int c, int r) {\n _forwardDiag[forward(c, r)] += -1;\n _backwardDiag[backward(c, r)] += -1;\n _col[c - 1] += -1;\n _row[r - 1] += -1;\n }",
"public static void removeRow(Sheet sheet, int rowIndex) throws Throwable {\r\n\t\ttry {\r\n\t\t int lastRowNum=sheet.getLastRowNum();\r\n\t\t if(rowIndex>=0&&rowIndex<lastRowNum)\r\n\t\t sheet.shiftRows(rowIndex+1,lastRowNum,-1);//将行号为rowIndex+1一直到行号为lastRowNum的单元格全部上移一行,以便删除rowIndex行\r\n\t\t if(rowIndex==lastRowNum){\r\n\t\t Row removingRow=sheet.getRow(rowIndex);\r\n\t\t if(removingRow!=null)\r\n\t\t sheet.removeRow(removingRow);\r\n\t\t }\r\n\t\t} catch (Throwable e) {\r\n\t\t\tthrow e;\r\n\t\t}\r\n\r\n\t}",
"public void removeFeature(Feature feature) {\n rows.removeElement(feature);\n }",
"public void actionPerformed(ActionEvent e) {\n model.deleteRow();\n }",
"public boolean removeToList(char column, int row){\n if(!isEmpty() && cellExists(column, row)){\n return removeByColRow(column, row);\n }\n return false;\n }",
"@Kroll.method\n\tpublic void deleteRow(Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tif (rowObj instanceof Integer) {\n\t\t\tfinal int index = ((Integer) rowObj).intValue();\n\n\t\t\tdeleteRow(getRowByIndex(index), null);\n\t\t} else {\n\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\tif (row == null) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfinal TiViewProxy parent = row.getParent();\n\n\t\t\tif (parent != null) {\n\t\t\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\n\t\t\t\t\t// Row is in section, modify section rows.\n\t\t\t\t\tsection.remove(row);\n\n\t\t\t\t\t// Notify TableView of update.\n\t\t\t\t\tupdate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void remove(Record r) \n\t{\n\t\tfilled--; //reduce load factor\n\t\tif (r.placement != -1){ //if r's expected position isnt null\n\t\t\tRecord newRecord = new Record(\"deleted\"); //make a new record with value \"deleted\n\t\t\tnewRecord.placement = -2; //set position to -1 (as is standard for deleted\n\t\t\tTable[r.placement] = newRecord; //puts deleted slot in table\n\t\t}\t\n\t}",
"void retract() {\n assert movesMade() > 0;\n Move move = _moves.remove(_moves.size() - 1);\n Piece replaced = move.replacedPiece();\n int c0 = move.getCol0(), c1 = move.getCol1();\n int r0 = move.getRow0(), r1 = move.getRow1();\n Piece movedPiece = move.movedPiece();\n set(c1, r1, replaced);\n set(c0, r0, movedPiece);\n _turn = _turn.opposite();\n }",
"@Test\r\n public void testRemoveNodeByRowColumnIndex2() {\r\n System.out.println(\"removeNodeByRowColumnIndex2\");\r\n int row = 0;\r\n int column = 0;\r\n GridPane gridPane = new GridPane();\r\n ImageView img = null;\r\n ChessMain instance = new ChessMain();\r\n instance.removeNodeByRowColumnIndex2(row, column, gridPane);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }",
"@Override\n\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\tint removeIndex = listema.indexOf(rowb);\n\t\t\t\t\tlistema.remove(removeIndex);\n\t\t\t\t\tgetView().getEmail().removeRow(removeIndex + 1);\n\t\t\t\t}",
"private boolean removeTail(char column, int row){\n CellNode current = Head;\n while(current != null){\n Cell remove = checkColRow(current, column, row);\n if(remove != null){ break; }\n current = current.getNext();\n }\n current.getPrev().setNext(null);\n cellSize--;\n return true;\n }",
"protected void moveRow (int row)\r\n {\r\n int move = 0;\r\n \r\n if (row < _currentRow)\r\n { move = _currentRow - row; }\r\n \r\n else if (row > _currentRow)\r\n { move = row - _currentRow; }\r\n \r\n _currentRow = row;\r\n }",
"public TrajectoryTableRow removeByIndex(int index){\r\n\t\treturn this.data.remove(index);\r\n\t}",
"public boolean removeTrack(int[] rows) {\n Arrays.sort(rows);\n int removed = 0;\n boolean currTrackRemoved = false;\n for (int i : rows) {\n tracks.remove(i - removed);\n removed++;\n if (i == position) {\n currTrackRemoved = true;\n } else if (i < position) {\n //Reduce position if removing tracks before the current position\n position--;\n }\n }\n //position -= removed - 1; //Take off one less to play the next track.\n return currTrackRemoved;\n }",
"public void moveDown()\n\t{\n\t\trow--;\n\t}",
"private void btnRemoveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRemoveActionPerformed\n if(tblOrders.getSelectedRow() == -1)\n {\n lblMessage.setText(\"Select Product First\");\n }\n else\n {\n DefaultTableModel model = (DefaultTableModel)tblOrders.getModel();\n int productId = \n Integer.parseInt(String.valueOf(model.getValueAt(tblOrders.getSelectedRow(), 0)));\n \n loggedInCustomer.findLatestOrder().removeOrderLine(productId);\n \n model.removeRow(tblOrders.getSelectedRow());\n \n lblMessage.setText(\"Product Has Been Removed\");\n lblTotalCost.setText(\"£\" + String.format(\"%.02f\",loggedInCustomer.findLatestOrder().getOrderTotal()));\n }\n }",
"private void delete(int selectedRow) {\r\n removing = true;\r\n deletingRow = selectedRow;\r\n //subAwardBudgetTableModel.deleteRow(selectedRow);\r\n deleteRow(selectedRow);\r\n \r\n //Select a Row\r\n int selectRow = 0;\r\n int rowCount = subAwardBudgetTableModel.getRowCount();\r\n if(selectedRow == 0 && rowCount > 0) {\r\n //Select First Row\r\n selectRow = 0;\r\n }else if(selectedRow == rowCount) {\r\n //Select Last Row\r\n selectRow = rowCount - 1;\r\n }else {\r\n //Select This Row\r\n selectRow = selectedRow;\r\n }\r\n removing = false;\r\n if(selectRow != -1) {\r\n subAwardBudget.tblSubAwardBudget.setRowSelectionInterval(selectRow, selectRow);\r\n }else{\r\n //If All rows Deleted, then Details panel should be cleared\r\n displayDetails();\r\n }\r\n deletingRow = -1;\r\n }",
"public void removeVertex (T vertex){\n int index = vertexIndex(vertex);\n \n if (index < 0) return; // vertex does not exist\n \n n--;\n // IF THIS DOESN'T WORK make separate loop for column moving\n for (int i = index; i < n; i++){\n vertices[i] = vertices[i + 1];\n for (int j = 0; j < n; j++){\n edges[j][i] = edges[j][i + 1]; // moving row up\n edges[i] = edges[i + 1]; // moving column over\n }\n }\n }",
"public void deleteRows(int[] rows) throws IndexOutOfBoundsException{\r\n if (rows.length > 0){\r\n LinkedList data_to_remove = new LinkedList();\r\n for (int i=0; i<rows.length; i++){\r\n data_to_remove.add(data.get(rows[i]));\r\n }\r\n for (int i=0; i<data_to_remove.size(); i++){\r\n data.remove(data_to_remove.get(i)); \r\n }\r\n this.fireTableRowsDeleted(rows[0], rows[rows.length -1]);\r\n }\r\n }",
"void getBlowUp(int x, int y) {\n //YOUR CODE HERE\n\t whichBoard.remove(x, y);\n }",
"private void delete(ByteBuffer rowKey,\n Clustering<?> clustering,\n Cell<?> cell,\n WriteContext ctx,\n long nowInSec)\n {\n DecoratedKey valueKey = getIndexKeyFor(getIndexedValue(rowKey,\n clustering,\n cell));\n doDelete(valueKey,\n buildIndexClustering(rowKey, clustering, cell),\n DeletionTime.build(cell.timestamp(), nowInSec),\n ctx);\n }",
"@RequestMapping(\"/removeRow\")\n\tpublic String removeRow(Model model, @RequestParam(value = \"row\") int row, @RequestParam(value = \"id\") int id,\n\t\t\t@CookieValue(value = \"draftid\", defaultValue = \"0\") int draftid) {\n\t\tString jsonStr = \"\";\n\t\tServletRequestAttributes attr = (ServletRequestAttributes) RequestContextHolder.currentRequestAttributes();\n\t\tHttpSession session = attr.getRequest().getSession(true);\n\t\tDataObject dataObj = (DataObject) session.getAttribute(\"CONTAINER\");\n\t\tif (draftid != 0 && dataObj == null) {\n\t\t\tjsonStr = draftDb.getJson(draftid);\n\t\t\tGsonBuilder gsonBilder = new GsonBuilder();\n\n\t\t\tgsonBilder.registerTypeAdapter(ElementData.class, new DataAdapter());\n\n\t\t\tGson gson = gsonBilder.create();\n\n\t\t\t// TuanHMA 1-29-2016 Object held informations of JSON\n\t\t\tdataObj = gson.fromJson(jsonStr, DataObject.class);\n\t\t}\n\n\t\tList<ElementData> elements = dataObj.getElements();\n\t\tCollections.sort(elements);\n\n\t\tfor (ElementData eData : elements) {\n\t\t\tif (eData.getDataType().equals(\"table\") && id == eData.getId()) {\n\t\t\t\tTable table = (Table) eData;\n\t\t\t\tIterator<TableValue> valueIter = table.getData().getValues().iterator();\n\t\t\t\tint i = 0;\n\t\t\t\twhile (valueIter.hasNext()) {\n\t\t\t\t\tTableValue value = valueIter.next();\n\t\t\t\t\tif (value.getRow() == row) {\n\t\t\t\t\t\tvalueIter.remove();\n\t\t\t\t\t\ti--;\n\t\t\t\t\t} else if (value.getRow() > row) {\n\t\t\t\t\t\tvalue.setRow(value.getRow() - 1);\n\t\t\t\t\t\ttable.getData().getValues().set(i, value);\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdataObj.setElements(elements);\n\t\tsession.setAttribute(\"CONTAINER\", dataObj);\n\t\tif (draftid != 0) {\n\t\t\tdraftDb.saveJsonDB(draftid, new Gson().toJson(dataObj, DataObject.class));\n\t\t}\n\t\treturn new Gson().toJson(dataObj, DataObject.class);\n\t}",
"public void removeTableRows(DefaultTableModel model){\n\t\tif(model.getRowCount() > 0){\r\n\t\t\tfor (int i = model.getRowCount()-1; i >= 0; --i) {\r\n\t\t\t\tmodel.removeRow(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void clearRow(int rowNum, int linesCleared){\r\n\t\tboolean rowCleared = false;\r\n\t\t_timer.stop();\r\n\t\tfor (int columns = 2; columns <12; columns++){\r\n\t\t\t_squares[columns][rowNum] = null;\r\n\t\t\trowCleared = true;\r\n\t\t}\r\n\t\tif (rowCleared){\r\n\t\t\tfor (int row = rowNum; row > 2; row--){\r\n\t\t\t\tfor(int col = 2; col < 12; col++){\r\n\t\t\t\t\tif(this.isFull(col, row)){ \r\n\t\t\t\t\t\tColor color = _squares[col][row].getColor();\r\n\t\t\t\t\t\tint newRow = row+1;\r\n\t\t\t\t\t\t_squares[col][newRow] = _squares[col][row];\r\n\t\t\t\t\t\t_squares[col][newRow].setLocation(col * Constants.SQUARE_SIZE, newRow * Constants.SQUARE_SIZE);\t\r\n\t\t\t\t\t\t_squares[col][newRow].setColor(color);\r\n\t\t\t\t\t\t_squares[col][newRow].setBorderColor(Color.BLACK);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tint oldCol = col;\r\n\t\t\t\t\tint oldRow = row;\r\n\t\t\t\t\t_squares[oldCol][oldRow]= null;\r\n\t\t\t\t\tthis.repaint();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t_timer.start();\r\n\t}",
"public static void vaciartabla(){\n DefaultTableModel modelo=(DefaultTableModel) jtproveedores.getModel(); \n for (int i = 0; i < jtproveedores.getRowCount(); i++) {\n modelo.removeRow(i);\n i-=1;\n } \n }",
"@Override\n\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\tint removeIndex = listtel.indexOf(rowb);\n\t\t\t\t\tlisttel.remove(removeIndex);\n\t\t\t\t\tgetView().getTelefono().removeRow(removeIndex + 1);\n\t\t\t\t}"
] | [
"0.7893189",
"0.7573764",
"0.7499533",
"0.7448323",
"0.73608977",
"0.7289463",
"0.7224596",
"0.716201",
"0.7152306",
"0.7076332",
"0.7013351",
"0.7003599",
"0.6888906",
"0.68742394",
"0.6845922",
"0.6833275",
"0.68210787",
"0.6745753",
"0.67393816",
"0.67302024",
"0.6727342",
"0.6717358",
"0.67088807",
"0.6695837",
"0.6661608",
"0.6660188",
"0.66330767",
"0.6617774",
"0.6608269",
"0.6598494",
"0.6543033",
"0.6538865",
"0.6527814",
"0.6526617",
"0.6513159",
"0.648971",
"0.64858407",
"0.6484036",
"0.64789325",
"0.647033",
"0.6449857",
"0.6441505",
"0.64210075",
"0.64148957",
"0.64078486",
"0.6399657",
"0.63978887",
"0.6394672",
"0.63560843",
"0.6354084",
"0.6345661",
"0.6345661",
"0.6328347",
"0.6303346",
"0.6294334",
"0.62913775",
"0.62827414",
"0.6277523",
"0.6261039",
"0.6246887",
"0.62423563",
"0.62185085",
"0.6206627",
"0.6205067",
"0.6197518",
"0.61927676",
"0.6192744",
"0.61818486",
"0.61648697",
"0.6163373",
"0.6158181",
"0.61566776",
"0.6138108",
"0.6131301",
"0.6126596",
"0.6115396",
"0.6088901",
"0.6086747",
"0.6074863",
"0.6068562",
"0.60484767",
"0.6046609",
"0.60413384",
"0.60410345",
"0.60345787",
"0.6032319",
"0.6031619",
"0.60121423",
"0.60092366",
"0.6006574",
"0.600618",
"0.5983853",
"0.59838045",
"0.5975459",
"0.597288",
"0.59683377",
"0.5965429",
"0.5949463",
"0.5946441",
"0.59462184"
] | 0.71402436 | 9 |
getter for the block matrix | public boolean[][] getBlockMatrix() {
return blockMatrix;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int[][] getMatrix(){\n\t\treturn matrix;\n\t}",
"public Matrix getMatrix() {\n\t\treturn matrix;\n\t}",
"public int[][] getMat() {\n // Note: java has no return read-only so we won't return matrix;\n // b\\c that would expose internal representation. Instead we will\n // copy each row into a new matrix, and return that.\n return Helper.cloneMatrix(matrix);\n }",
"int[][] getData()\n {\n return block;\n }",
"public ArrayList<ArrayList<T>> getMatrix() {\n\t\treturn matrix;\n\t}",
"public Estados[][] getMatrix() {\n return matrix;\n }",
"public double[][][] getMatrix() {\n return matrix;\n }",
"public <InnerType extends Matrix> InnerType getMatrix() {\n return (InnerType)mat;\n }",
"public float [][] GetMatrix() {\n \n\t/*\n\tinputs--\n\t*/\n\t\n\t/*\n\toutputs--\n\t\n\tmat_f_m :\n\t The self matrix\n\t*/\n\t\n\treturn this.mat_f_m;\n \n }",
"public int[][] getMazeMatrix(){ return maze;}",
"public Matrix getValue();",
"public org.apache.spark.mllib.linalg.distributed.BlockMatrix cache () { throw new RuntimeException(); }",
"int getSize(){\n return this.matrixSize;\n }",
"public int[][] MatrizPesos(){\n return this.mat;\n }",
"public Matrix getMatrix() {\n Matrix matrix2 = new Matrix();\n matrix2.set(this.matrix);\n return matrix2;\n }",
"public ArrayList<double[]> getMatrix() {\n return matrix;\n }",
"public byte[][][] getBlockDatas() {\n \t\treturn this.blockDatas;\n \t}",
"public mat4 getMatrix() {\n return worldMatrix;\n }",
"public double[][] getArrayReference(){\r\n \treturn this.matrix;\r\n \t}",
"public BlockFor2048[][] getBoard() {\n\t\treturn this.myBoard;\n\t}",
"private Object get( int r, int c ) {\n\treturn matrix[r][c];\n }",
"public Block[][][] getCubes(){ return cubes; }",
"public double[][] getArrayPointer(){\r\n \treturn this.matrix;\r\n \t}",
"public E[][] getMatrix() {\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tE[][] matrix = (E[][]) new Object[mColumnCount][mRowCount];\r\n\t\tfor(int i=0; i<mColumnCount; i++)\r\n\t\t\tfor(int j=0; j<mRowCount; j++)\r\n\t\t\t\tmatrix[i][j] = getFromArray(i, j);\r\n\t\treturn matrix;\r\n\t}",
"public MatricesPN getMatriz() {\n\t\treturn this.matriz;\n\t}",
"public int[][] getBoardFields () {\n\t\tif (readBlock) {\n\t\t\treturn buffer;\n\t\t}\n\t\telse {\n\t\t\tbuffer=fieldsArrayState;\n\t\t\treturn fieldsArrayState;\n\t\t}\n\t}",
"protected Block getBlock() {\r\n return this.block;\r\n }",
"public double[][] getData() {\n\t\treturn mat_;\n\t}",
"@Override\n public byte[] getMatrix() {\n return luminances;\n }",
"public char[][] getMatriz() {\r\n\t\treturn matriz;\r\n\t}",
"private Matrix33d getMatrix() {\n final Matrix33d m = new Matrix33d();\n m.setMatrixColumn(new Vector3d(V1), 0);\n m.setMatrixColumn(new Vector3d(V2), 1);\n m.setMatrixColumn(new Vector3d(V3), 2);\n return m;\n }",
"public int[][] getIntBlock(){\n\t\tint[][] intBlock = new int[8][8];\n\t\tint ones = 0xffffffff;\n\t\tint zeros = 0x00000000;\n\t\tint bitmask = 1 << bit;\n\t\tswitch(channel){\n\t\t\tcase RED:\n\t\t\t\tbitmask = bitmask << 16;\n\t\t\t\tbreak;\n\t\t\tcase GREEN:\n\t\t\t\tbitmask = bitmask << 8;\n\t\t\t\tbreak;\n\t\t\tcase BLUE:\n\t\t\t\tbitmask = bitmask << 0;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbitmask = bitmask << 0;\n\t\t\t\tbreak;\n\t\t}\n\n\t\t//TODO verify this is good\n\t\tfor(int i = 0; i < 8; i++){\n\t\t\tfor(int j = 0; j < 8; j++){\n\t\t\t\tif((block[i] >> j) % 2 == 0){\n\t\t\t\t\tintBlock[i][j] = bitmask & zeros;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tintBlock[i][j] = bitmask & ones;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn intBlock;\n\t}",
"public com.yangtian.matrix.Matrix getC() {\n return c_ == null ? com.yangtian.matrix.Matrix.getDefaultInstance() : c_;\n }",
"public int getRows() {\n return this.matrix.length;\n }",
"public int[][] getMatriceValeurs()\n {\n return matriceValeurs;\n }",
"public BlockMatrix (org.apache.spark.rdd.RDD<scala.Tuple2<scala.Tuple2<java.lang.Object, java.lang.Object>, org.apache.spark.mllib.linalg.Matrix>> blocks, int rowsPerBlock, int colsPerBlock) { throw new RuntimeException(); }",
"public Map<Long, Block> getBlocks() {\n\t\treturn this.blocks;\n\t}",
"public Box[][] getGrid() {\n return this.grid;\n }",
"public Matrix basis() {\r\n\t\treturn new Matrix(LeapJNI.Hand_basis(this.swigCPtr, this), true);\r\n\t}",
"public Matrix getGraphMatrix(){\n\t\treturn graphMatrix;\n\t}",
"public int[][] getBlock(int b){\n\t\tint[][] block = new int[size][size];\n\t\tfor (int i = 0; i < size; i++){\n\t\t\tfor (int j = 0; j < size; j++){\n\t\t\t\tblock[i][j] = numbers[i+size*(b/size)]\n\t\t\t\t\t\t [j+size*(b%size)];\n\t\t\t}\n\t\t}\n\t\treturn block;\n\t}",
"public int get(int x, int y){\n return matriz[x][y];\n }",
"LocalMaterialData getSurfaceBlock();",
"float[] getViewMatrix();",
"public int getClumns() {\n return this.matrix[0].length;\n }",
"public int getBlock(){\n return this.position.getCurrentBlock();\n }",
"public Block[] getBlocks() {\n\t\treturn blocks;\n\t}",
"public final int[][] getPrimitiveMatrix() {\r\n return primitiveMatrix;\r\n }",
"public EJCoreBlockProperties getMappedBlock()\n {\n return _mappedBlock;\n }",
"public int dimension(){\n return blocks.length;\n }",
"public int getMatrix(int i, int j) {\n\t\treturn matrix[i][j];\r\n\t}",
"public int[][] getMatriuSolucio() {\n\t\treturn null;\n\t}",
"public Block getBlock()\n\t{\n\t\treturn this.block;\n\t}",
"public int[][] getGrid()\n {\n return grid;\n }",
"public Block getBlock() {\n\t\treturn this.block;\n\t}",
"public float[] get_mbr() {\r\n // fuer Punktdaten trivial: untere_grenze == obere_grenze\r\n /*float[] f = new float[2 * this.dimension];\r\n for (int i = 0; i < this.dimension; i++)\r\n f[2*i] = f[2*i+1] = this.data[i];\r\n return f;*/\r\n\r\n float[] f = new float[2 * this.dimension];\r\n System.arraycopy(data, 0, f, 0, 2 * dimension);\r\n return f;\r\n }",
"public double[][] getM_grid() {\n return m_grid;\n }",
"public int[][] getRawGrid()\n\t{\n\t\treturn grid;\n\t}",
"public int getBlockID()\r\n/* 57: */ {\r\n/* 58: 46 */ return RedPowerMachine.blockFrame.cm;\r\n/* 59: */ }",
"public int[][] getworld(){\n return world;\n }",
"public double magnetization(){\n double total = 0;\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < m; j++) {\n total+=lattice[i][j];\n }\n }\n \n return total;\n }",
"private double[][] getEnergyMatrix() {\n double[][] energi = new double[height()][width()];\n for (int i = 0; i < height(); i++) {\n for (int j = 0; j < width(); j++) {\n energi[i][j] = energy(j, i);\n }\n }\n return energi;\n }",
"int getBlockNumber();",
"int getBlockNumber();",
"public Square[][] getGrid() {\n\t\treturn this.grid;\n\t}",
"private void\ngetMatrix( SoNode node)\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoPath xfPath; // ptr\n\n // Construct a path from the root down to this node. Use the given\n // path if it's the same\n if (node == null || node == SoFullPath.cast(path).getTail())\n xfPath = path;\n\n else {\n int index = getNodeIndex(node);\n xfPath = path.copy(0, index + 1);\n xfPath.ref();\n }\n\n // Create an action instance if necessary, then apply it to the path\n if (matrixAction == null)\n matrixAction = new SoGetMatrixAction(vpRegion);\n matrixAction.apply(xfPath);\n\n if (xfPath != path)\n xfPath.unref();\n}",
"public DistanceMatrix getDistanceMatrix() {\n\t\tsynchronized(this) {\n\t\t\treturn distanceMatrix;\n\t\t}\n\t}",
"public short getBlock(final int aX, final int aY)\r\n\t{\r\n\t\treturn mBlocks[aX][aY];\r\n\t}",
"public Block getBlock(int index){\n\t\treturn ds[index];\n\t}",
"public int[][] get() {\r\n return gameBoard;\r\n }",
"@JsonGetter(\"blockCellular\")\r\n public boolean getBlockCellular ( ) { \r\n return this.blockCellular;\r\n }",
"public BigInteger get(int row, int column) {\n return inner[row][column];\n }",
"public Block getBlock()\n {\n return block;\n }",
"public boolean getMatrixCheck(){\r\n \treturn this.matrixCheck;\r\n \t}",
"@Nonnull\n @ReturnsMutableCopy\n public Matrix getL ()\n {\n final Matrix aNewMatrix = new Matrix (m_nRows, m_nCols);\n final double [] [] aNewArray = aNewMatrix.internalGetArray ();\n for (int nRow = 0; nRow < m_nRows; nRow++)\n {\n final double [] aSrcRow = m_aLU[nRow];\n final double [] aDstRow = aNewArray[nRow];\n for (int nCol = 0; nCol < m_nCols; nCol++)\n if (nRow > nCol)\n aDstRow[nCol] = aSrcRow[nCol];\n else\n if (nRow == nCol)\n aDstRow[nCol] = 1.0;\n else\n aDstRow[nCol] = 0.0;\n }\n return aNewMatrix;\n }",
"public ArrayList<Block> getBlocks() {\r\n return blocks;\r\n }",
"public int[][][] getMaze() {\r\n\t\treturn maze;\r\n\t}",
"abstract public Matrix4fc getViewMatrix();",
"protected int[][] getBoard() {\n\t// EDIT: usar directamente .clone() referencia al mismo objeto, para\n\t// reutilizar el método en las rotaciones copiamos la matriz de forma\n\t// que no se referencien entre sí.\n\treturn deepCopy(board);\n }",
"public BitSet[] getAdjacencyMatrix() {\n\t\treturn adjacencyMatrix;\n\t}",
"public BigDecimal getBlockHeight() {\n return blockHeight;\n }",
"public int getM () {\n\t\treturn M;\n\t}",
"Matrix get(final Serializable id);",
"public interface IMatrix {\n\n /**\n * Set coefficient\n * @param y row (0..height-1)\n * @param x column (0..width-1)\n * @param v value\n */\n public void set(int y, int x, double v);\n /**\n * Get coefficient from matrix, by returning coeff[y*width + x].\n * @param y row (0..height-1)\n * @param x column (0..width-1)\n * @return coefficient\n */\n public double get(int y, int x);\n\n /**\n * Clear matrix to zeros\n */\n public void clear();\n\n /**\n * Get array of coefficients.\n * They are indexed by [y*height + x].\n * Not all classes support this method.\n * @return array of coefficients\n */\n public double[] coeff();\n\n /**\n * Get width of matrix\n * @return width\n */\n public int width();\n\n /**\n * Get height of matrix\n * @return height\n */\n public int height();\n}",
"float[] getModelMatrix();",
"public double[] getBox() { return box; }",
"float[] getMVPMatrix();",
"public Matrix copy(){\r\n \t if(this==null){\r\n \t return null;\r\n \t }\r\n \t else{\r\n \t int nr = this.nrow;\r\n \t int nc = this.ncol;\r\n \t Matrix b = new Matrix(nr,nc);\r\n \t double[][] barray = b.getArrayReference();\r\n \t b.nrow = nr;\r\n \t b.ncol = nc;\r\n \t for(int i=0; i<nr; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tbarray[i][j]=this.matrix[i][j];\r\n \t\t}\r\n \t }\r\n \t for(int i=0; i<nr; i++)b.index[i] = this.index[i];\r\n \t return b;\r\n \t}\r\n \t}",
"public Integer[][] getBoard() {\n\t\treturn _board;\n\t}",
"public Cell[][] getGrid() {\n return grid;\n }",
"public Matrix getBasis() {\n\t\treturn eigenvectors;\n\t}",
"public float[] getViewMatrix() {\n\t\treturn viewMatrix;\n\t}",
"public int[][] getCollisionMatrix(){\n\t\treturn collisionMatrix;\n\t}",
"public BlockType[] getBlocks() {\n return blocks;\n }",
"public int[][] getMatriceAdjacence()\n {\n return matriceAdjacence;\n }",
"public int[][] getState(){\r\n return this.state;\r\n }",
"public Room[][] getMaze ( )\r\n\t{\r\n\t\treturn maze;\r\n\t}",
"public double[][] getSubbandLL(){\r\n return subbandLL;\r\n }",
"public Matrix getPlaceMatrix() {\n return placeMatrix;\n }",
"public Matrix asMatrix() {\n Matrix result;\n try {\n result = new Matrix(COMPONENTS, 1);\n asMatrix(result);\n } catch (final WrongSizeException ignore) {\n // never happens\n result = null;\n }\n return result;\n }"
] | [
"0.71438813",
"0.6872498",
"0.68469584",
"0.68194175",
"0.6760946",
"0.67339915",
"0.6661414",
"0.65422285",
"0.65325135",
"0.6510901",
"0.6486403",
"0.6484227",
"0.643984",
"0.6404705",
"0.6388338",
"0.63773584",
"0.6310585",
"0.63065827",
"0.62972707",
"0.62886155",
"0.62410164",
"0.61878484",
"0.61867934",
"0.61861783",
"0.61804736",
"0.6169327",
"0.61618936",
"0.6122245",
"0.6113631",
"0.6094026",
"0.6063147",
"0.5979021",
"0.597752",
"0.59557307",
"0.59540457",
"0.5944817",
"0.59261155",
"0.59186995",
"0.59139436",
"0.5899478",
"0.58872414",
"0.5882164",
"0.5881825",
"0.58764756",
"0.58601",
"0.5853478",
"0.5851657",
"0.58459955",
"0.583767",
"0.5832357",
"0.5807705",
"0.58062345",
"0.57756484",
"0.5773875",
"0.57704896",
"0.57694596",
"0.5762677",
"0.57515013",
"0.5745268",
"0.57377356",
"0.5731895",
"0.5727158",
"0.57256377",
"0.57256377",
"0.572099",
"0.5717694",
"0.5690019",
"0.5683298",
"0.56788033",
"0.5675456",
"0.56673414",
"0.56635654",
"0.5657035",
"0.56558704",
"0.5651615",
"0.5648676",
"0.5621758",
"0.5614056",
"0.56084746",
"0.55983037",
"0.55897886",
"0.5585655",
"0.5574765",
"0.55669415",
"0.5566353",
"0.5558047",
"0.5548639",
"0.5547296",
"0.5545997",
"0.5545726",
"0.5545091",
"0.55391514",
"0.55337083",
"0.5532132",
"0.5531786",
"0.5526981",
"0.55259454",
"0.5523932",
"0.5511011",
"0.5506051"
] | 0.7797521 | 0 |
getter for the current piece | public TetrisPiece getCurrentPiece() {
return currentPiece;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getPiece() {\n return piece;\n }",
"public Piece getPiece()\r\n\t{\r\n\t\treturn piece;\r\n\t}",
"public int getPiece()\n\t{\n\t\treturn this.piece;\n\t}",
"public Piece getPiece() {\n\treturn piece;\n }",
"public Piece getPiece() {\n return this.piece;\n }",
"public Piece getPiece() {\n\t\treturn _piece;\n\t}",
"public String getPiece(){\n\t\tif(piece!=null){\n\t\t\treturn piece.getPiece();\n\t\t}else{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t}",
"public Piece getPieceInTile() {\n \r\n return pieceInTile;\r\n }",
"public ChessPiece getPiece(){return piece;}",
"public PieceIF getPiece();",
"public Piece getCurrPlayer() {\n return this.currPlayer;\n }",
"final protected Piece getLocalPiece(){\n\t\treturn this.LOCAL_PIECE;\n\t}",
"public String getPieceName() {\n return pieceName;\n }",
"@Override\n public E getCurrent() {\n if (isCurrent()) { return cursor.getData(); }\n else { throw new IllegalStateException(\"There is no current element.\"); }\n }",
"public K get()\n {\n\treturn current.data(); \n }",
"public int getPlayersPiece() {\n return playersPiece;\n }",
"public double getCurrent( )\r\n {\r\n\t double element = 0; \r\n\t if(isCurrent() != true){// Student will replace this return statement with their own code:\r\n\t throw new IllegalStateException (\"no current element, getCurrent may not be called\");\r\n\t }\r\n\t else\r\n\t \t element = element + (cursor.getData()) ;\r\n\t return element; \r\n }",
"public Pawn getPawn() {\n return (Pawn) this.piece;\n }",
"public Piece getOccupier(){\n return this.occupier;\n }",
"public float getPieces(){\r\n return pieces; \r\n }",
"public Piece getPiece(int i) { /* ... code ... */ }",
"public int valeurPiece() {\n return 3;\n }",
"public Tile getCurrent(){\n\t\tif(generated)\n\t\t\treturn deck.get(curr);\n\t\tthrow new RuntimeException(\"Deck must be generated before using it\");\n\t}",
"public de.engehausen.crazygolf.model.Element getCurrent() {\r\n\t\treturn current;\r\n\t}",
"Piece[][] getPieces() {\n return _pieces;\n }",
"public int getPiece(int row, int col)\n\t{\n\t\treturn pieces[row][col];\n\t}",
"public Tile getTile(){\n\t\treturn currentTile;\n\t}",
"public java.lang.String getPart()\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 return null;\n }\n return target.getStringValue();\n }\n }",
"public Piece firstSelected()\n {\n return firstSelected;\n }",
"public PieceColor getColor(){\r\n\t\treturn this.color;\r\n\t}",
"public Player getCurrent(){\n\t\tPlayer p;\n\t\ttry{\n\t\t\tp = this.players.get(this.currElem);\n\t\t\t\n\t\t} catch(IndexOutOfBoundsException e){\n\t\t\tSystem.out.println(\"There isn't any players.\");\n\t\t\tp = null;\n\t\t}\n\t\t\t\n\t\treturn p; \n\t}",
"private synchronized SelfPoint getSelf() {\n\t\t//\n\t\tif (index >= selfSize) {\n\t\t\treturn selfPoints.get(index - 1);\n\t\t}\n\n\t\tSelfPoint sp = selfPoints.get(index);\n\t\t++index;\n\t\treturn sp;\n\t}",
"public String getOwningPart() {\n return this.owningPart;\n }",
"public PlayerPiece getPlayerPiece(int playerNum) {\n return playerPieces[playerNum];\n }",
"Piece winner() {\r\n return _winner;\r\n }",
"public String getCurrent()\n {\n return current.toString();\n }",
"public String getPieceColor(){\n\t\t\n\t\tif(xPosition>=ColumnNumber.firstColumn.ordinal() && xPosition<=ColumnNumber.eightColumn.ordinal() && xPosition>=RowNumber.firstRow.ordinal() && xPosition<=RowNumber.eightRow.ordinal()){\n\t\t\t\n\t\t\tif(isIcon){\n\t\t\t\treturn piece.getColor();\n\t\t\t}else{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}else{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t\n\t}",
"public MorphCell current()\n {\n return this.morphs.get(this.index);\n }",
"@Override\n public String getPieceName() {\n return NAME;\n }",
"public int getPoint(){\n return point;\n }",
"Piece turn() {\r\n return _turn;\r\n }",
"Piece getPieceAt(int col, int row);",
"Piece turn() {\n return _turn;\n }",
"public OthelloPiece[][] getPieces() {\n \t return m_Pieces;\n \t}",
"public String getCurrentContent() {\n return this.currentUnit.chStored;\n }",
"ObjectProperty<Piece> getPieceProperty();",
"public ImPoint getCurrentLoc() {\n\treturn curPoint; // REMOVE this line -- dummy code to get it to compile\n }",
"public int currentFloor(){\n return currentFloor;\n }",
"public Piece getPiece(int num)\n {\n\treturn unused[num];\n }",
"public T getCurrent(){\r\n if(curr != null){\r\n return curr.data;\r\n }\r\n return null;\r\n }",
"public int[] getCurrentPieceGridPosition() {\n\t\treturn currentPieceGridPosition; \n\t}",
"PieceColor whoseMove() {\n return _whoseMove;\n }",
"protected AbstractShapeData getCurrentData()\n {\n return this.currentData;\n }",
"public Coordinate getCurrent( )\n\t{\n\t\treturn currentLocation;\n\t}",
"public ArrayList<Piece> getPieces() {\n\treturn pieces;\n }",
"public Item current() {\n return curr;\n }",
"public String valueInCurrentSlot() {\n return this.innerProperties() == null ? null : this.innerProperties().valueInCurrentSlot();\n }",
"Square kingPosition() {\r\n return king;\r\n }",
"public PieceType getPieceType() {\r\n\t\treturn piece;\r\n\t}",
"public Piece.color getColor() { return color; }",
"public Integer getCurrent() {\n return this.current;\n }",
"public ArrayList<String> getPieces() {\n\treturn pieces;\n }",
"public E getCurrent()\n {\n if (size != 0)\n {\n return current.data();\n }\n else\n {\n throw new NoSuchElementException(\"The list is empty\");\n }\n }",
"@Override\r\n public String toString() {\r\n return String.valueOf(this.m_current);\r\n }",
"private int getCurrentItemOfWrapper() {\n return super.getCurrentItem();\n }",
"public int getPieceCount () {\n return m_PieceCount;\n\t}",
"public String getThePanel() {\r\n\t\treturn secretIt.currentS().puzzle();\r\n\t}",
"public Chunk getChunk() {\n/* 190 */ Chunk currentChunk = this.entity.getCurrentChunk();\n/* 191 */ return (currentChunk != null) ? currentChunk.bukkitChunk : getLocation().getChunk();\n/* */ }",
"public boolean isHere(){ return this.piece.isAffected();}",
"public List<Piece> getPieces() {\n\t\treturn this.pieces;\n\t}",
"public Cell get() {\n return ptSearcher.current();\n }",
"public int getArmorPoint ()\r\n {\r\n return armorPoint;\r\n }",
"@Override\r\n\t/**\r\n\t * getCurrentData() returns the data of the current node in the tree\r\n\t * @return String data of the current node or null if the current node is null\r\n\t */\r\n\tpublic String getCurrentData() {\n\t\treturn current.getData();\r\n\t}",
"public Point getPoint() {\n return this.mPoint;\n }",
"public Tile getSample() {\n return (Tile) super.getSample();\n }",
"public Point getPoint()\n\t{\n\t\treturn point;\n\t}",
"Color getCurrentPenColour() {\n return this.currentPenColour;\n }",
"public String toString() {\n\t\treturn \"Piece \" + num + \" - x: \" + x + \" y: \" + y;\n\t}",
"TileItem getCurrentTile();",
"public Pile getDrawPile(){\n return piles.getDrawPile();\n }",
"Piece get(String sq) {\n return get(col(sq), row(sq));\n }",
"Piece get(String sq) {\n return get(col(sq), row(sq));\n }",
"public double getCurrent( )\n {\n // Implemented by student.\n }",
"Piece get(int c, int r) {\n return this.boardArr[r - 1][c - 1];\n }",
"public int getX(){return this.x;}",
"public ImPoint getCurrentLoc() {\n \treturn this.startLoc;\n }",
"public String getLine() {\r\n\t\treturn currentString;\r\n\t}",
"public int getPieceLength() {\n\treturn pieceLength;\n }",
"public Board getCurrentBoard() {\n return boardIterator.board;\n }",
"Side getSide();",
"public HashMap<Integer, Piece> getPieces() {\n return pieces;\n }",
"public Point getPoint() {\n return point;\n }",
"public Pair<Byte,Short> getCurrentWeapon(){\n return this.currentWeapon;\n }",
"@Override\n public String toString() {\n return String.valueOf(playerPiece);\n }",
"final Piece get(int col, int row) {\r\n return board[col][row];\r\n }",
"@Override\n\tpublic Position getPosition() \n\t{\n\t\treturn currentPosition;\n\t}",
"@Override\r\n\tpublic String current() {\n\r\n\t\tString cur;\r\n\t\tcur = p.current();\r\nSystem.out.println(cur+\"000\");\r\n\t\tif (cur != null) {\r\n\t\t\tthisCurrent = true;\r\n\t\t\tinput(cur);\r\n\t\t}\r\n\t\treturn cur;\r\n\t}",
"public Pair get()\n {\n return this.MapItr.element;\n }",
"public Integer getPoint() {\n return point;\n }",
"public FluidCuboid getSideStill() {\n\t\t\treturn this.fluids.get(ChannelModelPart.SIDE_STILL);\n\t\t}"
] | [
"0.7822624",
"0.77230763",
"0.7650519",
"0.76294124",
"0.74916047",
"0.74092704",
"0.7329832",
"0.72029",
"0.7188531",
"0.71272546",
"0.6940858",
"0.67544234",
"0.6724535",
"0.65638226",
"0.64601743",
"0.6442294",
"0.64016944",
"0.64001006",
"0.63891786",
"0.63466614",
"0.62946844",
"0.6268239",
"0.6267969",
"0.6260186",
"0.62381166",
"0.6225203",
"0.62201005",
"0.6213669",
"0.6211573",
"0.62099993",
"0.62069607",
"0.6200469",
"0.61838603",
"0.6175926",
"0.61747026",
"0.61602795",
"0.6147325",
"0.6146567",
"0.6136558",
"0.61346644",
"0.613461",
"0.61043656",
"0.6096878",
"0.60945415",
"0.6092965",
"0.60851604",
"0.6084203",
"0.6082446",
"0.60806525",
"0.6074042",
"0.60563433",
"0.6050715",
"0.6050651",
"0.604442",
"0.6043575",
"0.6034898",
"0.6014229",
"0.6013162",
"0.6010609",
"0.6007206",
"0.5999849",
"0.59842646",
"0.5980962",
"0.5979331",
"0.5959113",
"0.5950683",
"0.59495896",
"0.59481233",
"0.59464186",
"0.59358895",
"0.5926362",
"0.59263295",
"0.5925154",
"0.59178114",
"0.59177214",
"0.59017",
"0.5896878",
"0.5895425",
"0.58869123",
"0.5882017",
"0.5881592",
"0.5881592",
"0.58805454",
"0.58789843",
"0.5867716",
"0.5860621",
"0.5857234",
"0.5855202",
"0.5854923",
"0.58547926",
"0.5851139",
"0.584213",
"0.5840189",
"0.58398384",
"0.5831223",
"0.5827695",
"0.58275056",
"0.5823065",
"0.5818913",
"0.5804869"
] | 0.7674723 | 2 |
getter for the current piece grid position | public int[] getCurrentPieceGridPosition() {
return currentPieceGridPosition;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public GridCoord getCoord() {\n return coord;\n }",
"public GridCoord getCoord() {\n\t\treturn this.coord;\n\t}",
"public Point getGridCoordinates(){\n try {\n return (new Point(x / MapManager.getMapTileWidth(), y / MapManager.getMapTileHeight()));\n } catch (Exception e){\n System.out.print(\"Error while getting grid coordinates.\");\n throw e;\n }\n }",
"private Point2D getBoardPosition() {\n double size = getCellSize();\n double x = canvas.getWidth() / 2 - board.getWidth() * size / 2;\n double y = canvas.getHeight() / 2 - board.getHeight() * size / 2;\n\n return new Point2D(x, y);\n }",
"public int getGridX() {\r\n\t\treturn gridX;\r\n\t}",
"public Grid getEntrance(){\n\t\treturn getpos((byte)2);\n\t}",
"public int getX() { return position.x; }",
"Square getCurrentPosition();",
"public int getPiece()\n\t{\n\t\treturn this.piece;\n\t}",
"public int getPosition(){\n\t\treturn this.cell;\n\t}",
"public int getBoardPosition() {\n return boardPosition;\n }",
"Tile getPosition();",
"public int getX(){\n return this.position[0];\n }",
"public Move getGridElement (int row, int column)\n {\n return mGrid[row][column];\n }",
"public int getPiece() {\n return piece;\n }",
"public double getPositionX() {\n\t\treturn this.tilePositionX;\n\t}",
"public int getX() {\n return positionX;\n }",
"@Override\n public int getTileGridXOffset() {\n return this.tileGridXOffset;\n }",
"public Cell getPosition() {\n return position;\n }",
"public Coordinate getPosition() {\n return cPosition;\n }",
"public final BlockPos getPos() {\n\t\treturn baseTile.getPos();\n\t}",
"public int getX() {\r\n return xpos;\r\n }",
"public Position getPlayerPiecePosition(int playerNum) {\n return playerPiecePositions[playerNum];\n }",
"public int getX() { return loc.x; }",
"public static Dimension getPos()\n {\n Dimension pos = new Dimension( cX, cY );\n next();\n return pos;\n }",
"Square kingPosition() {\r\n return king;\r\n }",
"public int getX() {\n return pos_x;\n }",
"public int getBoardLocation() {return boardLocation;}",
"public int getX(){ return xPosition; }",
"private double getPosX() {\n\t\treturn this.posX.get();\n\t}",
"public int getX() {\n return this.coordinate.x;\n }",
"public double getX() {\n return position.getX();\n }",
"public int getXPos();",
"public Object getCurrentCellX() {\n\t\treturn x;\n\t}",
"public double smilePos(){\r\n\r\n\t\treturn smile.getY();\r\n\r\n\t}",
"public int getX() {\n return posX;\n }",
"public static int getGridPosition(int x, int y, int width){\n\t\treturn (y*width)+x;\n\t}",
"public Coordinate getPosition();",
"public TetrisPiece getCurrentPiece() {\n\t\treturn currentPiece;\n\t}",
"public GeoPoint position(){\n return position;\n }",
"public Pos getPos()\r\n\t{\r\n\t\treturn position;\r\n\t}",
"public PixelPos getPixelPos() {\n\t\treturn pixelPos;\n\t}",
"public BigDecimal getActualPosition() {\n return actualPosition;\n }",
"public PointF getPosition()\n {\n return getMazeSprite().getPosition();\n }",
"public int getX()\r\n {\r\n return xLoc;\r\n }",
"public int get_X_Coordinate()\n {\n return currentBallX;\n }",
"public static int getCoords()\n\t{\n\t\treturn moveCoords;\n\t}",
"public int getLocX() {\n return locX;\n }",
"public Point getPosition() {\n return this.position;\n }",
"public int getLocX() {\n return locX;\n }",
"public Point getPosition(){\n\t\treturn position;\n\t}",
"public int getXCoordinate ()\n {\n return xCoordinate;\n }",
"public float getPos() {\n return (spos - xpos) / (swidth - sheight);\n }",
"public int getPosition(int player, int piece) {\n return players.get(player)\n .getPieces()\n .get(piece)\n .getPosition();\n }",
"public double getXPos() {\n\t\treturn this.position[0];\n\t}",
"public Grid getGrid()\n {\n \treturn puzzle;\n }",
"public int getX()\r\n {\r\n return xCoord;\r\n }",
"public MowerPosition getPosition() {\n return position;\n }",
"public Point getPosition() {\n return position;\n }",
"public Point getPos() {\n return this.pos;\n }",
"public PVector getPos() {\n\t\treturn pos;\n\t}",
"@Override\n public double getPosX() {\n return this.pos[0];\n }",
"public Point getPosition()\n\t{\n\t\treturn pos;\n\t}",
"public PVector getPosition() { return position; }",
"int getX() {\n return xPos;\n }",
"public SubCell position() {\r\n return position;\r\n }",
"public int getXcoord(){\n\t\treturn this.coordinates[0];\n\t}",
"public Position getCurrentPosion() {\n Position position = new Position();\n position.x = getLeft() + getWidth() / 2;\n position.y = getTop() + getHeight() / 2;\n return position;\n }",
"public ChunkCoordinates getPlayerCoordinates()\n {\n return new ChunkCoordinates(0, 0, 0);\n }",
"double getX() { return pos[0]; }",
"public DoubleSolenoid.Value getPosition() {\n return m_ballholder.get();\n }",
"public int getX() {\n\treturn baseXCoord;\n}",
"public int getCurrentPos() {\n return currentPos;\n }",
"public final int getX()\n\t{\n\t\treturn pos.x;\n\t}",
"public int getX() {\n return xCoord;\n }",
"public double getUserFriendlyXPos(){\n return xPos - myGrid.getWidth()/ HALF;\n }",
"public GridLocation getLocation();",
"@Override\n\tpublic double getXLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn x+side;\n\t}",
"public GeoPoint getPosition() {\n\t\treturn position;\n\t}",
"public Point getLocation ( )\r\n\t{\r\n\t\treturn new Point ( currentCol, currentRow );\r\n\t}",
"String getPosX();",
"public int getXPosition()\n {\n return xPosition;\n }",
"public int getXPosition()\n {\n return xPosition;\n }",
"public Position getPos() {\n\t\treturn coords;\n\t}",
"public float getX() {\n return pos.x;\n }",
"double getXPosition();",
"public Point getLocalPosition() {\n return getLocalLowerLeft();\n }",
"public int PositionGet();",
"public int getPos();",
"public int getPos();",
"public double getXPos(){\n return xPos;\n }",
"public PVector getPosition(){\n\t\treturn position;\n\t}",
"public Point getLocation() {\n return pos;\n }",
"public int getX() {\r\n\t\treturn xcoord;\r\n\t}",
"@Override\n\tpublic Position getPosition() {\n\t\treturn this.posn;\n\t}",
"public Grid grid() { return grid; }",
"public int getXPoint() {\r\n return this.x;\r\n }",
"public int getGridY() {\r\n\t\treturn gridY;\r\n\t}",
"public double getCardPosX(){\r\n return getX();\r\n }",
"BlockPos getPosTarget() {\n BlockPosDim loc = LocationGpsCard.getPosition(inventory.getStackInSlot(0));\n if (loc != null && loc.getPos() != null) {\n return loc.getPos();\n }\n return this.getBlockPos();\n }"
] | [
"0.7607658",
"0.73848516",
"0.7254834",
"0.7198394",
"0.7096821",
"0.6980371",
"0.6974328",
"0.6938334",
"0.688062",
"0.6862264",
"0.6850397",
"0.6812854",
"0.68100756",
"0.6802343",
"0.6757499",
"0.67501",
"0.67468023",
"0.6733264",
"0.6716415",
"0.6710571",
"0.6707463",
"0.67038",
"0.6698998",
"0.66942537",
"0.66936505",
"0.6658669",
"0.66487706",
"0.66484225",
"0.66325426",
"0.6621047",
"0.66148996",
"0.66132075",
"0.6610545",
"0.66095674",
"0.66066873",
"0.6605089",
"0.6592104",
"0.6588375",
"0.65710896",
"0.6539319",
"0.6534389",
"0.65326303",
"0.65300626",
"0.652934",
"0.6526119",
"0.65207267",
"0.6518777",
"0.6515327",
"0.651075",
"0.65049744",
"0.6504722",
"0.6501419",
"0.64915544",
"0.6490517",
"0.64847326",
"0.6483901",
"0.6481725",
"0.64811057",
"0.6480588",
"0.647262",
"0.64687294",
"0.6467718",
"0.64636314",
"0.64629734",
"0.6458703",
"0.64551073",
"0.6439854",
"0.643819",
"0.6436511",
"0.6436287",
"0.642178",
"0.6408716",
"0.64034617",
"0.6398408",
"0.639804",
"0.6396884",
"0.6393277",
"0.6392673",
"0.6388725",
"0.6385981",
"0.6381417",
"0.6375643",
"0.6375643",
"0.6373176",
"0.63711977",
"0.6370688",
"0.6368632",
"0.6368152",
"0.6367645",
"0.6367645",
"0.63635796",
"0.63614374",
"0.63588446",
"0.6357984",
"0.63533336",
"0.6353311",
"0.634826",
"0.6346649",
"0.63461447",
"0.63439906"
] | 0.83184135 | 0 |
getter for the number of columns in the board | public int getNumCols() {
return NUM_COLS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract int getNumColumns();",
"public int getNcol(){\r\n \treturn this.ncol;\r\n \t}",
"public int getBoardWidth(){\n return Cols;\n }",
"public abstract int numColumns();",
"int getColumnsCount();",
"int getColumnsCount();",
"int getBoardSize() {\n return row * column;\n }",
"int getColumns();",
"int getColumns();",
"public int numberOfColumns()\n {\n // TODO: get the number of columns\n return matrix[0].length;\n }",
"public Integer getN_COLS() {\n return n_COLS;\n }",
"public int getNumColumns() {\n\t\treturn numColumns; \n\t}",
"int colCount();",
"public int getNumberOfColumns(){\n\t\treturn number_columns;\n\t}",
"public int getnCols() {\n return nCols;\n }",
"public int getNumColumns() {\n\t\treturn numColumns;\n\t}",
"public int getBoardSize(){\n\t\treturn grids.getRows();\n\t}",
"public int numCols() {\n\t /*return the number of columns in the field*/\n return col; \n }",
"public int obtenerNumeroColumnas() {\n\t\treturn matriz.get(0).size();\n\t}",
"public int getWidthOfBoard() {\r\n return board[0].length;\r\n }",
"public int getNumColumns() { return columns.length; }",
"public int columns( )\n {\n int col = 0;\n\n if( table != null )\n {\n col = table[0].length;\n } //end\n return (col);\n }",
"public int getNumColumns() {\n return mNumColumns;\n }",
"public int getNumCols() {\n return numCols;\n }",
"public int getNumCols() {\n return numCols;\n }",
"public int getNumberOfCols() {\n return this.numberOfCols;\n }",
"public int getNumCols() { return numCols; }",
"public int getNumCols () {\n\t\treturn numcols_;\n\t}",
"public static int colCount() {\n\treturn sheet.getRow(0).getLastCellNum();\n\t}",
"public abstract int getNumberOfColumnsInCurrentRow();",
"int getColumnCount();",
"int getColumnCount();",
"public int getBoardLength() {\n return boardLength;\n }",
"public int getCols() {\n\t\treturn myGrid.getCols();\n\t}",
"public int columnCount() {\n\t\treturn n_;\n\t}",
"public int getCols();",
"int totalColumns(){\n return column;\n }",
"public int numberOfColumns() {\n\t\treturn colCount;\n\t}",
"public int getMaxCols() {\r\n\t\treturn boardcell[0].length;\r\n\t}",
"public int getNbColumn()\n\t{\n\t\treturn this.nbColumn;\n\t}",
"public int getClumns() {\n return this.matrix[0].length;\n }",
"public static int getColumns() {\n\t\treturn columns;\n\t}",
"int getCellsCount();",
"public int columns() {\n\treturn columns;\n}",
"public int dimension() // board dimension n\n {\n return dim;\n }",
"private int numberOfColumns() {\n DisplayMetrics displayMetrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n int width = displayMetrics.widthPixels;\n int nColumns = width / imageWidth;\n if (nColumns < 2) return 2; //to keep the grid aspect\n return nColumns;\n }",
"public int getGridColumns() \n { \n return gridColumns; \n }",
"public abstract int getNbMinColumns( );",
"public int getNumCol() {\n\t\treturn dc.size();\n\t}",
"public int getColumnCount();",
"public int getBoardSize() {\n\t\treturn board.length;\n\t}",
"public int getCols() {\n return cols;\n }",
"public int getSize() {\n return board.getSize();\n }",
"public int getColumns()\n {\n return columns;\n }",
"@Override\n public int getNumCols(){ return WIDTH; }",
"public int getCols()\n\t{\n\t\treturn cols;\n\t}",
"public int getLength() {\n\t\treturn boardArray.size();\n\t}",
"public int getColumns() {\n return columns;\n }",
"public int getCols() {\n return cols;\n }",
"public int getHeightOfBoard() {\r\n return board.length;\r\n }",
"private int numCols(){\n return attrTable.getModel().getColumnCount();\n }",
"public int getColumnSize() {\n \t\treturn this.columns;\n \t}",
"public static int size() {\n return cells.size();\n }",
"public int getCols() {\n\treturn cols;\n }",
"public int numCols() {\n return mat.getNumCols();\n }",
"public int getCols() {\n\t\treturn g[0].length;\n\t}",
"public int getColumns() {\n\t\treturn NUM_OF_COLUMNS;\n\t}",
"private int getNIdx() {\n return this.colStartOffset + 7;\n }",
"int getCol();",
"public static int getBoardSize() {\n\t\t\n\t\treturn Board.COLS;\n\t}",
"public int getColumns() {\n return columns;\n }",
"@Override\r\n\tpublic int getColumnsCount() {\r\n\t\tint result = 0;\r\n\t\tITableRow headerRow = this.getHeaderRow();\r\n\t\tif (null != headerRow) {\r\n\t\t\t// It is usually consistent that both the columns of table header and table cell\r\n\t\t\tresult = headerRow.getColumnsCount();\r\n\t\t}\r\n\t\telse if (this.hasBodyRow()) {\r\n\t\t\t// Gets the first line, with the number of columns of the first row as number of columns of the table\r\n\t\t\tITableRow row = this.getBodyRow(0);\r\n\t\t\tresult = row.getColumnsCount();\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"private int calcNumberOfColumns() {\n\t\tint result = 0;\n\t\tif (fields != null) {\n\t\t\tIterator<FieldEditor> e = fields.iterator();\n\t\t\twhile (e.hasNext()) {\n\t\t\t\tFieldEditor pe = e.next();\n\t\t\t\tresult = Math.max(result, pe.getNumberOfControls());\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public int getColumns() {\n return this.columns;\n }",
"public int getNumberOfColumns() {\n\t\tthis.openDataBase();\n\t\tint iColumnCount = 0;\n\t\ttry { \n\t\t\tCursor mcursor = myDataBase.rawQuery(\"Select * from \" + TABLE_POSES, null);\n\t\t iColumnCount = mcursor.getColumnCount();\n\t\t mcursor.close();\n\t\t}\n\t\tcatch (SQLException sqle) {\n\t\t\tLog.d(\"Database Error\", \"Error getting number of columns\");\n\t\t\tLog.d(\"SQL EXception\", sqle.toString());\n\t\t}\n\t\t\n\t\tthis.close();\n return iColumnCount;\n\t}",
"public int dimension() {\n return N; // Return Board instance variable for dimension size\n }",
"public int getColumnNumber() {\n return rows;\n }",
"protected int getBoardSize(){\n\t\treturn boardSize;\n\t}",
"int getBoardSize() {\n return this.boardSize;\n }",
"public static int getColCount(int colNum){\n int colCount = 0;\n try {\n colCount = sheet.getRow(colNum).getPhysicalNumberOfCells();\n System.out.println(\"Number of cols: \" +colCount);\n\n }catch(Exception e){\n System.out.println(e.getMessage());\n System.out.println(e.getCause());\n e.printStackTrace();\n }\n return colCount;\n }",
"public int getColumns() {\n\t\treturn columns;\n\t}",
"public int getColumns() {\n\t\treturn columns;\n\t}",
"public int getColumns() {\n\t\treturn columns;\n\t}",
"public int getNumeroColis() {\r\n\t\treturn numeroColis;\r\n\t}",
"public int getNumXTiles() { \r\n return numCols;\r\n }",
"public int getBoardSize(){\r\n\t\treturn boardSize;\r\n\t}",
"public int getMaxRows() {\r\n\t\treturn boardcell.length;\r\n\t}",
"public int getNumYTiles() { \r\n return numRows;\r\n }",
"public int col() {\r\n return col;\r\n }",
"public int size() {\r\n return cells.size();\r\n }",
"public int getBoardSize() {\n return BOARD_SIZE;\n }",
"@java.lang.Override\n public int getColumnsCount() {\n return columns_.size();\n }",
"public int getColCount() {\n\t\treturn colcount;\n\t}",
"public int getGridColumns(){\n Log.d(LOG_TAG, \"getGridColumns()\");\n /* If the WindowManager is null, then... */\n if (((WindowManager) getSystemService(WINDOW_SERVICE)) == null) {\n Log.e(LOG_TAG, \"Unable to retrieve the WindowManager for accessing the system's window manager.\");\n /* Return the default number of columns. */\n return GRID_COLUMNS_PORTRAIT;\n }\n /* Get the orientation of the device */\n final int rotation = ((WindowManager) getSystemService(WINDOW_SERVICE)).getDefaultDisplay().getOrientation();\n /* Return the number of grid columns depending on the orientation of the device */\n switch (rotation) {\n case Surface.ROTATION_0:\n Log.d(LOG_TAG, \"Orientation Portrait\");\n return GRID_COLUMNS_PORTRAIT;\n case Surface.ROTATION_90:\n Log.d(LOG_TAG, \"Orientation Landscape\");\n return GRID_COLUMNS_LANDSCAPE;\n case Surface.ROTATION_180:\n Log.d(LOG_TAG, \"Orientation Reverse Portrait\");\n return GRID_COLUMNS_PORTRAIT;\n default:\n Log.d(LOG_TAG, \"Orientation Reverse Landscape\");\n return GRID_COLUMNS_LANDSCAPE;\n }\n }",
"int getNumberOfStonesOnBoard();",
"public int getCellsCount() {\n return cells_.size();\n }",
"@Override\n public int getColumnsCount() {\n return columns_.size();\n }",
"private int getWidth() {\r\n if (ix < 0) \r\n throw new NoSuchElementException();\r\n \r\n int result = tileWidth;\r\n if ((getX() == numCols - 1) && (width % tileWidth != 0)) {\r\n // if this is the last column and the width isn't exactly divisible\r\n result = width % tileWidth;\r\n }\r\n \r\n return result;\r\n }",
"protected int getCellCount() {\n return this.cellCountStack.getLast();\n }",
"public int getmCols() {\n return mCols;\n }"
] | [
"0.8132356",
"0.8046831",
"0.7955775",
"0.7915884",
"0.78732836",
"0.78732836",
"0.7790583",
"0.77835846",
"0.77835846",
"0.7750578",
"0.7746703",
"0.7737178",
"0.7712254",
"0.77082247",
"0.7695197",
"0.76841694",
"0.760757",
"0.75794846",
"0.75678796",
"0.754377",
"0.75418377",
"0.75403637",
"0.75393236",
"0.7510724",
"0.7510724",
"0.7507973",
"0.74887896",
"0.7482693",
"0.7479399",
"0.7478413",
"0.7462738",
"0.7462738",
"0.74479395",
"0.7447736",
"0.74329174",
"0.7424976",
"0.74015105",
"0.73915905",
"0.73544556",
"0.7350024",
"0.734731",
"0.728929",
"0.7288316",
"0.72871447",
"0.72726655",
"0.72218215",
"0.7213385",
"0.7207796",
"0.7200338",
"0.7195565",
"0.71830714",
"0.7158089",
"0.7138211",
"0.7136675",
"0.70992357",
"0.708714",
"0.70826846",
"0.705225",
"0.70462686",
"0.70445573",
"0.7040532",
"0.70112973",
"0.7001962",
"0.7001508",
"0.70014584",
"0.69901174",
"0.69878495",
"0.6984315",
"0.6967335",
"0.696167",
"0.6952181",
"0.69501114",
"0.69449705",
"0.69424003",
"0.69330543",
"0.69191825",
"0.68822616",
"0.6879997",
"0.68784255",
"0.68770874",
"0.6867562",
"0.6867562",
"0.6867562",
"0.6867021",
"0.68506074",
"0.6850007",
"0.68398637",
"0.6824453",
"0.6823126",
"0.68184334",
"0.6814237",
"0.6791495",
"0.67904806",
"0.67775005",
"0.6775052",
"0.6755394",
"0.6751104",
"0.67503005",
"0.67501366",
"0.6749288"
] | 0.7423064 | 36 |
getter for the number of rows in the board | public int getNumRows() {
return NUM_ROWS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumRows() { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Getter for the number of rows\n\t\treturn numRows; \n\t}",
"public int getNumRows() {\n return numRows;\n }",
"public int getNumRows() {\n return numRows;\n }",
"public int getRows() {\n\t\treturn myGrid.getRows();\n\t}",
"public int getNrow(){\r\n \treturn this.nrow;\r\n \t}",
"public int rows() {\n\treturn rows;\n}",
"public int getBoardSize(){\n\t\treturn grids.getRows();\n\t}",
"public abstract int getNumOfRows();",
"public int getNumRows() { return numRows; }",
"public abstract int getNumRows();",
"public int getNumRows() {\n\t\treturn numRows;\n\t}",
"public int getRows()\n\t{\n\t\treturn rows;\n\t}",
"public int getRows() {\n\t\treturn NUM_OF_ROWS;\n\t}",
"public int getRows();",
"public int getRows();",
"public int getnRows() {\n return nRows;\n }",
"public int getnRows() {\n return nRows;\n }",
"public int getRows() {\n\t\treturn rows;\n\t}",
"public int getRows() {\n\t\treturn rows;\n\t}",
"public int getRows() {\n return rows;\n }",
"public int getRows() {\n return this.matrix.length;\n }",
"public int getRows()\n {\n return rows;\n }",
"int getCellsCount();",
"public int getNumRows () {\n\t\treturn numrows_;\n\t}",
"public int getRows() {\n return rows;\n }",
"public int numRows(){ return numRows;}",
"public static int rowCount() {\n\t return sheet.getPhysicalNumberOfRows();\n\t}",
"public static int RowCount()\r\n\t{\r\n\t\treturn wrksheet.getRows();\r\n\t}",
"public int getRows() {\n\treturn rows;\n }",
"public int getWidthOfBoard() {\r\n return board[0].length;\r\n }",
"public int getRows() {\n\t\treturn this.rows;\n\t}",
"public int getRowCount()\n {\n return numRows;\n }",
"int getBoardSize() {\n return row * column;\n }",
"public abstract int rows();",
"public int getBoardWidth(){\n return Cols;\n }",
"public int numRows() {\n\t /*return the number of rows in the field*/\n return row; \n }",
"int getRows();",
"int getRows();",
"public Integer getRows() {\n\t\treturn rows;\n\t}",
"int getRowsCount();",
"public int getGridRows() \n { \n return gridRows; \n }",
"public int getMaxRows() {\r\n\t\treturn boardcell.length;\r\n\t}",
"int getNumberOfRows() {\n lock.readLock().lock();\n try {\n return extensionPointPluginMap.rowMap().size();\n } finally {\n lock.readLock().unlock();\n }\n }",
"public Integer getRows() {\n return this.rows;\n }",
"public Integer getRows() {\n return this.rows;\n }",
"public int numRows() {\n return mat.getNumRows();\n }",
"public abstract int getNumberOfColumnsInCurrentRow();",
"public int getRowSize() {\n \t\treturn this.rows;\n \t}",
"public int getNumRows() {\n\n if (columns.length < 1) {\n return 0;\n }\n\n return columns[0].getNumRows();\n }",
"public int getmRows() {\n return mRows;\n }",
"public int getNumRow() {\n\t\tif (dc.size() <= 0)\n\t\t\treturn dc.size();\n\n\t\t// Pick the first entry and get its size\n\t\t// assumption: For DataTable, all columns should have the same size\n\t\tMap.Entry<String, DataColumn> entry = dc.entrySet().iterator().next();\n\t\treturn dc.get(entry.getKey()).getSize();\n\t}",
"public int numberOfRows() {\n\t\treturn rowCount;\n\t}",
"public int getNumberOfRows() {\n return this.numberOfRows;\n }",
"public int getNumYTiles() { \r\n return numRows;\r\n }",
"private int size() {\n\treturn matrix.length; //# of rows\n }",
"int getRowsAmount();",
"public int getRowCount() {\r\n\t\treturn(noOfRows);\r\n\t}",
"public int getRowCount() { return this.underlying.getRowCount(); }",
"protected int getCellCount() {\n return this.cellCountStack.getLast();\n }",
"public int getBoardLength() {\n return boardLength;\n }",
"public int rowCount() {\n\t\treturn n_;\n\t}",
"public int getNumLines() {\n\t\treturn numLines;\n\t}",
"@Override\n\t\t\tpublic int getRow() {\n\t\t\t\treturn count;\n\t\t\t}",
"public int getRows(){\n return _rows;\n }",
"public static int getRowCount() {\r\n\t\trowCount = sheet.getLastRowNum();\r\n\t\treturn rowCount;\r\n\t}",
"@Override\n public int getNumRows(){\n return HEIGHT;\n }",
"public int getRowCount()\n {\n // Get level of the node to be displayed\n int rowCount = displayNode.getLevel();\n \n // Add number of children\n rowCount = rowCount + displayNode.getChildCount();\n \n // Increment by 1 if the root node is being displayed\n if (rootVisible) \n { \n rowCount++; \n }\n \n // Return number of rows\n return rowCount;\n }",
"private int getWidth() {\r\n if (ix < 0) \r\n throw new NoSuchElementException();\r\n \r\n int result = tileWidth;\r\n if ((getX() == numCols - 1) && (width % tileWidth != 0)) {\r\n // if this is the last column and the width isn't exactly divisible\r\n result = width % tileWidth;\r\n }\r\n \r\n return result;\r\n }",
"public int getNumLines ();",
"public int getRowNumber() {\n return cols;\n }",
"int getNumberOfLines();",
"public abstract int getNumColumns();",
"public int getRows() {\n\t\treturn g.length;\n\t}",
"public int getRowCount() \n\t{ return rowcounter; }",
"public int getRowCount()\r\n\t{\r\n\t\treturn rowCount;\r\n\t}",
"public int getNcol(){\r\n \treturn this.ncol;\r\n \t}",
"int getNumberOfStonesOnBoard();",
"public int lines( )\n {\n int lin = 0;\n\n if( table != null )\n {\n lin = table.length;\n } //end\n return(lin);\n }",
"public int getRowCount() {\n if (rowBuilder_ == null) {\n return row_.size();\n } else {\n return rowBuilder_.getCount();\n }\n }",
"public int getRowCount() {\n if (rowBuilder_ == null) {\n return row_.size();\n } else {\n return rowBuilder_.getCount();\n }\n }",
"public int getRowCount() {\n if (rowBuilder_ == null) {\n return row_.size();\n } else {\n return rowBuilder_.getCount();\n }\n }",
"public int getRowCount() {\n if (rowBuilder_ == null) {\n return row_.size();\n } else {\n return rowBuilder_.getCount();\n }\n }",
"public int getRowCount() {\n if (rowBuilder_ == null) {\n return row_.size();\n } else {\n return rowBuilder_.getCount();\n }\n }",
"public int getRowCount() {\n if (rowBuilder_ == null) {\n return row_.size();\n } else {\n return rowBuilder_.getCount();\n }\n }",
"public static int size() {\n return cells.size();\n }",
"public int getRowsCount() {\n return rows_.size();\n }",
"public int getBoardSize() {\n\t\treturn board.length;\n\t}",
"public int getRowCount() {\n return row_.size();\n }",
"public int getRowCount() {\n return row_.size();\n }",
"public int getRowCount() {\n return row_.size();\n }",
"public int getRowCount() {\n return row_.size();\n }",
"public int getRowCount() {\n return row_.size();\n }",
"public int getRowCount() {\n return row_.size();\n }",
"private int getRowCountFromGuessing() {\n\t\treturn rowCountFromGuessing;\n\t}",
"public int getRowCount() {\n return this.rowCount;\n }",
"int getLinesCount();",
"public int getRowCount() {\r\n return this.rowCount;\r\n }",
"public int row();",
"public int getRowCount();",
"int colCount();"
] | [
"0.77133167",
"0.7701651",
"0.7701651",
"0.7648005",
"0.7646482",
"0.76405066",
"0.76338875",
"0.76332635",
"0.7614704",
"0.7609044",
"0.75931925",
"0.7550331",
"0.7525352",
"0.7524268",
"0.7524268",
"0.75043565",
"0.75043565",
"0.74386895",
"0.74386895",
"0.74243134",
"0.7420057",
"0.74142855",
"0.74024487",
"0.73865056",
"0.7386025",
"0.7380766",
"0.737979",
"0.733135",
"0.732271",
"0.73206097",
"0.73134583",
"0.7308663",
"0.72953945",
"0.7294714",
"0.7287546",
"0.72806865",
"0.72769177",
"0.72769177",
"0.72589844",
"0.7254239",
"0.7251712",
"0.7233044",
"0.7217628",
"0.7165036",
"0.7165036",
"0.71537894",
"0.7149742",
"0.713968",
"0.7133356",
"0.7113901",
"0.70744026",
"0.7072823",
"0.7066016",
"0.70638067",
"0.7050913",
"0.70416766",
"0.70356953",
"0.7028604",
"0.70136964",
"0.69896656",
"0.6979877",
"0.6977276",
"0.69289976",
"0.692847",
"0.6926545",
"0.69258153",
"0.6919249",
"0.6916914",
"0.6913206",
"0.6894957",
"0.68899584",
"0.68711275",
"0.6867435",
"0.6855391",
"0.6853271",
"0.6851661",
"0.6842477",
"0.68404",
"0.683263",
"0.683263",
"0.683263",
"0.683263",
"0.683263",
"0.683263",
"0.6832509",
"0.6831819",
"0.68317735",
"0.6824624",
"0.6824624",
"0.6824624",
"0.6824624",
"0.6824624",
"0.6824624",
"0.68235016",
"0.6822243",
"0.6821887",
"0.68204755",
"0.6809573",
"0.6802856",
"0.68011063"
] | 0.75711286 | 11 |
getter for number of lines cleared this round | public int getNumLines() {
return numLines;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getLinesCount();",
"public int getNumLines ();",
"int getFixedLines();",
"public int getLines() {\n\t\treturn this.linhas;\n\t}",
"int getNumberOfLines();",
"public int getLinesCount() {\n return lines.length;\n }",
"public int getLineCount() {\n\t\treturn lineCount;\n\t}",
"public int number_of_lines() {\r\n\t\treturn line_index.size() - 1;\r\n\t}",
"private static int numLines() {\n\t\tif(subway != null)\n\t\t\treturn subway[0].length;\n\t\treturn 0;\n\t}",
"@Override\n\tpublic long getLineCount() {\n\t\tif (lineCount == null || checksumChanged()) {\n\t\t\ttry (Stream<String> stream = Files.lines(getDataStore()\n\t\t\t\t\t.getDocument().toPath())) {\n\t\t\t\tlong count = stream.filter(line -> !line.isEmpty()).count();\n\t\t\t\tthis.lineCount = count;\n\t\t\t\treturn count;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\treturn lineCount;\n\t\t}\n\t\tthrow new NullPointerException(\n\t\t\t\t\"Unexpected error. Could not get the line count.\");\n\t}",
"public int getNoOfRelevantLines() { return this.noOfRelevantLines; }",
"public int lines( )\n {\n int lin = 0;\n\n if( table != null )\n {\n lin = table.length;\n } //end\n return(lin);\n }",
"public Integer size() {\n\t\treturn mLines == null ? 0 : mLines.length;\n\t}",
"private int clearLines() {\n\t\tint numGarbageLines = 0;\n\t\tArrayList<Integer> linesToShift = new ArrayList<Integer>();\n\t\tfor (int r = 0; r < matrixHeight; r++) {\n\t\t\tif (isLineFull(r)) {\n\t\t\t\tif (isGarbageLine(r)) {\n\t\t\t\t\tnumGarbageLines++;\n\t\t\t\t}\n\t\t\t\tlinesToShift.add(r);\n\t\t\t\tnumLinesCleared++;\n\t\t\t\tfor (int c = 0; c < matrixWidth; c++) {\n\t\t\t\t\tboardTiles[r][c] = backgroundColor;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (Integer removedRow : linesToShift) {\n\t\t\tshiftDownBoard(removedRow);\n\t\t}\n\t\tupdateView();\n\t\treturn linesToShift.size() - numGarbageLines;\n\t}",
"public int size()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\treturn lines.size();\r\n\t\t}\r\n\t}",
"public int getIncline() { return incline; }",
"private float measureLineNumber(){\n mPaint.setTypeface(mTypefaceLineNumber);\n int count = 0;\n int lineCount = getLineCount();\n while(lineCount > 0){\n count++;\n lineCount /= 10;\n }\n float single = mPaint.measureText(\"0\");\n return single * count * 1.01f;\n }",
"public int getCount() {\n\t\treturn this.countRound;\n\t}",
"public int getDraws() {\n return drawRound;\n }",
"public abstract int numberOfLines();",
"public int numberOfFormedLines() {\n\t\t// number of formed lines\n\t\tint countFullLines = 0;\n\t\t\n\t\t// goes through blockMatrix to count full lines\n\t\tfor(int i = 0; i < blockMatrix.length; i++) { \n\t\t\tif(fullLine(i)) {\n\t\t\t\tcountFullLines++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn countFullLines; \n\t}",
"public int getLinesProcessed() {\n return linesProcessed;\n }",
"int getBrokenLines();",
"public int size() {\n return lines.size();\n }",
"private int checkLines(){\r\n \tint contRows = 0;\r\n \t\r\n \tfor (float y = height; y >= 0 && contRows < 4; y--) {\r\n \t\tif (isFullRow(y)) {\r\n \t\t\tcontRows++;\r\n \t\t\tdeleteRow(y);\r\n \t\t}\r\n \t}\r\n \treturn contRows;\r\n }",
"public int lines() {\n return list.size();\n }",
"int getBytesPerLine() {\n\t\treturn bytesInLine.intValue();\n\t}",
"public int numberOfRounds() {\r\n\t\treturn offsets.size() - 1;\r\n\t}",
"public int getLineWidth() {\r\n return LineWidth;\r\n }",
"public int getRingNumber() {\n return _holeLines.size() + 1;\n }",
"public void resetClearedLines() {\n this.myClearedLines = 0;\n this.myLineCleared.setText(Integer.toString(this.myClearedLines));\n }",
"public int[] getLineNumbers() {\n return lineNos;\n }",
"public int lineNum() {\n return myLineNum;\n }",
"public static int getLine() {\r\n\t\treturn rline;\r\n\t}",
"public int getDraws() {\n return draws;\n }",
"public int getDraws() {\n return draws;\n }",
"int getLinesLimit();",
"int getLinesRead();",
"public int line() {\r\n return line;\r\n }",
"public int clearLine()\n {\n int count = 0;\n for (int i = grid.length-1; i >= 1;)\n {\n //check if it's a row to remove\n boolean z = true;\n for (int j = 0; j < grid[i].length; j++)\n {\n if (grid[i][j] == 0)\n {\n z = false;\n break;\n }\n }\n \n //remove it, shift everything down one\n if (z)\n {\n for (int k = i; k >= 1; k--)\n {\n for (int l = 0; l < grid[i].length; l++)\n {\n grid[k][l] = grid[k-1][l];\n }\n }\n count++;\n } else\n {\n i--;\n }\n }\n return count;\n }",
"@Test\n public void getNumRows() {\n this.reset();\n assertEquals(-1, this.bps.getNumRows());\n // # of rows originally in pyramid\n this.reset();\n this.bps.startGame(this.fullDeck, false, 3, 1);\n assertEquals(3, this.bps.getNumRows());\n // # of rows after game has been played\n this.bps.removeUsingDraw(0, 2, 2);\n this.bps.removeUsingDraw(0, 2, 1);\n this.bps.removeUsingDraw(0, 2, 0);\n assertEquals(2, this.bps.getNumRows());\n assertNotEquals(3, this.bps.getNumRows());\n\n\n }",
"public int getLineWidth ( ) {\r\n\t\treturn line_width;\r\n\t}",
"public int getLineBlockSIZE() {\n\t\treturn lineblocksSIZE;\n\t}",
"public int getNoTokensByLine() {\r\n\t\treturn this.noTokensByLine;\r\n\t}",
"public int getLine() {\n return lineNum;\n }",
"public int checkLines() {\n\t\tint completedLines = 0;\n\t\tfor(int row = 0; row < ROW_COUNT; row++) {\n\t\t\tif(checkLine(row)) {\n\t\t\t\tcompletedLines++;\n\t\t\t}\n\t\t}\n\t\treturn completedLines;\n\t}",
"public void setNoOfRelevantLines(int norl) { this.noOfRelevantLines = norl; }",
"public BigDecimal getLINE_NO() {\r\n return LINE_NO;\r\n }",
"public BigDecimal getLINE_NO() {\r\n return LINE_NO;\r\n }",
"public BigDecimal getLINE_NO() {\r\n return LINE_NO;\r\n }",
"public BigDecimal getLINE_NO() {\r\n return LINE_NO;\r\n }",
"public int rows() {\n\treturn rows;\n}",
"public int getLineWeight()\n {\n return lineaspessore;\n }",
"public int getRingCount() {\r\n\t\treturn mRingCount;\r\n\t}",
"int getLineHeight() {\n\treturn ascent + descent;\n}",
"public int getLineNr() {\n return this.lineNr;\n }",
"public int getLine() {return _line;}",
"public int getNround()\n {\n \treturn this.nround;\n }",
"public int getLinesResource(){\n return response.body().split(\"\\n\").length;\n }",
"@Override\n public double getLineWidth() {\n return graphicsEnvironmentImpl.getLineWidth(canvas);\n }",
"public int getRows() {\n return mRipple.getHeight();\n }",
"public int getLineNum() {\n\t\treturn lineNum;\n\t}",
"int getCellsCount();",
"public int getNSteps() {\n //if (mCovered == null) {\n //return 0;\n //}\n return mCovered.length;\n }",
"public int getnRows() {\n return nRows;\n }",
"public int getnRows() {\n return nRows;\n }",
"int getBlockNumbersCount();",
"public int getF_Draws() {\n return f_draws;\n }",
"public int numberOfSegments() {\n return lineSegments.size();\n }",
"public int numberOfSegments() {\n return lineSegments.size();\n }",
"public int getLine() {\r\n return line;\r\n }",
"public int countWindowPerLine(int line_size, int window_size) {\n\t\treturn line_size / window_size;\n\t}",
"public int getPointsGainedLastRound(){return pointsGainedLastRound;}",
"protected int bytesPerLine() {\n return (48);\n }",
"protected int bytesPerLine() {\n return (48);\n }",
"public int getLine() {\n return line;\n }",
"public int getRound() {\n\t\treturn myHistory.size() + opponentHistory.size();\n\t}",
"public int getLastVisibleLine(){\n int l = Math.min((getOffsetY() + getHeight()) / getLineHeight(), getLineCount() - 1);\n if(l < 0){\n return 0;\n }else{\n return l;\n }\n }",
"@Override\n\tpublic int getTotalDots() {\n\t\treturn 0;\n\t}",
"public int getLine() {\n return line;\n }",
"public Integer getTotalNumberOfTransactionLines() {\n return totalNumberOfTransactionLines;\n }",
"private int lineNumber() throws IOException {\n int count = 0;\n File answers = new File(this.settings.getValue(\"botAnswerFile\"));\n try (RandomAccessFile raf = new RandomAccessFile(answers, \"r\")) {\n while (raf.getFilePointer() != raf.length()) {\n raf.readLine();\n count++;\n }\n }\n return count;\n }",
"public int getHoleLineNumber(){\n return this._holeLines.size();\n }",
"int getRowsAmount();",
"public int getLine() {\r\n\t\treturn line;\r\n\t}",
"public int getRows()\n\t{\n\t\treturn rows;\n\t}",
"public int numberOfSegments() {\n return lineSegs.length;\n }",
"public int getRows() {\n\t\treturn NUM_OF_ROWS;\n\t}",
"public int numberOfSegments() {\n return lineSegments.length;\n }",
"public int getRows() {\n\t\treturn rows;\n\t}",
"public int getRows() {\n\t\treturn rows;\n\t}",
"public int numberOfSegments() {\n return this.lineSegments.length;\n }",
"public List<Integer> getLines(){\n\t\treturn lineNumber;\n\t}",
"public int length() {\n \t\tif (-1 == n_points) setupForDisplay();\n \t\treturn n_points;\n \t}",
"public int maxL()\r\n {\r\n return metro.numberOfLines - 1;\r\n }",
"int getArrowCount();",
"public int getYardageGained() {\r\n\t\treturn newLine - oldLine;\r\n\t}",
"public abstract int getCntRod();",
"public int getLine() { return cl; }",
"int getBlockNumsCount();"
] | [
"0.76553667",
"0.75229055",
"0.7347769",
"0.7291094",
"0.7176272",
"0.705869",
"0.6958666",
"0.695781",
"0.69138217",
"0.68381447",
"0.6817384",
"0.6804865",
"0.6783754",
"0.67631346",
"0.6705445",
"0.6671511",
"0.665215",
"0.66046995",
"0.659819",
"0.6579698",
"0.6558556",
"0.6533408",
"0.65209085",
"0.6503677",
"0.6415374",
"0.6402628",
"0.6346557",
"0.63044244",
"0.6301682",
"0.6292012",
"0.626812",
"0.6267215",
"0.6255728",
"0.6245327",
"0.61813444",
"0.61455476",
"0.6139666",
"0.61367923",
"0.6116716",
"0.61142635",
"0.60985297",
"0.60720986",
"0.6072031",
"0.6063044",
"0.6024256",
"0.60223156",
"0.60195416",
"0.6007475",
"0.6007475",
"0.6007475",
"0.6007475",
"0.5999448",
"0.59973043",
"0.5994705",
"0.5992925",
"0.59927034",
"0.5977283",
"0.59710735",
"0.5968511",
"0.59635454",
"0.5953385",
"0.59516263",
"0.5949786",
"0.59445363",
"0.5941089",
"0.5941089",
"0.59385896",
"0.5936955",
"0.59250766",
"0.59250766",
"0.5915761",
"0.58830154",
"0.5876577",
"0.5873564",
"0.5873564",
"0.58726376",
"0.58717364",
"0.5866084",
"0.58629364",
"0.5860198",
"0.5855815",
"0.5853119",
"0.5847603",
"0.5840839",
"0.58320194",
"0.5829518",
"0.58265543",
"0.58206993",
"0.5816838",
"0.5813721",
"0.5813721",
"0.58126146",
"0.580981",
"0.58085555",
"0.58048815",
"0.5801594",
"0.57917273",
"0.57891357",
"0.5787704",
"0.57839024"
] | 0.7368827 | 2 |
getter for number of tetrises cleared this round | public int getNumTetrises() {
return numTetrises;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int numberOfTires() {\n int tires = 4;\n return tires;\n }",
"public int getCount() {\n\t\treturn this.countRound;\n\t}",
"public int getDraws() {\n return drawRound;\n }",
"public int getNSteps() {\n //if (mCovered == null) {\n //return 0;\n //}\n return mCovered.length;\n }",
"public int getTotRuptures();",
"public int getTriangleCount();",
"public int getNround()\n {\n \treturn this.nround;\n }",
"public int getNumTrials() \n {\n return cumulativeTrials; \n }",
"int getTribeSize();",
"public int getPointsGainedLastRound(){return pointsGainedLastRound;}",
"public int getStoneCount()\n {\n return stoneCount;\n }",
"@Override\r\n\t@Basic\r\n\tpublic int getNbSquares() {\r\n\t\treturn squares.size();\r\n\t}",
"public int getNumTriangles() {\n return numTriangles;\n }",
"final int getAndClearStealCount() {\n int sc = stealCount;\n stealCount = 0;\n return sc;\n }",
"public int getHandKarteCount(){\n return getHandKarte().size();\n }",
"public int getNbVictoires()\r\n\t{\r\n\t\treturn this.nbVictoires;\r\n\t}",
"public int getCurrentTripsCount() {\n return currentTrips_.size();\n }",
"public String getSureNzdCnt() {\n return sureNzdCnt;\n }",
"public int getNumTroops(){\n return this.troops;\n }",
"@Override\n public int getRent() {\n int total = 0;\n for (Property P : this.owner.getProperties()) {\n if (P.group_color.equals(this.group_color)) {\n total++;\n }\n }\n if (total == 2) {\n return RENT * 2;\n }\n else if (total == 3) {\n return RENT * 3;\n }\n else if (total == 4) {\n return RENT * 4;\n }\n else {\n return RENT;\n }\n }",
"public int size() {\n return trips.size();\n }",
"public int getCurrentTripsCount() {\n return currentTrips_.size();\n }",
"int getPointsCount();",
"public int rectangleCount() {\n return this.root.rectangleCount();\n }",
"public int getRound() {\n\t\treturn myHistory.size() + opponentHistory.size();\n\t}",
"public int numberOfRounds() {\r\n\t\treturn offsets.size() - 1;\r\n\t}",
"public int numberOfKnightsIn() { // numero di cavalieri a tavola\n \n return numeroCompl;\n }",
"public int tilesRemain() {\n return tiles.size();\n }",
"int getWayCount();",
"public int getTutorsCount() {\n return mTutorsCount;\n }",
"public int getPieceCount () {\n return m_PieceCount;\n\t}",
"int getBlockNumsCount();",
"int getBlockNumsCount();",
"public int getTrys() {\n return trys;\n\n }",
"int getReaultCount();",
"int getNumberOfStonesOnBoard();",
"public String getNum_of_sat_test_takers() {\n return num_of_sat_test_takers;\n }",
"public int getDraws() {\n return draws;\n }",
"public double GetTonnage() {\n if( LotSize != CurLotSize ) {\n double TonsPerShot = Tonnage / (double) LotSize;\n return CommonTools.RoundFractionalTons( TonsPerShot * (double) CurLotSize );\n }\n return Tonnage;\n }",
"public int getCurrRuptures();",
"int getArrowCount();",
"public int getNumTimes();",
"public int getDraws() {\n return draws;\n }",
"int getToughness(Unit unit);",
"public int getNumberUnplayedSettlements() {\n\t\t return playerPieces.getNumberUnplayedSettlements();\n\t }",
"public double trueCount() {\n\t\t\t\n\t\t\treturn (double)total_count/((double)size/52);\n\t\t}",
"int getCellsCount();",
"public long getNRounds() {\n return cGetNRounds(this.cObject);\n }",
"public int getRound() {\n return round;\n }",
"public int size() {\r\n\t\treturn this.taille;\r\n\t}",
"int getNumberOfFold();",
"public int getRound()\r\n\t{\r\n\t\treturn this.round;\r\n\t}",
"public int getRows() {\n return mRipple.getHeight();\n }",
"public int totalNum(){\n return wp.size();\n }",
"public int sizeOfCornerArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(CORNER$12);\r\n }\r\n }",
"public long getTotSeg() {\n return TotSeg;\n }",
"int getRemainPoints();",
"public int sizeOfWatershedsArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(WATERSHEDS$4);\r\n }\r\n }",
"public int getTaillePoule (){\n\t\treturn 3;\n\t}",
"public int numPoints() {\n\t\treturn divided ? -1 : points.size();\n\t}",
"@Override\r\n protected long getN() {\r\n boolean handleOutOfMemoryError = false;\r\n long n = 0;\r\n Grids_GridDouble g = getGrid();\r\n int nrows = g.getChunkNRows(ChunkID, handleOutOfMemoryError);\r\n int ncols = g.getChunkNCols(ChunkID, handleOutOfMemoryError);\r\n double noDataValue = g.getNoDataValue(false);\r\n for (int row = 0; row < nrows; row++) {\r\n for (int col = 0; col < ncols; col++) {\r\n double value = getCell(row, col);\r\n if (Double.isNaN(value) && Double.isFinite(value)) {\r\n if (value != noDataValue) {\r\n n++;\r\n }\r\n }\r\n }\r\n }\r\n return n;\r\n }",
"@Override\n\tpublic int getTripCount() {\n\t\treturn tripCount;\n\t}",
"protected int getLength() {\n int length = super.getLength(); //see if it is defined in the ncml\n if (length < 0) {\n double[] t = getTimes();\n if (t != null) length = t.length;\n else length = 0;\n }\n return length;\n }",
"public int tourSize() {\n return tour.size();\n }",
"public int countHandShakes(){\n\t\tif (this.getNCouples() < 1) {\n\t\t\treturn 0;\n\t\t}else if (this.getNCouples() == 1) {\n\t\t\treturn 1;\n\t\t}else{\n\t\t\tthis.setNCouples(this.getNCouples() - 1);\n\t\t\treturn (this.getNCouples() + 1) * 3 - 2 + countHandShakes();\n\t\t}\n\t}",
"public int getToTalNoOfTimeSteps() {\n\t\treturn ToTalNoOfTimeSteps;\n\t}",
"public int getNunFigli() {\n\t\tint numFigli = 0;\n\t\tfor (Nodo_m_ario figlio : figli) {\n\t\t\tif (figlio != null) {\n\t\t\t\tnumFigli += 1;\n\t\t\t}\n\t\t}\n\t\treturn numFigli;\n\t}",
"public Integer getFreeTixianTimes() {\r\n return freeTixianTimes;\r\n }",
"public double getFaultyNodeCount() {\n return (this.getTotalNodeCount() - 1)/3;\n }",
"public int getTwoTails() \n {\n return numTwoTails; \n }",
"public int getS() {\n\t\treturn (Math.max(getSquare(tractor).getSand()-getK(),0));\n\t}",
"private int obstaculos() {\n\t\treturn this.quadricula.length * this.quadricula[0].length - \n\t\t\t\tthis.ardiveis();\n\t}",
"public java.lang.Integer getGroundcnt() throws java.rmi.RemoteException;",
"@Override\n\tpublic int getTripCount() {\n\t\treturn this.tripCount;\n\t}",
"int getBlockNumbersCount();",
"public int getNumeroTareasPendientes(){\n return tareas.size();\n }",
"public int taille() {\n\t\treturn getSize();\n\t}",
"public int getHeadTails() \n {\n return numHeadTails; \n }",
"final public int getHidden() {\r\n \treturn this.width * this.height - this.squaresRevealed;\r\n }",
"public int getNumHurtboxes() {\n return this.weapon.getNumHurtboxes();\n }",
"int getAreaCount();",
"int getAreaCount();",
"int getAreaCount();",
"public int getRoundNum(){\n return gameRounds;\n }",
"public int getUnitCount() {\n return _elements.length;\n }",
"private int countGrasses()//issues...see comment below in countTrees()\n {\n int grasses = 0;\n Field field = getField();\n Iterator<Location> it;\n List<Object> plantList = new List<>();\n while(it.hasNext()) {\n plantList.add(field.getObjectAt(currant));\n if(plant instanceof Grass) {\n grasses++;\n }\n }\n return grasses;\n }",
"public int mo1067a() {\n return this.f3256d.size();\n }",
"public int getWaveOrdersTaken() {\n return waveOrdersTaken;\n }",
"public double getNeckLength() {\n MessageUtility.logGetter(name,\"getNeckLength\",neckLength);\n return neckLength;\n }",
"public int getReaultCount() {\n return reault_.size();\n }",
"@Override\n public int getRemainingMines() {\n int numPlacedFlags = cells.stream()\n .mapToInt(b -> (int) b.stream().filter(c -> c.getFlagState() == 1).count()).sum();\n return numMines - numPlacedFlags;\n }",
"public int getRingCount() {\r\n\t\treturn mRingCount;\r\n\t}",
"public double drawLength() { return drawLength; }",
"@Override\n public double calculaTributos() {\n // TODO Auto-generated method stub\n return 10;\n }",
"public int getTilaa() {\r\n return maara - matkustajia;\r\n }",
"public int getNumCaught() {\r\n\t\tint count = 0;\r\n\t\tfor (int poke : caughtPokemon.values()) {\r\n\t\t\tcount += poke;\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"public int noOfSides();",
"public int getTouchCount()\n {\n return m_cUses;\n }",
"public abstract int getCntRod();",
"int getTrucksCount();"
] | [
"0.6545123",
"0.6478049",
"0.6426997",
"0.64240843",
"0.64002186",
"0.6363631",
"0.63560843",
"0.6337811",
"0.631095",
"0.6302619",
"0.6125567",
"0.61202174",
"0.61140585",
"0.6113801",
"0.60203284",
"0.6017727",
"0.5970543",
"0.5964815",
"0.595897",
"0.594856",
"0.5946349",
"0.59367555",
"0.59270716",
"0.59217507",
"0.59192944",
"0.5895031",
"0.58763754",
"0.58672184",
"0.5865705",
"0.58620447",
"0.58441085",
"0.5824828",
"0.5824828",
"0.5814519",
"0.58032155",
"0.5799093",
"0.57968223",
"0.5793251",
"0.5792721",
"0.57882434",
"0.5779875",
"0.5779189",
"0.577765",
"0.5768299",
"0.5762978",
"0.5753927",
"0.57525676",
"0.573963",
"0.57280946",
"0.5727069",
"0.5725707",
"0.5711425",
"0.57109976",
"0.57097316",
"0.57072943",
"0.56935334",
"0.56742245",
"0.56727755",
"0.5669562",
"0.5656772",
"0.56477827",
"0.56465775",
"0.56463546",
"0.56421536",
"0.56322336",
"0.56315815",
"0.562286",
"0.5619014",
"0.5618074",
"0.560617",
"0.55959624",
"0.5595322",
"0.55940723",
"0.5592058",
"0.559056",
"0.5577497",
"0.55772644",
"0.5576666",
"0.5571776",
"0.5570669",
"0.5570205",
"0.5570205",
"0.5570205",
"0.5563466",
"0.5556157",
"0.55495626",
"0.554574",
"0.5543277",
"0.55396324",
"0.5532709",
"0.55323976",
"0.55313694",
"0.55289555",
"0.55287945",
"0.55201536",
"0.5513143",
"0.5511609",
"0.55073535",
"0.5504536",
"0.5496222"
] | 0.71908194 | 0 |
Inflate tab_layout and setup Views. | @Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View x = inflater.inflate(R.layout.tablayout,null);
tabLayout = (TabLayout) x.findViewById(R.id.tabs);
viewPager = (ViewPager) x.findViewById(R.id.viewpager);
/**
*Set an Apater for the View Pager
*/
viewPager.setAdapter(new MyAdapter(getChildFragmentManager()));
/**
* Now , this is a workaround ,
* The setupWithViewPager dose't works without the runnable .
* Maybe a Support Library Bug .
*/
tabLayout.post(new Runnable() {
@Override
public void run() {
tabLayout.setupWithViewPager(viewPager);
}
});
return x;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setupTabLayout() {\n tabLayout = (TabLayout) findViewById(R.id.tabs);\n tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n onTabTapped(tab.getPosition());\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n onTabTapped(tab.getPosition());\n }\n });\n tabLayout.getTabAt(0).select();\n View root = tabLayout.getChildAt(0);\n //create divider between the tabs\n if (root instanceof LinearLayout) {\n ((LinearLayout) root).setShowDividers(LinearLayout.SHOW_DIVIDER_MIDDLE);\n GradientDrawable drawable = new GradientDrawable();\n drawable.setColorFilter(0xffff0000, PorterDuff.Mode.MULTIPLY);\n drawable.setSize(2, 1);\n ((LinearLayout) root).setDividerPadding(10);\n ((LinearLayout) root).setDividerDrawable(drawable);\n }\n }",
"private void createView() {\n\t\tTabWidget tWidget = (TabWidget) findViewById(android.R.id.tabs);\r\n\t\tshowLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView = (ImageView) showLayout.getChildAt(0);\r\n\t\tTextView textView = (TextView) showLayout.getChildAt(1);\r\n\t\timageView.setImageResource(R.drawable.main_selector);\r\n\t\ttextView.setText(R.string.show);\r\n\r\n\t\taddLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView1 = (ImageView) addLayout.getChildAt(0);\r\n\t\tTextView textView1 = (TextView) addLayout.getChildAt(1);\r\n\t\timageView1.setImageResource(R.drawable.add_selector);\r\n\t\ttextView1.setText(R.string.add_record);\r\n\r\n\t\tchartLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView2 = (ImageView) chartLayout.getChildAt(0);\r\n\t\tTextView textView2 = (TextView) chartLayout.getChildAt(1);\r\n\t\timageView2.setImageResource(R.drawable.chart_selector);\r\n\t\ttextView2.setText(R.string.chart_show);\r\n\t}",
"private void setTabLayout() {\n View view = LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n TextView title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n ImageView imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.MOVIES);\n imgIcon.setImageResource(R.mipmap.ic_home);\n mTabLayout.getTabAt(0).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n count = (TextView) view.findViewById(R.id.item_tablayout_count_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.FAVOURITE);\n imgIcon.setImageResource(R.mipmap.ic_favorite);\n count.setVisibility(View.VISIBLE);\n mTabLayout.getTabAt(1).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.SETTINGS);\n imgIcon.setImageResource(R.mipmap.ic_settings);\n mTabLayout.getTabAt(2).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.ABOUT);\n imgIcon.setImageResource(R.mipmap.ic_info);\n mTabLayout.getTabAt(3).setCustomView(view);\n }",
"private void inflateViews() {\n toolbar = findViewById(R.id.toolbar);\n viewPager = findViewById(R.id.view_pager);\n tabLayout = findViewById(R.id.tab_layout);\n toolbar.setTitle(\"ChatApp\");\n setSupportActionBar(toolbar);\n }",
"@Override\n protected void onFinishInflate() {\n // Setup the tab host\n setup();\n\n final ViewGroup tabsContainer = (ViewGroup) findViewById(R.id.tabs_container);\n final TabWidget tabs = (TabWidget) findViewById(com.android.internal.R.id.tabs);\n final AppsCustomizePagedView appsCustomizePane = (AppsCustomizePagedView)\n findViewById(R.id.apps_customize_pane_content);\n mTabs = tabs;\n mTabsContainer = tabsContainer;\n mAppsCustomizePane = appsCustomizePane;\n mAnimationBuffer = (FrameLayout) findViewById(R.id.animation_buffer);\n mContent = (LinearLayout) findViewById(R.id.apps_customize_content);\n if (tabs == null || mAppsCustomizePane == null) throw new Resources.NotFoundException();\n\n // Configure the tabs content factory to return the same paged view (that we change the\n // content filter on)\n TabContentFactory contentFactory = new TabContentFactory() {\n public View createTabContent(String tag) {\n return appsCustomizePane;\n }\n };\n\n // Create the tabs\n TextView tabView;\n String label;\n label = mContext.getString(R.string.all_apps_button_label);\n tabView = (TextView) mLayoutInflater.inflate(R.layout.tab_widget_indicator, tabs, false);\n tabView.setText(label);\n tabView.setContentDescription(label);\n addTab(newTabSpec(APPS_TAB_TAG).setIndicator(tabView).setContent(contentFactory));\n label = mContext.getString(R.string.widgets_tab_label);\n tabView = (TextView) mLayoutInflater.inflate(R.layout.tab_widget_indicator, tabs, false);\n tabView.setText(label);\n tabView.setContentDescription(label);\n addTab(newTabSpec(WIDGETS_TAB_TAG).setIndicator(tabView).setContent(contentFactory));\n setOnTabChangedListener(this);\n\n // Setup the key listener to jump between the last tab view and the market icon\n AppsCustomizeTabKeyEventListener keyListener = new AppsCustomizeTabKeyEventListener();\n View lastTab = tabs.getChildTabViewAt(tabs.getTabCount() - 1);\n lastTab.setOnKeyListener(keyListener);\n View shopButton = findViewById(R.id.market_button);\n shopButton.setOnKeyListener(keyListener);\n\n // Hide the tab bar until we measure\n mTabsContainer.setAlpha(0f);\n }",
"private void initView() {\n\n LinearLayout bar = (LinearLayout) LayoutInflater.from(mContext).inflate(R.layout.bottom_bar, null);\n LayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);\n addView(bar, lp);\n tab1= (LinearLayout) bar.findViewById(R.id.tab1);\n tab2= (LinearLayout) bar.findViewById(R.id.tab2);\n tab3= (LinearLayout) bar.findViewById(R.id.tab3);\n tab4= (LinearLayout) bar.findViewById(R.id.tab4);\n ivTab1= (ImageView) bar.findViewById(R.id.ivTab1);\n tvTab1= (TextView) bar.findViewById(R.id.tvTab1);\n ivTab2= (ImageView) bar.findViewById(R.id.ivTab2);\n tvTab2= (TextView) bar.findViewById(R.id.tvTab2);\n ivTab3= (ImageView) bar.findViewById(R.id.ivTab3);\n tvTab3= (TextView) bar.findViewById(R.id.tvTab3);\n ivTab4= (ImageView) bar.findViewById(R.id.ivTab4);\n tvTab4= (TextView) bar.findViewById(R.id.tvTab4);\n\n tab1.setOnClickListener(this);\n tab2.setOnClickListener(this);\n tab3.setOnClickListener(this);\n tab4.setOnClickListener(this);\n\n }",
"private void initView() {\n\t\tmTabHost = (AnimationTabHost) findViewById(android.R.id.tabhost);\n\t\tmTabWidget = (TabWidget) findViewById(android.R.id.tabs);\n\t\tmTabHost.setOnTabChangedListener(this);\n\n\t\tsetIndicator(R.drawable.tab_recommend, 0, new Intent(this,\n\t\t\t\tRecommendActivity.class), R.string.recommend);\n\t\tsetIndicator(R.drawable.tab_channel, 1, new Intent(this,\n\t\t\t\tChannelActivity.class), R.string.channel);\n//\t\tsetIndicator(R.drawable.tab_search, 2, new Intent(this,\n//\t\t\t\tSearchActivity.class), R.string.search);\n\t\tsetIndicator(R.drawable.tab_personal, 3, new Intent(this,\n\t\t\t\tPersonalActivity.class), R.string.peraonal);\n\n\t\tmTabHost.setOpenAnimation(true);\n\n\n\t}",
"private void setupTab(final View view, final String tag) {\r\n\t\tView tabview = createTabView(mTabHost.getContext(), tag);\r\n\r\n\t\tTabSpec setContent = mTabHost.newTabSpec(tag).setIndicator(tabview)\r\n\t\t\t\t.setContent(new TabContentFactory() {\r\n\t\t\t\t\tpublic View createTabContent(String tag) {\r\n\t\t\t\t\t\tView view;\r\n\t\t\t\t\t\tif (tag.contains(\"EXTENDED\")) {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_2_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t\t// --Assembling Widgets\r\n\t\t\t\t\t\t\tedNO = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET1);\r\n\t\t\t\t\t\t\tedNIO = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET2);\r\n\t\t\t\t\t\t\tedNP = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET3);\r\n\t\t\t\t\t\t\tedNIP = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET4);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tedNO.setEnabled(false);\r\n\t\t\t\t\t\t\tedNIO.setEnabled(false);\r\n\t\t\t\t\t\t\tedNP.setEnabled(false);\r\n\t\t\t\t\t\t\tedNIP.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tNO= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB1);\r\n\t\t\t\t\t\t\tNIO= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB2);\r\n\t\t\t\t\t\t\tNP= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB3);\r\n\t\t\t\t\t\t\tNIP= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB4);\r\n\t\t\t\t\t\t\tNO.setEnabled(false); \r\n\t\t\t\t\t\t\tNIO.setEnabled(false);\r\n\t\t\t\t\t\t\tNP.setEnabled(false);\r\n\t\t\t\t\t\t\tNIP.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\textended = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB0);\r\n\t\t\t\t\t\t\textended.setOnClickListener(S3R4Listener2);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} else if (tag.contains(\"CUSTOM\")) {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_3_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_1_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t\t// --Assembling Widgets\r\n\t\t\t\t\t\t\tedlevels = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET1);\r\n\t\t\t\t\t\t\tedSons = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET2);\r\n\t\t\t\t\t\t\tedlevel = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET3);\r\n\t\t\t\t\t\t\tedpruduct = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET4);\r\n\t\t\t\t\t\t\tedcampaign = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET5);\r\n\t\t\t\t\t\t\tedadd = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET6);\r\n\t\t\t\t\t\t\tedlevels.setEnabled(false);\r\n\t\t\t\t\t\t\tedSons.setEnabled(false);\r\n\t\t\t\t\t\t\tedlevel.setEnabled(false);\r\n\t\t\t\t\t\t\tedpruduct.setEnabled(false);\r\n\t\t\t\t\t\t\tedcampaign.setEnabled(false);\r\n\t\t\t\t\t\t\tedadd.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tlevel= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB3);\r\n\t\t\t\t\t\t\tpruduct= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB4);\r\n\t\t\t\t\t\t\tcampaign= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB5);\r\n\t\t\t\t\t\t\tadd= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB6);\r\n\t\t\t\t\t\t\tlevel.setEnabled(false); \r\n\t\t\t\t\t\t\tpruduct.setEnabled(false);\r\n\t\t\t\t\t\t\tcampaign.setEnabled(false);\r\n\t\t\t\t\t\t\tadd.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\tStructure = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB1);\r\n\t\t\t\t\t\t\tRules = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB2);\r\n\t\t\t\t\t\t\tStructure.setOnClickListener(S3R4Listener);\r\n\t\t\t\t\t\t\tRules.setOnClickListener(S3R4Listener);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn view;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\tmTabHost.addTab(setContent);\r\n\r\n\t}",
"@Override\n protected void initViews() {\n ButterKnife.bind(this);\n effcetTitleTablayout.setupWithViewPager(effectViewpager);\n adapter = new EffectViewPagerAdapter(getSupportFragmentManager());\n effectViewpager.setAdapter(adapter);\n }",
"private void initViews() {\n\t\tmViewPager = (ViewPager) findViewById(R.id.view_pager); \n mIndicator = (IconTabPageIndicator) findViewById(R.id.indicator); \n fragments = initFragments(); \n FragmentAdapter adapter = new FragmentAdapter(fragments, getSupportFragmentManager()); \n mViewPager.setAdapter(adapter); \n mIndicator.setViewPager(mViewPager); \n mViewPager.setCurrentItem(whichPage);\n \n \n \n\t}",
"private VTabSheet initTabLayout() {\r\n VTabSheet tabs = new VTabSheet();\r\n Map<Component, Integer> tabComponentMap = new HashMap<Component, Integer>();\r\n Binder<Report> binder = new Binder<>(Report.class);\r\n fireEventTypeComponent = new FireEventTypeDataTab(report,userNeedToPrepare, binder, tabComponentMap);\r\n boolean basicEditRight = !report.getStatus().equals(ReportStatus.APPROVED) && (organizationIsCreator || userNeedToPrepare);\r\n tabs.addTab(getTranslation(\"reportView.tab.basicData.label\"), new ReportBasicDataTab(report, binder, basicEditRight, tabComponentMap, addressServiceRef.get(), this));\r\n tabs.addTab(getTranslation(\"reportView.tab.forcesData.label\"), new ReportForcesTab(report, userNeedToPrepare, organizationServiceRef.get(), vechileServiceRef.get(), reportServiceRef.get()));\r\n fireEventTab = tabs.addTab(getTranslation(\"reportView.tab.fireEventData.label\"), fireEventTypeComponent);\r\n tabs.addTab(getTranslation(\"reportView.tab.authorizationData.label\"), new ReportAuthorizationTab(report, binder, userNeedToPrepare, (userNeedToPrepare || userNeedToApprove), tabs, tabComponentMap, organizationServiceRef.get(), reportServiceRef.get(), notificationServiceRef.get()));\r\n return tabs;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.tabs_fragment, container, false);\n ViewPager viewPager = rootView.findViewById(R.id.categories_view_pager);\n FragmentViewPagerAdapter adapter = new FragmentViewPagerAdapter(getChildFragmentManager());\n\n adapter.addFragments(new Education_FirstTab(), getString(R.string.education_tab1));\n adapter.addFragments(new Education_SecondTab(), getString(R.string.education_tab2));\n\n viewPager.setAdapter(null);\n viewPager.setAdapter(adapter);\n\n TabLayout tabs = rootView.findViewById(R.id.tab_layout);\n tabs.setupWithViewPager(viewPager);\n\n return rootView;\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_companyframe, container, false);\n\n\n main_layout = rootView.findViewById(R.id.main_layout);\n\n mSectionsPagerAdapter = new SectionsPagerAdapter(getActivity().getSupportFragmentManager());\n\n // Set up the ViewPager with the sections adapter.\n mViewPager = rootView.findViewById(R.id.container);\n\n\n tabLayout = rootView.findViewById(R.id.tabs);\n\n mViewPager.setAdapter(mSectionsPagerAdapter);\n mViewPager.setOffscreenPageLimit(0);\n tabLayout.setupWithViewPager(mViewPager);\n\n tab_icon.add(R.drawable.ic_companytax);\n tab_icon.add(R.drawable.ic_taxcode);\n tab_icon.add(R.drawable.ic_viewtax);\n\n tab_name.add(\"Company Taxes\");\n tab_name.add(\"Tax Code\");\n tab_name.add(\"Calculate Tax\");\n\n\n // loop through all navigation tabs\n for (int i = 0; i < tabLayout.getTabCount(); i++) {\n\n LinearLayout linearLayout = (LinearLayout) LayoutInflater.from(getActivity()).inflate(R.layout.tab_item, null);\n\n TextView tab_label = linearLayout.findViewById(R.id.label);\n ImageView tab_pic = linearLayout.findViewById(R.id.img);\n\n\n tab_pic.setImageResource(tab_icon.get(i));\n tab_label.setText(tab_name.get(i));\n\n tabLayout.getTabAt(i).setCustomView(linearLayout);\n }\n\n\n tabLayout.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n currentIndeX = tab.getPosition();\n\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n\n }\n });\n\n\n return rootView;\n }",
"private void fuenteTab() {\n\n\n View view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n TextView tv=(TextView) view.findViewById(R.id.pestanias_txt);\n ImageView imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.detalles);\n tv.setTypeface(fuente2);\n tv.setText(\"Detalles\");\n tabLayout.getTabAt(0).setCustomView(view);\n\n view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n tv=(TextView) view.findViewById(R.id.pestanias_txt);\n imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.marciano);\n tv.setTypeface(fuente2);\n tv.setText(\"Juegos\");\n tabLayout.getTabAt(1).setCustomView(view);\n\n view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n tv=(TextView) view.findViewById(R.id.pestanias_txt);\n imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.tienda);\n tv.setTypeface(fuente2);\n tv.setText(\"Tienda\");\n tabLayout.getTabAt(2).setCustomView(view);\n\n }",
"private void initTabs() {\n\t\tmContainer.removeAllViews();\n\n\t\tif(mAdapter==null||mViewPager==null){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<mViewPager.getAdapter().getCount();i++){\n\t\t\tfinal int index=i;\n\t\t\tButton tabs= (Button) mAdapter.getView(index);\n\t\t\tLayoutParams layoutParams=new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\t\t\tlayoutParams.weight=1;\n\t\t\tmContainer.addView(tabs,layoutParams);\n\t\t\t\n\t\t\ttabs.setOnClickListener(new OnClickListener(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tif(mViewPager.getCurrentItem()==index){\n\t\t\t\t\t\tselectTab(index);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmViewPager.setCurrentItem(index, true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t}\n\t\tselectTab(0);\n\t}",
"private void initialiseViews() {\n setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL);\n bindings = DataBindingUtil.setContentView(this, R.layout.activity_catalog_product);\n bindings.activityCatalogProductPb.setVisibility(View.GONE);\n\n bindings.activityCatalogProductFab.setOnClickListener(v -> {\n\n Intent addProductIntent = new Intent(ProductCatalogMain.this,\n ProductEditor.class);\n startActivity(addProductIntent);\n\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n\n });\n\n setSupportActionBar(bindings.activityCatalogProductToolbar);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n tabPageAdapter = new ProductCatalogFragmentPageAdapter(getSupportFragmentManager());\n tabViewPager = bindings.activityCatalogProductVp;\n tabViewPager.setAdapter(tabPageAdapter);\n\n if (bindings.activityCatalogProductVp != null) {\n setupViewPager(bindings.activityCatalogProductVp);\n }\n\n // Sets up the Tab's and their titles.\n bindings.activityCatalogProductTl.setupWithViewPager(bindings.activityCatalogProductVp);\n\n }",
"void init() {\n tabHost = findViewById(android.R.id.tabhost);\n tabHost.setup(this, getSupportFragmentManager(), android.R.id.tabcontent);\n tabHost.addTab(tabHost.newTabSpec(\"Login\").setIndicator(\"Login\", null), LoginFragment.class, null);\n tabHost.addTab(tabHost.newTabSpec(\"Register\").setIndicator(\"Register\", null), RegisterFragment.class, null);\n }",
"private void setupTheFrangment() {\n viewPager = (ViewPager) findViewById(R.id.viewpager);\n adapterViewPager = new MyPagerAdapter(getSupportFragmentManager());\n viewPager.setAdapter(adapterViewPager);\n\n // Give the TabLayout the ViewPager\n TabLayout tabLayout = (TabLayout) findViewById(R.id.sliding_tabs);\n tabLayout.setupWithViewPager(viewPager);\n }",
"private void initView() {\n\t\tfragment_viewpager = (ViewPager) findViewById(R.id.fragment_viewpager);\n\n\t\tMain_bottom_change one = (Main_bottom_change) findViewById(R.id.Main_bottom_1);\n\t\tMain_bottom_change two = (Main_bottom_change) findViewById(R.id.Main_bottom_2);\n\t\tMain_bottom_change three = (Main_bottom_change) findViewById(R.id.Main_bottom_3);\n\n\t\tmTabIndicator.add(one);\n\t\tmTabIndicator.add(two);\n\t\tmTabIndicator.add(three);\n\n\t\tone.setOnClickListener(this);\n\t\ttwo.setOnClickListener(this);\n\t\tthree.setOnClickListener(this);\n\n\t\tone.setIconAlpha(1.0f);\n\t}",
"private void initViews() {\n tabLayout = findViewById(R.id.tabs);\n viewPager = findViewById(R.id.viewpager);\n myAdapter=new MyAdapter(getSupportFragmentManager());\n viewPager.setAdapter(myAdapter);\n viewPager.setAllowedSwipeDirection(SwipeDirection.all);\n\n Intent intent = getIntent();\n\n if(intent.hasExtra(\"matchStatus\")){\n sessionManager.setRefreshChatFragment(true);\n viewPager.setCurrentItem(2);\n }\n else\n viewPager.setCurrentItem(1);\n\n\n\n tabLayout.post(new Runnable() {\n @Override\n public void run() {\n tabLayout.setupWithViewPager(viewPager);\n setupIcons();\n }\n });\n\n receivePushNotification();\n }",
"private void configure_tabs() {\n Objects.requireNonNull(tabs.getTabAt(0)).setIcon(R.drawable.baseline_map_white_24);\n Objects.requireNonNull(Objects.requireNonNull(tabs.getTabAt(0)).getIcon()).setColorFilter(getResources().getColor(R.color.colorIconSelected), PorterDuff.Mode.SRC_IN);\n Objects.requireNonNull(tabs.getTabAt(1)).setIcon(R.drawable.baseline_view_list_white_24);\n Objects.requireNonNull(Objects.requireNonNull(tabs.getTabAt(1)).getIcon()).setColorFilter(getResources().getColor(R.color.colorIconNotSelected), PorterDuff.Mode.SRC_IN);\n Objects.requireNonNull(tabs.getTabAt(2)).setIcon(R.drawable.baseline_people_white_24);\n Objects.requireNonNull(Objects.requireNonNull(tabs.getTabAt(2)).getIcon()).setColorFilter(getResources().getColor(R.color.colorIconNotSelected), PorterDuff.Mode.SRC_IN);\n swipeRefreshLayout.setEnabled(false);\n\n // Set on Tab selected listener\n tabs.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n // Change color of the tab -> orange\n if (tab.getIcon() != null)\n tab.getIcon().setColorFilter(getApplicationContext().getResources().getColor(R.color.colorIconSelected), PorterDuff.Mode.SRC_IN);\n\n // set the current page position\n current_page = tab.getPosition();\n\n // if the current page is the ListMatesFragment, remove the searchView\n if(mToolbar_navig_utils!=null){\n if(current_page==2)\n mToolbar_navig_utils.getSearchView().setVisibility(View.GONE);\n else\n mToolbar_navig_utils.getSearchView().setVisibility(View.VISIBLE);\n }\n\n // refresh title toolbar (different according to the page selected)\n if(mToolbar_navig_utils !=null)\n mToolbar_navig_utils.refresh_text_toolbar();\n\n // Disable pull to refresh when mapView is displayed\n if(tab.getPosition()==0)\n swipeRefreshLayout.setEnabled(false);\n else\n swipeRefreshLayout.setEnabled(true);\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n // if the searchView is opened, close it\n if(mToolbar_navig_utils !=null) {\n if (mToolbar_navig_utils.getSearchView() != null) {\n if (!mToolbar_navig_utils.getSearchView().isIconified()) {\n mToolbar_navig_utils.getSearchView().setIconified(true);\n\n // Recover the previous list of places nearby generated\n switch (current_page) {\n case 0:\n getPageAdapter().getMapsFragment().recover_previous_state();\n break;\n case 1:\n getPageAdapter().getListRestoFragment().recover_previous_state();\n break;\n }\n }\n }\n }\n\n // Change color of the tab -> black\n if (tab.getIcon() != null)\n tab.getIcon().setColorFilter(getApplicationContext().getResources().getColor(R.color.colorIconNotSelected), PorterDuff.Mode.SRC_IN);\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n }\n });\n }",
"private void setupTabs() {\n }",
"private void initUi() {\n mToolbsr = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(mToolbsr);\n\n fab = (FloatingActionButton) findViewById(R.id.fab);\n mDrawerLayout = (DrawerLayout) findViewById(R.id.drawerLayout);\n mNavigationView = (NavigationView) findViewById(R.id.nav_view);\n\n tabLayout = (TabLayout) findViewById(R.id.tabs);\n viewPager = (ViewPager) findViewById(R.id.viewpager);\n }",
"private void initTab()\n {\n \n }",
"private void initView() {\n List<Fragment> fragmentList = new ArrayList<>();\n fragmentList.add(new FourthFragment());\n fragmentList.add(new FifthFragment(imagePath));\n// set titles\n List<String> title = new ArrayList<>();\n title.add(\"第一页\");\n title.add(\"第二页\");\n// set the adapter\n viewPager.setAdapter(new FragmentPagerAdapter(getChildFragmentManager()) {\n @NonNull\n @NotNull\n @Override\n public Fragment getItem(int position) {\n return fragmentList.get(position);\n }\n\n @Override\n public int getCount() {\n return fragmentList.size();\n }\n\n @Nullable\n @org.jetbrains.annotations.Nullable\n @Override\n public CharSequence getPageTitle(int position) {\n return title.get(position);\n }\n });\n tabLayout.setupWithViewPager(viewPager);\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tv = inflater.inflate(R.layout.fragment1_tabs, container, false);\n\t\tmTabHost = (TabHost)v.findViewById(R.id.TabHost01);\n mTabHost.setup();\n \n mTabManager = new TabManager(getActivity(), mTabHost, R.id.realtabcontents);\n mTabHost.setCurrentTab(0);\n mTabManager.addTab(mTabHost.newTabSpec(\"Tab1\").setIndicator(\"Tab1\",this.getResources().getDrawable(R.drawable.car1)),\n \t\tFragment1_Tab1.class, null);\n mTabManager.addTab(mTabHost.newTabSpec(\"Tab2\").setIndicator(\"Tab2\",this.getResources().getDrawable(R.drawable.car2)),\n \t\tFragment1_Tab2.class, null);\n mTabManager.addTab(mTabHost.newTabSpec(\"Tab3\").setIndicator(\"Tab3\",this.getResources().getDrawable(R.drawable.car3)),\n \t\tFragment3.class, null);\n mTabManager.addTab(mTabHost.newTabSpec(\"Tab4\").setIndicator(\"Tab4\",this.getResources().getDrawable(R.drawable.car4)),\n \t\tFragment4.class, null);\n \n DisplayMetrics dm = new DisplayMetrics(); \n getActivity().getWindowManager().getDefaultDisplay().getMetrics(dm); //先取得螢幕解析度 \n int screenWidth = dm.widthPixels; //取得螢幕的寬\n \n \n TabWidget tabWidget = mTabHost.getTabWidget(); //取得tab的物件\n int count = tabWidget.getChildCount(); //取得tab的分頁有幾個\n if (count > 3) { //如果超過三個就來處理滑動\n for (int i = 0; i < count; i++) { \n tabWidget.getChildTabViewAt(i).setMinimumWidth((screenWidth) / 4);//設定每一個分頁最小的寬度 \n } \n }\n\t\treturn v;\n\t}",
"private void addTabs() {\n TabsPagerAdapter tabsAdapter = new TabsPagerAdapter(getSupportFragmentManager());\n viewPager = (ViewPager) findViewById(R.id.pager);\n viewPager.setAdapter(tabsAdapter);\n\n TabLayout tabLayout = (TabLayout) findViewById(R.id.tabLayout);\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n tabLayout.setupWithViewPager(viewPager);\n\n tabLayout.getTabAt(0).setIcon(R.drawable.connect);\n tabLayout.getTabAt(1).setIcon(R.drawable.speak);\n tabLayout.getTabAt(2).setIcon(R.drawable.walk);\n tabLayout.getTabAt(3).setIcon(R.drawable.camera);\n tabLayout.getTabAt(4).setIcon(R.drawable.moves);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setTransparentStatus();\n setContentView(R.layout.activity_login);\n ButterKnife.bind(this);\n\n mTabLayout.addTab(mTabLayout.newTab().setText(\"Email\"), true);\n mTabLayout.addTab(mTabLayout.newTab().setText(\"Phone\"));\n int dp20 = ScreenUtil.convertDpToPx(20, this);\n for (int i = 0; i < mTabLayout.getTabCount(); i++) {\n View tab = ((ViewGroup)mTabLayout.getChildAt(0)).getChildAt(i);\n ViewGroup.MarginLayoutParams lp = (ViewGroup.MarginLayoutParams) tab.getLayoutParams();\n lp.setMargins(dp20, 0, dp20, 0);\n tab.requestLayout();\n }\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tab, container, false);\n\n Toolbar toolbar = (Toolbar) view.findViewById(R.id.toolbar);\n AppCompatActivity activity = (AppCompatActivity) getActivity();\n activity.setSupportActionBar(toolbar);\n\n // Initializing the TabLayout\n topTap = (TabLayout) view.findViewById(R.id.tab_top);\n topTap.addTab(topTap.newTab().setText(\"DOMPET\"));\n topTap.addTab(topTap.newTab().setText(\"CASH IN\"));\n topTap.addTab(topTap.newTab().setText(\"CASH OUT\"));\n topTap.setTabGravity(TabLayout.GRAVITY_FILL);\n topTap.setTabMode(TabLayout.MODE_FIXED);\n topTap.setSelectedTabIndicatorColor(Color.YELLOW);\n\n // Initializing ViewPager\n viewPager = (ViewPager) view.findViewById(R.id.viewpager);\n viewPager.setOffscreenPageLimit(2);\n\n // Creating TabPagerAdapter adapter\n TabPagerAdapter pagerAdapter = new TabPagerAdapter(activity.getSupportFragmentManager(), topTap.getTabCount());\n viewPager.setAdapter(pagerAdapter);\n viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(topTap));\n\n // Set TabSelectedListener\n topTap.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n viewPager.setCurrentItem(tab.getPosition());\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n\n }\n });\n\n return view;\n }",
"public void init(){\n tabHost = (TabHost)findViewById(android.R.id.tabhost);\n\n //Creating tab menu.\n TabHost.TabSpec TabMenu1 = tabHost.newTabSpec(\"First tab\");\n TabHost.TabSpec TabMenu2 = tabHost.newTabSpec(\"Second tab\");\n TabHost.TabSpec TabMenu3 = tabHost.newTabSpec(\"Third tab\");\n\n //Setting up tab 1 name.\n TabMenu1.setIndicator(getResources().getString(R.string.map));\n //Set tab 1 activity to tab 1 menu.\n Intent intent = new Intent(this, MapsActivity.class);\n intent.putExtra(\"studentObj\", student);\n TabMenu1.setContent(intent);\n\n\n //Setting up tab 2 name.\n TabMenu2.setIndicator(getResources().getString(R.string.people));\n intent = new Intent(this, PeopleActivity.class);\n TabMenu2.setContent(intent);\n\n //Setting up tab 2 name.\n TabMenu3.setIndicator(getResources().getString(R.string.setting));\n intent = new Intent(this, SettingActivity.class);\n TabMenu3.setContent(intent);\n\n //\n tabHost.addTab(TabMenu1);\n tabHost.addTab(TabMenu2);\n tabHost.addTab(TabMenu3);\n }",
"private void setupDualContentFragmentsWithTabLayout(View view) {\n tabs = view.findViewById(R.id.main_fragment_tab_layout);\n tabs.setTabMode(TabLayout.MODE_FIXED);\n tabs.getTabAt(tabPosition).select();\n selectActiveContentFragment();\n setupTabListener();\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tLog.e(tag,tag+\"=>onCreate \");\n\t\t// Define the Tab structure\n\t\tsetContentView(R.layout.main);\n\t\t// Retrieve the ressource to access to the icon\n\t\tResources resources = getResources(); // Resource object to get Drawables\n\t\t// Set the tabHost (set it has final to use it in the OnTabChangeListener)\n\t\tfinal TabHost tabHost = getTabHost();\n\t\t// Define the tabSpec that can be thought has the content of the TabPanel\n\t\tTabHost.TabSpec tabSpec;\n\t\t// Define the intent that is used to populate the tabSpec\n\t\tIntent intent;\n\n\t\t// Create an Intent to launch an Activity for the tab\n\t\tintent = new Intent().setClass(this, Android2eeWebSTI.class);\n\n\t\t// Initialize a TabSpec for each tab and add it to the TabHost\n\t\t// Get a new TabHost.TabSpec associated with this tab host.\n\t\ttabSpec = tabHost.newTabSpec(\"Android2ee\");\n\t\t// Define its indicator the label displayed (it should be\n\t\t// ressources.getString(R.string.stringId)\n\t\ttabSpec.setIndicator(\"Android2EE\", resources.getDrawable(R.drawable.ic_tab));\n\t\t// Define the content of the Spec (the TabPanel)\n\t\ttabSpec.setContent(intent);\n\t\t// Add it to the tab container\n\t\ttabHost.addTab(tabSpec);\n\n\t\t// Do the same with the tab that displays a simple TextView:\n\t\t// Define the intent that will be displayed\n\t\tintent = new Intent().setClass(this, TextViewActivity.class);\n\t\t// Get a new TabHost.TabSpec associated with this tab host.\n\t\ttabSpec = tabHost.newTabSpec(\"textView\");\n\t\t// Define its indicator the label displayed (it should be\n\t\t// ressources.getString(R.string.stringId)\n\t\ttabSpec.setIndicator(\"TextView\", resources.getDrawable(R.drawable.ic_tab));\n\t\t// Define the content of the Spec (the TabPanel)\n\t\ttabSpec.setContent(intent);\n\t\t// Add it to the tab container\n\t\ttabHost.addTab(tabSpec);\n\t\t\n\t\t// Do the same with the tab that displays a simple Clock (analogic and digital):\n\t\t// Define the intent that will be displayed\n\t\tintent = new Intent().setClass(this, ClockAD.class);\n\t\t// Get a new TabHost.TabSpec associated with this tab host.\n\t\ttabSpec = tabHost.newTabSpec(\"clock\");\n\t\t// Define its indicator the label displayed\n\t\ttabSpec.setIndicator(\"Clock\", resources.getDrawable(R.drawable.ic_tab));\n\t\t// Define the content of the Spec (the TabPanel)\n\t\ttabSpec.setContent(intent);\n\t\t// Add it to the tab container\n\t\ttabHost.addTab(tabSpec);\n\t\t\n\t\t\n\t\t//Define the current tab displayed (here the clock)\n\t\ttabHost.setCurrentTab(2);\n\t\t//Add a listener that just displays a Toast with the tag of the new selected tab\n\t\ttabHost.setOnTabChangedListener(new OnTabChangeListener() {\n\t\t\t@Override\n\t\t\tpublic void onTabChanged(String tabId) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"New tab selection : \" + tabHost.getCurrentTabTag(),\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t});\n\n\t}",
"void setupViewPager(){\n SectionStatePagerAdapter adapter=new SectionStatePagerAdapter(getSupportFragmentManager());\n adapter.addFragment(new RecodingFragment(),\"Recording\");\n adapter.addFragment(new NoteFragment(),\"Notes\");\n ViewPager viewPager=findViewById(R.id.container);\n viewPager.setAdapter(adapter);\n TabLayout tableLayout= findViewById(R.id.tabs);\n tableLayout.setupWithViewPager(viewPager);\n tableLayout.getTabAt(0).setIcon(R.drawable.ic_your_voice);\n tableLayout.getTabAt(1).setIcon(R.drawable.ic_to_do_later);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.activity_tab_nd, container, false);\n }",
"private void initViews() {\n mDatabaseHandler = DatabaseHandler.getInstance(HomeActivity.this);\n Toolbar toolbar = (Toolbar) findViewById(R.id.activity_home_toolbar);\n setSupportActionBar(toolbar);\n mFab = (FloatingActionButton) findViewById(R.id.activity_home_fab);\n mMonthsList = new ArrayList<>();\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\r\n\t\t\r\n\t\tgetActivity().getActionBar();\r\n\r\n\t\tmRoot = inflater.inflate(R.layout.mopwheathome, null);\r\n\t\t\r\n\t\tmTabHost = (FragmentTabHost)mRoot.findViewById(android.R.id.tabhost);\r\n\t\tmTabHost.setup(getActivity(),getChildFragmentManager(), R.id.realtabcontent);\r\n\r\n\t\tmTabHost.addTab(mTabHost.newTabSpec(\"0\").setIndicator(\"Demo Farmer\"),\r\n\t\t\t\tDemoFarmer.class, null);\r\n\t\t\r\n\t\tmTabHost.addTab(mTabHost.newTabSpec(\"1\").setIndicator(\"Observations\"),\r\n\t\t\t\tObservations.class, null);\r\n\t\t\r\n\t\t for(int i=0;i<mTabHost.getTabWidget().getChildCount();i++)\r\n\t\t {\r\n\t\t\t \r\n\t\t\t mTabHost.getTabWidget().getChildAt(i).setBackgroundColor(Color.parseColor(\"#96E0D2\"));\r\n\t\t\t \r\n\t\t } \r\n\t\t mTabHost.getTabWidget().getChildAt(Integer.parseInt(\"0\")).setBackgroundColor(Color.parseColor(\"#65D2BD\"));\r\n\t\t \r\n\t\t mTabHost.setOnTabChangedListener(new OnTabChangeListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onTabChanged(String tabId) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Activity.INPUT_METHOD_SERVICE);\r\n\t\t\t\t imm.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);\r\n\t\t\t\t */\r\n\t\t\t\t\t for(int i=0;i<mTabHost.getTabWidget().getChildCount();i++)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t mTabHost.getTabWidget().getChildAt(i).setBackgroundColor(Color.parseColor(\"#96E0D2\"));\r\n\t\t\t\t\t } \r\n\t\t\t\t\t mTabHost.getTabWidget().getChildAt(Integer.parseInt(tabId)).setBackgroundColor(Color.parseColor(\"#65D2BD\"));\r\n\t\t\t\t}\r\n\t\t\t});\t\t\t\t\t \r\n\t\t\t\r\n\t\t\treturn mRoot;\r\n\t}",
"private void initViews() {\n setActionBarTitle(R.string.my_energy_metabolism);\n mViewPager = (CustomViewPager) findViewById(R.id.viewPager);\n }",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\t\tBundle savedInstanceState) {\n\t\t\tint position;\n\t\t\tBundle args = getArguments();\n\t\t\tposition = args.getInt(ARG_OBJECT);\n\t\t\t// }\n\n\t\t\tint tabLayout = 0;\n\t\t\tswitch (position) {\n\t\t\tcase 0:\n\t\t\t\ttabLayout = R.layout.pagina1;\n\t\t\t\tnView = 0;\n\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\ttabLayout = R.layout.pagina2;\n\t\t\t\tnView = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tView rootView = inflater.inflate(tabLayout, container, false);\n\n\t\t\treturn rootView;\n\t\t}",
"private void setTab() {\n\t\tTabHost.TabSpec showSpec = host.newTabSpec(ShowFragment.TAG);\r\n\t\tshowSpec.setIndicator(showLayout);\r\n\t\tshowSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(showSpec);\r\n\r\n\t\tTabHost.TabSpec addSpec = host.newTabSpec(AddRecordFrag.TAG);\r\n\t\taddSpec.setIndicator(addLayout);\r\n\t\taddSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(addSpec);\r\n\r\n\t\tTabHost.TabSpec chartSpec = host.newTabSpec(ChartShowFrag.TAG);\r\n\t\tchartSpec.setIndicator(chartLayout);\r\n\t\tchartSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(chartSpec);\r\n\t}",
"private void initialiseTabHost(Bundle args) {\n\t\tmTabHost = (TabHost)findViewById(android.R.id.tabhost);\n mTabHost.setup();\n TabInfo tabInfo = null;\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab1\").setIndicator(\"Waveform\"), ( tabInfo = new TabInfo(\"Tab1\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab2\").setIndicator(\"FFT\"), ( tabInfo = new TabInfo(\"Tab2\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab3\").setIndicator(\"AC\"), ( tabInfo = new TabInfo(\"Tab3\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab4\").setIndicator(\"Pitch\"), ( tabInfo = new TabInfo(\"Tab4\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n // Default to first tab\n this.onTabChanged(\"Tab1\");\n //\n mTabHost.setOnTabChangedListener(this);\n\t}",
"private void initializeViews() {\n avatarView = (AvatarView) findViewById(R.id.avatarImage);\n userNameText = (TextView) findViewById(R.id.user_profile_name);\n userJoinedText = (TextView) findViewById(R.id.user_date_joined);\n followingButton = (Button) findViewById(R.id.following_btn);\n backButton = (ImageButton) findViewById(R.id.back_button);\n settingButton = (ImageButton) findViewById(R.id.settings_button);\n cameraButton = (ImageButton) findViewById(R.id.camera_button);\n\n cameraButton.setVisibility(View.GONE);\n settingButton.setVisibility(View.GONE);\n\n viewPager = (ViewPager) findViewById(R.id.viewpager);\n setupViewPager(viewPager);\n\n tabLayout = (TabLayout) findViewById(R.id.tabs);\n tabLayout.setupWithViewPager(viewPager);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_listas, container, false);\n unbinder = ButterKnife.bind(this, view);\n //ViewPager viewPager = (ViewPager) view.findViewById(R.id.viewpager);\n setupViewPager(viewPager);\n // Set Tabs inside Toolbar\n //TabLayout tabs = (TabLayout) view.findViewById(R.id.tabs);\n tabs.setupWithViewPager(viewPager);\n //setupViewPager2(viewpager);\n // tabs.setupWithViewPager(viewpager);\n return view;\n\n }",
"private void setupViewPager(ViewPager viewpager){\n pokearticle.ViewPagerAdapter adapter = new pokearticle.ViewPagerAdapter(\n getSupportFragmentManager());\n if(tab2 == null && tab3 == null){\n tab1 = new TabActivity1();\n tab2 = new TabActivity2();\n tab3 = new TabActivity3();\n\n setupTab1();\n setupTab2();\n setupTab3();\n\n }\n else if(tab3==null){\n setupTab3();\n }\n\n\n adapter.addFragment(tab1, \"Stats\");\n adapter.addFragment(tab2, \"Overview\");\n adapter.addFragment(tab3, \"Articles\");\n\n\n viewpager.setAdapter(adapter);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_login);\n Button button = (Button)findViewById(R.id.button);\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n toolbar.setVisibility(View.GONE);\n setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n\n // Create the adapter that will return a fragment for each of the three\n // primary sections of the activity.\n mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());\n\n // Set up the ViewPager with the sections adapter.\n\n mViewPager = (ViewPager) findViewById(R.id.container);\n mViewPager.setPageTransformer(false, new SlideUpTransformer());\n mViewPager.setAdapter(mSectionsPagerAdapter);\n\n TabLayout tabLayout = (TabLayout) findViewById(R.id.tab_layout);\n tabLayout.setupWithViewPager(mViewPager); //hubungkan viewpager dengan tab\n //endregion\n\n }",
"private void initView() {\n\t\tbackIV = (ImageView) findViewById(R.id.bar_icon);\r\n\t\ttitleTV = (TextView) findViewById(R.id.bar_title);\r\n\t\tleftTV = (TextView) findViewById(R.id.bar_left);\r\n\t\trightTV = (TextView) findViewById(R.id.bar_right);\r\n\t\tbarLayout = (LinearLayout) findViewById(R.id.bar_layout);\r\n\t\t// backIV.setVisibility(View.GONE);\r\n\t\tbackIV.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tdl.open();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbackIV.setImageDrawable(getResources().getDrawable(R.drawable.iconf));\r\n\t\tbackIV.setVisibility(View.VISIBLE);\r\n\t\t// barLayout.setVisibility(View.GONE);\r\n\t\thost = (TabHost) findViewById(R.id.tabhost);\r\n\t\thost.setup();\r\n\t\tcreateView();\r\n\t\tTabHost.OnTabChangeListener listener = new TabHost.OnTabChangeListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onTabChanged(String tabId) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tFragmentManager manager = getFragmentManager();\r\n\t\t\t\tshowFragment = (ShowFragment) manager\r\n\t\t\t\t\t\t.findFragmentByTag(ShowFragment.TAG);\r\n\t\t\t\taddRecordFrag = (AddRecordFrag) manager\r\n\t\t\t\t\t\t.findFragmentByTag(AddRecordFrag.TAG);\r\n\t\t\t\tchartShowFrag = (ChartShowFrag) manager\r\n\t\t\t\t\t\t.findFragmentByTag(ChartShowFrag.TAG);\r\n\t\t\t\tfTransaction = manager.beginTransaction();\r\n\t\t\t\tif (showFragment != null) {\r\n\t\t\t\t\tfTransaction.detach(showFragment);\r\n\t\t\t\t}\r\n\t\t\t\tif (addRecordFrag != null) {\r\n\t\t\t\t\tfTransaction.detach(addRecordFrag);\r\n\t\t\t\t}\r\n\t\t\t\tif (chartShowFrag != null) {\r\n\t\t\t\t\tfTransaction.detach(chartShowFrag);\r\n\t\t\t\t}\r\n\t\t\t\tif (tabId.equalsIgnoreCase(ShowFragment.TAG)) {\r\n\t\t\t\t\tsetShow();\r\n\t\t\t\t\tcurrent = SHOW;\r\n\t\t\t\t} else if (tabId.equalsIgnoreCase(AddRecordFrag.TAG)) {\r\n\t\t\t\t\tsetAddRecord();\r\n\t\t\t\t\tcurrent = ADD;\r\n\t\t\t\t} else if (tabId.equalsIgnoreCase(ChartShowFrag.TAG)) {\r\n\t\t\t\t\tsetChartShow();\r\n\t\t\t\t\tcurrent = CHART;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tswitch (current) {\r\n\t\t\t\t\tcase SHOW:\r\n\t\t\t\t\t\tsetShow();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase ADD:\r\n\t\t\t\t\t\tsetAddRecord();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase CHART:\r\n\t\t\t\t\t\tsetChartShow();\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\tfTransaction.commit();\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\thost.setOnTabChangedListener(listener);\r\n\t\thost.setCurrentTab(current);\r\n\t\tsetTab();\r\n\r\n\t}",
"@Override\n\tpublic void onViewCreated(View view, Bundle savedInstanceState)\n {\n\t\tsuper.onViewCreated(view, savedInstanceState);\n\t\t\n\t\tfinal RuntimeApplication runtimeApp = new RuntimeApplication();\n// \t\t\t(RuntimeApplication) this.getActivity().getApplication();\n\t\t\n\t\tfinal int color;\n\t\tif(runtimeApp.switcher!=null)\n\t\tcolor= runtimeApp.switcher.getSelectedColorSwitcher();\n\t\telse color = Color.parseColor(\"#ffffff\");\n\t\tString[] tabNames = {\"Near\", \"Featured\", \"Price\"};\n TabHeader tabHeader = (TabHeader) this.getActivity().findViewById(R.id.tabHeader);\n tabHeader.setOnTabHeaderListener(this);\n tabHeader.setTab(tabNames, R.layout.tab_entry, R.id.btnTab, LayoutConfig.INNER_TAB_WEIGHT);\n \n // set the empty view colors when the list doesnt show any data.\n TextView emptyView = (TextView) this.getActivity().findViewById(R.id.tvEmpty);\n TextTint.tintTextView(this.getActivity(), emptyView, color);\n \n \n createSlider(runtimeApp.globalEntryListSlider);\n if(runtimeApp.globalEntryListApartments!=null)\n if(runtimeApp.globalEntryListApartments.size() == 0)\n {\n \tdownloadApartmentsData();\n }\n else\n {\n \ttabHeader.setSelectedTab(selectedIndex);\n \tsetListDataTab(runtimeApp.globalEntryListApartments, selectedIndex);\n } \n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_login, container, false);\n Toolbar toolbar = (Toolbar)view.findViewById(R.id.toolbarlogin);\n\n tabLayout = (TabLayout)view.findViewById(R.id.tablogin);\n tabLayout.setupWithViewPager(viewPager);\n\n viewPager = (ViewPager)view.findViewById(R.id.viewpagerlogin);\n\n ViewPagerAdapterLogin adapter = new ViewPagerAdapterLogin(getFragmentManager());\n adapter.AddFragment(new LoginPinFragment(),\"PIN\");\n adapter.AddFragment(new LoginPasswordFragment(),\"PASSWORD\");\n viewPager.setAdapter(adapter);\n tabLayout.setupWithViewPager(viewPager);\n tabLayout.setTabTextColors(getResources().getColor(R.color.colortextbg), getResources().getColor(R.color.colorPrimary));\n return view;\n }",
"@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n mViewPager = (ViewPager) view.findViewById(R.id.viewpager);\n mViewPager.setAdapter(new TabsPagerAdapter(getActivity().getSupportFragmentManager()));\n mViewPager.setOffscreenPageLimit(0);\n\n\n\n // Give the SlidingTabLayout the ViewPager, this must be done AFTER the ViewPager has had\n // it's PagerAdapter set.\n mSlidingTabLayout = (SlidingTabLayout) view.findViewById(R.id.sliding_tabs);\n //mSlidingTabLayout.setCustomTabView(R.layout.custom_tab_title, R.id.tabtext);\n\n mSlidingTabLayout.setDividerColors(Color.parseColor(\"#EEEEEE\"));\n TypedValue tv = new TypedValue();\n if (getActivity().getApplicationContext().getTheme().resolveAttribute(android.R.attr.actionBarSize, tv, true))\n {\n actionBarHeight = TypedValue.complexToDimensionPixelSize(tv.data, getActivity().getResources().getDisplayMetrics());\n }\n mSlidingTabLayout.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, actionBarHeight));\n mSlidingTabLayout.setSelectedIndicatorColors(Color.parseColor(\"#d32f2f\"));\n mSlidingTabLayout.setBackgroundColor(Color.parseColor(\"#FFFFFF\"));\n mSlidingTabLayout.setCustomTabView(R.layout.tab_custom_layout, 0);\n\n mSlidingTabLayout.setViewPager(mViewPager);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_favourite_fragment_view_pager, container, false);\n viewPager = (ViewPager)view.findViewById(R.id.viewpager1);\n setupViewPager(viewPager);\n tabLayout = (TabLayout) view.findViewById(R.id.tabs1);\n tabLayout.setupWithViewPager(viewPager);\n Typeface typeface=Typeface.createFromAsset(context.getAssets(), getString(R.string.custom_font));\n TextView tabOne=(TextView)LayoutInflater.from(context).inflate(R.layout.custom_tab,null);\n tabOne.setText(getString(R.string.stories));\n tabOne.setTypeface(typeface);\n TextView tabTwo=(TextView)LayoutInflater.from(context).inflate(R.layout.custom_tab,null);\n tabTwo.setText(getString(R.string.quotes));\n tabTwo.setTypeface(typeface);\n tabLayout.getTabAt(0).setCustomView(tabOne);\n tabLayout.getTabAt(1).setCustomView(tabTwo);\n return view;\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.main);\n\t\tmContext = this;\n\n\t\tinitView();\n\n\t\tgestureDetector = new GestureDetector(new TabHostTouch());\n\t\tnew View.OnTouchListener() {\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tif (gestureDetector.onTouchEvent(event)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\n\t\tframeLayout = mTabHost.getTabContentView();\n\t}",
"@Override protected void initViews() {\n\t\tsetFragments(F_PopularFragment.newInstance(T_HomeActivity.this), F_TimelineFragment.newInstance(T_HomeActivity.this));\n\t}",
"private void setupViewPager() {\n SectionsPagerAdapter adapter = new SectionsPagerAdapter(getSupportFragmentManager());\n adapter.addFragment(new MainFragment());\n\n mViewPager.setAdapter(adapter);\n\n TabLayout tabLayout = (TabLayout) findViewById(R.id.tabs);\n tabLayout.setupWithViewPager(mViewPager);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_services,container, false);\n tabs = (TabLayout)v.findViewById(R.id.tablayout);\n tabpager = (ViewPager)v.findViewById(R.id.view_pager);\n\n\n // fetch child categories from this category type\n this.fetchCategories(this.type);\n\n\n\n return v;\n }",
"private IcsLinearLayout createTabLayout() {\n\t\tfinal IcsLinearLayout tabLayout = (IcsLinearLayout) LayoutInflater\n\t\t\t\t.from(getContext()).inflate(\n\t\t\t\t\t\tR.layout.abs__action_bar_tab_bar_view, null);\n\t\ttabLayout.setMeasureWithLargestChildEnabled(true);\n\t\ttabLayout.setLayoutParams(new LinearLayout.LayoutParams(\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT,\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.MATCH_PARENT));\n\t\treturn tabLayout;\n\t}",
"private void initViewPager() {\n ViewPager viewPager = (ViewPager) findViewById(R.id.viewpager);\n if (viewPager != null) {\n viewPager.setAdapter(new MainPagerAdapter(getFragmentManager()));\n }\n\n // Give the TabLayout the ViewPager\n TabLayout tabLayout = (TabLayout) findViewById(R.id.sliding_tabs);\n if (tabLayout != null) {\n tabLayout.setTabMode(TabLayout.MODE_FIXED);\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n tabLayout.setupWithViewPager(viewPager);\n }\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\tinstance=this;\r\n\t\t\r\n\t\tIntent intent = getIntent();\r\n\t\tuno=SharedPrefsUtil.getValue(this, \"CommunityID\", \"\");\r\n\r\n//\t\tsetTheme(R.style.CustomTheme);\r\n//\t\trequestWindowFeature(Window.FEATURE_CUSTOM_TITLE);\r\n\t\t\r\n\t\tthis.setContentView(R.layout.container);\r\n\t\t\r\n//\t\tgetWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,\r\n//\t\t\t\tR.layout.title_bar);\r\n\r\n\t\t\t\r\n\t\tmth = (CustomTabHost) findViewById(android.R.id.tabhost);\r\n\t\ttabWidget = (TabWidget) findViewById(android.R.id.tabs);\r\n\t\tmth.setOnTabChangedListener(this);\r\n\t\t\r\n\t\tcreateTab1();\r\n\t\tcreateTab2();\r\n\t\tcreateTab3();\r\n\t\tcreateTab4();\r\n\t\t\r\n\t\tgestureDetector = new GestureDetector(this);\r\n\t\tnew View.OnTouchListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\r\n\t\t\t\tif (gestureDetector.onTouchEvent(event)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_category, container, false);\n ViewPager viewPager= view.findViewById(R.id.viewPager);\n TabLayout tabLayout= view.findViewById(R.id.tabLayout);\n SectionAdapter adapter = new SectionAdapter(getChildFragmentManager(),getContext());\n viewPager.setAdapter(adapter);\n viewPager.setCurrentItem(mPosition);\n tabLayout.setupWithViewPager(viewPager);\n return view;\n }",
"private void initView() {\n\t\tsna_viewpager = (ViewPager) findViewById(R.id.sna_viewpager);\r\n\t\thost_bt = (Button) findViewById(R.id.host_bt);\r\n\t\tcomment_bt = (Button) findViewById(R.id.comment_bt);\r\n\t\tback_iv = (ImageView) findViewById(R.id.back_iv);\r\n\t\trelativeLayout_project = (RelativeLayout) findViewById(R.id.relativeLayout_project);\r\n\t\trelativeLayout_addr = (RelativeLayout) findViewById(R.id.relativeLayout_addr);\r\n\t\trelativeLayout_activity = (RelativeLayout) findViewById(R.id.relativeLayout_activity);\r\n\t\trelativeLayout_host = (RelativeLayout) findViewById(R.id.relativeLayout_host);\r\n\t\trelativeLayout_comment = (RelativeLayout) findViewById(R.id.relativeLayout_comment);\r\n\t\tll_point = (LinearLayout) findViewById(R.id.ll_point);\r\n\t\tstoyrName = (TextView) findViewById(R.id.stoyrName);\r\n\t\tstory_addr = (TextView) findViewById(R.id.story_addr);\r\n\t\t\r\n\t}",
"private void initViewPager() {\n List<Fragment> fragments = new ArrayList<>();\n FragmentManager fragmentManager = getSupportFragmentManager();\n ChatsFragment chatsFragment = new ChatsFragment();\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"currentUser\", currentUser);\n chatsFragment.setArguments(bundle);\n GroupsFragment groupsFragment = new GroupsFragment();\n groupsFragment.setArguments(bundle);\n ContactsFragment contactsFragment = new ContactsFragment();\n contactsFragment.setArguments(bundle);\n fragments.add(chatsFragment);\n fragments.add(contactsFragment);\n fragments.add(groupsFragment);\n List<String> titles = new ArrayList<>();\n titles.add(\"Chats\");\n titles.add(\"Contacts\");\n titles.add(\"Groups\");\n TabsAdapter tabsAdapter = new TabsAdapter(fragmentManager, fragments, titles);\n viewPager.setAdapter(tabsAdapter);\n tabLayout.setupWithViewPager(viewPager);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View itemView= inflater.inflate(R.layout.fragment_home, container, false);\n initTab(itemView);\n return itemView;\n }",
"private void setupViewPager() {\n SectionPagerAdapter sectionPagerAdapter = new SectionPagerAdapter(getSupportFragmentManager());\n sectionPagerAdapter.addFragment(new CameraFragment());\n sectionPagerAdapter.addFragment(new HomeFragment());\n sectionPagerAdapter.addFragment(new MessagesFragment());\n\n mViewPager.setAdapter(sectionPagerAdapter);\n\n // setting up the top tab bar\n tabLayout.setupWithViewPager(mViewPager);\n\n tabLayout.getTabAt(0).setIcon(R.drawable.ic_camera);\n tabLayout.getTabAt(1).setIcon(R.drawable.instagram_logo);\n tabLayout.getTabAt(2).setIcon(R.drawable.ic_arrow);\n\n // Default fragment is the feed fragment\n mViewPager.setCurrentItem(1);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n View root = inflater.inflate(R.layout.fragment_trips, container, false);\n FragmentTabHost tabHost = root.findViewById(android.R.id.tabhost);\n tabHost.setup(getActivity(), getChildFragmentManager(), android.R.id.tabcontent);\n\n Bundle arg1 = new Bundle();\n arg1.putString(ListTripsFragment.TRIP_TYPE_KEY, \"Confirmed\");\n tabHost.addTab(tabHost.newTabSpec(\"ConfirmedTab\").setIndicator(\"Confirmed\"),\n ListTripsFragment.class, arg1);\n\n Bundle arg2 = new Bundle();\n arg2.putString(ListTripsFragment.TRIP_TYPE_KEY, \"Pending\");\n tabHost.addTab(tabHost.newTabSpec(\"PendingTab\").setIndicator(\"Pending\"),\n ListTripsFragment.class, arg2);\n\n Bundle arg3 = new Bundle();\n arg3.putString(ListTripsFragment.TRIP_TYPE_KEY, \"Posted\");\n tabHost.addTab(tabHost.newTabSpec(\"PostedTab\").setIndicator(\"Posted\"),\n ListTripsFragment.class, arg3);\n\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n\n viewPager = (ViewPager) view.findViewById(R.id.viewPager);\n tabLayout = (TabLayout) view.findViewById(R.id.tabLayout);\n adapter = new TabAdapter(getActivity().getSupportFragmentManager());\n adapter.addFragment(new TabFragment2(), \"Following\");\n adapter.addFragment(new TabFragment1(), \"For You\");\n\n\n viewPager.setAdapter(adapter);\n tabLayout.setupWithViewPager(viewPager);\n\n return view;\n }",
"private void createLayout () {\n \t\n \tBorderPane border = new BorderPane();\n \t\n \t\n \t tabPane = new TabPane();\n ArrayList <ScrollPane> tabs = new ArrayList <ScrollPane>();\n \t\n //create column 1 - need to refactor this and make more generic\n TilePane col1 = new TilePane();\n \tcol1.setPrefColumns(2);\n \tcol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol1.setAlignment(Pos.TOP_LEFT);\n \tcol1.getChildren().addAll(createElements ());\n \tScrollPane scrollCol1 = new ScrollPane(col1);\n \ttabs.add(scrollCol1);\n \t\n \tTilePane col2 = new TilePane();\n \tcol2.setPrefColumns(2);\n \tcol2.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol2.setAlignment(Pos.TOP_LEFT);\n \tcol2.getChildren().addAll(createElements ());\n \tScrollPane scrollCol2 = new ScrollPane(col2);\n \ttabs.add(scrollCol2);\n \t\n \t\n \t\n for (int i = 0; i < tabs.size(); i++) {\n Tab tab = new Tab();\n String tabLabel = \"Col-\" + i;\n tab.setText(tabLabel);\n keywordsList.put(tabLabel, new ArrayList <String>());\n \n tab.setContent(tabs.get(i));\n tabPane.getTabs().add(tab);\n }\n \t\n \t\n \t\n \t\n \t\n \t\n //System.out.println(controller.getScene());\n border.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n border.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n ToolBar toolbar = createtoolBar();\n toolbar.setPrefHeight(50);\n \n border.setTop(toolbar);\n\t\t\n\n\t scrollCol1.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n\t scrollCol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n border.setCenter(tabPane);\n\t Group root = (Group)this.getRoot();\n root.getChildren().add(border);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_tabbed, container, false);\n\n ButterKnife.bind(this, root);\n\n PagerAdapter adapter = new PagerAdapter(\n getActivity().getSupportFragmentManager(),\n PreviousProjectFragment.class,\n CurrentProjectFragment.class\n );\n adapter.setTitles(getString(R.string.completed), getString(R.string.ongoing));\n viewPager.setAdapter(adapter);\n\n tabLayout.setupWithViewPager(viewPager);\n\n return root;\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.tab);\n mTabHost = getTabHost();\n final TabWidget tabWidget = mTabHost.getTabWidget();\n tabWidget.setStripEnabled(false);// 圆角边线不启用\n //添加n个tab选项卡,定义他们的tab名,指示名,目标屏对应的类\n mTabHost.addTab(mTabHost.newTabSpec(\"TAG1\").setIndicator(\"0\").setContent(new Intent(this, SearchActivity.class)));\n mTabHost.addTab(mTabHost.newTabSpec(\"TAG2\").setIndicator(\"1\").setContent(new Intent(this, MapActivity.class)));\n mTabHost.addTab(mTabHost.newTabSpec(\"TAG3\").setIndicator(\"2\").setContent(new Intent(this, MyActivity.class)));\n // 视觉上,用单选按钮替代TabWidget\n main_radio = (RadioGroup) findViewById(R.id.main_radio);\n tab_icon_weixin = (RadioButton) findViewById(R.id.tab_icon_weixin);\n tab_icon_address = (RadioButton) findViewById(R.id.tab_icon_address);\n tab_icon_find = (RadioButton) findViewById(R.id.tab_icon_find);\n main_radio.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int id) {\n if (id == tab_icon_weixin.getId()) {\n mTabHost.setCurrentTab(0);\n } else if (id == tab_icon_address.getId()) {\n mTabHost.setCurrentTab(1);\n } else if (id == tab_icon_find.getId()) {\n mTabHost.setCurrentTab(2);\n }\n }\n });\n\n // 设置当前显示哪一个标签\n mTabHost.setCurrentTab(0);\n // 遍历tabWidget每个标签,设置背景图片 无\n for (int i = 0; i < tabWidget.getChildCount(); i++) {\n View vv = tabWidget.getChildAt(i);\n vv.getLayoutParams().height = 45;\n // vv.getLayoutParams().width = 65;\n vv.setBackgroundDrawable(null);\n }\n // findViewById(R.id.tab_icon_brand).setOnClickListener(this);\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_pembayaran, container, false);\r\n ((MainActivity)getActivity()).enableViews(false);\r\n TextView mTitle = (TextView) getActivity().findViewById(R.id.toolbar_title);\r\n getActivity().setTitle(\"\");\r\n mTitle.setText(\"Pembayaran\");\r\n\r\n tabLayout = (TabLayout) view.findViewById(R.id.tab_pembayaran);\r\n viewPager = (ViewPager) view.findViewById(R.id.view_pager_pembayaran);\r\n\r\n viewPager.setAdapter(new PembayaranAdapter(getChildFragmentManager()));\r\n tabLayout.setupWithViewPager(viewPager);\r\n\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_home, container, false);\n\n viewPager = (ViewPager) view.findViewById(R.id.view_pager);\n tabLayout = (TabLayout) view.findViewById(R.id.tab_layout);\n FragmentManager manager = getChildFragmentManager();\n PagerAdapter adapter = new com.example.quanla.book.adapters.PagerAdapter(manager);\n viewPager.setAdapter(adapter);\n tabLayout.setupWithViewPager(viewPager);\n viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(tabLayout));\n tabLayout.setTabsFromPagerAdapter(adapter);\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_network, container, false);\n tabAR=(TabLayout)view. findViewById(R.id.tablayoutAR);\n tab1AR=(TabItem)view. findViewById(R.id.tabitem1AR);\n tab2AR=(TabItem)view. findViewById(R.id.tabitem2AR);\n viewpgrARN=(ViewPager)view. findViewById(R.id.viewPagerARNB);\n pageAdapterARN = new PageAdapterNei(getFragmentManager(), tabAR.getTabCount());\n viewpgrARN.setAdapter(pageAdapterARN);\n tabAR.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n\n viewpgrARN.setCurrentItem(tab.getPosition());\n if(tab.getPosition()==0||tab.getPosition()==1)\n {\n pageAdapterARN.notifyDataSetChanged();\n }\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n\n }\n });\n\n viewpgrARN.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(tabAR));\n\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_list, container, false);\n Toolbar toolbar = (Toolbar) view.findViewById(R.id.toolbar);\n\n //for crate home button\n AppCompatActivity activity = (AppCompatActivity) getActivity();\n activity.setSupportActionBar(toolbar);\n tabLayout = (TabLayout) view.findViewById(R.id.display_tabs);\n tabLayout.addTab(tabLayout.newTab());\n tabLayout.addTab(tabLayout.newTab());\n tabLayout.addTab(tabLayout.newTab());\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n\n viewPager = (ViewPager) view.findViewById(R.id.display_pager);\n PagerAdapter pagerAdapter = new PagerAdapter(getFragmentManager(), tabLayout.getTabCount());\n viewPager.setAdapter(pagerAdapter);\n tabLayout.setupWithViewPager(viewPager);\n return view;\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_home, container, false);\n tabLayout = view.findViewById(R.id.tabs);\n viewPager = view.findViewById(R.id.viewpager);\n setViewPager();\n return view;\n\n\n }",
"@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n adapter = new ViewPagerAdapter(getChildFragmentManager(),Titles,Numboftabs);\n\n // Assigning ViewPager View and setting the adapter\n pager = (ViewPager) getView().findViewById(R.id.pager);\n pager.setAdapter(adapter);\n\n // Assiging the Sliding Tab Layout View\n tabs = (SlidingTabLayout) getView().findViewById(R.id.tabs);\n tabs.setDistributeEvenly(true); // To make the Tabs Fixed set this true, This makes the tabs Space Evenly in Available width\n\n // Setting Custom Color for the Scroll bar indicator of the Tab View\n tabs.setCustomTabColorizer(new SlidingTabLayout.TabColorizer() {\n @Override\n public int getIndicatorColor(int position) {\n return getResources().getColor(R.color.tabsScrollColor);\n }\n });\n\n // Setting the ViewPager For the SlidingTabsLayout\n tabs.setViewPager(pager);\n }",
"private void findViews() {\n tabLayout = (TabLayout) findViewById(R.id.tab_layout);\r\n viewPager = (ViewPager) findViewById(R.id.view_pager);\r\n }",
"public void initializeTabs() {\n\n\t\tTabHost.TabSpec spec;\n\n\t\tspec = mTabHost.newTabSpec(Const.EVENTS);\n\t\tmTabHost.setCurrentTab(0);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_events_selector));\n\t\tmTabHost.addTab(spec);\n\n\t\tmTabHost.setCurrentTab(1);\n\t\tspec = mTabHost.newTabSpec(Const.FEED);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_feed_selector));\n\t\tmTabHost.addTab(spec);\n\n\t\tmTabHost.setCurrentTab(2);\n\t\tspec = mTabHost.newTabSpec(Const.INFO);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_info_selector));\n\t\tmTabHost.addTab(spec);\n\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n tabHost = getTabHost();\n\n \ttabHost.addTab(tabHost.newTabSpec(\"tab_tv_guide\").setIndicator(\"TV Guide\", getResources().getDrawable(/*R.drawable.icon_tvguide*/android.R.drawable.ic_menu_gallery)).setContent(R.id.tab_tv_guide));\n \ttabHost.addTab(tabHost.newTabSpec(\"tab_popular\").setIndicator(\"TBD\", getResources().getDrawable(/*R.drawable.icon_popular*/android.R.drawable.ic_menu_compass)).setContent(R.id.tab_popular));\n \ttabHost.addTab(tabHost.newTabSpec(\"tab_upcoming\").setIndicator(\"TBD\", getResources().getDrawable(/*R.drawable.icon_remote*/android.R.drawable.ic_menu_camera)).setContent(R.id.tab_upcoming));\n \ttabHost.addTab(tabHost.newTabSpec(\"tab_my_shows\").setIndicator(\"TBD\", getResources().getDrawable(/*R.drawable.icon_myguide*/android.R.drawable.ic_menu_directions)).setContent(R.id.tab_my_shows));\n \n \ttabHost.setCurrentTab(0);\n \n \ttvGuideList = (ListView) findViewById(R.id.list_tv_guide);\n \tbtnDate = (Button) findViewById(R.id.btn_tv_guide_date);\n \tbtnPrevious = (Button) findViewById(R.id.btn_tv_guide_prev);\n \tbtnNext = (Button) findViewById(R.id.btn_tv_guide_next);\n \t\n \tbtnPrevious.setText(\"<\");\n \tbtnNext.setText(\">\");\n \t \t\n \ttvGuideList.setDivider(null);\n \t\n \tTextView emptyText = new TextView(this);\n \temptyText.setText(\"No Program Information\");\n \ttvGuideList.setEmptyView(emptyText);\n \t\n \terrorCause = 0;\n \terrorAdditionalInfo = new String();\n \t\n \ttvGuide = new IceTvGuide(this);\n \t\n \ttvGuideList.setOnItemClickListener(new OnItemClickListener()\n \t{\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> adapterView, View view, int arg2, long id)\n\t\t\t{\n\t\t\t\tif (id >= 0)\n\t\t\t\t{\n\t\t\t\t\tIceTvGuideListProgram\ttestView = (IceTvGuideListProgram)view;\n\t\t \tBundle bundle = new Bundle();\n\t\t \tIntent i = new Intent(IceTV.this, IceTvProgramView.class);\n\t\t \ttestView.GetProgram().SaveToBundle(bundle);\n\t\t\t \ti.putExtras(bundle);\n\t\t\t \tstartActivity(i);\n\t\t\t\t}\n\t\t\t}\n \t});\n \t\n \tRefreshDateButton();\n\n \tbtnDate.setOnClickListener(new OnClickListener()\n \t{\n \t\t@Override\n \t\tpublic void onClick(View clicked)\n \t\t{\n \t\t\tshowDialog(DATE_DIALOG_ID);\n \t\t}\n \t});\n \t\n \tbtnNext.setOnClickListener(new OnClickListener()\n \t{\n \t\t@Override\n \t\tpublic void onClick(View clicked)\n \t\t{\n \t\t\tDate newDate = new Date();\n \t\t\tnewDate.setTime(tvGuide.GetCurrentDate().getTime() + (24 * 60 * 60 * 1000));\n \t\t\ttvGuide.SetCurrentDate(newDate);\n \t\t\tRefreshDateButton();\n \t\t\tRefreshTvGuide();\n \t\t}\n \t});\n\n \tbtnPrevious.setOnClickListener(new OnClickListener()\n \t{\n \t\t@Override\n \t\tpublic void onClick(View clicked)\n \t\t{\n \t\t\tDate newDate = new Date();\n \t\t\tnewDate.setTime(tvGuide.GetCurrentDate().getTime() - (24 * 60 * 60 * 1000));\n \t\t\ttvGuide.SetCurrentDate(newDate);\n \t\t\tRefreshDateButton();\n \t\t\tRefreshTvGuide();\n \t\t}\n \t});\n \t\n \t// If the username and password have not been set, open the settings page automatically.\n \t//\n \ttvGuide.ClearCachedGuides();\n\n \tif (IceTvSettings.UsernameAndPasswordSet(this))\n \t{\n \t\tRefreshTvGuide();\n \t}\n \telse\n \t{\n \t\tOpenSettings();\n \t}\n }",
"@Override\n protected void initView() {\n mviewpager = rootView.findViewById(R.id.find_viewpager);\n\n mTabStrip=rootView.findViewById(R.id.tab_strip_find);\n fabu=rootView.findViewById(R.id.message);\n mTabStrip.setTextColorResource(R.color.white);\n mTabStrip.setIndicatorColorResource(R.color.white);\n mTabStrip.setDividerColor(Color.TRANSPARENT);\n mTabStrip.setTextSelectedColorResource(R.color.white);\n mTabStrip.setTextSize(getResources().getDimensionPixelSize(R.dimen.h8));\n mTabStrip.setTextSelectedSize(getResources().getDimensionPixelSize(R.dimen.h10));\n mTabStrip.setUnderlineHeight(1);\n\n\n finAdapter = new FindPagerAdapter2(getActivity());\n mviewpager.setAdapter(finAdapter);\n mTabStrip.setViewPager(mviewpager);\n\n\n\n\n }",
"private void setupTab() {\n setLayout(new BorderLayout());\n JSplitPane mainSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);\n mainSplit.setDividerLocation(160);\n mainSplit.setBorder(BorderFactory.createEmptyBorder());\n\n // set up the MBean tree panel (left pane)\n tree = new XTree(this);\n tree.setCellRenderer(new XTreeRenderer());\n tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);\n tree.addTreeSelectionListener(this);\n tree.addTreeWillExpandListener(this);\n tree.addMouseListener(ml);\n JScrollPane theScrollPane = new JScrollPane(tree, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,\n JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n JPanel treePanel = new JPanel(new BorderLayout());\n treePanel.add(theScrollPane, BorderLayout.CENTER);\n mainSplit.add(treePanel, JSplitPane.LEFT, 0);\n\n // set up the MBean sheet panel (right pane)\n viewer = new XDataViewer(this);\n sheet = new XSheet(this);\n mainSplit.add(sheet, JSplitPane.RIGHT, 0);\n\n add(mainSplit);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_timetable, container, false);\n\n getActivity().setTitle(\"Timetable\");\n // toolbar = (Toolbar) view.findViewById(R.id.toolbar);\n// loadingIndicator = (ProgressBar) view.findViewById(R.id.pb_loading_indicator);\n// loadingIndicator.setVisibility(View.VISIBLE);\n\n loadingIndicator = (ProgressBar) view.findViewById(R.id.pb_loading_indicator);\n\n loadingIndicator.setVisibility(View.VISIBLE);\n\n viewPager = (ViewPager) view.findViewById(R.id.viewpager);\n setupViewPager(viewPager);\n\n tabLayout = (TabLayout) view.findViewById(R.id.tabs);\n tabLayout.setupWithViewPager(viewPager);\n\n\n\n return view;\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"public void initTab(ArrayList<CircuitUsageModel> modelList) {\n\t\ttabHost = getTabHost();\n\t\tResources res = getResources();\n\n\t\t// energy\n\t\tenergySpec = tabHost.newTabSpec(\"energy\");\n\t\tenergySpec.setIndicator(getString(R.string.energy),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_energy));\n\t\t// power\n\t\tpowerSpec = tabHost.newTabSpec(\"power\");\n\t\tpowerSpec.setIndicator(getString(R.string.power),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_power));\n\t\t// credit\n\t\tcreditSpec = tabHost.newTabSpec(\"credit\");\n\t\tcreditSpec.setIndicator(getString(R.string.credit),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_credit));\n\n\t\t// set tab content\n\t\tsetTabContent(modelList);\n\t\t\n\t\t// auto refresh\n\t\tautoRefresh();\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n inflatedView = inflater.inflate(R.layout.fragment_tab3, container, false);\n return inflatedView;\n\n }",
"private void setupViewPager(ViewPager viewPager) {\n statisticsTabAdapter adapter = new statisticsTabAdapter(getSupportFragmentManager());\n adapter.addFragment(new statisticsTabOne(), \"TODAY\");\n adapter.addFragment(new statisticsTabTwo(), \"WEEK\");\n adapter.addFragment(new statisticsTabThree(), \"MONTH\");\n viewPager.setAdapter(adapter);\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_endgame_tab, container, false);\r\n getSpinnerValues(view);\r\n sets(view);\r\n return view;\r\n }",
"private void setupPager() {\n SectionsPagerAdapter pagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager(), getResources());\n ViewPager pager = findViewById(R.id.pager);\n pager.setAdapter(pagerAdapter);\n TabLayout tabLayout = findViewById(R.id.tabs);\n tabLayout.setupWithViewPager(pager);\n pager.addOnPageChangeListener(addPageChangeListener());\n }",
"@Override\n\tpublic View createTabContent(String tag) {\n\t\tView result = View.inflate(mContext, R.layout.effect_main, null);\n\t\teffectWorkspace = (GridView) (View.inflate(mContext,\n\t\t\t\tR.layout.lock_grid, null));\n\t\teffectWorkspace.setColumnWidth(Tools.dip2px(mContext, 86));\n\t\tworkspaceAdapter = new GridViewAdapter(mContext, INDEX_WORKSPACE);\n\t\teffectWorkspace.setAdapter(workspaceAdapter);\n\t\teffectWorkspace.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View v,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tIntent it = new Intent(ACTION_EFFECT_PREVIEW);\n\t\t\t\tit.putExtra(ACTION_EFFECT_PREVIEW_EXTRA_TYPE, INDEX_WORKSPACE);\n\t\t\t\tit.putExtra(ACTION_EFFECT_PREVIEW_EXTRA_INDEX, position);\n\t\t\t\tmContext.sendBroadcast(it);\n\t\t\t\tActivityManager.KillActivity();\n\t\t\t}\n\t\t});\n\t\teffectApp = (GridView) View.inflate(mContext, R.layout.lock_grid, null);\n\t\teffectApp.setColumnWidth(Tools.dip2px(mContext, 86));\n\t\tappAdaper = new GridViewAdapter(mContext, INDEX_APP);\n\t\teffectApp.setAdapter(appAdaper);\n\t\t// ViewPager\n\t\teffectGridPager = (ViewPager) result.findViewById(R.id.effectGridPager);\n\t\teffectPagerAdapter = new GridPagerAdapter(effectWorkspace, effectApp);\n\t\teffectGridPager.setAdapter(effectPagerAdapter);\n\t\teffectApp.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View v,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tIntent it = new Intent(ACTION_EFFECT_PREVIEW);\n\t\t\t\tit.putExtra(ACTION_EFFECT_PREVIEW_EXTRA_TYPE, INDEX_APP);\n\t\t\t\tit.putExtra(ACTION_EFFECT_PREVIEW_EXTRA_INDEX, position);\n\t\t\t\tmContext.sendBroadcast(it);\n\t\t\t\tActivityManager.KillActivity();\n\t\t\t}\n\t\t});\n\t\teffectGridPager.setOverScrollMode(View.OVER_SCROLL_NEVER);\n\t\tfinal RadioButton effectWorkspaceButton = (RadioButton) result\n\t\t\t\t.findViewById(R.id.btnWorkspaceEffect);\n\t\tfinal RadioButton effectAppButton = (RadioButton) result\n\t\t\t\t.findViewById(R.id.btnApplistEffect);\n\t\teffectGridPager.setOnPageChangeListener(new OnPageChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onPageSelected(int index) {\n\t\t\t\tif (index == INDEX_WORKSPACE) {\n\t\t\t\t\teffectWorkspaceButton.toggle();\n\t\t\t\t} else if (index == INDEX_APP) {\n\t\t\t\t\teffectAppButton.toggle();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\teffectWorkspaceButton.setOnClickListener(new View.OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\teffectGridPager.setCurrentItem(INDEX_WORKSPACE, true);\n\t\t\t}\n\t\t});\n\t\teffectAppButton.setOnClickListener(new View.OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\teffectGridPager.setCurrentItem(INDEX_APP, true);\n\t\t\t}\n\t\t});\n\t\tif (index != -1 && (index == 0 || index == 1)) {\n\t\t\teffectGridPager.setCurrentItem(index);\n\t\t\teffectWorkspace.setSelection(workspaceAdapter.getCurrentEffect());\n\t\t\teffectApp.setSelection(appAdaper.getCurrentEffect());\n\t\t}\n\t\tmReceiver = new BroadcastReceiver() {\n\n\t\t\t@Override\n\t\t\tpublic void onReceive(Context context, Intent intent) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (intent == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString action = intent.getAction();\n\t\t\t\tif (DEFAULT_CHANGE.equals(action)) {\n\t\t\t\t\tappAdaper.reloadDefault();\n\t\t\t\t\tworkspaceAdapter.reloadDefault();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tIntentFilter screenFilter1 = new IntentFilter();\n\t\tscreenFilter1.addAction(DEFAULT_CHANGE);\n\t\tmContext.registerReceiver(mReceiver, screenFilter1);\n\t\treturn result;\n\t}",
"private TabView createTabView(ActionBar.Tab tab, boolean forAdapter) {\n\t\t// Workaround for not being able to pass a defStyle on pre-3.0\n\t\tfinal TabView tabView = (TabView) mInflater.inflate(\n\t\t\t\tR.layout.abs__action_bar_tab, null);\n\t\ttabView.init(this, tab, forAdapter);\n\n\t\tif (forAdapter) {\n\t\t\ttabView.setBackgroundDrawable(null);\n\t\t\ttabView.setLayoutParams(new ListView.LayoutParams(\n\t\t\t\t\tandroid.view.ViewGroup.LayoutParams.MATCH_PARENT,\n\t\t\t\t\tmContentHeight));\n\t\t} else {\n\t\t\ttabView.setFocusable(true);\n\n\t\t\tif (mTabClickListener == null) {\n\t\t\t\tmTabClickListener = new TabClickListener();\n\t\t\t}\n\t\t\ttabView.setOnClickListener(mTabClickListener);\n\t\t}\n\t\treturn tabView;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_presantation, container, false);\n sessionManager = new SessionManager(getActivity());\n\n ((MainActivity) getActivity()).setTitle(\"\");\n ((MainActivity) getActivity()).setDrawerState(false);\n\n tabLayout = (TabLayout) rootView.findViewById(R.id.presantation_tab_layout);\n viewPager = (ViewPager) rootView.findViewById(R.id.presantation_view_pager);\n topAdverViewArrayList = new ArrayList<>();\n bottomAdverViewArrayList = new ArrayList<>();\n sqLiteDatabaseHandler = new SQLiteDatabaseHandler(getActivity());\n\n\n relativeLayout_Data = (RelativeLayout) rootView.findViewById(R.id.relativeLayout_Data);\n relativeLayout_forceLogin = (RelativeLayout) rootView.findViewById(R.id.relativeLayout_forceLogin);\n MainLayout = (RelativeLayout) rootView.findViewById(R.id.MainLayout);\n linear_content = (LinearLayout) rootView.findViewById(R.id.linear_content);\n\n bundle = new Bundle();\n if (sessionManager.getHeaderStatus().equalsIgnoreCase(\"1\")) {\n\n tabLayout.setTabTextColors(Color.parseColor(sessionManager.getFunTopTextColor()), Color.parseColor(sessionManager.getFunTopTextColor()));\n tabLayout.setBackgroundColor(Color.parseColor(sessionManager.getFunTopBackColor()));\n tabLayout.setSelectedTabIndicatorColor(Color.parseColor(sessionManager.getFunTopTextColor()));\n } else {\n\n tabLayout.setTabTextColors(Color.parseColor(sessionManager.getTopTextColor()), Color.parseColor(sessionManager.getTopTextColor()));\n tabLayout.setBackgroundColor(Color.parseColor(sessionManager.getTopBackColor()));\n tabLayout.setSelectedTabIndicatorColor(Color.parseColor(sessionManager.getTopTextColor()));\n }\n\n if (sessionManager.isLogin()) {\n\n relativeLayout_forceLogin.setVisibility(View.GONE);\n relativeLayout_Data.setVisibility(View.VISIBLE);\n } else {\n Log.d(\"AITL IS FORCELOGIN \", sessionManager.getIsForceLogin());\n if (sessionManager.getIsForceLogin().equalsIgnoreCase(\"1\")) {\n relativeLayout_forceLogin.setVisibility(View.VISIBLE);\n relativeLayout_Data.setVisibility(View.GONE);\n } else {\n relativeLayout_forceLogin.setVisibility(View.GONE);\n relativeLayout_Data.setVisibility(View.VISIBLE);\n }\n\n }\n\n\n pagerAdapter = new PresantaionPagerAdapter(getChildFragmentManager(), sessionManager);\n viewPager.setAdapter(pagerAdapter);\n tabLayout.setupWithViewPager(viewPager);\n viewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n\n @Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n\n }\n\n @Override\n public void onPageSelected(int position) {\n\n }\n\n @Override\n public void onPageScrollStateChanged(int state) {\n\n }\n });\n\n getAdvertiesment();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.fragment_ground, container, false);\n mAdapter=new Adapter(getChildFragmentManager());\n mViewPager=(ViewPager)mView.findViewById(R.id.ground_view_pager);\n mViewPager.setAdapter(mAdapter);\n mTabLayout=(TabLayout)mView.findViewById(R.id.ground_tab_layout);\n mTabLayout.setupWithViewPager(mViewPager);\n return mView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_person_center, container, false);\n CircleImageView headerIv = (CircleImageView) view.findViewById(R.id.head_iv);\n final MaterialTabHost tabHost = (MaterialTabHost) view.findViewById(R.id.content_tbhost);\n pager = (ViewPager) view.findViewById(R.id.person_viewpager);\n // init view pager\n initFraments();\n\n PersonViewPagerAdapter pagerAdapter = new PersonViewPagerAdapter(getChildFragmentManager());\n pager.setAdapter(pagerAdapter);\n res = getResources();\n// pager.setFocusableInTouchMode(false);\n pager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {\n @Override\n public void onPageSelected(int position) {\n // when user do a swipe the selected tab change\n tabHost.setSelectedNavigationItem(position);\n }\n });\n // insert all tabs from pagerAdapter data\n for (int i = 0; i < pagerAdapter.getCount(); i++) {\n tabHost.addTab(\n tabHost.newTab()\n .setText(pagerAdapter.getPageTitle(i))\n .setTabListener(this)\n );\n }\n\n ImageLoader loader = ImageLoader.getInstance();\n String url = Global.getmGlobalUser().getHeadIcon();\n loader.displayImage(url, headerIv);\n\n return view;\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.welcome);\n th = (TabHost) findViewById(R.id.tabHost);\n th.setup();\n th.addTab(th.newTabSpec(\"1\").setIndicator(\"eMasomo\").setContent(R.id.tab1));\n th.addTab(th.newTabSpec(\"2\").setIndicator(\"Past Papers\").setContent(R.id.tab2));\n th.addTab(th.newTabSpec(\"3\").setIndicator(\"Library\").setContent(R.id.tab3));\n th.addTab(th.newTabSpec(\"4\").setIndicator(\"Forum\").setContent(R.id.tab4));\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\n\t\ttabHost = getTabHost();\n\t\t\n\t\tcreateTab(\"abaHistorico\", \"histórico\", new Intent(getApplicationContext(), HistoricoList.class));\n\t\tcreateTab(\"abaLivro\", \"livros\", new Intent(getApplicationContext(), LivroList.class));\n\t\tcreateTab(\"abaBusca\", \"buscar\", new Intent(getApplicationContext(), Busca.class));\n\t}",
"private void addControl() {\n // Gan adapter va danh sach tab\n PagerAdapter adapter = new PagerAdapter(getSupportFragmentManager());\n // Them noi dung cac tab\n adapter.AddFragment(new TourMapTab());\n adapter.AddFragment(new TourInfoTab());\n adapter.AddFragment(new TourMapImageTab());\n // Set adapter danh sach tab\n ViewPager viewPager = ActivityManager.getInstance().activityTourTabsBinding.viewpager;\n TabLayout tabLayout = ActivityManager.getInstance().activityTourTabsBinding.tablayout;\n viewPager.setAdapter(adapter);\n tabLayout.setupWithViewPager(viewPager);\n // Them vach ngan cach cac tab\n View root = tabLayout.getChildAt(0);\n if (root instanceof LinearLayout) {\n ((LinearLayout) root).setShowDividers(LinearLayout.SHOW_DIVIDER_MIDDLE);\n GradientDrawable drawable = new GradientDrawable();\n drawable.setColor(getResources().getColor(R.color.colorPrimaryDark));\n drawable.setSize(2, 1);\n ((LinearLayout) root).setDividerPadding(10);\n ((LinearLayout) root).setDividerDrawable(drawable);\n }\n // Icon cac tab\n tabLayout.getTabAt(0).setIcon(R.drawable.tour_map_icon_select);\n tabLayout.getTabAt(1).setIcon(R.mipmap.tour_info_icon);\n tabLayout.getTabAt(2).setIcon(R.mipmap.tour_map_image_icon);\n\n // Doi mau tab icon khi click\n tabLayout.addOnTabSelectedListener(new TabLayout.ViewPagerOnTabSelectedListener(viewPager) {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n super.onTabSelected(tab);\n switch (tab.getPosition()){\n case 0:\n tab.setIcon(R.drawable.tour_map_icon_select);\n break;\n case 1:\n tab.setIcon(R.drawable.tour_info_icon_select);\n break;\n case 2:\n tab.setIcon(R.mipmap.tour_map_image_icon_select);\n break;\n default:\n break;\n }\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n super.onTabUnselected(tab);\n switch (tab.getPosition()){\n case 0:\n tab.setIcon(R.mipmap.tour_map_icon);\n break;\n case 1:\n tab.setIcon(R.mipmap.tour_info_icon);\n break;\n case 2:\n tab.setIcon(R.mipmap.tour_map_image_icon);\n break;\n default:\n break;\n }\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n super.onTabReselected(tab);\n }\n }\n );\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main_activity);\n\n mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());\n viewPager = (ViewPager) findViewById(R.id.main_activity_container);\n viewPager.setAdapter(mSectionsPagerAdapter);\n\n tabLayout = (TabLayout) findViewById(R.id.main_activity_tabs);\n tabLayout.setupWithViewPager(viewPager);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n TabHost tabHost = getTabHost();\n \n // Tab for Places\n TabSpec placesSpec = tabHost.newTabSpec(\"Places\");\n // setting Title and Icon for the Tab\n \n // placesSpec.setIndicator(\"Places\", getResources().getDrawable(R.drawable.ic_launcher));\n placesSpec.setIndicator(\"Places\");\n Intent PlacesIntent = new Intent(this,PlacesLayoutActivity.class);\n placesSpec.setContent(PlacesIntent);\n// \n// // Tab for Governates\n// \n TabSpec governatesSpec = tabHost.newTabSpec(\"Governates\");\n // governatesSpec.setIndicator(\"Governates\", getResources().getDrawable(R.drawable.ic_launcher));\n governatesSpec.setIndicator(\"Governates\");\n Intent GovernatesIntent = new Intent(this, GovernatesLayoutActivity.class);\n governatesSpec.setContent(GovernatesIntent);\n// \n// \n// // Adding all TabSpec to TabHost\n tabHost.addTab(placesSpec); // Adding photos tab\n tabHost.addTab(governatesSpec); // Adding songs tab\n }",
"private void initTabs()\n {\n updateDayTab();\n\n // Set initial time on time tab\n updateTimeTab();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n View view = inflater.inflate(R.layout.fragment_people, container, false);\n final Bundle args = getArguments();\n\n TabLayout tabLayout = (TabLayout) view.findViewById(R.id.tab_layout_people);\n tabLayout.addTab(tabLayout.newTab().setText(\"Individual\"));\n tabLayout.addTab(tabLayout.newTab().setText(\"Groups\"));\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n\n final ViewPager viewPager = (ViewPager) view.findViewById(R.id.pager_people);\n\n ArrayList<Fragment> tabs = new ArrayList<>();\n tabs.add(new IndividualPeopleFragment());\n tabs.add(new GroupPeopleFragment());\n\n final TabPagerAdapter adapter = new TabPagerAdapter(getFragmentManager(), tabs);\n viewPager.setAdapter(adapter);\n viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(tabLayout));\n tab = args == null ? tab : args.getInt(ARGUMENT_TAB_ID);\n viewPager.setCurrentItem(tab);\n tabLayout.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n viewPager.setCurrentItem(tab.getPosition());\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n\n }\n });\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate( R.layout.fragment_news, container, false );\n vp = (ViewPager)view.findViewById(R.id.vp);\n FragmentAdapter adapter = new FragmentAdapter(getFragmentManager(),getContext());\n vp.setAdapter(adapter);\n\n TabLayout tabLayout = (TabLayout)view.findViewById(R.id.scrollTab);\n tabLayout.setupWithViewPager(vp);\n\n tabLayout.setTabGravity(TabLayout.GRAVITY_CENTER);\n\n return view;\n }",
"@Override\n\tpublic void onCreated(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.tab_download);\n\t}",
"private void setUpViewPager() {\n ViewPagerAdapter viewPagerAdapter = new ViewPagerAdapter(getSupportFragmentManager(), this);\n mViewPager.setAdapter(viewPagerAdapter);\n mTabLayout.setupWithViewPager(mViewPager);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n inflatedview5 = inflater.inflate(R.layout.fragment_tab5, container, false);\n\n data5 = MakeData5( 0 , sidemenu_iamges.length - 1 );\n\n tab5Adapter = new Tab5_Adapter_Card( getContext(), R.layout.fragment_tab5_custom, data5 );\n tab5GridView = inflatedview5.findViewById( R.id.gridView5 );\n tab5GridView.setAdapter( tab5Adapter );\n\n\n return inflatedview5;\n }"
] | [
"0.7598438",
"0.7462454",
"0.74252385",
"0.7272815",
"0.71435124",
"0.71230143",
"0.7113529",
"0.7019951",
"0.7017021",
"0.68861395",
"0.6868795",
"0.68148637",
"0.6803321",
"0.6772938",
"0.6766637",
"0.67323047",
"0.66998154",
"0.6687504",
"0.66516876",
"0.662578",
"0.6623711",
"0.6619475",
"0.65971464",
"0.6578257",
"0.6549271",
"0.65381783",
"0.6528016",
"0.65222836",
"0.6522172",
"0.65145576",
"0.64965767",
"0.64959633",
"0.6474969",
"0.6457255",
"0.64507264",
"0.64479905",
"0.6443546",
"0.64371437",
"0.64106745",
"0.64097077",
"0.6405571",
"0.63888097",
"0.6380871",
"0.63429576",
"0.6317653",
"0.63171715",
"0.6301975",
"0.6298019",
"0.62973315",
"0.6294655",
"0.6284041",
"0.6281987",
"0.62730277",
"0.6271348",
"0.6270851",
"0.62684083",
"0.62641186",
"0.6241365",
"0.62318426",
"0.6229252",
"0.62161094",
"0.6201482",
"0.61945444",
"0.61866516",
"0.6176325",
"0.61648303",
"0.6159177",
"0.6149281",
"0.6148969",
"0.6142718",
"0.6141538",
"0.6139588",
"0.6136394",
"0.61359566",
"0.61351174",
"0.61331403",
"0.6132583",
"0.61296546",
"0.61290586",
"0.6119513",
"0.611653",
"0.61128",
"0.6111796",
"0.61086327",
"0.61075526",
"0.60906017",
"0.6088755",
"0.608383",
"0.6083409",
"0.60753465",
"0.6071989",
"0.60670114",
"0.60669535",
"0.60667586",
"0.6064842",
"0.6063591",
"0.6059496",
"0.60589993",
"0.6053627",
"0.60523987"
] | 0.68786335 | 10 |
Return fragment with respect to Position . | @Override
public Fragment getItem(int position)
{
switch (position){
case 0 : return new MedicalBackground();
case 1 : return new DiagnosticsFragmentLister();
case 2 :
if(StaffLogin.patientStaff) return new LabFragment();
else if(StaffLogin.isDoctor) return new PrescriptionListerFragment();
else return new NextDosageListerFragment();
case 3 :
if(StaffLogin.isDoctor) return new NextDosageListerFragment();
else return new ObservationsListerFragment();
case 4 : if(StaffLogin.isDoctor) return new ObservationsListerFragment();
else return new LabFragment();
case 5: return new LabFragment();
case 6: return new LocationMapFragment();
case 7: return new LocationListerFragment();
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Fragment getFragmentByPosition(int position);",
"String fragment();",
"public static text_fragment show_position(position pos) {\n assert pos != null;\n @Nullable text_position fragment_begin = null;\n @Nullable text_position fragment_end = null;\n // We only know how to display selected positions,\n // so drill down until we find one.\n while (true) {\n if (pos instanceof text_position) {\n return render_text_position((text_position) pos, fragment_begin, fragment_end);\n } else if (pos instanceof special_position) {\n string description = ((special_position) pos).description;\n return base_element.make(text_library.DIV, (base_string) description);\n } else if (pos instanceof fragment_position) {\n fragment_position fp = (fragment_position) pos;\n if (fragment_begin == null) {\n fragment_begin = find_text_position(fp.begin, true);\n }\n if (fragment_end == null) {\n fragment_end = find_text_position(fp.end, false);\n }\n } else if (pos.source_position() == null) {\n utilities.panic(\"Can't display position \" + pos + \" of type \" + pos.getClass());\n }\n pos = pos.source_position();\n }\n }",
"public abstract Fragment getFragment();",
"Position getPosition();",
"Position getPosition();",
"public String getFragment() {\n return m_fragment;\n }",
"public Fragment findFragment(int position) {\n return fragments[position];\n }",
"public String getFragment() {\n\t\treturn fragment;\n\t}",
"Position getNewPosition();",
"Object getPosition();",
"public abstract int getFragmentView();",
"public Fragment getFragment() {\n return fragment;\n }",
"void fragment(String fragment);",
"void fragment(String fragment);",
"@Override\n public Fragment getFragment() {\n// uuid = (UUID)getIntent().getSerializableExtra(UUID);\n// return GoalDetailViewFragment.newInstance(uuid);\n return null;\n }",
"private void getFragment(Fragment fragment) {\n // create a FragmentManager\n FragmentManager fm = getFragmentManager();\n // create a FragmentTransaction to begin the transaction and replace the Fragment\n FragmentTransaction fragmentTransaction = fm.beginTransaction();\n // replace the FrameLayout with new Fragment\n fragmentTransaction.replace(R.id.fragment_layout, fragment);\n // save the changes\n fragmentTransaction.commit();\n }",
"public ProgramFragment getFragment(String treeName, Address addr);",
"public abstract Fragment getSensorFragment();",
"@Override\n public Fragment getItem(int position) {\n\n Fragment fragment = null;\n Bundle bundle = new Bundle();\n bundle.putString(\"e\", \"test\");\n switch (position) {\n case 0:\n fragment = new OriginalFragment();\n // fragment.setArguments(bundle);\n break;\n\n case 1:\n fragment = new DecodedFragment();\n fragment.setArguments(bundle);\n }\n return fragment;\n }",
"Position createPosition();",
"public static MyFragment getInstance(int position) {\n\n //Construct the fragment\n MyFragment myFragment = new MyFragment();\n\n //New bundle instance\n Bundle args = new Bundle();\n\n //Passing in the Integer position of the fragment into the argument\n args.putInt(\"position\", position);\n\n //Setting the argument of the fragment to be the position\n myFragment.setArguments(args);\n\n //Return the fragment\n return myFragment;\n }",
"public int PositionGet();",
"protected abstract Fragment createFragment();",
"int getPosition();",
"public int getFragmentPlace()\r\n {\r\n int id = R.id.left_pane_body;\r\n if (DisplayUtils.hasCentralPane(this))\r\n {\r\n id = R.id.central_pane_body;\r\n }\r\n return id;\r\n }",
"protected abstract int getFirstFrag();",
"public Position position();",
"public Position getPosition();",
"public Position getPosition();",
"public Position getPosition();",
"@Override\n public Position getPosition() {\n return position;\n }",
"@Override\n\tpublic Fragment getItem(int position) {\n\t\t\n\t\t\n\t\tFragment fragment=new EmojiFragment(this.activity);\n\t\treturn fragment;\n\t\t\n//\t\tFragment fragment = new DummySectionFragment();\n//\t\tBundle args = new Bundle();\n//\t\targs.putInt(DummySectionFragment.ARG_SECTION_NUMBER, position + 1);\n//\t\tfragment.setArguments(args);\n//\t\treturn fragment;\n\t}",
"public void createFragment() {\n\n }",
"public int getPosition();",
"@Override\n public int getPosition() {\n return position;\n }",
"@Override\n public Fragment getItem(int position) {\n if (position < frags.size()) {\n return frags.get(position);\n } else {\n return lastFrag;\n }\n }",
"public abstract @NonNull\n Fragment getItem(int position);",
"public boolean getFragment()\n\t{\n\t\treturn mFragment;\n\t}",
"@Override\n public Object instantiateItem(ViewGroup container, int position) {\n Fragment createdFragment = (Fragment) super.instantiateItem(container, position);\n // save the appropriate reference depending on position\n switch (position) {\n case 0:\n mFragmentGraph = (Color_FragmentGraph) createdFragment;\n break;\n// case 1:\n// mFragmentPie = (Horti_FragmentPie) createdFragment;\n// break;\n }\n return createdFragment;\n }",
"@Override\n public Fragment getItem(int position) {\n Fragment curFragment=null;\n Bundle bundle = new Bundle();\n switch (position){\n case 0:\n bundle.putParcelable(Constants.SHARE_DATA_KEYS.MAIN_RVIEW_OFFSET,mAlbumsMainState);\n bundle.putParcelableArray(Constants.SHARE_DATA_KEYS.CHILD_RVIEW_OFFSET,mAlbumsChildStates);\n mAlbums.setArguments(bundle);\n curFragment = mAlbums;\n break;\n case 1:\n bundle.putParcelable(Constants.SHARE_DATA_KEYS.MAIN_RVIEW_OFFSET,mPhotosState);\n mPhotos.setArguments(bundle);\n curFragment = mPhotos;\n break;\n case 2:\n bundle.putParcelable(Constants.SHARE_DATA_KEYS.MAIN_RVIEW_OFFSET,mTripListState);\n mTrips.setArguments(bundle);\n curFragment = mTrips;\n break;\n }\n return curFragment;\n }",
"@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n System.out.println(\"ana fl case 0:\" + song.coverURL);\n return result_fragment.newInstance(song.coverURL, song.title, song.artist, song.album);\n\n case 1: // Fragment # 1 - This will show FirstFragment different title\n return LyricsFragment.newInstance(song.lyrics);\n default:\n return null;\n }\n }",
"@Override\n public Position getPosition() {\n return new Position(this.x, this.y);\n }",
"public abstract Position getPosition();",
"@Override\n public Fragment getItem(int position) {\n //To do\n //return the corresponded fragment according to position\n //remember that the position can not be out of [0, 2]\n\n switch (position) {\n case 0:\n return CollectionFragment.newInstance(0, \"\");\n case 1:\n return CollectionFragment.newInstance(1, \"\");\n default:\n return null;\n }\n\n //To do closed\n }",
"@NonNull\n public abstract Fragment getItem(int position);",
"Tile getPosition();",
"@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }",
"@Override\n public Fragment getItem(int position) {\n return fragments.get(position);\n }",
"@Override\n public Fragment getItem(int position) {\n return fragments.get(position);\n }",
"@Override\r\n public Fragment getItem(int position) {\r\n\r\n switch (position) {\r\n case 0:\r\n\r\n hFragment = createClientFragment(\"Homme\");\r\n return hFragment;\r\n\r\n case 1:\r\n\r\n fFragment = createClientFragment(\"Femme\");\r\n return fFragment;\r\n\r\n\r\n case 2:\r\n eFragment = createClientFragment(\"Enfant\");\r\n return eFragment;\r\n default:\r\n return null;\r\n }\r\n }",
"@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return DetailsFragment.newInstance(position);\n case 1:\n return MapsFragment.newInstance(position);\n }\n return null;\n }",
"@Override\n public Fragment getItem(int position) {\n // Create a new fragment according to the position of the ViewPager\n if (position == 0) {\n return new BlogFragment();\n } else if (position == 1) {\n return new MapFragment();\n }\n return null;\n }",
"@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return new Color_FragmentGraph();\n// case 1:\n// return new Horti_FragmentPie();\n default:\n // This should never happen. Always account for each position above\n return null;\n }\n }",
"public ProgramFragment getFragment(String treeName, String name);",
"public abstract int getFragmentLayout();",
"PositionEffect getPositionEffect();",
"@Override\n public Fragment getItem(int position) {\n if (position == 0)\n return new RootFragment();\n else\n return new StaticFragment();\n }",
"Position_Position createPosition_Position();",
"public Point getPosition(){\r\n return new Point(this.position);\r\n }",
"@Function DocumentFragment createDocumentFragment();",
"@Override\n public Fragment getItem(int position) {\n if(position == 1) {\n mChatListFragment = ChatListFragment.newInstance(position);\n return mChatListFragment;\n }\n mMapFragment = MapFragment.newInstance();\n return mMapFragment;\n }",
"@Override\n public Fragment getItem(int position) {\n Log.d(\"DEBUG\", \"Position : \" + position);\n //return PlaceholderFragment.newInstance(position + 1);\n\n\n switch (position) {\n case 0:\n return SectionsFragment1.newInstance(position + 1);\n case 1:\n return SectionsFragment2.newInstance(position + 1);\n case 2:\n return SectionsFragment3.newInstance(position + 1);\n }\n\n return null;\n\n }",
"@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return PageFragment.newInstance(0);\n case 1:\n return MentionFragment.newInstance(0);\n\n default:\n return null;\n }\n }",
"public long getPosition();",
"Position getOldPosition();",
"@Override\n public Fragment getItem(int position) {\n Bundle args = new Bundle();\n AttVFragment fragment = new AttVFragment();\n args.putInt(AttVFragment.ARG_SECTION_NUMBER, position);\n fragment.setArguments(args);\n return fragment;\n }",
"public final Process getFragmentProcess()\n\t{\n\t\treturn rProcess;\n\t}",
"RealLocalizable getPosition();",
"@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n ToursFragment toursFragment = new ToursFragment();\n return toursFragment;\n case 1:\n MapFragment mapFragment = new MapFragment();\n return mapFragment;\n case 2:\n LandmarkCardsFragment cardsFragment = new LandmarkCardsFragment();\n return cardsFragment;\n default:\n return null;\n }\n }",
"@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\tswitch (position) {\n\t\t\t\t//case 0:return PlaceholderFragment.newInstance(position + 1);//defaultFragment();\n\t\t\t\tcase MANAGE_RECORDINGS:\n\t\t\t\t\treturn ManageRecordingsFrame.newInstance(position);\n\t\t\t\tcase SEARCH_FOR_STATIONS:\n\t\t\t\t\treturn SearchForStationsFrame.newInstance(position);\n\t\t\t\tcase MANAGE_STATIONS:\n\t\t\t\t\treturn ManageFavoriteStationsFrame.newInstance(position);\n\t\t\t\tcase FAVORITE_STATIONS:\n\t\t\t\tdefault:\n\t\t\t\t\treturn FavoriteStationsFrame.newInstance(0);//\n\t\t\t}\n\t\t}",
"@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n\n }",
"public String fragmentAt(int index) {\n\t\treturn pathFragments.get(index);\n\t}",
"@Override\n public Fragment getItem(int position) {\n return fragmentList.get(position);\n }",
"int getMinorFragmentId();",
"int getStartPosition();",
"int getStartPosition();",
"@Override\r\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\r\n }",
"@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\tFragment fragment = new SectionFragment(); \n\t\t\tBundle args = new Bundle();\n\t\t\targs.putInt(SectionFragment.ARG_SECTION_NUMBER, position + 1);\n\t\t\tfragment.setArguments(args);\n\t\t\t\n\t\t\t\n\t\t\treturn fragment;\n\t\t\t\n\t\t}",
"@Override\n\tpublic int getPosition() {\n\t\treturn 0;\n\t}",
"@NonNull\n @Override\n public Fragment getItem(int position) {\n return fragments.get(position);\n }",
"@Override\n public Fragment getItem(int position) {\n return fragmentList.get(position);\n }",
"@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\treturn fragmentList.get(position);\n\t\t}",
"@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return new ListFragment();\n case 1: // Fragment # 0 - This will show FirstFragment different title\n return new GridFragment();\n\n default:\n return null;\n }\n }",
"org.mojolang.mojo.lang.Position getStartPosition();",
"@Override\n public Fragment getItem(int position) {\n switch (position){\n case 0:\n recogidaFragment = RecogidaFragment.newInstance(\"Nombre\", \"Apellidos\");\n return recogidaFragment;\n case 1:\n entregaFragment = EntregaFragment.newInstance(\"Nombre\",\"Apellidos\");\n return entregaFragment;\n }\n return null;\n // Return a PlaceholderFragment (defined as a static inner class below).\n }",
"protected abstract int getFragmentLayout();",
"protected abstract int getFragmentLayout();",
"protected abstract int getFragmentLayout();",
"public abstract String getFragmentName();",
"@Override\n\tpublic Fragment getItem(int position) {\n\t\treturn fragments.get(position);\n\t}",
"@Override\n public Fragment getItem(int position) {\n \t mFragment[position] = PlaceholderFragment.newInstance(position);\n return mFragment[position];\n }",
"@Override\n public Object instantiateItem(ViewGroup container, int position) {\n Fragment fragment = (Fragment) super.instantiateItem(container, position);\n registeredFragments.put(position, fragment);\n return fragment;\n }",
"@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }",
"@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }",
"@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }",
"@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }",
"@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }",
"@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }",
"@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }",
"@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }"
] | [
"0.7211597",
"0.66629267",
"0.6293737",
"0.62685627",
"0.62094367",
"0.62094367",
"0.62065566",
"0.61614364",
"0.61355186",
"0.60890514",
"0.59531206",
"0.595292",
"0.5922138",
"0.58863115",
"0.58863115",
"0.58015746",
"0.57909775",
"0.5777364",
"0.5745434",
"0.57023746",
"0.5692324",
"0.56762856",
"0.5674393",
"0.5667114",
"0.56659204",
"0.5661472",
"0.56598294",
"0.5643923",
"0.5640497",
"0.5640497",
"0.5640497",
"0.56200933",
"0.5607917",
"0.56057954",
"0.55960596",
"0.55727524",
"0.55511516",
"0.554457",
"0.5543602",
"0.553658",
"0.5534272",
"0.54921174",
"0.5489081",
"0.54840887",
"0.5474799",
"0.5473263",
"0.54710853",
"0.5465001",
"0.5454707",
"0.5454707",
"0.54532",
"0.545115",
"0.5446528",
"0.54353637",
"0.54335487",
"0.5428989",
"0.5427371",
"0.54117346",
"0.5405264",
"0.5403938",
"0.54030085",
"0.5401137",
"0.5400968",
"0.53962237",
"0.53950274",
"0.53933436",
"0.5389126",
"0.5388349",
"0.5385944",
"0.5383799",
"0.53798264",
"0.53635556",
"0.53598636",
"0.535879",
"0.535612",
"0.5354922",
"0.5354922",
"0.5354786",
"0.5344272",
"0.5341728",
"0.5341326",
"0.5339783",
"0.5334143",
"0.53319776",
"0.532908",
"0.53263634",
"0.5325645",
"0.5325645",
"0.5325645",
"0.5325405",
"0.53202975",
"0.53199357",
"0.5316983",
"0.53134936",
"0.53134936",
"0.53134936",
"0.53134936",
"0.53134936",
"0.53134936",
"0.53134936",
"0.53134936"
] | 0.0 | -1 |
This method returns the title of the tab according to the position. | @Override
public CharSequence getPageTitle(int position) {
switch (position){
case 0 :
return "Medical Background";
case 1 :
return "Diagnostics";
case 2 :
if(StaffLogin.patientStaff)
return "Lab";
else if(StaffLogin.isDoctor)
return "Prescription";
else
return "Dosage";
case 3 :
if(StaffLogin.isDoctor)
return "Dosage";
else
return "Observations";
case 4 :
if(StaffLogin.isDoctor)
return "Observation";
else
return "Lab";
case 5:
return "Lab";
case 6:
return "Map";
case 7: return "Locations";
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getTabTitle();",
"@Override\n public CharSequence getPageTitle(int position){\n String tabTitles[] = mContext.getResources().getStringArray(R.array.tab_name);\n // Generate title based on item position\n return tabTitles[position];\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n return tabTitles[position];\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n return tabTitles[position];\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n return tabTitles[position];\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n return tabTitles[position];\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n return tabTitles[position];\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n return tabTitles[position];\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n return tabTitles[position];\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n return tabTitles[position];\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n return tabTitles[position];\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n return tabTitles[position];\n }",
"public CharSequence getPageTitle(int position) {\n // generate title based on item position\n return tabTitles[position];\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n String tabTitles[] = new String[] { context.getString(R.string.historical) ,context.getString(R.string.shop),\n context.getString(R.string.restaurants),context.getString(R.string.hotels)};\n return tabTitles[position];\n }",
"@Nullable\n @Override\n public CharSequence getPageTitle(int position) {\n return mContext.getResources().getString(tabNamesIndex[position]);\n }",
"public String getTitle(int position) {\n return getString(Browser.HISTORY_PROJECTION_TITLE_INDEX, position);\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n\n switch (position) {\n case 0:\n String tab1 = \"Original \";\n return tab1;\n case 1:\n String tab2 = \"Decoded\";\n return tab2;\n }\n return null;\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n //Fragment frag = getItem(position);\n // return ((HomeScreenFragment) frag).getTitle();\n //String arrNavItems[] = ;\n assert(navItems!=null && navItems.length >= position);\n\n return navItems[position].toString();\n //return \"Tab \"+(position+1);\n //return super.getPageTitle(position);\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n\n switch (position) {\n case 0:\n return contextExtends.getString( R.string.hotel_tab );\n case 1:\n return contextExtends.getString( R.string.mall_tab );\n case 2:\n return contextExtends.getString( R.string.restaurent_tab );\n case 3:\n return contextExtends.getString( R.string.historical_tab );\n default:\n return null;\n }\n\n }",
"@Override\r\n public CharSequence getPageTitle(int position) {\n\r\n return tabs[position];\r\n }",
"@Override\n\t\tpublic CharSequence getPageTitle(int position) {\n\t\t\treturn TITLE[position];\n\t\t}",
"public CharSequence getPageTitle(int position) {\n return titles.get(position);\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n // Generate title based on item position\n if (position == 0) {\n return context.getString(R.string.tab_grunddaten);\n }\n return null;\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n switch (position) {\n case 0:\n return getString(R.string.tab_public);\n case 1:\n return getString(R.string.tab_me);\n default:\n return getString(R.string.tab_public);\n }\n }",
"@Override\r\n\t\tpublic CharSequence getPageTitle(int position) {\n\t\t\treturn titleList.get(position);\r\n\t\t}",
"@Override\n public CharSequence getPageTitle(int position) {\n return titles[position];\n }",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"@Override\n public CharSequence getPageTitle(int position) {\n return titles[position];\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n return titles[position];\n }",
"@Override\n\tpublic CharSequence getPageTitle(int position)\n\t{\n\t\tswitch(position){\n\t\t\tcase 0:\n\t\t\t\treturn TITLE[0];\n\t\t\tcase 1:\n\t\t\t\treturn TITLE[1];\n\t\t\tcase 2:\n\t\t\t\treturn TITLE[2];\n\t\t\tcase 3:\n\t\t\t\treturn TITLE[3];\n\t\t\tcase 4:\n\t\t\t\treturn TITLE[4];\n\t\t\tcase 5:\n\t\t\t\treturn TITLE[5];\n\t\t}\n\t\treturn super.getPageTitle(position);\n\t}",
"@Override\n\t\t\tpublic CharSequence getPageTitle(int position){\n\t\t\t\treturn pfa.getResources().getString(pfa.helper.get(position).getKey());\n\t\t\t}",
"public abstract CharSequence getTitle();",
"@Override\r\n public String getTabTitle()\r\n {\r\n return \"Allgemeine Einstellungen\";\r\n }",
"@Override\n public CharSequence getPageTitle(int position)\n {\n return s[position];\n }",
"public java.lang.String getTitle();",
"@Override\n public CharSequence getPageTitle (int position) {\n return mData.getChildren().get(position).getTitle();\n }",
"String getTitle(int row, int column);",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"public PositionTitle getPosition() {\n return position;\n }",
"public String getTitle() {\n return bufTitle;\n }",
"@Override\n public String getPageTitle(int position) {\n switch (position) {\n case 0:\n return mContext.getString(R.string.current_fragment);\n case 1:\n return mContext.getString(R.string.past_fragment);\n default:\n return null;\n }\n }",
"@Nullable\n @Override\n public CharSequence getPageTitle(int position) {\n return mContext.getString(pageTitles[position]);\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n switch(position) {\n case 0:\n return \"Taman Nasional\";\n case 1:\n return \"Gunung Krakatau\";\n case 2:\n return \"Makanan Khas\";\n case 3:\n return \"Kain Tapis\";\n default:\n return null;\n }\n }",
"public CharSequence getPageTitle(int position){\n if (position == 0){\n return mContext.getString(R.string.accommodation);\n }else if (position == 1){\n return mContext.getString(R.string.food);\n }else if (position == 2){\n return mContext.getString(R.string.drink);\n }else {\n return mContext.getString(R.string.fun);\n }\n }",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle() {\n return titleName;\n }",
"@Override\n\t\tpublic CharSequence getPageTitle(int position) {\n\t\t\tswitch (position) {\n\t\t\tcase 0:\n\t\t\t\treturn getString(R.string.title_section1).toUpperCase();\n\t\t\tcase 1:\n\t\t\t\treturn getString(R.string.title_section2).toUpperCase();\n\t\t\tcase 2:\n\t\t\t\treturn getString(R.string.title_section3).toUpperCase();\n\t\t\t}\n\t\t\treturn null;\n\t\t}",
"String title();",
"String title();",
"@Override\n public String getTabCaption() {\n return this.name;\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n // Generate title based on item position\n switch (position) {\n case 0:\n return \"entertainment general\";\n case 1:\n return \"health\";\n case 2:\n return \"technology\";\n case 3:\n return \"sports\";\n\n\n }\n return null;\n }",
"public String getCurrentTitle() {\n\t\tif (getSelectedIndex() == -1) {\n\t\t\treturn \"\";\n\t\t}\n\t\treturn getTitleAt(getSelectedIndex());\n\t}",
"public String getTabToolTipText();",
"public String getText() {\n\t\t\t\t\tint i = customTabbed.tabbedPane.indexOfTabComponent(customJTabbedpane.this);\n\t\t\t\t\tif (i != -1)\n\t\t\t\t\t\treturn customTabbed.tabbedPane.getTitleAt(i);\n\t\t\t\t\treturn null;\n\t\t\t\t}",
"public String getTitle()\n {\n return (this.title);\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n switch (position) {\n case 0: return \"Today\";\n case 1: return \"Upcoming\";\n case 2: return \"Finished\";\n }\n return null;\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\n \t\treturn title;\n \t}",
"@Override\n public String getTitle() {\n return getName();\n }",
"public String getTitle()\r\n\t{\r\n\t\treturn TITLE;\r\n\t}",
"@Override\r\n\tpublic String getTitle() {\n\t\treturn title;\r\n\t}",
"@Override\n public CharSequence getPageTitle(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return getResources().getString(R.string.mine);\n case 1: // Fragment # 0 - This will show FirstFragment different title\n return getResources().getString(R.string.all);\n default:\n return \"\";\n }\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }"
] | [
"0.82418054",
"0.78068435",
"0.7791949",
"0.7791949",
"0.7791949",
"0.7791949",
"0.7791949",
"0.7791949",
"0.7791949",
"0.7791949",
"0.7791949",
"0.7791949",
"0.7696135",
"0.7538385",
"0.7530389",
"0.7521226",
"0.74965394",
"0.7448661",
"0.74179846",
"0.7373183",
"0.7245362",
"0.71791434",
"0.7176645",
"0.7154208",
"0.704101",
"0.7033708",
"0.70318556",
"0.70318556",
"0.70318556",
"0.70318556",
"0.70318556",
"0.69994515",
"0.69994515",
"0.6998586",
"0.69539964",
"0.69525373",
"0.69401956",
"0.68770474",
"0.6872198",
"0.6834284",
"0.68028206",
"0.68011934",
"0.68011934",
"0.68011934",
"0.68011934",
"0.68011934",
"0.68011934",
"0.68011934",
"0.68011934",
"0.68011934",
"0.68011934",
"0.68011934",
"0.68011934",
"0.68011934",
"0.68011934",
"0.68011934",
"0.67944413",
"0.6792748",
"0.6783374",
"0.67761564",
"0.6735405",
"0.67195284",
"0.66874737",
"0.66874737",
"0.66874737",
"0.66874737",
"0.66874737",
"0.66874737",
"0.66874737",
"0.66874737",
"0.66874737",
"0.66874737",
"0.66874737",
"0.66874737",
"0.66874737",
"0.66874737",
"0.66874737",
"0.66874737",
"0.66874737",
"0.66874737",
"0.6687035",
"0.66632813",
"0.6658577",
"0.6658577",
"0.66446704",
"0.6618501",
"0.6593313",
"0.6587869",
"0.6576281",
"0.65654904",
"0.65646166",
"0.6559356",
"0.65563065",
"0.6553375",
"0.6549553",
"0.6548548",
"0.6540995",
"0.6527642",
"0.6527642",
"0.6527642"
] | 0.6704706 | 62 |
Fin del main. Cuenta la cantidad de hojas que contiene un arbol binario x, y devuelve el total como un entero. | public static int cantNodosHojas(Nodo raiz)
{
if(raiz == null)
{
return 0;
}
else if(raiz.ramaDerecha == null && raiz.ramaIzquierda == null)
{
return 1;
}
else
{
return (cantNodosHojas(raiz.subArbolIzquierdo())) + (cantNodosHojas(raiz.subArbolDerecho()));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int AmbosHijos() { //Hecho por mi\n if (this.esArbolVacio()) {\n return 0; //Arbol vacio\n }\n int ambos = 0;\n Queue<NodoBinario<T>> colaDeNodos = new LinkedList<>();\n colaDeNodos.offer(raiz);\n while (!colaDeNodos.isEmpty()) {\n NodoBinario<T> nodoActual = colaDeNodos.poll();\n if (!NodoBinario.esNodoVacio(nodoActual.getHijoIzquierdo())\n && !NodoBinario.esNodoVacio(nodoActual.getHijoDerecho())) {\n ambos++;\n }\n if (!nodoActual.esHijoIzquiedoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoIzquierdo());\n }\n if (!nodoActual.esHijoDerechoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoDerecho());\n }\n }\n return ambos;\n }",
"private int calculateTotalHeads() { //kept a separate method with a specific purpose instead of writing code in main\n\t\t//no need to static method, althouth static won't hurt in such a small code\n\t\tint headsCount = 0;\n\t\tfor (int currentCoinNo = 1; currentCoinNo <= noCoins; currentCoinNo++) { \n\t\t\tif(isHead(currentCoinNo)) {\n\t\t\t\theadsCount++;\n\t\t\t}\n\t\t}\n\t\treturn headsCount;\n\t}",
"public static int obtenerSumauno(int x){\n // dclaracion de variable\n int suma = 0;\n // ciclo usado para la suma continua\n for (int i = 1; i <= x; i++) {\n suma += i;\n }\n // retorno del resultado\n return suma;\n }",
"public int numeroHojas(){\n\t int N=0, ni=0, nd=0;\n\t Arbol <T> aux=null;\n\t if (!vacio()) {\n\t if ((aux=getHijoIzq())!=null) ni = aux.numeroHojas();\n\t if ((aux=getHijoDer())!=null) nd = aux.numeroHojas();\n\t if ((aux=getHijoDer())==null && (aux=getHijoIzq())==null)N = 1;\n\t else N = ni + nd;\n\t }\n\t\treturn N;\n\t}",
"public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }",
"UnsignedInt getTotal();",
"public void balayer()\r\n {\r\n int tot=0;\r\n for (int i=0;i<LONGUEUR;i++ )\r\n {\r\n for (int j=0; j<LARGEUR; j++ )\r\n {\r\n tot=0;\r\n Haut = lignesHor[i][j];\r\n Droite = lignesVert[i+1][j];\r\n Bas = lignesHor[i][j+1];\r\n Gauche = lignesVert[i][j];\r\n\r\n if (Haut)\r\n {\r\n tot++;\r\n Vision[i][j][1]=1;\r\n }\r\n\r\n if (Droite)\r\n {\r\n tot++;\r\n Vision[i][j][2]=1;\r\n }\r\n\r\n if (Bas)\r\n {\r\n tot++;\r\n Vision[i][j][3]=1;\r\n }\r\n\r\n\r\n if (Gauche)\r\n {\r\n tot++;\r\n Vision[i][j][4]=1;\r\n }\r\n\r\n Vision[i][j][0]=Vision[i][j][1]+Vision[i][j][2]+Vision[i][j][3]+Vision[i][j][4];\r\n }\r\n }\r\n }",
"public int make_a_num(){\n total = 0;\n for(int i = 0; i < playerHand.size(); i++){\n total += playerHand.get(i).getLeft();\n total += playerHand.get(i).getRight();\n }\n return total;\n }",
"public void calcularEsquinas(double x, double y) {\n\t\t//Columas alrededor del objeto\n\t\tint izqTile = (int)(x - clanchura / 2) / tamTile;\n\t\tint derTile = (int)(x + clanchura / 2 -1) / tamTile;\n\t\tint arribaTile = (int)(y - claltura / 2) / tamTile;\n\t\tint abajoTile = (int)(y + claltura / 2 -1) / tamTile;\n\t\t\n\t\tint ai = mapaTile.getTipo(arribaTile, izqTile);\n\t\tint ad = mapaTile.getTipo(arribaTile,derTile);\n\t\tint bi = mapaTile.getTipo(abajoTile, izqTile);\n\t\tint bd = mapaTile.getTipo(abajoTile,derTile);\n\t\t\n\t\tarribaIzq = ai == Tile.BLOQUEADO;\n\t\tarribaDer = ad == Tile.BLOQUEADO;\n\t\tabajoIzq = bi == Tile.BLOQUEADO;\n\t\tabajoDer = bd == Tile.BLOQUEADO;\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint trabaj, horas, salario, x=0, horas_ex, horas_obli=40;\n\t\tdouble salario_ex, salario_fin1, salario_fin2, acum=0;\n\t\t\n\t\tSystem.out.println(\"Dime cuantos trabajadores hay: \");\n\t\ttrabaj = sc.nextInt();\n\t\t\n\t\tSystem.out.println(\"Dime el salario/horas: \");\n\t\tsalario = sc.nextInt();\n\t\t\n\t\tsalario_ex = (salario * 1.5);\n\t\t\n\t\twhile (x < trabaj) {\n\t\t\tSystem.out.println(\"Dime las horas que trabajas: \");\n\t\t\thoras = sc.nextInt();\n\t\t\t\n\t\t\thoras_ex = (horas - horas_obli);\n\t\t\tsalario_fin1=((horas_ex * salario_ex) + (salario * horas_obli));\n\t\t\tsalario_fin2=(salario * horas);\n\t\t\t\n\t\t\tif (horas > horas_obli) {\n\t\t\t\tSystem.out.println(\"Tienes que cobrar un 50% más, tu sueldo será: \" + salario_fin1);\n\t\t\t\tacum=(salario_fin1 + acum);\n\t\t\t\tx=(x+1);\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Tu sueldo será de: \" + salario_fin2);\n\t\t\t\tacum=(salario_fin2 + acum);\n\t\t\t\tx=(x+1);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\" \");\n\t\t}\n\t\tSystem.out.println(\"El salario total del grupo es: \" + acum);\n\t\tsc.close();\n\t}",
"@Override\n public int size() {//por Niveles\n if (this.esArbolVacio()) {\n return 0; //Arbol Vacio\n }\n int cantidadDeNodos = 0;\n Queue<NodoBinario<T>> colaDeNodos = new LinkedList<>();\n colaDeNodos.offer(raiz);\n while (!colaDeNodos.isEmpty()) {\n NodoBinario<T> nodoActual = colaDeNodos.poll();\n cantidadDeNodos++;\n if (!nodoActual.esHijoIzquiedoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoIzquierdo());\n }\n if (!nodoActual.esHijoDerechoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoDerecho());\n }\n }\n return cantidadDeNodos; //Lista con los datos(En el orden de este recorrido)\n }",
"public static void sueldoTotal(int hora, int sueldo){\n int resultado = 0;\r\n if(hora<=40){\r\n resultado = hora*sueldo;\r\n }\r\n if(hora>40 || hora<48){\r\n resultado = (40*sueldo)+(hora-40)*(sueldo*2);\r\n }\r\n if (hora>=48){\r\n resultado =(40*sueldo)+8*(sueldo*2)+(hora-48)*(sueldo*3);\r\n }\r\n System.out.println(\"El sueldo es de \"+ resultado);//Se muestra el sueldo total\r\n \r\n \r\n \r\n }",
"private void calValue() {\r\n for (char[] array : root.lines()) {\r\n int[] nums = HeuristicAdvanNode.checkLine(array);\r\n value += calHValue(nums[0], nums[1]);\r\n if (Math.abs(value) > xWin) {\r\n return;\r\n }\r\n }\r\n }",
"public static void main(String args[]) {\n int a = 0;\r\n int b = 0;\r\n int u = 0;\r\n\r\n //Declaring scanner object\r\n Scanner capture = new Scanner(System.in);\r\n System.out.println(\"How many input values [MAX: 30]?\");\r\n\r\n //Taking input\r\n int x = capture.nextInt();\r\n ArrayList<Integer> Digits = new ArrayList<>();\r\n System.out.println(\"Enter \" + x + \" numbers.\");\r\n\r\n //Declaring and initializing HashMap object\r\n HashMap<Integer, Integer> Occur = new HashMap<>();\r\n\r\n // Initialize Hashmap\r\n for(int i=0;i<10;i++){\r\n Occur.put(i,0);\r\n }\r\n\r\n\r\n\r\n\r\n int tmp = x;\r\n // Initialize ArrayList\r\n while(tmp>0){\r\n Digits.add(capture.nextInt());\r\n tmp--;\r\n }\r\n\r\n\r\n\r\n // ----------------------------\r\n while (b < x) {\r\n if (Occur.get(Digits.get(b)) != null) {\r\n int cnt = Occur.get(Digits.get(b)) + 1;\r\n Occur.put(Digits.get(b), cnt);\r\n }\r\n else {\r\n Occur.put(Digits.get(b), 1);\r\n }\r\n b++;\r\n }\r\n\r\n int height = 0;\r\n System.out.println(\"\\nNumber Occurrence\");\r\n\r\n height = 0;\r\n for(Map.Entry<Integer,Integer> entry : Occur.entrySet()){\r\n if(entry.getValue()>0){\r\n System.out.println(entry.getKey() + \" \" + entry.getValue());\r\n }\r\n if(entry.getValue()>height){\r\n height = entry.getValue();\r\n }\r\n }\r\n\r\n System.out.println(\"================= Vertical bar =================\");\r\n\r\n //Printing histogram\r\n int h = height;\r\n while ( h > 0) {\r\n\r\n System.out.print(\"| \"+h+\" | \");\r\n\r\n int g = 0;\r\n while (g < 10) {\r\n if(Occur.get(g) != null) {\r\n int kallen = Occur.get(g);\r\n if(kallen >= h)\r\n {\r\n System.out.print(\"* \");\r\n }\r\n else\r\n {\r\n System.out.print(\" \");\r\n }\r\n }\r\n else\r\n {\r\n System.out.print(\" \");\r\n }\r\n g++;\r\n }\r\n System.out.print(\"\\n\");\r\n h--;\r\n }\r\n System.out.println(\"================================================\");\r\n System.out.print(\"| N |\");\r\n while ( u < 10 ) {\r\n System.out.print(\" \"+ u );\r\n u++;\r\n }\r\n System.out.println(\"\\n================================================\");\r\n }",
"public static void main(String[] args) {\n int tankToCargo = 3; // кол-во контейнеров помещающихся в грузовик\n int boxToTank = 2; // кол-во ящиков помещающихся в контейнер\n int box = 18; //кол-во ящиков\n\n double tanks = Math.ceil((double) box / boxToTank);//расчет кол-ва контейнеров\n double cargos = Math.ceil(tanks / tankToCargo);//расчет кол-ва грузовиков\n\n System.out.println(\"\\nКол-во ящиков для траспортировки \" + box + \" шт.\");\n System.out.println(\"Необходимое кол-во контейнеров для перевозки ящиков \" + (int) tanks + \" шт.\");\n System.out.println(\"Необходимое кол-во грузовиков \" + (int) cargos + \" шт.\");\n System.out.println(\"\\nРаспределение ящиков по контейнерам и контейнеров по грузовикам: \\n\");\n\n int countTank = 1;//счетчик контейнеров\n int coutnCargos = 1;//счетчик грузовиков\n for (int i = 1; i <= box; i++) {\n if (i == 1) {\n System.out.println(\"Грузовик: \" + coutnCargos);\n coutnCargos++;\n }\n if (i == 1) {\n System.out.print(\"\\tКонтейнер: \" + countTank + \"\\n\");\n countTank++;\n }\n {\n System.out.print(\"\\t\\tЯщик: \" + i + \"\\n\");\n }\n if (i % (tankToCargo * boxToTank) == 0 && i < box) {\n System.out.println(\"Грузовик: \" + coutnCargos);\n coutnCargos++;\n }\n if (i % boxToTank == 0 && i < box) {\n System.out.print(\"\\tКонтейнер: \" + countTank + \"\\n\");\n countTank++;\n }\n }//end of \"for\"\n }",
"public int calculateSumOfHouse() {\n int sum = 0;\n for (int i = 0; i < pointsHistory.size(); i++) {\n sum += pointsHistory.get(i);\n }\n return sum;\n }",
"private static void calculateTotalHitsRequired()\n {\n totalHitsRequired = 0;\n \n // add all the ship lengths together to get\n // the total number of hits required\n for (int length : SHIP_LENGTHS)\n {\n totalHitsRequired += length;\n }\n }",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint room[] = new int[n];\n\t\tint count = 0;\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\troom[i] = in.nextInt();\n\t\t\tsum += room[i];\n\t\t}\n\t\tsum /= n;\n\t\tfor (int i = 0; i < room.length; i++) {\n\t\t\tif (room[i] - sum > 0) {\n\t\t\t\tcount += (room[i] - sum);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}",
"public static void main(String[] args) {\n\t\tint little = 0;\n\t\tint zero = 1;\n\t\tint one = 0;\n\t\tint big = 0;\n\t\tint total = 0;\n\t\tfor (int i = 0; i<12;i++){\n\t\t\tbig += one;\n\t\t\tone = zero;\n\t\t\tzero = big;\n\t\t\t\n\t\t}\n\n\t\ttotal = big+one+zero;\n\t\tlittle = zero+one;\n//\t\tSystem.out.println(zero);\n//\t\tSystem.out.println(one);\n\t\tSystem.out.println(little);\n\t\tSystem.out.println(big);\n\t\tSystem.out.println(total);\n\t}",
"public void cambiarABarreraTotal() {\n mRect = new Rect(0, y, centroPantallaX * 2, y + ALTO_PALA);\n }",
"public static void main(String[] args) {\n\t\t int codigoFuncionario;\n\t\t int numeroHorasTrabalhadas = 0;\n\t\t double excesso = 0.0;\n final double VALOR_HORA_TRABALHADA = 10.00; \n final double VALOR_HORA_EXCEDENTE = 20.00;\n final int LIMITE_HORAS = 50;\n\t\t double salarioTotal = 0.00, salarioExcedente = 0.00;\n Scanner leia = new Scanner (System.in);\n\n System.out.println(\"Digite o codigo do funcionario: \");\n codigoFuncionario = leia.nextInt();\n\n System.out.println(\"Digite o numero de horas trabalhadas: \");\n numeroHorasTrabalhadas = leia.nextInt();\n\n\t\tif (numeroHorasTrabalhadas <= LIMITE_HORAS){ \n salarioTotal =numeroHorasTrabalhadas * VALOR_HORA_TRABALHADA;\n \n\t\t \n\t}else {\n\n\t\texcesso = (numeroHorasTrabalhadas - LIMITE_HORAS)*VALOR_HORA_EXCEDENTE;\n\t\tsalarioTotal = LIMITE_HORAS*VALOR_HORA_TRABALHADA + excesso;\n\t\t\n\t\t\n\t\t}\n\t\n\t\n\tSystem.out.println(\"Salario total: \"+salarioTotal);\n\n\n\t}",
"public int limitesX(){\n int v=0;\n if (fila==0 && columna>0 && columna<15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else if (fila==15 && columna>0 && columna<15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else{v=limitesY();}\n return v;\n }",
"public void GanharPokemons(int x)\n {\n this.numPokemons = this.numPokemons + x;\n }",
"public int cantHijosIzquierdos() {\n if (NodoBinario.esNodoVacio(this.raiz)) {\n return 0;\n }\n int cantHijosIzq = 0;\n Queue<NodoBinario<T>> colaDeNodos = new LinkedList<>();\n colaDeNodos.offer(this.raiz);\n while (!colaDeNodos.isEmpty()) {\n NodoBinario<T> nodoActual = colaDeNodos.poll();\n if (!nodoActual.esHijoIzquiedoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoIzquierdo());\n cantHijosIzq++;\n }\n if (!nodoActual.esHijoDerechoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoDerecho());\n }\n }\n return cantHijosIzq;\n }",
"int countSubtreesWithSumX(Node root, int x) {\n if (root == null) return 0;\n\n // sum of nodes in the left subtree\n int ls = countSubtreesWithSumXUtil(root.left, x);\n\n // sum of nodes in the right subtree\n int rs = countSubtreesWithSumXUtil(root.right, x);\n\n // check if above sum is equal to x\n if ((ls + rs + root.data) == x) c++;\n return c;\n }",
"int xBins();",
"public void sumarUnidad() {\r\n\t\tcantidad++;\r\n\t}",
"public int esquinas(){\n int v=0;\n if (fila==0 && columna==0){\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==0 && columna==15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==15 && columna==0){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else if(fila==15 && columna==15){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n }\n return v;\n }",
"public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }",
"int countSubtreesWithSumXUtil(Node root, int x) {\n if (root == null) return 0;\n\n // sum of nodes in the left subtree\n int ls = countSubtreesWithSumXUtil(root.left, x);\n\n // sum of nodes in the right subtree\n int rs = countSubtreesWithSumXUtil(root.right, x);\n\n\n int sum = ls + rs + root.data;\n\n // if tree's nodes sum == x\n if (sum == x) c++;\n return sum;\n }",
"private void cuentaminas() {\n\t//TODO: falta por hacer que calcule lasminas en el borde exterior\n\t//Probar a hacerlo con un try catch\n\tint minas = 0;\n\n\tfor (int i = 0; i < filas; i++) {\n\t for (int j = 0; j < columnas; j++) {\n\t\t//\t1 2 3\n\t\t//\t4 X 5\n\t\t//\t6 7 8\n\t\ttry {\n\t\t minas += arrayBotones[i - 1][j - 1].getMina();//1\n\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i - 1][j].getMina();//2\n\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i - 1][j + 1].getMina();//3\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i][j - 1].getMina();//4\n\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i][j + 1].getMina();//5\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i + 1][j - 1].getMina();//6 \t\t \n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i + 1][j].getMina();//7\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i + 1][j + 1].getMina();//8\n\t\t} catch (Exception e) {\n\t\t}\n\t\tarrayBotones[i][j].setNumeroMinasAlrededor(minas);\n\t\t//TODO: comentar la siguiente parte para que no aparezcan los numeros al iniciar\n//\t\tif (arrayBotones[i][j].getMina() == 0 && minas != 0) {\n//\t\t arrayBotones[i][j].setText(String.valueOf(minas));\n//\t\t}\n\t\tminas = 0;\n\t }\n\t}\n }",
"public static int getTotalX(List<Integer> a, List<Integer> b) {\n\t List<Integer> num=new ArrayList<>();\n\t for(int ind=a.get(a.size()-1);ind<=b.get(0);ind++){\n\t int count=0;\n\t for(int ind1=0;ind1<a.size();ind1++){\n\t if(ind%a.get(ind1)==0){\n\t count++;\n\t }else{\n\t break;\n\t }\n\t }if(count==a.size()){\n\t num.add(ind);\n\t }\n\t }\n\t for(int ind=0;ind<num.size();ind++){\n\t for(int ind1=0;ind1<b.size();ind1++){\n\t if(b.get(ind1)%num.get(ind)!=0){\n\t num.remove(ind);\n\t break;\n\t }\n\t }\n\t }\n\t System.out.println(num);\n\t return num.size();\n\n\t }",
"public static void main(String[] args) {\n\r\n\t\tScanner s = new Scanner(System.in);\r\n\t\tint x;\r\n\t\tint sum = 0;\r\n\t\tx = s.nextInt();\r\n\t\twhile (x >= 0) {\r\n\t\t\tsum += x;\r\n\t\t\tx = s.nextInt();\r\n\t\t}\r\n\t\tSystem.out.println(\"Suma unetih pozitivnih brojeva je: \" + sum);\r\n\t\t\r\n\t\t\r\n\t}",
"public double Baricentro() {\n if (puntos.size() <= 2) {\n return 0;\n } else {\n // Inicializacion de las areas\n double areaPonderada = 0;\n double areaTotal = 0;\n double areaLocal;\n // Recorrer la lista conservando 2 puntos\n Punto2D antiguoPt = null;\n for (Punto2D pt : puntos) {\n if (antiguoPt != null) {\n // Cálculo deñ baricentro local\n if (antiguoPt.y == pt.y) {\n // Es un rectángulo, el baricentro esta en\n // centro\n areaLocal = pt.y * (pt.x - antiguoPt.x);\n areaTotal += areaLocal;\n areaPonderada += areaLocal * ((pt.x - antiguoPt.x) / 2.0 + antiguoPt.x);\n } else {\n // Es un trapecio, que podemos descomponer en\n // un reactangulo con un triangulo\n // rectangulo adicional\n // Separamos ambas formas\n // Primer tiempo: rectangulo\n areaLocal = Math.min(pt.y, antiguoPt.y) + (pt.x - antiguoPt.x);\n areaTotal += areaLocal;\n areaPonderada += areaLocal * ((pt.x - antiguoPt.x) / 2.0 + antiguoPt.x);\n //Segundo tiempo: triangulo rectangulo\n areaLocal = (pt.x - antiguoPt.x) * Math.abs(pt.y - antiguoPt.y) / 2.0;\n areaTotal += areaLocal;\n if (pt.y > antiguoPt.y) {\n // Baricentro a 1/3 del lado pt\n areaPonderada += areaLocal * (2.0 / 3.0 * (pt.x - antiguoPt.x) + antiguoPt.x);\n } else {\n // Baricentro a 1/3 dek lado antiguoPt\n areaPonderada += areaLocal * (1.0 / 3.0 * (pt.x - antiguoPt.x) + antiguoPt.x);\n }\n }\n }\n antiguoPt = pt;\n }\n // Devolvemos las coordenadas del baricentro\n return areaPonderada / areaTotal;\n }\n }",
"public static void main(String[] args) {\n\t\tint ratarata[]= {10,7,6,5,3,4,5};\r\n\t\tint hasil = 0;\r\n\t\tfor (int x = 0;x<ratarata.length;x++) {\r\n\t\t\thasil = hasil+ratarata[x];\r\n\t\t}\r\n\t\tSystem.out.println(\"Jumlah total nilai : \" +hasil);\r\n\t\tSystem.out.println(\"Jumlah Murid : \" + ratarata.length);\r\n\t\tint avg = hasil/ratarata.length;{\r\n\t\t\tSystem.out.println(\"Hasil rata-rata : \"+avg);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) throws IOException{\n InputStreamReader in = new InputStreamReader(System.in);\r\n BufferedReader input = new BufferedReader(in);\r\n\r\n int[] sistMonetario = {500,200,100,50,20,10,5,2,1};\r\n\r\n Map<Integer,Long> monedasDisponibles = new HashMap<>();\r\n\r\n long numCasos = Long.parseLong(input.readLine());\r\n\r\n String[] partes = input.readLine().split(\" \");\r\n long maxValor = 0;\r\n long numMonedasTotal = 0;\r\n\r\n for(int i=0; i<sistMonetario.length; i++){\r\n long numMonedas = Long.parseLong(partes[i]);\r\n numMonedasTotal+=numMonedas;\r\n maxValor += numMonedas*sistMonetario[i];\r\n monedasDisponibles.put(sistMonetario[i],numMonedas);\r\n }\r\n\r\n for(long i=0; i<numCasos; i++){\r\n long aDevolver = Long.parseLong(input.readLine());\r\n if(aDevolver > maxValor){\r\n System.out.println(\"-1\");\r\n }else if(aDevolver == maxValor){\r\n System.out.println(numMonedasTotal);\r\n }else if(aDevolver == 0){\r\n System.out.println(\"0\");\r\n }else {\r\n System.out.println(voraz(monedasDisponibles, aDevolver, sistMonetario));\r\n }\r\n }\r\n }",
"@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}",
"static int countSubtreesWithSumXUtil(Node root, int x)\n {\n int l = 0, r = 0;\n if(root == null) \n \treturn 0;\n l += countSubtreesWithSumXUtil(root.left, x);\n r += countSubtreesWithSumXUtil(root.right, x);\n if(l + r + root.data == x) \n \tcount++;\n if(ptr != root) \n \treturn l + root.data + r;\n return count;\n }",
"public int probabilidadesHastaAhora(){\n return contadorEstados + 1;\n }",
"public static void main(String[] args) {\n\n Scanner unos = new Scanner(System.in);\n\n int broj = -1;\n int zbir = 0;\n double prosjek = 0;\n double brojac = -1;\n\n System.out.println(\"Unesite cijele brojeve\");\n broj = unos.nextInt();\n\n while (broj != 0){\n\n broj = unos.nextInt();\n\n zbir = broj + zbir;\n\n brojac = brojac +1;\n //brojac++;\n\n\n }\n System.out.println(\"Zbir unesenih brojeva \" + zbir);\n\n prosjek = zbir / brojac;\n System.out.print(\"Prosjek je \");\n System.out.println(prosjek);\n\n }",
"public int darCantidadHijos( )\r\n {\r\n return hijos != null ? hijos.darLongitud( ) : 0;\r\n }",
"public int gradoEntrada() {\n \tint[] cont = new int[numV];//crear e inicializar el array de contadores\n \tfor(int i = 0; i<numV; i++) {\n \t\t//actualizaar el contador del grado de Entrada de cada vertice\n \t\t//de la lista adyacenteDe(i)\n \t\tListaConPI<Adyacente> a = elArray[i];\n \t\tfor(a.inicio(); !a.esFin(); a.siguiente()) {\n \t\tcont[a.recuperar().getDestino()]++;\n \t\t}\n \t}\n \treturn maximo(cont);\n }",
"private int calHValue(int xNum, int oNum) {\r\n if (xNum > 0 && oNum > 0) {\r\n return GameParameters.draw;\r\n }\r\n switch (xNum + oNum) {\r\n case 1:\r\n return xNum > 0 ? onePoint : -onePoint;\r\n case 2:\r\n return xNum > 0 ? twoPoint : -twoPoint;\r\n case 3:\r\n return xNum > 0 ? threePoint : -threePoint;\r\n case 4:\r\n return xNum > 0 ? xWin : oWin;\r\n }\r\n return GameParameters.draw;\r\n }",
"private int totalCount(Piece side) {\n int sum = 0;\n for (int i = 0; i < M; i++) {\n for (int j = 0; j < M; j++) {\n if (boardArr[i][j].abbrev().equals(sideAbbrev)) {\n sum++;\n }\n }\n }\n return sum;\n }",
"public int alturaInterativa() {\n if (this.esArbolVacio()) {\n return 0;\n }\n int alturaDelArbol = 0;\n Queue<NodoBinario<T>> colaDeNodos = new LinkedList<>();\n colaDeNodos.offer(raiz);\n while (!colaDeNodos.isEmpty()) {\n int nroDeNodosDelNivel = colaDeNodos.size();\n while (nroDeNodosDelNivel > 0) {\n NodoBinario<T> nodoActual = colaDeNodos.poll();\n if (!nodoActual.esHijoIzquiedoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoIzquierdo());\n }\n if (!nodoActual.esHijoDerechoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoDerecho());\n }\n nroDeNodosDelNivel--;\n }\n alturaDelArbol++;\n }\n return alturaDelArbol; //Altura total del arbol\n }",
"public void sumValues(){\n\t\tint index = 0;\n\t\tDouble timeIncrement = 2.0;\n\t\tDouble timeValue = time.get(index);\n\t\tDouble packetValue;\n\t\twhile (index < time.size()){\n\t\t\tDouble packetTotal = 0.0;\n\t\t\twhile (timeValue < timeIncrement && index < packets.size()){\n\t\t\t\ttimeValue = time.get(index);\n\t\t\t\tpacketValue = packets.get(index);\n\t\t\t\tpacketTotal= packetTotal + packetValue;\n\t\t\t\tindex = index + 1;\n\t\t\t}\n\t\t\tArrayList<Double> xy = new ArrayList<Double>();\n\t\t\txy.add(timeIncrement);\n\t\t\txy.add(packetTotal);\n\t\t\ttotalIncrements.add(xy);\n\t\t\t// to get max and min need separate arrays\n\t\t\ttimeIncrements.add(timeIncrement);\n\t\t\tbyteIncrements.add(packetTotal);\n\t\t\ttimeIncrement = timeIncrement + 2.0;\t\n\t\t}\n\t\treturn;\n\n\t}",
"public static int Main()\n\t {\n\t\t int x;\n\t\t int j;\n\t\t int[] a = new int[16];\n\t\t x = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t int i = 1;\n\t\t int k = 0;\n\t\t while (x != -1)\n\t\t {\n\t\t\ta[i] = x;\n\t\t\ti++;\n\t\t if (x != 0)\n\t\t {\n\t\t\t k = i;\n\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\tint sum = 0;\n\t\t\t for (i = 1;i <= k;i++)\n\t\t\t {\n\t\t\t\t for (j = 1;j <= k ;j++)\n\t\t\t\t {\n\t\t\t\t if (a[i] == 2 * a[j])\n\t\t\t\t {\n\t\t\t\t\t sum++;\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t\t\t\tSystem.out.print((sum - 1));\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t\ti = 1;\n\t\t\t }\n\t\t\tx = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t }\n\t\t\treturn 0;\n\t }",
"private int Sum1(int x) {\n int a = ROTR(6, x);\n int b = ROTR(11, x);\n int c = ROTR(25, x);\n int ret = a ^ b ^ c;\n return ret;\n }",
"private int count1_bitcount(int [] ix, EChannel cod_info) {\n\t\tint p, i, k;\n\t\tint signbits;\n\t\tint sum0 = 0, sum1 = 0;\n\t\tint count1End = bigvalues_region + count1_region;\n\n\t\tfor(i = bigvalues_region, k=0; k < count1End; i+=4, k++) {\n\t\t\tv = Math.abs(ix[i]);\n\t\t\tw = Math.abs(ix[i+1]);\n\t\t\tx = Math.abs(ix[i+2]);\n\t\t\ty = Math.abs(ix[i+3]);\n\n\t\t\tp = signbits = 0;\n\t\t\tif(v!=0) { signbits++; p |= 1; }\n\t\t\tif(w!=0) { signbits++; p |= 2; }\n\t\t\tif(x!=0) { signbits++; p |= 4; }\n\t\t\tif(y!=0) { signbits++; p |= 8; }\n\n\t\t\tsum0 += signbits;\n\t\t\tsum1 += signbits;\n\n\t\t\tsum0 += hlen[32][p];\n\t\t\tsum1 += hlen[33][p];\n\t\t}\n\n\t\tif(sum0 < sum1) {\n\t\t\tcod_info.count1table_select = 0;\n\t\t\treturn sum0;\n\t\t} else {\n\t\t\tcod_info.count1table_select = 1;\n\t\t\treturn sum1;\n\t\t}\n\t}",
"public void nourrir() {\n if (!autoriseOperation()) {\n return;\n }\n\n incrFaim(-2);\n incrPoids(1);\n incrHumeur(1);\n incrXp(1);\n\n System.out.println(tamagoStats.getXp());\n setChanged();\n notifyObservers();\n\n }",
"public int vecinos(){\n int v=0;\n if(fila<15 && columna<15 && fila>0 && columna>0){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;} \n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n }\n else{v=limitesX();}\n return v;\n }",
"public static int size_sum_e() {\n return (32 / 8);\n }",
"public float totalVentas() {\n float total = 0;\n for (int i = 0; i < posicionActual; i++) {\n total += getValorCompra(i); //Recorre el arreglo y suma toda la informacion el el arreglo de los valores en una variable que luego se retorna \n }\n return total;\n }",
"Integer total();",
"public void sumar() {\n Acumula.acumulador++;\n }",
"public int calculateSize(NoArvore tree)\n {\n int size = 0;\n if (tree == null)\n return 0;\n else {\n size = calculateSize (tree.getEsquerda()) + calculateSize (tree.getDireita()) + 1;\n return size;\n }\n }",
"int getChestsAmount();",
"public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\treturn total;\n}",
"public Integer getTotalHouseholds() {\r\n\t\t// Default to return a total of 0 households in case Data stores nothing\r\n\t\tint totalHouseholds = 0;\r\n\t\t\r\n\t\t// Iterator to cycle through all data to calculate total households.\r\n\t\tIterator<Data> incomes = this.data.values().iterator();\r\n\t\t\r\n\t\twhile(incomes.hasNext()) {\r\n\t\t\ttotalHouseholds += incomes.next().getHouseholds();\r\n\t\t}\t// end while\r\n\t\t\r\n\t\treturn totalHouseholds;\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint[] brojeviunizu = new int[512];\n\t\tdouble brojbrojevaunizu;\n\t\tint brojac=0;\n\t\tint zbir=0;\n\t\tSystem.out.println(\"\\nUnesite koliko brojeva zelite da bude u nizu: \");\n\t\tbrojbrojevaunizu = input.nextInt();\n\t\tSystem.out.print(\"\\n\");\n\t\tfor(brojac=0;brojac<brojbrojevaunizu;brojac++) {\n\t\t\tSystem.out.println(+(brojac+1)+\". element niza je: \");\n\t\t\tbrojeviunizu[brojac] = input.nextInt();\n\t\t}\n\t\tSystem.out.println(\"\\nElementi niza su: \\n\"); \n\t\tfor(brojac=0;brojac<brojbrojevaunizu;brojac++) \n\t\t{\n\t\tSystem.out.println((brojac+1)+\". broj u nizu je: \" +brojeviunizu[brojac]);\n\t\tzbir=zbir+brojeviunizu[brojac];\n\t\t}\n\t\tSystem.out.println(\"Ukupan zbir clanova niza je: \"+zbir);\n\t\tSystem.out.println(\"Prosek clanova niza je: \"+(zbir/brojbrojevaunizu));\n\t\tinput.close(); \n\t}",
"public static void main(String[] args) {\n int[] row1 = new int[]{3, 5, 1, 1};\n int[] row2 = new int[]{2, 3, 3, 2};\n int[] row3 = new int[]{5, 5};\n int[] row4 = new int[]{4, 4, 2};\n int[] row5 = new int[]{1, 3, 3, 3};\n int[] row6 = new int[]{1, 1, 6, 1, 1};\n\n //create a hashmap to hold keys(sums), and values(number of times the wall has rows that add up to that sum)\n HashMap<Integer, Integer> hashMap = new HashMap<>();\n\n //iterate over a row, each time a sum is reached replace the value at key sum, with an incremented value\n int sum = 0;\n for (int i = 0; i < row1.length - 1; i++) {\n\n sum += row1[i];\n if (hashMap.containsKey(sum)) {\n int var = hashMap.get(sum) + 1;\n hashMap.replace(sum, var);\n } else {\n hashMap.put(sum, 1);\n }\n }\n //print out the contents of the keySet, which sums have been reached, and the values aka how many times each sum has been reached\n System.out.println(\"Sums Reached and how many times respectively:\");\n System.out.println(hashMap.keySet());\n System.out.println(hashMap.values());\n System.out.println(\"------------------------\");\n\n //Do this for every row in the wall\n sum = 0;\n for(int i = 0; i < row2.length-1; i++) {\n\n sum += row2[i];\n if(hashMap.containsKey(sum)) {\n int var = hashMap.get(sum)+1;\n hashMap.replace(sum, var);\n } else {\n hashMap.put(sum, 1);\n }\n }\n System.out.println(\"Sums Reached and how many times respectively:\");\n System.out.println(hashMap.keySet());\n System.out.println(hashMap.values());\n System.out.println(\"------------------------\");\n\n sum = 0;\n for(int i = 0; i < row3.length-1; i++) {\n\n sum += row3[i];\n if(hashMap.containsKey(sum)) {\n int var = hashMap.get(sum)+1;\n hashMap.replace(sum, var);\n } else {\n hashMap.put(sum, 1);\n }\n }\n System.out.println(\"Sums Reached and how many times respectively:\");\n System.out.println(hashMap.keySet());\n System.out.println(hashMap.values());\n System.out.println(\"------------------------\");\n\n sum = 0;\n for(int i = 0; i < row4.length-1; i++) {\n\n sum += row4[i];\n if(hashMap.containsKey(sum)) {\n int var = hashMap.get(sum)+1;\n hashMap.replace(sum, var);\n } else {\n hashMap.put(sum, 1);\n }\n }\n System.out.println(\"Sums Reached and how many times respectively:\");\n System.out.println(hashMap.keySet());\n System.out.println(hashMap.values());\n System.out.println(\"------------------------\");\n\n sum = 0;\n for(int i = 0; i < row5.length-1; i++) {\n\n sum += row5[i];\n if(hashMap.containsKey(sum)) {\n int var = hashMap.get(sum)+1;\n hashMap.replace(sum, var);\n } else {\n hashMap.put(sum, 1);\n }\n }\n System.out.println(\"Sums Reached and how many times respectively:\");\n System.out.println(hashMap.keySet());\n System.out.println(hashMap.values());\n System.out.println(\"------------------------\");\n\n sum = 0;\n for(int i = 0; i < row6.length-1; i++) {\n\n sum += row6[i];\n if(hashMap.containsKey(sum)) {\n int var = hashMap.get(sum)+1;\n hashMap.replace(sum, var);\n } else {\n hashMap.put(sum, 1);\n }\n }\n System.out.println(\"Sums Reached and how many times respectively:\");\n System.out.println(hashMap.keySet());\n System.out.println(hashMap.values());\n System.out.println(\"------------------------\");\n\n //now that every row has been covered, the key associated with the highest value will be where you should make your cut\n System.out.println(\"To cut through the least amount of bricks, you should make the cut at: \");\n int max = 0;\n for(int i : hashMap.values()) {\n if(i > max) {\n max = i;\n }\n }\n for(Map.Entry<Integer, Integer> entry : hashMap.entrySet()) {\n if(entry.getValue() == max) {\n System.out.println(entry.getKey());\n }\n }\n //and the # of bricks to cut through will be the amount of rows minus how many times the sum was reached\n System.out.println(\"The least amount of rows to cut through is \");\n System.out.println(6 - max);\n\n }",
"static void tinhTongChanLe(int []x) {\n\t\tint sum = 0;\n\t\t\n\t\tfor(int i = 0 ; i < x.length ; i ++) {\n\t\tsum += x[i];\n\t\t}\n\t\tif(sum % 2 == 0 ) {\n\t\t\tSystem.out.println(\"\\nTong cua mang la chan\");\n\t\t}\telse {\n\t\t\tSystem.out.println(\"\\nTong mang la le\\n\");\n\t\t\t}\n\t}",
"public static int size_sum_a() {\n return (32 / 8);\n }",
"private int totalInfeasibility(int[] chromosome) {\n\t\tint infeasibility = 0;\n\t\tint[] bins = new int[binCount];\n\t\tfor (int i = 0; i < chromosome.length; i++) {\n\t\t\tif (chromosome[i] >= bins.length) {\n\t\t\t\tinfeasibility += 10;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tbins[chromosome[i]] += packageWeights[i]; //put package into bin\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"noooo\");\n\t\t\t}\n\n\t\t}\n\n\t\tfor (int i = 0; i < bins.length; i++) {\n\t\t\tif (bins[i] > binSize)\n\t\t\t\tinfeasibility += bins[i] - binSize;\n\t\t}\n\t\treturn infeasibility;\n\t}",
"public static void main(String[] args) {\n\t\tint[] numeros= new int[10];\r\n\t\t\r\n\t\tnumeros[0]=1;\r\n\t\tnumeros[1]=7;\r\n\t\tnumeros[2]=-8;\r\n\t\tnumeros[3]=5;\r\n\t\tnumeros[4]=4;\r\n\t\tnumeros[5]=-6;\r\n\t\tnumeros[6]=4;\r\n\t\tnumeros[7]=0;\r\n\t\tnumeros[8]=8;\r\n\t\tnumeros[9]=0;\r\n\t\t\r\n\t\tSystem.out.println(numeros.length);\r\n\t\t\r\n\t\tint ceros =0;\r\n\t\tint positivos = 0;\r\n\t\tint negaitvo = 0;\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"private int Sum0(int x) {\n int a = ROTR(2, x);\n int b = ROTR(13, x);\n int c = ROTR(22, x);\n int ret = a ^ b ^ c;\n return ret;\n }",
"public void countCoins() {\r\n\t\tthis.coinCount = 0;\r\n\t\tfor (int x = 0; x < WIDTH; x++) {\r\n\t\t\tfor (int y = 0; y < HEIGHT; y++) {\r\n\t\t\t\tif (this.accessType(x, y) == 'C')\r\n\t\t\t\t\tthis.coinCount++;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private int obstaculos() {\n\t\treturn this.quadricula.length * this.quadricula[0].length - \n\t\t\t\tthis.ardiveis();\n\t}",
"private int size(Node x) {\n if (x == null) return 0;\n return 1 + size(x.left) + size(x.right);\n }",
"public static void main(String[] args) {\n\t\tRandom coiso = new Random();\n\t\tList<Integer> stats = new ArrayList<Integer>();\n\t\tList<Integer> rolls = new ArrayList<Integer>();\n\t\tint soma = 0;\n\t\t\n\t\t\n\t\t/*for (int i=0;i<10;i++)\n\t\t\tSystem.out.println(1+coiso.nextInt(19));*/\n\t\tfor (int j=0;j<6;j++) {\n\t\t\tfor (int s=0;s<4;s++) {\n\t\t\t\trolls.add(1+coiso.nextInt(6));\n\t\t\t}\n\t\t\trolls.sort(new Comparator<Integer>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(Integer o1, Integer o2) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn o1.compareTo(o2);\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\trolls.remove(0);\n\t\t\tfor (int v=0;v<3;v++)\n\t\t\t\tsoma += rolls.get(v);\n\t\t\tstats.add(soma);\n\t\t\trolls.clear();\n\t\t\tsoma=0;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(stats);\n\t\tfor (int i=0;i<6;i++)\n\t\t\tsoma+=stats.get(i);\n\t\tSystem.out.println(soma);\n\n\t}",
"private int hallarCuposArea(String k_idparqueadero, String k_idarea) throws CaException{\n int cupos = 0;\n \n try {\n String strSQL = \"SELECT q_cuposdisponibles from area WHERE k_idparqueadero=? AND k_idarea=?\";\n Connection conexion = ServiceLocator.getInstance().tomarConexion();\n PreparedStatement prepStmt = conexion.prepareStatement(strSQL);\n prepStmt.setInt(1, Integer.valueOf(k_idparqueadero));\n prepStmt.setString(2, k_idarea);\n ResultSet rs = prepStmt.executeQuery();\n while (rs.next()) {\n cupos = rs.getInt(1);\n break;\n }\n } catch (SQLException e) {\n throw new CaException(\"ServicioDAO\", \"No pudo recuperar el servicio\" + e.getMessage());\n }finally {\n ServiceLocator.getInstance().liberarConexion();\n }\n \n return cupos;\n }",
"public static void main(String[] args) {\n\t\tint array[] = { 5, 2, 3, 6, 1 };\n\t\tint total = ((array.length + 1) * (array.length + 2)) / 2;\n\t\tSystem.out.println(total);\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\ttotal -= array[i];\n\t\t}\n\t\tSystem.out.println(\"Missing number=\" + total);\n\t}",
"public int getTotalCollisions(){\r\n return totalCollisions;\r\n }",
"private int size(Node x) {\n if (x == null) return 0;\n else return x.N;\n }",
"int calculaX(){\n int n;\n if(pratonl[0][0]==pquesol[0][0]){//evalua si esta en la misma fila\n n=0;\n }else{\n n=pquesol[0][0]-pratonl[0][0]; \n }\n return n;\n }",
"private void syncNumCopertiTotali() {\n int qPranzo = campoPranzo.getInt();\n int qCena = campoCena.getInt();\n campoTotale.setValore(qPranzo+qCena);\n }",
"private Integer getMines(Integer xOpen, Integer yOpen){\n int counter=0;\r\n // System.out.println(\"getMines() [\"+xOpen+\"][\"+yOpen+\"]\");\r\n for(int i=xOpen-1; i<=(xOpen+1) ; i++){\r\n for(int j=yOpen-1; j<=(yOpen+1) ; j++){\r\n if(isValidCell(i,j) && grid[i][j].isMine()){ //split y && le quite uno\r\n counter++; //solo un operador and \r\n }\r\n }\r\n }\r\n// System.out.println(\" getMines().result = \"+counter);\r\n return counter; //contador de minas, el mismo no puede ser una mina \r\n }",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n // Declaración de datos\n int values[], tamanio;\n\n // Ingreso de datos\n System.out.println(\"Tamaño del arreglo: \");\n tamanio = scan.nextInt();\n\n // Inicialización de array\n values = new int[tamanio];\n\n // Generación de datos aleatorios para array\n for (int i = 0; i < values.length; i++) {\n values[i] = (int) (Math.random() * 100);\n }\n\n // Proceso de búsqueda binaria\n for (int i = 0; i < 10000000; i++) {\n int index = -1;\n for (int j = 0; j < values.length; j++) {\n if (values[j] == 80) {\n index = j;\n System.out.println(\"Número encontrado -> en la posición\" + index);\n }\n if (values[j] != 80){\n System.out.println(\"No fue posible encontrar el número\");\n }\n }\n }\n\n }",
"public static void main(String[] args) {\r\n\r\n\t\tint n=439;\r\n\r\n\t\tint count = 1;\r\n\t\tint binary[] = new int[32];\r\n\t\tint i = 0;\r\n\t\twhile (n > 0) {\r\n\t\t\tbinary[i] = n % 2;\r\n\t\t\tn = n / 2;\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t\tfor (int j = i - 1; j >= 0; j--) {\r\n\r\n\t\t\tString str = String.valueOf(i);\r\n\t\t\t\r\n\t\tString ar[]=str.split(\"0\");\r\n\t\t\t\r\n\t\tif(ar.length>1)\r\n\t\t{\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\t/*\t\r\n\t\t\tif (binary[j] == 1 && binary[j + 1] == 1) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.print(binary[j]);\r\n*/\r\n\t\t}\r\n\t\tSystem.out.print(count);\r\n\t\t/*scanner.close();*/\r\n\t}",
"private static void calcularTotal(String[] campos) {\n\t\tif (campos.length == 1)\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos: \" + gestor.totalAtribuidos());\n\t\telse {\n\t\t\tint escalao = Integer.valueOf(campos[1]);\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos no escalao \" + escalao + \" : \" + gestor.atribuidosNoEscalao(escalao));\n\t\t}\n\t}",
"public int totalHabitantes() {\r\n\tIterator<Ciudad> it = ciudades.iterator();\r\n\tint totalhab = 0;\r\n\tint i = 0;\r\n\twhile(it.hasNext()) {\r\n\t\ttotalhab += it.next().getHabitantes();\r\n\t\t\r\n\t}\r\n\t return totalhab;\r\n\r\n }",
"private int size(Node x) {\n\t\t\tif(x==null)return 0;\n\t\t\treturn x.N;\n\t\t}",
"@Override\n public void calcularIntGanado() {\n intGanado = saldo;\n for(int i = 0; i < plazoInv; i++){\n intGanado += inve * 12;\n intGanado += intGanado * (intAnual / 100);\n }\n intGanado = intGanado - (inve + saldo);\n }",
"int getSumaAdunata();",
"public static void main(String[] args) {\n\t\t\r\n\t\tint codigo, n,categoria, cant1=0,cant2=0,cant3=0,sal1=0,sal2=0,sal3=0;\r\n\t\tint suma1=0 ,suma2=0,suma3=0;\r\n\t\t\r\n\t\tn=Integer.parseInt(JOptionPane.showInputDialog(\"la cantidad de empleado \"));\r\n\t\tfor (int i=1;i<=n;i++) {\r\n\t\t\tcodigo=Integer.parseInt(JOptionPane.showInputDialog(\"el codigo del empleado\"));\r\n\t\t\tcategoria=Integer.parseInt(JOptionPane.showInputDialog(\"ingrese categoria del empleado de 1 a 3 \"));\r\n\t\t\t\r\n\t\t\tif (categoria==1) {\r\n\t\t\t\tsal1=Integer.parseInt(JOptionPane.showInputDialog(\"ingrese salario \"));\r\n\t\t\t\tcant1=cant1+1;\r\n\t\t\t\tsuma1=suma1+sal1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if(categoria==2) {\r\n\t\t\t\t\r\n\t\t\t\tsal2=Integer.parseInt(JOptionPane.showInputDialog(\"ingrese salario \"));\r\n\t\t\t\tcant2=cant2+1;\r\n\t\t\t\tsuma2=suma2+sal2;\r\n\t\t\t}\r\n\t\t\telse if(categoria==3) {\r\n\t\t\tsal3=Integer.parseInt(JOptionPane.showInputDialog(\"ingrese salario \"));\r\n\t\t\tcant3=cant3+1;\r\n\t\t\tsuma3=suma3+sal3;\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"la cantidad de empleados de la categoria 1 es:\"+ cant1);\r\n\t\tSystem.out.println(\"la cantidad de empleados de la categoria 2 es:\"+ cant2);\r\n\t\tSystem.out.println(\"la cantidad de empleados de la categoria 3 es:\"+ cant3);\r\n\t\tSystem.out.println(\"el promedio de salario de la categoria 1:\"+ suma1/cant1);\r\n\t\tSystem.out.println(\"el promedio de salario de la categoria 2:\"+ suma2/cant2);\r\n\t\tSystem.out.println(\"el promedio de salario de la categoria 3:\"+ suma3/cant3);\r\n\t\tSystem.out.println(\"la suma de todos los salarios es:\"+ suma1+suma2+suma3);\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n\t\t}\n\t}",
"public int limitesY(){\n int v=0;\n if (columna==0 && fila>0 && fila<15){\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n }\n else if (columna==15 && fila>0 && fila<15){\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n }\n else{v=esquinas();}\n return v;\n }",
"BigInteger getNumRegistro();",
"public int getTotalExtraPacks() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getExtraPacksByWins());\n }",
"public static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint sum = scanner.nextInt();\n\t\tint arrLength = scanner.nextInt();\n\n\t\tint[] coins = new int[arrLength];\n\t\tfor (int i = 0; i < arrLength; i++)\n\t\t{\n\t\t\tcoins[i] = scanner.nextInt();\n\t\t}\n\n\t\tlong[][] board = new long[arrLength][sum + 1];\n\n\t\tfor (int i = 0; i < board.length; i++)\n\t\t{\n\t\t\tfor (int j = 0; j < board[0].length; j++)\n\t\t\t{\n\t\t\t\tif (j == 0)\n\t\t\t\t{\n\t\t\t\t\tboard[i][j] = 1;\n\t\t\t\t}\n\t\t\t\telse if (j < coins[i])\n\t\t\t\t{\n\t\t\t\t\tif (i > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tboard[i][j] = board[i - 1][j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (i > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tboard[i][j] = board[i - 1][j] + board[i][j - coins[i]];\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tboard[i][j] = board[i][j - coins[i]];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(board[arrLength - 1][sum]);\n\t}",
"public static int valorInteiro(int[] binario) {\n \n // Calcula o valor inteiro absoluto do binario \n int potencia = 1;\n int valor = 0;\n for(int i = binario.length - 1; i >= 0; i--) {\n valor += potencia * binario[i];\n potencia *= 2;\n }\n \n return valor;\n }",
"private int calculateInputStock_Items() {\n\t\tint total = 0;\n\t\tArrayList<Integer> stock = getAllStockValues();\n\t\tif (!stock.isEmpty()) {\n\t\t\t// get for all K\n\t\t\ttotal += (stock.get(0) * getSetUpMachine().getVending_item().get(\"K\"));\n\t\t\t// get for all S\n\t\t\ttotal += (stock.get(1) * getSetUpMachine().getVending_item().get(\"S\"));\n\t\t\t// get for all F\n\t\t\ttotal += (stock.get(2) * getSetUpMachine().getVending_item().get(\"F\"));\n\t\t\t// get for all N\n\t\t\ttotal += (stock.get(3) * getSetUpMachine().getVending_item().get(\"N\"));\n\t\t}\n\t\treturn total;\n\t}",
"public int sumXYelements(int x, int y) {\n // any of them are 0 or negative, or if they are greater than 255, the function\n // should return -1\n if (x <= 0 || y <= 0 || x > 255 || y > 255) {\n return -1;\n }\n int dimension = (x >= y) ? x : y;\n int[] series = generateSerie(dimension);\n return series[x - 1] + series[y - 1];\n }",
"public static int hammingDistance(int x, int y) {\n String xor = Integer.toBinaryString(x^y);\n System.out.println(\"XOR: \" + xor);\n\n // Count # of 1's in the xor\n int count = 0;\n for (int i=0; i < xor.length(); i++)\n if (xor.charAt(i) == '1')\n count++;\n\n return count;\n }",
"public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"XAC DINH SO HOAN HAO\");\n\t\tSystem.out.println();\n\t\t\n\t\tint j = 0;\n\t\twhile (j < j+1)\n\t\t{\n\t\tint number;//biến số nhập vào\n\t\t\n\t\tdo\n\t\t{\n\t\t//nhập số cần xác định\n\t\tSystem.out.print(\"Nhap so can xac dinh: \");\n\t\tnumber = scan.nextInt();\n\t\t}\n\t\twhile (number < 0); //bắt người dùng nhập số dương\n\t\t\n\t\t\n\t\tint i; //khai báo biến i dùng để thực hiện bài toán\n\t\tint sumDivisor = 0; //tổng các ước\n\t\t\n\t\tfor (i = 1; i < number ;i++ )\n\t\t{\n\t\t\tif (number % i == 0)\n\t\t\t{\n\t\t\t\tsumDivisor += i;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//xác định số đó có phải số hoàn hảo hay không\n\t\tif (sumDivisor == number)\n\t\t{\n\t\t\tSystem.out.println(number +\" La so hoan hao.\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(number + \" Khong phai la so hoan hao.\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t}\n\t}",
"private void determineCounts( )\n {\n for( int r = 0; r < rows; r++ )\n {\n for( int c = 0; c < cols; c++ )\n {\n if( theMines[ r ][ c ] == 1 )\n theCounts[ r ] [ c ] = 9;\n else\n count( r, c );\n }\n }\n }",
"public static void main(String[] args) {\n\n int y = 1, sum = 0;\n\n while (y <= 100) {\n sum = sum + y;\n y++;\n }\n System.out.println(\"Summation: \" + sum);\n\n int sum1 = 0;\n for (int j = 1; j <=100;j++){\n sum1 = j + sum1;\n }\n System.out.println(sum);\n // Count all the even numbers from 1 to 100\n // Apelare la metoda din Logic countEvenNumbers\n\nLogic logic = new Logic();\nlogic.countEvenNumbers();\n\n // Count all the odd numbers from 1 to 100\n// Apelare la metoda din Logic countOddNumbers\n logic.countOddNumbers();\n\n // Apelare la metoda printToHundred\n\n\n logic.printToHundred();\n// Apelare la metoda getSum\n logic.getSum(1,100);\n\n // Apelare metoda printFromHighToLow\n\n logic.printFromHighToLow(100,10);\n\n //Apelare prinString\n\n logic.printString();\n\n\n\n\n\n // Apelare printCozaLozaWoza\nlogic.printLinesCozaLozaWoza();\n\n// Apelare displayFibonacci primele 20 numere\nlogic.displayFibonacci();\n\n\n }",
"public int getTotal() {\n return total[ke];\n }",
"protected int sumAll() {\n\t\tint total = 0;\n\t\t//iterate all rows\n\t\tfor(int i = 0;i<size();i++){\n\t\t\t//itreate all columns\n\t\t\tfor(int j = 0;j<size();j++){\n\t\t\t\tInteger cell = matrix.get(i).get(j);\n\t\t\t\ttotal+=cell;\n\t\t\t}\n\t\t}\n\t\treturn total;\n\t}",
"private static int getBoardSum(Game2048Board board) {\n int boardSum = 0;\n for (Game2048Tile tile : board.getItems()) {\n boardSum += Math.pow(tile.getValue().VAL, SCORE_SUM_POWER);\n }\n return boardSum;\n }"
] | [
"0.64654964",
"0.61365855",
"0.60868263",
"0.6075238",
"0.5970718",
"0.5922037",
"0.57455957",
"0.57261574",
"0.5671911",
"0.5666756",
"0.5661241",
"0.5639377",
"0.5610447",
"0.5604428",
"0.5585328",
"0.5581924",
"0.55652386",
"0.5554072",
"0.55531585",
"0.5533723",
"0.5532283",
"0.5524815",
"0.5518673",
"0.55167425",
"0.55024207",
"0.5499868",
"0.549894",
"0.54965913",
"0.54705787",
"0.5454677",
"0.5447749",
"0.54442793",
"0.54063576",
"0.5389647",
"0.538149",
"0.53771317",
"0.53421855",
"0.53349507",
"0.53258103",
"0.53251594",
"0.53244483",
"0.53202355",
"0.5315872",
"0.5315493",
"0.53134096",
"0.53077203",
"0.5306502",
"0.5286706",
"0.5278281",
"0.52708775",
"0.5266161",
"0.5263315",
"0.52632475",
"0.5257258",
"0.52540886",
"0.5252509",
"0.524766",
"0.5244385",
"0.52383536",
"0.5235974",
"0.5229458",
"0.52264553",
"0.52247286",
"0.5222969",
"0.52229357",
"0.52227616",
"0.5217416",
"0.5213686",
"0.5207285",
"0.52040774",
"0.51991993",
"0.5196086",
"0.51937735",
"0.5190513",
"0.51854765",
"0.51837116",
"0.51811975",
"0.51794064",
"0.5174234",
"0.51661354",
"0.51652557",
"0.51594913",
"0.51589805",
"0.5155254",
"0.5152805",
"0.51499224",
"0.51442546",
"0.51431274",
"0.5141486",
"0.5130771",
"0.5130597",
"0.5130469",
"0.5130389",
"0.51292694",
"0.51213425",
"0.5117256",
"0.5109633",
"0.5108623",
"0.50801444",
"0.50780046"
] | 0.5113505 | 96 |
TODO Autogenerated method stub | public void savePerson(Person person) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void findPersonById(int i) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | public Object getPersonService() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Ensure we have a starting base | @Test
@Ignore("This is only applicable to Neo4j 2.0.0-M03 and below where transactions " +
"were not mandatory for reading")
public void defaultReadingIsReadCommitted() throws Exception {
assertNameAndAgeViaLookup(john.getId(), "John", 34, "John");
// Do the update in a separate Thread and ensure its actually updated
doUpdateInSeparateThread(new PersonUpdater("John", 44));
// Now, back in our thread, ensure we read the commited value
assertNameAndAgeViaLookup(john.getId(), "John", 44, "John");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRequiredBase(int value) {\n this.requiredBase = value;\n }",
"public int getRequiredBase() {\n return requiredBase;\n }",
"public URL makeBase(URL startingURL);",
"public void setBase(Integer base);",
"public void changeToBaseOne() {\r\n\t\tthis.numberBase = 1;\r\n\t}",
"boolean hasBase();",
"public void testExtendsBase() {\n final LinkerDef baseLinker = new LinkerDef();\n baseLinker.setBase(new FlexLong(\"10000\"));\n final LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef(baseLinker);\n setLinkerName(extendedLinker, \"msvc\");\n final String[] preArgs = getPreArguments(extendedLinker);\n assertEquals(\"/NOLOGO\", preArgs[0]);\n assertEquals(\"/SUBSYSTEM:WINDOWS\", preArgs[1]);\n assertEquals(\"/INCREMENTAL:NO\", preArgs[2]);\n assertEquals(\"/BASE:0x2710\", preArgs[3]);\n }",
"private void setBaseTipPerBag() {\n System.out.println(\"What would you like the base tip per bag to be?\");\n baseTipPerBag = keyboard.nextDouble();\n \n \n if(baseTipPerBag < 0) {\n throw new IllegalArgumentException(\n \"error: base tip must be greater than or equal to zero\");\n }\n \n }",
"public void setBase(LocatorIF base_address) {\n this.base_address = base_address;\n }",
"private void resetToBase(){\n\t\t//find number of markers after base\n\t\tSystem.out.println(\"here is the base: \" + base);\n\t\tint numMarkers = 0;\n\n\t\tfor(int i=base+1; i<indices.length; i++){\n\t\t\tif(indices[i]==1){\n\t\t\t\tindices[i] = 0;\n\t\t\t\tnumMarkers++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=base; i<base+numMarkers; i++){\n\t\t\tindices[i+1] = 1;\n\t\t}\n\t}",
"public void setBaseNumber(int baseNumber) {\r\n\t\tthis.baseNumber = baseNumber;\r\n\t}",
"public void setBase(double base) {\n\t\tthis.base = base;\n\t}",
"public void setBaseId(String baseId) {\n this.baseId = baseId;\n }",
"public void base() {\n APIlib.getInstance().addJSLine(jsBase + \".base();\");\n }",
"public static void setBaseURL() {\n\n\t\tRestAssured.baseURI = DataReader.dataReader(\"baseURL\");\n\t}",
"public void setBaseLimit() {\n //sets the bas and the limit in memory\n machine.memory.setBase(0);\n machine.memory.setLimit(Machine.MEMORY_SIZE);\n }",
"void generateLeafNodeBase(World world, BlockPos pos, FoliageCoordinates coord) {\n\t\tint branchBaseY = coord.getBranchBase();\n\t\tBlockPos blockpos = new BlockPos(pos.getX(), branchBaseY, pos.getZ());\n\n\t\tif (!blockpos.equals(coord)\t&& leafNodeNeedsBase(branchBaseY - pos.getY())) {\n\t\t\tgenerateLimb(world, blockpos, coord);\n\t\t}\n\t}",
"public boolean isUseBase()\n {\n return (isPragma() && getModule().toKeyword().isBaseKeyword());\n }",
"protected abstract float getRequiredBaseOffset();",
"@Test\r\n \tpublic void testGetBaseVersion() {\n \t\tESPrimaryVersionSpec version = localProject.getBaseVersion();\r\n \t\tassertNull(version);\r\n \t}",
"public void setBaseId(Long baseId) {\n this.baseId = baseId;\n }",
"@Test\n\tpublic void getStartingSpaceCorrect(){\n\t\tassertEquals(11, adventurer1.getStartingSpace());\n\t}",
"public void testOnlyBaseMutated()\n {\n poly.getPrefixMapping().setNsPrefix( \"a\", alpha );\n assertEquals( null, g1.getPrefixMapping().getNsPrefixURI( \"a\" ) );\n assertEquals( null, g2.getPrefixMapping().getNsPrefixURI( \"a\" ) );\n assertEquals( alpha, gBase.getPrefixMapping().getNsPrefixURI( \"a\" ) );\n }",
"static String getBase(HttpServletRequest request) {\n String fullPath = request.getRequestURI();\n int baseEnd = getDividingIndex(fullPath);\n return fullPath.substring(0, baseEnd + 1);\n }",
"public void go_to_base_position() {\n stop_hold_arm();\n Dispatcher.get_instance().add_job(new JMoveArm(RobotMap.Arm.pot_value_base, 0.9, 0.7, 0.7, 0.2, 0.8, false, false));\n // Extend the arm after getting to the base position\n Dispatcher.get_instance().add_job(new JRunnable(() -> Pneumatics.get_instance().set_solenoids(true), this));\n hold_arm();\n }",
"public int getBaseNumber() {\r\n\t\treturn baseNumber;\r\n\t}",
"public Address getStartAddress() {\n\t\treturn baseAddress;\n\t}",
"@Test\r\n public void baseUri() throws Exception\r\n {\n HtmlLoadOptions loadOptions = new HtmlLoadOptions(LoadFormat.HTML, \"\", getImageDir());\r\n\r\n Assert.assertEquals(LoadFormat.HTML, loadOptions.getLoadFormat());\r\n\r\n Document doc = new Document(getMyDir() + \"Missing image.html\", loadOptions);\r\n\r\n // While the image was broken in the input .html, our custom base URI helped us repair the link.\r\n Shape imageShape = (Shape)doc.getChildNodes(NodeType.SHAPE, true).get(0);\r\n Assert.assertTrue(imageShape.isImage());\r\n\r\n // This output document will display the image that was missing.\r\n doc.save(getArtifactsDir() + \"HtmlLoadOptions.BaseUri.docx\");\r\n //ExEnd\r\n\r\n doc = new Document(getArtifactsDir() + \"HtmlLoadOptions.BaseUri.docx\");\r\n\r\n Assert.assertTrue(((Shape)doc.getChild(NodeType.SHAPE, 0, true)).getImageData().getImageBytes().length > 0);\r\n }",
"public String getBase()\n {\n return base;\n }",
"public void setBase(boolean base)\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(BASE$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(BASE$18);\r\n }\r\n target.setBooleanValue(base);\r\n }\r\n }",
"public void assignBaseBuilder(Ship ship) {\n\t\tbaseBuilder = ship.getId();\n\t}",
"@Override\n public boolean atFriendlyBase() {\n return gameMap.isLocationBase(side, reference);\n }",
"public GHCommitPointer getBase() {\n return base;\n }",
"boolean leafNodeNeedsBase(int deltaY) {\n\t\treturn deltaY >= this.heightLimit * 0.2;\n\t}",
"private void testStartBaseLocationsDraw() {\n this.mPlayers = new Player[Constants.NUM_OF_PLAYERS];\n BoardField[] startBases = this.mBoardLevel.getStartingFields();\n PlayerType[] types = {PlayerType.YELLOW, PlayerType.RED, PlayerType.BLUE, PlayerType.GREEN};\n Token[] tokens = new Token[Constants.START_FIELD_LOCATION_NUMBER];\n for(int i = 0; i < this.mPlayers.length; i++) {\n // create player tokens.\n for (int j = 0; j < Constants.START_FIELD_LOCATION_NUMBER; j++) {\n tokens[j] = new Token(types[i], this.mResources.getToken(types[i]));\n }\n // create player start base.\n StartBase sb = StartBaseFactory.createStartBase(types[i],\n Constants.START_FIELD_GRID_ROWS,\n Constants.START_FIELD_GRID_COLUMNS,\n Constants.START_FIELD_GRID_SIZE,\n Constants.START_FIELD_LOCATION_NUMBER,\n startBases[i],\n tokens);\n // create player.\n this.mPlayers[i] = new Player(sb, tokens, types[i]);\n\n // add token to the start position\n Point startLocation = startBases[i].getLocation();\n Image tokenImage = new Image(this.mResources.getToken(types[i]));\n Vector2 startTokenLocation =this.mBoardLevel.getCenterOfLocation(startLocation.getX(),\n startLocation.getY());\n tokenImage.setPosition(startTokenLocation.x, startTokenLocation.y);\n this.mStage.addActor(tokenImage);\n\n // add tokens to the start base\n for (int r = 0; r < Constants.START_FIELD_GRID_ROWS; r ++) {\n for (int c = 0; c < Constants.START_FIELD_GRID_COLUMNS; c++) {\n tokenImage = new Image(this.mResources.getToken(types[i]));\n Vector2 tokenLocation = sb.getCenterOfLocation(r, c);\n tokenImage.setPosition(tokenLocation.x, tokenLocation.y);\n this.mStage.addActor(tokenImage);\n }\n }\n }\n }",
"public void testMoveToStart() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n test1.moveToStart();\n assertTrue(test1.getValue().inRange(0));\n }",
"private void validate() throws BaseException\n {\n boolean okay = true;\n\n //TODO: check the bases in seq for validity\n // If the type is RNA, the base T is not allowed\n // If the type is DNA, the base U is not allowed\n // If a disallowed type is present, set okay to false.\n \n if (!okay)\n {\n throw new BaseException();\n }\n }",
"@Test\n public void testCheckStartAndGoalPosition()throws Exception{\n GenerateLevel generateLevel = new GenerateLevel(20,\n \"XmlFiles/missingStartGoalPos.xml\");\n generateLevel.loadLevel(1);\n assertFalse(generateLevel.checkStartAndGoalPosition());\n }",
"public void xsetBase(org.apache.xmlbeans.XmlBoolean base)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlBoolean target = null;\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(BASE$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(BASE$18);\r\n }\r\n target.set(base);\r\n }\r\n }",
"void setZeroStart();",
"@Test(timeout = 4000)\n public void test039() throws Throwable {\n Range range0 = Range.ofLength(0L);\n boolean boolean0 = range0.startsBefore(range0);\n assertFalse(boolean0);\n assertTrue(range0.isEmpty());\n }",
"public boolean isSetBase()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(BASE$18) != null;\r\n }\r\n }",
"@Override\n\tpublic boolean isStartingState(State state, MaxNode maxNode) {\n\t\treturn false;\n\t}",
"private int getFrameworkInitialStartLevel()\n {\n int startLevel;\n //\n final FrameworkStartLevel fsl =\n Activator.bc.getBundle(0).adapt(FrameworkStartLevel.class);\n if (null != fsl) {\n startLevel = fsl.getInitialBundleStartLevel();\n } else {\n startLevel = 1; // Fallback to the default initial bundle start level\n }\n return startLevel;\n }",
"@Override\n protected void startup() throws Throwable {\n\n\tsetTraceBase(baseDir);\n\n }",
"public int getNumericBase() {\n return _base;\n }",
"@Test\n public void testSetBeginNotInMap(){\n smallMaze.setBegin(Maze.position(26, 23));\n }",
"private boolean checkBasePackages(String className){\n\n if (basePackage == null){\n return false;\n }\n else {\n return className.startsWith(basePackage);\n }\n // This block is function support major framework identity.\n // Not support UI now.\n // if(className.startsWith(\"sun\")){\n // return true;\n // }\n // else if (className.startsWith(\"java\"))\n // {\n // return true;\n // }\n // else{\n // return false;\n // }\n }",
"@BeforeEach\n\tpublic void setup() {\n\t\tif (!initialized) {\n\t\t\tbaseURI = String.format(uri, port);\n\t\t\tinitialized = true;\n\t\t}\n\t}",
"public void isStartNeedleTest()\n {\n LinearSearch ls = new LinearSearch();\n int [] haystack1 = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};\n assertTrue(ls.isStartNeedle(5, haystack1, 5, 10));\n }",
"@Test(timeout = 4000)\n public void test015() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 2147483647L, 2147483647L);\n Object object0 = new Object();\n range0.getBegin();\n // Undeclared exception!\n try { \n range0.startsBefore((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Null Range used in range comparison operation.\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }",
"private String determineBaseline() {\r\n\t\tif (baseline == null) {\r\n\t\t\tString strm = determineStream();\r\n\t\t\tlog(\"Determining baseline from stream [\" + stream + \"]\",\r\n\t\t\t\t\tProject.MSG_VERBOSE);\r\n\t\t\tList<String> foundation = ClearCaseUtils.getFoundationBaselines(\r\n\t\t\t\t\tstrm, getProject(), getCleartoolHome());\r\n\t\t\tif (foundation.size() > 0) {\r\n\t\t\t\t// always take first baseline as a build stream should only have\r\n\t\t\t\t// one.\r\n\t\t\t\tbaseline = foundation.get(0);\r\n\t\t\t\tlog(\"Using derived baseline [\" + baseline + \"]\",\r\n\t\t\t\t\t\tProject.MSG_DEBUG);\r\n\t\t\t} else {\r\n\t\t\t\tthrow new BuildException(\r\n\t\t\t\t\t\t\"Unable to determine baseline to check against. ViewTag[\"\r\n\t\t\t\t\t\t\t\t+ getViewTag() + \"]\", getLocation());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn baseline;\r\n\t}",
"private static void startUp() throws InvalidExpression\r\n {\r\n getExpression();\r\n\r\n boolean valid_expression = checkBalance(infix_expression);\r\n checkValidity(valid_expression);\r\n }",
"public static char nextBase(char srcBase, char currentBase) {\n\t\tchar output;\r\n\t\t\r\n\t\tif(srcBase == 'C' || srcBase == 'A' || srcBase == 'T' || srcBase == 'G') {\r\n\t\t\treturn srcBase;\r\n\t\t}\r\n\t\t\r\n\t\tswitch(srcBase) {\r\n\t\tcase 'U':\r\n\t\t\toutput = 'T';\r\n\t\t\tbreak;\r\n\t\tcase 'R':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'A';\r\n\t\t\telse\r\n\t\t\t\toutput = 'G';\r\n\t\t\tbreak;\r\n\t\tcase 'Y':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'T';\r\n\t\t\telse\r\n\t\t\t\toutput = 'C';\r\n\t\t\tbreak;\r\n\t\tcase 'K':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'T';\r\n\t\t\telse\r\n\t\t\t\toutput = 'G';\r\n\t\t\tbreak;\r\n\t\tcase 'M':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'A';\r\n\t\t\telse\r\n\t\t\t\toutput = 'C';\r\n\t\t\tbreak;\r\n\t\tcase 'S':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'G';\r\n\t\t\telse\r\n\t\t\t\toutput = 'C';\r\n\t\t\tbreak;\r\n\t\tcase 'W':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'A';\r\n\t\t\telse\r\n\t\t\t\toutput = 'T';\r\n\t\t\tbreak;\r\n\t\tcase 'B':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'C';\r\n\t\t\telse if(currentBase == 'C')\r\n\t\t\t\toutput = 'G';\r\n\t\t\telse\r\n\t\t\t\toutput = 'T';\r\n\t\t\tbreak;\r\n\t\tcase 'H':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'A';\r\n\t\t\telse if(currentBase == 'A')\r\n\t\t\t\toutput = 'C';\r\n\t\t\telse\r\n\t\t\t\toutput = 'T';\r\n\t\t\tbreak;\r\n\t\tcase 'V':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'A';\r\n\t\t\telse if(currentBase == 'A')\r\n\t\t\t\toutput = 'C';\r\n\t\t\telse\r\n\t\t\t\toutput = 'G';\r\n\t\t\tbreak;\r\n\t\tcase 'D':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'A';\r\n\t\t\telse if(currentBase == 'A')\r\n\t\t\t\toutput = 'G';\r\n\t\t\telse\r\n\t\t\t\toutput = 'T';\r\n\t\t\tbreak;\r\n\t\tcase 'N':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'A';\r\n\t\t\telse if(currentBase == 'A')\r\n\t\t\t\toutput = 'T';\r\n\t\t\telse if(currentBase == 'T')\r\n\t\t\t\toutput = 'C';\r\n\t\t\telse\r\n\t\t\t\toutput = 'G';\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tprintWriter.print(\"Invalid source base provided.\");\r\n\t\t\toutput = 'Z';\r\n\t\t}\r\n\t\t\r\n\t\treturn output;\r\n\t}",
"public String getRoot(String kmer, generateHash g, long base) {\n\t\tint hashed = (int) g.hashFunction(base, kmer);\n\t\tint count = 0;\n\t\twhile(this.parent[hashed]!= '\\0') {\n\t\t\tif(count > 500) break;\n\t\t\tcount++;\n\t\t\tkmer = this.getParent(kmer, hashed);\n\t\t\thashed = (int) g.hashFunction(base, kmer);\n\t\t}\n\t\treturn kmer;\n\t}",
"public static void loadBaseStrings() {\n\t\t//ensure the base strings file exists\n\t\tif (!extractedFileDir.exists())\n\t\t\textractedFileDir.mkdir();\n\t\tif (!baseStringsFile.exists())\n\t\t\textractDataWin();\n\t\t//find the latest numbered strings file\n\t\tint lastFileNum = 0;\n\t\twhile ((new File(extractedFileDir, nextFileNum + \".txt\")).exists()) {\n\t\t\tlastFileNum = nextFileNum;\n\t\t\tnextFileNum *= 2;\n\t\t}\n\t\twhile (nextFileNum > lastFileNum + 1) {\n\t\t\tint mid = (nextFileNum + lastFileNum) / 2;\n\t\t\tif ((new File(extractedFileDir, mid + \".txt\")).exists())\n\t\t\t\tlastFileNum = mid;\n\t\t\telse\n\t\t\t\tnextFileNum = mid;\n\t\t}\n\t}",
"private static void checkBaseOutputPath(String outputPath) {\r\n\t\tif (outputPath.equals(MultiFileOutputFormat.PART)) {\r\n\t\t\tthrow new IllegalArgumentException(\"output name cannot be 'part'\");\r\n\t\t}\r\n\t}",
"@Test\n\tpublic void testStartingIndicesRegression(){\n\t\tassertLeftmostStartingIndices(\"5,1,7,3,2|-..xxx$1..x...xxx$3....-xx........\", 0, 6, 8, 18, 22);\n\t\tassertRightmostStartingIndices(\"7,5|.......xxx$1....xxx$2..-\", 6, 14);\n\t\t\n\t}",
"public void setStartBank(int arg) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.STARTBANK.toString(), arg);\n\t}",
"@Override\n public final void noteAbsoluteEntryPoint(int currentValue, ClassicLang lang) {\n }",
"@Test(timeout = 4000)\n public void test109() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 2117L, 2117L);\n // Undeclared exception!\n try { \n range0.getBegin((Range.CoordinateSystem) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // CoordinateSystem can not be null\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }",
"private void checkStartLimit(int start, int limit) {\r\n if (start > limit) {\r\n throw new IllegalArgumentException(\r\n \"Start is greater than limit. start:\" + start + \"; limit:\" + limit);\r\n }\r\n if (start < 0) {\r\n throw new IllegalArgumentException(\"Start is negative. start:\" + start);\r\n }\r\n if (limit > length()) {\r\n throw new IllegalArgumentException(\"Limit is greater than length. limit:\" + limit);\r\n }\r\n }",
"public self base(long base) {\n\t\tfor (X vaporView : members)\n\t\t\tvaporView.base(base);\n\t\treturn (self) this;\n\n\t}",
"public void setBase(List<Integer> base) {\n\t\tthis.base = new ArrayList<Integer>(base);\n\t}",
"Node findBaseCases(Dfg dfg, ProcessTree tree, DfgMinerState minerState);",
"@Override\n public String getBase() {\n return base;\n }",
"private NFA base() {\n //check parenthesis case for base\n switch (peek()) {\n case '(':\n eat('(');\n NFA reg = regEx();\n eat(')');\n return reg;\n //if not build a base, simple 2 state nfa\n default:\n NFA defNfa = new NFA();\n //fill out the 5 tuple\n NFAState startS = new NFAState(String.valueOf(stateInc++));\n NFAState endS = new NFAState(String.valueOf(stateInc++)); \n char nextChar = next();\n defNfa.addStartState(startS.getName());\n defNfa.addFinalState(endS.getName());\n defNfa.addTransition(startS.getName(), nextChar, endS.getName());\n Set<Character> alphabet = new LinkedHashSet<Character>();\n alphabet.add(nextChar);\n defNfa.addAbc(alphabet);\n return defNfa;\n }\n }",
"public static boolean generateBaseTextures() {\n return getArgumentList().contains(\"generateBaseTextures\");\n }",
"public void setStartBankGroup(int num)\n\t{\n\t\tsetGroup(_Prefix + HardZone.STARTBANK.toString(), num);\n\t}",
"public String getStd_Base();",
"public void validate() throws org.apache.thrift.TException {\n if (cusPerBase != null) {\n cusPerBase.validate();\n }\n }",
"public void setBasedir(String baseD) throws BuildException {\n setBaseDir(new File(baseD));\n }",
"public SwerveDriveCalculator(Rectangle base) {\n setBase(base.getWidth(), base.getHeight());\n }",
"String[] fixBases() {\r\n\t\tString[] bases = null;\r\n\t\tint numbases = 1;\r\n\t\tif (useNumbers.isChecked())\r\n\t\t\tnumbases++;\r\n\t\tif (useLetters.isChecked())\r\n\t\t\tnumbases++;\r\n\t\tif (useSentences.isChecked())\r\n\t\t\tnumbases++;\r\n\r\n\t\t// default if no check\r\n\t\tif (numbases == 0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tbases = new String[numbases];\r\n\r\n\t\tint idx = 0;\r\n\t\tbases[idx] = SDCARD + \"/cakadidi\" + \"/hmm0\";\r\n\t\tidx++;\r\n\t\tif (useNumbers.isChecked()) {\r\n\t\t\tbases[idx] = SDCARD + \"/cakadidi\" + \"/hmm1\";\r\n\t\t\tidx++;\r\n\t\t}\r\n\r\n\t\tif (useLetters.isChecked()) {\r\n\t\t\tbases[idx] = SDCARD + \"/cakadidi\" + \"/hmm2\";\r\n\t\t\tidx++;\r\n\t\t}\r\n\r\n\t\tif (useSentences.isChecked()) {\r\n\t\t\tbases[idx] = SDCARD + \"/cakadidi\" + \"/hmm3\";\r\n\t\t\tidx++;\r\n\t\t}\r\n\r\n\t\treturn bases;\r\n\r\n\t}",
"public void initialize() {\n\n getStartUp();\n }",
"public void setBaseLength(double baseLength) {\n this.baseLength = baseLength;\n }",
"public void sanityCheck() {\n if ( bucket >= mNumBins ) bucket = mNumBins - 1;\n\n // Sanity check, should not happen.\n if ( bucket < 0 ) bucket = 0;\n }",
"DDTestBase() {\r\n\t\t//TODO Change to get APP_BASE_DIR from properties? (currently passed in as JVM arg)\r\n\t super(APP_NAME, APP_BASE_DIR);\r\n\t setup();\r\n }",
"@BeforeAll\n public static void setUp(){\n baseURI = ConfigurationReader.getProperty(\"spartan.base_url\");\n basePath = \"/api\" ;\n }",
"public double getBase() {\n\t\treturn base;\n\t}",
"@Given(\"^we have valid url \\\"([^\\\"]*)\\\"$\")\n\tpublic void we_have_valid_url(String arg1) {\n\t\t\n\t apiClient.setBasePath(arg1);\n\t}",
"public void setBase(Ship base) {\n this.base = base;\n }",
"public IStatus prepareRuntimeDirectory(IPath baseDir);",
"private List<BaseLocation> getExpectedBaseLocations() {\r\n final List<BaseLocation> baseLocations = new ArrayList<>();\r\n\r\n final Position position1 = new Position(3104, 3856, PIXEL);\r\n final Position center1 = new Position(3040, 3808, PIXEL);\r\n baseLocations.add(new BaseLocation(position1, center1, 13500, 5000, true, false, true));\r\n\r\n final Position position2 = new Position(2208, 3632, PIXEL);\r\n final Position center2 = new Position(2144, 3584, PIXEL);\r\n baseLocations.add(new BaseLocation(position2, center2, 9000, 5000, true, false, false));\r\n\r\n final Position position3 = new Position(640, 3280, PIXEL);\r\n final Position center3 = new Position(576, 3232, PIXEL);\r\n baseLocations.add(new BaseLocation(position3, center3, 13500, 5000, true, false, true));\r\n\r\n final Position position4 = new Position(2688, 2992, PIXEL);\r\n final Position center4 = new Position(2624, 2944, PIXEL);\r\n baseLocations.add(new BaseLocation(position4, center4, 9000, 5000, true, false, false));\r\n\r\n final Position position5 = new Position(1792, 2480, PIXEL);\r\n final Position center5 = new Position(1728, 2432, PIXEL);\r\n baseLocations.add(new BaseLocation(position5, center5, 12000, 0, true, true, false));\r\n\r\n final Position position6 = new Position(3200, 1776, PIXEL);\r\n final Position center6 = new Position(3136, 1728, PIXEL);\r\n baseLocations.add(new BaseLocation(position6, center6, 13500, 5000, true, false, true));\r\n\r\n final Position position7 = new Position(640, 1968, PIXEL);\r\n final Position center7 = new Position(576, 1920, PIXEL);\r\n baseLocations.add(new BaseLocation(position7, center7, 9000, 5000, true, false, false));\r\n\r\n final Position position8 = new Position(1792, 1808, PIXEL);\r\n final Position center8 = new Position(1728, 1760, PIXEL);\r\n baseLocations.add(new BaseLocation(position8, center8, 12000, 0, true, true, false));\r\n\r\n final Position position9 = new Position(2336, 560, PIXEL);\r\n final Position center9 = new Position(2272, 512, PIXEL);\r\n baseLocations.add(new BaseLocation(position9, center9, 13500, 5000, true, false, true));\r\n\r\n final Position position10 = new Position(3584, 720, PIXEL);\r\n final Position center10 = new Position(3520, 672, PIXEL);\r\n baseLocations.add(new BaseLocation(position10, center10, 9000, 5000, true, false, false));\r\n\r\n final Position position11 = new Position(544, 432, PIXEL);\r\n final Position center11 = new Position(480, 384, PIXEL);\r\n baseLocations.add(new BaseLocation(position11, center11, 13500, 5000, true, false, true));\r\n\r\n return baseLocations;\r\n }",
"public void buildInitialBand()\r\n\t{\n\t\r\n\tint bl = boundary.size();\r\n\tfor(int i=0; i<bl; i++) \r\n\t\t{\r\n\t\tInt2d bCur = boundary.get(i);\r\n\t\t//System.out.println(bCur.x + \", \" + bCur.y + \": size = \" + heap.size());\r\n\t\t\r\n\t\ttestPointsAround(bCur.x,bCur.y);\r\n\t\t}\r\n\t\r\n\t}",
"@Override\n public void start() {\n checkValue();\n super.start();\n }",
"private static boolean belongs(URL base, URL derived) {\n return derived.toString().startsWith(base.toString());\n }",
"public boolean isSetCusPerBase() {\n return this.cusPerBase != null;\n }",
"protected abstract int getInitialValue();",
"@BeforeTransaction\n void verifyInitialDatabaseState() throws Exception {\n this.baseDatabaseSetup.setup(this.entityManager);\n }",
"public void createBase(SpanningTree sptree_base) {\n int initLevel = 0;\n SpanningForests sp = new SpanningForests(initLevel);\n sp.trees.add(sptree_base);\n dforests.put(initLevel, sp);\n }",
"public void setStart(int start)\n {\n if(start >= 0)\n {\n this.start = start;\n }\n else\n {\n System.out.println(\"Cannot be negative.\");\n }\n }",
"public int getSueldoBase() {\n return sueldoBase;\n }",
"public String getBaseURI(){\r\n\t\t \r\n\t\t String uri = properties.getProperty(\"baseuri\");\r\n\t\t if(uri != null) return uri;\r\n\t\t else throw new RuntimeException(\"baseuri not specified in the configuration.properties file.\");\r\n\t }",
"protected abstract void forceStartValues();",
"public static void begin() {\n Log.writeln(\"<xml-begin/> <!-- Everything until xml-end is now valid xml -->\");\n }",
"private boolean isBaseClassValid() {\n\n\t\tboolean valid = false;\n\n\t\tif (this.getBaseClass() == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tString[] types = BaseClasses.getAllAvailableTypes();\n\n\t\tfor (int i = 0; i < types.length; i++) {\n\t\t\tvalid = valid || types[i].compareToIgnoreCase(this.getBaseClass()) == 0;\n\t\t}\n\n\t\treturn valid;\n\t}",
"public void setBaseAddress(String base_address) {\n try {\n this.base_address = new URILocator(base_address);\n } catch (MalformedURLException e) {\n throw new OntopiaRuntimeException(e);\n }\n }",
"@Test(expected = BasePriceMustBePositiveException.class)\r\n\tpublic void testZeroBasePrice() throws BasePriceMustBePositiveException, \r\n\t NegativePersonCountException, ProductCategoryNotSpecifiedException {\r\n\t\tNuPackEstimator estimator = new NuPackEstimator(new BigDecimal(\"0\"), 1, \"food\");\r\n\t estimator.estimateFinalCost();\r\n\t}",
"void setBaseUri(String baseUri);",
"@Override\n protected void startUp() {\n }"
] | [
"0.6714828",
"0.62438744",
"0.5881109",
"0.58169734",
"0.57179725",
"0.57075244",
"0.5670263",
"0.56520694",
"0.54986435",
"0.5489096",
"0.54603744",
"0.5385849",
"0.53538305",
"0.52330554",
"0.5217459",
"0.52133924",
"0.5190282",
"0.5183077",
"0.51585543",
"0.5151476",
"0.5151053",
"0.51296127",
"0.51066273",
"0.5102757",
"0.50880456",
"0.5058957",
"0.5024732",
"0.50215954",
"0.50129765",
"0.49987826",
"0.4994906",
"0.49934632",
"0.4965512",
"0.49513936",
"0.49368075",
"0.49330357",
"0.49238527",
"0.4894814",
"0.48498544",
"0.48446524",
"0.48277724",
"0.48198238",
"0.48196664",
"0.481683",
"0.48143426",
"0.48048088",
"0.4789681",
"0.4786139",
"0.47854197",
"0.4780514",
"0.47795466",
"0.4776786",
"0.47740543",
"0.47723293",
"0.47647163",
"0.47637388",
"0.4760737",
"0.4759129",
"0.47563404",
"0.47495306",
"0.4736767",
"0.47308946",
"0.47269422",
"0.47237727",
"0.47174072",
"0.47144163",
"0.47088632",
"0.470821",
"0.47067794",
"0.4703873",
"0.47017238",
"0.46975893",
"0.46813226",
"0.46790615",
"0.46733806",
"0.46663296",
"0.4662793",
"0.46623206",
"0.46617058",
"0.46595436",
"0.4655041",
"0.46514344",
"0.46487632",
"0.46435568",
"0.4643374",
"0.46432072",
"0.46378514",
"0.46346202",
"0.4633081",
"0.46312276",
"0.4626343",
"0.46260953",
"0.46240115",
"0.4620923",
"0.46209073",
"0.46204862",
"0.46204716",
"0.46103024",
"0.46056163",
"0.45953143",
"0.45929077"
] | 0.0 | -1 |
Constructor for task to run JUnit test. | TestTask(TestMethod test, boolean testIsolation) {
this.test = test;
this.testIsolation = testIsolation;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected TeststepRunner() {}",
"public ActivitiTestCase() {\n }",
"public void setUp() {\n instance = new Task();\n }",
"public Task() {\n\t}",
"public TestOrchestrator(final NativeTest testTask) {\n this(testTask, new TestOrchestratorFactory(testTask));\n }",
"@org.junit.Test\n public void testRun() {\nSystem.out.println(\"run\");\n final TwitterFeedTask instance = new TwitterFeedTask();\n \n instance.run();\n }",
"public UnitTests()\n {\n }",
"public AnemoCheckTask() {\n }",
"public Task() {\r\n }",
"public TestOrchestrator(final NativeTest testTask, TestOrchestratorFactory factory) {\n if (testTask == null) {\n throw new IllegalArgumentException(\"testTask == null!\");\n }\n if (factory == null) {\n throw new IllegalArgumentException(\"factory == null!\");\n }\n\n this.testTask = testTask;\n this.factory = factory;\n }",
"public ParallelUtilTest(\n String testName)\n {\n super(testName);\n }",
"public Task() {\n }",
"public Tests(){\n \n }",
"public Test() {\n super(0, \"A task\");\n this.answersArray = new String[]{\"a\", \"b\", \"c\"};\n }",
"public ScriptCallableTest() {\n super(\"ScriptCallableTest\");\n }",
"public HockeyTeamTest()\n {\n }",
"public Task() { }",
"public Tasks() {\n }",
"public Task(){}",
"public TestDriverProgram(){\n iTestList = new SortableArray(iSize); // tests if parameterized constructor works\n iTestFileList = new SortableArray(); // tests if default constructor works\n runAllTests(); // run all of the tests\n }",
"public Task(){\n super();\n }",
"@Test\n void addTask() {\n }",
"public TestCase()\r\n {\r\n super();\r\n resetIO();\r\n }",
"public AcceptanceTestRun() {\n }",
"public StudentTask() {\n\t\tthis(\"student_task\", null);\n\t}",
"public TaskGenerator() {\n if (taskNames == null) {\n setUpNameList();\n }\n }",
"public test() {\n\t\tsuper();\n\t}",
"public BazaarTests() {\r\n\t\tsuper();\r\n\t}",
"public Task(String url) {\n this.url = url;\n logger.debug(\"Created task for \" + url);\n }",
"@Before\r\n\tpublic void setUp() throws Exception {\n\t\tSourceLocation testLocation = new SourceLocation(1, 1);\r\n\t\ttestStatement = new MoveToStatement(new HerePositionExpression(testLocation), testLocation);\r\n\t\ttask = new Task(\"test\", -10, testStatement);\r\n\t\ttask1 = new Task(\"test\", 0, testStatement);\r\n\t\ttask2 = new Task(\"test\", 10, testStatement);\r\n\t\ttask3 = new Task(\"test\", 20 , testStatement);\r\n\t\tunit= new Unit(world, false);\r\n\t\tscheduler1 = unit.getFaction().getScheduler();\r\n\t}",
"public DeviceNFCTestTask(TestsFragment fragment) {\n super(fragment);\n }",
"public PerezosoTest()\n {\n }",
"public StrandUnitTest()\n {\n }",
"public XmlAdaptedTask() {\n\t}",
"public ServiceTask() {\n\t}",
"public Todo(String task) {\n super(task);\n }",
"public LessCSSTask() {\n // empty\n }",
"public TestRunJsonParser(){\n }",
"private StressTestHelper() {\n // Empty constructor.\n }",
"public TcTestRunner(Class<?> klass) throws Throwable {\n super(klass, Collections.<Runner> emptyList());\n List<TestConfig> parametersList = getParametersList(getTestClass());\n for (int i = 0; i < parametersList.size(); i++)\n runners.add(new TestClassRunnerForParameters(getTestClass().getJavaClass(), parametersList, i));\n }",
"protected TaskChain() {\n\t}",
"public AllLaboTest() {\n }",
"@Test\n\tpublic void addTaskOutput(){\n\t}",
"public SampleJUnit(String name) {\r\n\t\tsuper(name);\r\n\t}",
"public Task(String original) {\n this(original, null);\n }",
"public Task(String taskDescription) {\n this.taskDescription = taskDescription;\n this.isDone = false;\n this.completed = \"0\";\n }",
"@Test\n void displayAllTasks() {\n }",
"public TaskList() {\n }",
"protected TestBench() {}",
"public TestSequence() {\n }",
"public FileTest() {\n }",
"public AppTest()\n {\n super(AppTest.class);\n }",
"public Task(String creator) {\r\n \t\tthis(creator, \"Untitled\", \"\", true, false);\r\n \t}",
"public TestPrelab2()\n {\n }",
"public ResultatTest() {\n\t\tthis.nbTests = 0;\n\t\tthis.echecs = new ArrayList<TestExecute>();\n\t\tthis.erreurs = new ArrayList<TestExecute>();\n\t}",
"private TestReporter() {\n\n }",
"public GenericTest()\n {\n }",
"public AddTasks() {\n }",
"public Test(VDDHash config, File testFile) {\n this(config, testFile, null, null);\n }",
"public TokenControllerTest() {\n\t\t/*\n\t\t * This constructor should not be modified. Any initialization code\n\t\t * should be placed in the setUp() method instead.\n\t\t */\n\n\t}",
"protected void setupTask(Task task) {\n }",
"public Task(String description){\n this.description = description;\n this.isDone = false;\n }",
"public Task(String description){\n this.description = description;\n this.isDone = false;\n }",
"public XmlAdaptedTask() {}",
"public XmlAdaptedTask() {}",
"public CopyTransformTest() {\n }",
"public BookcaseTest () {\n }",
"public SwerveAutoTest() {\n // Initialize base classes.\n // All via self-construction.\n\n // Initialize class members.\n // All via self-construction.\n }",
"public SftpDownloadTask() {\n\n\t}",
"public Test()\n {\n }",
"public Task(String description) {\n\n this.description = description;\n this.isDone = false;\n taskCounter++;\n }",
"public RemoteFilingTest() {\n }",
"public Task(Task task) {\n id = task.id;\n taskType = task.taskType;\n title = task.title;\n period = task.period;\n deadline = task.deadline;\n wcet = task.wcet;\n //execTime = task.execTime;\n priority = task.priority;\n initialOffset = task.initialOffset;\n nextReleaseTime = task.nextReleaseTime;\n isSporadicTask = task.isSporadicTask;\n }",
"public TestCase(String name) {\n fName= name;\n }",
"public AcuityTest() {\r\n }",
"public Task(String name) {\r\n this(name, false);\r\n }",
"public Task(String description) {\n this.description = description.trim();\n this.isDone = false;\n }",
"@Test\n public void initialiseShouldGetFalseForStatus() {\n Task task = new Task(\"Test\");\n Assertions.assertFalse(task.getStatus());\n }",
"public ProjektTest()\n {\n }",
"public Task(String taskDescription) {\n this.taskDescription = taskDescription;\n this.isDone = false;\n }",
"protected Task(String description) {\n this.description = description;\n this.isComplete = false;\n this.tags = new ArrayList<>();\n }",
"public Test() {\n }",
"public Task(String description) {\n this.description = description;\n this.isDone = false;\n }",
"public Task(String description) {\n this.description = description;\n this.isDone = false;\n }",
"public Task(String description) {\n this.description = description;\n this.isDone = false;\n this.taskType = \"\";\n }",
"private TaskItem()\n {\n }",
"public AbstractTest() {\r\n\t\tlog = LogFactory.getLog(getClass());\r\n\t}",
"public RegistroTest()\n {\n }",
"public TaskList(){}",
"@Test\n public void run_main(){\n\n String resource_folder = (new File(\"src/test/resources/\")).getAbsolutePath()+ File.separator ;\n\n String[] args = new String[7];\n args[0] = \"-run\";\n args[1] = resource_folder + \"test_configs/line_ctm.xml\";\n args[2] = \"mytest\";\n args[3] = resource_folder+\"sample_output_request.xml\";\n args[4] = \"temp\";\n args[5] = \"0\";\n args[6] = \"100\";\n\n OTM.main(args);\n\n }",
"protected TaskFlow( ) { }",
"public Task(String description) {\n this.description = description;\n this.isDone = false;\n this.logo = \"N\";\n }",
"public AppTest(String testName) {\n super(testName);\n }",
"public AppTest(String testName) {\n super(testName);\n }",
"public AppTest(String testName) {\n super(testName);\n }",
"public AppTest(String testName) {\n super(testName);\n }",
"public RookTest()\r\n {\r\n }",
"public InstrumentationTestRunner(IActivityFactory activityFactory, IActivityBinder activityBinder)\n\t{\n\t\tsuper();\n\n\t\tif (activityFactory == null)\n\t\t\tthrow new ArgumentNullException(\"activityFactory\");\n\n\t\tif (activityBinder == null)\n\t\t\tthrow new ArgumentNullException(\"activityBinder\");\n\n\t\tthis.m_activityBinder = activityBinder;\n\t\tthis.m_activityFactory = activityFactory;\n\t}",
"public void testGetTaskActorE(){\n }",
"public Task(Task T){\n\n\t\tcmd = T.cmd;\n\t\ttasknum = T.tasknum;\n\t\tterminated = T.terminated;\n\t\tcycle_term = T.cycle_term;\n\t\taborted = T.aborted;\n\t\twaiting = T.waiting;\n\t\ttime_wait = T.time_wait;\n\t\trunning = T.running;\n\n\t\tfor (int i = 0; i < T.actions.size(); i++){\n\n\t\t\tactions.add(T.actions.get(i));\n\t\t\tres_needed.add(T.res_needed.get(i));\n\t\t\treq_num.add(T.req_num.get(i));\n\t\t}\n\n\t\tfor(int i = 0; i < T.claims.size(); i++){\n\n\t\t\tclaims.add(T.claims.get(i));\n\t\t\tallocation.add(T.allocation.get(i));\n\t\t}\n\n\t}"
] | [
"0.71849537",
"0.6900298",
"0.6896586",
"0.68449086",
"0.6836316",
"0.673831",
"0.67212015",
"0.6703802",
"0.66993994",
"0.6672542",
"0.66706175",
"0.66368955",
"0.66356206",
"0.66179246",
"0.6596162",
"0.6575848",
"0.6544828",
"0.65402937",
"0.6538126",
"0.651971",
"0.6502221",
"0.6426791",
"0.63817865",
"0.6367736",
"0.63166845",
"0.6299693",
"0.6293162",
"0.628555",
"0.62853515",
"0.6280256",
"0.6263027",
"0.625642",
"0.62433195",
"0.6238099",
"0.62193453",
"0.62155443",
"0.62129766",
"0.620741",
"0.620699",
"0.620575",
"0.61697304",
"0.6158464",
"0.6144671",
"0.61343265",
"0.6125578",
"0.61228293",
"0.61180556",
"0.6092528",
"0.6088789",
"0.60870355",
"0.6081239",
"0.6074235",
"0.6074033",
"0.60530144",
"0.60476196",
"0.6044805",
"0.6039767",
"0.60334706",
"0.6031965",
"0.6031821",
"0.6020751",
"0.601019",
"0.601019",
"0.6001679",
"0.6001679",
"0.599401",
"0.5990699",
"0.5990412",
"0.5983032",
"0.5967578",
"0.596631",
"0.595099",
"0.59498644",
"0.59490234",
"0.59436643",
"0.5940995",
"0.59282994",
"0.5925584",
"0.5924402",
"0.5923429",
"0.59181726",
"0.59131205",
"0.59113085",
"0.59113085",
"0.58960664",
"0.588668",
"0.5886087",
"0.5881839",
"0.5881019",
"0.58701736",
"0.5855982",
"0.5853758",
"0.58535385",
"0.58535385",
"0.58535385",
"0.58535385",
"0.5850905",
"0.584406",
"0.58425254",
"0.5833501"
] | 0.67659366 | 5 |
Callable method to run JUnit test and return result. | @Override
public Result call() throws TimeoutException, InterruptedException {
Request request;
if (testIsolation) {
request = Request.method(test.reloadClass(), test.getName());
} else {
request = Request.method(test.getTestClass(), test.getName());
}
return new JUnitCore().run(request);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TestResult run() {\n TestResult result= createResult();\n run(result);\n return result;\n }",
"protected abstract TestResult runTestImpl() throws Exception;",
"public static void runTests() {\n\t\tResult result = JUnitCore.runClasses(TestCalculator.class);\n\n\t}",
"public TestResults run() {\n\t\treturn run(getConfiguredDuration());\n\t}",
"@Test\n public void main() {\n run(\"TEST\");\n }",
"public void run(TestCase testCase) {\n }",
"TestClassExecutionResult assertTestPassed(String name, String displayName);",
"public static void testIt () {\r\n\t\tjunit.textui.TestRunner.run (suite());\r\n\t}",
"public void run(TestResult result) {\n result.run(this);\n }",
"TestClassExecutionResult assertTestsExecuted(TestCase... testCases);",
"@Override\n public void runTest() {\n }",
"@Override\n\tpublic void runTest() throws Throwable {}",
"@Test\n public void testSuccess() {\n }",
"@Override\n\tpublic TestResult execute() {\n\t\ttestResult = new TestResult(\"Aggregated Result\");\n\t\t// before\n\t\ttry {\n\t\t\tbefore();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @before! \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in before method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t}\n\n\t\t// run\n\t\ttestResult.setStart(System.currentTimeMillis());\n\t\tTestResult subTestResult = null;\n\t\ttry {\n\t\t\tsubTestResult = runTestImpl();\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" finished.\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @runTestImpl \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in runTestImpl method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t} finally {\n\t\t\ttestResult.setEnd(System.currentTimeMillis());\n\t\t\tif(subTestResult != null)\n\t\t\t\ttestResult.addSubResult(subTestResult);\n\t\t\t// after\n\t\t\ttry {\n\t\t\t\tafter();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\ttestResult.setErrorMessage(\"Error @after! \" + e.getMessage());\n\t\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in after method!\");\n\t\t\t}\n\t\t}\n\t\tnotifyObservers();\n\t\treturn testResult;\n\t}",
"public void testexecute(String test) throws Exception;",
"void onTestSuccess(ITestResult result);",
"@Test\n void one() {\n System.out.println(\"Executing Test 1.\");\n }",
"public TestCase pass();",
"@Test\n public void testMain() throws Exception {\n //main function cannot be tested as it is dependant on user input\n System.out.println(\"main\");\n }",
"public void testDumbJUnit() {\n }",
"public TypecheckResult runTest(TestConfiguration configuration) {\n CompilationResult result = compile(configuration);\n return interpretResults(configuration, result);\n }",
"public static void runTests( Class<?> testclass) {\r\n\t\tResult result = org.junit.runner.JUnitCore.runClasses( testclass );\r\n\t\tint count = result.getRunCount();\r\n\t\tint failed = result.getFailureCount();\r\n\t\tSystem.out.printf(\"%s: Running %d tests\\n\", testclass.getSimpleName(), count);\r\n\t\tList<Failure> failures = result.getFailures();\r\n\t\t// this doesn't seem to return all the failures\r\n\t\tfor(Failure f: failures) {\r\n\t\t\tDescription d = f.getDescription();\r\n\t\t\tSystem.out.println( f.getTestHeader() +\": \"+ f.getMessage() );\r\n\t\t\tSystem.out.println( d.getDisplayName() );\r\n\t\t}\r\n\t\tSystem.out.printf(\"%s: Success %d Failure %d\\n\",\r\n\t\t\t\ttestclass.getSimpleName(), count-failed, failed);\r\n\t}",
"public TestOutcome executeTests()\n\n\t{\n\t try {\n\t\tString buildServerTestFilesDir = getDirectoryFinder()\n\t\t\t\t.getTestFilesDirectory().getCanonicalPath() + File.separator;\n\n\t\t// Build arguments to java process\n\t\tList<String> javaArgs = new LinkedList<String>();\n\t\tjavaArgs.add(\"java\");\n\t\t// TODO Factor the amount of memory and the extra -D parameters into\n\t\t// config.properties\n\t\tString vmArgs = tester.getTestProperties().getVmArgs();\n\t\tboolean memorySet = false;\n\t\tif (vmArgs != null) {\n\t\t if (vmArgs.contains(\"-Xmx\"))\n\t\t memorySet = true;\n\t\t\t// Break up into separate tokens if necessary\n\t\t\tStringTokenizer tokenizer = new StringTokenizer(vmArgs);\n\t\t\twhile (tokenizer.hasMoreElements()) {\n\t\t\t\tString nextArg = tokenizer.nextToken();\n\t\t\t\tnextArg = nextArg.replace(\"${buildserver.test.files.dir}\",\n\t\t\t\t\t\tbuildServerTestFilesDir);\n\t\t\t\tjavaArgs.add(nextArg);\n\t\t\t}\n\t\t}\n\t\tif (!memorySet)\n\t\t javaArgs.add(\"-Xmx456m\");\n javaArgs.add(\"-Dcom.sun.management.jmxremote\");\n \n\t\tjavaArgs.add(\"-classpath\");\n\t\tjavaArgs.add(classPath);\n\n\t\t// Tests must run headless, for obvious reasons\n\t\tjavaArgs.add(\"-Djava.awt.headless=true\");\n\n\t\t// Do not allow access to home directory\n\t\tjavaArgs.add(\"-Duser.home=/dev/null\");\n\n\t\t// Specify filename of project jar file\n\t\tjavaArgs.add(\"-Dbuildserver.test.jar.file=\"\n\t\t\t\t+ getProjectSubmission().getTestSetup().getCanonicalPath());\n\t\t// Specify the path of the build directory\n\t\tjavaArgs.add(\"-Dbuildserver.build.dir=\"\n\t\t\t\t+ getDirectoryFinder().getBuildDirectory().getCanonicalPath());\n\t\t// Add trusted code bases\n\t\tfor (TrustedCodeBase trustedCodeBase \n\t\t : getTrustedCodeBaseFinder().getCollection()) {\n\t\t\tjavaArgs.add(\"-D\" + trustedCodeBase.getProperty() + \"=\"\n\t\t\t\t\t+ trustedCodeBase.getValue());\n//\t\t\tgetLog().debug(\"adding trusted codebase \" + trustedCodeBase);\n\t\t}\n\t\t// Let the test classes know where test files are.\n\t\t// Append a separator to the end, because this makes it\n\t\t// easier for the tests to determine how to access\n\t\t// the test files.\n\t\tjavaArgs.add(\"-Dbuildserver.test.files.dir=\" + buildServerTestFilesDir);\n\t\tif (getDebugJavaSecurity()) {\n\t\t\tjavaArgs.add(\"-Djava.security.debug=access,failure\");\n\t\t}\n\t\tif (tester.getHasSecurityPolicyFile()) {\n\t\t\t// Project jar file contained a security policy file\n\t\t\tjavaArgs.add(\"-Djava.security.manager\");\n\t\t\tjavaArgs.add(\"-Djava.security.policy=file:\"\n\t\t\t\t\t+ new File(getDirectoryFinder().getTestFilesDirectory(),\n\t\t\t\t\t\t\t\"security.policy\").getCanonicalPath());\n\t\t}\n\t\t// XXX TestRunner\n\t\tjavaArgs.add(TestRunner.class.getName());\n\t\tjavaArgs.add(\"-startTestNumber\");\n\t\tjavaArgs.add(String.valueOf(nextTestNumber));\n\n\t\tjavaArgs.add(getProjectSubmission().getSubmissionPK());\n\t\tjavaArgs.add(testType.toString());\n\t\tjavaArgs.add(testClass);\n\t\tjavaArgs.add(outputFilename);\n\t\tint timeoutInSeconds = tester.getTestProperties()\n\t\t\t\t.getTestTimeoutInSeconds();\n\t\tif (testCase != null && testCase.getMaxTimeInMilliseconds() != 0) {\n\t\t\ttimeoutInSeconds = 1 + (int)( testCase.getMaxTimeInMilliseconds() / 1000);\n\t\t\tgetLog().trace(\n\t\t\t\t\t\"Using @Test(timeout=\" + timeoutInSeconds\n\t\t\t\t\t\t\t+ \") annotation\");\n\t\t}\n\t\tjavaArgs.add(String.valueOf(timeoutInSeconds));\n\t\tif (testMethod != null) {\n\t\t\tjavaArgs.add(testMethod);\n\t\t}\n\n\t\t// Which directory to execute the TestRunner in.\n\t\t// By default, this is the build directory, but the\n\t\t// cwd.testfiles.dir property may set it to\n\t\t// be the testfiles directory.\n\t\tFile testRunnerCWD = getDirectoryFinder().getBuildDirectory();\n\t\t// Student-written tests must be run from the build directory\n\t\t// (where the student code is extracted) no matter what\n\t\tif (tester.getTestProperties().isTestRunnerInTestfileDir()\n\t\t\t\t&& !testType.equals(TestOutcome.TestType.STUDENT))\n\t\t\ttestRunnerCWD = getDirectoryFinder().getTestFilesDirectory();\n\n\t\tgetLog().debug(\"TestRunner working directory: \" + testRunnerCWD);\n\n\t\t// Execute the test!\n\t\tint exitCode;\n\t\tAlarm alarm = tester.getTestProcessAlarm();\n\t\tCombinedStreamMonitor monitor = null;\n\t\t\n\t\tProcess testRunner = null;\n\t\tboolean isRunning = false;\n\t\ttry {\n\t\t\t// Spawn the TestRunner process\n\t\t String cmd = MarmosetUtilities.commandToString(javaArgs);\n getLog().debug(\"TestRunner command: \" + cmd);\n \n\t\t\ttestRunner = Untrusted.execute(\n\t\t\t\t\ttestRunnerCWD, javaArgs.toArray(new String[javaArgs.size()]));\n\n int pid = MarmosetUtilities.getPid(testRunner);\n getLog().debug(\n \"Subprocess for submission \"\n + getProjectSubmission().getSubmissionPK()\n + \" for testSetup \"\n + getProjectSubmission().getTestSetupPK()\n + \" for \" + testType + \" \" + nextTestNumber\n + \" \" + testMethod + \" in testClass \"\n + testClass + \" has pid = \" + pid);\n\n\t\t\tisRunning = true;\n\n\t\t\t// Start the timeout alarm\n\t\t\talarm.start();\n\n\t\t\t// Record the output\n\t\t\tmonitor = tester.createStreamMonitor(testRunner.getInputStream(),\n\t\t\t\t\ttestRunner.getErrorStream());\n\t\t\tmonitor.start();\n\n\t\t\t// Wait for the test runner to finish.\n\t\t\t// This may be interrupted by the timeout alarm.\n\t\t\tmonitor.join();\n\t\t\texitCode = testRunner.waitFor();\n\t\t\tisRunning = false;\n\t\t\t// Groovy, we finished before the alarm went off.\n\t\t\t// Disable it (and clear our interrupted status)\n\t\t\t// in case it went off just after the process wait\n\t\t\t// finished.\n\t\t\talarm.turnOff();\n\n\t\t\t// Just for debugging...\n\t\t\tgetLog().debug(\n\t\t\t\t\t\"TestRunner process finished; captured to stdout/stderr output was: \");\n\t\t\tgetLog().debug(monitor.getCombinedOutput());\n\t\t\tif (monitor.getCombinedOutput().contains(\"AccessControlException\")) {\n\t\t\t\tgetLog().warn(\n\t\t\t\t\t\t\"Clover could not be initialized due to an AccessControlException. \"\n\t\t\t\t\t\t\t\t+ \" Please check your security.policy file and make sure that student code \"\n\t\t\t\t\t\t\t\t+ \"has permission to read/write/delete /tmp and can install shutdown hooks\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tString shortTestResult = getFullTestName()\n\t\t\t\t\t+ \" failed with IOException: \" + e.getMessage();\n\t\t\t// TODO get a stack trace into here\n\t\t\tString longTestResult = e.toString();\n\t\t\tgetLog().error(shortTestResult, e);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n\t\t\t\t\ttestClass, nextTestNumber, TestOutcome.FAILED,\n\t\t\t\t\tshortTestResult, longTestResult);\n\t\t} catch (InterruptedException e) {\n\t\t\tif (!alarm.fired())\n\t\t\t\tgetLog().error(\"Someone unexpectedly interrupted the timer\");\n\n\t\t\tString shortTestResult = \"Timeout!\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult, e);\n\t\t\tgetLog().trace(\n\t\t\t\t\t\"Timeout for \" + testType + \" \" + testMethod + \" \"\n\t\t\t\t\t\t\t+ nextTestNumber);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n\t\t\t\t\ttestClass, nextTestNumber, TestOutcome.TIMEOUT,\n\t\t\t\t\tshortTestResult, longTestResult);\n\t\t} finally {\n\t\t\t// Make sure the process is cleaned up.\n\t\t\tif (isRunning && testRunner != null) {\n\t\t\t\ttestRunner.destroy();\n\t\t\t\t// process should already be dead, kill again\n\t\t\t\tMarmosetUtilities.destroyProcessGroup(testRunner, getLog());\n\t\t\t}\n\t\t}\n\n\t\tif (exitCode == 2) {\n // Test runner couldn't execute the tests for some reason.\n // This is probably not our fault.\n // Just add an outcome recording the output of\n // the test runner process.\n String longTestResult = monitor.getCombinedOutput();\n String shortTestResult = \"An expected class could not be found\";\n int end = longTestResult.indexOf('\\n');\n if (end > 0 && longTestResult.startsWith(\"java.lang.NoClassDefFoundError: \")) {\n String missing = longTestResult.substring(\"java.lang.NoClassDefFoundError: \".length(), end);\n missing = missing.replace('/','.');\n shortTestResult = \"Could not find expected class \" + missing;\n longTestResult = \"\";\n }\n getLog().error(shortTestResult);\n return Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n testClass, nextTestNumber, TestOutcome.MISSING_COMPONENT,\n shortTestResult, longTestResult);\n } else if (exitCode != 0) {\n\t\t\t// Test runner couldn't execute the tests for some reason.\n\t\t\t// This is probably not our fault.\n\t\t\t// Just add an outcome recording the output of\n\t\t\t// the test runner process.\n\t\t\tString shortTestResult = getFullTestName()\n\t\t\t\t\t+ \" subprocess failed to return with 0 status\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n\t\t\t\t\ttestClass, nextTestNumber, TestOutcome.FAILED,\n\t\t\t\t\tshortTestResult, longTestResult);\n\t\t}\n\n\t\tgetLog().debug(\n\t\t\t\tgetFullTestName() + \" test finished with \"\n\t\t\t\t\t\t+ new File(outputFilename).length()\n\t\t\t\t\t\t+ \" bytes of output\");\n\n\t\tTestOutcome testOutcome = readTestOutcomeFromFile();\n\t\tif (testType == TestType.SECRET) {\n\t\t\tString longTestResult = testOutcome.getLongTestResult();\n\t\t\tString output = monitor.getCombinedOutput().trim();\n\t\t\tif (output.length() > 0)\n\t\t\t\ttestOutcome.setLongTestResultCompressIfNeeded(longTestResult + \"\\nTest output:\\n\" + output);\n\t\t}\n\t\treturn testOutcome;\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t throw new RuntimeException(\"Unexpected IO Exception\", e);\n\t }\n\t}",
"@Test\n\tpublic void testMain() {\n\t}",
"public static void main(String[] args) {\n\t\t \n\t\tResult result1 = JUnitCore.runClasses(TestUnitForCreate.class);\n\t for (Failure failure : result1.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result1.wasSuccessful());\n\n\t Result result2 = JUnitCore.runClasses(TestUnitForReadByCalimNumber.class);\n\t for (Failure failure : result2.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result2.wasSuccessful());\n\t \n\t Result result3 = JUnitCore.runClasses(TestUnitForReadByLossDate.class);\n\t for (Failure failure : result3.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result3.wasSuccessful());\n\t \n\t\tResult result4 = JUnitCore.runClasses(TestUnitForUpdate.class);\n\t\tfor (Failure failure : result4.getFailures()) {\n\t\t\tSystem.out.println(failure.toString());\n\t\t}\n\t\tSystem.out.println(result4.wasSuccessful());\n\t \n\t Result result5 = JUnitCore.runClasses(TestUnitForReadVehicle.class);\n\t for (Failure failure : result5.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result5.wasSuccessful());\n \n\t Result result6 = JUnitCore.runClasses(TestUnitForDelete.class);\n\t for (Failure failure : result6.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result6.wasSuccessful());\n\t \n\t}",
"@Test\n public void testLamda(){\n }",
"protected void runTest() {\n\t\trunTest(getIterations());\n\t}",
"public void run(TestResult result) {\n try {\n TestHarness testApp = setupHarness();\n if (printInfo)\n testApp.printInfo(System.out, testBranchs);\n else\n testApp.run(result);\n } catch (Exception e) {\n result.addError(this, e);\n }\n }",
"public String invokeTest( String input ) throws TestException {\n\t\tString response = null;\n\t\t\n\t\ttry {\n\t\t\tresponse = runTest( input );\n\t\t} catch( Exception e ) {\n\t\t\tthrow new TestException(\"Test service got an exception during execution: \" + e.getClass().getName()+ \" \" + e.getMessage() );\n\t\t} // end try\n\t\treturn response;\n\t}",
"public static void main(String... args) throws Throwable {\n // Verify the arguments.\n if (args.length == 0) {\n System.err.println(\"Must specify an output directory.\");\n System.exit(1);\n } else if (args.length == 1) {\n System.err.println(\"Must specify an output directory and a default timeout.\");\n System.exit(1);\n } else if (args.length == 2) {\n System.err.println(\"Must specify at least one test.\");\n System.exit(1);\n }\n\n // The first argument should specify the output directory.\n File outputDirectory = new File(args[0]);\n if (!outputDirectory.exists()) {\n System.err.printf(\"The output directory did not exist: %s\\n\", outputDirectory);\n System.exit(1);\n }\n\n long defaultTestTimeoutMillis = Long.parseLong(args[1]);\n\n // Each argument other than the first one should be a class name to run.\n List<String> testClassNames = Arrays.asList(args).subList(2, args.length);\n\n // Run the tests.\n new JUnitRunner(outputDirectory,\n testClassNames,\n defaultTestTimeoutMillis)\n .run();\n\n // Explicitly exit to force the test runner to complete even if tests have sloppily left behind\n // non-daemon threads that would have otherwise forced the process to wait and eventually\n // timeout.\n //\n // Separately, we're using a successful exit code regardless of test outcome since JUnitRunner\n // is designed to execute all tests and produce a report of success or failure. We've done\n // that successfully if we've gotten here.\n System.exit(0);\n }",
"@Test\n public void test(){\n\n\n }",
"@Test\n public void test(){\n }",
"@Test\n public void test(){\n }",
"@Override\n\t\tpublic void onTestSuccess(ITestResult result) {\n\t\t\tSystem.out.println((result.getMethod().getMethodName() + \" passed!\"));\n\t test.get().pass(\"Test passed\");\n\t\t\t\n\t\t}",
"TestClassExecutionResult assertTestsExecuted(String... testNames);",
"@Test\n public void main() {\n // App.main(null);\n // assertEquals(\"Hello world\", outContent.toString());\n }",
"public void testMain() throws Throwable {\n\r\n\t}",
"@Test\n\tvoid test() {\n\t\t\n\t}",
"@Test\n public void test() {\n }",
"@org.junit.Test\n public void testRun() {\nSystem.out.println(\"run\");\n final TwitterFeedTask instance = new TwitterFeedTask();\n \n instance.run();\n }",
"protected void runTestCase(Statement testRoutine) throws Throwable {\n Throwable e = null;\n setUp();\n try {\n runTest(testRoutine);\n } catch (Throwable running) {\n e = running;\n } finally {\n try {\n tearDown();\n } catch (Throwable tearingDown) {\n if (e == null) e = tearingDown;\n }\n }\n if (e != null) throw e;\n }",
"@Override\n public void perform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException \n {\n AggregatedTestResultAction currentTestResults = run.getAction(AggregatedTestResultAction.class);\n\n //retrieve the test results \n List<AggregatedTestResultAction.ChildReport> currentResults = currentTestResults.getResult();\n\n listener.getLogger().println(\"Running Test Checker Plugin\");\n\n //listener.getLogger().println(\"Current Build :- \", currentTestResults.getDisplayName());\n //listener.getLogger().println(\"Previous Build :- \", currentTestResults.getDisplayName());\n\n\n //iterate through the result of each test\n for(int i = 0; i < currentResults.size(); i++)\n {\n\n\t //obtain the report of a test\t\n\t AggregatedTestResultAction.ChildReport child = currentResults.get(i);\n\n\t //retreive the test result\n\t TestResult currentTestResultChild = (TestResult)child.result;\n\n\t //get the passed tests \n\t ArrayList<TestResult> currRes = ((ArrayList<TestResult>)currentTestResultChild.getPassedTests());\n\n\t //iterate through each passed test\n\t for(int j = 0; j < currRes.size(); j++)\n\t {\n\t //obtain the status of the test in current build\n\t TestResult currentTestResChild = currRes.get(j);\n\n\t //obtain the status of the test in previous build\n\t TestResult previousTestResChild = currRes.get(j).getPreviousResult();\n\n\t // Check previous test result isnt null\n\t if (previousTestResChild == null) continue;\n\t\n\t // Case 1: Both passed\n\t if (currentTestResChild.isPassed() && previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"No Change (Passed) : \" + currentTestResChild.getDisplayName());\n\t }\n\t // Case 2: Previous failed, newly passed\n\t if (currentTestResChild.isPassed() && !previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"Newly Passing Test : \" + currentTestResChild.getDisplayName());\n\t }\n\t }\n\n\t //get the failed tests \n\t ArrayList<TestResult> currResF = ((ArrayList<TestResult>)currentTestResultChild.getFailedTests());\n\n\t //iterate through each failed test\n\t for(int k = 0; k < currResF.size(); k++)\n\t {\n\t //obtain the status of the test in current build\n\t TestResult currentTestResChild = currResF.get(k);\n\n\t //obtain the status of the test in previous build\n\t\tTestResult previousTestResChild = currResF.get(k).getPreviousResult();\n\t // Check previous test result isnt null\n\t if (previousTestResChild == null) continue;\n\n\t // Case 3: Both failed\n\t if (!currentTestResChild.isPassed() && !previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"No Change (Failed) : \" + currentTestResChild.getDisplayName());\n\t } \n\t // Case 4: Previous passed, newly failed\n\t if (!currentTestResChild.isPassed() && previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"Newly Failing Test : \" + currentTestResChild.getDisplayName());\n\t }\n\t }\n }\n }",
"public synchronized void launchJUnitTests() throws CoreException, InterruptedException{\n\t\tString projectName = DataManager.getProjectVersion();\n\t\tIProject project = ajdtHandler.getProject(projectName);\n\t\tJUnitLaunch launch = new JUnitLaunch();\n\t\tlaunch.performLaunch(JavaCore.create(project), ILaunchManager.RUN_MODE);\n\t}",
"@Test\n\tpublic void test(){\n\t}",
"@Test\n public void test(){\n }",
"@Test\n public void test() {\n }",
"@Test\n public void test() {\n }",
"@Override\r\n\tpublic void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"TC on Test sucess\"+\" \"+result.getName());\t\r\n\t}",
"@Override\n protected void invokeTestRunnable(final Runnable runnable) throws Exception {\n System.out.println(\"Invoke: \" + runnable);\n runnable.run();\n }",
"@Test public void test(){\n }",
"public Test TestStart(boolean run){\n Test theTest = new Test(\n \"Test Start\",//Test Title\n CLASSNAME,//Class Name\n \"start()\",//Method Being Tested\n \"A test to seethe slide can start\", //Description\n \"N/A\", //Input Data\n \"True\" //Expected output\n ); \n \n \n \n \n \n if(run){\n theTest.hasRun();\n try{\n sl.start();\n theTest.setPassed(true);\n }catch(Exception e){\n theTest.setPassed(false);\n }\n \n }\n return theTest;\n }",
"public void test();",
"public void test();",
"@Test\npublic void testRegister() throws Exception { \n//TODO: Test goes here...\n System.out.println(\"testRegister\");\n}",
"public static boolean wasSuccessful() {\n Result result = org.junit.runner.JUnitCore.runClasses(SimpleTest.class);\r\n return result.wasSuccessful();\r\n }",
"static interface JunitTestBody {\n void run(RunNotifier notifier);\n }",
"public TestOutcome executeTests()\n\t//throws InternalBuildServerException//, IOException \n\t{\n\t\tString buildServerTestFilesDir = getDirectoryFinder().getTestFilesDirectory().getAbsolutePath() + File.separator;\n\t\t\n\t\t// Build arguments to java process\n\t\tList<String> javaArgs = new LinkedList<String>();\n\t\tjavaArgs.add(\"java\");\n //TODO Factor the amount of memory and the extra -D parameters into config.properties\n javaArgs.add(\"-Xmx256m\");\n javaArgs.add(\"-Dcom.sun.management.jmxremote\");\n String vmArgs = tester.getTestProperties().getVmArgs();\n if (vmArgs != null) {\n // Break up into separate tokens if necessary\n StringTokenizer tokenizer = new StringTokenizer(vmArgs);\n while (tokenizer.hasMoreElements()) {\n String nextArg = tokenizer.nextToken();\n nextArg.replace(\"${buildserver.test.files.dir}\", buildServerTestFilesDir);\n // nextArg = nextArg.replace(\"${buildserver.test.files.dir}\", buildServerTestFilesDir);\n\t\t\t\tjavaArgs.add(nextArg);\n }\n }\n\t\tjavaArgs.add(\"-classpath\");\n\t\tjavaArgs.add(classPath);\n\t\t// Tests must run headless, for obvious reasons\n\t\tjavaArgs.add(\"-Djava.awt.headless=true\");\n\t\t// Specify filename of project jar file\n\t\tjavaArgs.add(\"-Dbuildserver.test.jar.file=\" + getProjectSubmission().getProjectJarFile().getAbsolutePath() + \"\");\n\t\t// Specify the path of the build directory\n\t\tjavaArgs.add(\"-Dbuildserver.build.dir=\" + getDirectoryFinder().getBuildDirectory().getAbsolutePath());\n\t\t// Add trusted code bases\n\t\tfor (Iterator<TrustedCodeBase> i = getTrustedCodeBaseFinder().getCollection().iterator(); i.hasNext(); ) {\n\t\t\tTrustedCodeBase trustedCodeBase = i.next();\n\t\t\tjavaArgs.add(\"-D\" + trustedCodeBase.getProperty() + \"=\" + trustedCodeBase.getValue());\n\t\t}\n\t\t// Let the test classes know where test files are.\n\t\t// Append a separator to the end, because this makes it\n\t\t// easier for the tests to determine how to access\n\t\t// the test files.\n\t\tjavaArgs.add(\"-Dbuildserver.test.files.dir=\" + buildServerTestFilesDir);\n\t\tif (getDebugJavaSecurity()) {\n\t\t\tjavaArgs.add(\"-Djava.security.debug=access,failure\");\n\t\t}\n\t\tif (tester.getHasSecurityPolicyFile()) {\n\t\t\t// Project jar file contained a security policy file\n\t\t\tjavaArgs.add(\"-Djava.security.manager\");\n\t\t\tjavaArgs.add(\"-Djava.security.policy=file:\" \n + new File(getDirectoryFinder().getTestFilesDirectory(), \"security.policy\").getAbsolutePath());\n\t\t}\n\t\t// XXX TestRunner\n\t\tjavaArgs.add(TestRunner.class.getName());\n\t\tif (nextTestNumber > 0) {\n\t\t\tjavaArgs.add(\"-startTestNumber\");\n\t\t\tjavaArgs.add(String.valueOf(nextTestNumber));\n\t\t}\n\t\tjavaArgs.add(getProjectSubmission().getSubmissionPK());\n\t\tjavaArgs.add(testType);\n\t\tjavaArgs.add(testClass);\n\t\tjavaArgs.add(outputFilename);\n\t\tint timeoutInSeconds = tester.getTestProperties().getTestTimeoutInSeconds();\n\t\tif (testCase != null && testCase.getMaxTimeInSeconds() != 0) {\n\t\t\ttimeoutInSeconds = testCase.getMaxTimeInSeconds();\n getLog().trace(\"Using @MaxTestTime(value=\" +timeoutInSeconds+ \") annotation\");\n }\n\t\tjavaArgs.add(String.valueOf(timeoutInSeconds));\n\t\tif (testMethod != null) {\n\t\t\tjavaArgs.add(testMethod);\n\t\t}\n\t\t\n\t\t// Which directory to execute the TestRunner in.\n\t\t// By default, this is the build directory, but the\n\t\t// cwd.testfiles.dir property may set it to\n\t\t// be the testfiles directory.\n\t\tFile testRunnerCWD = getDirectoryFinder().getBuildDirectory();\n\t\t// Student-written tests must be run from the build directory\n\t\t// (where the student code is extracted) no matter what\n\t\tif (tester.getTestProperties().isTestRunnerInTestfileDir() && !testType.equals(TestOutcome.STUDENT_TEST))\n\t\t\ttestRunnerCWD = getDirectoryFinder().getTestFilesDirectory();\n\t\t\n\t\tgetLog().debug(\"TestRunner working directory: \" +testRunnerCWD);\n\t\t\n\t\t// Execute the test!\n\t\tint exitCode;\n\t\t//XXX What is this timing? This assumes we're timing the entire process, which\n\t\t// we're clearly not doing from here\n\t\tAlarm alarm = tester.getTestProcessAlarm();\n\t\tCombinedStreamMonitor monitor = null;\n\n\t\tProcess testRunner = null;\n\t\tboolean isRunning = false;\n\t\ttry {\n\t\t\t// Spawn the TestRunner process\n\t\t\ttestRunner = Runtime.getRuntime().exec(\n\t\t\t\t\tjavaArgs.toArray(new String[javaArgs.size()]),\n\t\t\t\t\tenvironment,\n\t\t\t\t\ttestRunnerCWD\n\t\t\t);\n \n String cmd = MarmosetUtilities.commandToString(javaArgs);\n getLog().debug(\"TestRunner command: \" + cmd);\n try {\n int pid=MarmosetUtilities.getPid(testRunner);\n getLog().debug(\"Subprocess for submission \" +getProjectSubmission().getSubmissionPK() +\n \" for testSetup \" +getProjectSubmission().getProjectJarfilePK() +\n \" for \"+testType +\" \"+nextTestNumber+\n \" \" +testMethod+\n \" in testClass \" +testClass+\n \" has pid = \" +pid);\n } catch (IllegalAccessException e) {\n getLog().debug(\"Cannot get PID of process: \" +e);\n } catch (NoSuchFieldException e) {\n getLog().debug(\"Cannot get PID of process: \" +e);\n }\n \n\t\t\tisRunning = true;\n\n\t\t\t// Start the timeout alarm\n\t\t\talarm.start();\n\n\t\t\t// Record the output\n\t\t\tmonitor = tester.createStreamMonitor(testRunner.getInputStream(), testRunner.getErrorStream());\n\t\t\tmonitor.start();\n\t\t\t\n\t\t\t// Wait for the test runner to finish.\n\t\t\t// This may be interrupted by the timeout alarm.\n\t\t\tmonitor.join();\n\t\t\texitCode = testRunner.waitFor();\n\t\t\tisRunning = false;\n // Groovy, we finished before the alarm went off.\n // Disable it (and clear our interrupted status)\n // in case it went off just after the process wait\n // finished.\n alarm.turnOff();\n \n\t\t\t// Just for debugging...\n\t\t\tgetLog().debug(\"TestRunner process finished; captured to stdout/stderr output was: \");\n\t\t\tgetLog().debug(monitor.getCombinedOutput());\n if (monitor.getCombinedOutput().contains(\"AccessControlException\")) {\n getLog().warn(\"Clover could not be initialized due to an AccessControlException. \" +\n \" Please check your security.policy file and make sure that student code \" +\n \"has permission to read/write/delete /tmp and can install shutdown hooks\");\n }\n\t\n\t\t} catch (IOException e) {\n\t\t\tString shortTestResult=getFullTestName() +\" failed with IOException: \" +e.getMessage();\n\t\t\t// TODO get a stack trace into here\n\t\t\tString longTestResult=e.toString();\n\t\t\tgetLog().error(shortTestResult, e);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod, testClass, \n nextTestNumber,\tTestOutcome.FAILED, shortTestResult, longTestResult);\n\t\t} catch (InterruptedException e) {\n\t\t\tif (!alarm.fired())\n\t\t\t\tgetLog().error(\"Someone unexpectedly interrupted the timer\");\n\n\t\t\tString shortTestResult = \"Timeout!\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult, e);\n getLog().trace(\"Timeout for \" +testType+ \" \" +testMethod+ \" \" +nextTestNumber);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod, testClass, \n nextTestNumber, TestOutcome.TIMEOUT, shortTestResult, longTestResult);\n\t\t} finally {\n\t\t\t// Make sure the process is cleaned up.\n\t\t\tif (isRunning)\n\t\t\t\ttestRunner.destroy();\n\t\t}\n\t\t\n\t\tif (exitCode != 0) {\n\t\t\t// Test runner couldn't execute the tests for some reason.\n\t\t\t// This is probably not our fault.\n\t\t\t// Just add an outcome recording the output of\n\t\t\t// the test runner process.\n\t\t\tString shortTestResult = getFullTestName() +\" subprocess failed to return with 0 status\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod, testClass,\n nextTestNumber,\tTestOutcome.FAILED, shortTestResult, longTestResult);\n\t\t}\n\t\t\n\t\tgetLog().debug(getFullTestName()+ \" test finished with \" + new File(outputFilename).length() +\n\t\t\t\t\" bytes of output\");\n\n\t\treturn readTestOutcomeFromFile();\n\t}",
"@Test\n public void testProcess() throws Exception {\n }",
"@Test\t\n\tpublic void testMain() {\n\n\t\tSystem.out.println(\"hello\");\n\t}",
"public Runner runner(String[] args, String[] remoteArgs, ClassLoader testClassLoader);",
"public void test() {\n\tassertTrue(true);\n\t}",
"@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n Calculadora_teste.main(args);\n \n }",
"public static interface TestRunnable {\n\t\t/**\n\t\t * The operation that will be executed.\n\t\t * \n\t\t * @param factory\n\t\t * if the factory is not null, then it should be used to build pamela objects, else the default implementation should\n\t\t * rather be used.\n\t\t * @return the root object of the model (in order to keep a reference to the model and avoid the GC to garbage collect the memory\n\t\t * before the memory footprint has been computed).\n\t\t */\n\t\tpublic Object run(ModelFactory factory);\n\t}",
"@Test\n\tpublic void test() {\n\t}",
"@Test\n\tpublic void test() {\n\t}",
"@Test\n public void testRun_Complex_Execution() {\n // TODO: TBD - Exactly as done in Javascript\n }",
"@Test\n public void testQuery(){\n }",
"public interface TestOnSeparateThreadCallback {\n\n void finish(TestRunner.Stats stats);\n\n}",
"@Test\n public void testcancelwithrefund() //workon\n {\n\n BusinessManager businessManager = new BusinessManager();\n\n //how do i test void\n //how to i move to next thing\n //assertEquals(businessManager.cancelConfirm(\"yes\"), );\n\n }",
"@Test\n public void test3(){\n }",
"@Test\n public void testAdd() throws Exception {\n runTX(new Callable<Void>() {\n public Void call() throws Exception {\n doTestAdd();\n return null;\n }\n });\n runTX(new Callable<Void>() {\n public Void call() throws Exception {\n doTestAddCheck();\n return null;\n }\n });\n }",
"public void onTestSuccess(ITestResult result) {\n\t\t\n\t}",
"@Test\npublic void TC11(){\n\n}",
"@Test\npublic void testUpdateResult() throws Exception { \n//TODO: Test goes here... \n}",
"@Test\n public void testGetAnalyzedData() {\n System.out.println(\"getAnalyzedData\");\n \n }",
"public void testJUnit() throws InterruptedException {\n // open sample file in Editor\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n JavaNode sampleClass2Node = new JavaNode(sample1Node, SAMPLE2_FILE_NAME);\n sampleClass2Node.open();\n // find open sample file in editor\n EditorOperator eo = new EditorOperator(SAMPLE2_FILE_NAME);\n eo.setCaretPosition(\"public static void main\", true);\n int insertLine = eo.getLineNumber() + 3;\n // add methods declarations to sample file\n String publicMethod = \"\\n public void publicMethod() {\\n }\\n\"; // NOI18N\n eo.insert(publicMethod, insertLine, 1);\n String privateMethod = \"\\n private void privateMethod() {\\n }\\n\"; //NOI18N\n eo.insert(privateMethod, insertLine + 3, 1);\n String protectedMethod = \"\\n protected void protectedMethod() {\\n }\\n\"; //NOI18N\n eo.insert(protectedMethod, insertLine + 3, 1);\n String defaultMethod = \"\\n void defaultMethod() {\\n }\\n\"; //NOI18N\n eo.insert(defaultMethod, insertLine + 3, 1);\n eo.save();\n // need to wait until new methods are parsed\n PerfWatchProjects.waitScanFinished();\n\n // \"Tools\"\n String toolsItem = Bundle.getStringTrimmed(\"org.netbeans.core.ui.resources.Bundle\", \"Menu/Tools\"); // NOI18N\n ActionNoBlock createTestsAction = new ActionNoBlock(null, toolsItem + \"|Create/Update Tests\");\n createTestsAction.perform(sampleClass2Node);\n // \"Create Tests\"\n String createTestsTitle = Bundle.getString(\"org.netbeans.modules.junit.Bundle\", \"JUnitCfgOfCreate.Title\");\n new NbDialogOperator(createTestsTitle).ok();\n // \"Select JUnit Version\"\n String selectJUnitVersionTitle = Bundle.getString(\"org.netbeans.modules.junit.Bundle\", \"LBL_title_select_generator\");\n NbDialogOperator selectVersionOper = new NbDialogOperator(selectJUnitVersionTitle);\n // \"JUnit 3.x\"\n String version3Label = Bundle.getStringTrimmed(\"org.netbeans.modules.junit.Bundle\", \"LBL_JUnit3_generator\");\n new JRadioButtonOperator(selectVersionOper, version3Label).push();\n // \"Select\"\n String selectLabel = Bundle.getStringTrimmed(\"org.netbeans.modules.junit.Bundle\", \"LBL_Select\");\n new JButtonOperator(selectVersionOper, selectLabel).pushNoBlock();\n\n // wait until test node is created\n // \"Test Packages\"\n String testPackagesLabel = Bundle.getString(\"org.netbeans.modules.java.j2seproject.Bundle\", \"NAME_test.src.dir\");\n Node testPackagesNode = new Node(new ProjectsTabOperator().getProjectRootNode(SAMPLE_PROJECT_NAME), testPackagesLabel);\n // Test Packages|sample1|SampleClass1Test.java\n new JavaNode(testPackagesNode, SAMPLE1_PACKAGE_NAME + \"|\" + SAMPLE2_CLASS_NAME + \"Test.java\"); // NOI18N\n\n // check default, protected and public method tests created and private is not created\n EditorOperator eoTest = new EditorOperator(SAMPLE2_CLASS_NAME + \"Test.java\"); // NOI18N\n // wait code is generated\n eoTest.txtEditorPane().waitText(\"testDefaultMethod\"); // NOI18N\n eoTest.txtEditorPane().waitText(\"testProtectedMethod\"); // NOI18N\n eoTest.txtEditorPane().waitText(\"testPublicMethod\"); // NOI18N\n assertFalse(\"Created test should not include test of private method.\", eoTest.contains(\"testPrivateMethod\")); // NOI18N\n eoTest.close();\n\n // go to test\n // \"Navigate\"\n String navigateItem = Bundle.getStringTrimmed(\"org.netbeans.core.ui.resources.Bundle\", \"Menu/GoTo\"); // NOI18N\n // \"Go to Test\"\n String goToTestItem = Bundle.getString(\"org.netbeans.modules.junit.Bundle\", \"LBL_Action_GoToTest\"); // NOI18N\n // go to test (\"Navigate|Go to Test\") - main menu action\n Action gotoTestAction = new Action(navigateItem + \"|\" + goToTestItem, null);\n gotoTestAction.perform(sampleClass2Node);\n // wait until test is opened in editor\n new EditorOperator(SAMPLE2_CLASS_NAME + \"Test.java\"); // NOI18N\n\n // run generated test\n\n // \"Run\" \n // TODO bundle property name should be changed back to Menu/RunProject after updating bundle\n String runItem = Bundle.getStringTrimmed(\"org.netbeans.modules.project.ui.Bundle\", \"Menu/BuildProject\");\n // \"Test File\"\n String testFileItem = Bundle.getStringTrimmed(\"org.netbeans.modules.project.ui.actions.Bundle\",\n \"LBL_TestSingleAction_Name\",\n new Object[]{new Integer(1), SAMPLE2_FILE_NAME});\n // \"Test Project\"\n String testProjectItem = Bundle.getStringTrimmed(\"org.netbeans.modules.project.ui.actions.Bundle\",\n \"LBL_TestProjectAction_Name\",\n new Object[]{new Integer(1), SAMPLE_PROJECT_NAME});\n\n // increase timeout to 60 seconds\n MainWindowOperator.getDefault().getTimeouts().setTimeout(\"Waiter.WaitingTime\", 60000); // NOI18N\n // start to track Main Window status bar\n MainWindowOperator.StatusTextTracer stt = MainWindowOperator.getDefault().getStatusTextTracer();\n stt.start();\n // call \"Run|Test \"SampleClass2.java\"\"\n new Action(runItem + \"|\" + testFileItem, null).perform(sampleClass2Node);\n\n // check status line\n // \"SampleProject (test-single)\"\n String testSingleTarget = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"TITLE_output_target\",\n new Object[]{SAMPLE_PROJECT_NAME, null, \"test-single\"}); // NOI18N\n String testTarget = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"TITLE_output_target\",\n new Object[]{SAMPLE_PROJECT_NAME, null, \"test\"}); // NOI18N\n // \"Build of SampleProject (test-single) failed.\"\n String failedMessage = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"FMT_target_failed_status\",\n new Object[]{testSingleTarget});\n // wait message \"Build of SampleProject (test-single) failed.\"\n stt.waitText(failedMessage);\n\n // call \"Run|Test \"SampleProject\"\"\n new Action(runItem + \"|\" + testProjectItem, null).perform(sampleClass2Node);\n // \"Finished building SampleProject (test)\"\n String finishedMessage = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"FMT_finished_target_status\",\n new Object[]{testTarget});\n // wait message \"Finished building SampleProject (test)\"\n stt.waitText(finishedMessage);\n stt.stop();\n\n // test JUnit on folder\n createTestsAction.perform(sample1Node);\n new NbDialogOperator(createTestsTitle).ok();\n // wait until test node is created\n // Test Packages|sample1|Sample1Suite.java\n JavaNode suiteNode = new JavaNode(testPackagesNode, SAMPLE1_PACKAGE_NAME + \"|Suite.java\"); // NOI18N\n suiteNode.open();\n // check suite is open in editor and it conteins generated test class\n assertTrue(\"Created suite should include test of public method.\",\n new EditorOperator(\"Suite\").contains(SAMPLE2_CLASS_NAME + \"Test\")); // NOI18N\n EditorOperator.closeDiscardAll();\n }",
"public void testOperation();",
"public void onTestSuccess(ITestResult result) {\n \tSystem.out.println(\"The test case is passed :\"+result.getName());\n }",
"@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\tthread.get().log(Status.PASS, \"Pass\");\n\t}",
"@Test\n public void someTest() {\n }",
"@Test\r\n\tpublic void test() {\r\n\t}",
"@Test\npublic void testCal() throws Exception {\n\tsearchText();\n}",
"@Test\n public void testMethod() {\n }",
"public void junitStarted() { }",
"public void junitStarted() { }",
"@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\t\n\t}",
"@Override\n public void onTestSuccess(ITestResult result) {\n\n }",
"@Override\npublic void onTestSuccess(ITestResult result) {\n\t\n}",
"@Test\n public void ran() {\n List<ChangeSetStatus> changeSets = new ArrayList<>();\n ChangeSet mockChangeSet = Mockito.mock(ChangeSet.class);\n DatabaseChangeLog mockDbChangeLog =\n Mockito.mock(DatabaseChangeLog.class);\n Database mockDatabase = Mockito.mock(Database.class);\n\n LiquibaseMigrationWatcher w = new LiquibaseMigrationWatcher(changeSets);\n\n assertFalse(w.isMigrated());\n assertNull(w.getCurrentVersion());\n\n w.ran(mockChangeSet, mockDbChangeLog, mockDatabase, ExecType.EXECUTED);\n\n assertTrue(w.isMigrated());\n assertSame(mockChangeSet, w.getCurrentVersion());\n }",
"@Override\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\tSystem.out.println(\"when test success\");\n\t\t\n\t}",
"public void junitTestStarted(String name) { }",
"public void junitTestStarted(String name) { }",
"@Test\n void displayAllTasks() {\n }",
"public void testSpock(){\n }",
"@Test\n public void testSomeMethod() {\n }",
"@Test\n public void testSomeMethod() {\n }",
"public void onTestSuccess(ITestResult result) {\n\t\t\r\n\t}",
"@Test\n public void simpleUse(){\n }",
"public TestResults run(Duration duration) {\n\t\tSimulationNodes bftNetwork = new SimulationNodes(\n\t\t\tnodes,\n\t\t\tsimulationNetwork,\n\t\t\tbaseNodeModule,\n\t\t\toverrideModule,\n\t\t\tbyzantineNodeModules\n\t\t);\n\t\tRunningNetwork runningNetwork = bftNetwork.start();\n\n\t\tMap<String, Optional<TestInvariantError>> checkResults = runChecks(runningNetwork, duration)\n\t\t\t.doFinally(bftNetwork::stop)\n\t\t\t.blockingStream()\n\t\t\t.collect(Collectors.toMap(Pair::getFirst, Pair::getSecond));\n\t\treturn new TestResults(checkResults, runningNetwork);\n\t}",
"@Test\n\tpublic void test1() {\n\t\tSystem.out.println(\"I am Test 1\");\n\t}"
] | [
"0.73580587",
"0.68335253",
"0.6566057",
"0.6531041",
"0.6435892",
"0.6310474",
"0.6263938",
"0.61583376",
"0.6140481",
"0.6125002",
"0.61241317",
"0.6096797",
"0.60536796",
"0.6048627",
"0.60118407",
"0.6009552",
"0.5961537",
"0.5960132",
"0.5951862",
"0.5948516",
"0.5917568",
"0.59062773",
"0.5880054",
"0.5859903",
"0.5850657",
"0.58419",
"0.5788417",
"0.5775757",
"0.57435715",
"0.5733335",
"0.5728819",
"0.5724325",
"0.5724325",
"0.5708565",
"0.5695715",
"0.5691425",
"0.56839687",
"0.5682403",
"0.56808233",
"0.56723416",
"0.5666321",
"0.5666206",
"0.56556964",
"0.5653183",
"0.5652808",
"0.563774",
"0.563774",
"0.5635625",
"0.5632189",
"0.56158525",
"0.5609411",
"0.5595941",
"0.5595941",
"0.5595108",
"0.55913836",
"0.5582322",
"0.55672085",
"0.5566341",
"0.55559146",
"0.5555019",
"0.55478096",
"0.55367094",
"0.5535935",
"0.5534457",
"0.5534457",
"0.55337095",
"0.5530712",
"0.5525305",
"0.5524404",
"0.5517098",
"0.5515493",
"0.5515312",
"0.55150104",
"0.5512601",
"0.55121607",
"0.5500359",
"0.5490866",
"0.54905534",
"0.54900414",
"0.54608554",
"0.5460619",
"0.5460514",
"0.5447392",
"0.5446378",
"0.5446378",
"0.54419625",
"0.54378444",
"0.54361284",
"0.54336876",
"0.5433531",
"0.54289645",
"0.54289645",
"0.5423356",
"0.5417863",
"0.5417815",
"0.5417815",
"0.54130596",
"0.5412392",
"0.5410562",
"0.54073334"
] | 0.6172197 | 7 |
TODO Autogenerated method stub | public List<Classinfo> list() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | public List<Classinfo> listByState(int seqstate) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | public List<Classinfo> listById(String userid) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
IMPORTANT INVARIANT: this should always return a map, never null. | Map getConnectionManagerMap(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<String, String> asMap();",
"protected Map<String, Object> assertMap() {\n if (type == Type.LIST) {\n throw new FlexDataWrongTypeRuntimeException(type, Type.OBJECT); \n }\n if (entryCollectionMap == null) {\n entryCollectionMap = new LinkedHashMap<String, Object>();\n type = Type.OBJECT;\n }\n return entryCollectionMap;\n }",
"java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();",
"java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();",
"public static Map<String, Object> toMap() {\n return toMap(null);\n }",
"java.util.Map<java.lang.Integer, java.lang.Integer>\n getInfoMap();",
"java.util.Map<java.lang.String, java.lang.String>\n getDetailsMap();",
"java.util.Map<java.lang.String, java.lang.String>\n getDetailsMap();",
"Map<String, String> mo14888a();",
"public abstract Map<String, Serializable> toMap();",
"public java.util.Map getMap()\n {\n return __m_Map;\n }",
"ProcessOperation<Map<String, Object>> map();",
"private Map<String, Object> getMap(String key) {\r\n\t\tMap<String,Object> map = null;\r\n\r\n\t\tif (applicationContext != null && applicationContext.containsBean(key)) {\r\n\t\t\tmap = (Map<String, Object>)applicationContext.getBean(key);\r\n\t\t}\r\n\t\tif (map == null && namedMaps.containsKey(key)) {\r\n\t\t\tmap = namedMaps.get(key);\r\n\t\t}\r\n\t\tif (map == null && this.containsKey(key)) {\r\n\t\t\tObject obj = this.get(key);\r\n\t\t\tif (obj instanceof Map) {\r\n\t\t\t\tmap = (Map)obj;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n public Map getMap(String name)\n {\n Object v = getProperty(name);\n return (v == null) ? null : (Map) v;\n }",
"public Map initMap(){\n\t\tif (map == null){\n\t\t\tmap = createMap();\n\t\t}\n\t\treturn map;\n\t}",
"public final Map<String, Object> getInternalMap() {\n\t\treturn values;\n\t}",
"private Map toMap(Scriptable scriptable) {\n \t\tif (scriptable instanceof MapWrapper)\n \t\t\treturn (Map) ((MapWrapper) scriptable).unwrap();\n \t\treturn new MapAdapter(scriptable);\n \t}",
"public Map<String, Object> getInfo();",
"Map<String, Object> getPropertiesAsMap();",
"java.util.Map<java.lang.String, java.lang.String>\n getPropertiesMap();",
"public static Map<String, String> getMapping() {\r\n\t\treturn data.get();\r\n\t}",
"public Map<String, Object> getInfoMap()\n {\n Map<String, Object> paramMap = new HashMap<String, Object>();\n this.putInMap(paramMap);\n return paramMap;\n }",
"public Map<String, Object> getInfoMap() {\n\t\tMap<String, Object> paramMap = new HashMap<String, Object>();\n\t\tthis.putInMap(paramMap);\n\t\treturn paramMap;\n\t}",
"protected SortedMap getSortedMap() {\n/* 65 */ return (SortedMap)this.map;\n/* */ }",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default Map<String, IData> asMap() {\n \n return notSupportedCast(\"IData[string]\");\n }",
"@Override\r\n\tpublic Map<String, Object> getMap(String... keys) throws CacheException {\n\t\treturn null;\r\n\t}",
"public abstract Map<K, V> a();",
"private Map<String, List<String>> getDictionary() {\n\t\tMap<String, List<String>> dictMap = dictionary.getMultiValueDict();\n\t\treturn dictMap;\n\t}",
"protected Map getProfileMap() {\n \t\tif (profiles != null) {\n \t\t\tMap result = (Map) profiles.get();\n \t\t\tif (result != null)\n \t\t\t\treturn result;\n \t\t}\n \t\tMap result = restore();\n \t\tif (result == null)\n \t\t\tresult = new LinkedHashMap(8);\n \t\tprofiles = new SoftReference(result);\n \t\treturn result;\n \t}",
"@Override\n public Map<String, Class> getDictionary() {\n synchronized (mapper) {\n LinkedHashMap<String, Class> dictionary = new LinkedHashMap<>();\n mapper.fillDictionary(null, dictionary);\n return dictionary;\n }\n }",
"<K extends Object, V extends Object> Map<K, V> getMap(String mapName);",
"public Map getParameters()\n\t{\n\t\tMap returnValue = null;\n\n\t\tif (params == null)\n\t\t{\n\t\t\treturnValue = new HashMap();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturnValue = params;\n\t\t}\n\n\t\treturn returnValue;\n\t}",
"public MultiValueMap<String, String> getMap() {\r\n\t\tMultiValueMap<String, String> map = new LinkedMultiValueMap<String, String>();\r\n\t\t\r\n\t\tif(this.country != null) \t\tmap.add(\"country\", this.getCountry().getValue());\r\n\t\tif(this.operation != null) \t\tmap.add(\"operation\", this.getOperation().getValue());\r\n\t\tif(this.propertyType != null) \tmap.add(\"propertyType\", this.getPropertyType().getValue());\r\n\t\tif(this.center != null) \t\tmap.add(\"center\", this.getCenter().getCoordinates());\r\n\t\tif(this.locale != null) \t\tmap.add(\"locale\", this.getLocale().getValue());\r\n\t\tif(this.distance != null) \t\tmap.add(\"distance\", this.getDistance().toString());\r\n\t\tif(this.locationId != null) \tmap.add(\"locationId\", this.getLocationId().getValue());\r\n\t\tif(this.maxItems != null) \t\tmap.add(\"maxItems\", this.getMaxItems().toString());\r\n\t\tif(this.numPage != null) \t\tmap.add(\"numPage\", this.getNumPage().toString());\r\n\t\tif(this.maxPrice != null) \t\tmap.add(\"maxPrice\", this.getMaxPrice().toString());\r\n\t\tif(this.sinceDate != null) \t\tmap.add(\"sinceDate\", this.getSinceDate().getValue());\r\n\t\tif(this.order != null) \t\t\tmap.add(\"order\", this.getOrder().getValue());\r\n\t\tif(this.sort != null) \t\t\tmap.add(\"sort\", this.getSort().getValue());\r\n\t\tif(this.adIds != null) {\r\n\t\t\tfor(Integer id: adIds) {\r\n\t\t\t\tmap.add(\"adIds\", id.toString());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(this.hasMultimedia != null) \tmap.add(\"hasMultimedia\", this.getHasMultimedia().toString());\r\n\t\t\r\n\t\treturn map;\r\n\t}",
"static Map instanceOfMap(int typeMap)\n {\n if(instanceOfMap==null)\n instanceOfMap = new Map(typeMap);\n return instanceOfMap;\n }",
"java.util.Map<java.lang.String, java.lang.String> getAttributesMap();",
"@Override\r\n\tpublic Map<String, Object> getMap(List<String> keyList) throws CacheException {\n\t\treturn null;\r\n\t}",
"public Map<String, Object> getTagMap();",
"Map<Element, Map<Element, Element>> getOperationMap();",
"java.util.Map<String, String>\n getOptionsMap();",
"java.util.Map<String, String>\n getOptionsMap();",
"java.util.Map<String, String>\n getOptionsMap();",
"@UnsupportedAppUsage\n public Map<String, Object> getMap() {\n return this.mMap;\n }",
"public Map<String, Object> getById(Integer id) {\n\t\treturn null;\n\t}",
"public final HashMap<String, String> invoke() {\n Serializable serializable = com.iqoption.core.ext.a.s(this.this$0).getSerializable(\"ARG_REDIRECT_PARAMS\");\n if (serializable != null) {\n return (HashMap) serializable;\n }\n throw new TypeCastException(\"null cannot be cast to non-null type java.util.HashMap<kotlin.String, kotlin.String>\");\n }",
"java.util.Map<String, String>\n getReplicationMap();",
"@Override\r\n\tpublic <T> Map<String, T> getMap(Class<T> clazz, List<String> keyList) throws CacheException {\n\t\treturn null;\r\n\t}",
"java.util.Map<java.lang.String, java.lang.String>\n getVarsMap();",
"java.util.Map<java.lang.String, java.lang.String>\n getFieldMap();",
"public abstract Map<String, Station> getWbanStationMap() throws DataAccessException;",
"public Map<String, ?> getUrlMap()\r\n/* 27: */ {\r\n/* 28: 93 */ return this.urlMap;\r\n/* 29: */ }",
"public static java.util.Map singletonMap(java.lang.Object arg0, java.lang.Object arg1)\n { return null; }",
"private Map<String, DataContainer> getDataContainerMap() {\r\n\r\n if (this.dataContainerMap == null) {\r\n if (this.dataContainerList == null) {\r\n parse();\r\n }\r\n\r\n this.dataContainerMap = new HashMap<>();\r\n for (DataContainer dataContainer : this.dataContainerList) {\r\n this.dataContainerMap.put(dataContainer.getVariableName(), dataContainer);\r\n }\r\n }\r\n return this.dataContainerMap;\r\n }",
"protected Map createPropertiesMap() {\n return new HashMap();\n }",
"protected abstract Map<String, Serializable> getEventKeyAndIdMap();",
"public EnumMap<?, SerializableString> internalMap()\n/* */ {\n/* 100 */ EnumMap<?, SerializableString> result = this._asMap;\n/* 101 */ if (result == null)\n/* */ {\n/* 103 */ Map<Enum<?>, SerializableString> map = new LinkedHashMap();\n/* 104 */ for (Enum<?> en : this._values) {\n/* 105 */ map.put(en, this._textual[en.ordinal()]);\n/* */ }\n/* 107 */ result = new EnumMap(map);\n/* */ }\n/* 109 */ return result;\n/* */ }",
"@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }",
"public StringDt getMapElement() { \n\t\tif (myMap == null) {\n\t\t\tmyMap = new StringDt();\n\t\t}\n\t\treturn myMap;\n\t}",
"@Override\n\tpublic <T> Map<String, T> get(Collection<String> arg0)\n\t\t\tthrows TimeoutException, InterruptedException, MemcachedException {\n\t\treturn null;\n\t}",
"MAP createMAP();",
"java.util.List<com.sanqing.sca.message.ProtocolDecode.SimpleMap> \n getSimpleMapList();",
"@Override\n\tpublic <T> Map<String, T> get(Collection<String> arg0, Transcoder<T> arg1)\n\t\t\tthrows TimeoutException, InterruptedException, MemcachedException {\n\t\treturn null;\n\t}",
"public Map getMap() {\n\t\treturn this.map;\n\t}",
"private HashMap<String, String> returnCorrectMap(String...parameters) {\n\n\t\tHashMap<String, String> map = null;\n\n\t\ttry {\n\n\t\t\tmap = generateHashMapFromStringList(parameters);\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn map;\n\t}",
"public abstract Map<String, Object> fetchModelMap() throws ModelException;",
"public Map<String, Object> toMap(Object data) {\n\n try {\n String dataF = null;\n if (!(data instanceof String)) {\n dataF = toString(data);\n }\n// else {\n// dataF = objectMapper.writeValueAsString(data);\n// }\n return objectMapper.readValue(dataF, new TypeReference<Map<String, Object>>() {\n });\n } catch (IOException e) {\n logger.error(e.getMessage(), e);\n }\n return null;\n }",
"public Map<String, Map<String, Set<String>>> getLocationMap();",
"@Override\n\tpublic <T> Map<String, T> get(Collection<String> arg0, long arg1,\n\t\t\tTranscoder<T> arg2) throws TimeoutException, InterruptedException,\n\t\t\tMemcachedException {\n\t\treturn null;\n\t}",
"public <K> Map<String, ?> get(K key);",
"public Map<K,V> getMap() {\n Map<K,V> results = new HashMap<K,V>(valueMap.size());\n\n synchronized(theLock) {\n for (Map.Entry<K,CacheableObject> entry : valueMap.entrySet()) {\n if (! isExpired(entry.getValue())) {\n results.put(entry.getKey(), entry.getValue().cachedObject);\n }\n }\n }\n\n return results;\n }",
"public Map<Integer, Coord> getGlobalMap(){\n\t\tif(mapExists){\r\n\t\t\tMap<Integer, Coord> realCoordMap = new HashMap<Integer, Coord>();\r\n\t\t\tfor(Map.Entry<Integer, Coord> c : this.globalMap.entrySet()){\r\n\t\t\t\t//core.Debug.p(\"c: id\" + c.getKey() + \", v:\" + c.getValue().toString() + \", r:\"+ realCoord(c.getValue()).toString());\r\n\t\t\t\trealCoordMap.put(c.getKey(), realCoord(c.getValue()));\r\n\t\t\t}\r\n\t\t\treturn realCoordMap;\r\n\t\t}\r\n\t\telse return null;\r\n\t}",
"public static Map<String, String> getMapping() {\n\t\treturn ThreadContext.getMapping();\n\t}",
"public HashMap<String, String> getMap() {\n return _map;\n }",
"Map<Integer, String> getMetaLocal();",
"public Map getMappings() {\n if (mappings == null) {\n return new HashMap();\n }\n return (HashMap) mappings.clone();\n }",
"protected Map createMapMatchingType(MappingContext mappingContext) {\n Class<?> mapType = mappingContext.getTypeInformation().getSafeToWriteClass();\n if (mapType.isAssignableFrom(LinkedHashMap.class)) {\n return new LinkedHashMap();\n } else if (mapType.isAssignableFrom(TreeMap.class)) {\n return new TreeMap();\n } else {\n throw new ConfigMeMapperException(mappingContext, \"Unsupported map type '\" + mapType + \"'\");\n }\n }",
"@Override\n\tpublic Map loadMap() {\n\t\ttry {\n\t\t\treturn XMLDeserialiser.loadMap();\n\t\t} catch (XMLException e) {\n\t\t\tPopup.showInformation(\"Le fichier choisi n'est pas un plan valide.\");\n\t\t\treturn null;\n\t\t} catch (NoFileChosenException e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public Map ensureColumnMap()\n {\n Map mapColumns = m_mapColumns;\n if (mapColumns == null)\n {\n m_mapColumns = mapColumns = new HashMap();\n }\n return mapColumns;\n }",
"@Override\n\tpublic Map<String, String> get(int id) {\n\t\treturn null;\n\t}",
"private Map getMapping() {\n return getIndexOperations().getMapping();\n }",
"private IMapData<Integer, String> getHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"a\"),\n KeyValueNode.make(3, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }",
"public abstract Map<String, Object> toMap(T object);",
"@Override\n public Map<String, ?> getAll() {\n return Collections.emptyMap();\n }",
"public HashMap<String, NeonValue> getMap();",
"@Override\n\tpublic <T> Map<String, T> get(Collection<String> arg0, long arg1)\n\t\t\tthrows TimeoutException, InterruptedException, MemcachedException {\n\t\treturn null;\n\t}",
"public Map<String, Counter> getMap(){\n\t\treturn map;\n\t}",
"public abstract Map getAttributes();",
"boolean hasSimpleMap();",
"@SuppressWarnings(\"rawtypes\")\n private Map.Entry getMapEntry(Node node) {\n Object value = null;\n String keyName = node.getLocalName();\n XmlMapEntry xmlMapEntry = this.mapSpecification.get(keyName);\n switch (node.getNodeType()) {\n case Node.ATTRIBUTE_NODE:\n value = node.getNodeValue();\n break;\n case Node.ELEMENT_NODE: {\n if (xmlMapEntry == null) {\n value = new NodeArray(node.getChildNodes());\n } else {\n XmlMapFacet valueFacet = xmlMapEntry.getValue();\n switch (valueFacet.getType()) {\n case ELEMENT:\n value = keyName;\n break;\n case CONTENT: {\n NodeList nodeList = node.getChildNodes();\n if (nodeList.getLength() > 0) {\n value = new NodeArray(nodeList);\n }\n }\n break;\n case ATTRIBUTE: {\n NamedNodeMap attributes = node.getAttributes();\n Node attribute = attributes.getNamedItem(valueFacet.getName());\n if (attribute != null) {\n value = attribute.getNodeValue();\n }\n }\n break;\n default:\n throw new IllegalStateException();\n }\n XmlMapFacet keyFacet = xmlMapEntry.getKey();\n switch (keyFacet.getType()) {\n case ELEMENT:\n break;\n case CONTENT: {\n NodeList nodeList = node.getChildNodes();\n if (nodeList.getLength() > 0) {\n keyName = getStringValue((Node) nodeList.item(0));\n } else {\n keyName = null;\n }\n }\n break;\n case ATTRIBUTE: {\n NamedNodeMap attributes = node.getAttributes();\n Node attribute = attributes.getNamedItem(keyFacet.getName());\n if (attribute != null) {\n keyName = attribute.getNodeValue();\n } else {\n keyName = null;\n }\n break;\n }\n default:\n throw new IllegalStateException();\n }\n }\n }\n }\n if (keyName == null) {\n return null;\n } else {\n final Object _key = keyName;\n final Object _value = value;\n return new Map.Entry() {\n\n @Override\n public Object getKey() {\n return _key;\n }\n\n @Override\n public Object getValue() {\n return _value;\n }\n\n @Override\n public Object setValue(Object object) {\n return null;\n }\n\n };\n }\n }",
"@Override\n\tpublic GenericMapInfo get(PK id) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic <T> Map<String, T> getMap(Class<T> clazz, String... keys) throws CacheException {\n\t\treturn null;\r\n\t}",
"private IMapData<Integer, String> getHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }",
"public Map<String, Object> getCurrentData() throws Exception;",
"public Map<String, String> getData() {\n if (data == null) data = new HashMap<>();\n return data;\n }",
"public static Map<String, String> getParameters() {\r\n return null;\r\n }",
"public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {\n return internalGetMetadata().getMap();\n }",
"public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {\n return internalGetMetadata().getMap();\n }",
"public MapBean getMapBean() {\n return theMap;\n }",
"private static <K, V> Map<K, V> newHashMap() {\n return new HashMap<K, V>();\n }",
"public static MapObject createMapObject(){\n\t\treturn new MapObject();\n\t}",
"@Override\n\tpublic Map<String, ?> getValues() {\n\t\treturn null;\n\t}",
"public Map instantiateBackingMap(String sName);"
] | [
"0.71968734",
"0.7112828",
"0.68250567",
"0.68250567",
"0.68077785",
"0.67897165",
"0.6766068",
"0.67442024",
"0.67338336",
"0.6649481",
"0.6631335",
"0.6630815",
"0.66244227",
"0.65434015",
"0.6542813",
"0.6541981",
"0.6535934",
"0.65334857",
"0.65031755",
"0.6496064",
"0.6484463",
"0.6475864",
"0.6463628",
"0.64627147",
"0.64581484",
"0.6447239",
"0.6402265",
"0.64014447",
"0.6378997",
"0.63544285",
"0.6294608",
"0.6292547",
"0.62915283",
"0.62640834",
"0.6260967",
"0.62537307",
"0.6228688",
"0.61885256",
"0.61806375",
"0.61806375",
"0.61806375",
"0.6176408",
"0.61656195",
"0.6144039",
"0.61377215",
"0.61357814",
"0.6127985",
"0.61205506",
"0.6119271",
"0.61179286",
"0.610571",
"0.6102867",
"0.61017275",
"0.6093246",
"0.6088884",
"0.6084105",
"0.60746646",
"0.60726637",
"0.606313",
"0.60531986",
"0.60384023",
"0.602896",
"0.60245705",
"0.6021384",
"0.59965956",
"0.5985103",
"0.5984474",
"0.5981615",
"0.5973347",
"0.59659845",
"0.5958131",
"0.59560233",
"0.59553933",
"0.5947837",
"0.59459895",
"0.594566",
"0.5943206",
"0.5932316",
"0.5927499",
"0.59270114",
"0.59268165",
"0.59264606",
"0.592293",
"0.5922363",
"0.59025365",
"0.58962053",
"0.58940595",
"0.58917177",
"0.5889734",
"0.58771306",
"0.58732426",
"0.5870746",
"0.58628577",
"0.5860051",
"0.5858584",
"0.5858584",
"0.5842481",
"0.58368295",
"0.5835865",
"0.5826886",
"0.5824726"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void createBanque(Banque b) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void readBanque(Banque b) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void updateBanque(Banque b) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void deleteBanque(Banque b) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void createAgence(Agence a) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void readAgence(Agence a) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void updateAgence(Agence a) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void deleteAgence(Agence a) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void createGerant(Gerant g) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void readGerant(Gerant g) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void updateGerant(Gerant g) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void deleteGerant(Gerant g) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void createConseille(Conseille c) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void readConseille(Conseille c) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void updateConseille(Conseille c) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void deleteConseille(Conseille c) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void createClient(Client clt) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void readClient(Client clt) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void createCpteCourant(CompteCourant cpt) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void readCpteCourant(CompteCourant cpt) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void updateCpteCourant(CompteCourant cpt) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void deleteCpteCourant(CompteCourant cpt) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void createCpteEpargne(CompteEpargne cpt) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void readCpteEpargne(CompteEpargne cpt) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void updateCpteEpargne(CompteEpargne cpt) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void deleteCpteEpargne(CompteEpargne cpt) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void createBourse(Bourse brs) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void readBourse(Bourse brs) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void updateBourse(Bourse brs) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void deleteBourse(Bourse brs) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void createCB(CB cb) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void readCB(CB cb) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void updateCB(CB cb) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void deleteCB(CB cb) {
} | {
"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 |
Invite join leave broadcasts: | public static String wasInvited(SagaPlayer sagaPlayer, Bundle settlement) {
return Colour.normal1 + "You were invited to " + settlement.getName() + " settlement.";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void leave()\n {\n if (chatRoomSession != null)\n { // manually close the chat room session\n // and set the chat room session to null.\n chatRoomSession.close();\n chatRoomSession = null;\n }\n\n Iterator<Entry<String, Contact>> membersSet =\n participants.entrySet().iterator();\n\n while (membersSet.hasNext())\n {\n Map.Entry<String, Contact> memberEntry = membersSet.next();\n\n Contact participant = memberEntry.getValue();\n\n fireParticipantPresenceEvent(participant,\n AdHocChatRoomParticipantPresenceChangeEvent.CONTACT_LEFT,\n \"Local user has left the chat room.\");\n }\n\n // Delete the list of members\n participants.clear();\n }",
"public void leaveConference();",
"public static Message createLeaveEvent(long group_, int ifindex_)\r\n { return new Message(LEAVE, 0, 0, group_, ifindex_); }",
"@Override\n public void leave() {\n LeaveReq leaveReq = new LeaveReq(node.getCred());\n String msg = leaveReq.getMessageAsString(Constant.Action.LEAVE);\n for (Cred neighbourCred : node.getRoutingTable()) {\n String uri = Constant.HTTP + neighbourCred.getNodeIp() + \":\" + neighbourCred.getNodePort() + Constant.EndPoint.LEAVE;\n try {\n String result = restTemplate.postForObject(uri, new Gson().toJson(leaveReq), String.class);\n if (result.equals(\"200\")) {\n logMe(\"Neighbor left successfully at \" + getCurrentTime());\n }\n } catch (ResourceAccessException exception) {\n //connection refused to the api end point\n } catch (HttpServerErrorException exception){\n //\n }\n }\n }",
"public void disconnect(){\n\t\tfor (NodeInfo peerInfo : peerList) {\r\n\t\t\t// send leave to peer\r\n\t\t\tsend(\"0114 LEAVE \" + ip + \" \" + port, peerInfo.getIp(), peerInfo.getPort());\r\n\t\t\t\r\n\t\t\tfor (NodeInfo peerInfo2 : peerList) {\r\n\t\t\t\tif (!peerInfo.equals(peerInfo2)) {\r\n\t\t\t\t\tString joinString = \"0114 JOIN \" + peerInfo2.getIp() + \" \" + peerInfo2.getPort();\r\n\t\t\t\t\t\r\n\t\t\t\t\tsend(joinString, peerInfo.getIp(), peerInfo.getPort());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tunRegisterBootstrapServer(serverIp, serverPort, ip, port, username);\r\n\t\t\tapp.printInfo(\"Node disconnected from server....\");\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\t//socket = null;\r\n\t}",
"private void userDidLeave() {\n DeviceSingleton deviceSingleton = DeviceSingleton.getInstance();\n deviceSingleton.setImInARoom(false);\n deviceSingleton.setJoinedChat(false);\n\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putBoolean(\"savedJoinedChat\", false);\n editor.commit();\n Intent intent2 = new Intent(ShowMapActivity.this, LoginActivity.class);\n startActivity(intent2);\n// break;\n\n }",
"public void leave() {\n OffRequestManager.instance().removeOffRequestListener(instance);\n OnRequestManager.instance().removeOnRequestListener(instance);\n ParkRequestManager.instance().removeParkListener(instance);\n }",
"public static Message createLeaveEvent(long src_, long group_, int ifindex_)\r\n { return new Message(LEAVE, src_, -1, group_, ifindex_); }",
"public static Message createLeaveEvent(long src_, long srcmask_, long group_, int ifindex_)\r\n { return new Message(LEAVE, src_, srcmask_, group_, ifindex_); }",
"void leave(Client client);",
"@EventHandler\n public void onJoin(PlayerJoinEvent event) {\n Player player = event.getPlayer();\n\n if (plugin.getCheckManager().isCheckEnabled(Check.SMALLFIX_LEAVEVEHICLEONJOIN)) {\n if (player.getVehicle() != null) {\n player.leaveVehicle();\n }\n }\n }",
"@EventHandler\r\n\tpublic void Playerleave(PlayerQuitEvent e) {\r\n\t\tPlayer p = e.getPlayer();\r\n\t\tString pname = p.getName();\r\n\t\tp.getInventory().clear();\r\n\t\t Bukkit.broadcastMessage(\"\" + ChatColor.RED + ChatColor.WHITE + \"BMT | \" + pname + ChatColor.RESET + \"Heeft de server verlaten!\" + \"\");\r\n\t}",
"public void leave() {\n FacesContext fc = FacesContext.getCurrentInstance();\n try {\n UbikeUser current = (UbikeUser) BaseBean.getSessionAttribute(\"user\");\n ExternalContext exctx = fc.getExternalContext();\n HttpServletRequest request = (HttpServletRequest) exctx.getRequest();\n long groupId = Long.parseLong(request.getParameter(\"groupId\"));\n long userId = current.getId();\n MemberShip memberShip = memberShipService.getMemberShip(userId, groupId);\n\n if (memberShip == null) {\n fc.addMessage(\"join:join_status\", new FacesMessage(FacesMessage.SEVERITY_ERROR,\n \"You are not member of this group yet\",\n \"You are not member of this group yet\"));\n return;\n }\n\n memberShipService.remove(memberShip.getId());\n fc.addMessage(\"join:join_status\", new FacesMessage(FacesMessage.SEVERITY_INFO,\n \"You leaved the group successfully!\",\n \"You leaved the group successfully!\"));\n\n List<MemberShip> members = (List<MemberShip>) BaseBean.getSessionAttribute(\"tmp_members\");\n members.remove(memberShip);\n\n } catch (Exception exp) {\n logger.log(Level.SEVERE, \"An error occurs while leaving group\", exp);\n fc.addMessage(\"join:join_status\", new FacesMessage(FacesMessage.SEVERITY_ERROR,\n \"An error occurs while processing your request\",\n \"An error occurs while processing your request\"));\n }\n }",
"public ChannelFuture leaveGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source) {\n/* 475 */ return leaveGroup(multicastAddress, networkInterface, source, newPromise());\n/* */ }",
"private void ChatLeave() {\n\t\t\r\n\t\tClose();\r\n\t}",
"@Override\n\tpublic void onGuildMemberLeave(GuildMemberLeaveEvent event) {\n\t\tupdateChannel(event.getGuild());\n\t}",
"@EventHandler\n public void onPlayerJoin(PlayerJoinEvent e) {\n plugin.getPlayer(e.getPlayer()).forceStopAFK();\n }",
"private void handleLeaveStubEvent(LeaveStubEvent event) throws AppiaEventException {\n \t\tevent.loadMessage();\n \n \t\t//See if I can have now leave events\n \t\tacquireClientsViewUpdateLock();\n \n \t\tSystem.out.println(\"Removing client: \" + event.getEndpoint() + \" from group: \" + event.getGroupId());\n \n \t\t//Lets get the neccessary arguments\n \t\tString groupId = event.getGroupId();\n \t\tVsClient vsClient = VsClientManagement.getVsGroup(groupId).getVsClient(event.getEndpoint());\n \n \t\t//Let's warn everybody that a client wishes to leave\n \t\tLeaveClientProxyEvent leaveProxyEvent = new LeaveClientProxyEvent(vsClient, groupId);\n \t\tsendToOtherServers(leaveProxyEvent);\n \t\tsendToMyself(leaveProxyEvent);\n \t}",
"private void broadcastEndEvent(PresenceMessage message) {\n\t\t\n\t\tCollection<String> calls = gatewayStorageService.getCallsForNode(message.getFrom().toString());\n\t\tfor (String callId : calls) {\n\t\t\tJID fromJid = createInternalJid(callId, message);\n\t\t\tString target = gatewayStorageService.getclientJID(callId);\n\t\t\tJID targetJid = getXmppFactory().createJID(target);\n\t\t\tCoreDocumentImpl document = new CoreDocumentImpl(false);\n\t\t\torg.w3c.dom.Element endElement = document.createElementNS(\"urn:xmpp:rayo:1\", \"end\");\n\t\t\torg.w3c.dom.Element errorElement = document.createElement(\"error\");\n\t\t\tendElement.appendChild(errorElement);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tPresenceMessage presence = getXmppFactory().createPresence(\n\t\t\t\t\t\tfromJid, targetJid, null, endElement);\n\t\t\t\tpresence.send();\n\t\t\t\tgatewayStatistics.errorProcessed();\n\t\t\t} catch (Exception e) {\t \t\t\n\t\t\t\tlog.error(\"Could not send End event to Jid [%s]\", targetJid);\n\t\t\t\tlog.error(e.getMessage(),e);\n\t\t\t}\t \t\n\t\t}\n\t}",
"private void onLeaveChannel(int reason) {\r\n\t\tfor (RecordingEventHandler oberserver : recordingEventHandlers) {\r\n\t\t\toberserver.onLeaveChannel(reason);\r\n\t\t}\r\n\t}",
"public void onLeave()\n\t{\n\t}",
"void leave(User user);",
"@Override\n public void onPeerLeft(Room room, List<String> strings) {\n if (!mPlaying && shouldCancelGame(room)) {\n if (timer!= null)\n timer.cancel();\n if (mRoomId != null)\n Games.RealTimeMultiplayer.leave(getApiClient(), this, mRoomId);\n getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n if (!dialogShown)\n finish();\n }\n }",
"boolean hasLeaveGameReqeuest();",
"private void handleLeaveClientProxyEvent(LeaveClientProxyEvent event) throws AppiaEventException {\n \t\tevent.loadMessage();\n \t\tacquireClientsViewUpdateLock();\n \n \t\tSystem.out.println(\"A server said me that clients:\");\n \t\tfor(VsClient client : event.getFutureDeadClients()){\n \t\t\tSystem.out.println(client.getClientAddress());\n \t\t}\n \t\tSystem.out.println(\"are leaving from group: \" + event.getGroupId());\n \n \t\t//Get the parameters\n \t\tString groupId = event.getGroupId();\n \t\tList<VsClient> futureDeadClients = event.getFutureDeadClients();\n \n \t\tif(futureDeadClients.size() > 0){\n \t\t\t//This deads will also be our deads\n \t\t\tVsClientManagement.addFutureDead(futureDeadClients, groupId);\n \n \t\t\t//Remove the client from our list\t\n \t\t\tVsClientManagement.removeClient(futureDeadClients, groupId);\n \t\t\tVsClientManagement.printClients(groupId);\n \t\t}\n \n \t\t//I ask if I have some client in that group\n \t\tif( VsClientManagement.hasSomeClientConnectedToServer(groupId, listenAddress)){\n \t\t\tSystem.out.println(\"I have clients to ask to shut up\");\n \n \t\t\t//I need to ask my attached clients for them to Block\t\n \t\t\tVsGroup group = VsClientManagement.getVsGroup(groupId);\n \t\t\tShutUpStubEvent shutUpEvent = new ShutUpStubEvent(groupId);\n \t\t\tsendStubEvent(shutUpEvent, group);\n \t\t}\n \n \t\t//If I don't have no clients in that group\n \t\telse{\n \t\t\tSystem.out.println(\"I have no clients for group: \" + groupId + \" so I can send the blockOk\");\n \n \t\t\t//Get my version for this group\n \t\t\tint viewVersion = VsClientManagement.getVsGroup(groupId).getCurrentVersion();\n \n \t\t\t//I may send directly the BlockOkProxy event to me and the other server\n \t\t\tBlockOkProxyEvent blockedOkProxy = new BlockOkProxyEvent(groupId, myEndpt, viewVersion);\n \t\t\tsendToOtherServers(blockedOkProxy);\n \t\t\tsendToMyself(blockedOkProxy);\n \t\t}\n \t}",
"private void goAway() {\n CollaborationConnection connection = CollaborationConnection\n .getConnection();\n Presence presence = connection.getPresence();\n if (presence.getMode().equals(Mode.available)) {\n previousPresence = presence;\n Presence newPresence = new Presence(presence.getType(),\n presence.getStatus(), presence.getPriority(), Mode.away);\n Tools.copyProperties(presence, newPresence);\n timerSetAway = sendPresence(connection, newPresence);\n }\n }",
"public void leaveChannel() {\n mRtcEngine.leaveChannel();\n appointment.removeOfCall(new DatabaseUser(MainUser.getMainUser().getId()));\n }",
"public static void processLeaveRoomCommand(String leavePlayerName) throws IOException {\n\n Map<String, Socket> clientMap = Main.getClientMap();\n CopyOnWriteArrayList<Room> roomList = Main.getWaitRoomList();\n\n for (Room room : roomList) {\n //System.out.println(\"dd\"+Arrays.binarySearch(room.getPlayersName(), leavePlayerName));\n if (Arrays.binarySearch(room.getPlayersName(), leavePlayerName)==0) { //房間主人離開\n System.out.println(\"Host leave\");\n String[] roomPlayers = room.getPlayersName();\n\n Set<Map.Entry<String, Socket>> entrySet = clientMap.entrySet();\n\n for (int i = 1; i < roomPlayers.length; i++) { //找該房間其他人的socket,送roomDisbandCommand\n\n for (Map.Entry<String, Socket> stringSocketEntry : entrySet) {\n if (stringSocketEntry.getKey().equals(roomPlayers[i])) {\n\n Socket socket = stringSocketEntry.getValue();\n ObjectOutputStream otherClientOut = new ObjectOutputStream(socket.getOutputStream());\n RoomDisbandCommand roomDisbandCommand = new RoomDisbandCommand();\n otherClientOut.writeObject(roomDisbandCommand);\n }\n }\n }\n\n roomList.remove(room);\n Main.setWaitRoomList(roomList);\n break;\n } else if (Arrays.asList(room.getPlayersName()).contains(leavePlayerName)) { //非房間主人離開\n System.out.println(\"Not host leave\");\n\n ArrayList<String> list = new ArrayList<>(Arrays.asList(room.getPlayersName().clone()));\n //List<String> list = Arrays.asList(room.getPlayersName().clone());\n list.remove(leavePlayerName);\n //room.setPlayersName((String[]) list.toArray());\n room.setPlayersName((String[])list.toArray(new String[list.size()]));\n\n Main.setWaitRoomList(roomList);\n\n sendRoomPlayerCommand(room, leavePlayerName);\n break;\n }\n }\n\n }",
"@Override\n public void onPeerDeclined(Room room, List<String> strings) {\n if (!mPlaying && shouldCancelGame(room)) {\n if (timer!= null)\n timer.cancel();\n if (mRoomId != null)\n Games.RealTimeMultiplayer.leave(getApiClient(), this, mRoomId);\n getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n }\n }",
"@EventHandler\n public void onPlayerJoinEvent(PlayerJoinEvent e)\n {\n Player player = e.getPlayer();\n String playerName = player.getName();\n \n this.afkPlayers.put(playerName, false);\n this.afkPlayersAuto.put(playerName, false);\n this.afkLastSeen.put(playerName, new GregorianCalendar());\n \n player.sendMessage(this.getListMessage());\n }",
"@Override\n\tpublic void onLeaveLobbyDone(LobbyEvent arg0) {\n\t\tMain.log(getClass(), \"onLeaveLobbyDone\");\n\t}",
"public interface ForcedMUCLeaveEvent {\n MultiUserChat getChat();\n\n String getReason();\n\n String getKicker();\n\n String action();\n}",
"public boolean isLeave()\r\n { return type == LEAVE; }",
"public boolean onInviteReceived(MMXChannel.MMXInvite invite) {\n //default implementation is a no-op\n return false;\n }",
"@Override\n\tpublic void onGuildVoiceLeave(GuildVoiceLeaveEvent event) {\n\t\tif(event.getChannelLeft().equals(event.getGuild().getAudioManager().getConnectedChannel())) {\n\t\t\tif(event.getChannelLeft().getMembers().size() == 1) {\n\t\t\t\tpause(event.getGuild(), lastMessageChannel);\n\t\t\t\tevent.getGuild().getAudioManager().closeAudioConnection();\n\t\t\t}\n\t\t}\n\t}",
"@EventHandler\n\tpublic void onPlayerJoin(PlayerJoinEvent e) {\n\t\tfinal Player p = e.getPlayer();\n\t\t\n\t\tif (UpdateListener.isAnewUpdateAvailable()) {\n\t\t\tif (p.hasPermission(\"AlmostFlatLandsReloaded.UpdateMessage\")) {\n\t\t\t\tp.sendMessage(Options.msg.get(\"[AlmostFlatLandsReloaded]\") + Options.msg.get(\"msg.3\"));\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void onJoinFailed() {\n\n\t}",
"@Override\r\n\tpublic void processLeave(SimulationData simData, RunDataClient client) {\r\n\t}",
"public void notifyAllFriends(PresenceModel presence);",
"@Override\n \tpublic boolean leave(ArenaPlayer p) {\n \t\treturn true;\n \t}",
"public static Message createJoinEvent(long group_, int ifindex_)\r\n { return new Message(JOIN, 0, 0, group_, ifindex_); }",
"@Override\n \tpublic boolean canLeave(ArenaPlayer p) {\n \t\treturn true;\n \t}",
"@Override\n\tpublic SocketIOSocket leave(String room) {\n\t\tString roomName = namespace.getName() + \"/\" + room;\n\t\tthis.manager.onLeave(this.id, roomName);\n//\t\tthis.manager.store.publish('leave', this.id, name);\n\t\treturn this;\n\t}",
"@Test\n public void testClientJoinLeaveConsensus() throws Exception {\n testClientJoinLeave(ConsensusProfile.builder().withMembers(\"1\", \"2\", \"3\").withDataPath(new File(new File(AbstractAtomixTest.DATA_DIR, \"join-leave\"), \"1\")).build(), ConsensusProfile.builder().withMembers(\"1\", \"2\", \"3\").withDataPath(new File(new File(AbstractAtomixTest.DATA_DIR, \"join-leave\"), \"2\")).build(), ConsensusProfile.builder().withMembers(\"1\", \"2\", \"3\").withDataPath(new File(new File(AbstractAtomixTest.DATA_DIR, \"join-leave\"), \"3\")).build());\n }",
"@FXML\n private void ConfirmLeaveLobby(ActionEvent actionEvent) throws InterruptedException, ExecutionException, LobbyException {\n PlayerController playerController = (PlayerController) ControllerRegistry.get(PlayerController.class);\n FireStoreController fireStoreController = (FireStoreController) ControllerRegistry.get(FireStoreController.class);\n\n fireStoreController.removePlayer(token, playerController.getPlayerByPlayersEnum(playerController.getClientPlayersEnum())\n .orElseThrow(() -> new LobbyException(\"PLAYERS NOT HERE HELP\", null)));\n returnToMainMenu(actionEvent);\n }",
"@EventHandler\n\tpublic void OnPlayerJoin (PlayerJoinEvent e) throws SQLException{\n\t\tPlayer p = e.getPlayer();\n\t\te.setJoinMessage(null);\n\t\tJoinedServer(p);\n\t}",
"protected void onJoin(String channel, String sender, String login, String hostname) {}",
"public void leaveServer()\n\t{\n\t\ttry {\n\t\t\tSocket toServer = new Socket(server, directorySocket);\n\t\t\tObjectOutputStream outToServer = new ObjectOutputStream(toServer.getOutputStream());\n\n\t\t\tServerMessage m = new ServerMessage();\n\t\t\tm.setCommand(LEAVE);\n\t\t\tm.setUser(new UserBean(this.hostName,this.userName, ipAddress)); //Username could be null but shouldn't read it on server\n\n\t\t\toutToServer.writeObject(m);\n\t\t\t\n\n\t\t} catch (UnknownHostException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void uponReceiveJoin(JoinMessage msg, Host from, short sourceProto, int channelId) {\n logger.debug(\"Received \" + msg + \" from \" + from);\n sendMessage(new DisconnectMessage(newSelf()), from, TCPChannel.CONNECTION_IN);\n logger.debug(\"Sent DisconnectMessage to {}\", from);\n ForwardJoinMessage fjm = new ForwardJoinMessage(msg.getNode(), (short) (layerRW+1), maxLayers, maxNeighs);\n uponReceiveForwardJoin(fjm, myself, sourceProto, channelId);\n\n }",
"@EventHandler\n\tpublic void onPlayerLeaveServer(PlayerQuitEvent e){\n\t\tgame.removePlayerFromGame(e.getPlayer());\n\t}",
"@Override\n public void onRemotePeerLeave(String remotePeerId, String message) {\n removePeerView(remotePeerId);\n }",
"protected void leaveArena(ArenaPlayer p){\n \t\tinsideArena.remove(p.getName());\n \t\tinsideWaitRoom.remove(p.getName());\n \t\tstopTracking(p);\n \t\tTeam t = getTeam(p);\n \t\tPerformTransition.transition(this, MatchState.ONLEAVE, p, t, false);\n \t\tarenaInterface.onLeave(p,t);\n \t\tnotifyListeners(new PlayerLeftEvent(p));\n \t\tif (woolTeams)\n \t\t\tPlayerStoreController.removeItem(p, TeamUtil.getTeamHead(getTeamIndex(t)));\n \t}",
"public void memberJoined(ClusterEvent e) {}",
"@ForgeSubscribe\n \tpublic void onEntityJoinWorldEvent(EntityJoinWorldEvent event) {\n \t\tif (event.entity.isDead) event.setCanceled(true);\n \t\t\n \t\t// If an ender backpack ever drops as an item,\n \t\t// instead teleport it somewhere as a block.\n \t\t\n \t\tif (!(event.entity instanceof EntityItem)) return;\n \t\tEntityItem entity = (EntityItem)event.entity;\n \t\tItemStack stack = entity.getDataWatcher().getWatchableObjectItemStack(10);\n \t\tif ((stack == null) || !(stack.getItem() instanceof ItemEnderBackpack)) return;\n \t\tevent.setCanceled(true);\n \t\tfor (int i = 0; i < 64; i++)\n \t\t\tif (BlockEnderBackpack.teleportRandomly(entity.worldObj, entity.posX, entity.posY, entity.posZ, (i > 48), stack))\n \t\t\t\tbreak;\n \t\t\n \t}",
"@Override\r\n\tpublic void onLeaveApplication(Ad arg0) {\n\t\t\r\n\t}",
"public ChannelFuture leaveGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface, ChannelPromise promise) {\n/* 469 */ return leaveGroup(multicastAddress.getAddress(), networkInterface, (InetAddress)null, promise);\n/* */ }",
"@EventHandler\r\n\tpublic void onJoin(PlayerJoinEvent e) {\r\n\t\tBukkit.broadcastMessage(ChatColor.GRAY + \"Fellow Gamer \" +\r\n\t\t\t\t\t\t\t\tChatColor.YELLOW + e.getPlayer().getDisplayName() + \r\n\t\t\t\t\t\t\t\tChatColor.GRAY + \" has joined.\");\r\n\t}",
"public static Event confirmEventJoin(String accessToken, Integer eventId, Boolean join) {\n JsonObject jsonObject = new JsonObject();\n\n jsonObject.addProperty(\"accept\", join);\n jsonObject.add(\"event\", new JsonObject());\n Log.i(Constants.TAG, \"jsonObject:\" + jsonObject.toString());\n\n try {\n JsonElement element = NetworkUtil.postWebService(jsonObject, NetworkUtil.EVENTS_URI + \"/\" + eventId + EVENTS_CONFIRM_URI, accessToken);\n Log.i(Constants.TAG, \"result:\" + element.toString());\n if (element != null) {\n GsonBuilder jsonBuilder = new GsonBuilder();\n jsonBuilder.registerTypeAdapter(Event.class, new Event.EventDeserializer());\n Gson gson = jsonBuilder.create();\n\n Log.i(Constants.TAG, \"RETURNED : jsonObject:\" + element.getAsJsonObject().get(\"event\").toString());\n Event event = gson.fromJson(\n element.getAsJsonObject().get(\"event\"),\n Event.class\n );\n return event;\n } else {\n return null;\n }\n } catch (APICallException e) {\n Log.e(Constants.TAG, \"HTTP ERROR when confirming event - STATUS:\" + e.getMessage(), e);\n return null;\n } catch (IOException e) {\n Log.e(Constants.TAG, \"IOException when confirming event\", e);\n return null;\n } // end try-catch\n }",
"void leave();",
"void leave();",
"void leave();",
"@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)\r\n public void onJoin(PlayerJoinEvent joinEvent) {\n Player player = joinEvent.getPlayer();\r\n\r\n String health = String.valueOf(player.getHealth());\r\n String ping = String.valueOf(player.getPing());\r\n\r\n if (config.getBoolean(\"JoinEnabled\")) {\r\n joinEvent.setJoinMessage(config.getString(\"JoinMessage\").\r\n replace(\"%player%\", player.getDisplayName()).\r\n replace(\"%server%\", getServer().getMotd()).\r\n replace(\"%ping%\", ping).\r\n replace(\"%health%\", health));\r\n\r\n // Checks if the user has put a join message or not\r\n if (config.getString(\"JoinMessage\").trim().isEmpty() || config.getString(\"JoinMessage\").equals(\"\")) {\r\n this.getLogger().info(\"Couldn't define any join message.\");\r\n }\r\n }\r\n else this.getLogger().info(\"Join messages are disabled.\");\r\n }",
"public void youWinByAbandonment() {\n try {\n if (getClientInterface() != null)\n getClientInterface().gameEndedByAbandonment(\"YOU WON BECAUSE YOUR OPPONENTS HAVE ABANDONED!!\");\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending ended by abandonment error\");\n }\n }",
"public synchronized void join() {\n try {\n connection.close();\n listener.join();\n } catch (Exception io) {\n System.err.println(io.getMessage());\n io.printStackTrace();\n } \n }",
"@Override\r\n public void onPlayerJoin(PlayerJoinEvent event) {\r\n Player player = event.getPlayer();\r\n \r\n // Play back messages stored in this player's maildir (if any)\r\n String[] messages = plugin.getMessages(player);\r\n if (messages.length > 0) {\r\n \tfor (String message : messages) {\r\n \t\tplayer.sendMessage(message);\r\n \t}\r\n \tplayer.sendMessage(\"[Pe] §7Use /petition to view, comment or close\");\r\n }\r\n }",
"public void rejectSubscriber(Friend lf);",
"@EventHandler\n public void onBedwarsPlayerLeave(BedwarsPlayerLeaveEvent event) {\n if(BedwarsRelCloudNetAddon.getInstance().getPluginConfig().isResourceVotingEnabled()) BedwarsRelCloudNetAddon.getInstance().getResourceVotingManager().manageLeave(event.getPlayer().getUniqueId());\n /*\n * Remove BedwarsPlayer from storage\n */\n BedwarsRelCloudNetAddon.getInstance().getBedwarsRelPlayerManager().removeBedwarsRelPlayer(event.getPlayer().getUniqueId());\n }",
"public void leaveTheBus(int pid, int seat);",
"@Override\r\n\tpublic void OnRoomUserLeave(long leaveRoomUser) {\n\t\tSomeLeaveRoom(String.valueOf(leaveRoomUser));\r\n\t}",
"public static Message createJoinEvent(long src_, long group_, int ifindex_)\r\n { return new Message(JOIN, src_, -1, group_, ifindex_); }",
"@Override\n\tpublic boolean canLeave(ArenaPlayer p) {\n\t\treturn true;\n\t}",
"public void join() throws OperationFailedException\n {\n if (chatRoomSession == null && chatInvitation == null)\n { // the session is not set and we don't have a chatInvitatoin\n // so we try to join the chatRoom again\n ChatRoomManager chatRoomManager =\n provider.getAimConnection().getChatRoomManager();\n chatRoomSession = chatRoomManager.joinRoom(this.getName());\n chatRoomSession.addListener(new AdHocChatRoomSessionListenerImpl(\n this));\n }\n else if (chatInvitation != null)\n {\n chatRoomSession = chatInvitation.accept();\n chatRoomSession.addListener(new AdHocChatRoomSessionListenerImpl(\n this));\n }\n\n // We don't specify a reason.\n opSetMuc.fireLocalUserPresenceEvent(this,\n LocalUserAdHocChatRoomPresenceChangeEvent.LOCAL_USER_JOINED, null);\n }",
"@EventHandler(priority = EventPriority.HIGHEST)\r\n\tpublic void onPlayerJoin(PlayerJoinEvent pje) {\n\t\t\r\n\t\tPlayer p = pje.getPlayer();\r\n\t\tLocation loc = (Location)plugin.getCorrectedSpawns().get(p.getName());\r\n\t\tif (loc != null)\r\n\t\t{\r\n\t\t\tpje.getPlayer().teleport(loc);\r\n\t\t\tpje.getPlayer().sendMessage(ChatColor.RED+\"[Prisonbeds]\"+ChatColor.WHITE+\" You are imprisoned.\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void leave() {\n\t\t\r\n\t}",
"public void leaveChat(){\n toServer.println(\"leavechat\" + \" \" + chatID + \" \" + username);\n toServer.flush();\n gui.dispose();\n clientModel.activeChats.remove(chatID);\n }",
"ConferenceScheduleBuilderService endEvent();",
"public void stopBroadcast(){\r\n\t\tthePres.stopBroadcast();\r\n\t\tstartBtn.setLabel(\"Start Broadcast\");\r\n\t\tdrawer.stopTasking();\r\n\t\tisPlaying = false;\r\n\t\tcurrRateLabel.setText(\"0 \");\r\n\t}",
"public interface BroadcastListener {\n void broadcastIdAdded(String groupId);\n\n void broadcastMemberAdded(String result, String resultType);\n\n void broadcastDeleteResponse(String response);\n\n void broadcastRemoveMemberResponse(String response);\n\n void broadcastInfoUpdatedResponse(String response);\n}",
"public ChannelFuture leaveGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source, ChannelPromise promise) {\n/* 482 */ checkJavaVersion();\n/* */ \n/* 484 */ if (multicastAddress == null) {\n/* 485 */ throw new NullPointerException(\"multicastAddress\");\n/* */ }\n/* 487 */ if (networkInterface == null) {\n/* 488 */ throw new NullPointerException(\"networkInterface\");\n/* */ }\n/* */ \n/* 491 */ synchronized (this) {\n/* 492 */ if (this.memberships != null) {\n/* 493 */ List<MembershipKey> keys = this.memberships.get(multicastAddress);\n/* 494 */ if (keys != null) {\n/* 495 */ Iterator<MembershipKey> keyIt = keys.iterator();\n/* */ \n/* 497 */ while (keyIt.hasNext()) {\n/* 498 */ MembershipKey key = keyIt.next();\n/* 499 */ if (networkInterface.equals(key.networkInterface()) && ((\n/* 500 */ source == null && key.sourceAddress() == null) || (source != null && source\n/* 501 */ .equals(key.sourceAddress())))) {\n/* 502 */ key.drop();\n/* 503 */ keyIt.remove();\n/* */ } \n/* */ } \n/* */ \n/* 507 */ if (keys.isEmpty()) {\n/* 508 */ this.memberships.remove(multicastAddress);\n/* */ }\n/* */ } \n/* */ } \n/* */ } \n/* */ \n/* 514 */ promise.setSuccess();\n/* 515 */ return (ChannelFuture)promise;\n/* */ }",
"@Override\r\n\tpublic void joinEvent(String account, Integer eventId, boolean join) {\n\t\tuserDAO.updateEventPin(account, eventId, join);\r\n\t}",
"public void onJoinMeetingButtonClick(android.view.View view) {\n // Hide keyboard\n InputMethodHelper.hideSoftKeyBoard(this.getApplication().getApplicationContext(),\n view.getWindowToken());\n\n if (meetingJoined) {\n // Leave the meeting.\n try {\n this.anonymousConversation.leave();\n this.meetingJoined = false;\n this.updateUiState();\n\n } catch (SFBException e) {\n e.printStackTrace();\n }\n } else {\n //Join the meeting.\n // Get the display name.\n final android.widget.TextView displayNameTextView =\n (android.widget.TextView) findViewById(R.id.displayNameEditTextId);\n\n // Get the meeting uri\n final android.widget.EditText joinMeetingEditText =\n (android.widget.EditText) findViewById(R.id.meetingUriEditTextId);\n String meetingUriString = joinMeetingEditText.getText().toString();\n URI meetingUri = URI.create(meetingUriString);\n\n // Join meeting and monitor conversation state to determine meeting join completion.\n try {\n\n // Set the default device to Speaker\n //this.devicesManager.setActiveEndpoint(DevicesManager.Endpoint.LOUDSPEAKER);\n\n // To join an Online meeting use the discover URL method. Please refer the documentation for\n // the overall procedure of getting the discover URL and authorization token for a meeting.\n //\n // final URL discoverUrl = new URL(\"https://meetings.lync.com/platformService/discover?...\");\n // final String authToken = \"psat=...\";\n // this.anonymousSession = this.application.joinMeetingAnonymously(\n // displayNameTextView.getText().toString(), discoverUrl, authToken);\n\n this.anonymousSession = this.application.joinMeetingAnonymously(\n displayNameTextView.getText().toString(), meetingUri);\n\n this.anonymousConversation = this.anonymousSession.getConversation();\n SFBDemoApplication application = (SFBDemoApplication)getApplication();\n application.setAnonymousConversation(this.anonymousConversation);\n\n // Conversation begins in Idle state. It will move from Idle->Establishing->InLobby/Established\n // depending on meeting configuration.\n // We will monitor property change notifications for State property.\n // Once the conversation is Established, we will move to the next activity.\n this.conversationPropertyChangeListener = new ConversationPropertyChangeListener();\n this.anonymousConversation.addOnPropertyChangedCallback(this.conversationPropertyChangeListener);\n } catch (SFBException e) {\n e.printStackTrace();\n }\n }\n }",
"@EventHandler\r\n\tpublic void onJoin(final PlayerJoinEvent e){\n\t\tBukkit.getScheduler().runTaskLater(QuickShop.instance, new Runnable(){\r\n\t\t\t@Override\r\n\t\t\tpublic void run(){\r\n\t\t\t\tMsgUtil.flush(e.getPlayer());\r\n\t\t\t}\r\n\t\t}, 60);\r\n\t}",
"public void leave() throws InterruptedException {\n inship.clear();\n // your code here\n\n }",
"Client join(Participant participant);",
"public void notifySwitchAway() { }",
"@Override\n public void clientCompanyLeve(Messages.MarketClientCompanyQuit msg) {\n isLeaving = true;\n }",
"@EventHandler\n public void onPlayerJoin(PlayerJoinEvent event) {\n Player player = event.getPlayer();\n String motd = config.getString(\"motd\");\n if (motd != null && !motd.trim().isEmpty()) {\n motd = ChatColor.translateAlternateColorCodes('&', motd);\n player.sendMessage(motd.split(\"\\\\\\\\n\"));\n }\n }",
"public void leaveGame() {\n if (gameId != null) {\n logger.info(\"Left game: \" + gameId.toString());\n if (connectionHandler != null) connectionHandler.getMessageEmitter().sendLeaveGameMessage(gameId);\n else logger.warn(\"MessageEmitter is null in leaveGame()!\");\n } else logger.warn(\"GameId is null in leaveGame()!\");\n reset();\n }",
"public static Message createJoinEvent(long src_, long srcmask_, long group_, int ifindex_)\r\n { return new Message(JOIN, src_, srcmask_, group_, ifindex_); }",
"public void interactWhenLeaving() {\r\n\t\t\r\n\t}",
"public abstract void leftChatMemberMessage(Message m);",
"long getLobbyJoinTimeMs();",
"private void createStopJourneyDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setMessage(\"Do you want to stop your current journey\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // user wants to stop his current journey\n Intent intent = new Intent(DestinationReachedReceiver.DESTINATION_REACHED_FILTER_TAG);\n LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(intent);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n builder.show();\n\n }",
"public void stopInbound();",
"public void onLeave(Team t) {\n \t\tPerformTransition.transition(this, MatchState.ONCANCEL, t, false);\n \t\tteams.remove(t);\n \t\tTeamController.removeTeam(t, this);\n \t}",
"@Override\n\t\tpublic boolean leaveChatroom(IChatServer chatStub) throws RemoteException {\n\t\t\t// TODO Auto-generated method stub\n\t\t\treturn stub.leaveChatroom(chatStub);\n\t\t}",
"private void leaveChannel() {\n // Leave the current channel\n mRtcEngine.leaveChannel();\n }",
"@Override\n public void onLeave(int index, int totalCount, float leavePercent, boolean leftToRight) {\n }",
"@EventHandler\r\n public void onPlayerJoinEvent(PlayerJoinEvent event) {\r\n Player p = event.getPlayer();\r\n plugin.sendStatusMsg(p);\r\n }",
"@Override\n public void onActorOffline(String remotePkGoOffline) {\n }",
"@EventHandler(priority = EventPriority.MONITOR)\n\tvoid onPlayerLeave(PlayerQuitEvent event)\n\t{\n\t\t//Remove the player from all permission groups for professions\n\t\tProfessionStats prof = new ProfessionStats(perms, data, config, event.getPlayer().getUniqueId());\n\t\tfor (String pr: prof.getProfessions())\n\t\t\tperms.playerRemove((String) null, event.getPlayer(), config.getString(\"permission_prefix\") + \".\" + pr + \".\" \n\t\t\t\t\t+ prof.getTierName(prof.getTier(pr)));\n\t}"
] | [
"0.6398811",
"0.5915995",
"0.58797383",
"0.5859068",
"0.5836381",
"0.58085155",
"0.5789541",
"0.5770565",
"0.574297",
"0.5673105",
"0.56579834",
"0.563932",
"0.5571805",
"0.55498093",
"0.54932564",
"0.5458752",
"0.54272157",
"0.54085433",
"0.5407741",
"0.5403168",
"0.53877956",
"0.5382206",
"0.53642964",
"0.5359841",
"0.5323825",
"0.5309213",
"0.5306215",
"0.5304946",
"0.52899665",
"0.5287204",
"0.5283723",
"0.5274466",
"0.527305",
"0.52352047",
"0.52265686",
"0.52075106",
"0.5202792",
"0.5195605",
"0.51862496",
"0.51787144",
"0.51653284",
"0.51618034",
"0.51551175",
"0.51540315",
"0.5147879",
"0.5146884",
"0.51422703",
"0.51363283",
"0.511747",
"0.5109952",
"0.5107345",
"0.5094043",
"0.50814587",
"0.5080755",
"0.504222",
"0.5039535",
"0.5018398",
"0.5017816",
"0.5012177",
"0.5012177",
"0.5012177",
"0.50064707",
"0.5005735",
"0.50041765",
"0.5001526",
"0.5001514",
"0.4997795",
"0.49837172",
"0.49722296",
"0.4951498",
"0.49463394",
"0.49452457",
"0.49323693",
"0.48949295",
"0.48872393",
"0.48842773",
"0.4872106",
"0.48717093",
"0.48649466",
"0.48623168",
"0.48496938",
"0.4844867",
"0.48385128",
"0.48359692",
"0.48306906",
"0.48271716",
"0.4824934",
"0.48160318",
"0.4814062",
"0.4803353",
"0.4785574",
"0.47845447",
"0.4782772",
"0.47815973",
"0.47809026",
"0.4780552",
"0.4767876",
"0.47671586",
"0.4762682",
"0.47606358",
"0.47407"
] | 0.0 | -1 |
/ Counting sort runs in n time. And Bucket sort run in whatever sorting algorithm is implemented with bucket sort /Counting Sort Algorithm Starts Here | public static void main(String[] args) {
System.out.println("Counting Sort\n");
int [] A = {14, 10, 13, 4, 7, 9, 3, 5, 3, 5};
int [] B = new int [A.length + 1];
//Gets the highest number in the array
int k = 0;
for(int i = 0 ; i < A.length ; i++){
if(A[i] > k)
k = A[i];
}
CountingSort(A, B, k);
/* Counting Sort Algorithm Starts Here */
System.out.println("\n");
/* Bucket Sort Algorithm Starts Here */
int [] NewA = {14, 10, 13, 4, 7, 9, 3, 5};
BucketSort(NewA);
/* Bucket Sort Algorithm Ends Here */
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static long[] radixsort(int arr[], int n)\r\n\r\n {\n\r\n int m = getMax(arr, n);\r\n\r\n long st = System.nanoTime();\r\n\r\n\r\n\r\n for (int exp = 1; m/exp > 0; exp *= 10)\r\n\r\n countSort(arr, n, exp);\r\n\r\n \r\n\r\n long et = System.nanoTime();\r\n\r\n threeVals[2] = et - st;\r\n\r\n return threeVals;\r\n\r\n }",
"public void bucketSort() {\n MyArray ten = new MyArray();\n MyArray hundred = new MyArray();\n MyArray thousand = new MyArray();\n MyArray tenThousand = new MyArray();\n MyArray hundredThousand = new MyArray();\n MyArray million = new MyArray();\n MyArray tenMillion = new MyArray();\n MyArray hundredMillion = new MyArray();\n MyArray billion = new MyArray();\n\n for (int i = 0; i < array.length; i++) {\n if ((int) array[i] / 10 < 0) {\n ten.add(array[i]);\n } else if ((int) array[i] / 100 < 0) {\n hundred.add(array[i]);\n } else if ((int) array[i] / 1000 < 0) {\n thousand.add(array[i]);\n } else if ((int) array[i] / 10000 < 0) {\n tenThousand.add(array[i]);\n } else if ((int) array[i] / 100000 < 0) {\n hundredThousand.add(array[i]);\n } else if ((int) array[i] / 1000000 < 0) {\n million.add(array[i]);\n } else if ((int) array[i] / 10000000 < 0) {\n tenMillion.add(array[i]);\n } else if ((int) array[i] / 100000000 < 0) {\n hundredMillion.add(array[i]);\n } else {\n billion.add(array[i]);\n }\n }\n\n ten = ten.radixSort(ten);\n hundred = hundred.radixSort(hundred);\n thousand = thousand.radixSort(thousand);\n tenThousand = tenThousand.radixSort(tenThousand);\n hundredThousand = hundredThousand.radixSort(hundredThousand);\n million = million.radixSort(million);\n tenMillion = tenMillion.radixSort(tenMillion);\n hundredMillion = hundredMillion.radixSort(hundredMillion);\n billion = billion.radixSort(billion);\n\n int j = 0;\n for (int i = 0; i < ten.getSize(); i++) {\n array[i] = (T) ten.get(i);\n j++;\n }\n for (int i = 0; i < hundred.getSize(); i++) {\n array[i] = (T) hundred.get(i);\n j++;\n }\n for (int i = 0; i < thousand.getSize(); i++) {\n array[i] = (T) thousand.get(i);\n j++;\n }\n for (int i = 0; i < tenThousand.getSize(); i++) {\n array[i] = (T) tenThousand.get(i);\n j++;\n }\n for (int i = 0; i < hundredThousand.getSize(); i++) {\n array[i] = (T) hundredThousand.get(i);\n j++;\n }\n for (int i = 0; i < million.getSize(); i++) {\n array[i] = (T) million.get(i);\n j++;\n }\n for (int i = 0; i < tenMillion.getSize(); i++) {\n array[i] = (T) tenMillion.get(i);\n j++;\n }\n for (int i = 0; i < hundredMillion.getSize(); i++) {\n array[j] = (T) hundredMillion.get(i);\n j++;\n }\n for (int i = 0; i < billion.getSize(); i++) {\n array[j] = (T) billion.get(i);\n j++;\n }\n\n }",
"private static void BucketSort(int[] A){\n\t\tSystem.out.println(\"BucketSort\\n\");\n\t\t\n\t\tSystem.out.print(\"Before bucket sort: \");\n\t\tfor(int i = 0 ; i < A.length ; i++){\n\t\t\tSystem.out.print(A[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t\t//Gets the highest number in the array\n\t\tint MaxNum = 0;\n\t\tfor(int i = 0 ; i < A.length ; i++){\n\t\t\tif(A[i] > MaxNum)\n\t\t\t\tMaxNum = A[i];\n\t\t}\n\t\t\n\t\tint[] B = new int [MaxNum + 1];\n\t\t\n\t\tfor(int i = 0 ; i < B.length ; i++){\n\t\t\tB[i] = 0;\n\t\t}\n\t\t\n\t\tfor(int i = 0 ; i < A.length; i++){\n\t\t\t B[A[i]]++;\n\t\t}\n\t\t\n\t\t//implementing insertion sort with bucket\n\t\tint BucketPosition = 0;\n\t\t\n\t\tfor(int i = 0 ; i < B.length ; i++){\n\t\t\tfor(int j = 0 ; j < B[i] ; j++){\n\t\t\t\tA[BucketPosition] = i;\n\t\t\t\tBucketPosition++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/* \t\t\tPrints out the after sorting algorithm\t\t*/\n\t\tSystem.out.print(\"\\nAfter bucket sort: \");\n\t\tfor(int i = 0 ; i < A.length; i++)\n\t\t\tSystem.out.print(A[i] + \" \");\n\t\t\n\t}",
"private void testCountingSort() {\n int listSize = 1000000;\r\n // Generate list of random values\r\n int[] a = new int[listSize];\r\n Random r = new Random();\r\n for (int i = 0; i < a.length; i++) {\r\n a[i] = r.nextInt(20000);\r\n }\r\n \r\n //a = new int[] {10, 20, 8, -4, -7, 22 };\r\n\r\n // Copy list to new array\r\n int[] a2 = new int[listSize];\r\n System.arraycopy(a, 0, a2, 0, a.length);\r\n\r\n TestUtil.print(a);\r\n // Sort the two arrays\r\n long time = System.currentTimeMillis();\r\n countSort(a);\r\n time = System.currentTimeMillis() - time;\r\n System.out.println(\"Count sort took: \" + time);\r\n TestUtil.print(a);\r\n time = System.currentTimeMillis();\r\n Arrays.sort(a2);\r\n time = System.currentTimeMillis() - time;\r\n System.out.println(\"Java sort took: \" + time);\r\n\r\n // Compare the two arrays\r\n for (int i = 0; i < listSize; i++) {\r\n if (a[i] != a2[i]) {\r\n System.out.println(\"Error: Results do not match.\");\r\n return;\r\n }\r\n }\r\n System.out.println(\"Sort successful\");\t\t\r\n\t}",
"public static void countingSort(int[] array, int k) {\r\n int[] workStorage = new int[k + 1];\r\n int[] result = new int[array.length];\r\n for (int i = 0; i < array.length; i++) {\r\n workStorage[array[i]] = workStorage[array[i]] + 1;\r\n }\r\n for (int i = 0; i < k; i++) {\r\n workStorage[i + 1] = workStorage[i + 1] + workStorage[i];\r\n }\r\n for (int i = array.length - 1; i >= 0; i--) {\r\n result[workStorage[array[i]] - 1] = array[i];\r\n workStorage[array[i]] = workStorage[array[i]] - 1;\r\n }\r\n for (int i = 0; i < array.length; i++) {\r\n array[i] = result[i];\r\n }\r\n }",
"public static void countSort(int[] n) {\n\t\tint max = n[0], min = n[0];\r\n\t\tfor (int i = 1; i < n.length; i++) {\r\n\t\t if (n[i] > max)\r\n\t\t max = n[i];\r\n\t\t else if (n[i] < min)\r\n\t\t min = n[i];\r\n\t\t}\r\n\t\t\r\n\t\t// Now calculate the array size, this will be max - min + 1\r\n\t\tint numValues = max - min + 1;\t\r\n\t\tint[] counts = new int[numValues];\r\n\t\t\r\n\t\t// Now mark the indexes in the new array where we have the values.\r\n\t\t// index value of 1 means we have only one value, index value of 2 means we\r\n\t\t// have 2 values with same number and so on.\r\n\t\tfor (int i = 0; i < n.length; i++) {\r\n\t\t\tcounts[n[i] - min]++;\r\n\t\t}\r\n\t\t\r\n\t\t// Now start the actual sort. Now at this point we don't care about the values in n\r\n \t// as we have already marked the indexes in counts.\r\n\t\tint outputPos = 0;\r\n\t\t// Now iterate over the new array in sequence, and see where we don't have default\r\n\t\t// value of 0, and use that index in output.\r\n\t\tfor (int i = 0; i < numValues; i++) {\r\n\t\t for (int j = 0; j < counts[i]; j++) {\r\n\t\t\t\tn[outputPos] = i + min;\r\n\t\t\t\toutputPos++;\r\n\t\t }\r\n\t\t}\t\t\r\n\t}",
"private static void performSort(TestApp testApp) {\n testApp.testPartition();\n\n /*\n Date end = new Date();\n System.out.println(\"Sort ended @ \" + end.getTime());\n System.out.println(\"Total time = \" + (end.getTime() - start.getTime())/1000.0 + \" seconds...\");\n */\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tfor (int i = 0; i < 1000000; i++) {\n\t\t\t\tint[] a = Util.generateRandomArray(500, 200000);\n\t\t\t\tint[] b = a.clone();\n\t\t\t\t\n\t\t\t\ta = sort(a);\n\t\t\t\tArrays.sort(b);\n\t\t\t\t\n\t\t\t\tfor (int j = 0; j < b.length; j++) {\n\t\t\t\t\tUtil.Assert(a[j] == b[j], \"shit\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Heap sort ok\");\n\t\t}",
"public void doTheAlgorithm() {\n this.swapCount = 0;\n this.compCount = 0;\n \n\t\tdoQuickSort(0, this.sortArray.length - 1);\n\t}",
"public static void main(String[] args) {\n for (int N = 100; N <= 100000; N *= 10) {\n int[] nums = new int[N];\n Random random = new Random();\n for (int i = 0; i < N; i++) {\n nums[i] = random.nextInt(N * 10);\n }\n Long start = 0L, end = 0L;\n int[] quickSortArray = Arrays.copyOf(nums, nums.length);\n int[] InsertSortArray = Arrays.copyOf(nums, nums.length);\n int[] shellSortArray = Arrays.copyOf(nums, nums.length);\n int[] bubbleSortArray = Arrays.copyOf(nums, nums.length);\n int[] selectionSortArray = Arrays.copyOf(nums, nums.length);\n int[] mergeSortArray = Arrays.copyOf(nums, nums.length);\n System.out.println(\"数据量为:\" + N);\n start = System.currentTimeMillis();\n QuickSort.quickSort(quickSortArray, 0, N - 1);\n end = System.currentTimeMillis();\n System.out.println(\"快速排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n InsertSort.insertSort(InsertSortArray);\n end = System.currentTimeMillis();\n System.out.println(\"插入排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n ShellSort.shellSort(shellSortArray, 8);\n end = System.currentTimeMillis();\n System.out.println(\"希尔排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n BubbleSort.bubbleSort(bubbleSortArray);\n end = System.currentTimeMillis();\n System.out.println(\"冒泡排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n SelectionSort.selectionSort(selectionSortArray);\n end = System.currentTimeMillis();\n System.out.println(\"选择排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n MergeSort.mergeSort(mergeSortArray);\n end = System.currentTimeMillis();\n System.out.println(\"归并排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n }\n }",
"public static void main(String[] args) {\n\t\tCountingSort sort = new CountingSort();\r\n//\t\tint A[] = {3,44,38,5,47,15,36,26,27,2,46,4,19,50,48};\r\n\t\tint A[] = {4, 2, 5, 6, 7};\r\n\t\tint B[] = sort.countingSort(A, 15);\r\n\t\tfor (int i = 0; i < B.length; i++) {\r\n\t\t\tSystem.out.println(B[i]);\r\n\t\t}\r\n\t}",
"private long sortAndCount(int[] arr) {\r\n\r\n\t\t// compare permuted array and the actual.\r\n\t\t// count offers O(n log n)\r\n\t\tint n = arr.length;\r\n\t\tif (n == 1) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\tsort(arr);\r\n\t\t\r\n\t\treturn counter;\r\n\t}",
"public static void main(String[] args) { int n = 100000000;\n// Integer[] array = ArrayGenerator.randomGenerator(n, n);\n// Integer[] arr = Arrays.copyOf(array, array.length);\n// PerformanceSort.test(\"QuickSort\", array);\n// PerformanceSort.test(\"MergeSort\", arr);\n// Integer[] array1 = ArrayGenerator.orderGenerator(n);\n// Integer[] arr1 = Arrays.copyOf(array1, array1.length);\n// PerformanceSort.test(\"QuickSort\", array1);\n// PerformanceSort.test(\"MergeSort\", arr1);\n//\n int n = 5000000;\n Integer[] array = ArrayGenerator.randomGenerator(n, 3);\n Integer[] arr = Arrays.copyOf(array, array.length);\n\n PerformanceSort.test(\"QuickSort3\", array);\n PerformanceSort.test(\"QuickSort2\", arr);\n// Integer[] array = new Integer[]{1, 8, 7, 6, 4};\n// PerformanceSort.test(\"QuickSort2\", array);\n\n }",
"public BucketSort()\n {\n for(int i = 0; i < 30; i++)\n {\n a[i] = generator.nextInt(50)+1;\n b[i] = a[i];\n }\n }",
"public static Integer[] sort(Integer[] X)\n\t{RadixSorting z = new RadixSorting(); //Where elements will be stored from array \n\t int place = 0;\n\t//maxIndex is assigned to numberLength function\n\t int maxIndex = numberLength(findMax(X ,0, X.length-1), 1); \n while (!(place > maxIndex))\n { //Inv: elements in X[0..X.length-1] are sorted && place<maxIndex \n \tbucketize(X, z, place);\n \t//Inv: elements in X[0..length-1]-1 are sorted and place>maxIndex\n debucketize(X);\n //Inv:elements in X[0..length-1] are sorted and place>maxIndex\n place = place + 1; \n //Inv: elements in X[0..X.length-1] are sorted && place<maxIndex \n } \n return (X); \n //Termination: place starts at 0. It is looped every time until finally place will be smaller\n //than maxIndex in which it will then terminate. \n\t}",
"public void go(int boundary) {\n\t\tthis.b = boundary;\n\t\tSystem.out.println(\"Start QuickSort ...\");\n\t\tthis.startTime = new Date().getTime();\n\t\tsort(0, sequence.length - 1);\n\t\tthis.endTime = new Date().getTime();\n\t}",
"public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }",
"private static void CountingSort(int[] A, int[] B, int k) {\n\t\tSystem.out.print(\"Before counting sort: \");\n\t\tfor(int i = 0 ; i < A.length ; i++){\n\t\t\tSystem.out.print(A[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t\t//C goes all the way to 14\n\t\tint [] C = new int [k + 1];\n//\t\tSystem.out.println(\"The amount of index in C\");\n\t\t\n\t\tfor(int i = 0; i < C.length ; i++){\n\t\t\tC[i] = 0;\n//\t\t\tSystem.out.println(i);\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"Tester loop2: \");\n\t\tfor(int j = 0 ; j < A.length ; j++){\n\t\t\tC[A[j]] = C[A[j]] + 1;\n//\t\t\tSystem.out.println(C[A[j]]);\n\t\t}\n\t\t\n\t\tfor(int i = 1 ; i < C.length ; i++){\n\t\t\tC[i] = C[i] + C[i-1];\n//\t\t\tSystem.out.println(C[i] + \" \"+ i);\n\t\t}\n\t\t//System.out.println(\"Test 14:\" + C[14]);\n\t\t\n\t\tfor(int j = A.length - 1; j >= 0 ; j--){\n\t\t\tB[C[A[j]]] = A[j];\n//\t\t\tSystem.out.println();\n//\t\t\tSystem.out.print(A[j] + \" with index \" + j + \"\\t \" + C[A[j]]);\n\t\t\tC[A[j]] = C[A[j]] - 1;\n//\t\t\tSystem.out.print(\"\\tAfter \" + C[A[j]] + \"\\t \" + B[C[A[j]]]);\n\t\t}\n\t\t\n\t\t\n\t\t/* \t\t\tPrints out the after sorting algorithm\t\t*/\n\t\tSystem.out.print(\"\\nAfter Counting sort: \");\n\t\tfor(int i = 1 ; i < B.length ; i++)\n\t\t\tSystem.out.print(B[i] + \" \");\n\t}",
"private static void fourSorts(int[] array) {\n\t\tStopWatch1 timer;\n\t\tint[] temp;\n\t\t//Performs insertion sort\n\t\ttimer = new StopWatch1();\n\t\ttemp = copyArray(array);\n\t\ttimer.start();\n\t\tSort.insertionSort(temp);\n\t\ttimer.stop();\n\t\tSystem.out.printf(\"%10d\",timer.getElapsedTime());\n\n\n\t\t//Performs selection sort\n\t\ttimer = new StopWatch1();\n\t\ttemp = copyArray(array);\n\t\ttimer.start();\n\t\tSort.selectionSort(temp);\n\t\ttimer.stop();\n\t\tSystem.out.printf(\"%10d\",timer.getElapsedTime());\n\n\t\t//Performs quick sort\n\t\ttimer = new StopWatch1();\n\t\ttemp = copyArray(array);\n\t\ttimer.start();\n\t\tSort.quickSort(temp);\n\t\ttimer.stop();\n\t\tSystem.out.printf(\"%10d\",timer.getElapsedTime());\n\n\t\t//Performs merge sort\n\t\ttimer = new StopWatch1();\n\t\ttemp = copyArray(array);\n\t\ttimer.start();\n\t\tSort.mergeSort(temp);\n\t\ttimer.stop();\n\t\tSystem.out.printf(\"%10d\",timer.getElapsedTime());\n\n\t}",
"public void radixSorting() {\n\t\t\n\t}",
"static void radixSort(int arr[], int n)\n {\n // Find the maximum number to know number of digits\n int m = getMax(arr, n);\n\n // Do counting sort for every digit. Note that instead\n // of passing digit number, exp is passed. exp is 10^i\n // where i is current digit number\n for (int exp = 1; m / exp > 0; exp *= 10)\n {\n countSort(arr, n, exp);\n }\n }",
"@Override\n protected void runAlgorithm() {\n for (int i = 0; i < getArray().length; i++) {\n for (int j = i + 1; j < getArray().length; j++) {\n if (applySortingOperator(getValue(j), getValue(i))) {\n swap(i, j);\n }\n }\n }\n }",
"@Override\n public void sortAndCount() {\n Insertion.reset();\n Insertion.sort(arrayForTests);\n comp = Sort.getComparisonOperations(); // Sort.getComp();\n copy = Sort.getCopyOperations(); // Sort.getCopy();\n }",
"public static void main(String[] args) throws FileNotFoundException{\n int[] quicktimes1 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes1[i] = (int)endTime;\n }\n \n int[] mergetimes1 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes1[i] = (int)endTime;\n }\n \n int[] heaptimes1 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes1[i] = (int)endTime;\n }\n \n int[] quicktimes2 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[10000];\n for (int j = 0; j < sarray.length; j++)\n sarray[i] = j;\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes2[i] = (int)endTime;\n }\n \n int[] mergetimes2 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[10000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes2[i] = (int)endTime;\n }\n \n int[] heaptimes2 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[10000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes2[i] = (int)endTime;\n }\n \n int[] quicktimes3 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[100000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes3[i] = (int)endTime;\n }\n \n int[] mergetimes3 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[100000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes3[i] = (int)endTime;\n }\n \n int[] heaptimes3 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[100000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes3[i] = (int)endTime;\n }\n \n int[] quicktimes4 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes4[i] = (int)endTime;\n }\n \n int[] mergetimes4 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes4[i] = (int)endTime;\n }\n \n int[] heaptimes4 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes4[i] = (int)endTime;\n }\n \n \n //THESE WILL GENERATE THE MERGE/HEAP/QUICK SORT FOR THE REVERSE SORTED ARRAYS OF VARIOUS LENGTHS\n int[] quicktimes5 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes5[i] = (int)endTime;\n }\n \n int[] mergetimes5 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes5[i] = (int)endTime;\n }\n \n int[] heaptimes5 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes5[i] = (int)endTime;\n }\n \n int[] quicktimes6 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[10000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes6[i] = (int)endTime;\n }\n \n int[] mergetimes6 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[10000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes6[i] = (int)endTime;\n }\n \n int[] heaptimes6 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[10000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes6[i] = (int)endTime;\n }\n \n int[] quicktimes7 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[100000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes7[i] = (int)endTime;\n }\n \n int[] mergetimes7 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[100000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes7[i] = (int)endTime;\n }\n \n int[] heaptimes7 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[100000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes7[i] = (int)endTime;\n }\n \n int[] quicktimes8 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes8[i] = (int)endTime;\n }\n \n int[] mergetimes8 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes8[i] = (int)endTime;\n }\n \n int[] heaptimes8 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes8[i] = (int)endTime;\n }\n \n //THESE WILL GENERATE THE MERGE/HEAP/QUICK SORT FOR THE RANDOM ARRAYS OF VARIOUS LENGTHS\n int[] quicktimes9 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[1000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(999);\n long startTime = System.nanoTime();\n Sorting.quickSort(rarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes9[i] = (int)endTime;\n }\n \n int[] mergetimes9 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[1000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(999);\n long startTime = System.nanoTime();\n Sorting.mergeSort(rarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes9[i] = (int)endTime;\n }\n \n int[] heaptimes9 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[1000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(999);\n long startTime = System.nanoTime();\n Sorting.heapSort(rarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes9[i] = (int)endTime;\n }\n \n int[] quicktimes10 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[10000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(9999);\n long startTime = System.nanoTime();\n Sorting.quickSort(rarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes10[i] = (int)endTime;\n }\n \n int[] mergetimes10 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[10000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(9999);\n long startTime = System.nanoTime();\n Sorting.mergeSort(rarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes10[i] = (int)endTime;\n }\n \n int[] heaptimes10 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[10000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(9999);\n long startTime = System.nanoTime();\n Sorting.heapSort(rarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes10[i] = (int)endTime;\n }\n \n int[] quicktimes11 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[100000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(99999);\n long startTime = System.nanoTime();\n Sorting.quickSort(rarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes11[i] = (int)endTime;\n }\n \n int[] mergetimes11 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[100000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(99999);\n long startTime = System.nanoTime();\n Sorting.mergeSort(rarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes11[i] = (int)endTime;\n }\n \n int[] heaptimes11 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[100000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(99999);;\n long startTime = System.nanoTime();\n Sorting.heapSort(rarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes11[i] = (int)endTime;\n }\n \n int[] quicktimes12 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[1000000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(999999);\n long startTime = System.nanoTime();\n Sorting.quickSort(rarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes12[i] = (int)endTime;\n }\n \n int[] mergetimes12 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[1000000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(999999);\n long startTime = System.nanoTime();\n Sorting.mergeSort(rarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes12[i] = (int)endTime;\n }\n \n int[] heaptimes12 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[1000000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(999999);\n long startTime = System.nanoTime();\n Sorting.heapSort(rarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes12[i] = (int)endTime;\n }\n \n //PRINTING THE RESULTS OUT INTO FILE\n File f = new File(\"Results.txt\");\n FileOutputStream fos = new FileOutputStream(f);\n PrintWriter pw = new PrintWriter(fos);\n pw.println(\"SORTED ARRAYS TIMES:\");\n pw.printf(\"1000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes1), medVal(quicktimes1), varVal(quicktimes1, meanVal(quicktimes1)));\n pw.printf(\"10000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes2), medVal(quicktimes2), varVal(quicktimes2, meanVal(quicktimes2)));\n pw.printf(\"100000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes3), medVal(quicktimes3), varVal(quicktimes3, meanVal(quicktimes3)));\n pw.printf(\"1000000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes4), medVal(quicktimes4), varVal(quicktimes4, meanVal(quicktimes4)));\n pw.printf(\"1000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes1), medVal(mergetimes1), varVal(mergetimes1, meanVal(mergetimes1)));\n pw.printf(\"10000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes2), medVal(mergetimes2), varVal(mergetimes2, meanVal(mergetimes2)));\n pw.printf(\"100000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes3), medVal(mergetimes3), varVal(mergetimes3, meanVal(mergetimes3)));\n pw.printf(\"1000000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes4), medVal(mergetimes4), varVal(mergetimes4, meanVal(mergetimes4)));\n pw.printf(\"1000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes1), medVal(heaptimes1), varVal(heaptimes1, meanVal(heaptimes1)));\n pw.printf(\"10000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes2), medVal(heaptimes2), varVal(heaptimes2, meanVal(heaptimes2)));\n pw.printf(\"100000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes3), medVal(heaptimes3), varVal(heaptimes3, meanVal(heaptimes3)));\n pw.printf(\"1000000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes4), medVal(heaptimes4), varVal(heaptimes4, meanVal(heaptimes4)));\n pw.println(\"REVERSE SORTED ARRAYS TIMES:\");\n pw.printf(\"1000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes5), medVal(quicktimes5), varVal(quicktimes5, meanVal(quicktimes5)));\n pw.printf(\"10000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes6), medVal(quicktimes6), varVal(quicktimes6, meanVal(quicktimes6)));\n pw.printf(\"100000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes7), medVal(quicktimes7), varVal(quicktimes7, meanVal(quicktimes7)));\n pw.printf(\"1000000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes8), medVal(quicktimes8), varVal(quicktimes8, meanVal(quicktimes8)));\n pw.printf(\"1000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes5), medVal(mergetimes5), varVal(mergetimes5, meanVal(mergetimes5)));\n pw.printf(\"10000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes6), medVal(mergetimes6), varVal(mergetimes6, meanVal(mergetimes6)));\n pw.printf(\"100000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes7), medVal(mergetimes7), varVal(mergetimes7, meanVal(mergetimes7)));\n pw.printf(\"1000000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes8), medVal(mergetimes8), varVal(mergetimes8, meanVal(mergetimes8)));\n pw.printf(\"1000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes5), medVal(heaptimes5), varVal(heaptimes5, meanVal(heaptimes5)));\n pw.printf(\"10000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes6), medVal(heaptimes6), varVal(heaptimes6, meanVal(heaptimes6)));\n pw.printf(\"100000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes7), medVal(heaptimes7), varVal(heaptimes7, meanVal(heaptimes7)));\n pw.printf(\"1000000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes8), medVal(heaptimes8), varVal(heaptimes8, meanVal(heaptimes8)));\n pw.println(\"RANDOM ARRAYS TIMES:\");\n pw.printf(\"1000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes9), medVal(quicktimes9), varVal(quicktimes9, meanVal(quicktimes9)));\n pw.printf(\"10000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes10), medVal(quicktimes10), varVal(quicktimes10, meanVal(quicktimes10)));\n pw.printf(\"100000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes11), medVal(quicktimes11), varVal(quicktimes11, meanVal(quicktimes11)));\n pw.printf(\"1000000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes12), medVal(quicktimes12), varVal(quicktimes12, meanVal(quicktimes12)));\n pw.printf(\"1000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes9), medVal(mergetimes9), varVal(mergetimes9, meanVal(mergetimes9)));\n pw.printf(\"10000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes10), medVal(mergetimes10), varVal(mergetimes10, meanVal(mergetimes10)));\n pw.printf(\"100000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes11), medVal(mergetimes11), varVal(mergetimes11, meanVal(mergetimes11)));\n pw.printf(\"1000000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes12), medVal(mergetimes12), varVal(mergetimes12, meanVal(mergetimes12)));\n pw.printf(\"1000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes9), medVal(heaptimes9), varVal(heaptimes9, meanVal(heaptimes9)));\n pw.printf(\"10000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes10), medVal(heaptimes10), varVal(heaptimes10, meanVal(heaptimes10)));\n pw.printf(\"100000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes11), medVal(heaptimes11), varVal(heaptimes11, meanVal(heaptimes11)));\n pw.printf(\"1000000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes12), medVal(heaptimes12), varVal(heaptimes12, meanVal(heaptimes12)));\n pw.close();\n }",
"public static void main(String[] args) throws IOException{\n final int ELEMENT_SIZE = 1000;\n \n // How large (how many elements) the arrays will be\n int dataSize = 0;\n // How many times the program will run\n int trials = 1;\n // User-inputted number that dictates what sort the program will use\n int sortSelector = 0;\n // Variables for running time caculations\n long startTime = 0;\n long endTime = 0;\n long duration = 0;\n // The longest time a sort ran, in seconds\n double maxTime = 0;\n // The fastest time a sort ran, in seconds\n double minTime = Double.MAX_VALUE;\n // The average time a sort ran, running \"trials\" times\n double average = 0;\n // A duration a sort ran, in seconds\n double durationSeconds = 0;\n\n Scanner reader = new Scanner(System.in);\n \n System.out.println(\"Please enter a size for the test array: \");\n dataSize = reader.nextInt();\n \n System.out.println(\"Please enter the amount of times you would like the sort to run: \");\n trials = reader.nextInt();\n // Slection menu for which sort to run\n System.out.println(\"Please designate the sorting algorithim you would like the program to use: \");\n System.out.println(\"Enter \\\"1\\\" for BubbleSort \");\n System.out.println(\"Enter \\\"2\\\" for SelectionSort \");\n System.out.println(\"Enter \\\"3\\\" for InsertionSort \");\n System.out.println(\"Enter \\\"4\\\" for QuickSort \");\n System.out.println(\"Enter \\\"5\\\" for MergeSort \");\n sortSelector = reader.nextInt();\n // Print sorting results header and begin running sort(s)\n System.out.println();\n System.out.println(\"Trial Running times (in seconds): \");\n \n int[] original = new int[dataSize];\n int[] sortingArray = new int[dataSize];\n \n // This loop controls the amount of times a sorting algorithim will run\n for(int i = 1; i <= trials; i++){\n // Start by generating test array\n for(int j = 0; j < dataSize; j++){\n original[j] = (int)((Math.random() * ELEMENT_SIZE) + 1);\n }\n // Copy the original to a working array\n for(int j = 0; j < dataSize; j++){\n sortingArray[j] = original[j];\n }\n // Start the \"timer\"\n startTime = System.nanoTime();\n // Run whatever sort the user selected, BubbleSort is default\n switch(sortSelector){\n case 1:\n BubbleSort.runSort(sortingArray);\n break;\n case 2:\n SelectionSort.runSort(sortingArray);\n break;\n case 3:\n InsertionSort.runSort(sortingArray);\n break;\n case 4:\n QuickSort.runSort(sortingArray);\n break;\n case 5:\n MergeSort.runSort(sortingArray);\n break;\n default:\n BubbleSort.runSort(sortingArray);\n break;\n }\n // End the \"timer\"\n endTime = System.nanoTime();\n // Generate the program's running duration\n duration = endTime - startTime;\n // Convert running time to seconds\n durationSeconds = ((double)duration / 1000000000.0);\n // Print the duration (to file)\n System.out.println(durationSeconds);\n // Update min/max running times\n if(durationSeconds < minTime){\n minTime = durationSeconds;\n }\n if(durationSeconds > maxTime){\n maxTime = durationSeconds;\n }\n // Add latest trial to running average\n average += durationSeconds;\n }\n // After trials conclude, the average running time has to be calculated\n average /= ((double)trials);\n \n System.out.println(\"\\nAfter running your selected sort \" + trials + \" times: \");\n System.out.println(\"The slowest sort took \" + maxTime + \" seconds, \");\n System.out.println(\"the fastest sort took \" + minTime + \" seconds, \");\n System.out.println(\"and the average running time was \" + average + \" seconds. \");\n \n // Left this in for testing the sorting algorithims themselves\n /*\n System.out.println();\n for(int element : original){\n System.out.println(element);\n }\n System.out.println();\n for(int element : sortingArray){\n System.out.println(element);\n }\n */\n }",
"public static int[] countingSort(int[] arr, int place, int n) {\n int max = getMax(arr, n);\n\n int[] countArr = new int[max + 1];\n int[] sortedArr = new int[n];\n\n // Set all elements of countArr equal to zero\n for (int i = 0; i < max; i++) {\n countArr[i] = 0;\n }\n\n // Count the number of appearances of a digit in nth digit place\n for (int i = 0; i < n; i++) {\n countArr[(arr[i] / place) % 10]++;\n }\n\n // We carry a cumulative number of appearances of the digits in nth digit place\n for (int i = 1; i < 10; i++) {\n countArr[i] = countArr[i] + countArr[i - 1];\n }\n\n // We place the elements in ther corresponding positions based on countArr and\n // decrease indeces count by one\n for (int i = n - 1; i >= 0; i--) {\n sortedArr[countArr[(arr[i] / place) % 10] - 1] = arr[i];\n countArr[(arr[i] / place) % 10]--;\n }\n\n // Copy arr results to the new sorted array\n for (int i = 0; i < n; i++) {\n arr[i] = sortedArr[i];\n }\n\n return sortedArr;\n }",
"public static void main(String arg []) {\r\n\t\tint n = 8; //problem size\r\n\t\t\r\n\t\ttestSortingAlgorithm(new Insertion(n));\r\n\t\t\r\n\t\ttestSortingAlgorithm(new Selection(n));\r\n\t\t\r\n\t\ttestSortingAlgorithm(new Bubble(n));\r\n\t\t\r\n\t\ttestSortingAlgorithm(new QuicksortFateful(n));\r\n\t\t\r\n\t\ttestSortingAlgorithm(new QuicksortCentralElement(n));\r\n\t\t\r\n\t\ttestSortingAlgorithm(new QuicksortMedianOfThree(n));\r\n\t}",
"public static void main(String[] args)\n {\n //reading the size of array\n Scanner in = new Scanner(System.in);\n int size = 0;\n System.out.println(\"Enter the size of the array\\n\");\n size = in.nextInt();\n\n // creating a random array of given size\n Random rd = new Random();\n int[] array = new int[size];\n for (int i = 0; i < array.length; i++)\n array[i] = rd.nextInt(size);\n\n //System.nanoTime() is used to calculate the time taken by the algorithm to multiply the numbers\n //implementing selection sort and timing the performance\n final long startTimeS = System.nanoTime();\n selectionSort(array);\n System.out.print(\"Sorted array via selection sort: \");\n printArray(array);\n final long elapsedTimeS = System.nanoTime() - startTimeS;\n System.out.println(\"The time taken: \" + elapsedTimeS);\n\n //implementing bogo sort and timing the performance\n final long startTime = System.nanoTime();\n bogoSort(array);\n System.out.print(\"Sorted array via bogo sort: \");\n printArray(array);\n final long elapsedTime = System.nanoTime() - startTime;\n System.out.println(\"The time taken: \" + elapsedTime);\n\n //implementing insertion sort and timing the performance\n final long startTimeI = System.nanoTime();\n insertSort(array);\n System.out.print(\"Sorted array via insertion sort: \");\n printArray(array);\n final long elapsedTimeI = System.nanoTime() - startTimeI;\n System.out.println(\"The time taken: \" + elapsedTimeI);\n\n //implementing merge sort and timing the performance\n final long startTimeM = System.nanoTime();\n mergeSort(array, size);\n System.out.print(\"Sorted array via merge sort: \");\n printArray(array);\n final long elapsedTimeM = System.nanoTime() - startTimeM;\n System.out.println(\"The time taken: \" + elapsedTimeM);\n\n //implementing enhanced merge sort and timing the performance\n final long startTimeEm = System.nanoTime();\n enhancedMergeSort(array, size);\n System.out.print(\"Sorted array via enhanced merge sort: \");\n printArray(array);\n final long elapsedTimeEm = System.nanoTime() - startTimeEm;\n System.out.println(\"The time taken: \" + elapsedTimeEm);\n\n //implementing quick sort and timing the performance\n final long startTimeQ= System.nanoTime();\n quickSort(array);\n System.out.print(\"Sorted array via quick sort: \");\n printArray(array);\n final long elapsedTimeQ = System.nanoTime() - startTimeQ;\n System.out.println(\"The time taken: \" + elapsedTimeQ);\n\n //implementing enhanced quick sort and timing the performance\n final long startTimeEq = System.nanoTime();\n enhancedQuickSort(array);\n System.out.print(\"Sorted array via enhanced quick sort: \");\n printArray(array);\n final long elapsedTimeEq= System.nanoTime() - startTimeEq;\n System.out.println(\"The time taken: \" + elapsedTimeEq);\n\n }",
"public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\r\n\t\tint t = scn.nextInt();\r\n//\t\twhile (t > 0) {\r\n//\t\t\tint n = scn.nextInt();\r\n//\t\t\tlong[] arr = new long[n];\r\n//\t\t\tint i, j;\r\n//\t\t\tlong s = 0;\r\n//\t\t\tfor (i = 0; i < n; i++) {\r\n//\t\t\t\tarr[i] = scn.nextInt();\r\n//\t\t\t}\r\n//\t\t\r\n//\t\t\t//bubble sort\r\n//\t\t\tfor (i = 0; i < n - 1; i++) {\r\n//\t\t\t\tfor (j = 0; j < n - i - 1; j++) {\r\n//\t\t\t\t\tlong k1 = combine(arr[j], arr[j + 1]);\r\n//\t\t\t\t\tlong k2 = combine(arr[(j + 1)], arr[j]);\r\n//\t\t\t\t\tif (k2 > k1) {\r\n//\t\t\t\t\t\tlong temp = arr[j];\r\n//\t\t\t\t\t\tarr[j] = arr[(j + 1)];\r\n//\t\t\t\t\t\tarr[(j + 1)] = temp;\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t\tfor (i = 0; i < n - 1; i++) {\r\n//\t\t\t\ts = combine(arr[i], arr[i + 1]);\r\n//\t\t\t\tarr[i+1] = s;\r\n//\t\t\t}\r\n//\t\t\tSystem.out.println(arr[n-1]);\r\n//\t\t\tt--;\r\n//\t\t}\r\n//\t}\r\n//\r\n//\tpublic static long combine(long n, long m) {\r\n//\t\tlong f = m;\r\n//\t\tint b = 0;\r\n//\t\twhile (f > 0) {\r\n//\t\t\tf = f / 10;\r\n//\t\t\tb++;\r\n//\t\t}\r\n//\r\n//\t\tf = (long)(n * Math.pow(10, b) + m);\r\n//\t\treturn f;\r\n\t\t\r\n\r\n\t}",
"private static String testSorts(int[] arr) {\n\t\tint[] initial = arr.clone();\n\t\tdouble start;\n\t\tdouble[] heapTime = new double[10];\n\t\tdouble[] quickTime = new double[10];\n\t\tdouble[] mergeTime = new double[10];\n\t\t\n\t\tfor (int i=0; i < 10; i++){ //runs 10 times\n\t arr = initial.clone();\n\t\t\tstart = System.nanoTime();\n\t Sorting.heapSort(arr);\n\t heapTime[i] = System.nanoTime()-start;\n\t \n\t arr = initial.clone();\n\t\t\tstart = System.nanoTime();\n\t\t\tSorting.quickSort(arr); \n\t quickTime[i] = System.nanoTime()-start;\n\t \n\t arr = initial.clone();\n\t\t\tstart = System.nanoTime();\n\t\t\tSorting.mergeSort(arr); \n\t mergeTime[i] = System.nanoTime()-start;\n\t\t}\n\t\t\n\t double heapMean= meanVal(heapTime) ;\n\t double quickMean= meanVal(quickTime);\n\t double mergeMean= meanVal(mergeTime);\n\t \n\t String result = \"Means | HeapSort: \" +heapMean + \" QuickSort: \" + quickMean + \" MergeSort: \" + mergeMean + \"\\n\" + \n\t \"Variance| HeapSort: \"+ varianceVal(heapTime, heapMean)+ \" QuickSort: \" + varianceVal(quickTime, quickMean)+\n\t \" MergeSort: \" +varianceVal(mergeTime, mergeMean);\n\t \n\t return result;\n\t\t\n\t}",
"public static void countSort(int arr[], int n, int exp)\n {\n int output[] = new int[n]; // output array\n int i;\n int count[] = new int[10];\n Arrays.fill(count, 0);\n\n // Store count of occurrences in count[]\n for (i = 0; i < n; i++)\n {\n count[(arr[i] / exp) % 10]++;\n }\n\n // Change count[i] so that count[i] now contains\n // actual position of this digit in output[]\n for (i = 1; i < 10; i++)\n {\n count[i] += count[i - 1];\n }\n\n // Build the output array\n for (i = n - 1; i >= 0; i--)\n {\n output[count[(arr[i] / exp) % 10] - 1] = arr[i];\n count[(arr[i] / exp) % 10]--;\n }\n\n // Copy the output array to arr[], so that arr[] now\n // contains sorted numbers according to curent digit\n for (i = 0; i < n; i++)\n {\n arr[i] = output[i];\n }\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }"
] | [
"0.7196746",
"0.6862599",
"0.6857852",
"0.6808985",
"0.6744581",
"0.6622991",
"0.6563143",
"0.6551251",
"0.650606",
"0.64846414",
"0.64768493",
"0.6472294",
"0.6458959",
"0.64425385",
"0.64113724",
"0.6410554",
"0.6391669",
"0.63893086",
"0.63803446",
"0.637191",
"0.635121",
"0.6320009",
"0.63167053",
"0.62984633",
"0.6285328",
"0.62738305",
"0.6246461",
"0.624578",
"0.62420446",
"0.6240214",
"0.62254274",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224557",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517",
"0.6224517"
] | 0.72432965 | 0 |
/ Prints out the before sorting algorithm | private static void CountingSort(int[] A, int[] B, int k) {
System.out.print("Before counting sort: ");
for(int i = 0 ; i < A.length ; i++){
System.out.print(A[i] + " ");
}
System.out.println();
//C goes all the way to 14
int [] C = new int [k + 1];
// System.out.println("The amount of index in C");
for(int i = 0; i < C.length ; i++){
C[i] = 0;
// System.out.println(i);
}
// System.out.println("Tester loop2: ");
for(int j = 0 ; j < A.length ; j++){
C[A[j]] = C[A[j]] + 1;
// System.out.println(C[A[j]]);
}
for(int i = 1 ; i < C.length ; i++){
C[i] = C[i] + C[i-1];
// System.out.println(C[i] + " "+ i);
}
//System.out.println("Test 14:" + C[14]);
for(int j = A.length - 1; j >= 0 ; j--){
B[C[A[j]]] = A[j];
// System.out.println();
// System.out.print(A[j] + " with index " + j + "\t " + C[A[j]]);
C[A[j]] = C[A[j]] - 1;
// System.out.print("\tAfter " + C[A[j]] + "\t " + B[C[A[j]]]);
}
/* Prints out the after sorting algorithm */
System.out.print("\nAfter Counting sort: ");
for(int i = 1 ; i < B.length ; i++)
System.out.print(B[i] + " ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String doSort();",
"public void sort() {\n\t\tSystem.out.println(\"Quick Sort Algorithm invoked\");\n\n\t}",
"public void sort() {\n }",
"@Override\n\tpublic String sort() {\n\t\tString s=\"Insertionsort Function\";\n\t\treturn s;\n\t}",
"public static void main(String[] args) {\r\n int[] numbers = {25, 43, 29, 50, -6, 32, -20, 43, 8, -6};\r\n\t\r\n\tSystem.out.print(\"before sorting: \");\r\n\toutputArray(numbers);\r\n \r\n\tbubbleSort(numbers);\r\n\t\r\n\tSystem.out.print(\"after sorting: \");\r\n\toutputArray(numbers);\r\n }",
"public void sort() {\n\t\tif (data.size() < 10) {\n\t\t\tbubbleSort();\n\t\t\tSystem.out.println(\"Bubble Sort\");\n\t\t} else {\n\t\t\tquickSort();\n\t\t\tSystem.out.println(\"Quick Sort\");\n\t\t}\n\t}",
"@Override\n public void sort() {\n int cont = 0;\n int mov = 0;\n for (int i = 0; i < (100 - 1); i++) {\n int menor = i;\n for (int j = (i + 1); j < 100; j++){\n if (array[menor] > array[j]){\n cont= cont + 1;\n menor = j;\n mov = mov + 1;\n }\n }\n swap(menor, i);\n mov = mov + 3;\n }\n System.out.println(cont + \" comparações\");\n System.out.println(mov + \" Movimenteções\");\n }",
"public void sort() {\n\t\tdivider(0, array.size() - 1);\n\t}",
"public void sort() {\n\t\t\tfor (int j = nowLength - 1; j > 1; j--) {\n\t\t\t\tfor (int i = 0; i < j; i++) {\n\t\t\t\t\tif (ray[i] > ray[i+1]) {\n\t\t\t\t\t\tint tmp = ray [i];\n\t\t\t\t\t\tray[i] = ray[i+1];\n\t\t\t\t\t\tray[i+1] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tprint();\n\t\t\t}\n\t}",
"public static void main(String[] args)\n {\n Stack<Integer> s=new Stack<Integer>();\n s.push(28);\n s.push(2);\n s.push(16);\n s.push(3);\n s.push(72);\n s.push(19);\n s.push(6);\n System.out.print(\"Before sorting: \");\n for(int e : s)\n System.out.print(e+\" \");\n System.out.println();\n sort(s);\n //the iteration starts from stack bottom\n System.out.print(\"After sorting: \");\n for(int e : s)\n System.out.print(e+\" \");\n System.out.println();\n }",
"public void start() {\n int length = myArr.size();\n int rIndex = length - 1;\n sorter st = new sorter(this.myArr, 0, rIndex);\n \n System.out.println(\"\\n === After sorting ===\\n\");\n \n if (this.seq_checker() == false) {\n System.out.println(\"Array is NOT sorted!\");\n }\n else {\n // print the sorted array\n System.out.println(\"Array is sorted!\");\n for(int i = 0; i < this.myArr.size(); i++) { \n if (i == (this.myArr.size() - 1)) {\n System.out.print(this.myArr.get(i) + \" \");\n }\n else {\n System.out.print(this.myArr.get(i) + \", \");\n }\n }\n System.out.println(); \n }\n \n \n }",
"void sort();",
"void sort();",
"public static void testSort() {\n\t\tint[] test = {-1,-2,-3,4,1,3,0,3,-2,1,-2,2,-1,1,-5,4,-3};\n\t\tArrays.sort(test);\n\t\tfor (int e : test) {\n\t\t\tSystem.out.print(e + \", \");\n\t\t}\n\t}",
"public void sortElements(){\n\t\tgetInput();\n\t\tPeople[] all = countAndSort(people, 0, people.length-1);\n\t\t//PrintArray(all);\n\t\tSystem.out.println(InversionCount);\n\t}",
"public static void main(String[] args) {\n\n\t\tArrayList<Integer> unsort =new ArrayList<Integer>();\n\t\tunsort.add(21);\n\t\tunsort.add(24);\n\t\tunsort.add(42);\n\t\tunsort.add(29);\n\t\tunsort.add(23);\n\t\tunsort.add(13);\n\t\tunsort.add(8);\n\t\tunsort.add(39);\n\t\tunsort.add(38);\n\t\t\n\t\tArrayList<Card> cards = new ArrayList<Card>();\n\t\tcards.add(new Card(\"Heart\",13));\n\t\tcards.add(new Card(\"Heart\",2));\n\t\tcards.add(new Card(\"Heart\",4));\n\t\t\n\t\tArrayList<Card> sort = Sort.insertSort(cards,false);\n\t\t\n\t\tfor(Card i: sort) \n\t\t{\n\t\t\tSystem.out.println(i.getNumber());\n\t\t}\n\t\t\n\t}",
"static void sort(String[] array, int count) { //method to sort and format the array by alphabetical order\n String temp;\n for (int i = 0; i < count; i++) { //iterates through and compares elements in the array to sort them\n for (int j = i + 1; j < count; j++) { \n if (array[i].compareTo(array[j]) > 0) {\n temp = array[i];\n array[i] = array[j];\n array[j] = temp;\n }\n }\n }\n if (bothSort && !firstDone)\n System.out.println(\"\\t\\tTESTER\\t\\t\\t\\t\\t\\t CODER\"); //If its printing both by Coder and Tester on the first run\n else if (bothSort && firstDone)\n System.out.println(\"\\t\\tCODER\\t\\t\\t\\t\\t\\t TESTER\"); //if printin by both coder and tester on the second run\n else if (testerSort)\n System.out.println(\"\\t\\tTESTER\\t\\t\\t\\t\\t\\t CODER\"); //if only printing by tester\n else\n System.out.println(\"\\t\\tCODER\\t\\t\\t\\t\\t\\t TESTER\"); //if only printing by coder\n if (arguments.length > 1 && arguments[1].equals(\"--last-name\"))\n System.out.format(\"%-50s %-50s\", (String.format(\"%-15s %-15s %-15s\", \"Last Name\", \"First Name\", \"Block\")), (String.format(\"%-15s %-15s %-15s\", \"Last Name\", \"First Name\",\"Block\")));\n else\n System.out.format(\"%-50s %-50s\", (String.format(\"%-15s %-15s %-15s\", \"First Name\", \"Last Name\", \"Block\")), (String.format(\"%-15s %-15s %-15s\", \"First Name\", \"Last Name\",\"Block\")));\n System.out.print(\"\\n----------------------------------------------------------------------------------------\");\n for (int i = 0; i < count; i++) { //print each non-null array element\n if (array[i] != null)\n System.out.print(array[i]);\n }\n System.out.print(\"\\n\");\n firstDone = true;\n }",
"@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tLinkedList list=new LinkedList();\n\t\tlist.insert(10);\n\t\tlist.insert(5);\n\t\tlist.insert(15);\n\t\tlist.insert(100);\n\t\tlist.insert(500);\n\t\tlist.insert(200);\n\t\tlist.show();\n\t\tlist.sort();\n\t\tSystem.out.println();\n\t\tlist.show();\n\t}",
"public void sort() {\n\n // Fill in the blank here.\n\tfor(int i = 0; i < size; i++){\n\t\tint currentLowest, cLIndex, temp;\n\t\tcurrentLowest = elements[i];\n\t\tcLIndex = i; \n\t\tfor(int c = i+1; c < size; c++){\n\t\t\tif(currentLowest > elements[c]){\n\t\t\t\tcurrentLowest = elements[c];\n\t\t\t\tcLIndex = c;\n\t\t\t} \n\t\t}\n\t\ttemp = elements[i];\n\t\telements[i] = elements[cLIndex];\n\t\telements[cLIndex] = temp;\n\t\t\n\t}\n System.out.println(\"Sorting...\");\n }",
"private static void sortingMemo() {\n\t\t\n\t}",
"public String printSortedResult() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tsb.append(printStartNumberAndName() + \"; \");\n\t\tsb.append(printInfo());\n\t\t\n\t\tsb.append(printTotalTime());\n\t\t\n\t\tsb.append(errorHandler.print());\n\t\t\n\t\treturn sb.toString();\n\t}",
"public void printInOrder() {\n\t\tCollections.sort(students);\n\t\tSystem.out.println(\"Student Score List\");\n\t\tfor(Student student : students) {\n\t\t\tSystem.out.println(student);\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public static void main(String[] args) {\n\t\t\n int array[] = {20,50,10,43,543,-43,-42,-245,5,21,5,1010};\n \n for(int firstUnsortedIndex = 1; firstUnsortedIndex < array.length; firstUnsortedIndex++) {\n \t\n \tint newElement = array[firstUnsortedIndex]; //storing the element of the unsorted array temporary to newElement\tin case we need to overwrite\n \n \tint i;\n \t//we want to keep looking for the insertion position as long as we havent hit the front of the array\n \tfor(i = firstUnsortedIndex; (i > 0 && array[i-1] > newElement); i--) {\n \t\tarray[i] = array[i-1];\n \t}\n \t\n \tarray[i] = newElement;\n }\n \n printer(array);\n \n\t}",
"public void sortArray() {\n\t\tSystem.out.println(\"QUICK SORT\");\n\t}",
"public static void main(String[] args) {\n\n\t\tint[] a= {10,9,7,13,2,6,14,20};\n\t\tSystem.out.println(\"before sort\"+Arrays.toString(a));\n\t\tfor(int k=1;k<a.length;k++) {\n\t\t\tint temp=a[k];\n\t\t\tint j=k-1;\n\t\t\t\n\t\t\twhile(j>=0 && temp<=a[j]) {\n\t\t\t\ta[j+1]=a[j];\n\t\t\t\tj=j-1;\n\t\t\t}\n\t\t\ta[j+1]=temp;\n\t\t}\n\n\t\t\n\t\tSystem.out.println(\"After sort\"+Arrays.toString(a));\n\t\t\n\t\tSystem.out.println(\"print uing for loop\");\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t\tSystem.out.print(a[i]+\"\");\n\t\t}\n\t}",
"public static void main(String[] args) {\n Integer[] s = {39, 20, 40, 1, 2, 3, 4, 5, 6, 7};\n Stopwatch timer = new Stopwatch();\n\n sort(s);\n\n double time = timer.elapsedTime();\n assert isSorted(s);\n StdOut.print(\"time: \" + time);\n StdOut.println();\n show(s);\n }",
"@Override\r\n\tpublic void sort() {\r\n\t\tint minpos;\r\n\t\tfor (int i = 0; i < elements.length-1; i++) {\r\n\t\t\tminpos=AuxMethods.minPos(elements, i);\r\n\t\t\telements=AuxMethods.swapElements(elements, i, minpos);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n ArrayList<Integer> mainList = new ArrayList<Integer>();\n mainList.add(5);\n mainList.add(2);\n mainList.add(10);\n mainList.add(14);\n mainList.add(3);\n mainList.add(6);\n mainList.add(9);\n boolean asc = false;\n System.out.println(listSort(mainList, asc));\n }",
"private Sort() { }",
"public static void main(String[] args) {\n\t\tint []array = {1,10,2,6,3,11,13,41};\r\n\t\tSystem.out.println(\"Before Sorting: \"+Arrays.toString(array));\r\n\t\tselectionSort(array);\r\n\t\tSystem.out.println(\"After Sorting: \"+Arrays.toString(array));\r\n\r\n\t}",
"public String name_of_sort()\r\n\t{\r\n\t\treturn \"Merge sort\";\r\n\t}",
"void sortUI();",
"public static void main(String[] args) {\n\t\tint a[] = {1, 2, 5, 9, 4};\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<a.length-i-1;j++)\n\t\t\t{\n\t\t\t\tif(a[j+1] < a[j])\n\t\t\t\t{\n\t\t\t\t\tint temp = a[j];\n\t\t\t\t\ta[j] = a[j+1];\n\t\t\t\t\ta[j+1] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The sorted array is:\");\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t\tSystem.out.print(a[i]+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public static void main(String[] args) {\n\t\tSelectionSort ss = new SelectionSort();\n\t\tInsertionSort is = new InsertionSort();\n\t\tint [] listToSort = ss.listToSort();\n\t\tlong startTime = System.currentTimeMillis();\n\t\tis.insertionSort(listToSort);\n\t\tSystem.out.println(\"Time Taken to Sort :: \"+(System.currentTimeMillis()-startTime)+\"ms\");\n\t\tss.printList(listToSort);\n\n\t}",
"public static void main(String[] args) {\n\n\t\tint[] sample = { 55, 3, 7, 3303, 443, -12, 53, 77, 123, 4, 543, 0, 213, 299, 48 };\n\t\tint res[] = ISort(sample); \n\t\tSystem.out.println(\"-12, 0, 3, 4, 7, 48, 53, 55, 77, 123, 213, 299, 443, 543, 3303 <- the result should look like\");\n\t\tfor (int i = 0; i < res.length; i++) {\n\t\t\tSystem.out.printf(\"%d, \", res[i]);\n\t\t}\n\t}",
"private static void printSortActorMenu() {\n\t\tprintln(\"Actor Sorting Options:\");\n\t\tprintln(\"\\tAA: Alphabetically Ascending\");\n\t\tprintln(\"\\tAD: Alphabetically Descending\");\n\t\tprintln(\"\\tNA: By Number of Movies They Are In Ascending\");\n\t\tprintln(\"\\tND: By Number of Movies They Are In\");\n\t}",
"public static void main(String[] args) {\n\n\t\tArrayList<Integer> arrayList = new ArrayList<Integer>();\n\t\tarrayList.add(11);\n\t\tarrayList.add(2);\n\t\tarrayList.add(7);\n\t\tarrayList.add(3);\n\t\t\n\t\t// ArrayList before the sorting\n\t\tSystem.out.println(\"Before Sorting: \");\n\t\tfor(int counter: arrayList)\n\t\t\tSystem.out.println(counter);\n\t\t\n\t\t// Sorting of arrayList using Collections.sort\n\t\tCollections.sort(arrayList);\n\t\t\n\t\t// ArrayList after sorting\n\t\tSystem.out.println(\"\\nAfter Sorting: \");\n\t\tfor(int counter: arrayList)\n\t\t\tSystem.out.println(counter);\n\t}",
"private static void printSortMovieMenu() {\n\t\tprintln(\"Movie Sorting Options:\");\n\t\tprintln(\"\\tTA: Title Ascending (A-Z)\");\n\t\tprintln(\"\\tTD: Title Descending (Z-A)\");\n\t\tprintln(\"\\tYA: Year Ascending\");\n\t\tprintln(\"\\tYD: Year Descending\");\n\t}",
"private void sort(int[] inputArray) {\n\t\tint temp;\n\t\tfor(int i=0;i<inputArray.length;i++) {\n\t\t\tfor(int j=0;j<inputArray.length-1-i;j++) {\n\t\t\t\tif(inputArray[j]>inputArray[j+1]) { // if(inputArray[j]<inputArray[j+1]) for descending\n\t\t\t\t\ttemp = inputArray[j];\n\t\t\t\t\tinputArray[j] = inputArray[j+1];\n\t\t\t\t\tinputArray[j+1] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Pass: \" + (i+1));\n\t\t\tfor(int k=0;k<inputArray.length;k++) {\n\t\t\t\tSystem.out.print(inputArray[k] + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Arry in Ascending order is:\");\n\t\tfor(int i=0;i<inputArray.length;i++) {\n\t\t\tSystem.out.print(inputArray[i] + \"\\t\");\n\t\t}\n\t}",
"private void print() {\n\t\tList<Entry<String, Double>> entries = sort();\n\t\tfor (Entry<String, Double> entry: entries) {\n\t\t\tSystem.out.println(entry);\n\t\t}\n\t}",
"@Override\r\n\tpublic void editSort() {\n\t\t\r\n\t}",
"public void sort()\n\t{\n\t\tfor(int i=0;i<bowlers.size()-1;i++)\n\t\t{\n\t\t\tfor(int j=i+1;j<bowlers.size();j++)\n\t\t\t{\n\t\t\t\tif(bowlers.get(i).getBall()<bowlers.get(j).getBall())\n\t\t\t\t{\n\t\t\t\t\tBowler bowler=bowlers.get(i);\n\t\t\t\t\tbowlers.set(i,bowlers.get(j));\n\t\t\t\t\tbowlers.set(j,bowler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<bowlers.size();i++)\n\t\t{\n\t\tSystem.out.println(bowlers.get(i).getBall());\n\t\t}\n\t}",
"public static void printSort(int[] num) {\n\t\tSystem.out.println(\"\");\n\t\tfor (int i = 0; i < num.length; i++) {\n\n\t\t\tSystem.out.println(num[i]);\n\n\t\t}\n\t\tfinal long endTime = System.currentTimeMillis();\n\t\tfinal long executionTime = endTime - startTime;\n\t\tSystem.out.println(\"Total Execution Time in ms : \" + executionTime + \" sec\");\n\t\tstartTime = System.currentTimeMillis();\n\t}",
"public static void main(String[] args) {\r\n System.out.println(\"Searching and sorting algorithms\");\r\n \r\n \r\n // TO-DO: Add code that tests the searching and sorting\r\n // methods.\r\n System.out.println(\"Selection sort.\");\r\n List<Integer> data = makeList(12);\r\n printList(data);\r\n System.out.println(\" **** \");\r\n selectionSort(data);\r\n printList(data);\r\n\r\n System.out.println(\" **** \");\r\n\r\n System.out.println(\"Insertion sort.\");\r\n data = makeList(12);\r\n printList(data);\r\n System.out.println(\" **** \");\r\n insertionSort(data);\r\n printList(data);\r\n\r\n System.out.println(\" **** \");\r\n\r\n System.out.println(\"Merge sort.\");\r\n data = makeList(12);\r\n printList(data);\r\n System.out.println(\" **** \");\r\n mergeSort(data);\r\n printList(data);\r\n }",
"@Override\n public void sort(IAlg algorithm, boolean decrescent){}",
"private static void performSort(TestApp testApp) {\n testApp.testPartition();\n\n /*\n Date end = new Date();\n System.out.println(\"Sort ended @ \" + end.getTime());\n System.out.println(\"Total time = \" + (end.getTime() - start.getTime())/1000.0 + \" seconds...\");\n */\n }",
"public static void main(String[] args) {\n\r\n\t\tint[] a = { 1, 8, 20, 5, 4, 9 };\r\n\t\tinsertSort(a);\r\n\t\tSystem.out.println(Arrays.toString(a));\r\n\t}",
"public static void main(String[] args) {\n\t\tint input[]= {5,6,3,1,8,7,2,4};\t\t\n\t\t//print(input);\n\t\tprint(fnSelectionSort(input));\t\n\t}",
"public void radixSorting() {\n\t\t\n\t}",
"public static void main(String[] args) {\n\r\n\t\tint[] a;\r\n\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.bubble(a);\r\n\r\n\t\tSystem.out.println(\"BubbleSort: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.selection(a);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nSelection: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.insertion(a);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nInsertion: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.mergeSort(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nMerge: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.quickSort(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nQuick: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.qs(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nQuick1: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t}",
"public static void main(String[] args)\n {\n Integer[] array = new Integer[50];\n Random rnd = new Random();\n for (int i = 0; i < array.length; i++)\n array[i] = rnd.nextInt(100);\n\n System.out.println(\"array before sorted: \" + Arrays.toString(array));\n\n insertionSort(array);\n\n // check if it is really sorted now\n for (int i = 0; i < array.length - 1; i++ )\n {\n if (array[i] > array[i + 1])\n {\n System.out.println(\"something wrong\");\n return;\n }\n }\n\n System.out.println(\"array sorted: \" + Arrays.toString(array));\n }",
"public static void main(String[] args) {\n\t\tInsertionSort insertionSort = new InsertionSort();\r\n\t\tSystem.out.print(\"Before sort: \");\r\n\t\tSystem.out.println(Arrays.toString(insertionSort.array1));\r\n\t\tinsertionSort.insertionSort(insertionSort.array1, insertionSort.array1.length);\r\n\t\tSystem.out.print(\"After sort: \");\r\n\t\tSystem.out.println(Arrays.toString(insertionSort.array1));\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.print(\"Before sort: \");\r\n\t\tSystem.out.println(Arrays.toString(insertionSort.array2));\r\n\t\tinsertionSort.insertionSort(insertionSort.array2, insertionSort.array2.length);\r\n\t\tSystem.out.print(\"After sort: \");\r\n\t\tSystem.out.println(Arrays.toString(insertionSort.array2));\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tSelectionSort ob=new SelectionSort();\n\t\tint i=0;\n\t\tint min=0;\n\t\tfor(int j=i+1;j<a.length;j++){\n\t\t\tmin=ob.mini(a, j);\n\t\t\tif(a[i]>a[min]){\n\t\t\t\tob.exch(a, i, min);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tfor(int i1=0;i1<a.length;i1++){\n\t\t\tSystem.out.println(a[i1]);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }",
"public void sortCompetitors(){\n\t\t}",
"public static void main(String[] args) {\n\t\tint[] nums = {2,3,8,7,1,2,2,2,7,3,9,8,2,1,4,2,6,9,2};\n\t\tSystem.out.println(\"排序前:\");\n\t\tshow(nums);\n\t\tint[] numsSorted = countSort(nums);\n\t\tSystem.out.println(\"排序后:\");\n\t\tshow(numsSorted);\n\t}",
"public static void main(String[] args) {\n\t\tint[] data = { 2, 5, 7, 10, 1, 3, 8 };\n\t\tSystem.out.print(\"排序前:\\t\");\n\t\tfor(int i=0;i<data.length;i++)\n\t\t{\n\t\t\tSystem.out.print(Integer.toString(data[i]));\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\n\t\tint[] sort=MergeSort(data, 0, data.length);\n\t\tSystem.out.print(\"排序后:\\t\");\n\t\tfor(int i=0;i<sort.length;i++)\n\t\t{\n\t\t\tSystem.out.print(Integer.toString(sort[i]));\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\t\tint a[]= {3,1,-2,7,4,0};\n\t\tint n = a.length;\n\t\tfor(int i=0;i<n-1;i++) {\n\t\t\tint midInd= i;\n\t\t\tfor(int j=i;j<n;j++) {\n\t\t\t\tif(a[j]<a[midInd]) {\n\t\t\t\t\tmidInd=j;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tint temp = a[i]; ///Swap commands \n\t\t\ta[i]=a[midInd];\n\t\t\ta[midInd]=temp;\n\t\t\t\n\t\t\t\n\t\t}\n\t\tfor(int item:a) {\n\t\t\tSystem.out.print(item+\" \");\n\t\t}\n\n\t\n\n}",
"public void printPreorder() {\n System.out.print(\"preorder:\");\n printPreorder(overallRoot);\n System.out.println();\n }",
"private void sortCourses() {\n ctrl.sortCourses().forEach(System.out::println);\n }",
"public static boolean testSort() {\r\n Manager inst;\r\n try {\r\n inst = new PokemonTable();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n LinkedList<Pokemon> list;\r\n list = inst.sortByAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() < list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() > list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() < list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() > list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).getFavorite() && list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getFavorite() && !list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() < list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() > list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).isLegendary() && list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).isLegendary() && !list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) > 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) < 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() < list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() > list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() < list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() > list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() < list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() > list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"public static void main(String[] args)\n {\n String[] A = {\"Ken\", \"Pam\", \"Meg\", \"Jan\", \"Ned\",\n \"Peg\", \"Deb\", \"Jim\", \"Amy\", \"Tom\"};\n \n // print, sort, then print again\n printArray(A);\n sort(A);\n printArray(A); \n }",
"private void testInsertionSort() {\n System.out.println(\"------ TESTING : insertionSort() ------\");\n try{\n iTestFileList.insertionSort(); // calling insertion sort function\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n }",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t\tint a[]= {-1,4,2,6,8,1};\n\t\t\n\t\tArrays.sort(a);\n\t\t\n\t\tfor(int num:a)\n\t\t\tSystem.out.print(num+\" \");\n\t\t\n\t\t\n\t\tList<String> l=new ArrayList<>();\n\t\t\n\t\tl.add(\"nikhil\");\n\t\tl.add(\"ajay\");\n\t\tl.add(\"vijay\");\n\t\tl.add(\"pushpa\");\n\t\t\n\t\t\n\t\tCollections.sort(l);\n\t\t\n\t\tSystem.out.print(l);\n\n\t}",
"public static void leaders(int[] inputArray) {\n\t\tfor (int i = 0; i < inputArray.length; i++)\n {\n boolean flag = true;\n \n for (int j = i+1; j < inputArray.length; j++)\n {\n if (inputArray[j] > inputArray[i])\n {\n flag = false;\n \n break;\n }\n }\n \n if (flag)\n {\n System.out.print(inputArray[i]+\" \");\n }\n }\n\t\t\n\t}",
"@Override\n protected void runAlgorithm() {\n for (int i = 0; i < getArray().length; i++) {\n for (int j = i + 1; j < getArray().length; j++) {\n if (applySortingOperator(getValue(j), getValue(i))) {\n swap(i, j);\n }\n }\n }\n }",
"public static void main(String[] args) {\n String [] folge = {\"ab\",\"cd\", \"aa\"};\n new SortierenBeiEinfugen().sortiereAbsteigend(folge);\n System.out.println(Arrays.toString(folge));\n new SortierenBeiEinfugen().sortiereAufsteigend(folge);\n System.out.println(Arrays.toString(folge));\n\n\n\n\n\n\n int[] feld = {2,8,5,6,3,1,4,7};\n\n int countVergleich=0;\n int countTausch = 0;\n for (int i = 0; i < feld.length; i++) {\n for (int j = i; j > 0 ; j--) {\n countVergleich++;\n if (feld[j - 1]>(feld[j]) ) {\n int temp = feld[j];\n feld[j] = feld[j - 1];\n feld[j - 1] = temp;\n countTausch++;\n } else {\n System.out.println(countVergleich);\n System.out.println(countTausch);\n break;\n }\n }\n }\n }",
"public static void main(String[] args) {\n\t\tInsertionSort in = new InsertionSort();\n\t\t\n//\t\tint a[] = {2, 4, 1};\n//\t\tint a[] = {2};\n\t\tint a[] = {1, 2, 9, 1, 8};\n//\t\tin.straightInsertionSort(a);\n\t\tin.shellSort(a);\n\t\t\n\t\tPrint.printArray(a);\n\t}",
"public void sort() {\n ListNode start = head;\n ListNode position1;\n ListNode position2;\n\n // Going through each element of the array from the second element to the end\n while (start.next != null) {\n start = start.next;\n position1 = start;\n position2 = position1.previous;\n // Checks if previous is null and keeps swapping elements backwards till there\n // is an element that is bigger than the original element\n while (position2 != null && (position1.data < position2.data)) {\n swap(position1, position2);\n numberComparisons++;\n position1 = position2;\n position2 = position1.previous;\n }\n }\n }",
"public void insertionNumberSort()\n {\n\t for(int j=1; j<AL.size(); j++)\n\t {\n\t\t Generics temp = AL.get(j);\n\t\t int possibleIndex = j;\n\t\t \n\t\t while(possibleIndex>0 && Integer.parseInt(AL.get(possibleIndex - 1).toString()) < Integer.parseInt(temp.toString()))\n\t\t {\n\t\t\t AL.set(possibleIndex, AL.get(possibleIndex -1));\n\t\t\t possibleIndex--;\n\t\t\t \n\t\t }\n\t\t \n\t\t AL.set(possibleIndex, temp);\n\t }\n \n }",
"public void doTheAlgorithm() {\n this.swapCount = 0;\n this.compCount = 0;\n \n\t\tdoQuickSort(0, this.sortArray.length - 1);\n\t}",
"public static void main(String[] args) {\n\t\tListNode head=new ListNode(4);\n\t\thead.next=new ListNode(1);\n\t\thead.next.next=new ListNode(3);\n\t\thead.next.next.next=new ListNode(2);\n\t\tSystem.out.println(insertionSortList(head));\n\t}",
"public String sortBy();",
"public static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t int s = in.nextInt();\n\t int[] ar = new int[s];\n\t \n\t for(int i=0;i<s;i++){\n\t ar[i]=in.nextInt(); \n\t }\n\t \n\t long start = System.nanoTime();\n\t sort(ar);\n\t long end = System.nanoTime();\n\t \n\t long duration = (end-start);\n\t \n\t \n\t \n\t\tSystem.out.println(\"The Insertion sort was completed in \"+duration +\" nanoseconds\");\n\t\tprintArray(ar);\n\t}",
"public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }",
"@Override\n\tvoid sort(int[] array, SortingVisualizer display) {\n\t\tSystem.out.println(\"a\");\n\t\tboolean sorted = false;\n\t\tboolean h = true;\n\t\twhile (sorted == false) {\nh=true;\n\t\t\t// System.out.println(\"1\");\n\t\t\tRandom x = new Random();\n\t\t\tint y = x.nextInt(array.length);\n\n\t\t\tint el1 = array[y];\n\t\t\tint z = x.nextInt(array.length);\n\t\t\tint el2 = array[z];\n\n\t\t\tarray[y] = el2;\n\t\t\tarray[z] = el1;\n\t\t\tfor (int i = 0; i < array.length - 1; i++) {\n/*\n\t\t\t\tif (array[i] < array[i + 1]) {\n\n\t\t\t\t\th = true;\n\n\t\t\t\t}*/\n\n\t\t\t\tif (array[i] > array[i + 1]) {\n\t\t\t\t\th = false;\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (h == true) {\n\n\t\t\t\tsorted = true;\n\t\t\t}\n\n\t\t\tdisplay.updateDisplay();\n\t\t\t\n\t\t}\n\t}",
"public void step1(){\n\n Collections.sort(names, new Comparator<String>() {\n @Override\n public int compare(String a, String b) {\n return b.compareTo(a);\n }\n });\n }",
"public void oldSort()\n\t{\n\t\tfor (int index = 0; index < arraySize; index++) {\n\t\t\tfor (int secondIndex = index + 1; secondIndex < arraySize; secondIndex++) {\n\t\t\t\tint temp = 0;\n\t\t\t\tif (array[index] > array[secondIndex]) {\n\t\t\t\t\ttemp = array[index];\n\t\t\t\t\tarray[index] = array[secondIndex];\n\t\t\t\t\tarray[secondIndex] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"boolean isSortAscending();",
"public void printSortedByBubbleSort(int[] array){\r\n\t\tint temp;\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tfor (int j = 0; j < array.length - 1; j++) {\r\n\t\t\t\tif(array[j] > array[j + 1]){\r\n\t\t\t\t\ttemp = array[j];\r\n\t\t\t\t\tarray[j] = array[j + 1];\r\n\t\t\t\t\tarray[j + 1] = temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"\\nSorted by BubleSort: \");\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tSystem.out.print(array[i] + \" \");\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n ArrayList<SortObjects> a = new ArrayList<SortObjects>();\n\n SortObjects o = new SortObjects(\"Latha\", 23, 26000);\n SortObjects o2= new SortObjects(\"Ramya\", 20, 11000);\n SortObjects o3= new SortObjects(\"Kalai\", 29, 30000);\n SortObjects o4= new SortObjects(\"Vidya\", 24, 25000);\n a.add(o);\n a.add(o2);\n a.add(o3);\n a.add(o4);\n SortComparator s = new SortComparator();\n a.sort(s);\n System.out.println(a);\n \n \n\n\t}",
"public static void quickSortTest(){\n\t\tTransformer soundwave = new Transformer(\"Soundwave\", 'D', new int[] {8,9,2,6,7,5,6,10});\n\t\tTransformer bluestreak = new Transformer(\"Bluestreak\", 'A', new int[] {6,6,7,9,5,2,9,7});\n\t\tTransformer hubcap = new Transformer(\"Hubcap\", 'A', new int[] {4,4,4,4,4,4,4,4});\n\t\tTransformer abominus = new Transformer(\"Abominus\", 'D', new int[] {10,1,3,10,5,10,8,4});\n\t\t\n\t\tgame.addTransformer(soundwave);\n\t\tgame.addTransformer(bluestreak);\n\t\tgame.addTransformer(hubcap);\n\t\tgame.addTransformer(abominus);\n\t\t\n\t\tgame.sortCompetitorsByRank();\n\t\tgame.printSortedRoster();\n\t}",
"public static void main(String[] args) throws Exception{\n testSort();\n }",
"public void step4(){\n\n Collections.sort(names,(a,b)->b.compareTo(a));\n\n\n System.out.println(\"names sorted are :\"+names);\n }",
"public static void main(String[] args) {\n\t\tList<String> animal = new ArrayList<String>();\n\n\t\tanimal.add(\"Cat\");\n\t\tanimal.add(\"Mouse\");\n\t\tanimal.add(\"Lion\");\n\t\tanimal.add(\"Zeebra\");\n\t\tanimal.add(\"Bear\");\n\t\tanimal.add(\"Deer\");\n\n\t\t// Collections.sort(animal,new StringLengthComparator());\n\n\t\tCollections.sort(animal, new ReverseAlphabeticalComparator());\n\t\tfor (String animal1 : animal) {\n\n\t\t\tSystem.out.println(animal1);\n\t\t}\n\n\t\t/////////////////////////////// Sorting Numbers ////////////////////////////////\n\t\tList<Integer> numbers = new ArrayList<Integer>();\n\n\t\tnumbers.add(5);\n\t\tnumbers.add(31);\n\t\tnumbers.add(16);\n\t\tnumbers.add(605);\n\t\tnumbers.add(15);\n\n\t\tCollections.sort(numbers, new Comparator<Integer>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Integer num1, Integer num2) {\n\n\t\t\t\treturn -num1.compareTo(num2);\n\t\t\t}\n\n\t\t});\n\n\t\tfor (Integer num1 : numbers) {\n\n\t\t\tSystem.out.println(num1);\n\t\t}\n\t\t///////////////////////////// Sorting Arbitrary Objects ////////////////////////////\n\n\t\tList<Person> people = new ArrayList<Person>();\n\n\t\tpeople.add(new Person(3, \"Ajeer\"));\n\t\tpeople.add(new Person(1, \"Sudeer\"));\n\t\tpeople.add(new Person(2, \"Sureash\"));\n\t\tpeople.add(new Person(4, \"Sam\"));\n\t\t\n\t\t// Sort in Order of ID\n\t\tCollections.sort(people, new Comparator<Person>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Person p1, Person p2) {\n\t\t\t\tif (p1.getId() > p2.getId()) {\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\telse if (p1.getId()< p2.getId()) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t\tfor (Person person1 : people) {\n\n\t\t\tSystem.out.println(person1);\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t\t// Sort In Order of NAME....\n\t\tCollections.sort(people, new Comparator<Person>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Person p1, Person p2) {\n\t\t\t\n\t\t\t\treturn p1.getName().compareTo(p2.getName());\n\t\t\t}\n\t\t});\n\t\tfor (Person person1 : people) {\n\n\t\t\tSystem.out.println(person1);\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tint[] a={9,7,6,4,5,6,2,4,1,5,6,9,7,8};\n\t\tSystem.out.println(\"排序前的数组如下:\"+Arrays.toString(a));\n\t\tint temp;\n\t\tfor(int i=1;i<a.length;i++){\n\t\t\ttemp=a[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&a[j]>temp){\n\t\t\t\ta[j+1]=a[j];\n\t\t\t\t--j;\n\t\t\t\t\n\t\t\t}\n\t\t\ta[j+1]=temp;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"排序后的数组如下\"+Arrays.toString(a));\n\n\t}",
"public static void main(String[] args) {\r\n\t\tint[] array = {9,4,8,2,1,5,7,6,3};\r\n\t\t\r\n\t\tSystem.out.println(\"Before sort: \" + Arrays.toString(array));\r\n\t\tSystem.out.println(\"Sorting...\"); System.out.println(\"After sort: \" +\r\n\t\tArrays.toString(quicksort(array, 0, array.length - 1)));\r\n\t}",
"public void sort()\n {\n\tstrack.sort((Node n1, Node n2) ->\n\t{\n\t if (n1.getCost() < n2.getCost()) return -1;\n\t if (n1.getCost() > n2.getCost()) return 1;\n\t return 0;\n\t});\n }",
"private static String testSorts(int[] arr) {\n\t\tint[] initial = arr.clone();\n\t\tdouble start;\n\t\tdouble[] heapTime = new double[10];\n\t\tdouble[] quickTime = new double[10];\n\t\tdouble[] mergeTime = new double[10];\n\t\t\n\t\tfor (int i=0; i < 10; i++){ //runs 10 times\n\t arr = initial.clone();\n\t\t\tstart = System.nanoTime();\n\t Sorting.heapSort(arr);\n\t heapTime[i] = System.nanoTime()-start;\n\t \n\t arr = initial.clone();\n\t\t\tstart = System.nanoTime();\n\t\t\tSorting.quickSort(arr); \n\t quickTime[i] = System.nanoTime()-start;\n\t \n\t arr = initial.clone();\n\t\t\tstart = System.nanoTime();\n\t\t\tSorting.mergeSort(arr); \n\t mergeTime[i] = System.nanoTime()-start;\n\t\t}\n\t\t\n\t double heapMean= meanVal(heapTime) ;\n\t double quickMean= meanVal(quickTime);\n\t double mergeMean= meanVal(mergeTime);\n\t \n\t String result = \"Means | HeapSort: \" +heapMean + \" QuickSort: \" + quickMean + \" MergeSort: \" + mergeMean + \"\\n\" + \n\t \"Variance| HeapSort: \"+ varianceVal(heapTime, heapMean)+ \" QuickSort: \" + varianceVal(quickTime, quickMean)+\n\t \" MergeSort: \" +varianceVal(mergeTime, mergeMean);\n\t \n\t return result;\n\t\t\n\t}",
"public static void main(String[] args) {\n int[] arrayList = {4, 2, 5, 6, 8};\n insertionSort(arrayList);\n printArray(arrayList);\n\n }",
"public void sortAllRows(){\n\t\t/* code goes here */ \n\t\t\n\t\t\n\t\t//WHY SHOULD THEY BE SORTED LIKE THE EXAMPLE SAYS???????\n\t\t\n\t}",
"public static void main(String[] args) {\n int arr[] = { 6, 7, 0, 2, 8, 1, 3, 9, 4, 5 };\n int temp[] = new int[10];\n\n SapXepTron sapXeptron = new SapXepTron();\n System.out.println(\"Mang du lieu dau vao: \");\n sapXeptron.display(arr);\n System.out.println(\"-----------------------------\");\n sapXeptron.sort(arr, temp, 0, arr.length - 1);\n System.out.println(\"-----------------------------\");\n System.out.println(\"\\nMang sau khi da sap xep: \");\n sapXeptron.display(arr);\n }",
"private void sort()\n {\n // This implements Shell sort.\n // Unfortunately we cannot use the sorting functions from the library\n // (e.g. java.util.Arrays.sort), since the ones that work on int\n // arrays do not accept a comparison function, but only allow\n // sorting into natural order.\n int jump = length;\n boolean done;\n \n while( jump>1 ){\n jump /= 2;\n \n do {\n done = true;\n \n for( int j = 0; j<(length-jump); j++ ){\n int i = j + jump;\n \n if( !areCorrectlyOrdered( indices[j], indices[i] ) ){\n // Things are in the wrong order, swap them and step back.\n int tmp = indices[i];\n indices[i] = indices[j];\n indices[j] = tmp;\n done = false;\n }\n }\n } while( !done );\n }\n \n // TODO: integrate this with the stuff above.\n for( int i=1; i<length; i++ ){\n commonality[i] = commonLength( indices[i-1], indices[i] );\n }\n commonality[0] = -1;\n }",
"void sortV();",
"public static void main(String []args){\n int array[] = {4,7,2,9,8,1,6,5,3};\n sort(array,0, array.length-1);\n for(int i:array)\n System.out.print(i+\" \");\n }",
"private static void helperTSort(DiGraph graph){\n Integer[] sortedList;\n try {\n sortedList = graph.topSort();\n System.out.print(\"The topologically sorted sequence of vertices: \");\n\n for(int i = 0; i < sortedList.length; i++){\n if( i == 0)\n System.out.print(sortedList[i]);\n else{\n System.out.print(\", \" + sortedList[i]);\n }\n }\n System.out.println();\n } catch (IllegalArgumentException e) {\n System.out.println(e);\n }\n }",
"@Override\n public void sortAndCount() {\n Insertion.reset();\n Insertion.sort(arrayForTests);\n comp = Sort.getComparisonOperations(); // Sort.getComp();\n copy = Sort.getCopyOperations(); // Sort.getCopy();\n }",
"private static void evaluateMergesortVogella() {\n\n // LOGGER.info(\"evaluating sequential Mergesort by Vogella\");\n\n // The time before start to sort.\n long startTime;\n\n // The time after sort.\n long endTime;\n\n // generate sorted array\n numbers = generateSortedArray(ARRAY_SIZE);\n //System.out.println(\"Array (unsortiert): \" + arrayToString(numbers));\n\n // get array to evaluate\n generateWorstUnsortArray(numbers);\n //System.out.println(\"Array (unsortiert): \" + arrayToString(numbers));\n\n // get systemtime before sorting\n startTime = System.currentTimeMillis();\n\n // sort\n msVogella.sort(numbers);\n\n // get systemtime after sorting\n endTime = System.currentTimeMillis();\n\n // show the result of the sorting process\n System.out.println(\"\\n- Sortierergebnis: Sequential (Vogella) -\");\n System.out.println(\"Die sortierte Folge lautet: \" + arrayToString(numbers));\n System.out.printf(\"Für die Sortierung wurden %d ms benötigt\", endTime - startTime);\n System.out.println(\"\\n------------------------------------------------\\n\");\n }",
"protected void sortCode() {\n for (int i = 1; i < codeCount; i++) {\n int who = i;\n for (int j = i + 1; j < codeCount; j++) {\n if (code[j].getFileName().compareTo(code[who].getFileName()) < 0) {\n who = j; // this guy is earlier in the alphabet\n }\n }\n if (who != i) { // swap with someone if changes made\n SketchCode temp = code[who];\n code[who] = code[i];\n code[i] = temp;\n }\n }\n }",
"public static void main(String args[]) {\n int array[][] = {{1, 2, 3, 4, 5},\n {3, 4, 5, 1, 2},\n {5, 2, 3, 4, 1},\n {2, 3, 1, 4, 5},\n {4, 2, 3, 1, 5}};\n\n System.out.println(\"The array is initially \");\n display(array);\n System.out.println();\n\n sortByFirst(array);\n System.out.println(\"The array after sorting is \");\n display(array);\n System.out.println();\n }"
] | [
"0.7108104",
"0.7037572",
"0.69379663",
"0.6805804",
"0.67414784",
"0.67182076",
"0.6711482",
"0.6681777",
"0.66371244",
"0.6628222",
"0.6623443",
"0.6616382",
"0.6616382",
"0.6579741",
"0.6569543",
"0.6550508",
"0.6547107",
"0.65227056",
"0.6476374",
"0.6472823",
"0.64450043",
"0.6438894",
"0.64387447",
"0.6430051",
"0.6425977",
"0.6401153",
"0.6394842",
"0.6380621",
"0.637028",
"0.63657427",
"0.63585824",
"0.6358237",
"0.6345146",
"0.6343428",
"0.6336757",
"0.63271886",
"0.632361",
"0.63192624",
"0.63155025",
"0.63134474",
"0.6303554",
"0.630113",
"0.62773985",
"0.62378645",
"0.62246585",
"0.6223436",
"0.6216356",
"0.6215391",
"0.62096906",
"0.6182607",
"0.6176154",
"0.6170845",
"0.61591524",
"0.61570644",
"0.615492",
"0.6150979",
"0.61502707",
"0.61469305",
"0.61461",
"0.6143346",
"0.61386156",
"0.6131294",
"0.61296326",
"0.6125924",
"0.61234903",
"0.6120706",
"0.6120545",
"0.61078745",
"0.6101323",
"0.60923356",
"0.60830325",
"0.6057384",
"0.6049112",
"0.60481614",
"0.60421664",
"0.6038882",
"0.6038362",
"0.60287124",
"0.60243565",
"0.60218287",
"0.60188663",
"0.6016203",
"0.6015789",
"0.6009139",
"0.5996113",
"0.5994795",
"0.5993322",
"0.5991231",
"0.5989261",
"0.59852207",
"0.59847504",
"0.59766513",
"0.5970959",
"0.596768",
"0.5965806",
"0.5960098",
"0.59594274",
"0.59530926",
"0.595116",
"0.5950267",
"0.59470385"
] | 0.0 | -1 |
/ Prints out the before sorting algorithm | private static void BucketSort(int[] A){
System.out.println("BucketSort\n");
System.out.print("Before bucket sort: ");
for(int i = 0 ; i < A.length ; i++){
System.out.print(A[i] + " ");
}
System.out.println();
//Gets the highest number in the array
int MaxNum = 0;
for(int i = 0 ; i < A.length ; i++){
if(A[i] > MaxNum)
MaxNum = A[i];
}
int[] B = new int [MaxNum + 1];
for(int i = 0 ; i < B.length ; i++){
B[i] = 0;
}
for(int i = 0 ; i < A.length; i++){
B[A[i]]++;
}
//implementing insertion sort with bucket
int BucketPosition = 0;
for(int i = 0 ; i < B.length ; i++){
for(int j = 0 ; j < B[i] ; j++){
A[BucketPosition] = i;
BucketPosition++;
}
}
/* Prints out the after sorting algorithm */
System.out.print("\nAfter bucket sort: ");
for(int i = 0 ; i < A.length; i++)
System.out.print(A[i] + " ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String doSort();",
"public void sort() {\n\t\tSystem.out.println(\"Quick Sort Algorithm invoked\");\n\n\t}",
"public void sort() {\n }",
"@Override\n\tpublic String sort() {\n\t\tString s=\"Insertionsort Function\";\n\t\treturn s;\n\t}",
"public static void main(String[] args) {\r\n int[] numbers = {25, 43, 29, 50, -6, 32, -20, 43, 8, -6};\r\n\t\r\n\tSystem.out.print(\"before sorting: \");\r\n\toutputArray(numbers);\r\n \r\n\tbubbleSort(numbers);\r\n\t\r\n\tSystem.out.print(\"after sorting: \");\r\n\toutputArray(numbers);\r\n }",
"public void sort() {\n\t\tif (data.size() < 10) {\n\t\t\tbubbleSort();\n\t\t\tSystem.out.println(\"Bubble Sort\");\n\t\t} else {\n\t\t\tquickSort();\n\t\t\tSystem.out.println(\"Quick Sort\");\n\t\t}\n\t}",
"@Override\n public void sort() {\n int cont = 0;\n int mov = 0;\n for (int i = 0; i < (100 - 1); i++) {\n int menor = i;\n for (int j = (i + 1); j < 100; j++){\n if (array[menor] > array[j]){\n cont= cont + 1;\n menor = j;\n mov = mov + 1;\n }\n }\n swap(menor, i);\n mov = mov + 3;\n }\n System.out.println(cont + \" comparações\");\n System.out.println(mov + \" Movimenteções\");\n }",
"public void sort() {\n\t\tdivider(0, array.size() - 1);\n\t}",
"public void sort() {\n\t\t\tfor (int j = nowLength - 1; j > 1; j--) {\n\t\t\t\tfor (int i = 0; i < j; i++) {\n\t\t\t\t\tif (ray[i] > ray[i+1]) {\n\t\t\t\t\t\tint tmp = ray [i];\n\t\t\t\t\t\tray[i] = ray[i+1];\n\t\t\t\t\t\tray[i+1] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tprint();\n\t\t\t}\n\t}",
"public static void main(String[] args)\n {\n Stack<Integer> s=new Stack<Integer>();\n s.push(28);\n s.push(2);\n s.push(16);\n s.push(3);\n s.push(72);\n s.push(19);\n s.push(6);\n System.out.print(\"Before sorting: \");\n for(int e : s)\n System.out.print(e+\" \");\n System.out.println();\n sort(s);\n //the iteration starts from stack bottom\n System.out.print(\"After sorting: \");\n for(int e : s)\n System.out.print(e+\" \");\n System.out.println();\n }",
"public void start() {\n int length = myArr.size();\n int rIndex = length - 1;\n sorter st = new sorter(this.myArr, 0, rIndex);\n \n System.out.println(\"\\n === After sorting ===\\n\");\n \n if (this.seq_checker() == false) {\n System.out.println(\"Array is NOT sorted!\");\n }\n else {\n // print the sorted array\n System.out.println(\"Array is sorted!\");\n for(int i = 0; i < this.myArr.size(); i++) { \n if (i == (this.myArr.size() - 1)) {\n System.out.print(this.myArr.get(i) + \" \");\n }\n else {\n System.out.print(this.myArr.get(i) + \", \");\n }\n }\n System.out.println(); \n }\n \n \n }",
"void sort();",
"void sort();",
"public static void testSort() {\n\t\tint[] test = {-1,-2,-3,4,1,3,0,3,-2,1,-2,2,-1,1,-5,4,-3};\n\t\tArrays.sort(test);\n\t\tfor (int e : test) {\n\t\t\tSystem.out.print(e + \", \");\n\t\t}\n\t}",
"public void sortElements(){\n\t\tgetInput();\n\t\tPeople[] all = countAndSort(people, 0, people.length-1);\n\t\t//PrintArray(all);\n\t\tSystem.out.println(InversionCount);\n\t}",
"public static void main(String[] args) {\n\n\t\tArrayList<Integer> unsort =new ArrayList<Integer>();\n\t\tunsort.add(21);\n\t\tunsort.add(24);\n\t\tunsort.add(42);\n\t\tunsort.add(29);\n\t\tunsort.add(23);\n\t\tunsort.add(13);\n\t\tunsort.add(8);\n\t\tunsort.add(39);\n\t\tunsort.add(38);\n\t\t\n\t\tArrayList<Card> cards = new ArrayList<Card>();\n\t\tcards.add(new Card(\"Heart\",13));\n\t\tcards.add(new Card(\"Heart\",2));\n\t\tcards.add(new Card(\"Heart\",4));\n\t\t\n\t\tArrayList<Card> sort = Sort.insertSort(cards,false);\n\t\t\n\t\tfor(Card i: sort) \n\t\t{\n\t\t\tSystem.out.println(i.getNumber());\n\t\t}\n\t\t\n\t}",
"static void sort(String[] array, int count) { //method to sort and format the array by alphabetical order\n String temp;\n for (int i = 0; i < count; i++) { //iterates through and compares elements in the array to sort them\n for (int j = i + 1; j < count; j++) { \n if (array[i].compareTo(array[j]) > 0) {\n temp = array[i];\n array[i] = array[j];\n array[j] = temp;\n }\n }\n }\n if (bothSort && !firstDone)\n System.out.println(\"\\t\\tTESTER\\t\\t\\t\\t\\t\\t CODER\"); //If its printing both by Coder and Tester on the first run\n else if (bothSort && firstDone)\n System.out.println(\"\\t\\tCODER\\t\\t\\t\\t\\t\\t TESTER\"); //if printin by both coder and tester on the second run\n else if (testerSort)\n System.out.println(\"\\t\\tTESTER\\t\\t\\t\\t\\t\\t CODER\"); //if only printing by tester\n else\n System.out.println(\"\\t\\tCODER\\t\\t\\t\\t\\t\\t TESTER\"); //if only printing by coder\n if (arguments.length > 1 && arguments[1].equals(\"--last-name\"))\n System.out.format(\"%-50s %-50s\", (String.format(\"%-15s %-15s %-15s\", \"Last Name\", \"First Name\", \"Block\")), (String.format(\"%-15s %-15s %-15s\", \"Last Name\", \"First Name\",\"Block\")));\n else\n System.out.format(\"%-50s %-50s\", (String.format(\"%-15s %-15s %-15s\", \"First Name\", \"Last Name\", \"Block\")), (String.format(\"%-15s %-15s %-15s\", \"First Name\", \"Last Name\",\"Block\")));\n System.out.print(\"\\n----------------------------------------------------------------------------------------\");\n for (int i = 0; i < count; i++) { //print each non-null array element\n if (array[i] != null)\n System.out.print(array[i]);\n }\n System.out.print(\"\\n\");\n firstDone = true;\n }",
"@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tLinkedList list=new LinkedList();\n\t\tlist.insert(10);\n\t\tlist.insert(5);\n\t\tlist.insert(15);\n\t\tlist.insert(100);\n\t\tlist.insert(500);\n\t\tlist.insert(200);\n\t\tlist.show();\n\t\tlist.sort();\n\t\tSystem.out.println();\n\t\tlist.show();\n\t}",
"public void sort() {\n\n // Fill in the blank here.\n\tfor(int i = 0; i < size; i++){\n\t\tint currentLowest, cLIndex, temp;\n\t\tcurrentLowest = elements[i];\n\t\tcLIndex = i; \n\t\tfor(int c = i+1; c < size; c++){\n\t\t\tif(currentLowest > elements[c]){\n\t\t\t\tcurrentLowest = elements[c];\n\t\t\t\tcLIndex = c;\n\t\t\t} \n\t\t}\n\t\ttemp = elements[i];\n\t\telements[i] = elements[cLIndex];\n\t\telements[cLIndex] = temp;\n\t\t\n\t}\n System.out.println(\"Sorting...\");\n }",
"private static void sortingMemo() {\n\t\t\n\t}",
"public String printSortedResult() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tsb.append(printStartNumberAndName() + \"; \");\n\t\tsb.append(printInfo());\n\t\t\n\t\tsb.append(printTotalTime());\n\t\t\n\t\tsb.append(errorHandler.print());\n\t\t\n\t\treturn sb.toString();\n\t}",
"public void printInOrder() {\n\t\tCollections.sort(students);\n\t\tSystem.out.println(\"Student Score List\");\n\t\tfor(Student student : students) {\n\t\t\tSystem.out.println(student);\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public static void main(String[] args) {\n\t\t\n int array[] = {20,50,10,43,543,-43,-42,-245,5,21,5,1010};\n \n for(int firstUnsortedIndex = 1; firstUnsortedIndex < array.length; firstUnsortedIndex++) {\n \t\n \tint newElement = array[firstUnsortedIndex]; //storing the element of the unsorted array temporary to newElement\tin case we need to overwrite\n \n \tint i;\n \t//we want to keep looking for the insertion position as long as we havent hit the front of the array\n \tfor(i = firstUnsortedIndex; (i > 0 && array[i-1] > newElement); i--) {\n \t\tarray[i] = array[i-1];\n \t}\n \t\n \tarray[i] = newElement;\n }\n \n printer(array);\n \n\t}",
"public void sortArray() {\n\t\tSystem.out.println(\"QUICK SORT\");\n\t}",
"public static void main(String[] args) {\n\n\t\tint[] a= {10,9,7,13,2,6,14,20};\n\t\tSystem.out.println(\"before sort\"+Arrays.toString(a));\n\t\tfor(int k=1;k<a.length;k++) {\n\t\t\tint temp=a[k];\n\t\t\tint j=k-1;\n\t\t\t\n\t\t\twhile(j>=0 && temp<=a[j]) {\n\t\t\t\ta[j+1]=a[j];\n\t\t\t\tj=j-1;\n\t\t\t}\n\t\t\ta[j+1]=temp;\n\t\t}\n\n\t\t\n\t\tSystem.out.println(\"After sort\"+Arrays.toString(a));\n\t\t\n\t\tSystem.out.println(\"print uing for loop\");\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t\tSystem.out.print(a[i]+\"\");\n\t\t}\n\t}",
"public static void main(String[] args) {\n Integer[] s = {39, 20, 40, 1, 2, 3, 4, 5, 6, 7};\n Stopwatch timer = new Stopwatch();\n\n sort(s);\n\n double time = timer.elapsedTime();\n assert isSorted(s);\n StdOut.print(\"time: \" + time);\n StdOut.println();\n show(s);\n }",
"@Override\r\n\tpublic void sort() {\r\n\t\tint minpos;\r\n\t\tfor (int i = 0; i < elements.length-1; i++) {\r\n\t\t\tminpos=AuxMethods.minPos(elements, i);\r\n\t\t\telements=AuxMethods.swapElements(elements, i, minpos);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n ArrayList<Integer> mainList = new ArrayList<Integer>();\n mainList.add(5);\n mainList.add(2);\n mainList.add(10);\n mainList.add(14);\n mainList.add(3);\n mainList.add(6);\n mainList.add(9);\n boolean asc = false;\n System.out.println(listSort(mainList, asc));\n }",
"private Sort() { }",
"public static void main(String[] args) {\n\t\tint []array = {1,10,2,6,3,11,13,41};\r\n\t\tSystem.out.println(\"Before Sorting: \"+Arrays.toString(array));\r\n\t\tselectionSort(array);\r\n\t\tSystem.out.println(\"After Sorting: \"+Arrays.toString(array));\r\n\r\n\t}",
"public String name_of_sort()\r\n\t{\r\n\t\treturn \"Merge sort\";\r\n\t}",
"void sortUI();",
"public static void main(String[] args) {\n\t\tint a[] = {1, 2, 5, 9, 4};\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<a.length-i-1;j++)\n\t\t\t{\n\t\t\t\tif(a[j+1] < a[j])\n\t\t\t\t{\n\t\t\t\t\tint temp = a[j];\n\t\t\t\t\ta[j] = a[j+1];\n\t\t\t\t\ta[j+1] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The sorted array is:\");\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t\tSystem.out.print(a[i]+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public static void main(String[] args) {\n\t\tSelectionSort ss = new SelectionSort();\n\t\tInsertionSort is = new InsertionSort();\n\t\tint [] listToSort = ss.listToSort();\n\t\tlong startTime = System.currentTimeMillis();\n\t\tis.insertionSort(listToSort);\n\t\tSystem.out.println(\"Time Taken to Sort :: \"+(System.currentTimeMillis()-startTime)+\"ms\");\n\t\tss.printList(listToSort);\n\n\t}",
"public static void main(String[] args) {\n\n\t\tint[] sample = { 55, 3, 7, 3303, 443, -12, 53, 77, 123, 4, 543, 0, 213, 299, 48 };\n\t\tint res[] = ISort(sample); \n\t\tSystem.out.println(\"-12, 0, 3, 4, 7, 48, 53, 55, 77, 123, 213, 299, 443, 543, 3303 <- the result should look like\");\n\t\tfor (int i = 0; i < res.length; i++) {\n\t\t\tSystem.out.printf(\"%d, \", res[i]);\n\t\t}\n\t}",
"private static void printSortActorMenu() {\n\t\tprintln(\"Actor Sorting Options:\");\n\t\tprintln(\"\\tAA: Alphabetically Ascending\");\n\t\tprintln(\"\\tAD: Alphabetically Descending\");\n\t\tprintln(\"\\tNA: By Number of Movies They Are In Ascending\");\n\t\tprintln(\"\\tND: By Number of Movies They Are In\");\n\t}",
"public static void main(String[] args) {\n\n\t\tArrayList<Integer> arrayList = new ArrayList<Integer>();\n\t\tarrayList.add(11);\n\t\tarrayList.add(2);\n\t\tarrayList.add(7);\n\t\tarrayList.add(3);\n\t\t\n\t\t// ArrayList before the sorting\n\t\tSystem.out.println(\"Before Sorting: \");\n\t\tfor(int counter: arrayList)\n\t\t\tSystem.out.println(counter);\n\t\t\n\t\t// Sorting of arrayList using Collections.sort\n\t\tCollections.sort(arrayList);\n\t\t\n\t\t// ArrayList after sorting\n\t\tSystem.out.println(\"\\nAfter Sorting: \");\n\t\tfor(int counter: arrayList)\n\t\t\tSystem.out.println(counter);\n\t}",
"private static void printSortMovieMenu() {\n\t\tprintln(\"Movie Sorting Options:\");\n\t\tprintln(\"\\tTA: Title Ascending (A-Z)\");\n\t\tprintln(\"\\tTD: Title Descending (Z-A)\");\n\t\tprintln(\"\\tYA: Year Ascending\");\n\t\tprintln(\"\\tYD: Year Descending\");\n\t}",
"private void sort(int[] inputArray) {\n\t\tint temp;\n\t\tfor(int i=0;i<inputArray.length;i++) {\n\t\t\tfor(int j=0;j<inputArray.length-1-i;j++) {\n\t\t\t\tif(inputArray[j]>inputArray[j+1]) { // if(inputArray[j]<inputArray[j+1]) for descending\n\t\t\t\t\ttemp = inputArray[j];\n\t\t\t\t\tinputArray[j] = inputArray[j+1];\n\t\t\t\t\tinputArray[j+1] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Pass: \" + (i+1));\n\t\t\tfor(int k=0;k<inputArray.length;k++) {\n\t\t\t\tSystem.out.print(inputArray[k] + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Arry in Ascending order is:\");\n\t\tfor(int i=0;i<inputArray.length;i++) {\n\t\t\tSystem.out.print(inputArray[i] + \"\\t\");\n\t\t}\n\t}",
"private void print() {\n\t\tList<Entry<String, Double>> entries = sort();\n\t\tfor (Entry<String, Double> entry: entries) {\n\t\t\tSystem.out.println(entry);\n\t\t}\n\t}",
"@Override\r\n\tpublic void editSort() {\n\t\t\r\n\t}",
"public void sort()\n\t{\n\t\tfor(int i=0;i<bowlers.size()-1;i++)\n\t\t{\n\t\t\tfor(int j=i+1;j<bowlers.size();j++)\n\t\t\t{\n\t\t\t\tif(bowlers.get(i).getBall()<bowlers.get(j).getBall())\n\t\t\t\t{\n\t\t\t\t\tBowler bowler=bowlers.get(i);\n\t\t\t\t\tbowlers.set(i,bowlers.get(j));\n\t\t\t\t\tbowlers.set(j,bowler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<bowlers.size();i++)\n\t\t{\n\t\tSystem.out.println(bowlers.get(i).getBall());\n\t\t}\n\t}",
"public static void printSort(int[] num) {\n\t\tSystem.out.println(\"\");\n\t\tfor (int i = 0; i < num.length; i++) {\n\n\t\t\tSystem.out.println(num[i]);\n\n\t\t}\n\t\tfinal long endTime = System.currentTimeMillis();\n\t\tfinal long executionTime = endTime - startTime;\n\t\tSystem.out.println(\"Total Execution Time in ms : \" + executionTime + \" sec\");\n\t\tstartTime = System.currentTimeMillis();\n\t}",
"public static void main(String[] args) {\r\n System.out.println(\"Searching and sorting algorithms\");\r\n \r\n \r\n // TO-DO: Add code that tests the searching and sorting\r\n // methods.\r\n System.out.println(\"Selection sort.\");\r\n List<Integer> data = makeList(12);\r\n printList(data);\r\n System.out.println(\" **** \");\r\n selectionSort(data);\r\n printList(data);\r\n\r\n System.out.println(\" **** \");\r\n\r\n System.out.println(\"Insertion sort.\");\r\n data = makeList(12);\r\n printList(data);\r\n System.out.println(\" **** \");\r\n insertionSort(data);\r\n printList(data);\r\n\r\n System.out.println(\" **** \");\r\n\r\n System.out.println(\"Merge sort.\");\r\n data = makeList(12);\r\n printList(data);\r\n System.out.println(\" **** \");\r\n mergeSort(data);\r\n printList(data);\r\n }",
"@Override\n public void sort(IAlg algorithm, boolean decrescent){}",
"private static void performSort(TestApp testApp) {\n testApp.testPartition();\n\n /*\n Date end = new Date();\n System.out.println(\"Sort ended @ \" + end.getTime());\n System.out.println(\"Total time = \" + (end.getTime() - start.getTime())/1000.0 + \" seconds...\");\n */\n }",
"public static void main(String[] args) {\n\r\n\t\tint[] a = { 1, 8, 20, 5, 4, 9 };\r\n\t\tinsertSort(a);\r\n\t\tSystem.out.println(Arrays.toString(a));\r\n\t}",
"public static void main(String[] args) {\n\t\tint input[]= {5,6,3,1,8,7,2,4};\t\t\n\t\t//print(input);\n\t\tprint(fnSelectionSort(input));\t\n\t}",
"public void radixSorting() {\n\t\t\n\t}",
"public static void main(String[] args) {\n\r\n\t\tint[] a;\r\n\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.bubble(a);\r\n\r\n\t\tSystem.out.println(\"BubbleSort: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.selection(a);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nSelection: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.insertion(a);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nInsertion: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.mergeSort(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nMerge: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.quickSort(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nQuick: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.qs(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nQuick1: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t}",
"public static void main(String[] args)\n {\n Integer[] array = new Integer[50];\n Random rnd = new Random();\n for (int i = 0; i < array.length; i++)\n array[i] = rnd.nextInt(100);\n\n System.out.println(\"array before sorted: \" + Arrays.toString(array));\n\n insertionSort(array);\n\n // check if it is really sorted now\n for (int i = 0; i < array.length - 1; i++ )\n {\n if (array[i] > array[i + 1])\n {\n System.out.println(\"something wrong\");\n return;\n }\n }\n\n System.out.println(\"array sorted: \" + Arrays.toString(array));\n }",
"public static void main(String[] args) {\n\t\tInsertionSort insertionSort = new InsertionSort();\r\n\t\tSystem.out.print(\"Before sort: \");\r\n\t\tSystem.out.println(Arrays.toString(insertionSort.array1));\r\n\t\tinsertionSort.insertionSort(insertionSort.array1, insertionSort.array1.length);\r\n\t\tSystem.out.print(\"After sort: \");\r\n\t\tSystem.out.println(Arrays.toString(insertionSort.array1));\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.print(\"Before sort: \");\r\n\t\tSystem.out.println(Arrays.toString(insertionSort.array2));\r\n\t\tinsertionSort.insertionSort(insertionSort.array2, insertionSort.array2.length);\r\n\t\tSystem.out.print(\"After sort: \");\r\n\t\tSystem.out.println(Arrays.toString(insertionSort.array2));\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tSelectionSort ob=new SelectionSort();\n\t\tint i=0;\n\t\tint min=0;\n\t\tfor(int j=i+1;j<a.length;j++){\n\t\t\tmin=ob.mini(a, j);\n\t\t\tif(a[i]>a[min]){\n\t\t\t\tob.exch(a, i, min);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tfor(int i1=0;i1<a.length;i1++){\n\t\t\tSystem.out.println(a[i1]);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }",
"public void sortCompetitors(){\n\t\t}",
"public static void main(String[] args) {\n\t\tint[] nums = {2,3,8,7,1,2,2,2,7,3,9,8,2,1,4,2,6,9,2};\n\t\tSystem.out.println(\"排序前:\");\n\t\tshow(nums);\n\t\tint[] numsSorted = countSort(nums);\n\t\tSystem.out.println(\"排序后:\");\n\t\tshow(numsSorted);\n\t}",
"public static void main(String[] args) {\n\t\tint[] data = { 2, 5, 7, 10, 1, 3, 8 };\n\t\tSystem.out.print(\"排序前:\\t\");\n\t\tfor(int i=0;i<data.length;i++)\n\t\t{\n\t\t\tSystem.out.print(Integer.toString(data[i]));\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tSystem.out.println();\n\n\t\tint[] sort=MergeSort(data, 0, data.length);\n\t\tSystem.out.print(\"排序后:\\t\");\n\t\tfor(int i=0;i<sort.length;i++)\n\t\t{\n\t\t\tSystem.out.print(Integer.toString(sort[i]));\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\t\tint a[]= {3,1,-2,7,4,0};\n\t\tint n = a.length;\n\t\tfor(int i=0;i<n-1;i++) {\n\t\t\tint midInd= i;\n\t\t\tfor(int j=i;j<n;j++) {\n\t\t\t\tif(a[j]<a[midInd]) {\n\t\t\t\t\tmidInd=j;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tint temp = a[i]; ///Swap commands \n\t\t\ta[i]=a[midInd];\n\t\t\ta[midInd]=temp;\n\t\t\t\n\t\t\t\n\t\t}\n\t\tfor(int item:a) {\n\t\t\tSystem.out.print(item+\" \");\n\t\t}\n\n\t\n\n}",
"public void printPreorder() {\n System.out.print(\"preorder:\");\n printPreorder(overallRoot);\n System.out.println();\n }",
"private void sortCourses() {\n ctrl.sortCourses().forEach(System.out::println);\n }",
"public static boolean testSort() {\r\n Manager inst;\r\n try {\r\n inst = new PokemonTable();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n LinkedList<Pokemon> list;\r\n list = inst.sortByAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() < list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() > list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() < list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() > list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).getFavorite() && list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getFavorite() && !list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() < list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() > list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).isLegendary() && list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).isLegendary() && !list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) > 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) < 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() < list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() > list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() < list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() > list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() < list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() > list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"public static void main(String[] args)\n {\n String[] A = {\"Ken\", \"Pam\", \"Meg\", \"Jan\", \"Ned\",\n \"Peg\", \"Deb\", \"Jim\", \"Amy\", \"Tom\"};\n \n // print, sort, then print again\n printArray(A);\n sort(A);\n printArray(A); \n }",
"private void testInsertionSort() {\n System.out.println(\"------ TESTING : insertionSort() ------\");\n try{\n iTestFileList.insertionSort(); // calling insertion sort function\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n }",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t\tint a[]= {-1,4,2,6,8,1};\n\t\t\n\t\tArrays.sort(a);\n\t\t\n\t\tfor(int num:a)\n\t\t\tSystem.out.print(num+\" \");\n\t\t\n\t\t\n\t\tList<String> l=new ArrayList<>();\n\t\t\n\t\tl.add(\"nikhil\");\n\t\tl.add(\"ajay\");\n\t\tl.add(\"vijay\");\n\t\tl.add(\"pushpa\");\n\t\t\n\t\t\n\t\tCollections.sort(l);\n\t\t\n\t\tSystem.out.print(l);\n\n\t}",
"public static void leaders(int[] inputArray) {\n\t\tfor (int i = 0; i < inputArray.length; i++)\n {\n boolean flag = true;\n \n for (int j = i+1; j < inputArray.length; j++)\n {\n if (inputArray[j] > inputArray[i])\n {\n flag = false;\n \n break;\n }\n }\n \n if (flag)\n {\n System.out.print(inputArray[i]+\" \");\n }\n }\n\t\t\n\t}",
"@Override\n protected void runAlgorithm() {\n for (int i = 0; i < getArray().length; i++) {\n for (int j = i + 1; j < getArray().length; j++) {\n if (applySortingOperator(getValue(j), getValue(i))) {\n swap(i, j);\n }\n }\n }\n }",
"public static void main(String[] args) {\n String [] folge = {\"ab\",\"cd\", \"aa\"};\n new SortierenBeiEinfugen().sortiereAbsteigend(folge);\n System.out.println(Arrays.toString(folge));\n new SortierenBeiEinfugen().sortiereAufsteigend(folge);\n System.out.println(Arrays.toString(folge));\n\n\n\n\n\n\n int[] feld = {2,8,5,6,3,1,4,7};\n\n int countVergleich=0;\n int countTausch = 0;\n for (int i = 0; i < feld.length; i++) {\n for (int j = i; j > 0 ; j--) {\n countVergleich++;\n if (feld[j - 1]>(feld[j]) ) {\n int temp = feld[j];\n feld[j] = feld[j - 1];\n feld[j - 1] = temp;\n countTausch++;\n } else {\n System.out.println(countVergleich);\n System.out.println(countTausch);\n break;\n }\n }\n }\n }",
"public static void main(String[] args) {\n\t\tInsertionSort in = new InsertionSort();\n\t\t\n//\t\tint a[] = {2, 4, 1};\n//\t\tint a[] = {2};\n\t\tint a[] = {1, 2, 9, 1, 8};\n//\t\tin.straightInsertionSort(a);\n\t\tin.shellSort(a);\n\t\t\n\t\tPrint.printArray(a);\n\t}",
"public void sort() {\n ListNode start = head;\n ListNode position1;\n ListNode position2;\n\n // Going through each element of the array from the second element to the end\n while (start.next != null) {\n start = start.next;\n position1 = start;\n position2 = position1.previous;\n // Checks if previous is null and keeps swapping elements backwards till there\n // is an element that is bigger than the original element\n while (position2 != null && (position1.data < position2.data)) {\n swap(position1, position2);\n numberComparisons++;\n position1 = position2;\n position2 = position1.previous;\n }\n }\n }",
"public void insertionNumberSort()\n {\n\t for(int j=1; j<AL.size(); j++)\n\t {\n\t\t Generics temp = AL.get(j);\n\t\t int possibleIndex = j;\n\t\t \n\t\t while(possibleIndex>0 && Integer.parseInt(AL.get(possibleIndex - 1).toString()) < Integer.parseInt(temp.toString()))\n\t\t {\n\t\t\t AL.set(possibleIndex, AL.get(possibleIndex -1));\n\t\t\t possibleIndex--;\n\t\t\t \n\t\t }\n\t\t \n\t\t AL.set(possibleIndex, temp);\n\t }\n \n }",
"public void doTheAlgorithm() {\n this.swapCount = 0;\n this.compCount = 0;\n \n\t\tdoQuickSort(0, this.sortArray.length - 1);\n\t}",
"public static void main(String[] args) {\n\t\tListNode head=new ListNode(4);\n\t\thead.next=new ListNode(1);\n\t\thead.next.next=new ListNode(3);\n\t\thead.next.next.next=new ListNode(2);\n\t\tSystem.out.println(insertionSortList(head));\n\t}",
"public String sortBy();",
"public static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t int s = in.nextInt();\n\t int[] ar = new int[s];\n\t \n\t for(int i=0;i<s;i++){\n\t ar[i]=in.nextInt(); \n\t }\n\t \n\t long start = System.nanoTime();\n\t sort(ar);\n\t long end = System.nanoTime();\n\t \n\t long duration = (end-start);\n\t \n\t \n\t \n\t\tSystem.out.println(\"The Insertion sort was completed in \"+duration +\" nanoseconds\");\n\t\tprintArray(ar);\n\t}",
"public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }",
"@Override\n\tvoid sort(int[] array, SortingVisualizer display) {\n\t\tSystem.out.println(\"a\");\n\t\tboolean sorted = false;\n\t\tboolean h = true;\n\t\twhile (sorted == false) {\nh=true;\n\t\t\t// System.out.println(\"1\");\n\t\t\tRandom x = new Random();\n\t\t\tint y = x.nextInt(array.length);\n\n\t\t\tint el1 = array[y];\n\t\t\tint z = x.nextInt(array.length);\n\t\t\tint el2 = array[z];\n\n\t\t\tarray[y] = el2;\n\t\t\tarray[z] = el1;\n\t\t\tfor (int i = 0; i < array.length - 1; i++) {\n/*\n\t\t\t\tif (array[i] < array[i + 1]) {\n\n\t\t\t\t\th = true;\n\n\t\t\t\t}*/\n\n\t\t\t\tif (array[i] > array[i + 1]) {\n\t\t\t\t\th = false;\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (h == true) {\n\n\t\t\t\tsorted = true;\n\t\t\t}\n\n\t\t\tdisplay.updateDisplay();\n\t\t\t\n\t\t}\n\t}",
"public void step1(){\n\n Collections.sort(names, new Comparator<String>() {\n @Override\n public int compare(String a, String b) {\n return b.compareTo(a);\n }\n });\n }",
"public void oldSort()\n\t{\n\t\tfor (int index = 0; index < arraySize; index++) {\n\t\t\tfor (int secondIndex = index + 1; secondIndex < arraySize; secondIndex++) {\n\t\t\t\tint temp = 0;\n\t\t\t\tif (array[index] > array[secondIndex]) {\n\t\t\t\t\ttemp = array[index];\n\t\t\t\t\tarray[index] = array[secondIndex];\n\t\t\t\t\tarray[secondIndex] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"boolean isSortAscending();",
"public void printSortedByBubbleSort(int[] array){\r\n\t\tint temp;\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tfor (int j = 0; j < array.length - 1; j++) {\r\n\t\t\t\tif(array[j] > array[j + 1]){\r\n\t\t\t\t\ttemp = array[j];\r\n\t\t\t\t\tarray[j] = array[j + 1];\r\n\t\t\t\t\tarray[j + 1] = temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"\\nSorted by BubleSort: \");\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tSystem.out.print(array[i] + \" \");\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n ArrayList<SortObjects> a = new ArrayList<SortObjects>();\n\n SortObjects o = new SortObjects(\"Latha\", 23, 26000);\n SortObjects o2= new SortObjects(\"Ramya\", 20, 11000);\n SortObjects o3= new SortObjects(\"Kalai\", 29, 30000);\n SortObjects o4= new SortObjects(\"Vidya\", 24, 25000);\n a.add(o);\n a.add(o2);\n a.add(o3);\n a.add(o4);\n SortComparator s = new SortComparator();\n a.sort(s);\n System.out.println(a);\n \n \n\n\t}",
"public static void quickSortTest(){\n\t\tTransformer soundwave = new Transformer(\"Soundwave\", 'D', new int[] {8,9,2,6,7,5,6,10});\n\t\tTransformer bluestreak = new Transformer(\"Bluestreak\", 'A', new int[] {6,6,7,9,5,2,9,7});\n\t\tTransformer hubcap = new Transformer(\"Hubcap\", 'A', new int[] {4,4,4,4,4,4,4,4});\n\t\tTransformer abominus = new Transformer(\"Abominus\", 'D', new int[] {10,1,3,10,5,10,8,4});\n\t\t\n\t\tgame.addTransformer(soundwave);\n\t\tgame.addTransformer(bluestreak);\n\t\tgame.addTransformer(hubcap);\n\t\tgame.addTransformer(abominus);\n\t\t\n\t\tgame.sortCompetitorsByRank();\n\t\tgame.printSortedRoster();\n\t}",
"public static void main(String[] args) throws Exception{\n testSort();\n }",
"public void step4(){\n\n Collections.sort(names,(a,b)->b.compareTo(a));\n\n\n System.out.println(\"names sorted are :\"+names);\n }",
"public static void main(String[] args) {\n\t\tList<String> animal = new ArrayList<String>();\n\n\t\tanimal.add(\"Cat\");\n\t\tanimal.add(\"Mouse\");\n\t\tanimal.add(\"Lion\");\n\t\tanimal.add(\"Zeebra\");\n\t\tanimal.add(\"Bear\");\n\t\tanimal.add(\"Deer\");\n\n\t\t// Collections.sort(animal,new StringLengthComparator());\n\n\t\tCollections.sort(animal, new ReverseAlphabeticalComparator());\n\t\tfor (String animal1 : animal) {\n\n\t\t\tSystem.out.println(animal1);\n\t\t}\n\n\t\t/////////////////////////////// Sorting Numbers ////////////////////////////////\n\t\tList<Integer> numbers = new ArrayList<Integer>();\n\n\t\tnumbers.add(5);\n\t\tnumbers.add(31);\n\t\tnumbers.add(16);\n\t\tnumbers.add(605);\n\t\tnumbers.add(15);\n\n\t\tCollections.sort(numbers, new Comparator<Integer>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Integer num1, Integer num2) {\n\n\t\t\t\treturn -num1.compareTo(num2);\n\t\t\t}\n\n\t\t});\n\n\t\tfor (Integer num1 : numbers) {\n\n\t\t\tSystem.out.println(num1);\n\t\t}\n\t\t///////////////////////////// Sorting Arbitrary Objects ////////////////////////////\n\n\t\tList<Person> people = new ArrayList<Person>();\n\n\t\tpeople.add(new Person(3, \"Ajeer\"));\n\t\tpeople.add(new Person(1, \"Sudeer\"));\n\t\tpeople.add(new Person(2, \"Sureash\"));\n\t\tpeople.add(new Person(4, \"Sam\"));\n\t\t\n\t\t// Sort in Order of ID\n\t\tCollections.sort(people, new Comparator<Person>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Person p1, Person p2) {\n\t\t\t\tif (p1.getId() > p2.getId()) {\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\telse if (p1.getId()< p2.getId()) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t\tfor (Person person1 : people) {\n\n\t\t\tSystem.out.println(person1);\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t\t// Sort In Order of NAME....\n\t\tCollections.sort(people, new Comparator<Person>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Person p1, Person p2) {\n\t\t\t\n\t\t\t\treturn p1.getName().compareTo(p2.getName());\n\t\t\t}\n\t\t});\n\t\tfor (Person person1 : people) {\n\n\t\t\tSystem.out.println(person1);\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tint[] a={9,7,6,4,5,6,2,4,1,5,6,9,7,8};\n\t\tSystem.out.println(\"排序前的数组如下:\"+Arrays.toString(a));\n\t\tint temp;\n\t\tfor(int i=1;i<a.length;i++){\n\t\t\ttemp=a[i];\n\t\t\tint j=i-1;\n\t\t\twhile(j>=0&&a[j]>temp){\n\t\t\t\ta[j+1]=a[j];\n\t\t\t\t--j;\n\t\t\t\t\n\t\t\t}\n\t\t\ta[j+1]=temp;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"排序后的数组如下\"+Arrays.toString(a));\n\n\t}",
"public static void main(String[] args) {\r\n\t\tint[] array = {9,4,8,2,1,5,7,6,3};\r\n\t\t\r\n\t\tSystem.out.println(\"Before sort: \" + Arrays.toString(array));\r\n\t\tSystem.out.println(\"Sorting...\"); System.out.println(\"After sort: \" +\r\n\t\tArrays.toString(quicksort(array, 0, array.length - 1)));\r\n\t}",
"public void sort()\n {\n\tstrack.sort((Node n1, Node n2) ->\n\t{\n\t if (n1.getCost() < n2.getCost()) return -1;\n\t if (n1.getCost() > n2.getCost()) return 1;\n\t return 0;\n\t});\n }",
"private static String testSorts(int[] arr) {\n\t\tint[] initial = arr.clone();\n\t\tdouble start;\n\t\tdouble[] heapTime = new double[10];\n\t\tdouble[] quickTime = new double[10];\n\t\tdouble[] mergeTime = new double[10];\n\t\t\n\t\tfor (int i=0; i < 10; i++){ //runs 10 times\n\t arr = initial.clone();\n\t\t\tstart = System.nanoTime();\n\t Sorting.heapSort(arr);\n\t heapTime[i] = System.nanoTime()-start;\n\t \n\t arr = initial.clone();\n\t\t\tstart = System.nanoTime();\n\t\t\tSorting.quickSort(arr); \n\t quickTime[i] = System.nanoTime()-start;\n\t \n\t arr = initial.clone();\n\t\t\tstart = System.nanoTime();\n\t\t\tSorting.mergeSort(arr); \n\t mergeTime[i] = System.nanoTime()-start;\n\t\t}\n\t\t\n\t double heapMean= meanVal(heapTime) ;\n\t double quickMean= meanVal(quickTime);\n\t double mergeMean= meanVal(mergeTime);\n\t \n\t String result = \"Means | HeapSort: \" +heapMean + \" QuickSort: \" + quickMean + \" MergeSort: \" + mergeMean + \"\\n\" + \n\t \"Variance| HeapSort: \"+ varianceVal(heapTime, heapMean)+ \" QuickSort: \" + varianceVal(quickTime, quickMean)+\n\t \" MergeSort: \" +varianceVal(mergeTime, mergeMean);\n\t \n\t return result;\n\t\t\n\t}",
"public static void main(String[] args) {\n int[] arrayList = {4, 2, 5, 6, 8};\n insertionSort(arrayList);\n printArray(arrayList);\n\n }",
"public void sortAllRows(){\n\t\t/* code goes here */ \n\t\t\n\t\t\n\t\t//WHY SHOULD THEY BE SORTED LIKE THE EXAMPLE SAYS???????\n\t\t\n\t}",
"public static void main(String[] args) {\n int arr[] = { 6, 7, 0, 2, 8, 1, 3, 9, 4, 5 };\n int temp[] = new int[10];\n\n SapXepTron sapXeptron = new SapXepTron();\n System.out.println(\"Mang du lieu dau vao: \");\n sapXeptron.display(arr);\n System.out.println(\"-----------------------------\");\n sapXeptron.sort(arr, temp, 0, arr.length - 1);\n System.out.println(\"-----------------------------\");\n System.out.println(\"\\nMang sau khi da sap xep: \");\n sapXeptron.display(arr);\n }",
"private void sort()\n {\n // This implements Shell sort.\n // Unfortunately we cannot use the sorting functions from the library\n // (e.g. java.util.Arrays.sort), since the ones that work on int\n // arrays do not accept a comparison function, but only allow\n // sorting into natural order.\n int jump = length;\n boolean done;\n \n while( jump>1 ){\n jump /= 2;\n \n do {\n done = true;\n \n for( int j = 0; j<(length-jump); j++ ){\n int i = j + jump;\n \n if( !areCorrectlyOrdered( indices[j], indices[i] ) ){\n // Things are in the wrong order, swap them and step back.\n int tmp = indices[i];\n indices[i] = indices[j];\n indices[j] = tmp;\n done = false;\n }\n }\n } while( !done );\n }\n \n // TODO: integrate this with the stuff above.\n for( int i=1; i<length; i++ ){\n commonality[i] = commonLength( indices[i-1], indices[i] );\n }\n commonality[0] = -1;\n }",
"void sortV();",
"public static void main(String []args){\n int array[] = {4,7,2,9,8,1,6,5,3};\n sort(array,0, array.length-1);\n for(int i:array)\n System.out.print(i+\" \");\n }",
"private static void helperTSort(DiGraph graph){\n Integer[] sortedList;\n try {\n sortedList = graph.topSort();\n System.out.print(\"The topologically sorted sequence of vertices: \");\n\n for(int i = 0; i < sortedList.length; i++){\n if( i == 0)\n System.out.print(sortedList[i]);\n else{\n System.out.print(\", \" + sortedList[i]);\n }\n }\n System.out.println();\n } catch (IllegalArgumentException e) {\n System.out.println(e);\n }\n }",
"@Override\n public void sortAndCount() {\n Insertion.reset();\n Insertion.sort(arrayForTests);\n comp = Sort.getComparisonOperations(); // Sort.getComp();\n copy = Sort.getCopyOperations(); // Sort.getCopy();\n }",
"private static void evaluateMergesortVogella() {\n\n // LOGGER.info(\"evaluating sequential Mergesort by Vogella\");\n\n // The time before start to sort.\n long startTime;\n\n // The time after sort.\n long endTime;\n\n // generate sorted array\n numbers = generateSortedArray(ARRAY_SIZE);\n //System.out.println(\"Array (unsortiert): \" + arrayToString(numbers));\n\n // get array to evaluate\n generateWorstUnsortArray(numbers);\n //System.out.println(\"Array (unsortiert): \" + arrayToString(numbers));\n\n // get systemtime before sorting\n startTime = System.currentTimeMillis();\n\n // sort\n msVogella.sort(numbers);\n\n // get systemtime after sorting\n endTime = System.currentTimeMillis();\n\n // show the result of the sorting process\n System.out.println(\"\\n- Sortierergebnis: Sequential (Vogella) -\");\n System.out.println(\"Die sortierte Folge lautet: \" + arrayToString(numbers));\n System.out.printf(\"Für die Sortierung wurden %d ms benötigt\", endTime - startTime);\n System.out.println(\"\\n------------------------------------------------\\n\");\n }",
"protected void sortCode() {\n for (int i = 1; i < codeCount; i++) {\n int who = i;\n for (int j = i + 1; j < codeCount; j++) {\n if (code[j].getFileName().compareTo(code[who].getFileName()) < 0) {\n who = j; // this guy is earlier in the alphabet\n }\n }\n if (who != i) { // swap with someone if changes made\n SketchCode temp = code[who];\n code[who] = code[i];\n code[i] = temp;\n }\n }\n }",
"public static void main(String args[]) {\n int array[][] = {{1, 2, 3, 4, 5},\n {3, 4, 5, 1, 2},\n {5, 2, 3, 4, 1},\n {2, 3, 1, 4, 5},\n {4, 2, 3, 1, 5}};\n\n System.out.println(\"The array is initially \");\n display(array);\n System.out.println();\n\n sortByFirst(array);\n System.out.println(\"The array after sorting is \");\n display(array);\n System.out.println();\n }"
] | [
"0.7108104",
"0.7037572",
"0.69379663",
"0.6805804",
"0.67414784",
"0.67182076",
"0.6711482",
"0.6681777",
"0.66371244",
"0.6628222",
"0.6623443",
"0.6616382",
"0.6616382",
"0.6579741",
"0.6569543",
"0.6550508",
"0.6547107",
"0.65227056",
"0.6476374",
"0.6472823",
"0.64450043",
"0.6438894",
"0.64387447",
"0.6430051",
"0.6425977",
"0.6401153",
"0.6394842",
"0.6380621",
"0.637028",
"0.63657427",
"0.63585824",
"0.6358237",
"0.6345146",
"0.6343428",
"0.6336757",
"0.63271886",
"0.632361",
"0.63192624",
"0.63155025",
"0.63134474",
"0.6303554",
"0.630113",
"0.62773985",
"0.62378645",
"0.62246585",
"0.6223436",
"0.6216356",
"0.6215391",
"0.62096906",
"0.6182607",
"0.6176154",
"0.6170845",
"0.61591524",
"0.61570644",
"0.615492",
"0.6150979",
"0.61502707",
"0.61469305",
"0.61461",
"0.6143346",
"0.61386156",
"0.6131294",
"0.61296326",
"0.6125924",
"0.61234903",
"0.6120706",
"0.6120545",
"0.61078745",
"0.6101323",
"0.60923356",
"0.60830325",
"0.6057384",
"0.6049112",
"0.60481614",
"0.60421664",
"0.6038882",
"0.6038362",
"0.60287124",
"0.60243565",
"0.60218287",
"0.60188663",
"0.6016203",
"0.6015789",
"0.6009139",
"0.5996113",
"0.5994795",
"0.5993322",
"0.5991231",
"0.5989261",
"0.59852207",
"0.59847504",
"0.59766513",
"0.5970959",
"0.596768",
"0.5965806",
"0.5960098",
"0.59594274",
"0.59530926",
"0.595116",
"0.5950267",
"0.59470385"
] | 0.0 | -1 |
Gets the organizationId attribute. | public String getOrganizationId() {
return organizationId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }",
"public String getOrganizationId() {\r\n return organizationId;\r\n }",
"public Long getOrganizationId() {\n return organizationId;\n }",
"public Long getOrganizationId() {\n return organizationId;\n }",
"public long getOrganizationId();",
"public java.lang.String getId_Organization() {\n return id_Organization;\n }",
"String organizationId();",
"public java.lang.String getOrganizationId()\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(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }",
"public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }",
"public com.microsoft.schemas._2003._10.serialization.Guid xgetOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas._2003._10.serialization.Guid target = null;\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n return target;\r\n }\r\n }",
"public long getOrgId() {\r\n return orgId;\r\n }",
"public Integer getOrgId() {\n\t\treturn orgId;\n\t}",
"public Long getOrgId() {\n return orgId;\n }",
"public Long getOrgId() {\n return orgId;\n }",
"public Long getOrgId() {\n return orgId;\n }",
"public Long getOrgId() {\n return orgId;\n }",
"public Long getOrgId() {\n return orgId;\n }",
"public String getOrgId() {\n\t\treturn orgId;\n\t}",
"public BigDecimal getOrgId() {\n return orgId;\n }",
"public Long gettOrganizationId() {\n\t\treturn tOrganizationId;\n\t}",
"@JsonGetter(\"orgId\")\r\n public long getOrgId ( ) { \r\n return this.orgId;\r\n }",
"@AutoEscape\n\tpublic String getOrgId();",
"String getOrganizationPartyId();",
"@Override\n public long getOrganizationId() {\n return _usersCatastropheOrgs.getOrganizationId();\n }",
"@ApiModelProperty(example = \"org.acme\", required = true, value = \"Originator of the history item\")\n public String getOrganizationId() {\n return organizationId;\n }",
"public String getOrganization() {\n return organization;\n }",
"public void setOrganizationId(long organizationId);",
"public String getOrganizationId(String orgName) {\r\n \tString orgId = \"\";\r\n HashMap map;\r\n \tfor(int g=0; g<this.organizations.size(); g++) {\r\n \tmap = (HashMap) this.organizations.get(g);\r\n \tif (orgName.equals(map.get(\"LOCATION_NAME\"))) {\r\n \t\torgId = (String) map.get(\"ORGANIZATION_ID\");\r\n \t}\r\n }\r\n return orgId;\r\n }",
"public String getp_org_id() {\n return (String)getNamedWhereClauseParam(\"p_org_id\");\n }",
"public String getOrganization() {\n\t\treturn organization;\n\t}",
"public String getOrganId() {\n return organId;\n }",
"public String getOrganization ()\n {\n return this.organization;\n }",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public String organization() {\n return this.organization;\n }",
"public String getOrganizationCode() {\n return organizationCode;\n }",
"public Organization getOrganization(){\r\n\t\treturn organization;\r\n\t}",
"public int getPersonOrgID() {\n return personOrgID;\n }",
"@Schema(example = \"Passbase Inc.\", description = \"Name of the organization that owns this project\")\n public String getOrganization() {\n return organization;\n }",
"String getOrganization();",
"public String getOrganizationName() {\n return (orgName);\n }",
"public String getOrganizationName() {\n\n \n return organizationName;\n\n }",
"public Organization getOrganization() {\n return organization;\n }",
"public Organization getOrganization() {\n return organization;\n }",
"public void setOrganizationId(Number value) {\n setAttributeInternal(ORGANIZATIONID, value);\n }",
"public String getOrgNo() {\r\n return orgNo;\r\n }",
"@Override\n\tpublic long getEsfOrganizationId() {\n\t\treturn _esfTournament.getEsfOrganizationId();\n\t}",
"public static String getCurrentUserOrgId() {\n DirectoryManager directoryManager = (DirectoryManager) appContext.getBean(\"directoryManager\");\n String username = getCurrentUsername();\n return Optional.of(username)\n .map(directoryManager::getUserByUsername)\n .map(User::getEmployments)\n .map(o -> (Set<Employment>)o)\n .map(Collection::stream)\n .orElseGet(Stream::empty)\n .findFirst()\n .map(Employment::getOrganizationId)\n .orElse(\"\");\n }",
"public void setId_Organization(java.lang.String id_Organization) {\n this.id_Organization = id_Organization;\n }",
"public void setOrganizationId(String organizationId) {\r\n this.organizationId = organizationId;\r\n }",
"@ApiModelProperty(value = \"Unique identifier of the master account organization\")\n public Long getId() {\n return id;\n }",
"public com.hps.july.persistence.OrganizationKey getOrganizationKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((com.hps.july.persistence.OrganizationKey) __getCache(\"organizationKey\")));\n }",
"@AutoEscape\n\tpublic String getOrganization();",
"public void setOrganizationId(Long organizationId) {\n this.organizationId = organizationId;\n }",
"public void setOrganizationId(Long organizationId) {\n this.organizationId = organizationId;\n }",
"public int getAD_Tree_Org_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_Tree_Org_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public String getOid() {\n return getProperty(Property.OID);\n }",
"public int getAD_OrgTrx_ID();",
"public int getAD_OrgTrx_ID();",
"public final String getOrganisation() {\n return organisation;\n }",
"@JsonProperty(\"id\")\n@ApiModelProperty(example = \"rockset\", value = \"Unique identifier for the organization.\")\n public String getId() {\n return id;\n }",
"OrganizationMaster getOrganization(Long uniqueId);",
"public void setOrganizationId(String organizationId) {\n this.organizationId = organizationId;\n }",
"public String getOrganizationUrl() {\n\n \n return organizationUrl;\n\n }",
"public Long getRestrictionsOrganizationsId() {\n return restrictionsOrganizationsId;\n }",
"public String getIdentificationIssuingOrg() {\n return this.identificationIssuingOrg;\n }",
"public String gettOrganizationCode() {\n\t\treturn tOrganizationCode;\n\t}",
"public String getOrgName() {\n return orgName;\n }",
"public Integer getOrgCode() {\n\t\treturn orgCode;\n\t}",
"public String getOrgName() {\r\n return orgName;\r\n }",
"public java.lang.String getOrganizationType() {\n return organizationType;\n }",
"public void setOrgId(String orgId);",
"public String getOrganizationTagNumber() {\n return organizationTagNumber;\n }",
"private int getBank_Org_ID ()\n\t{\n\t\tif (m_C_BankAccount_ID == 0)\n\t\t\treturn 0;\n\t\t//\n\t\tMBankAccount ba = MBankAccount.get(getCtx(), m_C_BankAccount_ID);\n\t\treturn ba.getAD_Org_ID();\n\t}",
"public java.lang.String getOrgName() {\n return orgName;\n }",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"public String getOrgname() {\n return orgname;\n }",
"public java.lang.String getOrgName() {\n return OrgName;\n }",
"public Long getCreateOrgId() {\n return createOrgId;\n }",
"public Long getCreateOrgId() {\n return createOrgId;\n }",
"public Long getCreateOrgId() {\n return createOrgId;\n }",
"public String getOrganizationEmail() {\n\n \n return organizationEmail;\n\n }",
"public String getOrganizationText() {\n return organizationText;\n }",
"java.lang.String getBusinessId();"
] | [
"0.8544945",
"0.84024775",
"0.83336157",
"0.83336157",
"0.81429446",
"0.80378234",
"0.80198026",
"0.7991703",
"0.77231365",
"0.7697433",
"0.7558807",
"0.7541266",
"0.7526924",
"0.75072074",
"0.75072074",
"0.75072074",
"0.75072074",
"0.75072074",
"0.7468377",
"0.7342058",
"0.72631955",
"0.72561175",
"0.7235707",
"0.7231973",
"0.71481985",
"0.70888066",
"0.70401156",
"0.70228165",
"0.70141155",
"0.69934905",
"0.69873",
"0.69378394",
"0.6922473",
"0.68759733",
"0.68759733",
"0.68759733",
"0.68759733",
"0.68759733",
"0.68759733",
"0.68759733",
"0.68759733",
"0.68759733",
"0.68759733",
"0.68759733",
"0.68759733",
"0.68759733",
"0.68576694",
"0.68356067",
"0.6654941",
"0.6643094",
"0.6531715",
"0.6470269",
"0.6468068",
"0.64633536",
"0.6436133",
"0.6436133",
"0.6435864",
"0.6428744",
"0.6393249",
"0.63204855",
"0.62825835",
"0.6238062",
"0.6231653",
"0.6225361",
"0.62074625",
"0.6200919",
"0.6200919",
"0.61881715",
"0.6187954",
"0.61840546",
"0.61840546",
"0.612921",
"0.6128765",
"0.6127191",
"0.6109452",
"0.6107254",
"0.60787237",
"0.60670245",
"0.6060721",
"0.6031949",
"0.6027422",
"0.6019597",
"0.6010164",
"0.6006771",
"0.60024834",
"0.5990846",
"0.5976898",
"0.5946101",
"0.5946101",
"0.5946101",
"0.5946101",
"0.5946101",
"0.5934927",
"0.59297454",
"0.59265745",
"0.59265745",
"0.59265745",
"0.59226966",
"0.5913692",
"0.59071213"
] | 0.840367 | 1 |
Sets the organizationId attribute value. | public void setOrganizationId(String organizationId) {
this.organizationId = organizationId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setOrganizationId(Number value) {\n setAttributeInternal(ORGANIZATIONID, value);\n }",
"public void setOrganizationId(long organizationId);",
"public void setOrganizationId(java.lang.String organizationId)\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(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ORGANIZATIONID$4);\r\n }\r\n target.setStringValue(organizationId);\r\n }\r\n }",
"public void xsetOrganizationId(com.microsoft.schemas._2003._10.serialization.Guid organizationId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas._2003._10.serialization.Guid target = null;\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().add_element_user(ORGANIZATIONID$4);\r\n }\r\n target.set(organizationId);\r\n }\r\n }",
"public void setId_Organization(java.lang.String id_Organization) {\n this.id_Organization = id_Organization;\n }",
"public void setOrganizationId(String organizationId) {\r\n this.organizationId = organizationId;\r\n }",
"public void setOrganizationId(Long organizationId) {\n this.organizationId = organizationId;\n }",
"public void setOrganizationId(Long organizationId) {\n this.organizationId = organizationId;\n }",
"@Override\n public void setOrganizationId(long organizationId) {\n _usersCatastropheOrgs.setOrganizationId(organizationId);\n }",
"public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }",
"public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }",
"public void setOrgId(String orgId);",
"public String getOrganizationId() {\r\n return organizationId;\r\n }",
"@JsonSetter(\"orgId\")\r\n public void setOrgId (long value) { \r\n this.orgId = value;\r\n }",
"public String getOrganizationId() {\n return organizationId;\n }",
"public Long getOrganizationId() {\n return organizationId;\n }",
"public Long getOrganizationId() {\n return organizationId;\n }",
"public void setOrgId(long orgId) {\r\n this.orgId = orgId;\r\n }",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"protected void setOrganization(String organization) {\n this.organization = organization;\n }",
"public void setPersonOrgID(int value) {\n this.personOrgID = value;\n }",
"public void setOrganization(String organization);",
"public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }",
"public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }",
"public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }",
"public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }",
"public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }",
"public void setOrgId(Integer orgId) {\n\t\tthis.orgId = orgId;\n\t}",
"public void setOrganization(Organization organization){\r\n\t\tthis.organization = organization;\r\n\t}",
"public void setOrganization(Organization organization) {\n this.organization = organization;\n }",
"public void setOrganization(Organization organization) {\n this.organization = organization;\n }",
"public void unsetOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(ORGANIZATIONID$4, 0);\r\n }\r\n }",
"public void setOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;",
"public void setp_org_id(String value) {\n setNamedWhereClauseParam(\"p_org_id\", value);\n }",
"public java.lang.String getId_Organization() {\n return id_Organization;\n }",
"public void setOrgId(String orgId) {\n\t\tthis.orgId = orgId;\n\t}",
"public long getOrganizationId();",
"public void setOrgId(BigDecimal orgId) {\n this.orgId = orgId;\n }",
"public void settOrganizationId(Long tOrganizationId) {\n\t\tthis.tOrganizationId = tOrganizationId;\n\t}",
"public String getOrgId() {\n\t\treturn orgId;\n\t}",
"public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }",
"public void setOrganization(String organization) {\n\t\tthis.organization = organization;\n\t}",
"public Integer getOrgId() {\n\t\treturn orgId;\n\t}",
"public void setCalendarId(final String val) {\n if (Util.checkNull(val) != null) {\n calendarId.setA(val);\n }\n }",
"public long getOrgId() {\r\n return orgId;\r\n }",
"@ApiModelProperty(example = \"org.acme\", required = true, value = \"Originator of the history item\")\n public String getOrganizationId() {\n return organizationId;\n }",
"public Long getOrgId() {\n return orgId;\n }",
"public Long getOrgId() {\n return orgId;\n }",
"public Long getOrgId() {\n return orgId;\n }",
"public Long getOrgId() {\n return orgId;\n }",
"public Long getOrgId() {\n return orgId;\n }",
"public final void setOrganisation(String value) {\n organisation = value;\n }",
"public Long gettOrganizationId() {\n\t\treturn tOrganizationId;\n\t}",
"public void setOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setOrganization(arg0);\n }",
"@Override\n\tpublic void setEsfOrganizationId(long esfOrganizationId) {\n\t\t_esfTournament.setEsfOrganizationId(esfOrganizationId);\n\t}",
"public void setOrganizationUrl(String organizationUrl) {\n \n this.organizationUrl = organizationUrl;\n\n }",
"public void setOrganId(String organId) {\n this.organId = organId;\n }",
"String organizationId();",
"public void setIdOrganizacion(int idOrganizacion)\r\n/* 99: */ {\r\n/* 100:160 */ this.idOrganizacion = idOrganizacion;\r\n/* 101: */ }",
"public java.lang.String getOrganizationId()\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(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public void setOrganizationAddress(String organizationAddress) {\n \n this.organizationAddress = organizationAddress;\n\n }",
"public void setIdOrganizacion(int idOrganizacion)\r\n/* 113: */ {\r\n/* 114:127 */ this.idOrganizacion = idOrganizacion;\r\n/* 115: */ }",
"public BigDecimal getOrgId() {\n return orgId;\n }",
"public void setIdOrganizacion(int idOrganizacion)\r\n/* 95: */ {\r\n/* 96:126 */ this.idOrganizacion = idOrganizacion;\r\n/* 97: */ }",
"public void setOrganizationName(String organizationName) {\n \n this.organizationName = organizationName;\n\n }",
"public void setIdOrganizacion(int idOrganizacion)\r\n/* 88: */ {\r\n/* 89:157 */ this.idOrganizacion = idOrganizacion;\r\n/* 90: */ }",
"@JsonGetter(\"orgId\")\r\n public long getOrgId ( ) { \r\n return this.orgId;\r\n }",
"public void secondarySetOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;",
"public void setOrganizationText(String organizationText) {\n this.organizationText = organizationText;\n }",
"public void setContactOrganization(String contactOrganization) {\n this.contactOrganization = contactOrganization;\n }",
"public void setOrganizationCode(String organizationCode) {\n this.organizationCode = organizationCode;\n }",
"public boolean isSetOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(ORGANIZATIONID$4) != 0;\r\n }\r\n }",
"@AutoEscape\n\tpublic String getOrgId();",
"public void setAD_Tree_Org_ID(int AD_Tree_Org_ID) {\n\t\tif (AD_Tree_Org_ID <= 0)\n\t\t\tset_ValueNoCheck(\"AD_Tree_Org_ID\", null);\n\t\telse\n\t\t\tset_ValueNoCheck(\"AD_Tree_Org_ID\", new Integer(AD_Tree_Org_ID));\n\t}",
"public void xsetOrganizationVersion(org.apache.xmlbeans.XmlString organizationVersion)\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(ORGANIZATIONVERSION$6, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ORGANIZATIONVERSION$6);\r\n }\r\n target.set(organizationVersion);\r\n }\r\n }",
"public void setHC_Org2_ID (int HC_Org2_ID);",
"@JsonSetter(\"company_id\")\n public void setCompanyId (String value) { \n this.companyId = value;\n }",
"public String getOrganId() {\n return organId;\n }",
"public void setOrgNo(String orgNo) {\r\n this.orgNo = orgNo;\r\n }",
"public void setAllContactId(final String val) {\n if (Util.checkNull(val) != null) {\n ctctId.setA(val);\n }\n }",
"public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);",
"public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);",
"public void setOrganizationVersion(java.lang.String organizationVersion)\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(ORGANIZATIONVERSION$6, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ORGANIZATIONVERSION$6);\r\n }\r\n target.setStringValue(organizationVersion);\r\n }\r\n }",
"public com.microsoft.schemas._2003._10.serialization.Guid xgetOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas._2003._10.serialization.Guid target = null;\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n return target;\r\n }\r\n }",
"private void setAId(int value) {\n \n aId_ = value;\n }",
"public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }",
"public String getOrganizationCode() {\n return organizationCode;\n }",
"public void secondarySetOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetOrganization(arg0);\n }"
] | [
"0.8266839",
"0.8153391",
"0.8122145",
"0.80504733",
"0.7904958",
"0.7626826",
"0.75822085",
"0.75822085",
"0.7438747",
"0.7349569",
"0.7349569",
"0.7169491",
"0.71658236",
"0.7150487",
"0.7084765",
"0.6973984",
"0.6973984",
"0.6951871",
"0.68523294",
"0.68523294",
"0.68523294",
"0.68523294",
"0.68523294",
"0.68523294",
"0.68523294",
"0.68523294",
"0.68523294",
"0.68523294",
"0.68523294",
"0.68523294",
"0.68523294",
"0.67808634",
"0.67265993",
"0.6675731",
"0.6665645",
"0.6665645",
"0.6665645",
"0.6665645",
"0.6665645",
"0.6619056",
"0.6613046",
"0.6604717",
"0.6604717",
"0.6541225",
"0.65362066",
"0.65247923",
"0.65035206",
"0.6497036",
"0.6371626",
"0.6344717",
"0.63263947",
"0.62199455",
"0.6201688",
"0.61834264",
"0.61782026",
"0.61751235",
"0.61746055",
"0.612452",
"0.60999364",
"0.60999364",
"0.60999364",
"0.60999364",
"0.60999364",
"0.6025973",
"0.5976933",
"0.5963751",
"0.5926698",
"0.59150636",
"0.59056693",
"0.5880306",
"0.5859113",
"0.5837284",
"0.5835432",
"0.58184004",
"0.5811806",
"0.5811339",
"0.579175",
"0.5779026",
"0.5772523",
"0.5769363",
"0.573109",
"0.5699823",
"0.56749576",
"0.5673856",
"0.56692106",
"0.56193817",
"0.56085914",
"0.5590053",
"0.5589789",
"0.5539763",
"0.55338585",
"0.5508039",
"0.5506728",
"0.5506728",
"0.5489287",
"0.54885995",
"0.54542905",
"0.54501396",
"0.54407185",
"0.54340094"
] | 0.75004166 | 8 |
Gets the organization attribute. | public Organization getOrganization() {
return organization;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getOrganization() {\n return organization;\n }",
"public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }",
"public String getOrganization ()\n {\n return this.organization;\n }",
"public String organization() {\n return this.organization;\n }",
"public String getOrganization() {\n\t\treturn organization;\n\t}",
"public Organization getOrganization(){\r\n\t\treturn organization;\r\n\t}",
"String getOrganization();",
"public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }",
"public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }",
"@Schema(example = \"Passbase Inc.\", description = \"Name of the organization that owns this project\")\n public String getOrganization() {\n return organization;\n }",
"@AutoEscape\n\tpublic String getOrganization();",
"public String getOrganizationId() {\r\n return organizationId;\r\n }",
"public String getOrganizationId() {\n return organizationId;\n }",
"public String getOrganizationName() {\n return (orgName);\n }",
"public final String getOrganisation() {\n return organisation;\n }",
"public java.lang.String getId_Organization() {\n return id_Organization;\n }",
"public Long getOrganizationId() {\n return organizationId;\n }",
"public Long getOrganizationId() {\n return organizationId;\n }",
"public\t Organization getOrganizationHeader()\n { return (Organization) this.getHeader(OrganizationHeader.NAME); }",
"public String getOrganizationName() {\n\n \n return organizationName;\n\n }",
"public String getOrganizationCode() {\n return organizationCode;\n }",
"public String getOrgan() {\n\t\treturn this.organ;\n\t}",
"public java.lang.String getOrganizationId()\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(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public String getOrgName() {\r\n return orgName;\r\n }",
"public String getOrgName() {\n return orgName;\n }",
"public long getOrganizationId();",
"public String getOrgname() {\n return orgname;\n }",
"public String getOrganizationText() {\n return organizationText;\n }",
"public java.lang.String getOrgName() {\n return orgName;\n }",
"public String getOrganId() {\n return organId;\n }",
"public java.lang.String getOrgName() {\n return OrgName;\n }",
"String organizationId();",
"Party getOrganizationParty();",
"String organizationName();",
"public java.lang.String getOrganizationType() {\n return organizationType;\n }",
"public long getOrgId() {\r\n return orgId;\r\n }",
"public String getOrgNo() {\r\n return orgNo;\r\n }",
"public Long getOrgId() {\n return orgId;\n }",
"public Long getOrgId() {\n return orgId;\n }",
"public Long getOrgId() {\n return orgId;\n }",
"public Long getOrgId() {\n return orgId;\n }",
"public Long getOrgId() {\n return orgId;\n }",
"public StrColumn getOrganisation() {\n return delegate.getColumn(\"organisation\", DelegatingStrColumn::new);\n }",
"@JsonGetter(\"orgId\")\r\n public long getOrgId ( ) { \r\n return this.orgId;\r\n }",
"public String getOrganizationAddress() {\n\n \n return organizationAddress;\n\n }",
"public VOOrganization getOrganization() {\n\n if (organization == null) {\n organization = new VOOrganization();\n FacesContext fc = FacesContext.getCurrentInstance();\n Locale locale = fc.getViewRoot().getLocale();\n organization.setLocale(locale.toString());\n }\n return organization;\n }",
"public String getType() {\n\t\t\treturn \"organization\";\n\t\t}",
"public com.hps.july.persistence.Organization getOrganization() throws java.rmi.RemoteException, javax.ejb.FinderException;",
"@AutoEscape\n\tpublic String getOrgId();",
"public String getOrgId() {\n\t\treturn orgId;\n\t}",
"public BigDecimal getOrgId() {\n return orgId;\n }",
"public RepresentedOrganization getRepresentedOrganization() {\n\t\treturn representedOrganization;\n\t}",
"public String getOrganizationUrl() {\n\n \n return organizationUrl;\n\n }",
"public com.microsoft.schemas._2003._10.serialization.Guid xgetOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas._2003._10.serialization.Guid target = null;\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n return target;\r\n }\r\n }",
"public Integer getOrgId() {\n\t\treturn orgId;\n\t}",
"public String getOrganizationType() {\n\t\treturn organizationType;\n\t}",
"public String getOrgCode() {\n return orgCode;\n }",
"public String getOrgCode() {\n return orgCode;\n }",
"@ApiModelProperty(example = \"org.acme\", required = true, value = \"Originator of the history item\")\n public String getOrganizationId() {\n return organizationId;\n }",
"@ApiModelProperty(value = \"Details of the organization as provided to the issuer.\")\n public OrganizationDetails getOrgDetails() {\n return orgDetails;\n }",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public int getAD_Org_ID();",
"public String getJdOrg() {\r\n\t\treturn jdOrg;\r\n\t}",
"@Override\n\tpublic java.lang.String getEsfOrganization() {\n\t\treturn _esfShooterAffiliationChrono.getEsfOrganization();\n\t}",
"public String getOrganizationEmail() {\n\n \n return organizationEmail;\n\n }",
"@Override\n public long getOrganizationId() {\n return _usersCatastropheOrgs.getOrganizationId();\n }",
"public com.hps.july.persistence.OrganizationKey getOrganizationKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((com.hps.july.persistence.OrganizationKey) __getCache(\"organizationKey\")));\n }",
"public String getp_org_id() {\n return (String)getNamedWhereClauseParam(\"p_org_id\");\n }",
"public Account getOrganizationOwnerAccount() {\n return organizationOwnerAccount;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getConsortium() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONSORTIUM_PROP.get());\n }",
"@Override\n\tpublic OrganizationVO getOrganization(String name) throws RemoteException {\n\t\treturn new OrganizationVO(\"1\",Organizationtype.hall);\n\t}",
"public com.hps.july.persistence.OrganizationAccessBean getOrganization() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n instantiateEJB();\n com.hps.july.persistence.Organization localEJBRef = ejbRef().getOrganization();\n if ( localEJBRef != null )\n return new com.hps.july.persistence.OrganizationAccessBean(localEJBRef);\n else\n return null;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getConsortium() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONSORTIUM_PROP.get());\n }",
"public String getOrgNm()\n\t{\n\t\treturn mOrgNm;\n\t}",
"public Banking_organizationPersistence getBanking_organizationPersistence() {\n return banking_organizationPersistence;\n }",
"public void setOrganization(String organization);",
"public Long gettOrganizationId() {\n\t\treturn tOrganizationId;\n\t}",
"OrganizationMaster getOrganization(Long uniqueId);",
"public Integer getOrgCode() {\n\t\treturn orgCode;\n\t}",
"public int getPersonOrgID() {\n return personOrgID;\n }",
"public String getOrgCd() {\r\n return orgCd;\r\n }",
"public String gettOrganizationCode() {\n\t\treturn tOrganizationCode;\n\t}",
"public java.lang.CharSequence getKdOrg() {\n return kd_org;\n }",
"public java.lang.CharSequence getKdOrg() {\n return kd_org;\n }",
"@Override\n\tpublic TbOrg getOwnOrg() {\n\t\treturn tbOrgMapper.getOwnOrg();\n\t}",
"public java.lang.String getOrgCustomer() {\n\treturn orgCustomer;\n}",
"String getOrganizationPartyId();",
"public Organisation getOrganisation() {\n\t\tif (null == organisation) {\n\t\t\t//Load the Organisation with the given orgPrefix\n\t\t\tString orgPrefix = ConfigurationFactory.getConfiguration(Configuration.DEPLOYMENT_CONFIG_HIERA_ORGANISATION_PREFIX);\n\t\t\tif (StringUtils.isBlank(orgPrefix)) {\n\t\t\t\tthrow new IllegalArgumentException(\"No Organisation prefix specified (\" + Configuration.DEPLOYMENT_CONFIG_HIERA_ORGANISATION_PREFIX + \")\");\n\t\t\t}\n\t\t\torganisation = ConfigurationFactory.getOrganisations().get(orgPrefix);\n\t\t\tif (organisation == null) {\n\t\t\t\tthrow new IllegalArgumentException(\"No Organisation (\" + ConfigurationFactory.ORGANISATIONS + \") found with prefix: \" + orgPrefix);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn organisation;\n\t}"
] | [
"0.79180634",
"0.79081774",
"0.78894156",
"0.78248495",
"0.78155863",
"0.77175796",
"0.75889456",
"0.73210806",
"0.73143893",
"0.7299385",
"0.7257271",
"0.7232387",
"0.7219396",
"0.71937484",
"0.717655",
"0.7131058",
"0.70341676",
"0.70341676",
"0.7022272",
"0.70076084",
"0.69188625",
"0.6869985",
"0.6845305",
"0.6758104",
"0.67568266",
"0.67364526",
"0.6703651",
"0.6701486",
"0.6695242",
"0.66892725",
"0.6666026",
"0.6642281",
"0.663186",
"0.6629652",
"0.6621299",
"0.6613585",
"0.66080403",
"0.6582854",
"0.6582854",
"0.6582854",
"0.6582854",
"0.6582854",
"0.6567336",
"0.6549105",
"0.65484047",
"0.6528029",
"0.6523758",
"0.65173745",
"0.64950323",
"0.6472794",
"0.64434683",
"0.641391",
"0.6411228",
"0.637281",
"0.63709265",
"0.63636965",
"0.6330873",
"0.6330873",
"0.63277894",
"0.6322252",
"0.6287876",
"0.6287876",
"0.6287876",
"0.6287876",
"0.6287876",
"0.6287876",
"0.6287876",
"0.6287876",
"0.6287876",
"0.6287876",
"0.6287876",
"0.6287876",
"0.6287876",
"0.6282531",
"0.62782943",
"0.6246787",
"0.6246353",
"0.6245597",
"0.6209442",
"0.6201721",
"0.6200906",
"0.61661935",
"0.6164093",
"0.61637414",
"0.6145359",
"0.6137366",
"0.6106494",
"0.6105224",
"0.6087784",
"0.60871005",
"0.60686386",
"0.6051743",
"0.6026112",
"0.60253763",
"0.60201776",
"0.60155827",
"0.59581566",
"0.59502757",
"0.58940375"
] | 0.7591742 | 7 |
Sets the organization attribute value. | public void setOrganization(Organization organization) {
this.organization = organization;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setOrganization(String organization) {\n this.organization = organization;\n }",
"public void setOrganization(String organization);",
"public void setOrganization(Organization organization){\r\n\t\tthis.organization = organization;\r\n\t}",
"public void setOrganizationId(Number value) {\n setAttributeInternal(ORGANIZATIONID, value);\n }",
"public void setOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;",
"public final void setOrganisation(String value) {\n organisation = value;\n }",
"public void setOrganization(String organization) {\n\t\tthis.organization = organization;\n\t}",
"public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }",
"public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }",
"public void setOrganizationId(long organizationId);",
"public void setOrganizationId(java.lang.String organizationId)\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(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ORGANIZATIONID$4);\r\n }\r\n target.setStringValue(organizationId);\r\n }\r\n }",
"public void xsetOrganizationId(com.microsoft.schemas._2003._10.serialization.Guid organizationId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas._2003._10.serialization.Guid target = null;\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().add_element_user(ORGANIZATIONID$4);\r\n }\r\n target.set(organizationId);\r\n }\r\n }",
"public void setOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setOrganization(arg0);\n }",
"public void secondarySetOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setId_Organization(java.lang.String id_Organization) {\n this.id_Organization = id_Organization;\n }",
"public void setOrganizationAddress(String organizationAddress) {\n \n this.organizationAddress = organizationAddress;\n\n }",
"@Override\n public void setOrganizationId(long organizationId) {\n _usersCatastropheOrgs.setOrganizationId(organizationId);\n }",
"public void setOrganizationText(String organizationText) {\n this.organizationText = organizationText;\n }",
"public String getOrganization() {\n return organization;\n }",
"public Value.Builder setKdOrg(java.lang.CharSequence value) {\n validate(fields()[12], value);\n this.kd_org = value;\n fieldSetFlags()[12] = true;\n return this;\n }",
"public Organization getOrganization(){\r\n\t\treturn organization;\r\n\t}",
"public boolean setOrganization(String organize)\n {\n this.organization = organize;\n System.out.print(\"Publishing organization information written successfully\\n\");\n return true;\n }",
"public String getOrganization ()\n {\n return this.organization;\n }",
"@JsonSetter(\"orgId\")\r\n public void setOrgId (long value) { \r\n this.orgId = value;\r\n }",
"public String getOrganization() {\n\t\treturn organization;\n\t}",
"public void setOrgId(String orgId);",
"public void secondarySetOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetOrganization(arg0);\n }",
"public void setOrganizationId(String organizationId) {\r\n this.organizationId = organizationId;\r\n }",
"public void setPersonOrgID(int value) {\n this.personOrgID = value;\n }",
"public String organization() {\n return this.organization;\n }",
"public void setContactOrganization(String contactOrganization) {\n this.contactOrganization = contactOrganization;\n }",
"public void setOrganizationId(Long organizationId) {\n this.organizationId = organizationId;\n }",
"public void setOrganizationId(Long organizationId) {\n this.organizationId = organizationId;\n }",
"public void setOrganizationId(String organizationId) {\n this.organizationId = organizationId;\n }",
"@Override\n\tpublic void setEsfOrganization(java.lang.String esfOrganization) {\n\t\t_esfShooterAffiliationChrono.setEsfOrganization(esfOrganization);\n\t}",
"public String getOrganizationId() {\r\n return organizationId;\r\n }",
"public void setOrganizationVersion(java.lang.String organizationVersion)\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(ORGANIZATIONVERSION$6, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ORGANIZATIONVERSION$6);\r\n }\r\n target.setStringValue(organizationVersion);\r\n }\r\n }",
"public void setOrgNo(String orgNo) {\r\n this.orgNo = orgNo;\r\n }",
"public void setp_org_id(String value) {\n setNamedWhereClauseParam(\"p_org_id\", value);\n }",
"public void setOrganizationUrl(String organizationUrl) {\n \n this.organizationUrl = organizationUrl;\n\n }",
"public void xsetOrganizationVersion(org.apache.xmlbeans.XmlString organizationVersion)\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(ORGANIZATIONVERSION$6, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ORGANIZATIONVERSION$6);\r\n }\r\n target.set(organizationVersion);\r\n }\r\n }",
"public String getOrganizationId() {\n return organizationId;\n }",
"public void setOrganizationCode(String organizationCode) {\n this.organizationCode = organizationCode;\n }",
"@Schema(example = \"Passbase Inc.\", description = \"Name of the organization that owns this project\")\n public String getOrganization() {\n return organization;\n }",
"public void setOrganizationName(String organizationName) {\n \n this.organizationName = organizationName;\n\n }",
"Builder addSourceOrganization(Organization value);",
"public Organization getOrganization() {\n return organization;\n }",
"public Organization getOrganization() {\n return organization;\n }",
"public void setOrgan(String organ) {\n\t\tthis.organ = organ;\n\t}",
"public Long getOrganizationId() {\n return organizationId;\n }",
"public Long getOrganizationId() {\n return organizationId;\n }",
"public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }",
"public void setKdOrg(java.lang.CharSequence value) {\n this.kd_org = value;\n }",
"public java.lang.String getId_Organization() {\n return id_Organization;\n }",
"Builder addSourceOrganization(String value);",
"public String getOrganizationCode() {\n return organizationCode;\n }",
"public void unsetOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(ORGANIZATIONID$4, 0);\r\n }\r\n }",
"@AutoEscape\n\tpublic String getOrganization();",
"private void setOrganizationFields(Cursor cur) {\n\n\t\tint selectedColumn;\n\n\t\t//\n\t\t// Get Organizations fields\n\t\t//\n\t\tselectedColumn = cur.getColumnIndex(Organization.COMPANY);\n\t\tString company = cur.getString(selectedColumn);\n\n\t\tselectedColumn = cur.getColumnIndex(Organization.TITLE);\n\t\tString title = cur.getString(selectedColumn);\n\n\t\tselectedColumn = cur.getColumnIndex(Organization.TYPE);\n\t\tint orgType = cur.getInt(selectedColumn);\n\n\t\tString customLabel = null;\n\t\tif (orgType == Organization.TYPE_CUSTOM) {\n\t\t\tselectedColumn = cur.getColumnIndex(Organization.LABEL);\n\t\t\tcustomLabel = cur.getString(selectedColumn);\n\t\t}\n\n\t\torgs.add(new OrgData(orgType, title, company, customLabel));\n\t}",
"public void setOrganizationEmail(String organizationEmail) {\n \n this.organizationEmail = organizationEmail;\n\n }",
"public void setOrgId(long orgId) {\r\n this.orgId = orgId;\r\n }",
"public void setConsortium(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONSORTIUM_PROP.get(), value);\n }",
"public String getOrganizationText() {\n return organizationText;\n }",
"public void setConsortium(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONSORTIUM_PROP.get(), value);\n }",
"public String getOrganizationName() {\n\n \n return organizationName;\n\n }",
"Builder addAuthor(Organization value);",
"public void setOrgName(String orgName) {\n this.orgName = orgName == null ? null : orgName.trim();\n }",
"public void setRepresentedOrganization(RepresentedOrganization representedOrganization) {\n\t\tthis.representedOrganization = representedOrganization;\n\t}",
"public void setOrgName(String orgName) {\r\n this.orgName = orgName;\r\n }",
"@Override\r\n public void setCorporation(String corporation) {\n }",
"Builder addPublisher(Organization value);",
"public void setOrgname(String orgname) {\n this.orgname = orgname == null ? null : orgname.trim();\n }",
"public void setOrganizationType(java.lang.String organizationType) {\n this.organizationType = organizationType;\n }",
"public void setOrganizationType(String organizationType) {\n\t\tthis.organizationType = organizationType;\n\t}",
"public void setBanking_organizationPersistence(\n Banking_organizationPersistence banking_organizationPersistence) {\n this.banking_organizationPersistence = banking_organizationPersistence;\n }",
"public void setOrgCode(String orgCode) {\n this.orgCode = orgCode == null ? null : orgCode.trim();\n }",
"public void setOrgCode(String orgCode) {\n this.orgCode = orgCode == null ? null : orgCode.trim();\n }",
"Builder addSourceOrganization(Organization.Builder value);",
"public void setOrganId(String organId) {\n this.organId = organId;\n }",
"@Indexable(type = IndexableType.REINDEX)\n @Override\n public Banking_organization updateBanking_organization(\n Banking_organization banking_organization) throws SystemException {\n return banking_organizationPersistence.update(banking_organization);\n }",
"public void setOrgName(java.lang.String orgName) {\n this.orgName = orgName;\n }",
"String getOrganization();",
"public void privateSetOrganizationKey(com.hps.july.persistence.OrganizationKey arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().privateSetOrganizationKey(arg0);\n }",
"public String getOrgNo() {\r\n return orgNo;\r\n }",
"public void setNilOrganizationVersion()\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(ORGANIZATIONVERSION$6, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ORGANIZATIONVERSION$6);\r\n }\r\n target.setNil();\r\n }\r\n }",
"public String getOrganizationName() {\n return (orgName);\n }"
] | [
"0.7812425",
"0.77790326",
"0.7653908",
"0.76293576",
"0.75828063",
"0.7308876",
"0.71943784",
"0.70696205",
"0.70696205",
"0.7036321",
"0.7013611",
"0.6961922",
"0.6900918",
"0.67314863",
"0.6632712",
"0.6632712",
"0.6632712",
"0.6632712",
"0.6632712",
"0.6632712",
"0.6632712",
"0.6632712",
"0.6632712",
"0.6632712",
"0.6632712",
"0.6632712",
"0.6632712",
"0.66305876",
"0.66116315",
"0.65160114",
"0.64864784",
"0.6475555",
"0.6473081",
"0.64135647",
"0.64087623",
"0.6381764",
"0.6381115",
"0.6377015",
"0.6376367",
"0.6342736",
"0.6335012",
"0.6276602",
"0.62482303",
"0.624643",
"0.62124807",
"0.62124807",
"0.6184817",
"0.618251",
"0.61402065",
"0.6133455",
"0.61304665",
"0.61129487",
"0.6104807",
"0.6098246",
"0.6040203",
"0.6036782",
"0.59943026",
"0.59921247",
"0.59804666",
"0.5928588",
"0.5928588",
"0.5900445",
"0.5891418",
"0.5891418",
"0.58899844",
"0.58864975",
"0.58720535",
"0.5839929",
"0.5834286",
"0.5831104",
"0.5773428",
"0.5734275",
"0.5727731",
"0.5726079",
"0.57097733",
"0.5709157",
"0.5700231",
"0.56960857",
"0.5676386",
"0.5654456",
"0.5649265",
"0.56476057",
"0.56278247",
"0.5584403",
"0.5577462",
"0.556045",
"0.55458635",
"0.5525246",
"0.551514",
"0.551514",
"0.55121094",
"0.5511148",
"0.5489789",
"0.5489402",
"0.5486496",
"0.5485003",
"0.54715973",
"0.54558843",
"0.5451987"
] | 0.75529975 | 6 |
pointcut names must match | @Before("pointcut()") //pointcut names must match
public void log(){
logger.info("-------LOG INFO first------");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testPublic() throws IOException {\n String[] publicHello = new String[] { \"method-execution(void HelloWorld.main(java.lang.String[]))\" };\n String[] publicFancyHello = new String[] { \"method-execution(void FancyHelloWorld.main(java.lang.String[]))\", \"method-execution(java.lang.String FancyHelloWorld.getName())\" };\n checkPointcut(\"execution(public * *(..))\", publicHello, publicFancyHello);\n }",
"@Pointcut(\"execution(* *.logEvent(..))\")\n private void allLogEventMethods() {\n }",
"@Pointcut(\"execution(* com.chen.service.UserService.*(..))\")\n\tpublic void pointcut() {}",
"@Pointcut(\"execution(public * com.ac.reserve..*.*Controller.*(..))\")\n public void apiLog() {\n }",
"public interface Pointcut {\n MethodMatcher getMethodMatcher();\n String getExpression();\n}",
"@Pointcut(\"execution(* com.example.springlearning.aop.pointcutDeclarations.dao.*.*(..))\")\n private void forDaoPackage(){}",
"@Pointcut(\"execution(* com.bharath.spring.mvc.aop.service.*.*(..))\")\n private void forServicePackage() {}",
"@Pointcut(\"within(demo.pointcutdesignator.within.Person)\")\n\tpublic void createPointCut () {}",
"@Pointcut(\"execution(public * *(..))\")\r\n\tpublic void allPublicOperations(){}",
"@Pointcut(\n \"within(pe.com.tech.portal.empleado.controller..*)\"\n + \"|| within(pe.com.tech.portal.empleado.service..*)\"\n + \"|| within(pe.com.tech.portal.empleado.security.auth.ajax.AjaxAuthenticationProvider)\")\n public void loggingPointcut() {\n // Method is empty as this is just a Poincut, the implementations are in the advices.\n }",
"@Pointcut(\"within(com.wipro.despar..*web*..*)\")\r\n\tpublic void inWebLayer(){}",
"@Pointcut(\"execution(* com.oocl.daluplo.calc.*.*(..))\")\n private void selectAll(){}",
"@Pointcut(\"forControllerPackage() || forServicePackage() || forDaoPackage()\")\n private void forAppFlow() {}",
"@Before(\"allMethodsInCircle()\")//specifier the wildcard\n\t//(..) specifier it can be o or more argument\n\t// JoinPoint is all the place in your code witch you can applied an advice\n\tpublic void LoggingAdvice(JoinPoint joinPoint){\n\t\t\n\t}",
"@Pointcut(\"execution(* com.bharath.spring.mvc.aop.controller.*.*(..))\")\n private void forControllerPackage() {}",
"@Pointcut(\"within(com.wipro.despar..*dao*..*)\")\r\n\tpublic void inDataAccessLayer(){}",
"@Pointcut(\"execution(* com.iamscratches.aopdemo.dao.*.*(..))\")\n\tprivate void forDAOPackage() {}",
"@Pointcut(\"execution(* com.luv2code.aopdemo.dao.*.*(..))\")\r\n\tprivate void forDaoPackage() {\r\n\t}",
"@Pointcut(\"execution(* com.luv2code.aopdemo.dao.*.*(..))\")\n\tprivate void forDAOPackage() {}",
"@Pointcut(\"@annotation(com.pearadmin.plugin.framework.datasource.annotation.DataSource)\"\n + \"|| @within(com.pearadmin.plugin.framework.datasource.annotation.DataSource)\")\n public void dsPointCut() {\n }",
"@Pointcut(\"execution(* com.bharath.spring.mvc.aop.dao.*.*(..))\")\n private void forDaoPackage() {}",
"@Before(\"execution(* com.zzt.learnspring.service.HelloWorldService+.*(..))\")\n public void logBefore(JoinPoint joinPoint) {\n\n System.out.println(\"logBefore() is running!\");\n System.out.println(\"hijacked : \" + joinPoint.getSignature().getName());\n System.out.println(\"******\");\n }",
"@Before(\"pointCut()\")\r\n\t@Override\r\n\tpublic void beforeMethod(JoinPoint joinpoint) {\n\t\tSystem.out.println(joinpoint.getSignature().getName() + \"方法名\");\r\n\t}",
"@Pointcut(\"within(com.wipro.despar..*manager*..*)\")\r\n\tpublic void inManagerLayer(){}",
"@Pointcut(\"(@annotation(HasRole) || @within(HasRole))\")\n public void annotated() {\n }",
"@Before(\"execution(* com.dav.mybatis.controller..*.*(..))\")\n public synchronized void logMethodAccessBefore(JoinPoint joinPoint) {\n log.info(\"***** Starting: \" + joinPoint.getSignature().getName() + \" *****\");\n }",
"@Pointcut(\"execution(* genarateClientResponse(..))\")\n private void AccessLogingpc() {\n }",
"@Pointcut(\"execution(* com.luv2code.aopdemo.dao.*.set*(..))\")\n\tprivate void forDAOPackageSetters() {}",
"@Pointcut(value = \"@annotation(LogExecute)\")\n public void executorPointcut()\n {\n }",
"@Around(\"execution(public void edu.sjsu.cmpe275.aop.BlogService.*(..))\")\n\tpublic void dummyAdvice(ProceedingJoinPoint joinPoint) {\n\t\tSystem.out.printf(\"Prior to the executuion of the metohd %s\\n\", joinPoint.getSignature().getName());\n\t}",
"@Pointcut(\"within(com.factly.dega.web.rest..*)\")\n public void applicationPackagePointcut() {\n // Method is empty as this is just a Pointcut, the implementations are in the advices.\n }",
"@AfterThrowing(pointcut=\"args(name)\", throwing=\"ex\")\n\tpublic void allMethodStringArg(String name,Exception ex){\n\t\tSystem.out.println(\"A method with String arguments has called =\"+name);\n\t\tSystem.out.println(\"Exception was =\"+ex);\n\t}",
"@Before(\"execution(* add*(org.ms.aopdemo.Account))\") //runs just with param we need fully qualified class name\n\tpublic void beforeAddAccountAdvice() {\n\t\tSystem.out.println(\"\\n Executing @Before advice on addAccount()\");\n\t}",
"@Pointcut(\"execution(* com.iamscratches.aopdemo.dao.*.set*(..))\")\n\tpublic void setter() {}",
"@When(\"Try to Analysis\")\npublic void tryanalysis(){\n}",
"@Before(\"execution(* com..*Service.*(..)) || execution(* com..*Controller.*(..)) || execution(* com..*Processor.*(..)) || execution(* com..*Reader.*(..)) || execution(* com..*Writer.*(..))\")\n public void loggingMethod(JoinPoint joinPoint) {\n logger.info(\"the method being executed is : \" + joinPoint.getSignature().getName());\n logger.info(\"the method being executed arguments are : \" + Arrays.toString(joinPoint.getArgs()));\n }",
"private AnnotationTarget() {\n void var2_-1;\n void var1_-1;\n }",
"public interface Advice extends MethodInterceptor {\n public Pointcut getPointcut();\n}",
"@Override\n public Pointcut getPointcut() {\n return new AnnotationMatchingPointcut(DynamicDataSource.class, DataSource.class);\n }",
"@Pointcut(\"(@within(org.springframework.stereotype.Controller) || \"\n + \"@within(org.springframework.web.bind.annotation.RestController)) && \"\n + \"!within(org.springframework.boot.autoconfigure.web.servlet.error.*)\")\n public void controllers() {\n }",
"@Pointcut(\"@annotation(com.travel.common.annotation.DAEAspect.DAEAnnotation)\")\n public void DAEHandler() {\n System.out.println(\"into DAEHandler\");\n }",
"@Pointcut(\"@annotation(com.revature.aspects.GameMaster)\")\n\tprivate void gameMasterHook() {}",
"@MyAnnotation(\"abc\")\r\n\t@Override\r\n\tpublic String perform(String arg1) {\n\t\treturn \"hello \";\r\n\t}",
"@Before(\"springdemo.AOPOrders.Aspect.LuvAopExpressions.forDaoPackageNoGetterSetter()\") // apply pointcut declaration to advice\n public void beforeAddAccountAdvice(){\n System.out.println(\"\\n ===> Executing @Before advice on method\");\n }",
"@Pointcut(\"within(sprint.aop.javabrains.model.Circle)\")\n\tpublic void allMethodsInCircle(){\n\t\tSystem.out.println(\"Advice run. all methode in Circle\");\n\t}",
"@Pointcut(\"execution(* com.luv2code.aopdemo.dao.*.get*(..))\")\n\tprivate void forDAOPackageGetters() {}",
"@Pointcut(\"(@annotation(javax.annotation.security.PermitAll) || @within(javax.annotation.security.PermitAll))\")\n public void permitAll() {\n }",
"@Pointcut(\"execution(* com.iamscratches.aopdemo.dao.*.get*(..))\")\n\tpublic void getter() {}",
"@Pointcut(\"within(com.wipro.despar..*ws*..*)\")\r\n\tpublic void inWSLayer(){}",
"@Pointcut(\"@annotation(com.revature.aspects.CorrectUser)\")\n\tprivate void correctUserHook() {}",
"@Before(\"AccessLogingpc()\")\n public void beforeAdvice_AccessLogingpc(JoinPoint joinPoint) {\n System.out.println(\"**************Start Method***************\");\n System.out.println(joinPoint.getSignature());\n System.out.println(Arrays.toString(joinPoint.getArgs()));\n }",
"@Pointcut(\n \"within(pe.com.tech.portal.empleado.controller..*)\"\n + \"|| within(pe.com.tech.portal.empleado.security.auth.ajax.AjaxAuthenticationProvider)\")\n public void errorPointcut() {\n }",
"@Before(\"execution(* com.p.boot.interview.mgmt.rest.resource.*.*(..))\")\r\n\tpublic void before(JoinPoint joinPoint){\r\n\t\t//Advice\r\n\t\tlogger.info(\" Going to execute resource \");\r\n\t\tlogger.info(\r\n\t\t\t\t\"Entered into \"\r\n\t\t\t\t+ joinPoint.getSignature()\r\n\t\t\t\t+ \" method\");\r\n\t\tlogger.info(\" Allowed execution for {}\", joinPoint);\r\n\t}",
"public abstract String intercept(ActionInvocation invocation) throws Exception;",
"@Pointcut(\"within(@org.springframework.web.bind.annotation.RestController *)\")\n public void springBeanPointcut() {\n // Method is empty as this is just a Pointcut, the implementations are in the advices.\n }",
"@Loggable(value=\"proceed\")\r\n\tpublic void testAspect3(String string, String string2, AspectBean bean) {\n\t\t\r\n\t}",
"@Before(\"pointCut()\")\n\tpublic void before(JoinPoint joinPoint) {\n\t\tLOG.warn(\"控制器切面参数 param:{}\",\n\t\t\t\tToStringBuilder.reflectionToString(joinPoint));\n\t\tObject[] arr = joinPoint.getArgs();\n\t\tif (arr.length > 0) {\n\t\t\tLOG.warn(\"method param:{}\",\n\t\t\t\t\tToStringBuilder.reflectionToString(joinPoint.getArgs()[0]));\n\t\t}\n\t}",
"public interface LoggingAspect {\r\n\r\n\t/**\r\n\t * Log before any joinpoint execution. This is typically a class function,\r\n\t * but could be another aspect advisor as well. The implementation will provide any\r\n\t * advice.\r\n\t *\r\n\t * @param joinPoint the join point (descibed by the pointcut)\r\n\t */\r\n\tpublic void logBefore(JoinPoint joinPoint);\r\n\r\n\t/**\r\n\t * Log after joinpoint execution.\r\n\t *\r\n\t * @param joinPoint the join point (descibed by the pointcut)\r\n\t */\r\n\tpublic void logAfter(JoinPoint joinPoint);\r\n\r\n\t/**\r\n\t * Log after throwing exception joined by the Pointcut expression.\r\n\t *\r\n\t * @param joinPoint the join point\r\n\t * @param e the e\r\n\t */\r\n\tpublic void logAfterThrowing(JoinPoint joinPoint, Throwable e);\r\n\r\n\t/**\r\n\t * Log before annotation this a joinput that will log before anything anotated with \r\n\t * out pointcut annotation. This is for specific debug logging.\r\n\t *\r\n\t * @param joinPoint the join point\r\n\t */\r\n\tpublic void logBeforeAnnotation(JoinPoint joinPoint);\r\n\t\r\n}",
"@MyFirstAnnotation(name = \"Tom\")\n public void someMethod() {\n\n }",
"public interface AspectJService {\n\n /**\n * 测试前置通知\n */\n void beforeAdvice();\n\n /**\n * 测试后置通知\n */\n void afterAdvice();\n\n /**\n * 后置返回通知\n *\n * @return\n */\n String afterReturnAdvice();\n}",
"@Pointcut(\"@annotation(com.revature.aspects.LoggedIn)\")\n\tprivate void loggedInHook() {}",
"@Before(\"controllerClassMethods()\")\n\tpublic void logBeforeCall(JoinPoint joinPoint) {\n\t\tSystem.out.println(\"--------------------------------------------------\");\n\t\tSystem.out.println(\"Esto es el @Before de aspect\");\n\t\tSystem.out.println(\"--------------------------------------------------\");\n\t\tlog.info(\"Attempting to Call [{}]:[{}] with Args, {}\",\n\t\t\t\tjoinPoint.getSignature().getDeclaringType().getSimpleName(), joinPoint.getSignature().getName(),\n\t\t\t\tjoinPoint.getArgs());\n\t}",
"@Pointcut(\"!execution(* org.mskcc.cbio.oncokb.repository.PersistenceAuditEventRepository.save(..))\")\n private void excludedRepositorySaveOperation() {}",
"@Before(\"com.in28minutes.spring.aop.springaop.CommonJoinPointConfig.dataLayerExecution())\")\n public void before(JoinPoint joinPoint) {\n //you do not need to check access in every class, you can\n // do it here\n\n //ADVICE\n logger.info(\"Check user access\");\n logger.info(\" Intercepted Method Call - {}\", joinPoint);\n }",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@When(\"Try to Access & exfiltrate data within the victim's security zone\")\npublic void tryaccessexfiltratedatawithinthevictimssecurityzone(){\n}",
"public static void main(String[] args) {\n ApplicationContext context = new ClassPathXmlApplicationContext(\"_3_aop/_10_spring_aop_process_two/aspect-autoproxy.xml\");\n Foo target = (Foo) context.getBean(\"target\");\n target.method1();\n target.method2();\n }",
"@Before(\"execution (* com.jayway.blog.YourClass.yourMethodBefore(..))\")\n //JointPoint = the reference of the call to the method\n public void beforeAdvice(JoinPoint joinPoint) {\n System.out.println(\"YourAspect's BeforeAdvice's body is now executed Before yourMethodBefore is called.\");\n }",
"@After(\"execution ( * com.jayway.blog.YourClass.*(..))\")\n //JointPoint = the reference of the call to the method\n public void printNewLine(JoinPoint pointcut){\n //Just prints new lines after each method that's executed in\n System.out.print(\"\\n\\r\");\n }",
"@Test\n @TestLog(title = \"Test3\", id = \"444\")\n public void test3() {\n }",
"public interface Action_Aspect extends Action, ExecutableNode_Aspect {\n}",
"@Override\r\n\tpublic void before(Method m, Object[] arg1, Object traget) throws Throwable {\n\t\tSystem.out.println(\"Before\"+m.getName() + \" this advice call\" );\r\n\t}",
"@AfterReturning(value=\"(execution(* com.tkhts.service.*.*(..)))\") \n public void givePartyGift(JoinPoint joinPoint) { \n // get method arguments \n Object[] args = joinPoint.getArgs(); \n \n // getting the method argument using Joinpoint API \n PartyPeople partyPeople = (PartyPeople)args[0]; \n \n System.out.println(partyPeople.getName()+\" got party gift.\"); \n }",
"@After(\"AccessLogingpc()\")\n public void afterAdvice_AccessLogingpc(JoinPoint joinPoint) {\n System.out.println(joinPoint.getSignature());\n System.out.println(\"**************End Method***************\");\n \n }",
"@AfterReturning(\"execution(* com.dav.mybatis.controller..*.*(..))\")\n public synchronized void logMethodAccessAfter(JoinPoint joinPoint) {\n log.info(\"***** Completed: \" + joinPoint.getSignature().getName() + \" *****\");\n }",
"public void logBeforeAnnotation(JoinPoint joinPoint);",
"public static void aspectByExecution(Book proxyBook, Method aspectMethod, String proxyType, String[] values, AspectDic aspectDic) throws NoSuchMethodException, SecurityException, DefinitionException{\n\t\tList<ExecutionEntity> executionEntities = AspectBuddy.matchExecution(values, proxyBook);\n\t\tif(executionEntities == null || executionEntities.size() == 0){\n\t\t\tthrow new DefinitionException(\"No matches about the point definition:\" + values);\n\t\t}\n\t\tfor(ExecutionEntity entity: executionEntities){\n\t\t\tif(entity.getBook() != null){\n\t\t\t\taspect(proxyBook.getObject(), aspectMethod, entity.getBook(), entity.getMethodWrappers(), proxyType, aspectDic);\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] ignore)\r\n/* 129: */ {\r\n/* 130:124 */ Mark.say(\r\n/* 131:125 */ new Object[] { conditionName(\"Tragedy_of_Macbeth's\") });\r\n/* 132: */ }",
"@Pointcut(\"target(scriptsengine.uploadengine.validations.interfaces.IWBValidator)\")\n\tpublic void WBValidatorInterface()\n\t{\n\n\t}",
"@Override\n\tpublic void implementionEight(String[] args) throws Exception {\n\n\t}",
"@Test\n public void ruleNameTest() {\n // TODO: test ruleName\n }",
"StackManipulation special(TypeDescription invocationTarget);",
"@RunMe(2)\n private void dontTestThis() {\n System.out.println(\"dontTestThis\");\n }",
"@Around(\"execution(* *..NewlecCalculator.add(..))\")\r\n\tpublic Object logHandler(ProceedingJoinPoint joinPoint) {\n\t\t\r\n\t\tStopWatch watch = new StopWatch();\r\n\t\twatch.start();\r\n\t\t/*-------------- injection --------------*/\r\n\t\r\n\t\tObject result = null; \r\n\t\t\r\n\t\ttry {\r\n\t\t\tresult = joinPoint.proceed();\r\n\t\t} catch (Throwable e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t/*---------------------------------------*/\r\n\t\twatch.stop();\r\n\t\tlong duration = watch.getTotalTimeMillis();\r\n\t\t\r\n\t\tString message = duration + \"ms가 걸림\";\r\n\t\t\r\n\t\t//long end = System.currentTimeMillis();\r\n\t\t//String message = (end - start) + \"ms가 걸림\";\r\n\t\tSystem.out.println(message);\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"@Override\n\tpublic void name1() {\n\t\t\n\t}",
"@Pointcut(\"within(com.osgo.model.Circle)\")\t\t\t\t\t\t\n\tpublic void allCircleMethods()\n\t{\n\t}",
"public Object doAround(ProceedingJoinPoint pjp) throws Throwable {\r\n\t\tint highmagnitude = 5;\r\n\t\tint lowmagnitude = 3; \r\n\t\tString classname=\"\";\r\n\t\tObject result= null;\r\n\t\t//gets the calling class name\r\n\t\tStackTraceElement[] stackTraceElements = Thread.currentThread()\r\n\t\t\t\t.getStackTrace();\r\n\t\tfor (int i = 0; i < stackTraceElements.length; i++) {\r\n\t\t\tif (stackTraceElements[i].getClassName().equals(\"sun.reflect.NativeMethodAccessorImpl\")\r\n\t\t\t\t\t&& !(stackTraceElements[i - 1].getClassName().equals(pjp.getThis().getClass().getName()))) {\r\n\t\t\t\tif (!(stackTraceElements[i - 1].getClassName().equals(this.getClass().getName()))\r\n\t\t\t\t\t\t&& !(stackTraceElements[i - 1].getClassName().equals(\"sun.reflect.NativeMethodAccessorImpl\"))) {\r\n\t\t\t\t\tclassname = stackTraceElements[i - 1].getClassName();//calling class name assigned to variable class name\r\n\t\t\t\t\tmethodlog += \"Name: \" + classname + \",\";\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//gets passed arguments\r\n\t\tObject[] args = pjp.getArgs();\r\n\t\tString parameters = \"\";\r\n\t\tif (args.length > 0) {\r\n\t\t\t// captures method arguments\r\n\t\t\tfor (int i = 0; i < args.length; i++) {\r\n\t\t\t\tparameters += args[i];\r\n\t\t\t}\r\n\t\t\tmethodlog += parameters;// appends the method log\r\n\t\t}\r\n\t\t//assign the signature of the method called\r\n\t\tString passedMethod = pjp.getSignature().getName();\r\n\r\n\t\t//System.out.println(\"Method passed \" + pjp.getSignature().getName());\r\n\t\t// Not working for now.....>>>\tmyAnalysis.readPolicy();// read in the policies before the method executes.\r\n\t\t//returns the number of violations a method has committed\r\n\r\n\t\tint deciding = myAnalysis.Analyse(passedMethod, parameters,classname);\r\n\r\n\t\tif (deciding==0) {// no violation proceed with method execution\r\n\t\t\tresult = pjp.proceed();\t\r\n\t\t\tSystem.out.println(\"This policy has not been violated, the method can proceed\");\r\n\t\t}\r\n\t\telse if(deciding < 10) \t{//Number of violations are low\r\n\t\t\t//increase tendency by a lower magnitude\r\n\t\t\ttendency += lowmagnitude;\r\n\t\t\tresult= pjp.proceed();\r\n\t\t\tSystem.out.println(\"This method has violated few policies, it can proceed but with caution \");\r\n\t\t}\r\n\r\n\t\telse {// Unacceptable level; throw exception to stop method execution\r\n\t\t\tSystem.out.println(\"This method needs to be blocked, it has violated a lot of policies\");\r\n\t\t\ttendency+=highmagnitude;\r\n\t\t\tthrow new Throwable();\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"@Around(\"execution(* cn.tianfu.EuqipManageSystem.web.control.EquipController.*(..))\")\n\tpublic Object AroundHandleEquipControl(ProceedingJoinPoint point)throws Throwable\n\t{\n\t\t//begin\n\t\tObject[] params = point.getArgs(); \n\t\tHttpServletRequest request = (HttpServletRequest)params[0];\n\t\tEquipment equip_request = (Equipment)SpringBeanFactory.getBean(\"equip\");\n\t\tMergeUtils.mergeAttribute(equip_request, request);\n\t\tlogg.info(\"control method \"+point.getSignature().getName()+\" invoke\\n input the equip: \"+equip_request);\n\t\tObject ret = null;\n\t\ttry \n\t\t{\n\t\t\tret = point.proceed();\n\t\t} \n\t\tcatch (ServletException e) \n\t\t{\n\t\t\tlogg.warn(\"servlet exception\" + e.getMessage());\n\t\t}\n\t\tcatch (IOException e) \n\t\t{\n\t\t\t// TODO: handle exception\n\t\t\tlogg.warn(\"io exception\" + e.getMessage());\n\t\t}\n\t\tcatch (ExistException e) \n\t\t{\n\t\t\t// TODO: handle exception\n\t\t\tlogg.warn(\"user exist exception\"+e.getMessage());\n\t\t}\n\t\tcatch (Exception e) \n\t\t{\n\t\t\t// TODO: handle exception\n\t\t\tlogg.warn(\"system exception \"+e.getMessage());\n\t\t}\n\t\tlogg.info(\"control end method \"+point.getSignature().getName()+\" invoke return: \"+ret);\n\t\treturn ret;\n\t}",
"public void wild(){\n\t}",
"@Test\n public void testTrackerNaming() {\n }",
"public void doBefore(JoinPoint jp) {\n }",
"@Test\n void setName() {\n }",
"@After(\"execution (public !Object com.jayway.blog.YourClass.yourMethodAfter(..))\")\n public void afterAdvice(JoinPoint joinPoint) {\n System.out.println(\"YourAspect's afterAdvice's body is now executed After yourMethodAfter is called.\");\n }",
"@After(\"execution(* test.aspect.lib.Tools.call*(..))\")\n\tpublic void callToolCalled() {\n\t\tlogger.info(\"AFTER ADVICE: Tools callable called\");\n\t}",
"@Test\n public void dspNamesTest() {\n // TODO: test dspNames\n }",
"@Around(\"execution(* com.sapient.springdemo.service.EmployeeServiceImpl.saveEmployee(..))\")\n public void logAround(ProceedingJoinPoint target) {\n System.out.println(\"------------logging before the method is getting executed in around-------------------\");\n if(target.getArgs()[0] instanceof EmployeeService){\n \t\n \ttry {\n \t\ttarget.proceed();\n \t} \n \tcatch(Throwable throwable) {\n \t\tthrowable.printStackTrace();\n \t}\n }\n System.out.println(\"------------logging after the method is getting executed in around-------------------\");\n }",
"public void xtestTraceJar() {\n ResolvedType trace = world.resolve(UnresolvedType.forName(\"Trace\"), true);\n assertTrue(\"Couldnt find type Trace\", !trace.isMissing());\n fieldsTest(trace, Member.NONE);\n /*Member constr = */\n MemberImpl.methodFromString(\"void Trace.<init>()\");\n //XXX need attribute fix - \n //methodsTest(trace, new Member[] { constr });\n interfacesTest(trace, ResolvedType.NONE);\n superclassTest(trace, UnresolvedType.OBJECT);\n isInterfaceTest(trace, false);\n isClassTest(trace, false);\n isAspectTest(trace, true);\n pointcutsTest(trace, new Member[] { MemberImpl.pointcut(trace, \"traced\", \"(Ljava/lang/Object;)V\") });\n modifiersTest(trace.findPointcut(\"traced\"), Modifier.PUBLIC | Modifier.ABSTRACT);\n mungersTest(trace, new ShadowMunger[] { world.shadowMunger(\"before(foo): traced(foo) -> void Trace.ajc_before_4(java.lang.Object))\", 0), world.shadowMunger(\"afterReturning(foo): traced(foo) -> void Trace.ajc_afterreturning_3(java.lang.Object, java.lang.Object))\", Advice.ExtraArgument), world.shadowMunger(\"around(): execution(* doit(..)) -> java.lang.Object Trace.ajc_around_2(org.aspectj.runtime.internal.AroundClosure))\", Advice.ExtraArgument), world.shadowMunger(\"around(foo): traced(foo) -> java.lang.Object Trace.ajc_around_1(java.lang.Object, org.aspectj.runtime.internal.AroundClosure))\", Advice.ExtraArgument) });\n ResolvedType myTrace = world.resolve(UnresolvedType.forName(\"MyTrace\"), true);\n assertTrue(\"Couldnt find type MyTrace\", !myTrace.isMissing());\n interfacesTest(myTrace, ResolvedType.NONE);\n superclassTest(myTrace, trace);\n isInterfaceTest(myTrace, false);\n isClassTest(myTrace, false);\n isAspectTest(myTrace, true);\n //XXX need attribute fix - \n //fieldsTest(myTrace, Member.NONE);\n pointcutsTest(trace, new Member[] { MemberImpl.pointcut(trace, \"traced\", \"(Ljava/lang/Object;)V\") });\n modifiersTest(myTrace.findPointcut(\"traced\"), Modifier.PUBLIC);\n // this tests for declared mungers\n mungersTest(myTrace, ShadowMunger.NONE);\n }",
"@Override\n protected String testName(FrameworkMethod method)\n {\n return method.getName() + getName();\n }",
"@When(\"Try to Achieve arbitrary command execution through SQL Injection with the MSSQL_xp_cmdshell directive\")\npublic void tryachievearbitrarycommandexecutionthroughsqlinjectionwiththemssqlxpcmdshelldirective(){\n}"
] | [
"0.6773263",
"0.6675503",
"0.66695005",
"0.6527641",
"0.64671105",
"0.6449985",
"0.642501",
"0.6421168",
"0.64153427",
"0.6383601",
"0.63799614",
"0.63614845",
"0.6356686",
"0.6291849",
"0.62910706",
"0.61872846",
"0.61699635",
"0.6163281",
"0.6147261",
"0.60744226",
"0.60618263",
"0.60471594",
"0.60279095",
"0.60204226",
"0.6015898",
"0.6015864",
"0.6001174",
"0.59717077",
"0.59508485",
"0.59264123",
"0.59128",
"0.58679605",
"0.5808718",
"0.57918686",
"0.57764316",
"0.5776096",
"0.5765426",
"0.5721206",
"0.57048446",
"0.56779355",
"0.566593",
"0.5650157",
"0.5645407",
"0.56328726",
"0.5630673",
"0.5620399",
"0.56154734",
"0.5585037",
"0.5570113",
"0.55665356",
"0.55572385",
"0.5513939",
"0.550563",
"0.5472573",
"0.54567355",
"0.5425894",
"0.54159874",
"0.5407823",
"0.532972",
"0.5328259",
"0.5319871",
"0.5312507",
"0.5256881",
"0.5246917",
"0.5218227",
"0.5218227",
"0.5209575",
"0.51929",
"0.51462024",
"0.51406926",
"0.51298845",
"0.5123286",
"0.5115317",
"0.5103756",
"0.51006484",
"0.50949514",
"0.5092668",
"0.5083388",
"0.5060506",
"0.50526226",
"0.5051712",
"0.5045359",
"0.5039493",
"0.5019383",
"0.49992782",
"0.49863046",
"0.49846113",
"0.49842614",
"0.49842426",
"0.49669537",
"0.49461496",
"0.49380165",
"0.49333346",
"0.4928096",
"0.49097538",
"0.49089244",
"0.49052218",
"0.48969582",
"0.48968783",
"0.48929265"
] | 0.69513273 | 0 |
TODO Autogenerated method stub | @Override
public void run() {
for (int i = 0; i < 10; i++) {
conditionThreadCommunication.printA();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void run() {
for (int i = 0; i < 10; i++) {
conditionThreadCommunication.printB();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void run() {
for (int i = 0; i < 10; i++) {
conditionThreadCommunication.printC();
}
} | {
"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 |
Created by zsy on 16/8/11. | public interface UserLoginFacade {
/**
* 正常登陆接口
*
* @param loginParam loginParam
* @return
*/
public Result<UserInfoDTO> loginForApp(LoginParam loginParam);
/**
* 同意协议
*
* @param loginParam loginParam
* @return
*/
public Result<UserInfoDTO> agreeProtocolForApp(LoginParam loginParam);
/**
* sam免登陆门店
*
* @param userGlobalId
* @param request
* @param response
* @return
*/
String samAvoidLogin(String userGlobalId, HttpServletRequest request, HttpServletResponse response);
/**
* 管理后台免登陆门店
*
* @param shopId
* @param request
* @param response
* @return
*/
String legendmAvoidLogin(Long shopId, HttpServletRequest request, HttpServletResponse response);
/**
* 根据登录账户获取用户信息
*
* @param loginAccount
* @return
*/
public Result<UserInfoDTO> getUserInfoByLoginAccountForApp(String loginAccount,String password, Long chooseShopId,boolean checkPassword);
/**
* 二维码登录
*/
void loginForPCQRCodeLogin(Long shopId, Long userId, String uuid);
/**
* PC登录
* @param list
* @param shopManager
* @param shop
* @param response
*/
void loginForPC(List<FuncF> list,ShopManager shopManager,Shop shop, HttpServletResponse response);
/**
* 校验登录等级1
* @param shopId
* @param userId
*/
void checkShopLevelOneLogin(Long shopId,Long userId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void kk12() {\n\n\t}",
"private void poetries() {\n\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private void m50366E() {\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"private void strin() {\n\n\t}",
"private void init() {\n\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"public void skystonePos4() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n public void init() {\n }",
"public void mo12628c() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public void mo6081a() {\n }",
"@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 getExras() {\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"public void skystonePos6() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void einkaufen() {\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 dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"public void mo21877s() {\n }",
"public abstract void mo70713b();",
"static void feladat9() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"static void feladat4() {\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\n void init() {\n }",
"public void method_4270() {}",
"@Override\r\n\tpublic void init() {}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"private void init() {\n\n\n\n }",
"public void m23075a() {\n }",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"@Override\n public void init() {}",
"public void mo21779D() {\n }",
"private void m50367F() {\n }",
"protected void mo6255a() {\n }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void mo55254a() {\n }",
"public abstract void mo56925d();"
] | [
"0.6018238",
"0.5957879",
"0.59034765",
"0.58546776",
"0.58288753",
"0.58288753",
"0.5814219",
"0.5799727",
"0.5765852",
"0.57506347",
"0.5730584",
"0.5724686",
"0.5717869",
"0.570747",
"0.57036316",
"0.5700574",
"0.5699036",
"0.5693993",
"0.5689294",
"0.5671746",
"0.5671499",
"0.5667512",
"0.5651479",
"0.56388056",
"0.5633665",
"0.56333447",
"0.5630979",
"0.5630979",
"0.5630979",
"0.5630979",
"0.5630979",
"0.5596225",
"0.55745393",
"0.55666107",
"0.55617917",
"0.5558723",
"0.5541188",
"0.5537856",
"0.55342555",
"0.551556",
"0.55111635",
"0.5495799",
"0.5495799",
"0.5495799",
"0.5495799",
"0.5495799",
"0.5495799",
"0.5495799",
"0.548488",
"0.54658616",
"0.54640174",
"0.54640174",
"0.54640174",
"0.5463147",
"0.5463016",
"0.54624736",
"0.54601675",
"0.54495305",
"0.54495305",
"0.54495305",
"0.5446866",
"0.5443896",
"0.5441263",
"0.54390347",
"0.54390347",
"0.5437497",
"0.54335856",
"0.54317933",
"0.54317933",
"0.54317933",
"0.5425176",
"0.5425176",
"0.54246163",
"0.54243845",
"0.54243845",
"0.54235",
"0.5423032",
"0.54226273",
"0.54185224",
"0.5417854",
"0.54114884",
"0.54048187",
"0.5404019",
"0.5396896",
"0.5395158",
"0.5390712",
"0.5387149",
"0.53851813",
"0.5384303",
"0.5382492",
"0.5377839",
"0.53777987",
"0.53776556",
"0.53747064",
"0.53732574",
"0.5369271",
"0.5368706",
"0.5364771",
"0.5359812",
"0.5358713",
"0.5350475"
] | 0.0 | -1 |
getAutoCompleteInfo() method take employeeId as a input and display all employeeId's or employeeName's in the search box based on the user supplied values. | @RequestMapping(value = "/getAutoCompleteInfo", method = RequestMethod.POST)
public @ResponseBody String getAutoCompleteInfo(@RequestParam("employeeId") String employeeId) {
List<Integer> infolist = null;
Pattern pattern = Pattern.compile("^[0-9]$");
Matcher matcher = pattern.matcher(employeeId);
if (matcher.find()) {
logger.info("Integer:" + employeeId);
logger.info("inside ReportGenerationController getAutoCompleteInfo()");
logger.info("received employee id: " + employeeId);
int empid = Integer.parseInt(employeeId);
infolist = reportGenerationService.getAutoCompleteInfo(empid);
logger.info("info list in controller:" + infolist);
return JsonUtility.convertToJson(infolist);
} else {
logger.info("String:" + employeeId);
List<String> data = reportGenerationService.getAutoCompleteInfo(employeeId);
return JsonUtility.convertToJson(data);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public EmployeeLookup() {\r\n\t\tfill();\r\n\t\tinitialize();\r\n\t\t//AutoCompleteDecorator.decorate(el);\r\n\t}",
"public Employeedetails getEmployeeDetailByName(String employeeId);",
"private void btnGetEmployeeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGetEmployeeActionPerformed\n String stringID = textEmployeeID.getText();\n if(textEmployeeID.getText().isEmpty()){\n JOptionPane.showMessageDialog(rootPane, \"Please Enter a valid ID\");\n return;\n }\n int ID = Integer.parseInt(stringID);\n newHandler.getEmployee(ID);\n \n if(newHandler.getErrorMsg() != null){\n JOptionPane.showMessageDialog(rootPane, newHandler.getErrorMsg());\n }\n textEmployeeID.setText(Integer.toString(newHandler.getEmployeeID()));\n textFirstName.setText(newHandler.getEmployeeFirstName());\n textLastName.setText(newHandler.getEmployeeLastName());\n textJobTitle.setText(newHandler.getJobTitle());\n textSalary.setText(Double.toString(newHandler.getSalary()));\n textOtherDetails.setText(newHandler.getOtherDetails());\n searched = true;\n }",
"String getSelectedAutoCompleteString();",
"private void loadAutoCompleteData() {\n List<String> labelsItemName = db.getAllItemsNames();\n // Creating adapter for spinner\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,\n labelsItemName);\n\n // Drop down layout style - list view with radio button\n dataAdapter.setDropDownViewResource(android.R.layout.simple_list_item_1);\n\n // attaching data adapter to spinner\n autoCompleteTextViewSearchItem.setAdapter(dataAdapter);\n\n // List - Get Menu Code\n List<String> labelsMenuCode = db.getAllMenuCodes();\n // Creating adapter for spinner\n ArrayAdapter<String> dataAdapter1 = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,\n labelsMenuCode);\n\n // Drop down layout style - list view with radio button\n dataAdapter1.setDropDownViewResource(android.R.layout.simple_list_item_1);\n\n // attaching data adapter to spinner\n autoCompleteTextViewSearchMenuCode.setAdapter(dataAdapter1);\n\n POS_LIST = ArrayAdapter.createFromResource(this, R.array.poscode, android.R.layout.simple_spinner_item);\n spnr_pos.setAdapter(POS_LIST);\n\n // barcode\n List<String> labelsBarCode = db.getAllBarCodes();\n ArrayAdapter<String> dataAdapter11 = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,\n labelsBarCode);\n dataAdapter11.setDropDownViewResource(android.R.layout.simple_list_item_1);\n autoCompleteTextViewSearchItemBarcode.setAdapter(dataAdapter11);\n\n }",
"List<Employee> allEmpInfo();",
"private void initAutoCompleteAdapter(){\n adapterAcGeneric = new GenericAcAdapter(getActivity(),\n android.R.layout.simple_dropdown_item_1line);\n ac_generics.setThreshold(0);\n ac_generics.setAdapter(adapterAcGeneric);\n ac_generics.setOnItemClickListener(\n new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n //selectedText.setText(autoSuggestAdapter.getObject(position));\n genericName = adapterAcGeneric.getObject(position);\n makeApiCallForSearch();\n CommonMethods.hideKeybaord(getActivity());\n }\n });\n ac_generics.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int\n count, int after) {\n }\n @Override\n public void onTextChanged(CharSequence s, int start, int before,\n int count) {\n genericName = \"\";\n handlerGeneric.removeMessages(TRIGGER_AUTO_COMPLETE);\n handlerGeneric.sendEmptyMessageDelayed(TRIGGER_AUTO_COMPLETE,\n AUTO_COMPLETE_DELAY);\n }\n @Override\n public void afterTextChanged(Editable s) {\n }\n });\n handlerGeneric = new Handler(new Handler.Callback() {\n @Override\n public boolean handleMessage(Message msg) {\n if (msg.what == TRIGGER_AUTO_COMPLETE) {\n if (!TextUtils.isEmpty(ac_generics.getText())) {\n // Log.d(\"DEBUG\", \"in generic\");\n makeApiCall(ac_generics.getText().toString(), 1);\n }\n }\n return false;\n }\n });\n\n\n adapterAcCompany = new CompanyAcAdapter(getActivity(),\n android.R.layout.simple_dropdown_item_1line);\n ac_companies.setThreshold(0);\n ac_companies.setAdapter(adapterAcCompany);\n ac_companies.setOnItemClickListener(\n new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n //selectedText.setText(autoSuggestAdapter.getObject(position));\n companyName = adapterAcCompany.getObject(position);\n makeApiCallForSearch();\n CommonMethods.hideKeybaord(getActivity());\n }\n });\n ac_companies.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int\n count, int after) {\n }\n @Override\n public void onTextChanged(CharSequence s, int start, int before,\n int count) {\n companyName = \"\";\n handlerCompany.removeMessages(TRIGGER_AUTO_COMPLETE);\n handlerCompany.sendEmptyMessageDelayed(TRIGGER_AUTO_COMPLETE,\n AUTO_COMPLETE_DELAY);\n }\n @Override\n public void afterTextChanged(Editable s) {\n }\n });\n handlerCompany = new Handler(new Handler.Callback() {\n @Override\n public boolean handleMessage(Message msg) {\n if (msg.what == TRIGGER_AUTO_COMPLETE) {\n if (!TextUtils.isEmpty(ac_companies.getText())) {\n //Log.d(\"DEBUG\", \"in company\");\n makeApiCall(ac_companies.getText().toString(), 2);\n }\n }\n return false;\n }\n });\n\n\n ac_companies.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View view, boolean hasFocus) {\n if (hasFocus) {\n Log.d(\"DEBUG\", \"1\");\n makeApiCall(\"\", 2);\n\n // Toast.makeText(getActivity(), \"Got the focus\", Toast.LENGTH_SHORT).show();\n } else {\n // Toast.makeText(getActivity(), \"Lost the focus\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n ac_generics.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View view, boolean hasFocus) {\n if (hasFocus) {\n Log.d(\"DEBUG\", \"2\");\n makeApiCall(\"\", 1);\n // Toast.makeText(getActivity(), \"Got the focus\", Toast.LENGTH_SHORT).show();\n } else {\n // Toast.makeText(getActivity(), \"Lost the focus\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n\n }",
"public void generateList(SearchAutoCompleteListener searchAutoCompleteListener) {\n RequestQueue queue= RequestQueueSingleton.getInstance(this.context).getRequestQueue();\n queue.cancelAll(\"search\");\n if (this.nameOrCode.length() > 0) {\n StringRequest request = new StringRequest(Request.Method.GET,\n Api.autoCompleteString +\"?q=\"+this.nameOrCode,\n (String response) -> {\n try {\n JSONObject data = new JSONObject(response);\n JSONArray placearray = data.getJSONArray(\"places\");\n\n if (placearray.length() == 0) {\n Log.d(TAG,\"Place Not Found\");\n searchAutoCompleteListener.onFailure(JsonUtils.logError(TAG,response));\n } else {\n ArrayList<Place> searchPlaces = JsonUtils.getPlaces(placearray);\n searchAutoCompleteListener.onPlaceListReceived(searchPlaces);\n }\n } catch (JSONException e) {\n searchAutoCompleteListener.onFailure(JsonUtils.logError(TAG,response));\n }\n },\n error ->{\n Log.d(TAG,JsonUtils.handleResponse(error));\n searchAutoCompleteListener.onFailure(JsonUtils.handleResponse(error));\n }){\n };\n request.setTag(\"search\");\n queue.add(request);\n }\n }",
"@RequestMapping(method=RequestMethod.POST ,value=\"/searchemployee\")\n\tpublic ModelAndView getEmployee(@RequestParam int employee_id )\n\t{\n\t\tSystem.out.println(\"INSIDE search by eid\");\n\t\t\n\t\tEmployeeRegmodel erobj= ergserv.getEmployeeRecordFromDB(employee_id);\n\t\t\n\t\tModelAndView mv= new ModelAndView();\n\t\t\t\tif(erobj.getEmployee_fullname()!= null)\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"stinfo\", erobj);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"msg\", \"INVALID Employee ID\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tmv.setViewName(\"ShowEmployeeDetails.jsp\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn mv;\n\t}",
"String searchBoxUserRecord();",
"public String employeeName(int employeeId) {\n\n String nameOfEmployee = \"\";\n\n try {\n Connection conn = ConnectToSqlDB.connectToSqlDatabase();\n String query = \"SELECT * FROM employees;\";\n\n ConnectToSqlDB.statement = conn.createStatement();\n\n ConnectToSqlDB.resultSet = ConnectToSqlDB.statement.executeQuery(query);\n\n while (ConnectToSqlDB.resultSet.next()) {\n int idField = ConnectToSqlDB.resultSet.getInt(\"employee_id\");\n String nameField = ConnectToSqlDB.resultSet.getString(\"employee_name\");\n String salaryField = ConnectToSqlDB.resultSet.getString(\"employee_salary\");\n String departmentField = ConnectToSqlDB.resultSet.getString(\"department\");\n\n if (idField == employeeId) {\n nameOfEmployee = nameField;\n }\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n System.out.print(\"The selected ID belongs to the following employee: \");\n return nameOfEmployee;\n }",
"HashSet<String> displayEmployee();",
"java.lang.String getEmployeeName();",
"private void autoCompleteField(int autoCompleteViewId, int editViewId, String dbField, String[] defaultValues) {\r\n\t\tmDbHelper.open();\r\n\t\tAutoCompleteTextView textView = (AutoCompleteTextView) findViewById(autoCompleteViewId);\r\n\t Cursor cursor = mDbHelper.fetch(dbField);\r\n\t if (cursor != null && cursor.getCount() > 0) {\r\n\t \tstartManagingCursor(cursor);\r\n\t\t\tint index = cursor.getColumnIndexOrThrow(dbField);\r\n\t \tList<String> field = new ArrayList<String>();\r\n\t \tif (defaultValues != null)\r\n\t \t\tfor (String value: defaultValues)\r\n\t \t\t\tfield.add(value);\r\n\t \tboolean last = false;\r\n\t \twhile (!last) {\r\n\t \t\tfield.add(cursor.getString(index));\r\n\t \t\tlast = cursor.isLast();\r\n\t \t\tcursor.moveToNext();\r\n\t \t}\r\n \t\tArrayAdapter<String> adapter = new ArrayAdapter<String>(this, editViewId, field);\r\n \t\ttextView.setAdapter(adapter);\r\n\t }\r\n\t mDbHelper.close();\r\n\t}",
"public String getSearchHint();",
"public static void getEmployeeInformation(Employee [] employee) {\n\t\tif (Employee.getEmployeeQuantity() == 0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no employee!\");\n\t\t} else {\n\t\t\tfor (int i = 0; i < Employee.getEmployeeQuantity(); i++) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"-------List of Employees-------\\n\"\n\t\t\t\t\t\t+ (i+1) + \": \"+ employee[i+1].getName() + \"\\n\");\n\t\t\t}\t\t\t\n\t\t}\n\t}",
"public void searchPerson() {\r\n\r\n\t/*get values from text filed*/\r\n\tname = tfName.getText();\r\n\r\n\t/*clear contents of arraylist if there are any from previous search*/\r\n\tpersonsList.clear();\r\n\r\n // intialize recordNumber to zero\r\n\trecordNumber = 0;\r\n\r\n\tif(name.equals(\"\"))\r\n\t{\r\n\t\tJOptionPane.showMessageDialog(null,\"Please enter person name to search.\");\r\n\t}\r\n\telse\r\n\t{\r\n\t\t/*get an array list of searched persons using PersonDAO*/\r\n\t\tpersonsList = pDAO.searchPerson(name);\r\n\r\n\t\tif(personsList.size() == 0)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(null, \"No record found.\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/*downcast the object from array list to PersonInfo*/\r\n\t\t\tPersonInfo person = (PersonInfo) personsList.get(recordNumber);\r\n\r\n // displaying search record in text fields \r\n\t\t\ttfName.setText(person.getName());\r\n\t\t\ttfAddress.setText(person.getAddress());\r\n\t\t\ttfPhone.setText(\"\"+person.getPhone());\r\n\t\t\ttfEmail.setText(person.getEmail());\r\n\t\t}\r\n\t}\r\n\r\n }",
"private Employee searchEmployee(String empName)\n {\n empName = empName.toLowerCase();\n Employee found = null;\n // Find the employee in the array list\n Iterator<Employee> emp = employees.iterator();\n while(emp.hasNext() && found == null)\n {\n myEmployee = emp.next(); //get employee from array list\n String fullName = myEmployee.getName().toLowerCase();\n String[] FirstLast = fullName.split(\" \");\n \n if (\n matchString(fullName,empName) ||\n matchString(FirstLast[0],empName) ||\n matchString(FirstLast[1],empName)\n )\n found = myEmployee;\n } \n return found;\n }",
"@GetMapping(value=\"/searchEmpData/{fname}\")\n\tpublic List<Employee> getEmployeeByName(@PathVariable (value = \"fname\") String fname)\n\t{\n\t\treturn integrationClient.getEmployees(fname);\n\t}",
"public static String getPlaceAutoComplete(Context context, String API_KEY, AutocompleteSupportFragment autocompleteSupportFragment) {\n\n final String[] place_str = new String[1];\n Places.initialize(context, API_KEY);\n PlacesClient placesClient = Places.createClient(context);\n\n if (autocompleteSupportFragment != null) {\n autocompleteSupportFragment.setPlaceFields(Arrays.asList(Place.Field.ID, Place.Field.NAME));\n\n autocompleteSupportFragment.setOnPlaceSelectedListener(new PlaceSelectionListener() {\n @Override\n public void onPlaceSelected(Place place) {\n // TODO: Get info about the selected place.\n // textView.setText(place.getName()+\",\"+place.getId());\n // Log.i(TAG, \"Place: \" + place.getName() + \", \" + place.getId());\n\n place_str[0] = place.getName() + \",\" + place.getId();\n }\n\n @Override\n public void onError(Status status) {\n // TODO: Handle the error.\n //Log.i(TAG, \"An error occurred: \" + status);\n }\n });\n }\n\n String places = \"\";\n if (place_str[0] != null) {\n places = place_str[0];\n }\n return places;\n }",
"public static String getEmployeeName(String id){\n return \"select e_fname from employee where e_id = '\"+id+\"'\";\n }",
"@SuppressLint(\"LongLogTag\")\n @Override\n public void onTextChanged(CharSequence userInput, int start, int before, int count) {\n Log.e(TAG, \"User input: \" + userInput);\n /*\n String string = userInput.toString();\n if(string.contains(\"'\")){\n string.replace(\"'\", \"''\");\n }\n */\n\n MainActivity mainActivity = ((MainActivity) context);\n\n // query the database based on the user input\n\n mainActivity.RouteNumberInputItem = mainActivity.getRouteNumberFromDb(userInput.toString());\n mainActivity.CustomerNameInputItem = mainActivity.getCustomerNameFromDb(userInput.toString());\n mainActivity.CustomerAccountInputItem = mainActivity.getCustomerAccountFromDb(userInput.toString());\n mainActivity.ItemNameInputItem = mainActivity.getItemNameFromDb(userInput.toString());\n mainActivity.ItemBrandInputItem = mainActivity.getItemBrandFromDb(userInput.toString());\n mainActivity.ItemPackSizeInputItem = mainActivity.getItemPackSizeFromDb(userInput.toString());\n mainActivity.ItemFlavorInputItem = mainActivity.getItemFlavorFromDb(userInput.toString());\n\n // update the adapater\n mainActivity.RouteNumberAdapter.notifyDataSetChanged();\n mainActivity.RouteNumberAdapter = new ArrayAdapter<String>(mainActivity, android.R.layout.simple_dropdown_item_1line, mainActivity.RouteNumberInputItem);\n mainActivity.RouteNumberAutoComplete.setAdapter(mainActivity.RouteNumberAdapter);\n\n mainActivity.CustomerNameAdapter.notifyDataSetChanged();\n mainActivity.CustomerNameAdapter = new ArrayAdapter<String>(mainActivity, android.R.layout.simple_dropdown_item_1line, mainActivity.CustomerNameInputItem);\n mainActivity.CustomerNameAutoComplete.setAdapter(mainActivity.CustomerNameAdapter);\n\n mainActivity.CustomerAccountAdapter.notifyDataSetChanged();\n mainActivity.CustomerAccountAdapter = new ArrayAdapter<String >(mainActivity, android.R.layout.simple_dropdown_item_1line, mainActivity.CustomerAccountInputItem);\n mainActivity.CustomerAccountAutoComplete.setAdapter(mainActivity.CustomerAccountAdapter);\n\n mainActivity.ItemNameAdapter.notifyDataSetChanged();\n mainActivity.ItemNameAdapter = new ArrayAdapter<String >(mainActivity, android.R.layout.simple_dropdown_item_1line, mainActivity.ItemNameInputItem);\n mainActivity.ItemNameAutoComplete.setAdapter(mainActivity.ItemNameAdapter);\n\n mainActivity.ItemBrandAdapter.notifyDataSetChanged();\n mainActivity.ItemBrandAdapter = new ArrayAdapter<String >(mainActivity, android.R.layout.simple_dropdown_item_1line, mainActivity.ItemBrandInputItem);\n mainActivity.ItemBrandAutoComplete.setAdapter(mainActivity.ItemBrandAdapter);\n\n mainActivity.ItemPackSizeAdapter.notifyDataSetChanged();\n mainActivity.ItemPackSizeAdapter = new ArrayAdapter<String >(mainActivity, android.R.layout.simple_dropdown_item_1line, mainActivity.ItemPackSizeInputItem);\n mainActivity.ItemPackSizeAutoComplete.setAdapter(mainActivity.ItemPackSizeAdapter);\n\n mainActivity.ItemFlavorAdapter.notifyDataSetChanged();\n mainActivity.ItemFlavorAdapter = new ArrayAdapter<String >(mainActivity, android.R.layout.simple_dropdown_item_1line, mainActivity.ItemFlavorInputItem);\n mainActivity.ItemFlavorAutoComplete.setAdapter(mainActivity.ItemFlavorAdapter);\n\n }",
"@RequestMapping(method=RequestMethod.POST ,value=\"/searchadminemployee\")\n\tpublic ModelAndView gettEmployee(@RequestParam int employee_id )\n\t{\n\t\tSystem.out.println(\"INSIDE search by eid\");\n\t\t\n\t\tEmployeeRegmodel erobj= ergserv.getEmployeeRecordFromDB(employee_id);\n\t\t\n\t\tModelAndView mv= new ModelAndView();\n\t\t\t\tif(erobj.getEmployee_fullname()!= null)\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"stinfo\", erobj);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmv.addObject(\"msg\", \"INVALID Employee ID\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tmv.setViewName(\"adminemployeedelete.jsp\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn mv;\n\t}",
"public String enameGet(String emp_id) throws Exception;",
"public Employee SearchEmployee(int idEmployee)\n\t{\n\t\tfor(int i = 0; i < departments.size() ; i++)\n\t\t{\n\t\t\tfor(Employee emp : departments.get(i).getEmployeeList())\n\t\t\t{\n\t\t\t\tif(emp.getIdEmployee()==idEmployee) return emp;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public String getEmployeeName();",
"public List<String> autoComplete(String inputValue) {\n System.out.println(\"The input value is: \" + inputValue);\n List<String> outputList = new ArrayList<String>();\n\n StockDetailsROVOImpl vo = getStockDetailsROVO();\n\n vo.executeQuery();\n RowSetIterator it = vo.createRowSetIterator(null);\n\n while (it.hasNext()) {\n StockDetailsROVORowImpl newRow =\n (StockDetailsROVORowImpl)it.next();\n if (newRow.getStockname().toLowerCase().startsWith(inputValue)) {\n outputList.add(newRow.getStockname());\n System.out.println(newRow.getStockname());\n }\n }\n vo.clearCache();\n it.closeRowSetIterator();\n return outputList;\n }",
"public String getEmployeeMangerDetails(Employeedetails employeedetails);",
"public static void main(String[] args) {\n System.out.println(\"How many employees would you like to type numbers for?\");\n Scanner emp_id_in = new Scanner(System.in);\n int emp_in = emp_id_in.nextInt();\n Employee EmployeeArr[] = new Employee[emp_in]; // should be size of the scanned input\n for (int i = 0; i < EmployeeArr.length; i++) {\n // Employee number\n System.out.println(\"Please enter the employees ID number(Enter a number from 0 to 999999)\");\n Scanner emp_id_scanner = new Scanner(System.in);\n int emp_id = emp_id_scanner.nextInt();\n // First\n System.out.println(\"Please enter the employees first name:\");\n Scanner first_name_scanner = new Scanner(System.in);\n String first_name = first_name_scanner.nextLine();\n // Last\n System.out.println(\"Please enter the employees last name:\");\n Scanner last_name_scanner = new Scanner(System.in);\n String last_name = last_name_scanner.nextLine();\n // Push entries into Name class\n Name name_obj = new Name();\n name_obj.get_employee_name(emp_id, first_name, last_name);\n //Street\n System.out.println(\"Please enter the employee's street name: \");\n Scanner street_name_scanner = new Scanner(System.in);\n String street_name = street_name_scanner.nextLine();\n // City\n System.out.println(\"Please enter the employee's city: \");\n Scanner city_name_scanner = new Scanner(System.in);\n String city_name = city_name_scanner.nextLine();\n // State\n System.out.println(\"Please enter the employee's state: \");\n Scanner state_name_scanner = new Scanner(System.in);\n String state_name = state_name_scanner.nextLine();\n System.out.println(\">>>>>>>>>>\" + state_name.split(\"\").length);\n // Zip\n System.out.println(\"Please enter the employee's zip code\");\n Scanner zip_code_scanner = new Scanner(System.in);\n int zip_code = zip_code_scanner.nextInt();\n // Push entries into Address class\n Address address_obj = new Address();\n address_obj.get_address_data(street_name, city_name, state_name, zip_code);\n // hire month\n System.out.println(\"Please enter the month the employee was hired(Eg. 1,2,3,... etc): \");\n Scanner month_scanner = new Scanner(System.in);\n int month = month_scanner.nextInt();\n // hire day\n System.out.println(\"Please enter the day the employee was hired(Eg. 1,2,3,... etc): \");\n Scanner day_scanner = new Scanner(System.in);\n int day = day_scanner.nextInt();\n // hire year\n System.out.println(\"Please enter the year the employee was hired: \");\n Scanner year_scanner = new Scanner(System.in);\n int year = year_scanner.nextInt();\n // Push data into Date class\n Date date_obj = new Date();\n date_obj.get_date_data(month, day, year);\n // Push data into employee class\n EmployeeArr[i] = new Employee();\n EmployeeArr[i].get_employee_information(name_obj.employee_number, name_obj.employee_first, name_obj.employee_last, address_obj.street, address_obj.zip_code,\n address_obj.city, address_obj.state, date_obj.hire_month, date_obj.hire_day, date_obj.hire_year);\n\n }\n // Show the data\n for (int j = 0; j < EmployeeArr.length; j++) {\n EmployeeArr[j].show_dat();\n }\n }",
"private void getemp( String name,int id ) {\r\n\t\tSystem.out.println(\" name and id\"+name+\" \"+id);\r\n\t}",
"public String f9employee() throws Exception {\r\n\t\t/**\r\n\t\t * BUILD COMPLETE QUERY (ALONG WITH PARAMETERS) WHICH GIVES THE DESIRED\r\n\t\t * OUTPUT ALONG WITH PROFILES\r\n\t\t */\r\n\t\tString query = \"SELECT EMP_TOKEN, EMP_FNAME || ' ' || EMP_MNAME || ' ' || EMP_LNAME,\"\r\n\t\t\t\t+ \" EMP_ID,CENTER_NAME,RANK_NAME\"\r\n\t\t\t\t+ \" FROM HRMS_EMP_OFFC\"\r\n\t\t\t\t+ \" LEFT JOIN HRMS_CENTER ON(HRMS_CENTER.CENTER_ID=HRMS_EMP_OFFC.EMP_CENTER)\"\r\n\t\t\t\t+ \" LEFT JOIN HRMS_RANK ON(HRMS_RANK.RANK_ID=HRMS_EMP_OFFC.EMP_RANK) \";\r\n\r\n\t\tquery += \"\tORDER BY EMP_ID ASC \";\r\n\r\n\t\t/**\r\n\t\t * SET THE HEADER NAMES OF TABLE WHICH IS DISPLAYED IN POP-UP WINDOW. *\r\n\t\t */\r\n\r\n\t\tString[] headers = { getMessage(\"employee.id\"), getMessage(\"employee\") };\r\n\r\n\t\t/**\r\n\t\t * DEFINE THE PERCENT WIDTH OF EACH COLUMN\r\n\t\t */\r\n\t\tString[] headerWidth = { \"15\", \"35\" };\r\n\r\n\t\t/**\r\n\t\t * -SET THE FIELDNAMES INTO WHICH THE VALUES ARE BEING POPULATED AFTER A\r\n\t\t * ROW IS SELECTED. -USEFULL IN CASES WHERE SUBMIT FLAG IS 'false'\r\n\t\t * -PARENT FORM WILL SHOW THE VALUES IN THE FILDS CORRSPONDING TO COLUMN\r\n\t\t * INDEX. NOTE: LENGHT OF COLUMN INDEX MUST BE SAME AS THE LENGTH OF\r\n\t\t * FIELDNAMES\r\n\t\t */\r\n\r\n\t\tString[] fieldNames = { \"searchemptoken\", \"searchempName\",\r\n\t\t\t\t\"searchempId\" };\r\n\r\n\t\t/**\r\n\t\t * SET THE COLUMN INDEX E.G. SUPPOSE THE POP-UP SHOWS 4 COLUMNS, BUT ON\r\n\t\t * CLICKING A ROW ONLY SECOND AND FORTH COLUMN VALUES NEED TO BE SHOWN\r\n\t\t * IN THE PARENT WINDOW FIELDS THEN THE COLUMN INDEX CAN BE {1,3}\r\n\t\t * \r\n\t\t * NOTE: COLUMN NUMBERS STARTS WITH 0\r\n\t\t * \r\n\t\t */\r\n\t\tint[] columnIndex = { 0, 1, 2 };\r\n\r\n\t\t/**\r\n\t\t * WHEN SET TO 'true' WILL SUBMIT THE FORM\r\n\t\t * \r\n\t\t */\r\n\t\tString submitFlag = \"false\";\r\n\r\n\t\t/**\r\n\t\t * IF THE 'submitFlag' IS 'true' , THE FORM WILL SUBMIT AND CALL\r\n\t\t * FOLLOWING METHOD IN THE ACTION * NAMING CONVENSTION: <NAME OF\r\n\t\t * ACTION>_<METHOD TO CALL>.action\r\n\t\t */\r\n\t\tString submitToMethod = \"\";\r\n\r\n\t\t/**\r\n\t\t * CALL THIS METHOD AFTER ALL PARAMETERS ARE DEFINED *\r\n\t\t */\r\n\r\n\t\tsetF9Window(query, headers, headerWidth, fieldNames, columnIndex,\r\n\t\t\t\tsubmitFlag, submitToMethod);\r\n\r\n\t\treturn \"f9page\";\r\n\t}",
"public String getEmployeeInfo() throws SQLException {\n String SQL = String.format(\"SELECT * FROM %s\", DbSchema.table_employees.name);\n Statement statement = con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n ResultSet results = statement.executeQuery(SQL);\n\n //Prepare format stuff\n String tableHeader = String.format(\"%s %s %s %s %s\\n\", table_employees.cols.id, table_employees.cols.first_name, table_employees.cols.last_name, table_employees.cols.age, table_employees.cols.salary);\n StringBuilder output = new StringBuilder(tableHeader);\n DecimalFormat format = new DecimalFormat(\"#,###.00\");\n\n while (results.next()) {\n //Iterate through each row (employee) and add each bit of info to table\n String row = String.format(\"%s %s %s %s %s\\n\",\n results.getInt(table_employees.cols.id),\n results.getString(table_employees.cols.first_name),\n results.getString(table_employees.cols.last_name),\n results.getInt(table_employees.cols.age),\n format.format(results.getDouble(table_employees.cols.salary)));\n output.append(row);\n }\n return output.toString();\n }",
"private void suggestCategory() {\n String[] allCat = {\"Pizza\", \"Pasta\", \"Dessert\", \"Salad\", \"SoftDrinks\"};\n// for (ItemDTO i : allDetails) {\n// names.add(i.getName());\n// }\n\n TextFields.bindAutoCompletion(txtCat, allCat);\n }",
"@Override\n\tString searchEmployee(String snum) {\n\t\treturn null;\n\t}",
"public void getByPropertyemployee(String textToFind){\n\t\t// ejemplo buscar por propiedad direccion\n\t\tEmployeeResult employeeResult = getJerseyClient().resource(getBaseUrl() + \"/employee/search/\"+textToFind).get(EmployeeResult.class);\n\t\tfor (EmployeeDTO c : employeeResult.getEmployees()) {\n\t\t\tSystem.out.println(\"Nombre: \"+c.getName());\n\t\t\tSystem.out.println(\"Apellido: \"+c.getSurname());\n\t\t\tSystem.out.println(\"Direccion: \"+c.getAddress());\n\t\t\tSystem.out.println(\"RUC: \"+c.getRUC());\n\t\t\tSystem.out.println(\"Telefono: \"+c.getCellphone());\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tList<Employee_Dai> employeeList = new ArrayList<>();\r\n\t\temployeeList.add(new Employee_Dai(1, 300, 14, \"dainguyen97\", \"Nguyen Ngoc Dai\"));\r\n\t\temployeeList.add(new Employee_Dai(2, 500, 16, \"tryhard\", \"Dao Thi Nhung\"));\r\n\t\temployeeList.add(new Employee_Dai(3, 800, 18, \"nevergiveup\", \"Dinh Tien Kiet\"));\r\n\t\temployeeList.add(new Employee_Dai(4, 2000, 30, \"nothing100\", \"Nguyen Ngoc Tam\"));\r\n\t\temployeeList.add(new Employee_Dai(5, 1300, 24, \"thosan80\", \"Kieu Viet Anh\"));\r\n\t\temployeeList.add(new Employee_Dai(6, 900, 20, \"justiceleague\", \"Pham Ngoc Anh\"));\r\n\t\temployeeList.add(new Employee_Dai(7, 1000, 22, \"overnight\", \"Tran Van Phung\"));\r\n\t\temployeeList.add(new Employee_Dai(8, 1500, 28, \"theend\", \"Dang Viet Bac\"));\r\n\t\t\r\n\t\tSortBySalary(employeeList);\r\n\t\tSortByAge(employeeList);\r\n\t\tSortByName(employeeList);\r\n\t\tSearchCharacterNInUser(employeeList);\r\n\t}",
"public static void main(String[] args){\n List<ArrayListEmployee5> ale = new ArrayList<>();\n// Creating employees\n ArrayListEmployee5 emp1 = new ArrayListEmployee5(1,\"Aaaa\",\"12 lane 3\",234567);\n ArrayListEmployee5 emp2 = new ArrayListEmployee5(2,\"Bbbbb\",\"12 lane 4\",1232343.354F);\n ArrayListEmployee5 emp3 = new ArrayListEmployee5(3,\"Cccc\",\"12 lane 9\",455677);\n// Adding employee to arraylist\n ale.add(emp1);\n ale.add(emp2);\n ale.add(emp3);\n// Input to search for a particular employee id\n System.out.println(\"Enter employee id to search in arraylist\");\n Scanner input = new Scanner(System.in);\n int empid = input.nextInt();\n// iterator to search arraylist\n Iterator<ArrayListEmployee5> iterator = ale.iterator();\n// condition to search for a employee with id\n while(iterator.hasNext()) {\n ArrayListEmployee5 employee = iterator.next();\n if(employee.id == empid) {\n System.out.println(employee);\n }\n\n }\n\n\n }",
"String searchBoxUserRecordSelected();",
"public ArrayListFoodAdapter(Context context, FoodDAO foodDAO, AutoCompleteTextView refAutocomplete) {\n super(foodDAO.getAllFood());\n this.foodDAO = foodDAO;\n mResults = foodDAO.getAllFood();\n// refAutocomplete.setAdapter(this);\n }",
"public interface AutoCompleter {\n \n /** Sets the callback that will be notified when items are selected. */\n void setAutoCompleterCallback(AutoCompleterCallback callback);\n\n /** \n * Sets the new input to the autocompleter. This can change what is\n * currently visible as suggestions.\n * \n * The returned Future returns true if the lookup for autocompletions\n * completed succesfully. True does not indicate autocompletions are\n * available. It merely indicates that the lookup completed.\n * \n * Because AutoCompleters are allowed to be asynchronous, one should\n * use Future.get or listen to the future in order to see when\n * the future has completed.\n */\n ListeningFuture<Boolean> setInput(String input);\n\n /**\n * Returns true if any autocomplete suggestions are currently available, based the data\n * that was given to {@link #setInput(String)}.\n */\n boolean isAutoCompleteAvailable();\n\n /** Returns a component that renders the autocomplete items. */\n JComponent getRenderComponent();\n\n /** Returns the currently selected string. */\n String getSelectedAutoCompleteString();\n\n /** Increments the selection. */\n void incrementSelection();\n \n /** Decrements the selection. */\n void decrementSelection();\n \n /** A callback for users of autocompleter, so they know when items have been suggested. */\n public interface AutoCompleterCallback {\n /** Notification that an item is suggested. */\n void itemSuggested(String autoCompleteString, boolean keepPopupVisible, boolean triggerAction);\n }\n\n}",
"@GetMapping(value=\"/searchEmpData\")\n\tpublic List<Employee> getAllEmployees()\n\t{\n\t\treturn this.integrationClient.getAllEmployees();\n\t}",
"public static void search() {\n int userSelected = selectFromList(crudParamOptions);\n switch (userSelected){\n case 1:\n searchFirstName();\n break;\n case 2:\n searchLastName();\n break;\n case 3:\n searchPhone();\n break;\n case 4:\n searchEmail();\n break;\n default:\n break;\n }\n }",
"void itemSuggested(String autoCompleteString, boolean keepPopupVisible, boolean triggerAction);",
"private void populateAutoComplete() {\n if (!mayRequestContacts()) {\n return;\n }\n\n getLoaderManager().initLoader(0, null, this);\n }",
"@Override\n public void onTextChanged(CharSequence userInput, int start, int before, int count) {\n System.out.println(\"User input: \" + userInput);\n\n MainActivity mainActivity = ((MainActivity) context);\n /*String query= \"\";\n if(who == 1)\n query = mainActivity.from;\n else if(who == 2)\n query = mainActivity.to;\n */\n ArrayList<String> ddlSuggestions = Map.getSimilarNamesFromName(userInput.toString());\n\n // update the adapater\n if(who == 1) {\n mainActivity.fromAdapter = new ArrayAdapter<String>(mainActivity, android.R.layout.simple_dropdown_item_1line, ddlSuggestions);\n mainActivity.fromAdapter.notifyDataSetChanged();\n mainActivity.fromAutoComplete.setAdapter(mainActivity.fromAdapter);\n System.out.println(\"Called1\");\n } else if(who == 2) {\n mainActivity.toAdapter = new ArrayAdapter<String>(mainActivity, android.R.layout.simple_dropdown_item_1line, ddlSuggestions);\n mainActivity.toAdapter.notifyDataSetChanged();\n mainActivity.toAutoComplete.setAdapter(mainActivity.toAdapter);\n System.out.println(\"Called2\");\n }\n }",
"public abstract AutoCompleteDictionary getDictionary(SearchCategory categoryToSearch);",
"public static Map<String, Long> searchFirstName(){\n boolean keepLooping = true;\n Map<String, Long> outputMap;\n do{\n outputMap = new HashMap<>();\n myScanner.nextLine();\n System.out.println(\"\\nEnter your search string: \\n\");\n String searchTerm = myScanner.next();\n myScanner.nextLine();\n\n for(Contact result : contactObjList){\n String firstName = result.getFirstName();\n if(firstName.toLowerCase().contains(searchTerm.toLowerCase())){\n outputMap.put(result.toContactString(), result.getId());\n }\n }\n if(outputMap.size() == 0){\n System.out.println(\"\\nNo results found.\\n\");\n } else {\n System.out.println(\"\\nHere are your search results:\\n\");\n }\n for(Map.Entry<String, Long> entry : outputMap.entrySet()){\n System.out.println(entry.getKey());\n }\n System.out.println(\"\\n\");\n int userSelect = selectFromList(repeatAction);\n if (userSelect==1){\n keepLooping=false;\n }\n } while(keepLooping);\n return outputMap;\n }",
"public String getEmployeeDetails(int employeeId) {\n\treturn employeeService.getEmployeeDetails(employeeId).toString(); \n }",
"public List<Customer> findAutoCompleteCustomers(String key) {\n\t\tTypedQuery<Customer> query = em.createQuery(\n\t\t\t\t\"select distinct c from Customer c \"\n\t\t\t\t\t\t+ \" where upper(concat(c.customerName1,' ', c.customerName2,' ', c.customerName3,' ', c.customerName4)) like :name\",\n\t\t\t\tCustomer.class);\n\t\tquery.setParameter(\"name\", \"%\" + key.toUpperCase() + \"%\");\n\t\tList<Customer> customers = query.setFirstResult(0).setMaxResults(10).getResultList();\n\n\t\treturn customers;\n\t}",
"@Override\n\tpublic List<Booking> getDetails(String empid) {\n\t\tSession session = factory.getCurrentSession();\n\t\tQuery query = session\n\t\t\t\t.createQuery(\"from Booking where employeeId=\"+empid);\n\t\treturn query.list();\n\t}",
"private void displayEmployee()\n {\n employeeJComboBox.removeAllItems();\n int location = employeeJComboBox.getSelectedIndex();\n String[] namesArray = new String[employees.size()];\n for(int i = 0; i < employees.size(); i++)\n {\n namesArray[i] = employees.get(i).getName();\n employeeJComboBox.addItem(namesArray[i]);\n }\n if(location < 0)\n {\n employeeJComboBox.setSelectedIndex(0);\n }\n else\n {\n employeeJComboBox.setSelectedIndex(location);\n }\n }",
"public void searchCliente(JTextField txt, TextAutoCompleter match){\n match.removeAllItems(); // Remover todos los elementos del Autocompletador. \n cl = clientes();//Inserta todos los clientes en el vector. \n cl.forEach(item -> { //Agrega al autocompletador nombre e ID de los clientes \n match.addItem(item.getNombreCliente()+ \" \" + item.getApellidoPaterno() + \" \" + String.valueOf(item.getID_Cliente()));\n match.addItem(String.valueOf(item.getID_Cliente()));\n });\n }",
"public void extensionEmployee(){\n\t\tSystem.out.println(\"Of what company is the employee?\");\n\t\tSystem.out.println(theHolding.companies());\n\t\tint selected = reader.nextInt();\n\t\treader.nextLine();\n\t\tif(selected > theHolding.getSubordinates().size()-1){\n\t\t\tSystem.out.println(\"Please select a correct option\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Name of the employee:\");\n\t\t\tString nameEmployee = reader.nextLine();\n\t\t\tSystem.out.println(\"How do you want to perform the search:\");\n\t\t\tSystem.out.println(\"L\");\n\t\t\tSystem.out.println(\"Z\");\n\t\t\tSystem.out.println(\"X\");\n\t\t\tSystem.out.println(\"O\");\n\t\t\tSystem.out.println(\"R. spiral by row\");\n\t\t\tchar travel = reader.nextLine().charAt(0);\n\t\t\tSystem.out.println(\"The extension of the cubicle of the employee is \"+theHolding.extensionEmployee(selected, nameEmployee, travel));\n\t\t}\n\t}",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tEmployeeService service=new EmployeeService();\r\n\t Map<Integer,Employee> acc=new TreeMap<Integer,Employee>();\r\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\r\n\t\tString choice=\"\";\r\n\t\twhile(true)\r\n\t\t{\r\n\t\tSystem.out.println(\"Menu\");\r\n\t\tSystem.out.println(\"======================\");\r\n\t\tSystem.out.println(\"1 for creating employee and getting details from user\");\r\n\t\tSystem.out.println(\"2 for calculating scheme\");\r\n\t\tSystem.out.println(\"3 for display\");\r\n\t\tSystem.out.println(\"4 for exit\");\r\n\t\tchoice=br.readLine();\r\n\t\tswitch(choice)\r\n\t\t{\r\n\t\tcase \"1\":int eid=0;String ename=\"\"; double salary=0.0; String designation=\"\";\r\n\t\t\t System.out.println(\"employee id\");\r\n\t\t\t while(true)\r\n\t\t\t {\r\n\t\t\t \t String s_id=br.readLine();\r\n\t\t\t \t boolean c=Validator.validate(s_id, Validator.idpattern);\r\n\t\t\t \t if(c==true)\r\n\t\t\t \t {\r\n\t\t\t \t\t try {\r\n\t\t\t \t\t eid=Integer.parseInt(s_id);\r\n\t\t\t \t\t break;\r\n\t\t\t \t }\r\n\t\t\t \t\t catch(NumberFormatException e)\r\n\t\t\t \t\t {\r\n\t\t\t \t\t\t System.out.println(\"Enter employee number in numeric\");\r\n\t\t\t \t\t }\r\n\t\t\t }\r\n\t\t\t \t else\r\n\t\t\t \t {\r\n\t\t\t \t\t System.out.println(\"Enter id in 3 digits\");\r\n\t\t\t \t }\r\n\t\t }//end of employee id while\r\n\t\t \r\n\t\t\t System.out.println(\"employee name\");\r\n\t\t\t while(true)\r\n\t\t\t {\r\n\t\t\t \t String s_na=br.readLine();\r\n\t\t\t \t boolean c=Validator.validate(s_na, Validator.namepattern);\r\n\t\t\t \t if(c==true)\r\n\t\t\t \t {\r\n\t\t\t \t\t try {\r\n\t\t\t \t\t ename=s_na;\r\n\t\t\t \t\t break;\r\n\t\t\t \t }\r\n\t\t\t \t\t catch(NumberFormatException e)\r\n\t\t\t \t\t {\r\n\t\t\t \t\t\t System.out.println(\"Enter employee number in alphabetical order\");\r\n\t\t\t \t\t }\r\n\t\t\t }\r\n\t\t\t \t else\r\n\t\t\t \t {\r\n\t\t\t \t\t System.out.println(\"Enter name in correct format\");\r\n\t\t\t \t }\r\n\t\t }//end of employee name while\r\n\t\t \r\n\t\t\t System.out.println(\"employee designation\");\r\n\t\t\t while(true)\r\n\t\t\t {\r\n\t\t\t \t String s_d=br.readLine();\r\n\t\t\t \t boolean c=Validator.validate(s_d, Validator.despattern);\r\n\t\t\t \t if(c==true)\r\n\t\t\t \t {\r\n\t\t\t \t\t try {\r\n\t\t\t \t\t designation=s_d;\r\n\t\t\t \t\t break;\r\n\t\t\t \t }\r\n\t\t\t \t\t catch(NumberFormatException e)\r\n\t\t\t \t\t {\r\n\t\t\t \t\t\t System.out.println(\"Enter employee designation in alphabets\");\r\n\t\t\t \t\t }\r\n\t\t\t }\r\n\t\t\t \t else\r\n\t\t\t \t {\r\n\t\t\t \t\t System.out.println(\"Enter designation again\");\r\n\t\t\t \t }\r\n\t\t }//end of employee id while\r\n\t\t\t System.out.println(\"employee salary\");\r\n\t\t\t while(true)\r\n\t\t\t {\r\n\t\t\t \t String s_sa=br.readLine();\r\n\t\t\t \t boolean c=Validator.validate(s_sa, Validator.salpattern);\r\n\t\t\t \t \r\n\t\t\t \t if(c==true)\r\n\t\t\t \t {\r\n\t\t\t \t\t try {\r\n\t\t\t \t\t salary=Double.parseDouble(s_sa);\r\n\t\t\t \t\t break;\r\n\t\t\t \t }\r\n\t\t\t \t\t catch(NumberFormatException e)\r\n\t\t\t \t\t {\r\n\t\t\t \t\t\t System.out.println(\"Enter employee salary in numeric\");\r\n\t\t\t \t\t }\r\n\t\t\t }\r\n\t\t\t \t else\r\n\t\t\t \t {\r\n\t\t\t \t\t System.out.println(\"Enter salary again \");\r\n\t\t\t \t }\r\n\t\t\t \t \r\n\t\t\t \t if(salary<0)\r\n\t\t\t \t {\r\n\t\t\t \t\t System.out.println(\"Enter the salary greater than zero \");\r\n\t\t\t \t\t break;\r\n\t\t\t \t }\r\n\t\t\t \t \r\n\t\t }//end of employee id while\r\n\t\t\t Employee ob=new Employee(eid,ename,salary,designation);\r\n\t \t\t acc.put(ob.getEid(),ob);\r\n\t\t\t System.out.println(\"Employee added\");\r\n\t\t break;\r\n\t\t \r\n\t\tcase \"2\"://System.out.println(\"enter employee id \");\r\n\t\t //eid=Integer.parseInt(br.readLine());\r\n\t\t\t Collection<Employee> v=acc.values();\r\n\t List<Employee> acclis=new ArrayList<Employee>(v);\r\n\t for(Employee o:acclis)\r\n\t {\r\n\t \t service.calculateScheme(o);\r\n\t }\r\n\t\t //System.out.println(service.calculateScheme(acc.get(eid)));\r\n\t\t break;\r\n\t\t \r\n\t\tcase \"3\":System.out.println(\"The details for employees are\");\r\n\t\t System.out.println(\"=============================\");\r\n\t\t Collection<Employee> vc=acc.values();\r\n\t\t List<Employee> acclist=new ArrayList<Employee>(vc);\r\n\t\t for(Employee o:acclist)\r\n\t\t {\r\n\t\t \t service.display(o);\r\n\t\t }\r\n\t\t break;\r\n\t\t \r\n\t\tcase \"4\":System.out.println(\"System exiting\");\r\n\t\t System.exit(0);\r\n\t\t break;\r\n\t\t \r\n\t\tdefault:System.out.println(\"wrong choice\");\r\n\t\t}\r\n\t\t}\r\n\t}",
"public void getInfo() {\n Scanner scanner = new Scanner(System.in);\n //get values from the user using scanner and sets class variables appropriately\n System.out.print(\"Enter the first name: \");\n setFirstName(scanner.nextLine());\n\n System.out.print(\"Enter the last name: \");\n setLastName(scanner.nextLine());\n\n System.out.print(\"Enter the ZIP code: \");\n setZipcode(scanner.nextLine());\n\n System.out.print(\"Enter the employee ID: \");\n setEmployeeID(scanner.next());\n }",
"private void setupAutoComplete() {\n // Map between AutoCompleteTextViews and their Adapters. Some text fields have a custom\n // adapter whose data is updated dynamically (rather than being statically set)\n Map<AutoCompleteTextView, ArrayAdapter<String>> map = new HashMap<>();\n map.put(mBind.layoutWidthEdit, new LayoutDimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n map.put(mBind.layoutHeightEdit, new LayoutDimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n map.put(mBind.backgroundEdit, new ArrayAdapter<>(this, LAYOUT_DROPDOWN_ITEM, Data.getArrColors()));\n map.put(mBind.maxWidthEdit, new DimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n map.put(mBind.maxHeightEdit, new DimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n\n for (Map.Entry<AutoCompleteTextView, ArrayAdapter<String>> e : map.entrySet()) {\n e.getKey().setAdapter(e.getValue());\n // For the fields with custom adapters, set up listener, so that the data of the adapter\n // is updated on every keystroke (e.g. \"14\" -> {\"14dp\", \"14in\", \"14mm\", \"14px\", \"14sp\"})\n if (e.getValue() instanceof AutoComplAdapter) {\n e.getKey().addTextChangedListener(new MyTextWatcher() {\n @Override\n public void afterTextChanged(Editable s) {\n // Trigger filtering process on 's', which updates the data of this adapter\n e.getValue().getFilter().filter(s);\n }\n });\n }\n }\n }",
"public static StringBuilder displaySearchResults()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (Customer customer : customerList)\n\t\t{\n\t\t\tfor (int i = 0; i < customerSearch.size(); ++i)\n\t\t\t{\n\t\t\t\tif (customerList.indexOf(customer) == customerSearch.get(i))\n\t\t\t\t{\n\t\t\t\t\tsb.append(String.format(\"%10sRECORD# %d%n\", \" \", (customerSearch.indexOf(i) + 1)));\n\t\t\t\t\tsb.append(customer.toString());\n\t\t\t\t\tsb.append('\\n');\n\n\t\t\t\t\tfor (Account account : customer.getAcctList())\n\t\t\t\t\t{\n\t\t\t\t\t\tsb.append(account.toString());\n\t\t\t\t\t\tsb.append('\\n');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn sb;\n\t}",
"private void searchPatient() {\r\n String lName, fName;\r\n lName = search_lNameField.getText();\r\n fName = search_fNameField.getText();\r\n // find patients with the Last & First Name entered\r\n patientsFound = MainGUI.pimsSystem.search_patient(lName, fName);\r\n\r\n // more than one patient found\r\n if (patientsFound.size() > 1) {\r\n\r\n // create String ArrayList of patients: Last, First (DOB)\r\n ArrayList<String> foundList = new ArrayList<String>();\r\n String toAdd = \"\";\r\n // use patient data to make patient options to display\r\n for (patient p : patientsFound) {\r\n toAdd = p.getL_name() + \", \" + p.getF_name() + \" (\" + p.getDob() + \")\";\r\n foundList.add(toAdd);\r\n }\r\n int length;\r\n // clear combo box (in case this is a second search)\r\n while ((length = selectPatient_choosePatientCB.getItemCount()) > 0) {\r\n selectPatient_choosePatientCB.removeItemAt(length - 1);\r\n }\r\n // add Patient Options to combo box\r\n for (int i = 0; i < foundList.size(); i++) {\r\n selectPatient_choosePatientCB.addItem(foundList.get(i));\r\n }\r\n\r\n // display whether patients found or not\r\n JOptionPane.showMessageDialog(this, \"Found More than 1 Result for Last Name, First Name: \" + lName + \", \" + fName\r\n + \".\\nPress \\\"Ok\\\" to select a patient.\",\r\n \"Search Successful\", JOptionPane.DEFAULT_OPTION);\r\n\r\n selectPatientDialog.setVisible(true);\r\n }\r\n\r\n // one patient found\r\n else if (patientsFound.size() == 1) {\r\n\r\n JOptionPane.showMessageDialog(this, \"Found one match for Last Name, First Name: \" + lName + \", \" + fName,\r\n \"Search Successful\", JOptionPane.DEFAULT_OPTION);\r\n // display patient data\r\n currentPatient = patientsFound.get(0);\r\n search_fillPatientFoundData(currentPatient);\r\n }\r\n // no patient found\r\n else {\r\n\r\n JOptionPane.showMessageDialog(this, \"No Results found for Last Name, First Name:\" + lName + \", \" + fName,\r\n \"Search Failed\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }",
"public void fetchEmployeeDetailsByEmployeeId(EmpCredit empCredit, HttpServletRequest request, String employeeId, boolean editFlag){\r\n\t\ttry {\r\n\t\t\tString empDetailQuery = \"SELECT HRMS_CENTER.CENTER_NAME, HRMS_RANK.RANK_NAME, NVL(SALGRADE_TYPE,' '),\"\r\n\t\t\t\t\t+ \" SALGRADE_CODE, HRMS_EMP_OFFC.EMP_ID, HRMS_SALARY_MISC.GROSS_AMT,\"\r\n\t\t\t\t\t+ \" DECODE(HRMS_SALARY_MISC.SAL_EPF_FLAG,'Y','true','N','false'), NVL(SAL_ACCNO_REGULAR,' '),\" \r\n\t\t\t\t\t+ \" NVL(SAL_PANNO,' '), NVL(DEPT_NAME,' '), DEPT_ID , NVL(TO_CHAR(EMP_REGULAR_DATE,'DD-MM-YYYY'),' '),\"\r\n\t\t\t\t\t+ \" NVL(CADRE_NAME,' '), HRMS_EMP_OFFC.EMP_CADRE \" \r\n\t\t\t\t\t+ \" FROM HRMS_EMP_OFFC \" \r\n\t\t\t\t\t+ \" INNER JOIN HRMS_RANK ON (HRMS_RANK.RANK_ID=HRMS_EMP_OFFC.EMP_RANK)\" \r\n\t\t\t\t\t+ \" INNER JOIN HRMS_CENTER ON (HRMS_EMP_OFFC.EMP_CENTER = HRMS_CENTER.CENTER_ID)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_TITLE ON (HRMS_EMP_OFFC.EMP_TITLE_CODE = HRMS_TITLE.TITLE_CODE)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_DEPT ON (HRMS_DEPT.DEPT_ID = HRMS_EMP_OFFC.EMP_DEPT )\"\r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_CADRE ON (HRMS_CADRE.CADRE_ID = HRMS_EMP_OFFC.EMP_CADRE)\"\r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_SALGRADE_HDR ON(HRMS_EMP_OFFC.EMP_SAL_GRADE=HRMS_SALGRADE_HDR.SALGRADE_CODE)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_SALARY_MISC ON(HRMS_SALARY_MISC.EMP_ID = HRMS_EMP_OFFC.EMP_ID)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_FORMULABUILDER_HDR ON(HRMS_FORMULABUILDER_HDR.FORMULA_ID = HRMS_SALARY_MISC.FORMULA_ID)\" \r\n\t\t\t\t\t+ \" WHERE HRMS_EMP_OFFC.EMP_ID=\"+employeeId;\r\n\t\t\r\n\t\t\tObject empDetailObj[][] = getSqlModel().getSingleResult(empDetailQuery);\r\n\t\t\t\r\n\t\t\tif(empDetailObj!=null && empDetailObj.length>0){\r\n\t\t\t\t\r\n\t\t\t\tempCredit.setEmpCenter(String.valueOf(empDetailObj[0][0]));\r\n\t\t\t\tempCredit.setEmpRank(String.valueOf(empDetailObj[0][1]));\r\n\t\t\t\tempCredit.setGradeName(String.valueOf(empDetailObj[0][2]));\r\n\t\t\t\tempCredit.setGradeId(String.valueOf(empDetailObj[0][3]));\r\n\t\t\t\tempCredit.setEmpId(String.valueOf(empDetailObj[0][4]));\r\n\t\t\t\tempCredit.setGrsAmt(String.valueOf(empDetailObj[0][5]));\r\n\t\t\t\tempCredit.setPfFlag(String.valueOf(empDetailObj[0][6]));\r\n\t\t\t\tempCredit.setEmpAccountNo(String.valueOf(empDetailObj[0][7]));\r\n\t\t\t\tempCredit.setEmpPanNo(String.valueOf(empDetailObj[0][8]));\r\n\t\t\t\tempCredit.setEmpDeptName(String.valueOf(empDetailObj[0][9]));\r\n\t\t\t\tempCredit.setEmpDeptId(String.valueOf(empDetailObj[0][11]));\r\n\t\t\t\tempCredit.setJoiningDate(String.valueOf(empDetailObj[0][11]));\r\n\t\t\t\tempCredit.setEmpGradeName(String.valueOf(empDetailObj[0][12]));\r\n\t\t\t\tempCredit.setEmpGradeId(String.valueOf(empDetailObj[0][13]));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tshowEmp(empCredit, request, employeeId, editFlag);\r\n\t}",
"public void getEventByName()\r\n {\r\n \r\n boolean b=false;\r\n \r\n \r\n String output = \"\";\r\n output=\"Id \"+\"Event Name \"+\"Organizer \"+\"Date \"+\" Fees($)\"+\"\\n\"; \r\n \r\n \r\n List<Event> list2=new ArrayList();\r\n do{\r\n \r\n List<Event> list1=fillArrayList();\r\n \r\n \r\n String string=JOptionPane.showInputDialog(\"Enter Event Name to search Event by Name\");\r\n \r\n for(Event e:list1)\r\n {\r\n if(e.getName().equals(string))\r\n {\r\n list2.add(e);\r\n b=true;\r\n break;\r\n }\r\n else\r\n {\r\n \r\n b=false;\r\n }\r\n }\r\n if(!b)\r\n JOptionPane.showMessageDialog(null,\"Event \"+string+\" Does not exist! please try again\",\"Error\",JOptionPane.ERROR_MESSAGE);\r\n }while(!b);\r\n \r\n \r\n for(int i = 0; i<list2.size(); i++){\r\n \r\n String everything2 = list2.get(i).toString();\r\n\r\n output += everything2+\"\\n\"; \r\n }\r\n JOptionPane.showMessageDialog(null,output,\"Event\",JOptionPane.INFORMATION_MESSAGE);\r\n \r\n allMenuClass.userMenu();\r\n }",
"private void searchQuery(String query) {\n mSearchAheadServiceV3 = new SearchAheadService(this, API_KEY);\n\n String queryString = query;\n\n LatLng surreyBC = new LatLng(49.104599F, -122.823509F);\n\n List searchCollections = Arrays.asList(SearchCollection.AIRPORT, SearchCollection.ADMINAREA,\n SearchCollection.ADDRESS, SearchCollection.FRANCHISE, SearchCollection.POI);\n try {\n SearchAheadQuery searchAheadQuery = new SearchAheadQuery\n .Builder(queryString, searchCollections)\n .location(surreyBC)\n .limit(5)\n .build();\n\n mSearchAheadServiceV3.predictResultsFromQuery(searchAheadQuery,\n new SearchAheadService.SearchAheadResponseCallback() {\n\n @Override\n public void onSuccess(@NonNull SearchAheadResponse searchAheadResponse) {\n\n //Get search results from the request response\n List<SearchAheadResult> searchAheadResults = searchAheadResponse.getResults();\n\n //if we have requests\n if (searchAheadResults.size() > 0) {\n\n //clear the current data to display\n searchResultsData.clear();\n\n try {\n\n int size = (searchAheadResults.size() < 5) ? searchAheadResults.size() : 5;\n\n for (int i = size - 1; i >= 0; i--) {\n // create a hashmap\n HashMap<String, String> hashMap = new HashMap<>();\n\n AddressProperties addressProperties = searchAheadResults.get(i).getPlace().getAddressProperties();\n\n // convert image int to a string and place it into the hashmap with an images key\n hashMap.put(\"address\", searchAheadResults.get(i).getName());\n hashMap.put(\"city\", addressProperties.getCity() + \", \" + addressProperties.getStateCode());\n hashMap.put(\"lat\", String.valueOf(searchAheadResults.get(i).getPlace().getLatLng().getLatitude()));\n hashMap.put(\"long\", String.valueOf(searchAheadResults.get(i).getPlace().getLatLng().getLongitude()));\n\n\n // add this hashmap to the list\n searchResultsData.add(hashMap);\n }\n\n //handle null pointer exception on address properties\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n\n //adapter inputs\n String[] from = {\n \"address\",\n \"city\",\n \"lat\",\n \"long\"\n };\n\n int[] to = {R.id.text_result_address, R.id.text_result_city, R.id.hidden_location_lat, R.id.hidden_location_long};\n\n searchAdapter = new SimpleAdapter(getApplicationContext(), searchResultsData, R.layout.item_search_result, from, to);\n mListViewSearch.setAdapter(searchAdapter);\n mListViewSearch.setVisibility(View.VISIBLE);\n } else {\n resetSearchAheadList();\n }\n }\n\n @Override\n public void onError(Exception e) {\n Log.e(\"MAPQUEST\", \"Search Ahead V3 Failure\", e);\n }\n });\n } catch (IllegalQueryParameterException e) {\n Log.e(\"Error performing search\", e.getMessage());\n }\n }",
"public String getEmployeeById(int id) {\n\t\t//logger.info(\"Inside get employee by id.... Now calling get employee by id\");\n\t\t\n\t\t//logger.log(Level.FINEST ,\"theEmployee value is:....................................\"+theEmployee);\n\t\ttry {\n\t\t\tEmployee theEmployee=getEmployeeService().getEmployeeByID(id);\n\t\t\tExternalContext externalContext= FacesContext.getCurrentInstance().getExternalContext();\n\t\t\tMap<String,Object> requestMap= externalContext.getRequestMap();\n\t\t\trequestMap.put(\"employeeBean\", theEmployee);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//logger.info(\"displaying the map................\"+requestMap);\n\t\treturn \"update\";\n\t}",
"public String getEmployee(String empID) throws JsonParseException,\n\t\t\tJsonMappingException, IOException;",
"public interface EmployeeQueryByDisplayNameView extends ViewObject {\n void query(String userName);\n}",
"private SearchAutoCompleteAPI(Context context,String nameOrCode){\n this.context=context;\n this.nameOrCode=nameOrCode;\n }",
"public void getByIdemployee(int id){\n\t\tEmployeeDTO employee = getJerseyClient().resource(getBaseUrl() + \"/employee/\"+id).get(EmployeeDTO.class);\n\t\tSystem.out.println(\"Nombre: \"+employee.getName());\n\t\tSystem.out.println(\"Apellido: \"+employee.getSurname());\n\t\tSystem.out.println(\"Direccion: \"+employee.getAddress());\n\t\tSystem.out.println(\"RUC: \"+employee.getRUC());\n\t\tSystem.out.println(\"Telefono: \"+employee.getCellphone());\n\t}",
"public void onShowClick(View view) {\n EditText fn = (EditText) findViewById(R.id.editText_FirstName);\n EditText ln = (EditText) findViewById(R.id.editText_LastName);\n AutoCompleteTextView c = (AutoCompleteTextView) findViewById(R.id.autoComplete_Country);\n EditText p = (EditText) findViewById(R.id.editText_Phone);\n EditText a = (EditText) findViewById(R.id.editText_Address);\n EditText e = (EditText) findViewById(R.id.editText_Email);\n\n // Check if the required fields are filled\n if( \"\".equals(fn.getText().toString()) || \"\".equals(c.getText().toString())\n || \"\".equals( p.getText().toString()) || \"\".equals(e.getText().toString())) {\n Toast.makeText(this,getResources().getString(R.string.error_message),Toast.LENGTH_SHORT).show();\n return;\n\n }\n // Set the information on User Object\n user.setFirstName(fn.getText().toString());\n user.setLastName(ln.getText().toString());\n user.setCountry(c.getText().toString());\n user.setPhone(p.getText().toString());\n user.setAddress(a.getText().toString());\n user.setEmail(e.getText().toString());\n\n\n // Show the info into the view\n TextView tv = (TextView) findViewById(R.id.textView_Show);\n tv.setMovementMethod(new ScrollingMovementMethod());\n tv.setText(user.toString());\n\n }",
"@RequestMapping(value = \"/HrRetirmntNminesInfos/{empId}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<HrNomineeInfo> getHrNomineeInfoByemployeeInfoId(@PathVariable long empId) {\n log.debug(\"REST request to get HrRetirmntNminesInfos : empId: {}\", empId );\n List<HrNomineeInfo> hrNomineInfos = hrNomineeInfoRepository.findAllByEmployeeInfo(empId);\n return hrNomineInfos;\n }",
"public void displayAllContacts() {\n\n for (int i = 0; i < contacts.size(); i ++) {\n\n Contact contact = contacts.get(i);\n\n System.out.println(\" Name: \" + contact.getName());\n System.out.println(\" Title: \" + contact.getTitle());\n System.out.println(\" ID #: \" + contact.getID());\n System.out.println(\" Hoursrate: \" + contact.getHoursrate());\n System.out.println(\" Workhours \" + contact.getWorkhours());\n System.out.println(\"-------------\");\n\n\n\n Employee one = new Employee(\"A\", \"A\", \"A\", \"A\"); // I give it some contact information first.\n Employee two = new Employee(\"Bob\", \"Bob\", \"A\", \"A\");\n\n\n\n\n\n\n}\n\n\n//***************************************************************",
"private void getLocation() {\n fields = Arrays.asList(Place.Field.ID, Place.Field.NAME, Place.Field.LAT_LNG);\n\n // Start the autocomplete intent.\n Intent intent = new Autocomplete.IntentBuilder(\n AutocompleteActivityMode.FULLSCREEN, fields)\n .build(this);\n startActivityForResult(intent, AUTOCOMPLETE_REQUEST_CODE);\n }",
"void searchUI();",
"private void searchAddress() {\n CommomUtils.hideKeyboard(MainActivity.this, etAddress);\n\n //Check if the address was informed\n if (etAddress.getText().toString().equals(\"\")) {\n Toast.makeText(MainActivity.this, R.string.activity_main_search_address_validation, Toast.LENGTH_SHORT).show();\n return;\n }\n\n lvResult.setVisibility(View.GONE);\n showProgress();\n\n //Call the api for searching the address\n GoogleMapsService service = ServiceGenerator.createService(GoogleMapsService.class, getString(R.string.google_maps_api_base_url));\n service.getGeocoding(etAddress.getText().toString(), true, new Callback<GeocodingResult>() {\n @Override\n public void success(GeocodingResult googleGeocodingResult, Response response) {\n hideProgress();\n geocodingResult = googleGeocodingResult;\n\n if (geocodingResult.getResults().size() > 0) {\n loadResult();\n } else {\n Toast.makeText(MainActivity.this, R.string.activity_main_search_no_results_found, Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n hideProgress();\n Toast.makeText(MainActivity.this, error.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }",
"public List<User> getAllEmployees(String companyShortName);",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response getEmployee( @NotNull(message = \"Employee ID cannnot be null\")\n @QueryParam(\"empId\") String empId) {\n return null;\n }",
"public static void SearchAction() {\r\n\t\r\n \r\n ActionListener actionListener = new ActionListener() {\r\n public void actionPerformed(ActionEvent event) {\r\n \t try {\r\n\t\t\tConnection con=DriverManager.getConnection( \r\n\t\t\t \t\t\"jdbc:mysql://localhost:3306/Test\",\"root\",\"Tdd&08047728\");\r\n\t\t\tString c = SearchField.getText();\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t String query[] = {\r\n\t\t \"SELECT * FROM capstonedatabase5.employees\", \r\n\t\t \"select EmployeeName from capstonedatabase5.employees where EmployeeName like'\" + c +\"_'\" \r\n\t\t \r\n\t\t };\r\n\t\t \r\n\t\t for(String q : query) {\r\n\t\t ResultSet r = stmt.executeQuery(q);\r\n\t\t System.out.println(\"Names for query \"+q+\" are\");\r\n\t\t \r\n\t\t while (r.next()) {\r\n\t\t String name = r.getString(\"EmployeeName\");\r\n\t\t System.out.print(name+\" \");\r\n\t\t }\r\n\t\t System.out.println();\r\n\t\t }\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n \r\n }\r\n };\r\n\r\n SearchButton2.addActionListener(actionListener);\r\n }",
"@GetMapping(\"/search/results\")\n public String showClientsByNameAndLastName(Model model, @ModelAttribute(CUSTOMER) CustomerDTO customerDTO) {\n Customer customer = mapDTOCustomerToPersistent(customerDTO);\n model.addAttribute(CUSTOMERS, customerService.findByNameAndLastName(customer.getFirstName(), customer.getLastName()));\n return CUSTOMERS_INDEX;\n }",
"@FXML\n public void candidatesearch()\n {\n try\n {\n //getting object from hashmap\n Candidate can = (Candidate)allCandidates.get(C_ID.getText());\n //set values to TextFields by object\n C_Name.setText(can.getName());\n C_NIC.setText(can.getNIC());\n C_P_Id.setText(can.getParty_Id());\n C_P_Name.setText(can.getParty_Name());\n C_Address.setText(can.getAddress());\n C_TelNo.setText(can.getTelNo());\n C_Age.setText(String.valueOf(can.getAge()));\n }\n //catch when no result found\n catch(NullPointerException ex)\n {\n Alert a=new Alert(AlertType.WARNING);\n a.setContentText(\"Couldn't Find Any Records !\");\n a.show();\n }\n\n }",
"public List<EmployeeDetails> getEmployeeDetails();",
"public String[][] displayEmployee() {\r\n\t\t\t\t\r\n\t\t// Print the employee numbers for the employees stored in each bucket's ArrayList,\r\n\t\t// starting with bucket 0, then bucket 1, and so on.\r\n \r\n if (numInHashTable > 0){\r\n dataTable = new String[numInHashTable][5];\r\n int q = 0;\r\n \r\n for (ArrayList<EmployeeInfo> bucket : buckets){\r\n for (int i = 0; i < bucket.size(); i++){\r\n EmployeeInfo theEmployee = bucket.get(i);\r\n \r\n //display specfically for a PTE (All the general attributes plus the specifc ones)\r\n if (theEmployee instanceof PTE) {\r\n PTE thePTE = (PTE) theEmployee;\r\n dataTable[q][0] = Integer.toString(theEmployee.getEmpNum());\r\n dataTable[q][1] = \"PTE\";\r\n dataTable[q][2] = theEmployee.getFirstName();\r\n dataTable[q][3] = theEmployee.getLastName();\r\n dataTable[q][4] = Double.toString(thePTE.calcNetAnnualIncome()); \r\n q++;\r\n }\r\n \r\n //display specfically for a FTE (All the general attributes plus the specifc ones)\r\n if (theEmployee instanceof FTE){\r\n FTE theFTE = (FTE) theEmployee;\r\n dataTable[q][0] = Integer.toString(theEmployee.getEmpNum());\r\n dataTable[q][1] = \"FTE\";\r\n dataTable[q][2] = theEmployee.getFirstName();\r\n dataTable[q][3] = theEmployee.getLastName();\r\n dataTable[q][4] = Double.toString(theFTE.calcNetAnnualIncome());\r\n q++;\r\n } \r\n }\r\n }\r\n }\r\n return dataTable;\r\n }",
"@GetMapping(value = \"/search\")\n\tpublic String searchName(@RequestParam(name = \"fname\") String fname, Model model) {\n\t\tmodel.addAttribute(\"employees\", employeerepository.findByFnameIgnoreCaseContaining(fname));\n\t\treturn \"employeelist\";\n\t}",
"public static void main(String[] args) throws NullPointerException {\n\n\t\t// default constructor\n\t\tEmployeeInfo employeeInfo = new EmployeeInfo();\n\t\tEmployeeInfo employeeInfo1 = new EmployeeInfo(\" FORTUNE COMPANY \");\n\n\t\tEmployeeInfo emp1 = new EmployeeInfo(1, \"Abrah Lincoln\", \"Accounts\", \"Manager\", \"Hodgenville, KY\");\n\t\tEmployeeInfo emp2 = new EmployeeInfo(2, \"John F Kenedey\", \"Marketing\", \"Executive\", \"Brookline, MA\");\n\t\tEmployeeInfo emp3 = new EmployeeInfo(3, \"Franklin D Rossevelt\", \"Customer Realation\", \"Assistnt Manager\",\n\t\t\t\t\"Hyde Park, NY\");\n\n\n\t\t// Printing Employee information in this pattern\n\t\t// \"ID Name Number Department Position Years Worked Pension Bonus Total salary \"\n\n\t\tSystem.out.println(emp1.employeeId() + \"\\t\" + emp1.employeeName() + \"\\t\\t\" + emp1.getDepartment() + \"\\t\\t\"\n\t\t\t\t+ emp1.getJobTitle() + \"\\t\\t\\t\" + emp1.getYearsWorked() + \"\\t\\t\" + emp1.calculateEmployeePension()\n\t\t\t\t+ \"\\t\" + emp1.calculateEmployeeBonus() + \"\\t\\t\" + emp1.calculateSalary());\n\n\t\tSystem.out.println(emp2.employeeId() + \"\\t\" + emp2.employeeName() + \"\\t\\t\" + emp2.getDepartment() + \"\\t\\t\"\n\t\t\t\t+ emp2.getJobTitle() + \"\\t\\t\" + emp2.getYearsWorked() + \"\\t\\t\" + emp2.calculateEmployeePension() + \"\\t \"\n\t\t\t\t+ emp2.calculateEmployeeBonus() + \"\\t\\t\" + emp2.calculateSalary());\n\n\t\tSystem.out.println(emp3.employeeId() + \"\\t\" + emp3.employeeName() + \"\\t\" + emp3.getDepartment() + \"\\t\"\n\t\t\t\t+ emp3.getJobTitle() + \"\\t\" + emp3.getYearsWorked() + \"\\t\\t \" + emp3.calculateEmployeePension() + \"\\t\"\n\t\t\t\t+ emp3.calculateEmployeeBonus() + \" \\t\\t\" + emp3.calculateSalary());\n\n\n\n\t}",
"public void searchPerson() {\n\t\tSystem.out.println(\"*****Search a person*****\");\n\t\tSystem.out.println(\"Enter Phone Number to search: \");\n\t\tlong PhoneSearch = sc.nextLong();\n\t\tfor (int i = 0; i < details.length; i++) {\n\t\t\tif (details[i] != null && details[i].getPhoneNo() == PhoneSearch) {\n\t\t\t\tSystem.out.print(\"Firstname \\tLastname \\tAddress \\t\\tCity \\t\\tState \\t\\t\\tZIP \\t\\tPhone \\n\");\n\t\t\t\tSystem.out.println(details[i]);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic List<Employee> getEmpInfo() {\n\t\treturn null;\n\t}",
"@GET\n\t@Path(\"/search/{empName}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response getByName(@PathParam(\"empName\") String name) {\n\t\tEmployeeFacade employeeFacade = new EmployeeFacade();\n\t\tGenericEntity<List<EmployeeVO>> generic = new GenericEntity<List<EmployeeVO>>(employeeFacade.findByName(name)) {};\n\t\treturn Response.status(200).header(\"Access-Control-Allow-Origin\", CorsFilter.DEFAULT_ALLOWED_ORIGINS).entity(generic).build();\n\t}",
"private void showPlaceAutoComplete(int typeLocation) {\n REQUEST_CODE = typeLocation;\n\n // Filter hanya tmpat yg ada di Indonesia\n AutocompleteFilter typeFilter = new AutocompleteFilter.Builder().setCountry(\"ID\").build();\n try {\n // Intent untuk mengirim Implisit Intent\n Intent mIntent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.MODE_OVERLAY)\n .setFilter(typeFilter)\n .build(getActivity());\n // jalankan intent impilist\n startActivityForResult(mIntent, REQUEST_CODE);\n } catch (GooglePlayServicesRepairableException e) {\n e.printStackTrace(); // cetak error\n } catch (GooglePlayServicesNotAvailableException e) {\n e.printStackTrace(); // cetak error\n // Display Toast\n Toast.makeText(getContext(), \"Layanan Play Services Tidak Tersedia\", Toast.LENGTH_SHORT).show();\n }\n\n }",
"public String empNameGet(String id, SessionFactory connection){\r\n\t\r\n\t\t\tString empName = null;\r\n\t\t\tCommonOperInterface cbt = new CommonConFactory().createInterface();\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t//qry.append(\");\r\n\t\t\t\tList dataListEcho=\tcbt.executeAllSelectQuery(\"SELECT emp.empName, emp.mobOne, dept.deptName FROM employee_basic AS emp INNER JOIN department AS dept ON emp.deptname= dept.id where emp.id =\"+id+\"\".toString(), connection);\r\n\t\t\t\t//dataList = cbt.executeAllSelectQuery(query.toString(), connectionSpace);\r\n\t\t\r\n\t\t\t\tif (dataListEcho != null && dataListEcho.size() > 0)\r\n\t\t\t\t{\r\n\t\t\r\n\t\t\t\t\tfor (Iterator iterator = dataListEcho.iterator(); iterator.hasNext();)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t Object[] object = (Object[]) iterator.next();\r\n\t\t\t\t\t\t //machineSerialList.put(object[0].toString(), object[1].toString());\r\n\t\t\t\t\t\t empName = object[0].toString()+\"#\"+object[1].toString()+\"#\"+object[2].toString();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t}\r\n\t\t\tcatch (SQLGrammarException e)\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn empName;\r\n\t\r\n\t}",
"public static void showResults(List<Candidate> candidates) {\n\t\tif (candidates.isEmpty()) {\r\n\t\t\tSystem.out.println(\"No autocomplete candidates found\\n\");\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\tfor (int i = 0; i < candidates.size(); i++) {\r\n\t\t\t\tSystem.out.println(String.format(\"WORD: %s\\nCONFIDENCE: %d\\n\", candidates.get(i).getWord(), candidates.get(i).getConfidence()));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void suggest(T value);",
"public void displayEmployees(){\n System.out.println(\"NAME --- SALARY --- AGE \");\n for (Employee employee : employees) {\n System.out.println(employee.getName() + \" \" + employee.getSalary() + \" \" + employee.getAge());\n }\n }",
"@GetMapping(value=\"/employes\")\n\tpublic List<Employee> getEmployeeDetails(){\n\t\t\n\t\tList<Employee> employeeList = employeeService.fetchEmployeeDetails();\n\t\treturn employeeList;\t\t\t\t\t\t\n\t}",
"List<String> getLookupValues();",
"void printEmployeeDetail(){\n\t\tSystem.out.println(\"First name: \" + firstName);\n\t\tSystem.out.println(\"Last name: \" + lastName);\n\t\tSystem.out.println(\"Age: \" + age);\n\t\tSystem.out.println(\"Salary: \" + salary);\n\t\tSystem.out.println(firstName + \" has \" + car.color + \" \" + car.model + \" it's VIN is \" + car.VIN + \" and it is make year is \" + car.year );\n\t\t\n\t}",
"public void personLookup() {\n\t\tSystem.out.print(\"Person: \");\n\t\tString entryName = getInputForName();\n\t\tphoneList\n\t\t\t.stream()\n\t\t\t.filter(n -> n.getName().equals(entryName))\n\t\t\t.forEach(n -> System.out.println(n));\n\t}",
"private void doViewAllEmployees() {\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"***Hors Management System:: System Administration:: View All Staffs\");\n\n List<Employee> employees = employeeControllerRemote.retrieveAllEmployees();\n\n employees.forEach((employee) -> {\n System.out.println(\"Employee ID: \" + employee.getEmployeeId() + \"First Name: \" + employee.getFirstName() + \"Last Name: \" + employee.getLastName() + \"Job Role: \" + employee.getJobRole().toString() + \"Username: \" + employee.getUserName() + \"Password: \" + employee.getPassword());\n });\n\n System.out.println(\"Press any key to continue...>\");\n sc.nextLine();\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n // Check that the result was from the autocomplete widget.\n if (requestCode == REQUEST_CODE_AUTOCOMPLETE) {\n if (resultCode == RESULT_OK) {\n // Get the user's selected place from the Intent.\n Place place = PlaceAutocomplete.getPlace(this, data);\n Log.i(TAG, \"Place Selected: \" + place.getName());\n\n // Format the place's details and display them in the TextView.\n eventEditVenue.setText(place.getName().toString().trim());\n eventEditAddres.setText(place.getAddress().toString().trim());\n\n // Display attributions if required.\n CharSequence attributions = place.getAttributions();\n// if (!TextUtils.isEmpty(attributions)) {\n// mPlaceAttribution.setText(Html.fromHtml(attributions.toString()));\n// } else {\n// mPlaceAttribution.setText(\"\");\n// }\n } else if (resultCode == PlaceAutocomplete.RESULT_ERROR) {\n Status status = PlaceAutocomplete.getStatus(this, data);\n Log.e(TAG, \"Error: Status = \" + status.toString());\n } else if (resultCode == RESULT_CANCELED) {\n // Indicates that the activity closed before a selection was made. For example if\n // the user pressed the back button.\n }\n }\n }",
"@Override\n\tpublic void searchByID() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's ID\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public void onSearch(View view){\n List<Address> addressList = null;\n EditText location_tf = (EditText) findViewById(R.id.TFaddress);\n String location = location_tf.getText().toString();\n if(location!=null || location.equals(\"\")){\n Geocoder geocoder = new Geocoder(this);\n try {\n addressList = geocoder.getFromLocationName(location, 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n Address address = addressList.get(0);\n LatLng latLng = new LatLng(address.getLatitude(), address.getLongitude());\n marker = mMap.addMarker(new MarkerOptions().position(latLng).title(\"Marker\"));\n mMap.addMarker(new MarkerOptions().position(latLng).title(\"Marker\"));\n mMap.animateCamera(CameraUpdateFactory.newLatLng(latLng));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng,17));\n\n }\n\n }",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t\tMap<String, String > empRecord = new HashMap<>();\n\t\t\n\t\tempRecord.put(\"CEO\", null);\n\t\tempRecord.put(\"DU Head\", \"CEO\");\n\t\tempRecord.put(\"Project Manager\", \"DU Head\");\n\t\tempRecord.put(\"Team Lead\", \"Project Manager\");\n\t\tempRecord.put(\"SSE\", \"Team Lead\");\n\t\tempRecord.put(\"SE\", \"SSE\");\n\t\tempRecord.put(\"ASE\" , \"SE\");\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the name of employee\");\n\t\tString emp = sc.nextLine();\n\t\tSystem.out.println(emp);\n\t\t\n\t\tdisplayManagerEmployee(empRecord, emp);\n\t\t\n\t\t\n\t}",
"public void showSearchResults(List<SearchEntry> searchResults) {\n SearchAdapter adapter = new SearchAdapter(this, searchResults);\n searchAutoComplete.setAdapter(adapter);\n adapter.notifyDataSetChanged();\n\n if (!searchResults.isEmpty()) {\n searchAutoComplete.showDropDown();\n }\n }",
"@Override\r\n\tpublic List<String> listSearchableFields() {\r\n\t\tList<String> listSearchableFields = new ArrayList<String>();\r\n\t\tlistSearchableFields.addAll(super.listSearchableFields());\r\n\r\n\t\tlistSearchableFields.add(\"employeeNumber\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.primaryPhone\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.secondaryPhone\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.streetAddress\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.city\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.zip\");\r\n\r\n\t\treturn listSearchableFields;\r\n\t}"
] | [
"0.6071533",
"0.59636265",
"0.58795404",
"0.56845766",
"0.5522358",
"0.5398993",
"0.53936094",
"0.53391856",
"0.53066266",
"0.53026885",
"0.52903223",
"0.5277353",
"0.5269778",
"0.52370375",
"0.5225741",
"0.5215933",
"0.52125365",
"0.5205844",
"0.5205409",
"0.52040195",
"0.5191893",
"0.51795274",
"0.5168487",
"0.51411176",
"0.5136567",
"0.51122296",
"0.51081264",
"0.51013464",
"0.50974065",
"0.50964665",
"0.50805",
"0.5078319",
"0.5078296",
"0.5055134",
"0.5047729",
"0.503779",
"0.50257814",
"0.5024111",
"0.50227857",
"0.5020609",
"0.50115985",
"0.5011533",
"0.50114065",
"0.49865246",
"0.49655432",
"0.4959214",
"0.49466327",
"0.49142867",
"0.4912173",
"0.48937476",
"0.48768175",
"0.48720843",
"0.4867536",
"0.48559907",
"0.4852058",
"0.48319826",
"0.48302588",
"0.48256135",
"0.48202443",
"0.48163345",
"0.48160252",
"0.4814591",
"0.48137924",
"0.48067316",
"0.480067",
"0.4798811",
"0.4797141",
"0.47914544",
"0.47885245",
"0.47881398",
"0.4787833",
"0.47860378",
"0.47761387",
"0.47753918",
"0.47629422",
"0.47619098",
"0.47570106",
"0.4750845",
"0.4750706",
"0.47468007",
"0.4743547",
"0.47341394",
"0.47275126",
"0.47177058",
"0.47169882",
"0.4708556",
"0.47066975",
"0.46969032",
"0.46968594",
"0.4694837",
"0.4692617",
"0.4690498",
"0.4687268",
"0.46872172",
"0.4679293",
"0.46756917",
"0.4668785",
"0.46642357",
"0.466394",
"0.4662816"
] | 0.69363487 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.